; LLVM IR from ERGO-Code/HiGHS :: src/util/HighsSparseMatrix.ll (ZN17HighsSparseMatrix24createRowwisePartitionedERKS_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.98 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.99 = external hidden unnamed_addr constant [19 x i8], align 1
@__PRETTY_FUNCTION__._ZN17HighsSparseMatrix24createRowwisePartitionedERKS_PKa = external hidden unnamed_addr constant [92 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 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 @_ZN17HighsSparseMatrix24createRowwisePartitionedERKS_PKa(ptr noundef nonnull align 8 dereferenceable(112) %0, ptr noundef nonnull align 8 dereferenceable(112) %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 i8, align 1
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca %"class.std::vector", align 8
  %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
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  %34 = alloca i32, align 4
  %35 = alloca i32, align 4
  %36 = alloca i32, align 4
  %37 = 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
  %38 = load ptr, ptr %4, align 8
  %39 = load ptr, ptr %5, align 8, !tbaa !5
  %40 = call noundef zeroext i1 @_ZNK17HighsSparseMatrix8formatOkEv(ptr noundef nonnull align 8 dereferenceable(112) %39)
  br i1 %40, label %41, label %42

41:                                               ; preds = %3
  br label %44

42:                                               ; preds = %3
  call void @__assert_fail(ptr noundef @.str.98, ptr noundef @.str.52, i32 noundef 1307, ptr noundef @__PRETTY_FUNCTION__._ZN17HighsSparseMatrix24createRowwisePartitionedERKS_PKa) #4
  unreachable

43:                                               ; No predecessors!
  br label %44

44:                                               ; preds = %43, %41
  %45 = load ptr, ptr %5, align 8, !tbaa !5
  %46 = call noundef zeroext i1 @_ZNK17HighsSparseMatrix9isColwiseEv(ptr noundef nonnull align 8 dereferenceable(112) %45)
  br i1 %46, label %47, label %48

47:                                               ; preds = %44
  br label %50

48:                                               ; preds = %44
  call void @__assert_fail(ptr noundef @.str.99, ptr noundef @.str.52, i32 noundef 1308, ptr noundef @__PRETTY_FUNCTION__._ZN17HighsSparseMatrix24createRowwisePartitionedERKS_PKa) #4
  unreachable

49:                                               ; No predecessors!
  br label %50

50:                                               ; preds = %49, %47
  %51 = call noundef zeroext i1 @_ZNK17HighsSparseMatrix8formatOkEv(ptr noundef nonnull align 8 dereferenceable(112) %38)
  br i1 %51, label %52, label %53

52:                                               ; preds = %50
  br label %55

53:                                               ; preds = %50
  call void @__assert_fail(ptr noundef @.str.53, ptr noundef @.str.52, i32 noundef 1309, ptr noundef @__PRETTY_FUNCTION__._ZN17HighsSparseMatrix24createRowwisePartitionedERKS_PKa) #4
  unreachable

54:                                               ; No predecessors!
  br label %55

55:                                               ; preds = %54, %52
  call void @llvm.lifetime.start.p0(i64 1, ptr %7) #5
  %56 = load ptr, ptr %6, align 8, !tbaa !5
  %57 = icmp eq ptr %56, null
  %58 = zext i1 %57 to i8
  store i8 %58, ptr %7, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  %59 = load ptr, ptr %5, align 8, !tbaa !5
  %60 = getelementptr inbounds %class.HighsSparseMatrix, ptr %59, i32 0, i32 1
  %61 = load i32, ptr %60, align 4, !tbaa !11
  store i32 %61, ptr %8, align 4, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  %62 = load ptr, ptr %5, align 8, !tbaa !5
  %63 = getelementptr inbounds %class.HighsSparseMatrix, ptr %62, i32 0, i32 2
  %64 = load i32, ptr %63, align 8, !tbaa !24
  store i32 %64, ptr %9, align 4, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  %65 = load ptr, ptr %5, align 8, !tbaa !5
  %66 = call noundef i32 @_ZNK17HighsSparseMatrix5numNzEv(ptr noundef nonnull align 8 dereferenceable(112) %65)
  store i32 %66, ptr %10, align 4, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %67 = load ptr, ptr %5, align 8, !tbaa !5
  %68 = getelementptr inbounds %class.HighsSparseMatrix, ptr %67, i32 0, i32 3
  store ptr %68, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %69 = load ptr, ptr %5, align 8, !tbaa !5
  %70 = getelementptr inbounds %class.HighsSparseMatrix, ptr %69, i32 0, i32 5
  store ptr %70, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %71 = load ptr, ptr %5, align 8, !tbaa !5
  %72 = getelementptr inbounds %class.HighsSparseMatrix, ptr %71, i32 0, i32 6
  store ptr %72, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %73 = getelementptr inbounds %class.HighsSparseMatrix, ptr %38, i32 0, i32 3
  store ptr %73, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %74 = getelementptr inbounds %class.HighsSparseMatrix, ptr %38, i32 0, i32 4
  store ptr %74, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %75 = getelementptr inbounds %class.HighsSparseMatrix, ptr %38, i32 0, i32 5
  store ptr %75, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  %76 = getelementptr inbounds %class.HighsSparseMatrix, ptr %38, i32 0, i32 6
  store ptr %76, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %18) #5
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #5
  %77 = load ptr, ptr %14, align 8, !tbaa !5
  %78 = load i32, ptr %9, align 4, !tbaa !23
  %79 = add nsw i32 %78, 1
  %80 = sext i32 %79 to i64
  invoke void @_ZNSt6vectorIiSaIiEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %77, i64 noundef %80)
          to label %81 unwind label %94

81:                                               ; preds = %55
  %82 = load ptr, ptr %15, align 8, !tbaa !5
  %83 = load i32, ptr %9, align 4, !tbaa !23
  %84 = sext i32 %83 to i64
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  store i32 0, ptr %21, align 4, !tbaa !23
  invoke void @_ZNSt6vectorIiSaIiEE6assignEmRKi(ptr noundef nonnull align 8 dereferenceable(24) %82, i64 noundef %84, ptr noundef nonnull align 4 dereferenceable(4) %21)
          to label %85 unwind label %98

85:                                               ; preds = %81
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  %86 = load i32, ptr %9, align 4, !tbaa !23
  %87 = sext i32 %86 to i64
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #5
  store i32 0, ptr %22, align 4, !tbaa !23
  invoke void @_ZNSt6vectorIiSaIiEE6assignEmRKi(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %87, ptr noundef nonnull align 4 dereferenceable(4) %22)
          to label %88 unwind label %102

88:                                               ; preds = %85
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #5
  store i32 0, ptr %23, align 4, !tbaa !23
  br label %89

89:                                               ; preds = %180, %88
  %90 = load i32, ptr %23, align 4, !tbaa !23
  %91 = load i32, ptr %8, align 4, !tbaa !23
  %92 = icmp slt i32 %90, %91
  br i1 %92, label %106, label %93

93:                                               ; preds = %89
  store i32 2, ptr %24, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #5
  br label %183

94:                                               ; preds = %253, %249, %55
  %95 = landingpad { ptr, i32 }
          cleanup
  %96 = extractvalue { ptr, i32 } %95, 0
  store ptr %96, ptr %19, align 8
  %97 = extractvalue { ptr, i32 } %95, 1
  store i32 %97, ptr %20, align 4
  br label %374

98:                                               ; preds = %81
  %99 = landingpad { ptr, i32 }
          cleanup
  %100 = extractvalue { ptr, i32 } %99, 0
  store ptr %100, ptr %19, align 8
  %101 = extractvalue { ptr, i32 } %99, 1
  store i32 %101, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  br label %374

102:                                              ; preds = %85
  %103 = landingpad { ptr, i32 }
          cleanup
  %104 = extractvalue { ptr, i32 } %103, 0
  store ptr %104, ptr %19, align 8
  %105 = extractvalue { ptr, i32 } %103, 1
  store i32 %105, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  br label %374

106:                                              ; preds = %89
  %107 = load i8, ptr %7, align 1, !tbaa !9, !range !25, !noundef !26
  %108 = trunc i8 %107 to i1
  br i1 %108, label %116, label %109

109:                                              ; preds = %106
  %110 = load ptr, ptr %6, align 8, !tbaa !5
  %111 = load i32, ptr %23, align 4, !tbaa !23
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds i8, ptr %110, i64 %112
  %114 = load i8, ptr %113, align 1, !tbaa !27
  %115 = icmp ne i8 %114, 0
  br i1 %115, label %116, label %148

116:                                              ; preds = %109, %106
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #5
  %117 = load ptr, ptr %11, align 8, !tbaa !5
  %118 = load i32, ptr %23, align 4, !tbaa !23
  %119 = sext i32 %118 to i64
  %120 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %117, i64 noundef %119) #5
  %121 = load i32, ptr %120, align 4, !tbaa !23
  store i32 %121, ptr %25, align 4, !tbaa !23
  br label %122

