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

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

@.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.67 = external hidden unnamed_addr constant [21 x i8], align 1
@__PRETTY_FUNCTION__._ZN17HighsSparseMatrix7addColsES_PKa = external hidden unnamed_addr constant [73 x i8], align 1
@.str.68 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.69 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.70 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.71 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.72 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.73 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.74 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.75 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.76 = external hidden unnamed_addr constant [31 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 @_ZNSt6vectorIiSaIiEE6assignEmRKi(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 4 dereferenceable(4)) #1 align 2

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

; 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 uwtable
declare dso_local noundef i32 @_ZNK17HighsSparseMatrix5numNzEv(ptr noundef nonnull align 8 dereferenceable(112)) #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 noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN17HighsSparseMatrix13ensureColwiseEv(ptr noundef nonnull align 8 dereferenceable(112)) #1 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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN17HighsSparseMatrix7addColsES_PKa(ptr noundef nonnull align 8 dereferenceable(112) %0, ptr noundef %1, ptr noundef %2) #1 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i8, align 1
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca %"class.std::vector", align 8
  %23 = alloca i32, align 4
  %24 = alloca ptr, align 8
  %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
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  %34 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %35 = load ptr, ptr %4, align 8
  %36 = call noundef zeroext i1 @_ZNK17HighsSparseMatrix9isColwiseEv(ptr noundef nonnull align 8 dereferenceable(112) %1)
  br i1 %36, label %37, label %38

37:                                               ; preds = %3
  br label %40

38:                                               ; preds = %3
  call void @__assert_fail(ptr noundef @.str.67, ptr noundef @.str.52, i32 noundef 241, ptr noundef @__PRETTY_FUNCTION__._ZN17HighsSparseMatrix7addColsES_PKa) #4
  unreachable

39:                                               ; No predecessors!
  br label %40

40:                                               ; preds = %39, %37
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  %41 = getelementptr inbounds %class.HighsSparseMatrix, ptr %1, i32 0, i32 1
  %42 = load i32, ptr %41, align 4, !tbaa !9
  store i32 %42, ptr %7, align 4, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  %43 = call noundef i32 @_ZNK17HighsSparseMatrix5numNzEv(ptr noundef nonnull align 8 dereferenceable(112) %1)
  store i32 %43, ptr %8, align 4, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %44 = getelementptr inbounds %class.HighsSparseMatrix, ptr %1, i32 0, i32 3
  store ptr %44, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %45 = getelementptr inbounds %class.HighsSparseMatrix, ptr %1, i32 0, i32 5
  store ptr %45, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %46 = getelementptr inbounds %class.HighsSparseMatrix, ptr %1, i32 0, i32 6
  store ptr %46, ptr %11, align 8, !tbaa !5
  %47 = call noundef zeroext i1 @_ZNK17HighsSparseMatrix8formatOkEv(ptr noundef nonnull align 8 dereferenceable(112) %35)
  br i1 %47, label %48, label %49

48:                                               ; preds = %40
  br label %51

49:                                               ; preds = %40
  call void @__assert_fail(ptr noundef @.str.53, ptr noundef @.str.52, i32 noundef 248, ptr noundef @__PRETTY_FUNCTION__._ZN17HighsSparseMatrix7addColsES_PKa) #4
  unreachable

50:                                               ; No predecessors!
  br label %51

51:                                               ; preds = %50, %48
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #5
  %52 = getelementptr inbounds %class.HighsSparseMatrix, ptr %35, i32 0, i32 0
  %53 = load i32, ptr %52, align 8, !tbaa !22
  %54 = icmp eq i32 %53, 3
  %55 = zext i1 %54 to i8
  store i8 %55, ptr %12, align 1, !tbaa !23
  %56 = load i8, ptr %12, align 1, !tbaa !23, !range !25, !noundef !26
  %57 = trunc i8 %56 to i1
  %58 = xor i1 %57, true
  br i1 %58, label %59, label %60

59:                                               ; preds = %51
  br label %62

60:                                               ; preds = %51
  call void @__assert_fail(ptr noundef @.str.68, ptr noundef @.str.52, i32 noundef 253, ptr noundef @__PRETTY_FUNCTION__._ZN17HighsSparseMatrix7addColsES_PKa) #4
  unreachable

61:                                               ; No predecessors!
  br label %62

62:                                               ; preds = %61, %59
  %63 = load i8, ptr %12, align 1, !tbaa !23, !range !25, !noundef !26
  %64 = trunc i8 %63 to i1
  br i1 %64, label %65, label %72

65:                                               ; preds = %62
  %66 = load ptr, ptr %6, align 8, !tbaa !5
  %67 = icmp ne ptr %66, null
  br i1 %67, label %68, label %69

68:                                               ; preds = %65
  br label %71

69:                                               ; preds = %65
  call void @__assert_fail(ptr noundef @.str.69, ptr noundef @.str.52, i32 noundef 256, ptr noundef @__PRETTY_FUNCTION__._ZN17HighsSparseMatrix7addColsES_PKa) #4
  unreachable

70:                                               ; No predecessors!
  br label %71

71:                                               ; preds = %70, %68
  br label %72

72:                                               ; preds = %71, %62
  %73 = load i32, ptr %7, align 4, !tbaa !21
  %74 = icmp sge i32 %73, 0
  br i1 %74, label %75, label %76

75:                                               ; preds = %72
  br label %78

76:                                               ; preds = %72
  call void @__assert_fail(ptr noundef @.str.70, ptr noundef @.str.52, i32 noundef 258, ptr noundef @__PRETTY_FUNCTION__._ZN17HighsSparseMatrix7addColsES_PKa) #4
  unreachable

77:                                               ; No predecessors!
  br label %78

78:                                               ; preds = %77, %75
  %79 = load i32, ptr %8, align 4, !tbaa !21
  %80 = icmp sge i32 %79, 0
  br i1 %80, label %81, label %82

81:                                               ; preds = %78
  br label %84

82:                                               ; preds = %78
  call void @__assert_fail(ptr noundef @.str.71, ptr noundef @.str.52, i32 noundef 259, ptr noundef @__PRETTY_FUNCTION__._ZN17HighsSparseMatrix7addColsES_PKa) #4
  unreachable

83:                                               ; No predecessors!
  br label %84

84:                                               ; preds = %83, %81
  %85 = load i32, ptr %7, align 4, !tbaa !21
  %86 = icmp eq i32 %85, 0
  br i1 %86, label %87, label %94

87:                                               ; preds = %84
  %88 = load i32, ptr %8, align 4, !tbaa !21
  %89 = icmp eq i32 %88, 0
  br i1 %89, label %90, label %91

90:                                               ; preds = %87
  br label %93

91:                                               ; preds = %87
  call void @__assert_fail(ptr noundef @.str.72, ptr noundef @.str.52, i32 noundef 263, ptr noundef @__PRETTY_FUNCTION__._ZN17HighsSparseMatrix7addColsES_PKa) #4
  unreachable

92:                                               ; No predecessors!
  br label %93

93:                                               ; preds = %92, %90
  store i32 1, ptr %13, align 4
  br label %441

94:                                               ; preds = %84
  %95 = load i32, ptr %8, align 4, !tbaa !21
  %96 = icmp ne i32 %95, 0
  br i1 %96, label %97, label %119

97:                                               ; preds = %94
  %98 = load ptr, ptr %9, align 8, !tbaa !5
  %99 = call noundef zeroext i1 @_ZNKSt6vectorIiSaIiEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %98) #5
  %100 = xor i1 %99, true
  br i1 %100, label %101, label %102

