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

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

%"class.std::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.HighsSparseMatrix = type { i32, i32, i32, %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector.3" }
%"class.std::vector.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = 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 }
%struct.HighsIndexCollection = type { i32, i8, i32, i32, i8, i32, %"class.std::vector", i8, %"class.std::vector" }

@.str.52 = external hidden unnamed_addr constant [80 x i8], align 1
@.str.53 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.86 = external hidden unnamed_addr constant [21 x i8], align 1
@__PRETTY_FUNCTION__._ZN17HighsSparseMatrix10deleteRowsERK20HighsIndexCollection = external hidden unnamed_addr constant [65 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 uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #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) #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 @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2

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

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

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

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

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

declare noundef zeroext i1 @_Z2okRK20HighsIndexCollection(ptr noundef nonnull align 8 dereferenceable(80)) #4

declare void @_Z6limitsRK20HighsIndexCollectionRiS2_(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #4

declare void @_Z16updateOutInIndexRK20HighsIndexCollectionRiS2_S2_S2_S2_(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #4

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN17HighsSparseMatrix10deleteRowsERK20HighsIndexCollection(ptr noundef nonnull align 8 dereferenceable(112) %0, ptr noundef nonnull align 8 dereferenceable(80) %1) #1 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %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 %"class.std::vector", align 8
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i8, align 1
  %19 = alloca ptr, align 8
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %31 = load ptr, ptr %3, align 8
  %32 = call noundef zeroext i1 @_ZNK17HighsSparseMatrix8formatOkEv(ptr noundef nonnull align 8 dereferenceable(112) %31)
  br i1 %32, label %33, label %34

33:                                               ; preds = %2
  br label %36

34:                                               ; preds = %2
  call void @__assert_fail(ptr noundef @.str.53, ptr noundef @.str.52, i32 noundef 646, ptr noundef @__PRETTY_FUNCTION__._ZN17HighsSparseMatrix10deleteRowsERK20HighsIndexCollection) #5
  unreachable

35:                                               ; No predecessors!
  br label %36

36:                                               ; preds = %35, %33
  %37 = load ptr, ptr %4, align 8, !tbaa !5
  %38 = call noundef zeroext i1 @_Z2okRK20HighsIndexCollection(ptr noundef nonnull align 8 dereferenceable(80) %37)
  br i1 %38, label %39, label %40

39:                                               ; preds = %36
  br label %42

40:                                               ; preds = %36
  call void @__assert_fail(ptr noundef @.str.86, ptr noundef @.str.52, i32 noundef 647, ptr noundef @__PRETTY_FUNCTION__._ZN17HighsSparseMatrix10deleteRowsERK20HighsIndexCollection) #5
  unreachable

41:                                               ; No predecessors!
  br label %42

42:                                               ; preds = %41, %39
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  %43 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_Z6limitsRK20HighsIndexCollectionRiS2_(ptr noundef nonnull align 8 dereferenceable(80) %43, ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %6)
  %44 = load i32, ptr %5, align 4, !tbaa !9
  %45 = load i32, ptr %6, align 4, !tbaa !9
  %46 = icmp sgt i32 %44, %45
  br i1 %46, label %47, label %48

47:                                               ; preds = %42
  store i32 1, ptr %7, align 4
  br label %264

48:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  %49 = getelementptr inbounds %class.HighsSparseMatrix, ptr %31, i32 0, i32 2
  %50 = load i32, ptr %49, align 8, !tbaa !11
  store i32 %50, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  store i32 -1, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  store i32 0, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr %14) #6
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #6
  %51 = getelementptr inbounds %class.HighsSparseMatrix, ptr %31, i32 0, i32 2
  %52 = load i32, ptr %51, align 8, !tbaa !11
  %53 = sext i32 %52 to i64
  invoke void @_ZNSt6vectorIiSaIiEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %53)
          to label %54 unwind label %71

54:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  store i32 0, ptr %17, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %18) #6
  %55 = load ptr, ptr %4, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.HighsIndexCollection, ptr %55, i32 0, i32 7
  %57 = load i8, ptr %56, align 8, !tbaa !22, !range !25, !noundef !26
  %58 = trunc i8 %57 to i1
  %59 = zext i1 %58 to i8
  store i8 %59, ptr %18, align 1, !tbaa !27
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  %60 = load ptr, ptr %4, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.HighsIndexCollection, ptr %60, i32 0, i32 8
  store ptr %61, ptr %19, align 8, !tbaa !5
  %62 = load i8, ptr %18, align 1, !tbaa !27, !range !25, !noundef !26
  %63 = trunc i8 %62 to i1
  br i1 %63, label %145, label %64

64:                                               ; preds = %54
  store i32 -1, ptr %12, align 4, !tbaa !9
  store i32 0, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  %65 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %65, ptr %20, align 4, !tbaa !9
  br label %66

66:                                               ; preds = %140, %64
  %67 = load i32, ptr %20, align 4, !tbaa !9
  %68 = load i32, ptr %6, align 4, !tbaa !9
  %69 = icmp sle i32 %67, %68
  br i1 %69, label %75, label %70