122:                                              ; preds = %144, %116
  %123 = load i32, ptr %25, align 4, !tbaa !23
  %124 = load ptr, ptr %11, align 8, !tbaa !5
  %125 = load i32, ptr %23, align 4, !tbaa !23
  %126 = add nsw i32 %125, 1
  %127 = sext i32 %126 to i64
  %128 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %124, i64 noundef %127) #5
  %129 = load i32, ptr %128, align 4, !tbaa !23
  %130 = icmp slt i32 %123, %129
  br i1 %130, label %132, label %131

131:                                              ; preds = %122
  store i32 5, ptr %24, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #5
  br label %147

132:                                              ; preds = %122
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #5
  %133 = load ptr, ptr %12, align 8, !tbaa !5
  %134 = load i32, ptr %25, align 4, !tbaa !23
  %135 = sext i32 %134 to i64
  %136 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %133, i64 noundef %135) #5
  %137 = load i32, ptr %136, align 4, !tbaa !23
  store i32 %137, ptr %26, align 4, !tbaa !23
  %138 = load ptr, ptr %15, align 8, !tbaa !5
  %139 = load i32, ptr %26, align 4, !tbaa !23
  %140 = sext i32 %139 to i64
  %141 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %138, i64 noundef %140) #5
  %142 = load i32, ptr %141, align 4, !tbaa !23
  %143 = add nsw i32 %142, 1
  store i32 %143, ptr %141, align 4, !tbaa !23
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #5
  br label %144

144:                                              ; preds = %132
  %145 = load i32, ptr %25, align 4, !tbaa !23
  %146 = add nsw i32 %145, 1
  store i32 %146, ptr %25, align 4, !tbaa !23
  br label %122, !llvm.loop !28

147:                                              ; preds = %131
  br label %179

148:                                              ; preds = %109
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #5
  %149 = load ptr, ptr %11, align 8, !tbaa !5
  %150 = load i32, ptr %23, align 4, !tbaa !23
  %151 = sext i32 %150 to i64
  %152 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %149, i64 noundef %151) #5
  %153 = load i32, ptr %152, align 4, !tbaa !23
  store i32 %153, ptr %27, align 4, !tbaa !23
  br label %154

154:                                              ; preds = %175, %148
  %155 = load i32, ptr %27, align 4, !tbaa !23
  %156 = load ptr, ptr %11, align 8, !tbaa !5
  %157 = load i32, ptr %23, align 4, !tbaa !23
  %158 = add nsw i32 %157, 1
  %159 = sext i32 %158 to i64
  %160 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %156, i64 noundef %159) #5
  %161 = load i32, ptr %160, align 4, !tbaa !23
  %162 = icmp slt i32 %155, %161
  br i1 %162, label %164, label %163