101:                                              ; preds = %97
  br label %104

102:                                              ; preds = %97
  call void @__assert_fail(ptr noundef @.str.73, ptr noundef @.str.52, i32 noundef 270, ptr noundef @__PRETTY_FUNCTION__._ZN17HighsSparseMatrix7addColsES_PKa) #4
  unreachable

103:                                              ; No predecessors!
  br label %104

104:                                              ; preds = %103, %101
  %105 = load ptr, ptr %10, align 8, !tbaa !5
  %106 = call noundef zeroext i1 @_ZNKSt6vectorIiSaIiEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %105) #5
  %107 = xor i1 %106, true
  br i1 %107, label %108, label %109

108:                                              ; preds = %104
  br label %111

109:                                              ; preds = %104
  call void @__assert_fail(ptr noundef @.str.74, ptr noundef @.str.52, i32 noundef 271, ptr noundef @__PRETTY_FUNCTION__._ZN17HighsSparseMatrix7addColsES_PKa) #4
  unreachable

110:                                              ; No predecessors!
  br label %111

111:                                              ; preds = %110, %108
  %112 = load ptr, ptr %11, align 8, !tbaa !5
  %113 = call noundef zeroext i1 @_ZNKSt6vectorIdSaIdEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %112) #5
  %114 = xor i1 %113, true
  br i1 %114, label %115, label %116

115:                                              ; preds = %111
  br label %118

116:                                              ; preds = %111
  call void @__assert_fail(ptr noundef @.str.75, ptr noundef @.str.52, i32 noundef 272, ptr noundef @__PRETTY_FUNCTION__._ZN17HighsSparseMatrix7addColsES_PKa) #4
  unreachable

117:                                              ; No predecessors!
  br label %118

118:                                              ; preds = %117, %115
  br label %119

119:                                              ; preds = %118, %94
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  %120 = getelementptr inbounds %class.HighsSparseMatrix, ptr %35, i32 0, i32 1
  %121 = load i32, ptr %120, align 4, !tbaa !9
  store i32 %121, ptr %14, align 4, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  %122 = getelementptr inbounds %class.HighsSparseMatrix, ptr %35, i32 0, i32 2
  %123 = load i32, ptr %122, align 8, !tbaa !27
  store i32 %123, ptr %15, align 4, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  %124 = call noundef i32 @_ZNK17HighsSparseMatrix5numNzEv(ptr noundef nonnull align 8 dereferenceable(112) %35)
  store i32 %124, ptr %16, align 4, !tbaa !21
  %125 = load i32, ptr %8, align 4, !tbaa !21
  %126 = icmp sle i32 %125, 0
  br i1 %126, label %130, label %127

127:                                              ; preds = %119
  %128 = load i32, ptr %15, align 4, !tbaa !21
  %129 = icmp sgt i32 %128, 0
  br label %130

130:                                              ; preds = %127, %119
  %131 = phi i1 [ true, %119 ], [ %129, %127 ]
  br i1 %131, label %132, label %133

132:                                              ; preds = %130
  br label %135

133:                                              ; preds = %130
  call void @__assert_fail(ptr noundef @.str.76, ptr noundef @.str.52, i32 noundef 278, ptr noundef @__PRETTY_FUNCTION__._ZN17HighsSparseMatrix7addColsES_PKa) #4
  unreachable

134:                                              ; No predecessors!
  br label %135

135:                                              ; preds = %134, %132
  %136 = getelementptr inbounds %class.HighsSparseMatrix, ptr %35, i32 0, i32 0
  %137 = load i32, ptr %136, align 8, !tbaa !22
  %138 = icmp eq i32 %137, 2
  br i1 %138, label %139, label %144

139:                                              ; preds = %135
  %140 = load i32, ptr %8, align 4, !tbaa !21
  %141 = load i32, ptr %16, align 4, !tbaa !21
  %142 = icmp sgt i32 %140, %141
  br i1 %142, label %143, label %144

143:                                              ; preds = %139
  call void @_ZN17HighsSparseMatrix13ensureColwiseEv(ptr noundef nonnull align 8 dereferenceable(112) %35)
  br label %144

144:                                              ; preds = %143, %139, %135
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  %145 = load i32, ptr %14, align 4, !tbaa !21
  %146 = load i32, ptr %7, align 4, !tbaa !21
  %147 = add nsw i32 %145, %146
  store i32 %147, ptr %17, align 4, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  %148 = load i32, ptr %16, align 4, !tbaa !21
  %149 = load i32, ptr %8, align 4, !tbaa !21
  %150 = add nsw i32 %148, %149
  store i32 %150, ptr %18, align 4, !tbaa !21
  %151 = call noundef zeroext i1 @_ZNK17HighsSparseMatrix9isColwiseEv(ptr noundef nonnull align 8 dereferenceable(112) %35)
  br i1 %151, label %152, label %255

152:                                              ; preds = %144
  %153 = getelementptr inbounds %class.HighsSparseMatrix, ptr %35, i32 0, i32 3
  %154 = load i32, ptr %17, align 4, !tbaa !21
  %155 = add nsw i32 %154, 1
  %156 = sext i32 %155 to i64
  call void @_ZNSt6vectorIiSaIiEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %153, i64 noundef %156)
  %157 = load i32, ptr %8, align 4, !tbaa !21
  %158 = icmp ne i32 %157, 0
  br i1 %158, label %159, label %183

159:                                              ; preds = %152
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  store i32 0, ptr %19, align 4, !tbaa !21
  br label %160

160:                                              ; preds = %179, %159
  %161 = load i32, ptr %19, align 4, !tbaa !21
  %162 = load i32, ptr %7, align 4, !tbaa !21
  %163 = icmp slt i32 %161, %162
  br i1 %163, label %165, label %164

164:                                              ; preds = %160
  store i32 2, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  br label %182

165:                                              ; preds = %160
  %166 = load i32, ptr %16, align 4, !tbaa !21
  %167 = load ptr, ptr %9, align 8, !tbaa !5
  %168 = load i32, ptr %19, align 4, !tbaa !21
  %169 = sext i32 %168 to i64
  %170 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %167, i64 noundef %169) #5
  %171 = load i32, ptr %170, align 4, !tbaa !21
  %172 = add nsw i32 %166, %171
  %173 = getelementptr inbounds %class.HighsSparseMatrix, ptr %35, i32 0, i32 3
  %174 = load i32, ptr %14, align 4, !tbaa !21
  %175 = load i32, ptr %19, align 4, !tbaa !21
  %176 = add nsw i32 %174, %175
  %177 = sext i32 %176 to i64
  %178 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %173, i64 noundef %177) #5
  store i32 %172, ptr %178, align 4, !tbaa !21
  br label %179