70:                                               ; preds = %66
  store i32 2, ptr %7, align 4
  br label %143

71:                                               ; preds = %48
  %72 = landingpad { ptr, i32 }
          cleanup
  %73 = extractvalue { ptr, i32 } %72, 0
  store ptr %73, ptr %15, align 8
  %74 = extractvalue { ptr, i32 } %72, 1
  store i32 %74, ptr %16, align 4
  br label %272

75:                                               ; preds = %66
  %76 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_Z16updateOutInIndexRK20HighsIndexCollectionRiS2_S2_S2_S2_(ptr noundef nonnull align 8 dereferenceable(80) %76, ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull align 4 dereferenceable(4) %9, ptr noundef nonnull align 4 dereferenceable(4) %10, ptr noundef nonnull align 4 dereferenceable(4) %12, ptr noundef nonnull align 4 dereferenceable(4) %13)
          to label %77 unwind label %87

77:                                               ; preds = %75
  %78 = load i32, ptr %20, align 4, !tbaa !9
  %79 = load i32, ptr %5, align 4, !tbaa !9
  %80 = icmp eq i32 %78, %79
  br i1 %80, label %81, label %102

81:                                               ; preds = %77
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  store i32 0, ptr %21, align 4, !tbaa !9
  br label %82

82:                                               ; preds = %98, %81
  %83 = load i32, ptr %21, align 4, !tbaa !9
  %84 = load i32, ptr %8, align 4, !tbaa !9
  %85 = icmp slt i32 %83, %84
  br i1 %85, label %91, label %86

86:                                               ; preds = %82
  store i32 5, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  br label %101

87:                                               ; preds = %75
  %88 = landingpad { ptr, i32 }
          cleanup
  %89 = extractvalue { ptr, i32 } %88, 0
  store ptr %89, ptr %15, align 8
  %90 = extractvalue { ptr, i32 } %88, 1
  store i32 %90, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  br label %271

91:                                               ; preds = %82
  %92 = load i32, ptr %17, align 4, !tbaa !9
  %93 = load i32, ptr %21, align 4, !tbaa !9
  %94 = sext i32 %93 to i64
  %95 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %94) #6
  store i32 %92, ptr %95, align 4, !tbaa !9
  %96 = load i32, ptr %17, align 4, !tbaa !9
  %97 = add nsw i32 %96, 1
  store i32 %97, ptr %17, align 4, !tbaa !9
  br label %98

98:                                               ; preds = %91
  %99 = load i32, ptr %21, align 4, !tbaa !9
  %100 = add nsw i32 %99, 1
  store i32 %100, ptr %21, align 4, !tbaa !9
  br label %82, !llvm.loop !28

101:                                              ; preds = %86
  br label %102

102:                                              ; preds = %101, %77
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #6
  %103 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %103, ptr %22, align 4, !tbaa !9
  br label %104

104:                                              ; preds = %113, %102
  %105 = load i32, ptr %22, align 4, !tbaa !9
  %106 = load i32, ptr %9, align 4, !tbaa !9
  %107 = icmp sle i32 %105, %106
  br i1 %107, label %109, label %108

108:                                              ; preds = %104
  store i32 8, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  br label %116

109:                                              ; preds = %104
  %110 = load i32, ptr %22, align 4, !tbaa !9
  %111 = sext i32 %110 to i64
  %112 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %111) #6
  store i32 -1, ptr %112, align 4, !tbaa !9
  br label %113

113:                                              ; preds = %109
  %114 = load i32, ptr %22, align 4, !tbaa !9
  %115 = add nsw i32 %114, 1
  store i32 %115, ptr %22, align 4, !tbaa !9
  br label %104, !llvm.loop !30

116:                                              ; preds = %108
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #6
  %117 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %117, ptr %23, align 4, !tbaa !9
  br label %118

118:                                              ; preds = %130, %116
  %119 = load i32, ptr %23, align 4, !tbaa !9
  %120 = load i32, ptr %12, align 4, !tbaa !9
  %121 = icmp sle i32 %119, %120
  br i1 %121, label %123, label %122

122:                                              ; preds = %118
  store i32 11, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  br label %133

123:                                              ; preds = %118
  %124 = load i32, ptr %17, align 4, !tbaa !9
  %125 = load i32, ptr %23, align 4, !tbaa !9
  %126 = sext i32 %125 to i64
  %127 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %126) #6
  store i32 %124, ptr %127, align 4, !tbaa !9
  %128 = load i32, ptr %17, align 4, !tbaa !9
  %129 = add nsw i32 %128, 1
  store i32 %129, ptr %17, align 4, !tbaa !9
  br label %130

130:                                              ; preds = %123
  %131 = load i32, ptr %23, align 4, !tbaa !9
  %132 = add nsw i32 %131, 1
  store i32 %132, ptr %23, align 4, !tbaa !9
  br label %118, !llvm.loop !31

133:                                              ; preds = %122
  %134 = load i32, ptr %12, align 4, !tbaa !9
  %135 = load i32, ptr %11, align 4, !tbaa !9
  %136 = sub nsw i32 %135, 1
  %137 = icmp sge i32 %134, %136
  br i1 %137, label %138, label %139

