; LLVM IR from ebirenbaum/ParticleSolver :: cpu/src/solver/lineareq.ll (ZN10LinearData4initERK12SparseMatrix)

; 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<SparseMatrixElement, std::allocator<SparseMatrixElement>>::_Vector_impl" }
%"struct.std::_Vector_base<SparseMatrixElement, std::allocator<SparseMatrixElement>>::_Vector_impl" = type { %"struct.std::_Vector_base<SparseMatrixElement, std::allocator<SparseMatrixElement>>::_Vector_impl_data" }
%"struct.std::_Vector_base<SparseMatrixElement, std::allocator<SparseMatrixElement>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::_Rb_tree_const_iterator" = type { ptr }
%"struct.std::_Rb_tree_const_iterator.3" = type { ptr }
%struct.SparseMatrixElement = type { i32, i32, double }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"struct.std::pair" = type { i32, %"class.std::map.4" }
%"class.std::map.4" = type { %"class.std::_Rb_tree.5" }
%"class.std::_Rb_tree.5" = type { %"struct.std::_Rb_tree<int, std::pair<const int, double>, std::_Select1st<std::pair<const int, double>>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, std::pair<const int, double>, std::_Select1st<std::pair<const int, double>>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"struct.std::pair.9" = type { i32, double }
%struct.LinearData = type { i32, i32, ptr, ptr, ptr, ptr, ptr }

@.str = external hidden unnamed_addr constant [32 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [31 x i8], align 1

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN10LinearData4initERK12SparseMatrix(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 8 dereferenceable(56) %1) #0 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca %"class.std::vector", align 8
  %7 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %8 = alloca %"struct.std::_Rb_tree_const_iterator.3", align 8
  %9 = alloca %"struct.std::_Rb_tree_const_iterator.3", align 8
  %10 = alloca %"struct.std::_Rb_tree_const_iterator.3", align 8
  %11 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %12 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %13 = alloca %struct.SparseMatrixElement, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %17 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca ptr, align 8
  %22 = alloca i32, align 4
  %23 = alloca i8, align 1
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %24 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #7
  %25 = load ptr, ptr %4, align 8, !tbaa !5
  %26 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNK12SparseMatrix7getDataEv(ptr noundef nonnull align 8 dereferenceable(56) %25)
  store ptr %26, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %6) #7
  call void @_ZNSt6vectorI19SparseMatrixElementSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  call void @_ZNSt23_Rb_tree_const_iteratorISt4pairIKidEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  call void @_ZNSt23_Rb_tree_const_iteratorISt4pairIKiSt3mapIidSt4lessIiESaIS0_IS1_dEEEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  %27 = load ptr, ptr %5, align 8, !tbaa !5
  %28 = call ptr @_ZNKSt3mapIiS_IidSt4lessIiESaISt4pairIKidEEES1_SaIS2_IS3_S6_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %27) #7
  %29 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator.3", ptr %9, i32 0, i32 0
  store ptr %28, ptr %29, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %8, ptr align 8 %9, i64 8, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  br label %30

30:                                               ; preds = %65, %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  %31 = load ptr, ptr %5, align 8, !tbaa !5
  %32 = call ptr @_ZNKSt3mapIiS_IidSt4lessIiESaISt4pairIKidEEES1_SaIS2_IS3_S6_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %31) #7
  %33 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator.3", ptr %10, i32 0, i32 0
  store ptr %32, ptr %33, align 8
  %34 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorISt4pairIKiSt3mapIidSt4lessIiESaIS0_IS1_dEEEEESB_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  br i1 %34, label %35, label %67

35:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  %36 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIKiSt3mapIidSt4lessIiESaIS0_IS1_dEEEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #7
  %37 = getelementptr inbounds %"struct.std::pair", ptr %36, i32 0, i32 1
  %38 = call ptr @_ZNKSt3mapIidSt4lessIiESaISt4pairIKidEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %37) #7
  %39 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %11, i32 0, i32 0
  store ptr %38, ptr %39, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %7, ptr align 8 %11, i64 8, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  br label %40

40:                                               ; preds = %58, %35
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  %41 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIKiSt3mapIidSt4lessIiESaIS0_IS1_dEEEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #7
  %42 = getelementptr inbounds %"struct.std::pair", ptr %41, i32 0, i32 1
  %43 = call ptr @_ZNKSt3mapIidSt4lessIiESaISt4pairIKidEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %42) #7
  %44 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %12, i32 0, i32 0
  store ptr %43, ptr %44, align 8
  %45 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorISt4pairIKidEES5_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  br i1 %45, label %46, label %64

46:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #7
  %47 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIKiSt3mapIidSt4lessIiESaIS0_IS1_dEEEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #7
  %48 = getelementptr inbounds %"struct.std::pair", ptr %47, i32 0, i32 0
  %49 = load i32, ptr %48, align 8, !tbaa !10
  %50 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIKidEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  %51 = getelementptr inbounds %"struct.std::pair.9", ptr %50, i32 0, i32 0
  %52 = load i32, ptr %51, align 8, !tbaa !22
  %53 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIKidEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  %54 = getelementptr inbounds %"struct.std::pair.9", ptr %53, i32 0, i32 1
  %55 = load double, ptr %54, align 8, !tbaa !25
  invoke void @_ZN19SparseMatrixElementC2Ejjd(ptr noundef nonnull align 8 dereferenceable(16) %13, i32 noundef %49, i32 noundef %52, double noundef %55)
          to label %56 unwind label %60

56:                                               ; preds = %46
  invoke void @_ZNSt6vectorI19SparseMatrixElementSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(16) %13)
          to label %57 unwind label %60

57:                                               ; preds = %56
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #7
  br label %58

58:                                               ; preds = %57
  %59 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorISt4pairIKidEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  br label %40, !llvm.loop !26

60:                                               ; preds = %56, %46
  %61 = landingpad { ptr, i32 }
          cleanup
  %62 = extractvalue { ptr, i32 } %61, 0
  store ptr %62, ptr %14, align 8
  %63 = extractvalue { ptr, i32 } %61, 1
  store i32 %63, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #7
  br label %197

64:                                               ; preds = %40
  br label %65

65:                                               ; preds = %64
  %66 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorISt4pairIKiSt3mapIidSt4lessIiESaIS0_IS1_dEEEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #7
  br label %30, !llvm.loop !28

67:                                               ; preds = %30
  %68 = call ptr @_ZNSt6vectorI19SparseMatrixElementSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #7
  %69 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %16, i32 0, i32 0
  store ptr %68, ptr %69, align 8
  %70 = call ptr @_ZNSt6vectorI19SparseMatrixElementSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #7
  %71 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %17, i32 0, i32 0
  store ptr %70, ptr %71, align 8
  %72 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %16, i32 0, i32 0
  %73 = load ptr, ptr %72, align 8
  %74 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %17, i32 0, i32 0
  %75 = load ptr, ptr %74, align 8
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIP19SparseMatrixElementSt6vectorIS2_SaIS2_EEEEEvT_S8_(ptr %73, ptr %75)
          to label %76 unwind label %95

76:                                               ; preds = %67
  %77 = load ptr, ptr %4, align 8, !tbaa !5
  %78 = invoke noundef i32 @_ZNK12SparseMatrix4getNEv(ptr noundef nonnull align 8 dereferenceable(56) %77)
          to label %79 unwind label %95

79:                                               ; preds = %76
  %80 = call noundef i64 @_ZNKSt6vectorI19SparseMatrixElementSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #7
  %81 = trunc i64 %80 to i32
  invoke void @_ZN10LinearData4initEjj(ptr noundef nonnull align 8 dereferenceable(48) %24, i32 noundef %78, i32 noundef %81)
          to label %82 unwind label %95

82:                                               ; preds = %79
  %83 = getelementptr inbounds %struct.LinearData, ptr %24, i32 0, i32 2
  %84 = load ptr, ptr %83, align 8, !tbaa !29
  %85 = getelementptr inbounds i32, ptr %84, i64 0
  store i32 0, ptr %85, align 4, !tbaa !31
  %86 = getelementptr inbounds %struct.LinearData, ptr %24, i32 0, i32 2
  %87 = load ptr, ptr %86, align 8, !tbaa !29
  %88 = getelementptr inbounds i32, ptr %87, i64 1
  store i32 0, ptr %88, align 4, !tbaa !31
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  store i32 1, ptr %18, align 4, !tbaa !31
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  store i32 0, ptr %19, align 4, !tbaa !31
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  store i32 0, ptr %20, align 4, !tbaa !31
  br label %89

89:                                               ; preds = %149, %82
  %90 = load i32, ptr %20, align 4, !tbaa !31
  %91 = zext i32 %90 to i64
  %92 = call noundef i64 @_ZNKSt6vectorI19SparseMatrixElementSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #7
  %93 = icmp ult i64 %91, %92
  br i1 %93, label %99, label %94

94:                                               ; preds = %89
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  br label %152

95:                                               ; preds = %79, %76, %67
  %96 = landingpad { ptr, i32 }
          cleanup
  %97 = extractvalue { ptr, i32 } %96, 0
  store ptr %97, ptr %14, align 8
  %98 = extractvalue { ptr, i32 } %96, 1
  store i32 %98, ptr %15, align 4
  br label %197