179:                                              ; preds = %165
  %180 = load i32, ptr %19, align 4, !tbaa !21
  %181 = add nsw i32 %180, 1
  store i32 %181, ptr %19, align 4, !tbaa !21
  br label %160, !llvm.loop !28

182:                                              ; preds = %164
  br label %201

183:                                              ; preds = %152
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  store i32 0, ptr %20, align 4, !tbaa !21
  br label %184

184:                                              ; preds = %197, %183
  %185 = load i32, ptr %20, align 4, !tbaa !21
  %186 = load i32, ptr %7, align 4, !tbaa !21
  %187 = icmp slt i32 %185, %186
  br i1 %187, label %189, label %188

188:                                              ; preds = %184
  store i32 5, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  br label %200

189:                                              ; preds = %184
  %190 = load i32, ptr %16, align 4, !tbaa !21
  %191 = getelementptr inbounds %class.HighsSparseMatrix, ptr %35, i32 0, i32 3
  %192 = load i32, ptr %14, align 4, !tbaa !21
  %193 = load i32, ptr %20, align 4, !tbaa !21
  %194 = add nsw i32 %192, %193
  %195 = sext i32 %194 to i64
  %196 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %191, i64 noundef %195) #5
  store i32 %190, ptr %196, align 4, !tbaa !21
  br label %197

197:                                              ; preds = %189
  %198 = load i32, ptr %20, align 4, !tbaa !21
  %199 = add nsw i32 %198, 1
  store i32 %199, ptr %20, align 4, !tbaa !21
  br label %184, !llvm.loop !30

200:                                              ; preds = %188
  br label %201

201:                                              ; preds = %200, %182
  %202 = load i32, ptr %18, align 4, !tbaa !21
  %203 = getelementptr inbounds %class.HighsSparseMatrix, ptr %35, i32 0, i32 3
  %204 = load i32, ptr %14, align 4, !tbaa !21
  %205 = load i32, ptr %7, align 4, !tbaa !21
  %206 = add nsw i32 %204, %205
  %207 = sext i32 %206 to i64
  %208 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %203, i64 noundef %207) #5
  store i32 %202, ptr %208, align 4, !tbaa !21
  %209 = load i32, ptr %7, align 4, !tbaa !21
  %210 = getelementptr inbounds %class.HighsSparseMatrix, ptr %35, i32 0, i32 1
  %211 = load i32, ptr %210, align 4, !tbaa !9
  %212 = add nsw i32 %211, %209
  store i32 %212, ptr %210, align 4, !tbaa !9
  %213 = load i32, ptr %8, align 4, !tbaa !21
  %214 = icmp sle i32 %213, 0
  br i1 %214, label %215, label %216

215:                                              ; preds = %201
  store i32 1, ptr %13, align 4
  br label %440

216:                                              ; preds = %201
  %217 = getelementptr inbounds %class.HighsSparseMatrix, ptr %35, i32 0, i32 5
  %218 = load i32, ptr %18, align 4, !tbaa !21
  %219 = sext i32 %218 to i64
  call void @_ZNSt6vectorIiSaIiEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %217, i64 noundef %219)
  %220 = getelementptr inbounds %class.HighsSparseMatrix, ptr %35, i32 0, i32 6
  %221 = load i32, ptr %18, align 4, !tbaa !21
  %222 = sext i32 %221 to i64
  call void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %220, i64 noundef %222)
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  store i32 0, ptr %21, align 4, !tbaa !21
  br label %223

223:                                              ; preds = %251, %216
  %224 = load i32, ptr %21, align 4, !tbaa !21
  %225 = load i32, ptr %8, align 4, !tbaa !21
  %226 = icmp slt i32 %224, %225
  br i1 %226, label %228, label %227

227:                                              ; preds = %223
  store i32 8, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  br label %254

228:                                              ; preds = %223
  %229 = load ptr, ptr %10, align 8, !tbaa !5
  %230 = load i32, ptr %21, align 4, !tbaa !21
  %231 = sext i32 %230 to i64
  %232 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %229, i64 noundef %231) #5
  %233 = load i32, ptr %232, align 4, !tbaa !21
  %234 = getelementptr inbounds %class.HighsSparseMatrix, ptr %35, i32 0, i32 5
  %235 = load i32, ptr %16, align 4, !tbaa !21
  %236 = load i32, ptr %21, align 4, !tbaa !21
  %237 = add nsw i32 %235, %236
  %238 = sext i32 %237 to i64
  %239 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %234, i64 noundef %238) #5
  store i32 %233, ptr %239, align 4, !tbaa !21
  %240 = load ptr, ptr %11, align 8, !tbaa !5
  %241 = load i32, ptr %21, align 4, !tbaa !21
  %242 = sext i32 %241 to i64
  %243 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %240, i64 noundef %242) #5
  %244 = load double, ptr %243, align 8, !tbaa !31
  %245 = getelementptr inbounds %class.HighsSparseMatrix, ptr %35, i32 0, i32 6
  %246 = load i32, ptr %16, align 4, !tbaa !21
  %247 = load i32, ptr %21, align 4, !tbaa !21
  %248 = add nsw i32 %246, %247
  %249 = sext i32 %248 to i64
  %250 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %245, i64 noundef %249) #5
  store double %244, ptr %250, align 8, !tbaa !31
  br label %251

251:                                              ; preds = %228
  %252 = load i32, ptr %21, align 4, !tbaa !21
  %253 = add nsw i32 %252, 1
  store i32 %253, ptr %21, align 4, !tbaa !21
  br label %223, !llvm.loop !33

254:                                              ; preds = %227
  br label %439

255:                                              ; preds = %144
  %256 = load i32, ptr %8, align 4, !tbaa !21
  %257 = icmp ne i32 %256, 0
  br i1 %257, label %258, label %434

258:                                              ; preds = %255
  %259 = getelementptr inbounds %class.HighsSparseMatrix, ptr %35, i32 0, i32 5
  %260 = load i32, ptr %18, align 4, !tbaa !21
  %261 = sext i32 %260 to i64
  call void @_ZNSt6vectorIiSaIiEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %259, i64 noundef %261)
  %262 = getelementptr inbounds %class.HighsSparseMatrix, ptr %35, i32 0, i32 6
  %263 = load i32, ptr %18, align 4, !tbaa !21
  %264 = sext i32 %263 to i64
  call void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %262, i64 noundef %264)
  call void @llvm.lifetime.start.p0(i64 24, ptr %22) #5
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #5
  %265 = load i32, ptr %15, align 4, !tbaa !21
  %266 = sext i32 %265 to i64
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #5
  store i32 0, ptr %23, align 4, !tbaa !21
  invoke void @_ZNSt6vectorIiSaIiEE6assignEmRKi(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %266, ptr noundef nonnull align 4 dereferenceable(4) %23)
          to label %267 unwind label %273