138:                                              ; preds = %133
  store i32 2, ptr %7, align 4
  br label %143

139:                                              ; preds = %133
  br label %140

140:                                              ; preds = %139
  %141 = load i32, ptr %20, align 4, !tbaa !9
  %142 = add nsw i32 %141, 1
  store i32 %142, ptr %20, align 4, !tbaa !9
  br label %66, !llvm.loop !32

143:                                              ; preds = %138, %70
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  br label %144

144:                                              ; preds = %143
  br label %175

145:                                              ; preds = %54
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #6
  store i32 0, ptr %24, align 4, !tbaa !9
  br label %146

146:                                              ; preds = %171, %145
  %147 = load i32, ptr %24, align 4, !tbaa !9
  %148 = getelementptr inbounds %class.HighsSparseMatrix, ptr %31, i32 0, i32 2
  %149 = load i32, ptr %148, align 8, !tbaa !11
  %150 = icmp slt i32 %147, %149
  br i1 %150, label %152, label %151

151:                                              ; preds = %146
  store i32 14, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  br label %174

152:                                              ; preds = %146
  %153 = load ptr, ptr %19, align 8, !tbaa !5
  %154 = load i32, ptr %24, align 4, !tbaa !9
  %155 = sext i32 %154 to i64
  %156 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %153, i64 noundef %155) #6
  %157 = load i32, ptr %156, align 4, !tbaa !9
  %158 = icmp ne i32 %157, 0
  br i1 %158, label %159, label %163

159:                                              ; preds = %152
  %160 = load i32, ptr %24, align 4, !tbaa !9
  %161 = sext i32 %160 to i64
  %162 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %161) #6
  store i32 -1, ptr %162, align 4, !tbaa !9
  br label %170

163:                                              ; preds = %152
  %164 = load i32, ptr %17, align 4, !tbaa !9
  %165 = load i32, ptr %24, align 4, !tbaa !9
  %166 = sext i32 %165 to i64
  %167 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %166) #6
  store i32 %164, ptr %167, align 4, !tbaa !9
  %168 = load i32, ptr %17, align 4, !tbaa !9
  %169 = add nsw i32 %168, 1
  store i32 %169, ptr %17, align 4, !tbaa !9
  br label %170

170:                                              ; preds = %163, %159
  br label %171

171:                                              ; preds = %170
  %172 = load i32, ptr %24, align 4, !tbaa !9
  %173 = add nsw i32 %172, 1
  store i32 %173, ptr %24, align 4, !tbaa !9
  br label %146, !llvm.loop !33

174:                                              ; preds = %151
  br label %175

175:                                              ; preds = %174, %144
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #6
  store i32 0, ptr %25, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #6
  store i32 0, ptr %26, align 4, !tbaa !9
  br label %176

176:                                              ; preds = %238, %175
  %177 = load i32, ptr %26, align 4, !tbaa !9
  %178 = getelementptr inbounds %class.HighsSparseMatrix, ptr %31, i32 0, i32 1
  %179 = load i32, ptr %178, align 4, !tbaa !34
  %180 = icmp slt i32 %177, %179
  br i1 %180, label %182, label %181

181:                                              ; preds = %176
  store i32 17, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #6
  br label %241

182:                                              ; preds = %176
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #6
  %183 = getelementptr inbounds %class.HighsSparseMatrix, ptr %31, i32 0, i32 3
  %184 = load i32, ptr %26, align 4, !tbaa !9
  %185 = sext i32 %184 to i64
  %186 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %183, i64 noundef %185) #6
  %187 = load i32, ptr %186, align 4, !tbaa !9
  store i32 %187, ptr %27, align 4, !tbaa !9
  %188 = load i32, ptr %25, align 4, !tbaa !9
  %189 = getelementptr inbounds %class.HighsSparseMatrix, ptr %31, i32 0, i32 3
  %190 = load i32, ptr %26, align 4, !tbaa !9
  %191 = sext i32 %190 to i64
  %192 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %189, i64 noundef %191) #6
  store i32 %188, ptr %192, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #6
  %193 = load i32, ptr %27, align 4, !tbaa !9
  store i32 %193, ptr %28, align 4, !tbaa !9
  br label %194

194:                                              ; preds = %234, %182
  %195 = load i32, ptr %28, align 4, !tbaa !9
  %196 = getelementptr inbounds %class.HighsSparseMatrix, ptr %31, i32 0, i32 3
  %197 = load i32, ptr %26, align 4, !tbaa !9
  %198 = add nsw i32 %197, 1
  %199 = sext i32 %198 to i64
  %200 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %196, i64 noundef %199) #6
  %201 = load i32, ptr %200, align 4, !tbaa !9
  %202 = icmp slt i32 %195, %201
  br i1 %202, label %204, label %203

203:                                              ; preds = %194
  store i32 20, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #6
  br label %237