163:                                              ; preds = %154
  store i32 8, ptr %24, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #5
  br label %178

164:                                              ; preds = %154
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #5
  %165 = load ptr, ptr %12, align 8, !tbaa !5
  %166 = load i32, ptr %27, align 4, !tbaa !23
  %167 = sext i32 %166 to i64
  %168 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %165, i64 noundef %167) #5
  %169 = load i32, ptr %168, align 4, !tbaa !23
  store i32 %169, ptr %28, align 4, !tbaa !23
  %170 = load i32, ptr %28, align 4, !tbaa !23
  %171 = sext i32 %170 to i64
  %172 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %171) #5
  %173 = load i32, ptr %172, align 4, !tbaa !23
  %174 = add nsw i32 %173, 1
  store i32 %174, ptr %172, align 4, !tbaa !23
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #5
  br label %175

175:                                              ; preds = %164
  %176 = load i32, ptr %27, align 4, !tbaa !23
  %177 = add nsw i32 %176, 1
  store i32 %177, ptr %27, align 4, !tbaa !23
  br label %154, !llvm.loop !30

178:                                              ; preds = %163
  br label %179

179:                                              ; preds = %178, %147
  br label %180

180:                                              ; preds = %179
  %181 = load i32, ptr %23, align 4, !tbaa !23
  %182 = add nsw i32 %181, 1
  store i32 %182, ptr %23, align 4, !tbaa !23
  br label %89, !llvm.loop !31

183:                                              ; preds = %93
  %184 = load ptr, ptr %14, align 8, !tbaa !5
  %185 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %184, i64 noundef 0) #5
  store i32 0, ptr %185, align 4, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #5
  store i32 0, ptr %29, align 4, !tbaa !23
  br label %186

186:                                              ; preds = %213, %183
  %187 = load i32, ptr %29, align 4, !tbaa !23
  %188 = load i32, ptr %9, align 4, !tbaa !23
  %189 = icmp slt i32 %187, %188
  br i1 %189, label %191, label %190

190:                                              ; preds = %186
  store i32 11, ptr %24, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #5
  br label %216

191:                                              ; preds = %186
  %192 = load ptr, ptr %14, align 8, !tbaa !5
  %193 = load i32, ptr %29, align 4, !tbaa !23
  %194 = sext i32 %193 to i64
  %195 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %192, i64 noundef %194) #5
  %196 = load i32, ptr %195, align 4, !tbaa !23
  %197 = load ptr, ptr %15, align 8, !tbaa !5
  %198 = load i32, ptr %29, align 4, !tbaa !23
  %199 = sext i32 %198 to i64
  %200 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %197, i64 noundef %199) #5
  %201 = load i32, ptr %200, align 4, !tbaa !23
  %202 = add nsw i32 %196, %201
  %203 = load i32, ptr %29, align 4, !tbaa !23
  %204 = sext i32 %203 to i64
  %205 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %204) #5
  %206 = load i32, ptr %205, align 4, !tbaa !23
  %207 = add nsw i32 %202, %206
  %208 = load ptr, ptr %14, align 8, !tbaa !5
  %209 = load i32, ptr %29, align 4, !tbaa !23
  %210 = add nsw i32 %209, 1
  %211 = sext i32 %210 to i64
  %212 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %208, i64 noundef %211) #5
  store i32 %207, ptr %212, align 4, !tbaa !23
  br label %213

213:                                              ; preds = %191
  %214 = load i32, ptr %29, align 4, !tbaa !23
  %215 = add nsw i32 %214, 1
  store i32 %215, ptr %29, align 4, !tbaa !23
  br label %186, !llvm.loop !32

216:                                              ; preds = %190
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #5
  store i32 0, ptr %30, align 4, !tbaa !23
  br label %217

217:                                              ; preds = %246, %216
  %218 = load i32, ptr %30, align 4, !tbaa !23
  %219 = load i32, ptr %9, align 4, !tbaa !23
  %220 = icmp slt i32 %218, %219
  br i1 %220, label %222, label %221

221:                                              ; preds = %217
  store i32 14, ptr %24, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #5
  br label %249

222:                                              ; preds = %217
  %223 = load ptr, ptr %14, align 8, !tbaa !5
  %224 = load i32, ptr %30, align 4, !tbaa !23
  %225 = sext i32 %224 to i64
  %226 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %223, i64 noundef %225) #5
  %227 = load i32, ptr %226, align 4, !tbaa !23
  %228 = load ptr, ptr %15, align 8, !tbaa !5
  %229 = load i32, ptr %30, align 4, !tbaa !23
  %230 = sext i32 %229 to i64
  %231 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %228, i64 noundef %230) #5
  %232 = load i32, ptr %231, align 4, !tbaa !23
  %233 = add nsw i32 %227, %232
  %234 = load i32, ptr %30, align 4, !tbaa !23
  %235 = sext i32 %234 to i64
  %236 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %235) #5
  store i32 %233, ptr %236, align 4, !tbaa !23
  %237 = load ptr, ptr %14, align 8, !tbaa !5
  %238 = load i32, ptr %30, align 4, !tbaa !23
  %239 = sext i32 %238 to i64
  %240 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %237, i64 noundef %239) #5
  %241 = load i32, ptr %240, align 4, !tbaa !23
  %242 = load ptr, ptr %15, align 8, !tbaa !5
  %243 = load i32, ptr %30, align 4, !tbaa !23
  %244 = sext i32 %243 to i64
  %245 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %242, i64 noundef %244) #5
  store i32 %241, ptr %245, align 4, !tbaa !23
  br label %246

246:                                              ; preds = %222
  %247 = load i32, ptr %30, align 4, !tbaa !23
  %248 = add nsw i32 %247, 1
  store i32 %248, ptr %30, align 4, !tbaa !23
  br label %217, !llvm.loop !33