267:                                              ; preds = %258
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #5
  store i32 0, ptr %26, align 4, !tbaa !21
  br label %268

268:                                              ; preds = %287, %267
  %269 = load i32, ptr %26, align 4, !tbaa !21
  %270 = load i32, ptr %8, align 4, !tbaa !21
  %271 = icmp slt i32 %269, %270
  br i1 %271, label %277, label %272

272:                                              ; preds = %268
  store i32 11, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #5
  br label %290

273:                                              ; preds = %258
  %274 = landingpad { ptr, i32 }
          cleanup
  %275 = extractvalue { ptr, i32 } %274, 0
  store ptr %275, ptr %24, align 8
  %276 = extractvalue { ptr, i32 } %274, 1
  store i32 %276, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #5
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  br label %444

277:                                              ; preds = %268
  %278 = load ptr, ptr %10, align 8, !tbaa !5
  %279 = load i32, ptr %26, align 4, !tbaa !21
  %280 = sext i32 %279 to i64
  %281 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %278, i64 noundef %280) #5
  %282 = load i32, ptr %281, align 4, !tbaa !21
  %283 = sext i32 %282 to i64
  %284 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %283) #5
  %285 = load i32, ptr %284, align 4, !tbaa !21
  %286 = add nsw i32 %285, 1
  store i32 %286, ptr %284, align 4, !tbaa !21
  br label %287

287:                                              ; preds = %277
  %288 = load i32, ptr %26, align 4, !tbaa !21
  %289 = add nsw i32 %288, 1
  store i32 %289, ptr %26, align 4, !tbaa !21
  br label %268, !llvm.loop !34

290:                                              ; preds = %272
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #5
  %291 = load i32, ptr %8, align 4, !tbaa !21
  store i32 %291, ptr %27, align 4, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #5
  %292 = getelementptr inbounds %class.HighsSparseMatrix, ptr %35, i32 0, i32 3
  %293 = load i32, ptr %15, align 4, !tbaa !21
  %294 = sext i32 %293 to i64
  %295 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %292, i64 noundef %294) #5
  %296 = load i32, ptr %295, align 4, !tbaa !21
  store i32 %296, ptr %28, align 4, !tbaa !21
  %297 = load i32, ptr %18, align 4, !tbaa !21
  %298 = getelementptr inbounds %class.HighsSparseMatrix, ptr %35, i32 0, i32 3
  %299 = load i32, ptr %15, align 4, !tbaa !21
  %300 = sext i32 %299 to i64
  %301 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %298, i64 noundef %300) #5
  store i32 %297, ptr %301, align 4, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #5
  %302 = load i32, ptr %15, align 4, !tbaa !21
  %303 = sub nsw i32 %302, 1
  store i32 %303, ptr %29, align 4, !tbaa !21
  br label %304

304:                                              ; preds = %368, %290
  %305 = load i32, ptr %29, align 4, !tbaa !21
  %306 = icmp sge i32 %305, 0
  br i1 %306, label %308, label %307

307:                                              ; preds = %304
  store i32 14, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #5
  br label %371

308:                                              ; preds = %304
  %309 = load i32, ptr %29, align 4, !tbaa !21
  %310 = sext i32 %309 to i64
  %311 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %310) #5
  %312 = load i32, ptr %311, align 4, !tbaa !21
  %313 = load i32, ptr %27, align 4, !tbaa !21
  %314 = sub nsw i32 %313, %312
  store i32 %314, ptr %27, align 4, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #5
  %315 = getelementptr inbounds %class.HighsSparseMatrix, ptr %35, i32 0, i32 3
  %316 = load i32, ptr %29, align 4, !tbaa !21
  %317 = sext i32 %316 to i64
  %318 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %315, i64 noundef %317) #5
  %319 = load i32, ptr %318, align 4, !tbaa !21
  store i32 %319, ptr %30, align 4, !tbaa !21
  %320 = load i32, ptr %28, align 4, !tbaa !21
  %321 = load i32, ptr %27, align 4, !tbaa !21
  %322 = add nsw i32 %320, %321
  %323 = load i32, ptr %29, align 4, !tbaa !21
  %324 = sext i32 %323 to i64
  %325 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %324) #5
  store i32 %322, ptr %325, align 4, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #5
  %326 = load i32, ptr %28, align 4, !tbaa !21
  %327 = sub nsw i32 %326, 1
  store i32 %327, ptr %31, align 4, !tbaa !21
  br label %328

328:                                              ; preds = %356, %308
  %329 = load i32, ptr %31, align 4, !tbaa !21
  %330 = load i32, ptr %30, align 4, !tbaa !21
  %331 = icmp sge i32 %329, %330
  br i1 %331, label %333, label %332

332:                                              ; preds = %328
  store i32 17, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #5
  br label %359

333:                                              ; preds = %328
  %334 = getelementptr inbounds %class.HighsSparseMatrix, ptr %35, i32 0, i32 5
  %335 = load i32, ptr %31, align 4, !tbaa !21
  %336 = sext i32 %335 to i64
  %337 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %334, i64 noundef %336) #5
  %338 = load i32, ptr %337, align 4, !tbaa !21
  %339 = getelementptr inbounds %class.HighsSparseMatrix, ptr %35, i32 0, i32 5
  %340 = load i32, ptr %31, align 4, !tbaa !21
  %341 = load i32, ptr %27, align 4, !tbaa !21
  %342 = add nsw i32 %340, %341
  %343 = sext i32 %342 to i64
  %344 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %339, i64 noundef %343) #5
  store i32 %338, ptr %344, align 4, !tbaa !21
  %345 = getelementptr inbounds %class.HighsSparseMatrix, ptr %35, i32 0, i32 6
  %346 = load i32, ptr %31, align 4, !tbaa !21
  %347 = sext i32 %346 to i64
  %348 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %345, i64 noundef %347) #5
  %349 = load double, ptr %348, align 8, !tbaa !31
  %350 = getelementptr inbounds %class.HighsSparseMatrix, ptr %35, i32 0, i32 6
  %351 = load i32, ptr %31, align 4, !tbaa !21
  %352 = load i32, ptr %27, align 4, !tbaa !21
  %353 = add nsw i32 %351, %352
  %354 = sext i32 %353 to i64
  %355 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %350, i64 noundef %354) #5
  store double %349, ptr %355, align 8, !tbaa !31
  br label %356

356:                                              ; preds = %333
  %357 = load i32, ptr %31, align 4, !tbaa !21
  %358 = add nsw i32 %357, -1
  store i32 %358, ptr %31, align 4, !tbaa !21
  br label %328, !llvm.loop !35