204:                                              ; preds = %194
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #6
  %205 = getelementptr inbounds %class.HighsSparseMatrix, ptr %31, i32 0, i32 5
  %206 = load i32, ptr %28, align 4, !tbaa !9
  %207 = sext i32 %206 to i64
  %208 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %205, i64 noundef %207) #6
  %209 = load i32, ptr %208, align 4, !tbaa !9
  store i32 %209, ptr %29, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #6
  %210 = load i32, ptr %29, align 4, !tbaa !9
  %211 = sext i32 %210 to i64
  %212 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %211) #6
  %213 = load i32, ptr %212, align 4, !tbaa !9
  store i32 %213, ptr %30, align 4, !tbaa !9
  %214 = load i32, ptr %30, align 4, !tbaa !9
  %215 = icmp sge i32 %214, 0
  br i1 %215, label %216, label %233

216:                                              ; preds = %204
  %217 = load i32, ptr %30, align 4, !tbaa !9
  %218 = getelementptr inbounds %class.HighsSparseMatrix, ptr %31, i32 0, i32 5
  %219 = load i32, ptr %25, align 4, !tbaa !9
  %220 = sext i32 %219 to i64
  %221 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %218, i64 noundef %220) #6
  store i32 %217, ptr %221, align 4, !tbaa !9
  %222 = getelementptr inbounds %class.HighsSparseMatrix, ptr %31, i32 0, i32 6
  %223 = load i32, ptr %28, align 4, !tbaa !9
  %224 = sext i32 %223 to i64
  %225 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %222, i64 noundef %224) #6
  %226 = load double, ptr %225, align 8, !tbaa !35
  %227 = getelementptr inbounds %class.HighsSparseMatrix, ptr %31, i32 0, i32 6
  %228 = load i32, ptr %25, align 4, !tbaa !9
  %229 = sext i32 %228 to i64
  %230 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %227, i64 noundef %229) #6
  store double %226, ptr %230, align 8, !tbaa !35
  %231 = load i32, ptr %25, align 4, !tbaa !9
  %232 = add nsw i32 %231, 1
  store i32 %232, ptr %25, align 4, !tbaa !9
  br label %233

233:                                              ; preds = %216, %204
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #6
  br label %234

234:                                              ; preds = %233
  %235 = load i32, ptr %28, align 4, !tbaa !9
  %236 = add nsw i32 %235, 1
  store i32 %236, ptr %28, align 4, !tbaa !9
  br label %194, !llvm.loop !37

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

238:                                              ; preds = %237
  %239 = load i32, ptr %26, align 4, !tbaa !9
  %240 = add nsw i32 %239, 1
  store i32 %240, ptr %26, align 4, !tbaa !9
  br label %176, !llvm.loop !38

241:                                              ; preds = %181
  %242 = load i32, ptr %25, align 4, !tbaa !9
  %243 = getelementptr inbounds %class.HighsSparseMatrix, ptr %31, i32 0, i32 3
  %244 = getelementptr inbounds %class.HighsSparseMatrix, ptr %31, i32 0, i32 1
  %245 = load i32, ptr %244, align 4, !tbaa !34
  %246 = sext i32 %245 to i64
  %247 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %243, i64 noundef %246) #6
  store i32 %242, ptr %247, align 4, !tbaa !9
  %248 = getelementptr inbounds %class.HighsSparseMatrix, ptr %31, i32 0, i32 3
  %249 = getelementptr inbounds %class.HighsSparseMatrix, ptr %31, i32 0, i32 1
  %250 = load i32, ptr %249, align 4, !tbaa !34
  %251 = add nsw i32 %250, 1
  %252 = sext i32 %251 to i64
  invoke void @_ZNSt6vectorIiSaIiEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %248, i64 noundef %252)
          to label %253 unwind label %267

253:                                              ; preds = %241
  %254 = getelementptr inbounds %class.HighsSparseMatrix, ptr %31, i32 0, i32 5
  %255 = load i32, ptr %25, align 4, !tbaa !9
  %256 = sext i32 %255 to i64
  invoke void @_ZNSt6vectorIiSaIiEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %254, i64 noundef %256)
          to label %257 unwind label %267

257:                                              ; preds = %253
  %258 = getelementptr inbounds %class.HighsSparseMatrix, ptr %31, i32 0, i32 6
  %259 = load i32, ptr %25, align 4, !tbaa !9
  %260 = sext i32 %259 to i64
  invoke void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %258, i64 noundef %260)
          to label %261 unwind label %267

261:                                              ; preds = %257
  %262 = load i32, ptr %17, align 4, !tbaa !9
  %263 = getelementptr inbounds %class.HighsSparseMatrix, ptr %31, i32 0, i32 2
  store i32 %262, ptr %263, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  store i32 0, ptr %7, align 4
  br label %264

264:                                              ; preds = %261, %47
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  %265 = load i32, ptr %7, align 4
  switch i32 %265, label %278 [
    i32 0, label %266
    i32 1, label %266
  ]

266:                                              ; preds = %264, %264
  ret void