249:                                              ; preds = %221
  %250 = load ptr, ptr %16, align 8, !tbaa !5
  %251 = load i32, ptr %10, align 4, !tbaa !23
  %252 = sext i32 %251 to i64
  invoke void @_ZNSt6vectorIiSaIiEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %250, i64 noundef %252)
          to label %253 unwind label %94

253:                                              ; preds = %249
  %254 = load ptr, ptr %17, align 8, !tbaa !5
  %255 = load i32, ptr %10, align 4, !tbaa !23
  %256 = sext i32 %255 to i64
  invoke void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %254, i64 noundef %256)
          to label %257 unwind label %94

257:                                              ; preds = %253
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #5
  store i32 0, ptr %31, align 4, !tbaa !23
  br label %258

258:                                              ; preds = %365, %257
  %259 = load i32, ptr %31, align 4, !tbaa !23
  %260 = load i32, ptr %8, align 4, !tbaa !23
  %261 = icmp slt i32 %259, %260
  br i1 %261, label %263, label %262

262:                                              ; preds = %258
  store i32 17, ptr %24, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #5
  br label %368

263:                                              ; preds = %258
  %264 = load i8, ptr %7, align 1, !tbaa !9, !range !25, !noundef !26
  %265 = trunc i8 %264 to i1
  br i1 %265, label %273, label %266

266:                                              ; preds = %263
  %267 = load ptr, ptr %6, align 8, !tbaa !5
  %268 = load i32, ptr %31, align 4, !tbaa !23
  %269 = sext i32 %268 to i64
  %270 = getelementptr inbounds i8, ptr %267, i64 %269
  %271 = load i8, ptr %270, align 1, !tbaa !27
  %272 = icmp ne i8 %271, 0
  br i1 %272, label %273, label %319

273:                                              ; preds = %266, %263
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #5
  %274 = load ptr, ptr %11, align 8, !tbaa !5
  %275 = load i32, ptr %31, align 4, !tbaa !23
  %276 = sext i32 %275 to i64
  %277 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %274, i64 noundef %276) #5
  %278 = load i32, ptr %277, align 4, !tbaa !23
  store i32 %278, ptr %32, align 4, !tbaa !23
  br label %279

279:                                              ; preds = %315, %273
  %280 = load i32, ptr %32, align 4, !tbaa !23
  %281 = load ptr, ptr %11, align 8, !tbaa !5
  %282 = load i32, ptr %31, align 4, !tbaa !23
  %283 = add nsw i32 %282, 1
  %284 = sext i32 %283 to i64
  %285 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %281, i64 noundef %284) #5
  %286 = load i32, ptr %285, align 4, !tbaa !23
  %287 = icmp slt i32 %280, %286
  br i1 %287, label %289, label %288

288:                                              ; preds = %279
  store i32 20, ptr %24, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #5
  br label %318

289:                                              ; preds = %279
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #5
  %290 = load ptr, ptr %12, align 8, !tbaa !5
  %291 = load i32, ptr %32, align 4, !tbaa !23
  %292 = sext i32 %291 to i64
  %293 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %290, i64 noundef %292) #5
  %294 = load i32, ptr %293, align 4, !tbaa !23
  store i32 %294, ptr %33, align 4, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #5
  %295 = load ptr, ptr %15, align 8, !tbaa !5
  %296 = load i32, ptr %33, align 4, !tbaa !23
  %297 = sext i32 %296 to i64
  %298 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %295, i64 noundef %297) #5
  %299 = load i32, ptr %298, align 4, !tbaa !23
  %300 = add nsw i32 %299, 1
  store i32 %300, ptr %298, align 4, !tbaa !23
  store i32 %299, ptr %34, align 4, !tbaa !23
  %301 = load i32, ptr %31, align 4, !tbaa !23
  %302 = load ptr, ptr %16, align 8, !tbaa !5
  %303 = load i32, ptr %34, align 4, !tbaa !23
  %304 = sext i32 %303 to i64
  %305 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %302, i64 noundef %304) #5
  store i32 %301, ptr %305, align 4, !tbaa !23
  %306 = load ptr, ptr %13, align 8, !tbaa !5
  %307 = load i32, ptr %32, align 4, !tbaa !23
  %308 = sext i32 %307 to i64
  %309 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %306, i64 noundef %308) #5
  %310 = load double, ptr %309, align 8, !tbaa !34
  %311 = load ptr, ptr %17, align 8, !tbaa !5
  %312 = load i32, ptr %34, align 4, !tbaa !23
  %313 = sext i32 %312 to i64
  %314 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %311, i64 noundef %313) #5
  store double %310, ptr %314, align 8, !tbaa !34
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #5
  br label %315

315:                                              ; preds = %289
  %316 = load i32, ptr %32, align 4, !tbaa !23
  %317 = add nsw i32 %316, 1
  store i32 %317, ptr %32, align 4, !tbaa !23
  br label %279, !llvm.loop !36

318:                                              ; preds = %288
  br label %364

319:                                              ; preds = %266
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #5
  %320 = load ptr, ptr %11, align 8, !tbaa !5
  %321 = load i32, ptr %31, align 4, !tbaa !23
  %322 = sext i32 %321 to i64
  %323 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %320, i64 noundef %322) #5
  %324 = load i32, ptr %323, align 4, !tbaa !23
  store i32 %324, ptr %35, align 4, !tbaa !23
  br label %325

325:                                              ; preds = %360, %319
  %326 = load i32, ptr %35, align 4, !tbaa !23
  %327 = load ptr, ptr %11, align 8, !tbaa !5
  %328 = load i32, ptr %31, align 4, !tbaa !23
  %329 = add nsw i32 %328, 1
  %330 = sext i32 %329 to i64
  %331 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %327, i64 noundef %330) #5
  %332 = load i32, ptr %331, align 4, !tbaa !23
  %333 = icmp slt i32 %326, %332
  br i1 %333, label %335, label %334