359:                                              ; preds = %332
  %360 = load i32, ptr %30, align 4, !tbaa !21
  store i32 %360, ptr %28, align 4, !tbaa !21
  %361 = load i32, ptr %27, align 4, !tbaa !21
  %362 = load i32, ptr %30, align 4, !tbaa !21
  %363 = add nsw i32 %361, %362
  %364 = getelementptr inbounds %class.HighsSparseMatrix, ptr %35, i32 0, i32 3
  %365 = load i32, ptr %29, align 4, !tbaa !21
  %366 = sext i32 %365 to i64
  %367 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %364, i64 noundef %366) #5
  store i32 %363, ptr %367, align 4, !tbaa !21
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #5
  br label %368

368:                                              ; preds = %359
  %369 = load i32, ptr %29, align 4, !tbaa !21
  %370 = add nsw i32 %369, -1
  store i32 %370, ptr %29, align 4, !tbaa !21
  br label %304, !llvm.loop !36

371:                                              ; preds = %307
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #5
  store i32 0, ptr %32, align 4, !tbaa !21
  br label %372

372:                                              ; preds = %430, %371
  %373 = load i32, ptr %32, align 4, !tbaa !21
  %374 = load i32, ptr %7, align 4, !tbaa !21
  %375 = icmp slt i32 %373, %374
  br i1 %375, label %377, label %376

376:                                              ; preds = %372
  store i32 20, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #5
  br label %433

377:                                              ; preds = %372
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #5
  %378 = load ptr, ptr %9, align 8, !tbaa !5
  %379 = load i32, ptr %32, align 4, !tbaa !21
  %380 = sext i32 %379 to i64
  %381 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %378, i64 noundef %380) #5
  %382 = load i32, ptr %381, align 4, !tbaa !21
  store i32 %382, ptr %33, align 4, !tbaa !21
  br label %383

383:                                              ; preds = %426, %377
  %384 = load i32, ptr %33, align 4, !tbaa !21
  %385 = load ptr, ptr %9, align 8, !tbaa !5
  %386 = load i32, ptr %32, align 4, !tbaa !21
  %387 = add nsw i32 %386, 1
  %388 = sext i32 %387 to i64
  %389 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %385, i64 noundef %388) #5
  %390 = load i32, ptr %389, align 4, !tbaa !21
  %391 = icmp slt i32 %384, %390
  br i1 %391, label %393, label %392

392:                                              ; preds = %383
  store i32 23, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #5
  br label %429

393:                                              ; preds = %383
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #5
  %394 = load ptr, ptr %10, align 8, !tbaa !5
  %395 = load i32, ptr %33, align 4, !tbaa !21
  %396 = sext i32 %395 to i64
  %397 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %394, i64 noundef %396) #5
  %398 = load i32, ptr %397, align 4, !tbaa !21
  store i32 %398, ptr %34, align 4, !tbaa !21
  %399 = load i32, ptr %14, align 4, !tbaa !21
  %400 = load i32, ptr %32, align 4, !tbaa !21
  %401 = add nsw i32 %399, %400
  %402 = getelementptr inbounds %class.HighsSparseMatrix, ptr %35, i32 0, i32 5
  %403 = load i32, ptr %34, align 4, !tbaa !21
  %404 = sext i32 %403 to i64
  %405 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %404) #5
  %406 = load i32, ptr %405, align 4, !tbaa !21
  %407 = sext i32 %406 to i64
  %408 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %402, i64 noundef %407) #5
  store i32 %401, ptr %408, align 4, !tbaa !21
  %409 = load ptr, ptr %11, align 8, !tbaa !5
  %410 = load i32, ptr %33, align 4, !tbaa !21
  %411 = sext i32 %410 to i64
  %412 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %409, i64 noundef %411) #5
  %413 = load double, ptr %412, align 8, !tbaa !31
  %414 = getelementptr inbounds %class.HighsSparseMatrix, ptr %35, i32 0, i32 6
  %415 = load i32, ptr %34, align 4, !tbaa !21
  %416 = sext i32 %415 to i64
  %417 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %416) #5
  %418 = load i32, ptr %417, align 4, !tbaa !21
  %419 = sext i32 %418 to i64
  %420 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %414, i64 noundef %419) #5
  store double %413, ptr %420, align 8, !tbaa !31
  %421 = load i32, ptr %34, align 4, !tbaa !21
  %422 = sext i32 %421 to i64
  %423 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %422) #5
  %424 = load i32, ptr %423, align 4, !tbaa !21
  %425 = add nsw i32 %424, 1
  store i32 %425, ptr %423, align 4, !tbaa !21
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #5
  br label %426

426:                                              ; preds = %393
  %427 = load i32, ptr %33, align 4, !tbaa !21
  %428 = add nsw i32 %427, 1
  store i32 %428, ptr %33, align 4, !tbaa !21
  br label %383, !llvm.loop !37

429:                                              ; preds = %392
  br label %430

430:                                              ; preds = %429
  %431 = load i32, ptr %32, align 4, !tbaa !21
  %432 = add nsw i32 %431, 1
  store i32 %432, ptr %32, align 4, !tbaa !21
  br label %372, !llvm.loop !38

433:                                              ; preds = %376
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #5
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #5
  br label %434

434:                                              ; preds = %433, %255
  %435 = load i32, ptr %7, align 4, !tbaa !21
  %436 = getelementptr inbounds %class.HighsSparseMatrix, ptr %35, i32 0, i32 1
  %437 = load i32, ptr %436, align 4, !tbaa !9
  %438 = add nsw i32 %437, %435
  store i32 %438, ptr %436, align 4, !tbaa !9
  br label %439

439:                                              ; preds = %434, %254
  store i32 0, ptr %13, align 4
  br label %440

440:                                              ; preds = %439, %215
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  br label %441

441:                                              ; preds = %440, %93
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  %442 = load i32, ptr %13, align 4
  switch i32 %442, label %449 [
    i32 0, label %443
    i32 1, label %443
  ]

443:                                              ; preds = %441, %441
  ret void

444:                                              ; preds = %273
  %445 = load ptr, ptr %24, align 8
  %446 = load i32, ptr %25, align 4
  %447 = insertvalue { ptr, i32 } poison, ptr %445, 0
  %448 = insertvalue { ptr, i32 } %447, i32 %446, 1
  resume { ptr, i32 } %448