99:                                               ; preds = %89
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #7
  %100 = load i32, ptr %20, align 4, !tbaa !31
  %101 = zext i32 %100 to i64
  %102 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI19SparseMatrixElementSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %101) #7
  store ptr %102, ptr %21, align 8, !tbaa !5
  %103 = load ptr, ptr %21, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.SparseMatrixElement, ptr %103, i32 0, i32 2
  %105 = load double, ptr %104, align 8, !tbaa !32
  %106 = getelementptr inbounds %struct.LinearData, ptr %24, i32 0, i32 4
  %107 = load ptr, ptr %106, align 8, !tbaa !34
  %108 = load i32, ptr %19, align 4, !tbaa !31
  %109 = zext i32 %108 to i64
  %110 = getelementptr inbounds double, ptr %107, i64 %109
  store double %105, ptr %110, align 8, !tbaa !35
  %111 = load ptr, ptr %21, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.SparseMatrixElement, ptr %111, i32 0, i32 0
  %113 = load i32, ptr %112, align 8, !tbaa !36
  %114 = getelementptr inbounds %struct.LinearData, ptr %24, i32 0, i32 3
  %115 = load ptr, ptr %114, align 8, !tbaa !37
  %116 = load i32, ptr %19, align 4, !tbaa !31
  %117 = zext i32 %116 to i64
  %118 = getelementptr inbounds i32, ptr %115, i64 %117
  store i32 %113, ptr %118, align 4, !tbaa !31
  %119 = load i32, ptr %19, align 4, !tbaa !31
  %120 = add i32 %119, 1
  store i32 %120, ptr %19, align 4, !tbaa !31
  %121 = load ptr, ptr %21, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.SparseMatrixElement, ptr %121, i32 0, i32 1
  %123 = load i32, ptr %122, align 4, !tbaa !38
  %124 = load i32, ptr %18, align 4, !tbaa !31
  %125 = icmp eq i32 %123, %124
  br i1 %125, label %126, label %141

126:                                              ; preds = %99
  %127 = load i32, ptr %18, align 4, !tbaa !31
  %128 = add i32 %127, 1
  store i32 %128, ptr %18, align 4, !tbaa !31
  %129 = getelementptr inbounds %struct.LinearData, ptr %24, i32 0, i32 2
  %130 = load ptr, ptr %129, align 8, !tbaa !29
  %131 = load i32, ptr %18, align 4, !tbaa !31
  %132 = sub i32 %131, 1
  %133 = zext i32 %132 to i64
  %134 = getelementptr inbounds i32, ptr %130, i64 %133
  %135 = load i32, ptr %134, align 4, !tbaa !31
  %136 = getelementptr inbounds %struct.LinearData, ptr %24, i32 0, i32 2
  %137 = load ptr, ptr %136, align 8, !tbaa !29
  %138 = load i32, ptr %18, align 4, !tbaa !31
  %139 = zext i32 %138 to i64
  %140 = getelementptr inbounds i32, ptr %137, i64 %139
  store i32 %135, ptr %140, align 4, !tbaa !31
  br label %141

141:                                              ; preds = %126, %99
  %142 = getelementptr inbounds %struct.LinearData, ptr %24, i32 0, i32 2
  %143 = load ptr, ptr %142, align 8, !tbaa !29
  %144 = load i32, ptr %18, align 4, !tbaa !31
  %145 = zext i32 %144 to i64
  %146 = getelementptr inbounds i32, ptr %143, i64 %145
  %147 = load i32, ptr %146, align 4, !tbaa !31
  %148 = add nsw i32 %147, 1
  store i32 %148, ptr %146, align 4, !tbaa !31
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  br label %149

149:                                              ; preds = %141
  %150 = load i32, ptr %20, align 4, !tbaa !31
  %151 = add i32 %150, 1
  store i32 %151, ptr %20, align 4, !tbaa !31
  br label %89, !llvm.loop !39

152:                                              ; preds = %94
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #7
  store i32 0, ptr %22, align 4, !tbaa !31
  call void @llvm.lifetime.start.p0(i64 1, ptr %23) #7
  store i8 1, ptr %23, align 1, !tbaa !40
  %153 = getelementptr inbounds %struct.LinearData, ptr %24, i32 0, i32 0
  %154 = load i32, ptr %153, align 8, !tbaa !42
  %155 = getelementptr inbounds %struct.LinearData, ptr %24, i32 0, i32 0
  %156 = load i32, ptr %155, align 8, !tbaa !42
  %157 = getelementptr inbounds %struct.LinearData, ptr %24, i32 0, i32 2
  %158 = load ptr, ptr %157, align 8, !tbaa !29
  %159 = getelementptr inbounds %struct.LinearData, ptr %24, i32 0, i32 3
  %160 = load ptr, ptr %159, align 8, !tbaa !37
  %161 = getelementptr inbounds %struct.LinearData, ptr %24, i32 0, i32 4
  %162 = load ptr, ptr %161, align 8, !tbaa !34
  %163 = getelementptr inbounds %struct.LinearData, ptr %24, i32 0, i32 5
  %164 = invoke i32 @umfpack_di_symbolic(i32 noundef %154, i32 noundef %156, ptr noundef %158, ptr noundef %160, ptr noundef %162, ptr noundef %163, ptr noundef null, ptr noundef null)
          to label %165 unwind label %172