334:                                              ; preds = %325
  store i32 23, ptr %24, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #5
  br label %363

335:                                              ; preds = %325
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #5
  %336 = load ptr, ptr %12, align 8, !tbaa !5
  %337 = load i32, ptr %35, align 4, !tbaa !23
  %338 = sext i32 %337 to i64
  %339 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %336, i64 noundef %338) #5
  %340 = load i32, ptr %339, align 4, !tbaa !23
  store i32 %340, ptr %36, align 4, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #5
  %341 = load i32, ptr %36, align 4, !tbaa !23
  %342 = sext i32 %341 to i64
  %343 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %342) #5
  %344 = load i32, ptr %343, align 4, !tbaa !23
  %345 = add nsw i32 %344, 1
  store i32 %345, ptr %343, align 4, !tbaa !23
  store i32 %344, ptr %37, align 4, !tbaa !23
  %346 = load i32, ptr %31, align 4, !tbaa !23
  %347 = load ptr, ptr %16, align 8, !tbaa !5
  %348 = load i32, ptr %37, align 4, !tbaa !23
  %349 = sext i32 %348 to i64
  %350 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %347, i64 noundef %349) #5
  store i32 %346, ptr %350, align 4, !tbaa !23
  %351 = load ptr, ptr %13, align 8, !tbaa !5
  %352 = load i32, ptr %35, align 4, !tbaa !23
  %353 = sext i32 %352 to i64
  %354 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %351, i64 noundef %353) #5
  %355 = load double, ptr %354, align 8, !tbaa !34
  %356 = load ptr, ptr %17, align 8, !tbaa !5
  %357 = load i32, ptr %37, align 4, !tbaa !23
  %358 = sext i32 %357 to i64
  %359 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %356, i64 noundef %358) #5
  store double %355, ptr %359, align 8, !tbaa !34
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #5
  br label %360

360:                                              ; preds = %335
  %361 = load i32, ptr %35, align 4, !tbaa !23
  %362 = add nsw i32 %361, 1
  store i32 %362, ptr %35, align 4, !tbaa !23
  br label %325, !llvm.loop !37

363:                                              ; preds = %334
  br label %364

364:                                              ; preds = %363, %318
  br label %365

365:                                              ; preds = %364
  %366 = load i32, ptr %31, align 4, !tbaa !23
  %367 = add nsw i32 %366, 1
  store i32 %367, ptr %31, align 4, !tbaa !23
  br label %258, !llvm.loop !38

368:                                              ; preds = %262
  %369 = getelementptr inbounds %class.HighsSparseMatrix, ptr %38, i32 0, i32 0
  store i32 3, ptr %369, align 8, !tbaa !39
  %370 = load i32, ptr %8, align 4, !tbaa !23
  %371 = getelementptr inbounds %class.HighsSparseMatrix, ptr %38, i32 0, i32 1
  store i32 %370, ptr %371, align 4, !tbaa !11
  %372 = load i32, ptr %9, align 4, !tbaa !23
  %373 = getelementptr inbounds %class.HighsSparseMatrix, ptr %38, i32 0, i32 2
  store i32 %372, ptr %373, align 8, !tbaa !24
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #5
  ret void

374:                                              ; preds = %102, %98, %94
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #5
  br label %375