449:                                              ; preds = %441
  unreachable
}

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

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

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 = { noreturn nounwind }
attributes #5 = { 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 4}
!10 = !{!"_ZTS17HighsSparseMatrix", !11, i64 0, !12, i64 4, !12, i64 8, !13, i64 16, !13, i64 40, !13, i64 64, !17, i64 88}
!11 = !{!"_ZTS12MatrixFormat", !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 = !{!"_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", !6, i64 0, !6, i64 8, !6, i64 16}
!21 = !{!12, !12, i64 0}
!22 = !{!10, !11, i64 0}
!23 = !{!24, !24, i64 0}
!24 = !{!"bool", !7, i64 0}
!25 = !{i8 0, i8 2}
!26 = !{}
!27 = !{!10, !12, i64 8}
!28 = distinct !{!28, !29}
!29 = !{!"llvm.loop.mustprogress"}
!30 = distinct !{!30, !29}
!31 = !{!32, !32, i64 0}
!32 = !{!"double", !7, i64 0}
!33 = distinct !{!33, !29}
!34 = distinct !{!34, !29}
!35 = distinct !{!35, !29}
!36 = distinct !{!36, !29}
!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.67 = external hidden unnamed_addr constant [21 x i8], align 1
@__PRETTY_FUNCTION__._ZN17HighsSparseMatrix7addColsES_PKa = external hidden unnamed_addr constant [73 x i8], align 1
@.str.68 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.70 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.71 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.72 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.73 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.74 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.75 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.76 = external hidden unnamed_addr constant [31 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 @_ZNSt6vectorIiSaIiEE6assignEmRKi(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1 align 2

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

; 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 uwtable
declare dso_local noundef i32 @_ZNK17HighsSparseMatrix5numNzEv(ptr noundef nonnull align 8 dereferenceable(112)) 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 noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN17HighsSparseMatrix13ensureColwiseEv(ptr noundef nonnull align 8 dereferenceable(112)) local_unnamed_addr #1 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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN17HighsSparseMatrix7addColsES_PKa(ptr noundef nonnull align 8 dereferenceable(112) %0, ptr noundef nonnull %1, ptr nocapture noundef readnone %2) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.std::vector", align 8
  %5 = alloca i32, align 4
  %6 = tail call noundef zeroext i1 @_ZNK17HighsSparseMatrix9isColwiseEv(ptr noundef nonnull align 8 dereferenceable(112) %1)
  br i1 %6, label %8, label %7

7:                                                ; preds = %3
  tail call void @__assert_fail(ptr noundef nonnull @.str.67, ptr noundef nonnull @.str.52, i32 noundef 241, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN17HighsSparseMatrix7addColsES_PKa) #5
  unreachable

8:                                                ; preds = %3
  %9 = getelementptr inbounds i8, ptr %1, i64 4
  %10 = load i32, ptr %9, align 4, !tbaa !5
  %11 = tail call noundef i32 @_ZNK17HighsSparseMatrix5numNzEv(ptr noundef nonnull align 8 dereferenceable(112) %1)
  %12 = getelementptr inbounds i8, ptr %1, i64 16
  %13 = getelementptr inbounds i8, ptr %1, i64 64
  %14 = getelementptr inbounds i8, ptr %1, i64 88
  %15 = tail call noundef zeroext i1 @_ZNK17HighsSparseMatrix8formatOkEv(ptr noundef nonnull align 8 dereferenceable(112) %0)
  br i1 %15, label %17, label %16

16:                                               ; preds = %8
  tail call void @__assert_fail(ptr noundef nonnull @.str.53, ptr noundef nonnull @.str.52, i32 noundef 248, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN17HighsSparseMatrix7addColsES_PKa) #5
  unreachable

17:                                               ; preds = %8
  %18 = load i32, ptr %0, align 8, !tbaa !20
  %.not = icmp eq i32 %18, 3
  br i1 %.not, label %19, label %20

19:                                               ; preds = %17
  tail call void @__assert_fail(ptr noundef nonnull @.str.68, ptr noundef nonnull @.str.52, i32 noundef 253, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN17HighsSparseMatrix7addColsES_PKa) #5
  unreachable

20:                                               ; preds = %17
  %21 = icmp sgt i32 %10, -1
  br i1 %21, label %23, label %22

22:                                               ; preds = %20
  tail call void @__assert_fail(ptr noundef nonnull @.str.70, ptr noundef nonnull @.str.52, i32 noundef 258, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN17HighsSparseMatrix7addColsES_PKa) #5
  unreachable

23:                                               ; preds = %20
  %24 = icmp sgt i32 %11, -1
  br i1 %24, label %26, label %25

25:                                               ; preds = %23
  tail call void @__assert_fail(ptr noundef nonnull @.str.71, ptr noundef nonnull @.str.52, i32 noundef 259, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN17HighsSparseMatrix7addColsES_PKa) #5
  unreachable

26:                                               ; preds = %23
  %27 = icmp eq i32 %10, 0
  %28 = icmp eq i32 %11, 0
  br i1 %27, label %29, label %31

29:                                               ; preds = %26
  br i1 %28, label %.loopexit, label %30

30:                                               ; preds = %29
  tail call void @__assert_fail(ptr noundef nonnull @.str.72, ptr noundef nonnull @.str.52, i32 noundef 263, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN17HighsSparseMatrix7addColsES_PKa) #5
  unreachable

31:                                               ; preds = %26
  br i1 %28, label %41, label %32

32:                                               ; preds = %31
  %33 = tail call noundef zeroext i1 @_ZNKSt6vectorIiSaIiEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #6
  br i1 %33, label %34, label %35

34:                                               ; preds = %32
  tail call void @__assert_fail(ptr noundef nonnull @.str.73, ptr noundef nonnull @.str.52, i32 noundef 270, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN17HighsSparseMatrix7addColsES_PKa) #5
  unreachable

35:                                               ; preds = %32
  %36 = tail call noundef zeroext i1 @_ZNKSt6vectorIiSaIiEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  br i1 %36, label %37, label %38

37:                                               ; preds = %35
  tail call void @__assert_fail(ptr noundef nonnull @.str.74, ptr noundef nonnull @.str.52, i32 noundef 271, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN17HighsSparseMatrix7addColsES_PKa) #5
  unreachable

38:                                               ; preds = %35
  %39 = tail call noundef zeroext i1 @_ZNKSt6vectorIdSaIdEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #6
  br i1 %39, label %40, label %41

40:                                               ; preds = %38
  tail call void @__assert_fail(ptr noundef nonnull @.str.75, ptr noundef nonnull @.str.52, i32 noundef 272, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN17HighsSparseMatrix7addColsES_PKa) #5
  unreachable

41:                                               ; preds = %38, %31
  %42 = getelementptr inbounds i8, ptr %0, i64 4
  %43 = load i32, ptr %42, align 4, !tbaa !5
  %44 = getelementptr inbounds i8, ptr %0, i64 8
  %45 = load i32, ptr %44, align 8, !tbaa !21
  %46 = tail call noundef i32 @_ZNK17HighsSparseMatrix5numNzEv(ptr noundef nonnull align 8 dereferenceable(112) %0)
  %47 = icmp sgt i32 %45, 0
  %48 = select i1 %28, i1 true, i1 %47
  br i1 %48, label %50, label %49

49:                                               ; preds = %41
  tail call void @__assert_fail(ptr noundef nonnull @.str.76, ptr noundef nonnull @.str.52, i32 noundef 278, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN17HighsSparseMatrix7addColsES_PKa) #5
  unreachable

50:                                               ; preds = %41
  %51 = load i32, ptr %0, align 8, !tbaa !20
  %52 = icmp eq i32 %51, 2
  %53 = icmp sgt i32 %11, %46
  %or.cond = and i1 %53, %52
  br i1 %or.cond, label %54, label %55

54:                                               ; preds = %50
  tail call void @_ZN17HighsSparseMatrix13ensureColwiseEv(ptr noundef nonnull align 8 dereferenceable(112) %0)
  br label %55

55:                                               ; preds = %54, %50
  %56 = add nsw i32 %43, %10
  %57 = add nsw i32 %46, %11
  %58 = tail call noundef zeroext i1 @_ZNK17HighsSparseMatrix9isColwiseEv(ptr noundef nonnull align 8 dereferenceable(112) %0)
  br i1 %58, label %59, label %86

59:                                               ; preds = %55
  %60 = getelementptr inbounds i8, ptr %0, i64 16
  %61 = add nsw i32 %56, 1
  %62 = sext i32 %61 to i64
  tail call void @_ZNSt6vectorIiSaIiEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %60, i64 noundef %62)
  %63 = sext i32 %43 to i64
  %wide.trip.count182 = zext nneg i32 %10 to i64
  br i1 %28, label %.lr.ph151, label %.lr.ph149

.lr.ph149:                                        ; preds = %59, %.lr.ph149
  %indvars.iv172 = phi i64 [ %indvars.iv.next173, %.lr.ph149 ], [ 0, %59 ]
  %64 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %indvars.iv172) #6
  %65 = load i32, ptr %64, align 4, !tbaa !22
  %66 = add nsw i32 %65, %46
  %67 = add nsw i64 %indvars.iv172, %63
  %68 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %60, i64 noundef %67) #6
  store i32 %66, ptr %68, align 4, !tbaa !22
  %indvars.iv.next173 = add nuw nsw i64 %indvars.iv172, 1
  %exitcond177.not = icmp eq i64 %indvars.iv.next173, %wide.trip.count182
  br i1 %exitcond177.not, label %.loopexit125, label %.lr.ph149, !llvm.loop !23