165:                                              ; preds = %152
  store i32 %164, ptr %22, align 4, !tbaa !31
  %166 = load i32, ptr %22, align 4, !tbaa !31
  %167 = icmp ne i32 %166, 0
  br i1 %167, label %168, label %176

168:                                              ; preds = %165
  store i8 0, ptr %23, align 1, !tbaa !40
  %169 = load i32, ptr %22, align 4, !tbaa !31
  %170 = invoke i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %169)
          to label %171 unwind label %172

171:                                              ; preds = %168
  br label %176

172:                                              ; preds = %190, %176, %168, %152
  %173 = landingpad { ptr, i32 }
          cleanup
  %174 = extractvalue { ptr, i32 } %173, 0
  store ptr %174, ptr %14, align 8
  %175 = extractvalue { ptr, i32 } %173, 1
  store i32 %175, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  br label %197

176:                                              ; preds = %171, %165
  %177 = getelementptr inbounds %struct.LinearData, ptr %24, i32 0, i32 2
  %178 = load ptr, ptr %177, align 8, !tbaa !29
  %179 = getelementptr inbounds %struct.LinearData, ptr %24, i32 0, i32 3
  %180 = load ptr, ptr %179, align 8, !tbaa !37
  %181 = getelementptr inbounds %struct.LinearData, ptr %24, i32 0, i32 4
  %182 = load ptr, ptr %181, align 8, !tbaa !34
  %183 = getelementptr inbounds %struct.LinearData, ptr %24, i32 0, i32 5
  %184 = load ptr, ptr %183, align 8, !tbaa !43
  %185 = getelementptr inbounds %struct.LinearData, ptr %24, i32 0, i32 6
  %186 = invoke i32 @umfpack_di_numeric(ptr noundef %178, ptr noundef %180, ptr noundef %182, ptr noundef %184, ptr noundef %185, ptr noundef null, ptr noundef null)
          to label %187 unwind label %172

187:                                              ; preds = %176
  store i32 %186, ptr %22, align 4, !tbaa !31
  %188 = load i32, ptr %22, align 4, !tbaa !31
  %189 = icmp ne i32 %188, 0
  br i1 %189, label %190, label %194

190:                                              ; preds = %187
  store i8 0, ptr %23, align 1, !tbaa !40
  %191 = load i32, ptr %22, align 4, !tbaa !31
  %192 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %191)
          to label %193 unwind label %172

193:                                              ; preds = %190
  br label %194

194:                                              ; preds = %193, %187
  %195 = load i8, ptr %23, align 1, !tbaa !40, !range !44, !noundef !45
  %196 = trunc i8 %195 to i1
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  call void @_ZNSt6vectorI19SparseMatrixElementSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #7
  ret i1 %196

197:                                              ; preds = %172, %95, %60
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  call void @_ZNSt6vectorI19SparseMatrixElementSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #7
  br label %198

198:                                              ; preds = %197
  %199 = load ptr, ptr %14, align 8
  %200 = load i32, ptr %15, align 4
  %201 = insertvalue { ptr, i32 } poison, ptr %199, 0
  %202 = insertvalue { ptr, i32 } %201, i32 %200, 1
  resume { ptr, i32 } %202
}

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(48) ptr @_ZNK12SparseMatrix7getDataEv(ptr noundef nonnull align 8 dereferenceable(56)) #2 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt3mapIiS_IidSt4lessIiESaISt4pairIKidEEES1_SaIS2_IS3_S6_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48)) #3 align 2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorISt4pairIKiSt3mapIidSt4lessIiESaIS0_IS1_dEEEEESB_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt3mapIiS_IidSt4lessIiESaISt4pairIKidEEES1_SaIS2_IS3_S6_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIKiSt3mapIidSt4lessIiESaIS0_IS1_dEEEEEptEv(ptr noundef nonnull align 8 dereferenceable(8)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt3mapIidSt4lessIiESaISt4pairIKidEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorISt4pairIKidEES5_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt3mapIidSt4lessIiESaISt4pairIKidEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIKidEEptEv(ptr noundef nonnull align 8 dereferenceable(8)) #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN19SparseMatrixElementC2Ejjd(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef, i32 noundef, double noundef) unnamed_addr #2 align 2

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorISt4pairIKidEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorISt4pairIKiSt3mapIidSt4lessIiESaIS0_IS1_dEEEEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIP19SparseMatrixElementSt6vectorIS2_SaIS2_EEEEEvT_S8_(ptr, ptr) #5

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK12SparseMatrix4getNEv(ptr noundef nonnull align 8 dereferenceable(56)) #2 align 2

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

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