375:                                              ; preds = %374
  %376 = load ptr, ptr %19, align 8
  %377 = load i32, ptr %20, align 4
  %378 = insertvalue { ptr, i32 } poison, ptr %376, 0
  %379 = insertvalue { ptr, i32 } %378, i32 %377, 1
  resume { ptr, i32 } %379
}

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, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = !{!12, !14, i64 4}
!12 = !{!"_ZTS17HighsSparseMatrix", !13, i64 0, !14, i64 4, !14, i64 8, !15, i64 16, !15, i64 40, !15, i64 64, !19, i64 88}
!13 = !{!"_ZTS12MatrixFormat", !7, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{!"_ZTSSt6vectorIiSaIiEE", !16, i64 0}
!16 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!19 = !{!"_ZTSSt6vectorIdSaIdEE", !20, i64 0}
!20 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!23 = !{!14, !14, i64 0}
!24 = !{!12, !14, i64 8}
!25 = !{i8 0, i8 2}
!26 = !{}
!27 = !{!7, !7, 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 = !{!35, !35, i64 0}
!35 = !{!"double", !7, i64 0}
!36 = distinct !{!36, !29}
!37 = distinct !{!37, !29}
!38 = distinct !{!38, !29}
!39 = !{!12, !13, i64 0}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"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.98 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.99 = external hidden unnamed_addr constant [19 x i8], align 1
@__PRETTY_FUNCTION__._ZN17HighsSparseMatrix24createRowwisePartitionedERKS_PKa = external hidden unnamed_addr constant [92 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 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 @_ZN17HighsSparseMatrix24createRowwisePartitionedERKS_PKa(ptr noundef nonnull align 8 dereferenceable(112) %0, ptr noundef nonnull align 8 dereferenceable(112) %1, ptr noundef readonly %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 = alloca i32, align 4
  %7 = tail call noundef zeroext i1 @_ZNK17HighsSparseMatrix8formatOkEv(ptr noundef nonnull align 8 dereferenceable(112) %1)
  br i1 %7, label %9, label %8

8:                                                ; preds = %3
  tail call void @__assert_fail(ptr noundef nonnull @.str.98, ptr noundef nonnull @.str.52, i32 noundef 1307, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN17HighsSparseMatrix24createRowwisePartitionedERKS_PKa) #4
  unreachable

9:                                                ; preds = %3
  %10 = tail call noundef zeroext i1 @_ZNK17HighsSparseMatrix9isColwiseEv(ptr noundef nonnull align 8 dereferenceable(112) %1)
  br i1 %10, label %12, label %11

11:                                               ; preds = %9
  tail call void @__assert_fail(ptr noundef nonnull @.str.99, ptr noundef nonnull @.str.52, i32 noundef 1308, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN17HighsSparseMatrix24createRowwisePartitionedERKS_PKa) #4
  unreachable

12:                                               ; preds = %9
  %13 = tail call noundef zeroext i1 @_ZNK17HighsSparseMatrix8formatOkEv(ptr noundef nonnull align 8 dereferenceable(112) %0)
  br i1 %13, label %15, label %14

14:                                               ; preds = %12
  tail call void @__assert_fail(ptr noundef nonnull @.str.53, ptr noundef nonnull @.str.52, i32 noundef 1309, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN17HighsSparseMatrix24createRowwisePartitionedERKS_PKa) #4
  unreachable

15:                                               ; preds = %12
  %16 = icmp eq ptr %2, null
  %17 = getelementptr inbounds i8, ptr %1, i64 4
  %18 = load i32, ptr %17, align 4, !tbaa !5
  %19 = getelementptr inbounds i8, ptr %1, i64 8
  %20 = load i32, ptr %19, align 8, !tbaa !20
  %21 = tail call noundef i32 @_ZNK17HighsSparseMatrix5numNzEv(ptr noundef nonnull align 8 dereferenceable(112) %1)
  %22 = getelementptr inbounds i8, ptr %1, i64 16
  %23 = getelementptr inbounds i8, ptr %1, i64 64
  %24 = getelementptr inbounds i8, ptr %1, i64 88
  %25 = getelementptr inbounds i8, ptr %0, i64 16
  %26 = getelementptr inbounds i8, ptr %0, i64 40
  %27 = getelementptr inbounds i8, ptr %0, i64 64
  %28 = getelementptr inbounds i8, ptr %0, i64 88
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #5
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  %29 = add nsw i32 %20, 1
  %30 = sext i32 %29 to i64
  invoke void @_ZNSt6vectorIiSaIiEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %25, i64 noundef %30)
          to label %31 unwind label %38

31:                                               ; preds = %15
  %32 = sext i32 %20 to i64
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #5
  store i32 0, ptr %5, align 4, !tbaa !21
  invoke void @_ZNSt6vectorIiSaIiEE6assignEmRKi(ptr noundef nonnull align 8 dereferenceable(24) %26, i64 noundef %32, ptr noundef nonnull align 4 dereferenceable(4) %5)
          to label %33 unwind label %40

33:                                               ; preds = %31
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #5
  store i32 0, ptr %6, align 4, !tbaa !21
  invoke void @_ZNSt6vectorIiSaIiEE6assignEmRKi(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %32, ptr noundef nonnull align 4 dereferenceable(4) %6)
          to label %34 unwind label %42

34:                                               ; preds = %33
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #5
  %35 = icmp sgt i32 %18, 0
  br i1 %35, label %.lr.ph131.preheader, label %._crit_edge

.lr.ph131.preheader:                              ; preds = %34
  %wide.trip.count = zext nneg i32 %18 to i64
  br label %.lr.ph131

._crit_edge:                                      ; preds = %.loopexit125, %34
  %36 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %25, i64 noundef 0) #5
  store i32 0, ptr %36, align 4, !tbaa !21
  %37 = icmp sgt i32 %20, 0
  br i1 %37, label %.lr.ph134.preheader, label %._crit_edge137

.lr.ph134.preheader:                              ; preds = %._crit_edge
  %wide.trip.count160 = zext nneg i32 %20 to i64
  br label %.lr.ph134

38:                                               ; preds = %102, %._crit_edge137, %15
  %39 = landingpad { ptr, i32 }
          cleanup
  br label %156

40:                                               ; preds = %31
  %41 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  br label %156

42:                                               ; preds = %33
  %43 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #5
  br label %156

.lr.ph131:                                        ; preds = %.lr.ph131.preheader, %.loopexit125
  %indvars.iv154 = phi i64 [ 0, %.lr.ph131.preheader ], [ %indvars.iv.next155.pre-phi, %.loopexit125 ]
  br i1 %16, label %47, label %44

44:                                               ; preds = %.lr.ph131
  %45 = getelementptr inbounds i8, ptr %2, i64 %indvars.iv154
  %46 = load i8, ptr %45, align 1, !tbaa !22
  %.not122 = icmp eq i8 %46, 0
  br i1 %.not122, label %65, label %47

47:                                               ; preds = %44, %.lr.ph131
  %48 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %indvars.iv154) #5
  %49 = load i32, ptr %48, align 4, !tbaa !21
  %50 = add nuw nsw i64 %indvars.iv154, 1
  %51 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %50) #5
  %52 = load i32, ptr %51, align 4, !tbaa !21
  %53 = icmp slt i32 %49, %52
  br i1 %53, label %.lr.ph129.preheader, label %.loopexit125

.lr.ph129.preheader:                              ; preds = %47
  %54 = sext i32 %49 to i64
  br label %.lr.ph129

.lr.ph129:                                        ; preds = %.lr.ph129.preheader, %.lr.ph129
  %indvars.iv151 = phi i64 [ %54, %.lr.ph129.preheader ], [ %indvars.iv.next152, %.lr.ph129 ]
  %55 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %23, i64 noundef %indvars.iv151) #5
  %56 = load i32, ptr %55, align 4, !tbaa !21
  %57 = sext i32 %56 to i64
  %58 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %26, i64 noundef %57) #5
  %59 = load i32, ptr %58, align 4, !tbaa !21
  %60 = add nsw i32 %59, 1
  store i32 %60, ptr %58, align 4, !tbaa !21
  %indvars.iv.next152 = add nsw i64 %indvars.iv151, 1
  %61 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %50) #5
  %62 = load i32, ptr %61, align 4, !tbaa !21
  %63 = sext i32 %62 to i64
  %64 = icmp slt i64 %indvars.iv.next152, %63
  br i1 %64, label %.lr.ph129, label %.loopexit125, !llvm.loop !23