.lr.ph151:                                        ; preds = %59, %.lr.ph151
  %indvars.iv178 = phi i64 [ %indvars.iv.next179, %.lr.ph151 ], [ 0, %59 ]
  %69 = add nsw i64 %indvars.iv178, %63
  %70 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %60, i64 noundef %69) #6
  store i32 %46, ptr %70, align 4, !tbaa !22
  %indvars.iv.next179 = add nuw nsw i64 %indvars.iv178, 1
  %exitcond183.not = icmp eq i64 %indvars.iv.next179, %wide.trip.count182
  br i1 %exitcond183.not, label %.loopexit125, label %.lr.ph151, !llvm.loop !25

.loopexit125:                                     ; preds = %.lr.ph149, %.lr.ph151
  %71 = sext i32 %56 to i64
  %72 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %60, i64 noundef %71) #6
  store i32 %57, ptr %72, align 4, !tbaa !22
  %73 = load i32, ptr %42, align 4, !tbaa !5
  %74 = add nsw i32 %73, %10
  store i32 %74, ptr %42, align 4, !tbaa !5
  br i1 %28, label %.loopexit, label %.lr.ph154.preheader

.lr.ph154.preheader:                              ; preds = %.loopexit125
  %75 = getelementptr inbounds i8, ptr %0, i64 64
  %76 = sext i32 %57 to i64
  tail call void @_ZNSt6vectorIiSaIiEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %75, i64 noundef %76)
  %77 = getelementptr inbounds i8, ptr %0, i64 88
  tail call void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %77, i64 noundef %76)
  %78 = sext i32 %46 to i64
  %smax187 = tail call i32 @llvm.smax.i32(i32 %11, i32 1)
  %wide.trip.count188 = zext nneg i32 %smax187 to i64
  br label %.lr.ph154

.lr.ph154:                                        ; preds = %.lr.ph154.preheader, %.lr.ph154
  %indvars.iv184 = phi i64 [ 0, %.lr.ph154.preheader ], [ %indvars.iv.next185, %.lr.ph154 ]
  %79 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %indvars.iv184) #6
  %80 = load i32, ptr %79, align 4, !tbaa !22
  %81 = add nsw i64 %indvars.iv184, %78
  %82 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %75, i64 noundef %81) #6
  store i32 %80, ptr %82, align 4, !tbaa !22
  %83 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %indvars.iv184) #6
  %84 = load double, ptr %83, align 8, !tbaa !26
  %85 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %77, i64 noundef %81) #6
  store double %84, ptr %85, align 8, !tbaa !26
  %indvars.iv.next185 = add nuw nsw i64 %indvars.iv184, 1
  %exitcond189.not = icmp eq i64 %indvars.iv.next185, %wide.trip.count188
  br i1 %exitcond189.not, label %.loopexit, label %.lr.ph154, !llvm.loop !28

86:                                               ; preds = %55
  br i1 %28, label %154, label %87

87:                                               ; preds = %86
  %88 = getelementptr inbounds i8, ptr %0, i64 64
  %89 = sext i32 %57 to i64
  tail call void @_ZNSt6vectorIiSaIiEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %88, i64 noundef %89)
  %90 = getelementptr inbounds i8, ptr %0, i64 88
  tail call void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %90, i64 noundef %89)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #6
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  %91 = sext i32 %45 to i64
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #6
  store i32 0, ptr %5, align 4, !tbaa !22
  invoke void @_ZNSt6vectorIiSaIiEE6assignEmRKi(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %91, ptr noundef nonnull align 4 dereferenceable(4) %5)
          to label %.lr.ph.preheader unwind label %97

.lr.ph.preheader:                                 ; preds = %87
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #6
  %wide.trip.count = zext nneg i32 %11 to i64
  br label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph
  %92 = getelementptr inbounds i8, ptr %0, i64 16
  %93 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %92, i64 noundef %91) #6
  %94 = load i32, ptr %93, align 4, !tbaa !22
  %95 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %92, i64 noundef %91) #6
  store i32 %57, ptr %95, align 4, !tbaa !22
  br i1 %47, label %.lr.ph141.preheader, label %.lr.ph146.preheader

.lr.ph141.preheader:                              ; preds = %._crit_edge
  %96 = zext nneg i32 %45 to i64
  br label %.lr.ph141

97:                                               ; preds = %87
  %98 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #6
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #6
  resume { ptr, i32 } %98

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %.lr.ph ]
  %99 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %indvars.iv) #6
  %100 = load i32, ptr %99, align 4, !tbaa !22
  %101 = sext i32 %100 to i64
  %102 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %101) #6
  %103 = load i32, ptr %102, align 4, !tbaa !22
  %104 = add nsw i32 %103, 1
  store i32 %104, ptr %102, align 4, !tbaa !22
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !29

.lr.ph146.preheader:                              ; preds = %._crit_edge135, %._crit_edge
  %smax169 = call i32 @llvm.smax.i32(i32 %10, i32 1)
  %wide.trip.count170 = zext nneg i32 %smax169 to i64
  br label %.lr.ph146