declare i32 @umfpack_di_symbolic(i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #6

declare i32 @printf(ptr noundef, ...) #6

declare i32 @umfpack_di_numeric(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #6

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

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress 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 #4 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { inlinehint 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 #6 = { "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 #7 = { 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 = !{i64 0, i64 8, !5}
!10 = !{!11, !12, i64 0}
!11 = !{!"_ZTSSt4pairIKiSt3mapIidSt4lessIiESaIS_IS0_dEEEE", !12, i64 0, !13, i64 8}
!12 = !{!"int", !7, i64 0}
!13 = !{!"_ZTSSt3mapIidSt4lessIiESaISt4pairIKidEEE", !14, i64 0}
!14 = !{!"_ZTSSt8_Rb_treeIiSt4pairIKidESt10_Select1stIS2_ESt4lessIiESaIS2_EE", !15, i64 0}
!15 = !{!"_ZTSNSt8_Rb_treeIiSt4pairIKidESt10_Select1stIS2_ESt4lessIiESaIS2_EE13_Rb_tree_implIS6_Lb1EEE", !16, i64 0, !18, i64 8}
!16 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIiEE", !17, i64 0}
!17 = !{!"_ZTSSt4lessIiE"}
!18 = !{!"_ZTSSt15_Rb_tree_header", !19, i64 0, !21, i64 32}
!19 = !{!"_ZTSSt18_Rb_tree_node_base", !20, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!20 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!21 = !{!"long", !7, i64 0}
!22 = !{!23, !12, i64 0}
!23 = !{!"_ZTSSt4pairIKidE", !12, i64 0, !24, i64 8}
!24 = !{!"double", !7, i64 0}
!25 = !{!23, !24, i64 8}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}
!28 = distinct !{!28, !27}
!29 = !{!30, !6, i64 8}
!30 = !{!"_ZTS10LinearData", !12, i64 0, !12, i64 4, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40}
!31 = !{!12, !12, i64 0}
!32 = !{!33, !24, i64 8}
!33 = !{!"_ZTS19SparseMatrixElement", !12, i64 0, !12, i64 4, !24, i64 8}
!34 = !{!30, !6, i64 24}
!35 = !{!24, !24, i64 0}
!36 = !{!33, !12, i64 0}
!37 = !{!30, !6, i64 16}
!38 = !{!33, !12, i64 4}
!39 = distinct !{!39, !27}
!40 = !{!41, !41, i64 0}
!41 = !{!"bool", !7, i64 0}
!42 = !{!30, !12, i64 0}
!43 = !{!30, !6, i64 32}
!44 = !{i8 0, i8 2}
!45 = !{}


; 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<SparseMatrixElement, std::allocator<SparseMatrixElement>>::_Vector_impl" }
%"struct.std::_Vector_base<SparseMatrixElement, std::allocator<SparseMatrixElement>>::_Vector_impl" = type { %"struct.std::_Vector_base<SparseMatrixElement, std::allocator<SparseMatrixElement>>::_Vector_impl_data" }
%"struct.std::_Vector_base<SparseMatrixElement, std::allocator<SparseMatrixElement>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::_Rb_tree_const_iterator" = type { ptr }
%"struct.std::_Rb_tree_const_iterator.3" = type { ptr }
%struct.SparseMatrixElement = type { i32, i32, double }

@.str = external hidden unnamed_addr constant [32 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [31 x i8], align 1

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN10LinearData4initERK12SparseMatrix(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 8 dereferenceable(56) %1) local_unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.std::vector", align 8
  %4 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %5 = alloca %"struct.std::_Rb_tree_const_iterator.3", align 8
  %6 = alloca %"struct.std::_Rb_tree_const_iterator.3", align 8
  %7 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %8 = alloca %struct.SparseMatrixElement, align 8
  %9 = tail call noundef nonnull align 8 dereferenceable(48) ptr @_ZNK12SparseMatrix7getDataEv(ptr noundef nonnull align 8 dereferenceable(56) %1)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #7
  call void @_ZNSt6vectorI19SparseMatrixElementSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #7
  call void @_ZNSt23_Rb_tree_const_iteratorISt4pairIKidEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #7
  call void @_ZNSt23_Rb_tree_const_iteratorISt4pairIKiSt3mapIidSt4lessIiESaIS0_IS1_dEEEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #7
  %10 = call ptr @_ZNKSt3mapIiS_IidSt4lessIiESaISt4pairIKidEEES1_SaIS2_IS3_S6_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %9) #7
  store ptr %10, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  %11 = call ptr @_ZNKSt3mapIiS_IidSt4lessIiESaISt4pairIKidEEES1_SaIS2_IS3_S6_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %9) #7
  store ptr %11, ptr %6, align 8
  %12 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorISt4pairIKiSt3mapIidSt4lessIiESaIS0_IS1_dEEEEESB_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  br i1 %12, label %.lr.ph40, label %._crit_edge41

.lr.ph40:                                         ; preds = %2, %._crit_edge
  %13 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIKiSt3mapIidSt4lessIiESaIS0_IS1_dEEEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #7
  %14 = getelementptr inbounds i8, ptr %13, i64 8
  %15 = call ptr @_ZNKSt3mapIidSt4lessIiESaISt4pairIKidEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %14) #7
  store ptr %15, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  %16 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIKiSt3mapIidSt4lessIiESaIS0_IS1_dEEEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #7
  %17 = getelementptr inbounds i8, ptr %16, i64 8
  %18 = call ptr @_ZNKSt3mapIidSt4lessIiESaISt4pairIKidEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %17) #7
  store ptr %18, ptr %7, align 8
  %19 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorISt4pairIKidEES5_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  br i1 %19, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %.lr.ph40, %27
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #7
  %20 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIKiSt3mapIidSt4lessIiESaIS0_IS1_dEEEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #7
  %21 = load i32, ptr %20, align 8, !tbaa !9
  %22 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIKidEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #7
  %23 = load i32, ptr %22, align 8, !tbaa !21
  %24 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIKidEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #7
  %25 = getelementptr inbounds i8, ptr %24, i64 8
  %26 = load double, ptr %25, align 8, !tbaa !24
  call void @_ZN19SparseMatrixElementC2Ejjd(ptr noundef nonnull align 8 dereferenceable(16) %8, i32 noundef %21, i32 noundef %23, double noundef %26)
  invoke void @_ZNSt6vectorI19SparseMatrixElementSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(16) %8)
          to label %27 unwind label %33