65:                                               ; preds = %44
  %66 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %indvars.iv154) #5
  %67 = load i32, ptr %66, align 4, !tbaa !21
  %68 = add nuw nsw i64 %indvars.iv154, 1
  %69 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %68) #5
  %70 = load i32, ptr %69, align 4, !tbaa !21
  %71 = icmp slt i32 %67, %70
  br i1 %71, label %.lr.ph.preheader, label %.loopexit125

.lr.ph.preheader:                                 ; preds = %65
  %72 = sext i32 %67 to i64
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv = phi i64 [ %72, %.lr.ph.preheader ], [ %indvars.iv.next, %.lr.ph ]
  %73 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %23, i64 noundef %indvars.iv) #5
  %74 = load i32, ptr %73, align 4, !tbaa !21
  %75 = sext i32 %74 to i64
  %76 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %75) #5
  %77 = load i32, ptr %76, align 4, !tbaa !21
  %78 = add nsw i32 %77, 1
  store i32 %78, ptr %76, align 4, !tbaa !21
  %indvars.iv.next = add nsw i64 %indvars.iv, 1
  %79 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %68) #5
  %80 = load i32, ptr %79, align 4, !tbaa !21
  %81 = sext i32 %80 to i64
  %82 = icmp slt i64 %indvars.iv.next, %81
  br i1 %82, label %.lr.ph, label %.loopexit125, !llvm.loop !25

.loopexit125:                                     ; preds = %.lr.ph, %.lr.ph129, %65, %47
  %indvars.iv.next155.pre-phi = phi i64 [ %68, %65 ], [ %50, %47 ], [ %50, %.lr.ph129 ], [ %68, %.lr.ph ]
  %exitcond.not = icmp eq i64 %indvars.iv.next155.pre-phi, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph131, !llvm.loop !26

.preheader124:                                    ; preds = %.lr.ph134
  br i1 %37, label %.lr.ph136.preheader, label %._crit_edge137

.lr.ph136.preheader:                              ; preds = %.preheader124
  %wide.trip.count165 = zext nneg i32 %20 to i64
  br label %.lr.ph136

.lr.ph134:                                        ; preds = %.lr.ph134.preheader, %.lr.ph134
  %indvars.iv157 = phi i64 [ 0, %.lr.ph134.preheader ], [ %indvars.iv.next158, %.lr.ph134 ]
  %83 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %25, i64 noundef %indvars.iv157) #5
  %84 = load i32, ptr %83, align 4, !tbaa !21
  %85 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %26, i64 noundef %indvars.iv157) #5
  %86 = load i32, ptr %85, align 4, !tbaa !21
  %87 = add nsw i32 %86, %84
  %88 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv157) #5
  %89 = load i32, ptr %88, align 4, !tbaa !21
  %90 = add nsw i32 %87, %89
  %indvars.iv.next158 = add nuw nsw i64 %indvars.iv157, 1
  %91 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %25, i64 noundef %indvars.iv.next158) #5
  store i32 %90, ptr %91, align 4, !tbaa !21
  %exitcond161.not = icmp eq i64 %indvars.iv.next158, %wide.trip.count160
  br i1 %exitcond161.not, label %.preheader124, label %.lr.ph134, !llvm.loop !27

._crit_edge137:                                   ; preds = %.lr.ph136, %._crit_edge, %.preheader124
  %92 = sext i32 %21 to i64
  invoke void @_ZNSt6vectorIiSaIiEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %27, i64 noundef %92)
          to label %102 unwind label %38

.lr.ph136:                                        ; preds = %.lr.ph136.preheader, %.lr.ph136
  %indvars.iv162 = phi i64 [ 0, %.lr.ph136.preheader ], [ %indvars.iv.next163, %.lr.ph136 ]
  %93 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %25, i64 noundef %indvars.iv162) #5
  %94 = load i32, ptr %93, align 4, !tbaa !21
  %95 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %26, i64 noundef %indvars.iv162) #5
  %96 = load i32, ptr %95, align 4, !tbaa !21
  %97 = add nsw i32 %96, %94
  %98 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv162) #5
  store i32 %97, ptr %98, align 4, !tbaa !21
  %99 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %25, i64 noundef %indvars.iv162) #5
  %100 = load i32, ptr %99, align 4, !tbaa !21
  %101 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %26, i64 noundef %indvars.iv162) #5
  store i32 %100, ptr %101, align 4, !tbaa !21
  %indvars.iv.next163 = add nuw nsw i64 %indvars.iv162, 1
  %exitcond166.not = icmp eq i64 %indvars.iv.next163, %wide.trip.count165
  br i1 %exitcond166.not, label %._crit_edge137, label %.lr.ph136, !llvm.loop !28

102:                                              ; preds = %._crit_edge137
  invoke void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %28, i64 noundef %92)
          to label %.preheader unwind label %38

.preheader:                                       ; preds = %102
  br i1 %35, label %.lr.ph146.preheader, label %._crit_edge147

.lr.ph146.preheader:                              ; preds = %.preheader
  %wide.trip.count176 = zext nneg i32 %18 to i64
  br label %.lr.ph146

._crit_edge147:                                   ; preds = %.loopexit, %.preheader
  store i32 3, ptr %0, align 8, !tbaa !29
  %103 = getelementptr inbounds i8, ptr %0, i64 4
  store i32 %18, ptr %103, align 4, !tbaa !5
  %104 = getelementptr inbounds i8, ptr %0, i64 8
  store i32 %20, ptr %104, align 8, !tbaa !20
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #5
  ret void