267:                                              ; preds = %257, %253, %241
  %268 = landingpad { ptr, i32 }
          cleanup
  %269 = extractvalue { ptr, i32 } %268, 0
  store ptr %269, ptr %15, align 8
  %270 = extractvalue { ptr, i32 } %268, 1
  store i32 %270, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  br label %271

271:                                              ; preds = %267, %87
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  br label %272

272:                                              ; preds = %271, %71
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  br label %273

273:                                              ; preds = %272
  %274 = load ptr, ptr %15, align 8
  %275 = load i32, ptr %16, align 4
  %276 = insertvalue { ptr, i32 } poison, ptr %274, 0
  %277 = insertvalue { ptr, i32 } %276, i32 %275, 1
  resume { ptr, i32 } %277

278:                                              ; preds = %264
  unreachable
}

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 8}
!12 = !{!"_ZTS17HighsSparseMatrix", !13, i64 0, !10, i64 4, !10, i64 8, !14, i64 16, !14, i64 40, !14, i64 64, !18, i64 88}
!13 = !{!"_ZTS12MatrixFormat", !7, i64 0}
!14 = !{!"_ZTSSt6vectorIiSaIiEE", !15, i64 0}
!15 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!18 = !{!"_ZTSSt6vectorIdSaIdEE", !19, i64 0}
!19 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!22 = !{!23, !24, i64 48}
!23 = !{!"_ZTS20HighsIndexCollection", !10, i64 0, !24, i64 4, !10, i64 8, !10, i64 12, !24, i64 16, !10, i64 20, !14, i64 24, !24, i64 48, !14, i64 56}
!24 = !{!"bool", !7, i64 0}
!25 = !{i8 0, i8 2}
!26 = !{}
!27 = !{!24, !24, i64 0}
!28 = distinct !{!28, !29}
!29 = !{!"llvm.loop.mustprogress"}
!30 = distinct !{!30, !29}
!31 = distinct !{!31, !29}
!32 = distinct !{!32, !29}
!33 = distinct !{!33, !29}
!34 = !{!12, !10, i64 4}
!35 = !{!36, !36, i64 0}
!36 = !{!"double", !7, i64 0}
!37 = distinct !{!37, !29}
!38 = distinct !{!38, !29}


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

@.str.52 = external hidden unnamed_addr constant [80 x i8], align 1
@.str.53 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.86 = external hidden unnamed_addr constant [21 x i8], align 1
@__PRETTY_FUNCTION__._ZN17HighsSparseMatrix10deleteRowsERK20HighsIndexCollection = external hidden unnamed_addr constant [65 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) 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 #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 @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2

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

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

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

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

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