27:                                               ; preds = %.lr.ph
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #7
  %28 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorISt4pairIKidEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  %29 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIKiSt3mapIidSt4lessIiESaIS0_IS1_dEEEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #7
  %30 = getelementptr inbounds i8, ptr %29, i64 8
  %31 = call ptr @_ZNKSt3mapIidSt4lessIiESaISt4pairIKidEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %30) #7
  store ptr %31, ptr %7, align 8
  %32 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorISt4pairIKidEES5_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  br i1 %32, label %.lr.ph, label %._crit_edge, !llvm.loop !25

33:                                               ; preds = %.lr.ph
  %34 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #7
  br label %106

._crit_edge:                                      ; preds = %27, %.lr.ph40
  %35 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorISt4pairIKiSt3mapIidSt4lessIiESaIS0_IS1_dEEEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  %36 = call ptr @_ZNKSt3mapIiS_IidSt4lessIiESaISt4pairIKidEEES1_SaIS2_IS3_S6_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %9) #7
  store ptr %36, ptr %6, align 8
  %37 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorISt4pairIKiSt3mapIidSt4lessIiESaIS0_IS1_dEEEEESB_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  br i1 %37, label %.lr.ph40, label %._crit_edge41, !llvm.loop !27

._crit_edge41:                                    ; preds = %._crit_edge, %2
  %38 = call ptr @_ZNSt6vectorI19SparseMatrixElementSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  %39 = call ptr @_ZNSt6vectorI19SparseMatrixElementSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIP19SparseMatrixElementSt6vectorIS2_SaIS2_EEEEEvT_S8_(ptr %38, ptr %39)
          to label %40 unwind label %59

40:                                               ; preds = %._crit_edge41
  %41 = call noundef i32 @_ZNK12SparseMatrix4getNEv(ptr noundef nonnull align 8 dereferenceable(56) %1)
  %42 = call noundef i64 @_ZNKSt6vectorI19SparseMatrixElementSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  %43 = trunc i64 %42 to i32
  invoke void @_ZN10LinearData4initEjj(ptr noundef nonnull align 8 dereferenceable(48) %0, i32 noundef %41, i32 noundef %43)
          to label %44 unwind label %59

44:                                               ; preds = %40
  %45 = getelementptr inbounds i8, ptr %0, i64 8
  %46 = load ptr, ptr %45, align 8, !tbaa !28
  store i32 0, ptr %46, align 4, !tbaa !30
  %47 = getelementptr inbounds i8, ptr %46, i64 4
  store i32 0, ptr %47, align 4, !tbaa !30
  %48 = call noundef i64 @_ZNKSt6vectorI19SparseMatrixElementSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  %.not48 = icmp eq i64 %48, 0
  br i1 %.not48, label %._crit_edge47, label %.lr.ph46