.lr.ph146:                                        ; preds = %.lr.ph146.preheader, %.loopexit
  %indvars.iv173 = phi i64 [ 0, %.lr.ph146.preheader ], [ %indvars.iv.next174.pre-phi, %.loopexit ]
  br i1 %16, label %108, label %105

105:                                              ; preds = %.lr.ph146
  %106 = getelementptr inbounds i8, ptr %2, i64 %indvars.iv173
  %107 = load i8, ptr %106, align 1, !tbaa !22
  %.not = icmp eq i8 %107, 0
  br i1 %.not, label %132, label %108

108:                                              ; preds = %105, %.lr.ph146
  %109 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %indvars.iv173) #5
  %110 = load i32, ptr %109, align 4, !tbaa !21
  %111 = add nuw nsw i64 %indvars.iv173, 1
  %112 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %111) #5
  %113 = load i32, ptr %112, align 4, !tbaa !21
  %114 = icmp slt i32 %110, %113
  br i1 %114, label %.lr.ph143.preheader, label %.loopexit

.lr.ph143.preheader:                              ; preds = %108
  %115 = sext i32 %110 to i64
  %116 = trunc nuw nsw i64 %indvars.iv173 to i32
  br label %.lr.ph143

.lr.ph143:                                        ; preds = %.lr.ph143.preheader, %.lr.ph143
  %indvars.iv170 = phi i64 [ %115, %.lr.ph143.preheader ], [ %indvars.iv.next171, %.lr.ph143 ]
  %117 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %23, i64 noundef %indvars.iv170) #5
  %118 = load i32, ptr %117, align 4, !tbaa !21
  %119 = sext i32 %118 to i64
  %120 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %26, i64 noundef %119) #5
  %121 = load i32, ptr %120, align 4, !tbaa !21
  %122 = add nsw i32 %121, 1
  store i32 %122, ptr %120, align 4, !tbaa !21
  %123 = sext i32 %121 to i64
  %124 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %27, i64 noundef %123) #5
  store i32 %116, ptr %124, align 4, !tbaa !21
  %125 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %24, i64 noundef %indvars.iv170) #5
  %126 = load double, ptr %125, align 8, !tbaa !30
  %127 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %28, i64 noundef %123) #5
  store double %126, ptr %127, align 8, !tbaa !30
  %indvars.iv.next171 = add nsw i64 %indvars.iv170, 1
  %128 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %111) #5
  %129 = load i32, ptr %128, align 4, !tbaa !21
  %130 = sext i32 %129 to i64
  %131 = icmp slt i64 %indvars.iv.next171, %130
  br i1 %131, label %.lr.ph143, label %.loopexit, !llvm.loop !32

132:                                              ; preds = %105
  %133 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %indvars.iv173) #5
  %134 = load i32, ptr %133, align 4, !tbaa !21
  %135 = add nuw nsw i64 %indvars.iv173, 1
  %136 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %135) #5
  %137 = load i32, ptr %136, align 4, !tbaa !21
  %138 = icmp slt i32 %134, %137
  br i1 %138, label %.lr.ph140.preheader, label %.loopexit

.lr.ph140.preheader:                              ; preds = %132
  %139 = sext i32 %134 to i64
  %140 = trunc nuw nsw i64 %indvars.iv173 to i32
  br label %.lr.ph140

.lr.ph140:                                        ; preds = %.lr.ph140.preheader, %.lr.ph140
  %indvars.iv167 = phi i64 [ %139, %.lr.ph140.preheader ], [ %indvars.iv.next168, %.lr.ph140 ]
  %141 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %23, i64 noundef %indvars.iv167) #5
  %142 = load i32, ptr %141, align 4, !tbaa !21
  %143 = sext i32 %142 to i64
  %144 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %143) #5
  %145 = load i32, ptr %144, align 4, !tbaa !21
  %146 = add nsw i32 %145, 1
  store i32 %146, ptr %144, align 4, !tbaa !21
  %147 = sext i32 %145 to i64
  %148 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %27, i64 noundef %147) #5
  store i32 %140, ptr %148, align 4, !tbaa !21
  %149 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %24, i64 noundef %indvars.iv167) #5
  %150 = load double, ptr %149, align 8, !tbaa !30
  %151 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %28, i64 noundef %147) #5
  store double %150, ptr %151, align 8, !tbaa !30
  %indvars.iv.next168 = add nsw i64 %indvars.iv167, 1
  %152 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %135) #5
  %153 = load i32, ptr %152, align 4, !tbaa !21
  %154 = sext i32 %153 to i64
  %155 = icmp slt i64 %indvars.iv.next168, %154
  br i1 %155, label %.lr.ph140, label %.loopexit, !llvm.loop !33

.loopexit:                                        ; preds = %.lr.ph140, %.lr.ph143, %132, %108
  %indvars.iv.next174.pre-phi = phi i64 [ %135, %132 ], [ %111, %108 ], [ %111, %.lr.ph143 ], [ %135, %.lr.ph140 ]
  %exitcond177.not = icmp eq i64 %indvars.iv.next174.pre-phi, %wide.trip.count176
  br i1 %exitcond177.not, label %._crit_edge147, label %.lr.ph146, !llvm.loop !34

156:                                              ; preds = %42, %40, %38
  %.pn = phi { ptr, i32 } [ %39, %38 ], [ %43, %42 ], [ %41, %40 ]
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #5
  resume { ptr, i32 } %.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 = { 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, !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, !10, i64 8}
!21 = !{!10, !10, i64 0}
!22 = !{!8, !8, i64 0}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = distinct !{!25, !24}
!26 = distinct !{!26, !24}
!27 = distinct !{!27, !24}
!28 = distinct !{!28, !24}
!29 = !{!6, !7, i64 0}
!30 = !{!31, !31, i64 0}
!31 = !{!"double", !8, i64 0}
!32 = distinct !{!32, !24}
!33 = distinct !{!33, !24}
!34 = distinct !{!34, !24}


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