declare noundef zeroext i1 @_Z2okRK20HighsIndexCollection(ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #4

declare void @_Z6limitsRK20HighsIndexCollectionRiS2_(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #4

declare void @_Z16updateOutInIndexRK20HighsIndexCollectionRiS2_S2_S2_S2_(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN17HighsSparseMatrix10deleteRowsERK20HighsIndexCollection(ptr noundef nonnull align 8 dereferenceable(112) %0, ptr noundef nonnull align 8 dereferenceable(80) %1) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %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 %"class.std::vector", align 8
  %11 = tail call noundef zeroext i1 @_ZNK17HighsSparseMatrix8formatOkEv(ptr noundef nonnull align 8 dereferenceable(112) %0)
  br i1 %11, label %13, label %12

12:                                               ; preds = %2
  tail call void @__assert_fail(ptr noundef nonnull @.str.53, ptr noundef nonnull @.str.52, i32 noundef 646, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN17HighsSparseMatrix10deleteRowsERK20HighsIndexCollection) #5
  unreachable

13:                                               ; preds = %2
  %14 = tail call noundef zeroext i1 @_Z2okRK20HighsIndexCollection(ptr noundef nonnull align 8 dereferenceable(80) %1)
  br i1 %14, label %16, label %15

15:                                               ; preds = %13
  tail call void @__assert_fail(ptr noundef nonnull @.str.86, ptr noundef nonnull @.str.52, i32 noundef 647, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN17HighsSparseMatrix10deleteRowsERK20HighsIndexCollection) #5
  unreachable

16:                                               ; preds = %13
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #6
  call void @_Z6limitsRK20HighsIndexCollectionRiS2_(ptr noundef nonnull align 8 dereferenceable(80) %1, ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %17 = load i32, ptr %3, align 4, !tbaa !5
  %18 = load i32, ptr %4, align 4, !tbaa !5
  %19 = icmp sgt i32 %17, %18
  br i1 %19, label %123, label %20

20:                                               ; preds = %16
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #6
  %21 = getelementptr inbounds i8, ptr %0, i64 8
  %22 = load i32, ptr %21, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #6
  store i32 -1, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #6
  store i32 0, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %10) #6
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  %23 = load i32, ptr %21, align 8, !tbaa !9
  %24 = sext i32 %23 to i64
  invoke void @_ZNSt6vectorIiSaIiEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %24)
          to label %25 unwind label %39

25:                                               ; preds = %20
  %26 = getelementptr inbounds i8, ptr %1, i64 48
  %27 = load i8, ptr %26, align 8, !tbaa !21, !range !24, !noundef !25
  %28 = trunc nuw i8 %27 to i1
  %29 = getelementptr inbounds i8, ptr %1, i64 56
  br i1 %28, label %.preheader, label %32

.preheader:                                       ; preds = %25
  %30 = load i32, ptr %21, align 8, !tbaa !9
  %31 = icmp sgt i32 %30, 0
  br i1 %31, label %.lr.ph107, label %.loopexit77

32:                                               ; preds = %25
  store i32 -1, ptr %8, align 4, !tbaa !5
  store i32 0, ptr %9, align 4, !tbaa !5
  %33 = load i32, ptr %3, align 4, !tbaa !5
  %34 = load i32, ptr %4, align 4, !tbaa !5
  %.not97 = icmp sgt i32 %33, %34
  br i1 %.not97, label %.loopexit77, label %.lr.ph101

.lr.ph101:                                        ; preds = %32
  %35 = add nsw i32 %22, -1
  br label %41

36:                                               ; preds = %._crit_edge94
  %37 = add nsw i32 %.06499, 1
  %38 = load i32, ptr %4, align 4, !tbaa !5
  %.not.not = icmp slt i32 %.06499, %38
  br i1 %.not.not, label %41, label %.loopexit77, !llvm.loop !26

39:                                               ; preds = %20
  %40 = landingpad { ptr, i32 }
          cleanup
  br label %126

41:                                               ; preds = %.lr.ph101, %36
  %.06499 = phi i32 [ %33, %.lr.ph101 ], [ %37, %36 ]
  %.06598 = phi i32 [ 0, %.lr.ph101 ], [ %.3.lcssa, %36 ]
  invoke void @_Z16updateOutInIndexRK20HighsIndexCollectionRiS2_S2_S2_S2_(ptr noundef nonnull align 8 dereferenceable(80) %1, ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull align 4 dereferenceable(4) %9)
          to label %42 unwind label %47

42:                                               ; preds = %41
  %43 = load i32, ptr %3, align 4, !tbaa !5
  %44 = icmp eq i32 %.06499, %43
  %45 = load i32, ptr %5, align 4
  %46 = icmp sgt i32 %45, 0
  %or.cond = select i1 %44, i1 %46, i1 false
  br i1 %or.cond, label %.lr.ph, label %.loopexit79

47:                                               ; preds = %41
  %48 = landingpad { ptr, i32 }
          cleanup
  br label %126

.lr.ph:                                           ; preds = %42, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %42 ]
  %.16684 = phi i32 [ %50, %.lr.ph ], [ %.06598, %42 ]
  %49 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %indvars.iv) #6
  store i32 %.16684, ptr %49, align 4, !tbaa !5
  %50 = add nsw i32 %.16684, 1
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %51 = load i32, ptr %5, align 4, !tbaa !5
  %52 = sext i32 %51 to i64
  %53 = icmp slt i64 %indvars.iv.next, %52
  br i1 %53, label %.lr.ph, label %.loopexit79, !llvm.loop !28

.loopexit79:                                      ; preds = %.lr.ph, %42
  %54 = phi i32 [ %45, %42 ], [ %51, %.lr.ph ]
  %.267 = phi i32 [ %.06598, %42 ], [ %50, %.lr.ph ]
  %55 = load i32, ptr %6, align 4, !tbaa !5
  %.not7186 = icmp sgt i32 %54, %55
  br i1 %.not7186, label %._crit_edge, label %.lr.ph88.preheader

.lr.ph88.preheader:                               ; preds = %.loopexit79
  %56 = sext i32 %54 to i64
  br label %.lr.ph88

._crit_edge:                                      ; preds = %.lr.ph88, %.loopexit79
  %57 = load i32, ptr %7, align 4, !tbaa !5
  %58 = load i32, ptr %8, align 4, !tbaa !5
  %.not7289 = icmp sgt i32 %57, %58
  br i1 %.not7289, label %._crit_edge94, label %.lr.ph93.preheader

.lr.ph93.preheader:                               ; preds = %._crit_edge
  %59 = sext i32 %57 to i64
  br label %.lr.ph93

.lr.ph88:                                         ; preds = %.lr.ph88.preheader, %.lr.ph88
  %indvars.iv128 = phi i64 [ %56, %.lr.ph88.preheader ], [ %indvars.iv.next129, %.lr.ph88 ]
  %60 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %indvars.iv128) #6
  store i32 -1, ptr %60, align 4, !tbaa !5
  %indvars.iv.next129 = add nsw i64 %indvars.iv128, 1
  %61 = load i32, ptr %6, align 4, !tbaa !5
  %62 = sext i32 %61 to i64
  %.not71.not = icmp slt i64 %indvars.iv128, %62
  br i1 %.not71.not, label %.lr.ph88, label %._crit_edge, !llvm.loop !29

._crit_edge94:                                    ; preds = %.lr.ph93, %._crit_edge
  %.3.lcssa = phi i32 [ %.267, %._crit_edge ], [ %64, %.lr.ph93 ]
  %.lcssa83 = phi i32 [ %58, %._crit_edge ], [ %65, %.lr.ph93 ]
  %.not73 = icmp slt i32 %.lcssa83, %35
  br i1 %.not73, label %36, label %.loopexit77