.lr.ph46:                                         ; preds = %44
  %49 = getelementptr inbounds i8, ptr %0, i64 24
  %50 = getelementptr inbounds i8, ptr %0, i64 16
  br label %61

._crit_edge47:                                    ; preds = %83, %44
  %51 = load i32, ptr %0, align 8, !tbaa !31
  %52 = load ptr, ptr %45, align 8, !tbaa !28
  %53 = getelementptr inbounds i8, ptr %0, i64 16
  %54 = load ptr, ptr %53, align 8, !tbaa !32
  %55 = getelementptr inbounds i8, ptr %0, i64 24
  %56 = load ptr, ptr %55, align 8, !tbaa !33
  %57 = getelementptr inbounds i8, ptr %0, i64 32
  %58 = invoke i32 @umfpack_di_symbolic(i32 noundef %51, i32 noundef %51, ptr noundef %52, ptr noundef %54, ptr noundef %56, ptr noundef nonnull %57, ptr noundef null, ptr noundef null)
          to label %90 unwind label %93

59:                                               ; preds = %40, %._crit_edge41
  %60 = landingpad { ptr, i32 }
          cleanup
  br label %106

61:                                               ; preds = %.lr.ph46, %83
  %62 = phi i64 [ 0, %.lr.ph46 ], [ %87, %83 ]
  %.02944 = phi i32 [ 0, %.lr.ph46 ], [ %72, %83 ]
  %.03142 = phi i32 [ 1, %.lr.ph46 ], [ %.132, %83 ]
  %63 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI19SparseMatrixElementSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %62) #7
  %64 = getelementptr inbounds i8, ptr %63, i64 8
  %65 = load double, ptr %64, align 8, !tbaa !34
  %66 = load ptr, ptr %49, align 8, !tbaa !33
  %67 = zext i32 %.02944 to i64
  %68 = getelementptr inbounds double, ptr %66, i64 %67
  store double %65, ptr %68, align 8, !tbaa !36
  %69 = load i32, ptr %63, align 8, !tbaa !37
  %70 = load ptr, ptr %50, align 8, !tbaa !32
  %71 = getelementptr inbounds i32, ptr %70, i64 %67
  store i32 %69, ptr %71, align 4, !tbaa !30
  %72 = add i32 %.02944, 1
  %73 = getelementptr inbounds i8, ptr %63, i64 4
  %74 = load i32, ptr %73, align 4, !tbaa !38
  %75 = icmp eq i32 %74, %.03142
  %.pre = load ptr, ptr %45, align 8, !tbaa !28
  br i1 %75, label %76, label %._crit_edge49

._crit_edge49:                                    ; preds = %61
  %.phi.trans.insert = zext i32 %.03142 to i64
  %.phi.trans.insert50 = getelementptr inbounds i32, ptr %.pre, i64 %.phi.trans.insert
  %.pre51 = load i32, ptr %.phi.trans.insert50, align 4, !tbaa !30
  br label %83

76:                                               ; preds = %61
  %77 = add i32 %.03142, 1
  %78 = zext i32 %.03142 to i64
  %79 = getelementptr inbounds i32, ptr %.pre, i64 %78
  %80 = load i32, ptr %79, align 4, !tbaa !30
  %81 = zext i32 %77 to i64
  %82 = getelementptr inbounds i32, ptr %.pre, i64 %81
  store i32 %80, ptr %82, align 4, !tbaa !30
  br label %83

83:                                               ; preds = %._crit_edge49, %76
  %.pre-phi = phi i64 [ %.phi.trans.insert, %._crit_edge49 ], [ %81, %76 ]
  %84 = phi i32 [ %.pre51, %._crit_edge49 ], [ %80, %76 ]
  %.132 = phi i32 [ %.03142, %._crit_edge49 ], [ %77, %76 ]
  %85 = getelementptr inbounds i32, ptr %.pre, i64 %.pre-phi
  %86 = add nsw i32 %84, 1
  store i32 %86, ptr %85, align 4, !tbaa !30
  %87 = zext i32 %72 to i64
  %88 = call noundef i64 @_ZNKSt6vectorI19SparseMatrixElementSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  %89 = icmp ugt i64 %88, %87
  br i1 %89, label %61, label %._crit_edge47, !llvm.loop !39

90:                                               ; preds = %._crit_edge47
  %.not = icmp eq i32 %58, 0
  br i1 %.not, label %95, label %91

91:                                               ; preds = %90
  %92 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %58)
  br label %95

93:                                               ; preds = %95, %._crit_edge47
  %94 = landingpad { ptr, i32 }
          cleanup
  br label %106