.lr.ph141:                                        ; preds = %.lr.ph141.preheader, %._crit_edge135
  %indvars.iv160 = phi i64 [ %96, %.lr.ph141.preheader ], [ %indvars.iv.next161, %._crit_edge135 ]
  %.0115138 = phi i32 [ %94, %.lr.ph141.preheader ], [ %109, %._crit_edge135 ]
  %.0116137 = phi i32 [ %11, %.lr.ph141.preheader ], [ %107, %._crit_edge135 ]
  %indvars.iv.next161 = add nsw i64 %indvars.iv160, -1
  %105 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv.next161) #6
  %106 = load i32, ptr %105, align 4, !tbaa !22
  %107 = sub nsw i32 %.0116137, %106
  %108 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %92, i64 noundef %indvars.iv.next161) #6
  %109 = load i32, ptr %108, align 4, !tbaa !22
  %110 = add nsw i32 %107, %.0115138
  %111 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv.next161) #6
  store i32 %110, ptr %111, align 4, !tbaa !22
  %.not124.not131 = icmp sgt i32 %.0115138, %109
  br i1 %.not124.not131, label %.lr.ph134.preheader, label %._crit_edge135

.lr.ph134.preheader:                              ; preds = %.lr.ph141
  %112 = sext i32 %.0115138 to i64
  %113 = sext i32 %107 to i64
  %114 = sext i32 %109 to i64
  br label %.lr.ph134

._crit_edge135:                                   ; preds = %.lr.ph134, %.lr.ph141
  %115 = add nsw i32 %109, %107
  %116 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %92, i64 noundef %indvars.iv.next161) #6
  store i32 %115, ptr %116, align 4, !tbaa !22
  %117 = icmp sgt i64 %indvars.iv160, 1
  br i1 %117, label %.lr.ph141, label %.lr.ph146.preheader, !llvm.loop !30

.lr.ph134:                                        ; preds = %.lr.ph134.preheader, %.lr.ph134
  %indvars.iv157 = phi i64 [ %112, %.lr.ph134.preheader ], [ %indvars.iv.next158, %.lr.ph134 ]
  %indvars.iv.next158 = add nsw i64 %indvars.iv157, -1
  %118 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %88, i64 noundef %indvars.iv.next158) #6
  %119 = load i32, ptr %118, align 4, !tbaa !22
  %120 = add nsw i64 %indvars.iv.next158, %113
  %121 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %88, i64 noundef %120) #6
  store i32 %119, ptr %121, align 4, !tbaa !22
  %122 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %90, i64 noundef %indvars.iv.next158) #6
  %123 = load double, ptr %122, align 8, !tbaa !26
  %124 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %90, i64 noundef %120) #6
  store double %123, ptr %124, align 8, !tbaa !26
  %.not124.not = icmp sgt i64 %indvars.iv.next158, %114
  br i1 %.not124.not, label %.lr.ph134, label %._crit_edge135, !llvm.loop !31

.loopexit128:                                     ; preds = %133, %.lr.ph146
  %exitcond171.not = icmp eq i64 %indvars.iv.next167, %wide.trip.count170
  br i1 %exitcond171.not, label %._crit_edge147, label %.lr.ph146, !llvm.loop !32

._crit_edge147:                                   ; preds = %.loopexit128
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #6
  br label %154

.lr.ph146:                                        ; preds = %.lr.ph146.preheader, %.loopexit128
  %indvars.iv166 = phi i64 [ 0, %.lr.ph146.preheader ], [ %indvars.iv.next167, %.loopexit128 ]
  %125 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %indvars.iv166) #6
  %126 = load i32, ptr %125, align 4, !tbaa !22
  %indvars.iv.next167 = add nuw nsw i64 %indvars.iv166, 1
  %127 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %indvars.iv.next167) #6
  %128 = load i32, ptr %127, align 4, !tbaa !22
  %129 = icmp slt i32 %126, %128
  br i1 %129, label %.lr.ph144, label %.loopexit128

.lr.ph144:                                        ; preds = %.lr.ph146
  %130 = sext i32 %126 to i64
  %131 = trunc i64 %indvars.iv166 to i32
  %132 = add i32 %43, %131
  br label %133

133:                                              ; preds = %.lr.ph144, %133
  %indvars.iv163 = phi i64 [ %130, %.lr.ph144 ], [ %indvars.iv.next164, %133 ]
  %134 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %indvars.iv163) #6
  %135 = load i32, ptr %134, align 4, !tbaa !22
  %136 = sext i32 %135 to i64
  %137 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %136) #6
  %138 = load i32, ptr %137, align 4, !tbaa !22
  %139 = sext i32 %138 to i64
  %140 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %88, i64 noundef %139) #6
  store i32 %132, ptr %140, align 4, !tbaa !22
  %141 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %indvars.iv163) #6
  %142 = load double, ptr %141, align 8, !tbaa !26
  %143 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %136) #6
  %144 = load i32, ptr %143, align 4, !tbaa !22
  %145 = sext i32 %144 to i64
  %146 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %90, i64 noundef %145) #6
  store double %142, ptr %146, align 8, !tbaa !26
  %147 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %136) #6
  %148 = load i32, ptr %147, align 4, !tbaa !22
  %149 = add nsw i32 %148, 1
  store i32 %149, ptr %147, align 4, !tbaa !22
  %indvars.iv.next164 = add nsw i64 %indvars.iv163, 1
  %150 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %indvars.iv.next167) #6
  %151 = load i32, ptr %150, align 4, !tbaa !22
  %152 = sext i32 %151 to i64
  %153 = icmp slt i64 %indvars.iv.next164, %152
  br i1 %153, label %133, label %.loopexit128, !llvm.loop !33

154:                                              ; preds = %._crit_edge147, %86
  %155 = load i32, ptr %42, align 4, !tbaa !5
  %156 = add nsw i32 %155, %10
  store i32 %156, ptr %42, align 4, !tbaa !5
  br label %.loopexit

.loopexit:                                        ; preds = %.lr.ph154, %.loopexit125, %154, %29
  ret void
}

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #4

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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, !10, i64 4}
!6 = !{!"_ZTS17HighsSparseMatrix", !7, i64 0, !10, i64 4, !10, i64 8, !11, i64 16, !11, i64 40, !11, i64 64, !16, i64 88}
!7 = !{!"_ZTS12MatrixFormat", !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 = !{!"_ZTSSt6vectorIdSaIdEE", !17, i64 0}
!17 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !15, i64 0, !15, i64 8, !15, i64 16}
!20 = !{!6, !7, i64 0}
!21 = !{!6, !10, i64 8}
!22 = !{!10, !10, i64 0}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = distinct !{!25, !24}
!26 = !{!27, !27, i64 0}
!27 = !{!"double", !8, i64 0}
!28 = distinct !{!28, !24}
!29 = distinct !{!29, !24}
!30 = distinct !{!30, !24}
!31 = distinct !{!31, !24}
!32 = distinct !{!32, !24}
!33 = distinct !{!33, !24}


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