.lr.ph93:                                         ; preds = %.lr.ph93.preheader, %.lr.ph93
  %indvars.iv131 = phi i64 [ %59, %.lr.ph93.preheader ], [ %indvars.iv.next132, %.lr.ph93 ]
  %.390 = phi i32 [ %.267, %.lr.ph93.preheader ], [ %64, %.lr.ph93 ]
  %63 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %indvars.iv131) #6
  store i32 %.390, ptr %63, align 4, !tbaa !5
  %64 = add nsw i32 %.390, 1
  %indvars.iv.next132 = add nsw i64 %indvars.iv131, 1
  %65 = load i32, ptr %8, align 4, !tbaa !5
  %66 = sext i32 %65 to i64
  %.not72.not = icmp slt i64 %indvars.iv131, %66
  br i1 %.not72.not, label %.lr.ph93, label %._crit_edge94, !llvm.loop !30

.lr.ph107:                                        ; preds = %.preheader, %73
  %indvars.iv134 = phi i64 [ %indvars.iv.next135, %73 ], [ 0, %.preheader ]
  %.5105 = phi i32 [ %.6, %73 ], [ 0, %.preheader ]
  %67 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %29, i64 noundef %indvars.iv134) #6
  %68 = load i32, ptr %67, align 4, !tbaa !5
  %.not76 = icmp eq i32 %68, 0
  %69 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %indvars.iv134) #6
  br i1 %.not76, label %71, label %70

70:                                               ; preds = %.lr.ph107
  store i32 -1, ptr %69, align 4, !tbaa !5
  br label %73

71:                                               ; preds = %.lr.ph107
  store i32 %.5105, ptr %69, align 4, !tbaa !5
  %72 = add nsw i32 %.5105, 1
  br label %73

73:                                               ; preds = %70, %71
  %.6 = phi i32 [ %.5105, %70 ], [ %72, %71 ]
  %indvars.iv.next135 = add nuw nsw i64 %indvars.iv134, 1
  %74 = load i32, ptr %21, align 8, !tbaa !9
  %75 = sext i32 %74 to i64
  %76 = icmp slt i64 %indvars.iv.next135, %75
  br i1 %76, label %.lr.ph107, label %.loopexit77, !llvm.loop !31

.loopexit77:                                      ; preds = %._crit_edge94, %36, %73, %32, %.preheader
  %.7 = phi i32 [ 0, %.preheader ], [ 0, %32 ], [ %.6, %73 ], [ %.3.lcssa, %36 ], [ %.3.lcssa, %._crit_edge94 ]
  %77 = getelementptr inbounds i8, ptr %0, i64 4
  %78 = load i32, ptr %77, align 4, !tbaa !32
  %79 = icmp sgt i32 %78, 0
  br i1 %79, label %.lr.ph118, label %.loopexit77.._crit_edge119_crit_edge

.loopexit77.._crit_edge119_crit_edge:             ; preds = %.loopexit77
  %.pre = sext i32 %78 to i64
  br label %._crit_edge119

.lr.ph118:                                        ; preds = %.loopexit77
  %80 = getelementptr inbounds i8, ptr %0, i64 16
  %81 = getelementptr inbounds i8, ptr %0, i64 64
  %82 = getelementptr inbounds i8, ptr %0, i64 88
  br label %91

.loopexit:                                        ; preds = %112, %91
  %.159.lcssa = phi i32 [ %.058115, %91 ], [ %.2, %112 ]
  %83 = load i32, ptr %77, align 4, !tbaa !32
  %84 = sext i32 %83 to i64
  %85 = icmp slt i64 %indvars.iv.next141, %84
  br i1 %85, label %91, label %._crit_edge119, !llvm.loop !33

._crit_edge119:                                   ; preds = %.loopexit, %.loopexit77.._crit_edge119_crit_edge
  %.pre-phi = phi i64 [ %.pre, %.loopexit77.._crit_edge119_crit_edge ], [ %84, %.loopexit ]
  %.058.lcssa = phi i32 [ 0, %.loopexit77.._crit_edge119_crit_edge ], [ %.159.lcssa, %.loopexit ]
  %86 = getelementptr inbounds i8, ptr %0, i64 16
  %87 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %86, i64 noundef %.pre-phi) #6
  store i32 %.058.lcssa, ptr %87, align 4, !tbaa !5
  %88 = load i32, ptr %77, align 4, !tbaa !32
  %89 = add nsw i32 %88, 1
  %90 = sext i32 %89 to i64
  invoke void @_ZNSt6vectorIiSaIiEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %86, i64 noundef %90)
          to label %117 unwind label %124