95:                                               ; preds = %91, %90
  %96 = load ptr, ptr %45, align 8, !tbaa !28
  %97 = load ptr, ptr %53, align 8, !tbaa !32
  %98 = load ptr, ptr %55, align 8, !tbaa !33
  %99 = load ptr, ptr %57, align 8, !tbaa !40
  %100 = getelementptr inbounds i8, ptr %0, i64 40
  %101 = invoke i32 @umfpack_di_numeric(ptr noundef %96, ptr noundef %97, ptr noundef %98, ptr noundef %99, ptr noundef nonnull %100, ptr noundef null, ptr noundef null)
          to label %102 unwind label %93

102:                                              ; preds = %95
  %.not37 = icmp eq i32 %101, 0
  br i1 %.not37, label %105, label %103

103:                                              ; preds = %102
  %104 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %101)
  br label %105

105:                                              ; preds = %103, %102
  %.1 = phi i1 [ false, %103 ], [ %.not, %102 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  call void @_ZNSt6vectorI19SparseMatrixElementSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #7
  ret i1 %.1

106:                                              ; preds = %93, %59, %33
  %.pn = phi { ptr, i32 } [ %34, %33 ], [ %94, %93 ], [ %60, %59 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  call void @_ZNSt6vectorI19SparseMatrixElementSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #7
  resume { ptr, i32 } %.pn
}

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(48) ptr @_ZNK12SparseMatrix7getDataEv(ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #2 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt3mapIiS_IidSt4lessIiESaISt4pairIKidEEES1_SaIS2_IS3_S6_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #3 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorISt4pairIKiSt3mapIidSt4lessIiESaIS0_IS1_dEEEEESB_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt3mapIiS_IidSt4lessIiESaISt4pairIKidEEES1_SaIS2_IS3_S6_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIKiSt3mapIidSt4lessIiESaIS0_IS1_dEEEEEptEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt3mapIidSt4lessIiESaISt4pairIKidEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorISt4pairIKidEES5_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt3mapIidSt4lessIiESaISt4pairIKidEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIKidEEptEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN19SparseMatrixElementC2Ejjd(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef, i32 noundef, double noundef) unnamed_addr #2 align 2

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorISt4pairIKidEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorISt4pairIKiSt3mapIidSt4lessIiESaIS0_IS1_dEEEEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIP19SparseMatrixElementSt6vectorIS2_SaIS2_EEEEEvT_S8_(ptr, ptr) local_unnamed_addr #4

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK12SparseMatrix4getNEv(ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #2 align 2

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

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

declare i32 @umfpack_di_symbolic(i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #5

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #6

declare i32 @umfpack_di_numeric(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #5

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

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress 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 #4 = { inlinehint 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 #5 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nofree 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 #7 = { 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, !11, i64 0}
!10 = !{!"_ZTSSt4pairIKiSt3mapIidSt4lessIiESaIS_IS0_dEEEE", !11, i64 0, !12, i64 8}
!11 = !{!"int", !7, i64 0}
!12 = !{!"_ZTSSt3mapIidSt4lessIiESaISt4pairIKidEEE", !13, i64 0}
!13 = !{!"_ZTSSt8_Rb_treeIiSt4pairIKidESt10_Select1stIS2_ESt4lessIiESaIS2_EE", !14, i64 0}
!14 = !{!"_ZTSNSt8_Rb_treeIiSt4pairIKidESt10_Select1stIS2_ESt4lessIiESaIS2_EE13_Rb_tree_implIS6_Lb1EEE", !15, i64 0, !17, i64 8}
!15 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIiEE", !16, i64 0}
!16 = !{!"_ZTSSt4lessIiE"}
!17 = !{!"_ZTSSt15_Rb_tree_header", !18, i64 0, !20, i64 32}
!18 = !{!"_ZTSSt18_Rb_tree_node_base", !19, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!19 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!20 = !{!"long", !7, i64 0}
!21 = !{!22, !11, i64 0}
!22 = !{!"_ZTSSt4pairIKidE", !11, i64 0, !23, i64 8}
!23 = !{!"double", !7, i64 0}
!24 = !{!22, !23, i64 8}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = distinct !{!27, !26}
!28 = !{!29, !6, i64 8}
!29 = !{!"_ZTS10LinearData", !11, i64 0, !11, i64 4, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40}
!30 = !{!11, !11, i64 0}
!31 = !{!29, !11, i64 0}
!32 = !{!29, !6, i64 16}
!33 = !{!29, !6, i64 24}
!34 = !{!35, !23, i64 8}
!35 = !{!"_ZTS19SparseMatrixElement", !11, i64 0, !11, i64 4, !23, i64 8}
!36 = !{!23, !23, i64 0}
!37 = !{!35, !11, i64 0}
!38 = !{!35, !11, i64 4}
!39 = distinct !{!39, !26}
!40 = !{!29, !6, i64 32}


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