91:                                               ; preds = %.lr.ph118, %.loopexit
  %indvars.iv140 = phi i64 [ 0, %.lr.ph118 ], [ %indvars.iv.next141, %.loopexit ]
  %.058115 = phi i32 [ 0, %.lr.ph118 ], [ %.159.lcssa, %.loopexit ]
  %92 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %80, i64 noundef %indvars.iv140) #6
  %93 = load i32, ptr %92, align 4, !tbaa !5
  %94 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %80, i64 noundef %indvars.iv140) #6
  store i32 %.058115, ptr %94, align 4, !tbaa !5
  %indvars.iv.next141 = add nuw nsw i64 %indvars.iv140, 1
  %95 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %80, i64 noundef %indvars.iv.next141) #6
  %96 = load i32, ptr %95, align 4, !tbaa !5
  %97 = icmp slt i32 %93, %96
  br i1 %97, label %.lr.ph112.preheader, label %.loopexit

.lr.ph112.preheader:                              ; preds = %91
  %98 = sext i32 %93 to i64
  br label %.lr.ph112

.lr.ph112:                                        ; preds = %.lr.ph112.preheader, %112
  %indvars.iv137 = phi i64 [ %98, %.lr.ph112.preheader ], [ %indvars.iv.next138, %112 ]
  %.159109 = phi i32 [ %.058115, %.lr.ph112.preheader ], [ %.2, %112 ]
  %99 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %81, i64 noundef %indvars.iv137) #6
  %100 = load i32, ptr %99, align 4, !tbaa !5
  %101 = sext i32 %100 to i64
  %102 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %101) #6
  %103 = load i32, ptr %102, align 4, !tbaa !5
  %104 = icmp sgt i32 %103, -1
  br i1 %104, label %105, label %112

105:                                              ; preds = %.lr.ph112
  %106 = sext i32 %.159109 to i64
  %107 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %81, i64 noundef %106) #6
  store i32 %103, ptr %107, align 4, !tbaa !5
  %108 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %82, i64 noundef %indvars.iv137) #6
  %109 = load double, ptr %108, align 8, !tbaa !34
  %110 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %82, i64 noundef %106) #6
  store double %109, ptr %110, align 8, !tbaa !34
  %111 = add nsw i32 %.159109, 1
  br label %112

112:                                              ; preds = %105, %.lr.ph112
  %.2 = phi i32 [ %111, %105 ], [ %.159109, %.lr.ph112 ]
  %indvars.iv.next138 = add nsw i64 %indvars.iv137, 1
  %113 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %80, i64 noundef %indvars.iv.next141) #6
  %114 = load i32, ptr %113, align 4, !tbaa !5
  %115 = sext i32 %114 to i64
  %116 = icmp slt i64 %indvars.iv.next138, %115
  br i1 %116, label %.lr.ph112, label %.loopexit, !llvm.loop !36

117:                                              ; preds = %._crit_edge119
  %118 = getelementptr inbounds i8, ptr %0, i64 64
  %119 = sext i32 %.058.lcssa to i64
  invoke void @_ZNSt6vectorIiSaIiEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %118, i64 noundef %119)
          to label %120 unwind label %124

120:                                              ; preds = %117
  %121 = getelementptr inbounds i8, ptr %0, i64 88
  invoke void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %121, i64 noundef %119)
          to label %122 unwind label %124

122:                                              ; preds = %120
  store i32 %.7, ptr %21, align 8, !tbaa !9
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #6
  br label %123

123:                                              ; preds = %16, %122
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #6
  ret void

124:                                              ; preds = %120, %117, %._crit_edge119
  %125 = landingpad { ptr, i32 }
          cleanup
  br label %126

126:                                              ; preds = %47, %124, %39
  %.pn.pn = phi { ptr, i32 } [ %40, %39 ], [ %125, %124 ], [ %48, %47 ]
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #6
  resume { ptr, i32 } %.pn.pn
}

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 8}
!10 = !{!"_ZTS17HighsSparseMatrix", !11, i64 0, !6, i64 4, !6, i64 8, !12, i64 16, !12, i64 40, !12, i64 64, !17, i64 88}
!11 = !{!"_ZTS12MatrixFormat", !7, i64 0}
!12 = !{!"_ZTSSt6vectorIiSaIiEE", !13, i64 0}
!13 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !16, i64 0, !16, i64 8, !16, i64 16}
!16 = !{!"any pointer", !7, i64 0}
!17 = !{!"_ZTSSt6vectorIdSaIdEE", !18, i64 0}
!18 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !16, i64 0, !16, i64 8, !16, i64 16}
!21 = !{!22, !23, i64 48}
!22 = !{!"_ZTS20HighsIndexCollection", !6, i64 0, !23, i64 4, !6, i64 8, !6, i64 12, !23, i64 16, !6, i64 20, !12, i64 24, !23, i64 48, !12, i64 56}
!23 = !{!"bool", !7, i64 0}
!24 = !{i8 0, i8 2}
!25 = !{}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}
!28 = distinct !{!28, !27}
!29 = distinct !{!29, !27}
!30 = distinct !{!30, !27}
!31 = distinct !{!31, !27}
!32 = !{!10, !6, i64 4}
!33 = distinct !{!33, !27}
!34 = !{!35, !35, i64 0}
!35 = !{!"double", !7, i64 0}
!36 = distinct !{!36, !27}


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