; LLVM IR from Tinker-Twins/3D-LIDAR-Localization :: fast_gicp/thirdparty/nvbio/contrib/moderngpu/src (sparsematrix)

; 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<mgpu::MatrixElement, std::allocator<mgpu::MatrixElement>>::_Vector_impl" }
%"struct.std::_Vector_base<mgpu::MatrixElement, std::allocator<mgpu::MatrixElement>>::_Vector_impl" = type { %"struct.std::_Vector_base<mgpu::MatrixElement, std::allocator<mgpu::MatrixElement>>::_Vector_impl_data" }
%"struct.std::_Vector_base<mgpu::MatrixElement, std::allocator<mgpu::MatrixElement>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.mgpu::MatrixElement" = type { i32, i32, double }
%"class.std::__cxx11::basic_ostringstream" = type { %"class.std::basic_ostream.base", %"class.std::__cxx11::basic_stringbuf", %"class.std::basic_ios" }
%"class.std::basic_ostream.base" = type { ptr }
%"class.std::__cxx11::basic_stringbuf" = type { %"class.std::basic_streambuf", i32, %"class.std::__cxx11::basic_string" }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.std::auto_ptr" = type { ptr }
%"struct.mgpu::SparseMatrix" = type { i32, i32, i32, %"class.std::vector.3", %"class.std::vector.3", %"class.std::vector.8" }
%"class.std::vector.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = 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 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [7 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN4mgpu16ReadSparseMatrixEP8_IO_FILEPSt8auto_ptrINS_12SparseMatrixEERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef %0, ptr noundef %1, ptr noundef nonnull align 8 dereferenceable(32) %2) #0 personality ptr @__gxx_personality_v0 {
  %4 = alloca i1, align 1
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca [4 x i8], align 1
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i8, align 1
  %12 = alloca i8, align 1
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca %"class.std::vector", align 8
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca %"struct.mgpu::MatrixElement", align 8
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca %"class.std::__cxx11::basic_ostringstream", align 8
  %25 = alloca %"class.std::__cxx11::basic_string", align 8
  %26 = alloca i32, align 4
  %27 = alloca %"class.std::__cxx11::basic_ostringstream", align 8
  %28 = alloca %"class.std::__cxx11::basic_string", align 8
  %29 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %30 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %31 = alloca %"class.std::auto_ptr", align 8
  %32 = alloca i32, align 4
  %33 = alloca %"struct.mgpu::MatrixElement", align 8
  %34 = alloca i32, align 4
  %35 = alloca i32, align 4
  %36 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #8
  %37 = load ptr, ptr %5, align 8, !tbaa !5
  %38 = call noundef i32 @_Z14mm_read_bannerP8_IO_FILEPA4_c(ptr noundef %37, ptr noundef %8)
  store i32 %38, ptr %9, align 4, !tbaa !9
  %39 = load i32, ptr %9, align 4, !tbaa !9
  %40 = icmp ne i32 %39, 0
  br i1 %40, label %41, label %44

41:                                               ; preds = %3
  %42 = load ptr, ptr %7, align 8, !tbaa !5
  %43 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %42, ptr noundef @.str)
  store i1 false, ptr %4, align 1
  store i32 1, ptr %10, align 4
  br label %350

44:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #8
  %45 = getelementptr inbounds [4 x i8], ptr %8, i64 0, i64 2
  %46 = load i8, ptr %45, align 1, !tbaa !11
  %47 = sext i8 %46 to i32
  %48 = icmp eq i32 %47, 80
  %49 = zext i1 %48 to i8
  store i8 %49, ptr %11, align 1, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #8
  %50 = getelementptr inbounds [4 x i8], ptr %8, i64 0, i64 2
  %51 = load i8, ptr %50, align 1, !tbaa !11
  %52 = sext i8 %51 to i32
  %53 = icmp eq i32 %52, 82
  %54 = zext i1 %53 to i8
  store i8 %54, ptr %12, align 1, !tbaa !12
  %55 = load i8, ptr %11, align 1, !tbaa !12, !range !14, !noundef !15
  %56 = trunc i8 %55 to i1
  br i1 %56, label %60, label %57

57:                                               ; preds = %44
  %58 = load i8, ptr %12, align 1, !tbaa !12, !range !14, !noundef !15
  %59 = trunc i8 %58 to i1
  br i1 %59, label %60, label %75

60:                                               ; preds = %57, %44
  %61 = getelementptr inbounds [4 x i8], ptr %8, i64 0, i64 0
  %62 = load i8, ptr %61, align 1, !tbaa !11
  %63 = sext i8 %62 to i32
  %64 = icmp eq i32 %63, 77
  br i1 %64, label %65, label %75

65:                                               ; preds = %60
  %66 = getelementptr inbounds [4 x i8], ptr %8, i64 0, i64 1
  %67 = load i8, ptr %66, align 1, !tbaa !11
  %68 = sext i8 %67 to i32
  %69 = icmp eq i32 %68, 67
  br i1 %69, label %70, label %75

70:                                               ; preds = %65
  %71 = getelementptr inbounds [4 x i8], ptr %8, i64 0, i64 1
  %72 = load i8, ptr %71, align 1, !tbaa !11
  %73 = sext i8 %72 to i32
  %74 = icmp eq i32 %73, 67
  br i1 %74, label %78, label %75

75:                                               ; preds = %70, %65, %60, %57
  %76 = load ptr, ptr %7, align 8, !tbaa !5
  %77 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %76, ptr noundef @.str.1)
  store i1 false, ptr %4, align 1
  store i32 1, ptr %10, align 4
  br label %349

78:                                               ; preds = %70
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #8
  %79 = load ptr, ptr %5, align 8, !tbaa !5
  %80 = call noundef i32 @_Z20mm_read_mtx_crd_sizeP8_IO_FILEPiS1_S1_(ptr noundef %79, ptr noundef %14, ptr noundef %15, ptr noundef %13)
  store i32 %80, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr %16) #8
  call void @_ZNSt6vectorIN4mgpu13MatrixElementESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #8
  %81 = load i32, ptr %13, align 4, !tbaa !9
  %82 = sext i32 %81 to i64
  invoke void @_ZNSt6vectorIN4mgpu13MatrixElementESaIS1_EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef %82)
          to label %83 unwind label %89

83:                                               ; preds = %78
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #8
  store i32 0, ptr %19, align 4, !tbaa !9
  br label %84

84:                                               ; preds = %225, %83
  %85 = load i32, ptr %19, align 4, !tbaa !9
  %86 = load i32, ptr %13, align 4, !tbaa !9
  %87 = icmp slt i32 %85, %86
  br i1 %87, label %93, label %88

88:                                               ; preds = %84
  store i32 2, ptr %10, align 4
  br label %229

89:                                               ; preds = %231, %78
  %90 = landingpad { ptr, i32 }
          cleanup
  %91 = extractvalue { ptr, i32 } %90, 0
  store ptr %91, ptr %17, align 8
  %92 = extractvalue { ptr, i32 } %90, 1
  store i32 %92, ptr %18, align 4
  br label %348

93:                                               ; preds = %84
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #8
  %94 = load i8, ptr %12, align 1, !tbaa !12, !range !14, !noundef !15
  %95 = trunc i8 %94 to i1
  br i1 %95, label %96, label %137

96:                                               ; preds = %93
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #8
  %97 = load ptr, ptr %5, align 8, !tbaa !5
  %98 = getelementptr inbounds %"struct.mgpu::MatrixElement", ptr %20, i32 0, i32 2
  %99 = invoke i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %97, ptr noundef @.str.2, ptr noundef %22, ptr noundef %21, ptr noundef %98)
          to label %100 unwind label %114

100:                                              ; preds = %96
  store i32 %99, ptr %23, align 4, !tbaa !9
  %101 = load i32, ptr %23, align 4, !tbaa !9
  %102 = icmp ne i32 3, %101
  br i1 %102, label %103, label %132

103:                                              ; preds = %100
  call void @llvm.lifetime.start.p0(i64 376, ptr %24) #8
  invoke void @_ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(112) %24)
          to label %104 unwind label %118

104:                                              ; preds = %103
  %105 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %24, ptr noundef @.str.3)
          to label %106 unwind label %122

106:                                              ; preds = %104
  %107 = load i32, ptr %19, align 4, !tbaa !9
  %108 = add nsw i32 %107, 1
  %109 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %105, i32 noundef %108)
          to label %110 unwind label %122

110:                                              ; preds = %106
  call void @llvm.lifetime.start.p0(i64 32, ptr %25) #8
  invoke void @_ZNKSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEE3strEv(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %25, ptr noundef nonnull align 8 dereferenceable(112) %24)
          to label %111 unwind label %126

111:                                              ; preds = %110
  %112 = load ptr, ptr %7, align 8, !tbaa !5
  %113 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %112, ptr noundef nonnull align 8 dereferenceable(32) %25) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %25) #8
  store i1 false, ptr %4, align 1
  store i32 1, ptr %10, align 4
  call void @_ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(112) %24) #8
  call void @llvm.lifetime.end.p0(i64 376, ptr %24) #8
  br label %133

114:                                              ; preds = %96
  %115 = landingpad { ptr, i32 }
          cleanup
  %116 = extractvalue { ptr, i32 } %115, 0
  store ptr %116, ptr %17, align 8
  %117 = extractvalue { ptr, i32 } %115, 1
  store i32 %117, ptr %18, align 4
  br label %136

118:                                              ; preds = %103
  %119 = landingpad { ptr, i32 }
          cleanup
  %120 = extractvalue { ptr, i32 } %119, 0
  store ptr %120, ptr %17, align 8
  %121 = extractvalue { ptr, i32 } %119, 1
  store i32 %121, ptr %18, align 4
  br label %131

122:                                              ; preds = %106, %104
  %123 = landingpad { ptr, i32 }
          cleanup
  %124 = extractvalue { ptr, i32 } %123, 0
  store ptr %124, ptr %17, align 8
  %125 = extractvalue { ptr, i32 } %123, 1
  store i32 %125, ptr %18, align 4
  br label %130

126:                                              ; preds = %110
  %127 = landingpad { ptr, i32 }
          cleanup
  %128 = extractvalue { ptr, i32 } %127, 0
  store ptr %128, ptr %17, align 8
  %129 = extractvalue { ptr, i32 } %127, 1
  store i32 %129, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %25) #8
  br label %130

130:                                              ; preds = %126, %122
  call void @_ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(112) %24) #8
  br label %131

131:                                              ; preds = %130, %118
  call void @llvm.lifetime.end.p0(i64 376, ptr %24) #8
  br label %136

132:                                              ; preds = %100
  store i32 0, ptr %10, align 4
  br label %133

133:                                              ; preds = %132, %111
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #8
  %134 = load i32, ptr %10, align 4
  switch i32 %134, label %222 [
    i32 0, label %135
  ]

135:                                              ; preds = %133
  br label %182

136:                                              ; preds = %131, %114
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #8
  br label %228

137:                                              ; preds = %93
  %138 = load i8, ptr %11, align 1, !tbaa !12, !range !14, !noundef !15
  %139 = trunc i8 %138 to i1
  br i1 %139, label %140, label %181

140:                                              ; preds = %137
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #8
  %141 = load ptr, ptr %5, align 8, !tbaa !5
  %142 = invoke i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %141, ptr noundef @.str.4, ptr noundef %22, ptr noundef %21)
          to label %143 unwind label %157

143:                                              ; preds = %140
  store i32 %142, ptr %26, align 4, !tbaa !9
  %144 = load i32, ptr %26, align 4, !tbaa !9
  %145 = icmp ne i32 2, %144
  br i1 %145, label %146, label %175

146:                                              ; preds = %143
  call void @llvm.lifetime.start.p0(i64 376, ptr %27) #8
  invoke void @_ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(112) %27)
          to label %147 unwind label %161

147:                                              ; preds = %146
  %148 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %27, ptr noundef @.str.3)
          to label %149 unwind label %165

149:                                              ; preds = %147
  %150 = load i32, ptr %19, align 4, !tbaa !9
  %151 = add nsw i32 %150, 1
  %152 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %148, i32 noundef %151)
          to label %153 unwind label %165

153:                                              ; preds = %149
  call void @llvm.lifetime.start.p0(i64 32, ptr %28) #8
  invoke void @_ZNKSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEE3strEv(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %28, ptr noundef nonnull align 8 dereferenceable(112) %27)
          to label %154 unwind label %169

154:                                              ; preds = %153
  %155 = load ptr, ptr %7, align 8, !tbaa !5
  %156 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %155, ptr noundef nonnull align 8 dereferenceable(32) %28) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %28) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %28) #8
  store i1 false, ptr %4, align 1
  store i32 1, ptr %10, align 4
  call void @_ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(112) %27) #8
  call void @llvm.lifetime.end.p0(i64 376, ptr %27) #8
  br label %177

157:                                              ; preds = %140
  %158 = landingpad { ptr, i32 }
          cleanup
  %159 = extractvalue { ptr, i32 } %158, 0
  store ptr %159, ptr %17, align 8
  %160 = extractvalue { ptr, i32 } %158, 1
  store i32 %160, ptr %18, align 4
  br label %180

161:                                              ; preds = %146
  %162 = landingpad { ptr, i32 }
          cleanup
  %163 = extractvalue { ptr, i32 } %162, 0
  store ptr %163, ptr %17, align 8
  %164 = extractvalue { ptr, i32 } %162, 1
  store i32 %164, ptr %18, align 4
  br label %174

165:                                              ; preds = %149, %147
  %166 = landingpad { ptr, i32 }
          cleanup
  %167 = extractvalue { ptr, i32 } %166, 0
  store ptr %167, ptr %17, align 8
  %168 = extractvalue { ptr, i32 } %166, 1
  store i32 %168, ptr %18, align 4
  br label %173

169:                                              ; preds = %153
  %170 = landingpad { ptr, i32 }
          cleanup
  %171 = extractvalue { ptr, i32 } %170, 0
  store ptr %171, ptr %17, align 8
  %172 = extractvalue { ptr, i32 } %170, 1
  store i32 %172, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %28) #8
  br label %173

173:                                              ; preds = %169, %165
  call void @_ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(112) %27) #8
  br label %174

174:                                              ; preds = %173, %161
  call void @llvm.lifetime.end.p0(i64 376, ptr %27) #8
  br label %180

175:                                              ; preds = %143
  %176 = getelementptr inbounds %"struct.mgpu::MatrixElement", ptr %20, i32 0, i32 2
  store double 1.000000e+00, ptr %176, align 8, !tbaa !16
  store i32 0, ptr %10, align 4
  br label %177

177:                                              ; preds = %175, %154
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #8
  %178 = load i32, ptr %10, align 4
  switch i32 %178, label %222 [
    i32 0, label %179
  ]

179:                                              ; preds = %177
  br label %181

180:                                              ; preds = %174, %157
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #8
  br label %228

181:                                              ; preds = %179, %137
  br label %182

182:                                              ; preds = %181, %135
  %183 = load i32, ptr %22, align 4, !tbaa !9
  %184 = sub nsw i32 %183, 1
  %185 = getelementptr inbounds %"struct.mgpu::MatrixElement", ptr %20, i32 0, i32 0
  store i32 %184, ptr %185, align 8, !tbaa !19
  %186 = load i32, ptr %21, align 4, !tbaa !9
  %187 = sub nsw i32 %186, 1
  %188 = getelementptr inbounds %"struct.mgpu::MatrixElement", ptr %20, i32 0, i32 1
  store i32 %187, ptr %188, align 4, !tbaa !20
  invoke void @_ZNSt6vectorIN4mgpu13MatrixElementESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %16, ptr noundef nonnull align 8 dereferenceable(16) %20)
          to label %189 unwind label %215

189:                                              ; preds = %182
  %190 = getelementptr inbounds [4 x i8], ptr %8, i64 0, i64 3
  %191 = load i8, ptr %190, align 1, !tbaa !11
  %192 = sext i8 %191 to i32
  %193 = icmp eq i32 %192, 83
  br i1 %193, label %199, label %194

194:                                              ; preds = %189
  %195 = getelementptr inbounds [4 x i8], ptr %8, i64 0, i64 3
  %196 = load i8, ptr %195, align 1, !tbaa !11
  %197 = sext i8 %196 to i32
  %198 = icmp eq i32 %197, 75
  br i1 %198, label %199, label %221

199:                                              ; preds = %194, %189
  %200 = load i32, ptr %21, align 4, !tbaa !9
  %201 = load i32, ptr %22, align 4, !tbaa !9
  %202 = icmp ne i32 %200, %201
  br i1 %202, label %203, label %221

203:                                              ; preds = %199
  %204 = getelementptr inbounds %"struct.mgpu::MatrixElement", ptr %20, i32 0, i32 0
  %205 = getelementptr inbounds %"struct.mgpu::MatrixElement", ptr %20, i32 0, i32 1
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %204, ptr noundef nonnull align 4 dereferenceable(4) %205) #8
  %206 = getelementptr inbounds [4 x i8], ptr %8, i64 0, i64 3
  %207 = load i8, ptr %206, align 1, !tbaa !11
  %208 = sext i8 %207 to i32
  %209 = icmp eq i32 %208, 75
  br i1 %209, label %210, label %219

210:                                              ; preds = %203
  %211 = getelementptr inbounds %"struct.mgpu::MatrixElement", ptr %20, i32 0, i32 2
  %212 = load double, ptr %211, align 8, !tbaa !16
  %213 = fneg double %212
  %214 = getelementptr inbounds %"struct.mgpu::MatrixElement", ptr %20, i32 0, i32 2
  store double %213, ptr %214, align 8, !tbaa !16
  br label %219

215:                                              ; preds = %219, %182
  %216 = landingpad { ptr, i32 }
          cleanup
  %217 = extractvalue { ptr, i32 } %216, 0
  store ptr %217, ptr %17, align 8
  %218 = extractvalue { ptr, i32 } %216, 1
  store i32 %218, ptr %18, align 4
  br label %228

219:                                              ; preds = %210, %203
  invoke void @_ZNSt6vectorIN4mgpu13MatrixElementESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %16, ptr noundef nonnull align 8 dereferenceable(16) %20)
          to label %220 unwind label %215

220:                                              ; preds = %219
  br label %221

221:                                              ; preds = %220, %199, %194
  store i32 0, ptr %10, align 4
  br label %222

222:                                              ; preds = %221, %177, %133
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #8
  %223 = load i32, ptr %10, align 4
  switch i32 %223, label %229 [
    i32 0, label %224
  ]

224:                                              ; preds = %222
  br label %225

225:                                              ; preds = %224
  %226 = load i32, ptr %19, align 4, !tbaa !9
  %227 = add nsw i32 %226, 1
  store i32 %227, ptr %19, align 4, !tbaa !9
  br label %84, !llvm.loop !21

228:                                              ; preds = %215, %180, %136
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  br label %348

229:                                              ; preds = %222, %88
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  %230 = load i32, ptr %10, align 4
  switch i32 %230, label %347 [
    i32 2, label %231
  ]

231:                                              ; preds = %229
  %232 = call ptr @_ZNSt6vectorIN4mgpu13MatrixElementESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %16) #8
  %233 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %29, i32 0, i32 0
  store ptr %232, ptr %233, align 8
  %234 = call ptr @_ZNSt6vectorIN4mgpu13MatrixElementESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %16) #8
  %235 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %30, i32 0, i32 0
  store ptr %234, ptr %235, align 8
  %236 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %29, i32 0, i32 0
  %237 = load ptr, ptr %236, align 8
  %238 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %30, i32 0, i32 0
  %239 = load ptr, ptr %238, align 8
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPN4mgpu13MatrixElementESt6vectorIS3_SaIS3_EEEEEvT_S9_(ptr %237, ptr %239)
          to label %240 unwind label %89

240:                                              ; preds = %231
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #8
  %241 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 88) #9
          to label %242 unwind label %275

242:                                              ; preds = %240
  call void @_ZN4mgpu12SparseMatrixC2Ev(ptr noundef nonnull align 8 dereferenceable(88) %241) #8
  call void @_ZNSt8auto_ptrIN4mgpu12SparseMatrixEEC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8) %31, ptr noundef %241) #8
  %243 = call noundef i64 @_ZNKSt6vectorIN4mgpu13MatrixElementESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %16) #8
  %244 = trunc i64 %243 to i32
  store i32 %244, ptr %13, align 4, !tbaa !9
  %245 = load i32, ptr %14, align 4, !tbaa !9
  %246 = call noundef ptr @_ZNKSt8auto_ptrIN4mgpu12SparseMatrixEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %31) #8
  %247 = getelementptr inbounds %"struct.mgpu::SparseMatrix", ptr %246, i32 0, i32 0
  store i32 %245, ptr %247, align 8, !tbaa !23
  %248 = load i32, ptr %15, align 4, !tbaa !9
  %249 = call noundef ptr @_ZNKSt8auto_ptrIN4mgpu12SparseMatrixEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %31) #8
  %250 = getelementptr inbounds %"struct.mgpu::SparseMatrix", ptr %249, i32 0, i32 1
  store i32 %248, ptr %250, align 4, !tbaa !33
  %251 = load i32, ptr %13, align 4, !tbaa !9
  %252 = call noundef ptr @_ZNKSt8auto_ptrIN4mgpu12SparseMatrixEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %31) #8
  %253 = getelementptr inbounds %"struct.mgpu::SparseMatrix", ptr %252, i32 0, i32 2
  store i32 %251, ptr %253, align 8, !tbaa !34
  %254 = call noundef ptr @_ZNKSt8auto_ptrIN4mgpu12SparseMatrixEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %31) #8
  %255 = getelementptr inbounds %"struct.mgpu::SparseMatrix", ptr %254, i32 0, i32 3
  %256 = load i32, ptr %14, align 4, !tbaa !9
  %257 = add nsw i32 %256, 1
  %258 = sext i32 %257 to i64
  invoke void @_ZNSt6vectorIiSaIiEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %255, i64 noundef %258)
          to label %259 unwind label %279

259:                                              ; preds = %242
  %260 = call noundef ptr @_ZNKSt8auto_ptrIN4mgpu12SparseMatrixEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %31) #8
  %261 = getelementptr inbounds %"struct.mgpu::SparseMatrix", ptr %260, i32 0, i32 4
  %262 = load i32, ptr %13, align 4, !tbaa !9
  %263 = sext i32 %262 to i64
  invoke void @_ZNSt6vectorIiSaIiEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %261, i64 noundef %263)
          to label %264 unwind label %279

264:                                              ; preds = %259
  %265 = call noundef ptr @_ZNKSt8auto_ptrIN4mgpu12SparseMatrixEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %31) #8
  %266 = getelementptr inbounds %"struct.mgpu::SparseMatrix", ptr %265, i32 0, i32 5
  %267 = load i32, ptr %13, align 4, !tbaa !9
  %268 = sext i32 %267 to i64
  invoke void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %266, i64 noundef %268)
          to label %269 unwind label %279

269:                                              ; preds = %264
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #8
  store i32 0, ptr %32, align 4, !tbaa !9
  br label %270

270:                                              ; preds = %309, %269
  %271 = load i32, ptr %32, align 4, !tbaa !9
  %272 = load i32, ptr %13, align 4, !tbaa !9
  %273 = icmp slt i32 %271, %272
  br i1 %273, label %283, label %274

274:                                              ; preds = %270
  store i32 5, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #8
  br label %312

275:                                              ; preds = %240
  %276 = landingpad { ptr, i32 }
          cleanup
  %277 = extractvalue { ptr, i32 } %276, 0
  store ptr %277, ptr %17, align 8
  %278 = extractvalue { ptr, i32 } %276, 1
  store i32 %278, ptr %18, align 4
  br label %346

279:                                              ; preds = %264, %259, %242
  %280 = landingpad { ptr, i32 }
          cleanup
  %281 = extractvalue { ptr, i32 } %280, 0
  store ptr %281, ptr %17, align 8
  %282 = extractvalue { ptr, i32 } %280, 1
  store i32 %282, ptr %18, align 4
  call void @_ZNSt8auto_ptrIN4mgpu12SparseMatrixEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %31) #8
  br label %346

283:                                              ; preds = %270
  call void @llvm.lifetime.start.p0(i64 16, ptr %33) #8
  %284 = load i32, ptr %32, align 4, !tbaa !9
  %285 = sext i32 %284 to i64
  %286 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN4mgpu13MatrixElementESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef %285) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %33, ptr align 8 %286, i64 16, i1 false), !tbaa.struct !35
  %287 = call noundef ptr @_ZNKSt8auto_ptrIN4mgpu12SparseMatrixEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %31) #8
  %288 = getelementptr inbounds %"struct.mgpu::SparseMatrix", ptr %287, i32 0, i32 3
  %289 = getelementptr inbounds %"struct.mgpu::MatrixElement", ptr %33, i32 0, i32 0
  %290 = load i32, ptr %289, align 8, !tbaa !19
  %291 = sext i32 %290 to i64
  %292 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %288, i64 noundef %291) #8
  %293 = load i32, ptr %292, align 4, !tbaa !9
  %294 = add nsw i32 %293, 1
  store i32 %294, ptr %292, align 4, !tbaa !9
  %295 = getelementptr inbounds %"struct.mgpu::MatrixElement", ptr %33, i32 0, i32 1
  %296 = load i32, ptr %295, align 4, !tbaa !20
  %297 = call noundef ptr @_ZNKSt8auto_ptrIN4mgpu12SparseMatrixEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %31) #8
  %298 = getelementptr inbounds %"struct.mgpu::SparseMatrix", ptr %297, i32 0, i32 4
  %299 = load i32, ptr %32, align 4, !tbaa !9
  %300 = sext i32 %299 to i64
  %301 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %298, i64 noundef %300) #8
  store i32 %296, ptr %301, align 4, !tbaa !9
  %302 = getelementptr inbounds %"struct.mgpu::MatrixElement", ptr %33, i32 0, i32 2
  %303 = load double, ptr %302, align 8, !tbaa !16
  %304 = call noundef ptr @_ZNKSt8auto_ptrIN4mgpu12SparseMatrixEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %31) #8
  %305 = getelementptr inbounds %"struct.mgpu::SparseMatrix", ptr %304, i32 0, i32 5
  %306 = load i32, ptr %32, align 4, !tbaa !9
  %307 = sext i32 %306 to i64
  %308 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %305, i64 noundef %307) #8
  store double %303, ptr %308, align 8, !tbaa !36
  call void @llvm.lifetime.end.p0(i64 16, ptr %33) #8
  br label %309

309:                                              ; preds = %283
  %310 = load i32, ptr %32, align 4, !tbaa !9
  %311 = add nsw i32 %310, 1
  store i32 %311, ptr %32, align 4, !tbaa !9
  br label %270, !llvm.loop !37

312:                                              ; preds = %274
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #8
  store i32 0, ptr %34, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #8
  store i32 0, ptr %35, align 4, !tbaa !9
  br label %313

313:                                              ; preds = %334, %312
  %314 = load i32, ptr %35, align 4, !tbaa !9
  %315 = load i32, ptr %14, align 4, !tbaa !9
  %316 = icmp slt i32 %314, %315
  br i1 %316, label %318, label %317

317:                                              ; preds = %313
  store i32 8, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #8
  br label %337

318:                                              ; preds = %313
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #8
  %319 = call noundef ptr @_ZNKSt8auto_ptrIN4mgpu12SparseMatrixEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %31) #8
  %320 = getelementptr inbounds %"struct.mgpu::SparseMatrix", ptr %319, i32 0, i32 3
  %321 = load i32, ptr %35, align 4, !tbaa !9
  %322 = sext i32 %321 to i64
  %323 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %320, i64 noundef %322) #8
  %324 = load i32, ptr %323, align 4, !tbaa !9
  store i32 %324, ptr %36, align 4, !tbaa !9
  %325 = load i32, ptr %34, align 4, !tbaa !9
  %326 = call noundef ptr @_ZNKSt8auto_ptrIN4mgpu12SparseMatrixEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %31) #8
  %327 = getelementptr inbounds %"struct.mgpu::SparseMatrix", ptr %326, i32 0, i32 3
  %328 = load i32, ptr %35, align 4, !tbaa !9
  %329 = sext i32 %328 to i64
  %330 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %327, i64 noundef %329) #8
  store i32 %325, ptr %330, align 4, !tbaa !9
  %331 = load i32, ptr %36, align 4, !tbaa !9
  %332 = load i32, ptr %34, align 4, !tbaa !9
  %333 = add nsw i32 %332, %331
  store i32 %333, ptr %34, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #8
  br label %334

334:                                              ; preds = %318
  %335 = load i32, ptr %35, align 4, !tbaa !9
  %336 = add nsw i32 %335, 1
  store i32 %336, ptr %35, align 4, !tbaa !9
  br label %313, !llvm.loop !38

337:                                              ; preds = %317
  %338 = load i32, ptr %34, align 4, !tbaa !9
  %339 = call noundef ptr @_ZNKSt8auto_ptrIN4mgpu12SparseMatrixEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %31) #8
  %340 = getelementptr inbounds %"struct.mgpu::SparseMatrix", ptr %339, i32 0, i32 3
  %341 = load i32, ptr %14, align 4, !tbaa !9
  %342 = sext i32 %341 to i64
  %343 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %340, i64 noundef %342) #8
  store i32 %338, ptr %343, align 4, !tbaa !9
  %344 = load ptr, ptr %6, align 8, !tbaa !5
  %345 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8auto_ptrIN4mgpu12SparseMatrixEEaSERS2_(ptr noundef nonnull align 8 dereferenceable(8) %344, ptr noundef nonnull align 8 dereferenceable(8) %31) #8
  store i1 true, ptr %4, align 1
  store i32 1, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #8
  call void @_ZNSt8auto_ptrIN4mgpu12SparseMatrixEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %31) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #8
  br label %347

346:                                              ; preds = %279, %275
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #8
  br label %348

347:                                              ; preds = %337, %229
  call void @_ZNSt6vectorIN4mgpu13MatrixElementESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  br label %349

348:                                              ; preds = %346, %228, %89
  call void @_ZNSt6vectorIN4mgpu13MatrixElementESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  br label %352

349:                                              ; preds = %347, %75
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #8
  br label %350

350:                                              ; preds = %349, %41
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  %351 = load i1, ptr %4, align 1
  ret i1 %351

352:                                              ; preds = %348
  %353 = load ptr, ptr %17, align 8
  %354 = load i32, ptr %18, align 4
  %355 = insertvalue { ptr, i32 } poison, ptr %353, 0
  %356 = insertvalue { ptr, i32 } %355, i32 %354, 1
  resume { ptr, i32 } %356
}

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

declare noundef i32 @_Z14mm_read_bannerP8_IO_FILEPA4_c(ptr noundef, ptr noundef) #2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) #0 align 2

declare noundef i32 @_Z20mm_read_mtx_crd_sizeP8_IO_FILEPiS1_S1_(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

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

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

declare i32 @__gxx_personality_v0(...)

declare i32 @__isoc99_fscanf(ptr noundef, ptr noundef, ...) #2

; Function Attrs: mustprogress uwtable
declare void @_ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(112)) unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #4

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #2

; Function Attrs: mustprogress uwtable
declare void @_ZNKSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEE3strEv(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(112)) #0 align 2

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

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

; 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 void @_ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(112)) unnamed_addr #3 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #5

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

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

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

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) #6

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4mgpu12SparseMatrixC2Ev(ptr noundef nonnull align 8 dereferenceable(88)) unnamed_addr #5 align 2

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN4mgpu13MatrixElementESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #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) #7

; 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) #3 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) #3 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIN4mgpu13MatrixElementESaIS1_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 = { "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 = { 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 #6 = { nobuiltin allocsize(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 #7 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #8 = { nounwind }
attributes #9 = { builtin allocsize(0) }

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

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


; 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<mgpu::MatrixElement, std::allocator<mgpu::MatrixElement>>::_Vector_impl" }
%"struct.std::_Vector_base<mgpu::MatrixElement, std::allocator<mgpu::MatrixElement>>::_Vector_impl" = type { %"struct.std::_Vector_base<mgpu::MatrixElement, std::allocator<mgpu::MatrixElement>>::_Vector_impl_data" }
%"struct.std::_Vector_base<mgpu::MatrixElement, std::allocator<mgpu::MatrixElement>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.mgpu::MatrixElement" = type { i32, i32, double }
%"class.std::__cxx11::basic_ostringstream" = type { %"class.std::basic_ostream.base", %"class.std::__cxx11::basic_stringbuf", %"class.std::basic_ios" }
%"class.std::basic_ostream.base" = type { ptr }
%"class.std::__cxx11::basic_stringbuf" = type { %"class.std::basic_streambuf", i32, %"class.std::__cxx11::basic_string" }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::auto_ptr" = type { ptr }

@.str = external hidden unnamed_addr constant [22 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [7 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN4mgpu16ReadSparseMatrixEP8_IO_FILEPSt8auto_ptrINS_12SparseMatrixEERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef %0, ptr noundef %1, ptr noundef nonnull align 8 dereferenceable(32) %2) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %4 = alloca [4 x i8], align 1
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca %"class.std::vector", align 8
  %9 = alloca %"struct.mgpu::MatrixElement", align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca %"class.std::__cxx11::basic_ostringstream", align 8
  %13 = alloca %"class.std::__cxx11::basic_string", align 8
  %14 = alloca %"class.std::__cxx11::basic_ostringstream", align 8
  %15 = alloca %"class.std::__cxx11::basic_string", align 8
  %16 = alloca %"class.std::auto_ptr", align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #7
  %17 = call noundef i32 @_Z14mm_read_bannerP8_IO_FILEPA4_c(ptr noundef %0, ptr noundef nonnull %4)
  %.not = icmp eq i32 %17, 0
  br i1 %.not, label %20, label %18

18:                                               ; preds = %3
  %19 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %2, ptr noundef nonnull @.str)
  br label %199

20:                                               ; preds = %3
  %21 = getelementptr inbounds i8, ptr %4, i64 2
  %22 = load i8, ptr %21, align 1, !tbaa !5
  %23 = icmp eq i8 %22, 80
  %24 = icmp eq i8 %22, 82
  %.old4 = load i8, ptr %4, align 1
  %.old6 = icmp eq i8 %.old4, 77
  br i1 %23, label %26, label %25

25:                                               ; preds = %20
  %or.cond = select i1 %24, i1 %.old6, i1 false
  br i1 %or.cond, label %27, label %31

26:                                               ; preds = %20
  br i1 %.old6, label %27, label %31

27:                                               ; preds = %25, %26
  %28 = getelementptr inbounds i8, ptr %4, i64 1
  %29 = load i8, ptr %28, align 1
  %30 = icmp eq i8 %29, 67
  br i1 %30, label %33, label %31

31:                                               ; preds = %27, %26, %25
  %32 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %2, ptr noundef nonnull @.str.1)
  br label %199

33:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #7
  %34 = call noundef i32 @_Z20mm_read_mtx_crd_sizeP8_IO_FILEPiS1_S1_(ptr noundef %0, ptr noundef nonnull %6, ptr noundef nonnull %7, ptr noundef nonnull %5)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #7
  call void @_ZNSt6vectorIN4mgpu13MatrixElementESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #7
  %35 = load i32, ptr %5, align 4, !tbaa !8
  %36 = sext i32 %35 to i64
  invoke void @_ZNSt6vectorIN4mgpu13MatrixElementESaIS1_EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %36)
          to label %.preheader104 unwind label %64

.preheader104:                                    ; preds = %33
  %37 = load i32, ptr %5, align 4, !tbaa !8
  %.not95117 = icmp slt i32 %37, 1
  br i1 %.not95117, label %.critedge102, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader104
  %38 = getelementptr inbounds i8, ptr %9, i64 8
  %39 = getelementptr inbounds i8, ptr %9, i64 4
  %40 = getelementptr inbounds i8, ptr %4, i64 3
  br i1 %24, label %.lr.ph.split.us, label %.lr.ph.split

.lr.ph.split.us:                                  ; preds = %.lr.ph, %59
  %.082118.us = phi i32 [ %60, %59 ], [ 0, %.lr.ph ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #7
  %41 = invoke i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %0, ptr noundef nonnull @.str.2, ptr noundef nonnull %11, ptr noundef nonnull %10, ptr noundef nonnull %38)
          to label %42 unwind label %.split.us

42:                                               ; preds = %.lr.ph.split.us
  %.not87.us = icmp eq i32 %41, 3
  br i1 %.not87.us, label %.critedge.us, label %.split121.us

.critedge.us:                                     ; preds = %42
  %43 = load i32, ptr %11, align 4, !tbaa !8
  %44 = add nsw i32 %43, -1
  store i32 %44, ptr %9, align 8, !tbaa !10
  %45 = load i32, ptr %10, align 4, !tbaa !8
  %46 = add nsw i32 %45, -1
  store i32 %46, ptr %39, align 4, !tbaa !13
  invoke void @_ZNSt6vectorIN4mgpu13MatrixElementESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(16) %9)
          to label %47 unwind label %.split125.us

47:                                               ; preds = %.critedge.us
  %48 = load i8, ptr %40, align 1
  switch i8 %48, label %59 [
    i8 83, label %49
    i8 75, label %49
  ]

49:                                               ; preds = %47, %47
  %50 = load i32, ptr %10, align 4, !tbaa !8
  %51 = load i32, ptr %11, align 4, !tbaa !8
  %.not92.us = icmp eq i32 %50, %51
  br i1 %.not92.us, label %59, label %52

52:                                               ; preds = %49
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %9, ptr noundef nonnull align 4 dereferenceable(4) %39) #7
  %53 = load i8, ptr %40, align 1, !tbaa !5
  %54 = icmp eq i8 %53, 75
  br i1 %54, label %55, label %58

55:                                               ; preds = %52
  %56 = load double, ptr %38, align 8, !tbaa !14
  %57 = fneg double %56
  store double %57, ptr %38, align 8, !tbaa !14
  br label %58

58:                                               ; preds = %55, %52
  invoke void @_ZNSt6vectorIN4mgpu13MatrixElementESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(16) %9)
          to label %59 unwind label %.split125.us

59:                                               ; preds = %58, %49, %47
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #7
  %60 = add nuw nsw i32 %.082118.us, 1
  %61 = load i32, ptr %5, align 4, !tbaa !8
  %.not95.us.not = icmp slt i32 %60, %61
  br i1 %.not95.us.not, label %.lr.ph.split.us, label %.critedge102, !llvm.loop !15

.split.us:                                        ; preds = %.lr.ph.split.us
  %62 = landingpad { ptr, i32 }
          cleanup
  br label %124

.split125.us:                                     ; preds = %58, %.critedge.us
  %63 = landingpad { ptr, i32 }
          cleanup
  br label %124

64:                                               ; preds = %.critedge102, %33
  %65 = landingpad { ptr, i32 }
          cleanup
  br label %198

.lr.ph.split:                                     ; preds = %.lr.ph, %121
  %.082118 = phi i32 [ %122, %121 ], [ 0, %.lr.ph ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #7
  br i1 %23, label %82, label %.critedge

.split121.us:                                     ; preds = %42
  call void @llvm.lifetime.start.p0(i64 376, ptr nonnull %12) #7
  invoke void @_ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(112) %12)
          to label %66 unwind label %74

66:                                               ; preds = %.split121.us
  %67 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull @.str.3)
          to label %68 unwind label %76

68:                                               ; preds = %66
  %69 = add nuw nsw i32 %.082118.us, 1
  %70 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %67, i32 noundef %69)
          to label %71 unwind label %76

71:                                               ; preds = %68
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %13) #7
  invoke void @_ZNKSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEE3strEv(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %13, ptr noundef nonnull align 8 dereferenceable(112) %12)
          to label %72 unwind label %78

72:                                               ; preds = %71
  %73 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %2, ptr noundef nonnull align 8 dereferenceable(32) %13) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #7
  call void @_ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(112) %12) #7
  call void @llvm.lifetime.end.p0(i64 376, ptr nonnull %12) #7
  br label %.critedge100

74:                                               ; preds = %.split121.us
  %75 = landingpad { ptr, i32 }
          cleanup
  br label %81

76:                                               ; preds = %68, %66
  %77 = landingpad { ptr, i32 }
          cleanup
  br label %80

78:                                               ; preds = %71
  %79 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #7
  br label %80

80:                                               ; preds = %78, %76
  %.pn88 = phi { ptr, i32 } [ %79, %78 ], [ %77, %76 ]
  call void @_ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(112) %12) #7
  br label %81

81:                                               ; preds = %80, %74
  %.pn88.pn = phi { ptr, i32 } [ %.pn88, %80 ], [ %75, %74 ]
  call void @llvm.lifetime.end.p0(i64 376, ptr nonnull %12) #7
  br label %124

82:                                               ; preds = %.lr.ph.split
  %83 = invoke i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %0, ptr noundef nonnull @.str.4, ptr noundef nonnull %11, ptr noundef nonnull %10)
          to label %84 unwind label %92

84:                                               ; preds = %82
  %.not83 = icmp eq i32 %83, 2
  br i1 %.not83, label %.thread, label %85

85:                                               ; preds = %84
  call void @llvm.lifetime.start.p0(i64 376, ptr nonnull %14) #7
  invoke void @_ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(112) %14)
          to label %86 unwind label %94

86:                                               ; preds = %85
  %87 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull @.str.3)
          to label %88 unwind label %96

88:                                               ; preds = %86
  %89 = add nuw nsw i32 %.082118, 1
  %90 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %87, i32 noundef %89)
          to label %91 unwind label %96

91:                                               ; preds = %88
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %15) #7
  invoke void @_ZNKSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEE3strEv(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %15, ptr noundef nonnull align 8 dereferenceable(112) %14)
          to label %102 unwind label %98

92:                                               ; preds = %82
  %93 = landingpad { ptr, i32 }
          cleanup
  br label %124

94:                                               ; preds = %85
  %95 = landingpad { ptr, i32 }
          cleanup
  br label %101

96:                                               ; preds = %88, %86
  %97 = landingpad { ptr, i32 }
          cleanup
  br label %100

98:                                               ; preds = %91
  %99 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %15) #7
  br label %100

100:                                              ; preds = %98, %96
  %.pn = phi { ptr, i32 } [ %99, %98 ], [ %97, %96 ]
  call void @_ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(112) %14) #7
  br label %101

101:                                              ; preds = %100, %94
  %.pn.pn = phi { ptr, i32 } [ %.pn, %100 ], [ %95, %94 ]
  call void @llvm.lifetime.end.p0(i64 376, ptr nonnull %14) #7
  br label %124

.thread:                                          ; preds = %84
  store double 1.000000e+00, ptr %38, align 8, !tbaa !14
  %.pre = load i32, ptr %11, align 4, !tbaa !8
  %.pre152 = load i32, ptr %10, align 4, !tbaa !8
  br label %.critedge

102:                                              ; preds = %91
  %103 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %2, ptr noundef nonnull align 8 dereferenceable(32) %15) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %15) #7
  call void @_ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(112) %14) #7
  call void @llvm.lifetime.end.p0(i64 376, ptr nonnull %14) #7
  br label %.critedge100

.critedge:                                        ; preds = %.thread, %.lr.ph.split
  %104 = phi i32 [ %.pre152, %.thread ], [ undef, %.lr.ph.split ]
  %105 = phi i32 [ %.pre, %.thread ], [ undef, %.lr.ph.split ]
  %106 = add nsw i32 %105, -1
  store i32 %106, ptr %9, align 8, !tbaa !10
  %107 = add nsw i32 %104, -1
  store i32 %107, ptr %39, align 4, !tbaa !13
  invoke void @_ZNSt6vectorIN4mgpu13MatrixElementESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(16) %9)
          to label %108 unwind label %.split125

108:                                              ; preds = %.critedge
  %109 = load i8, ptr %40, align 1
  switch i8 %109, label %121 [
    i8 83, label %110
    i8 75, label %110
  ]

110:                                              ; preds = %108, %108
  %111 = load i32, ptr %10, align 4, !tbaa !8
  %112 = load i32, ptr %11, align 4, !tbaa !8
  %.not92 = icmp eq i32 %111, %112
  br i1 %.not92, label %121, label %113

113:                                              ; preds = %110
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %9, ptr noundef nonnull align 4 dereferenceable(4) %39) #7
  %114 = load i8, ptr %40, align 1, !tbaa !5
  %115 = icmp eq i8 %114, 75
  br i1 %115, label %116, label %120

116:                                              ; preds = %113
  %117 = load double, ptr %38, align 8, !tbaa !14
  %118 = fneg double %117
  store double %118, ptr %38, align 8, !tbaa !14
  br label %120

.split125:                                        ; preds = %120, %.critedge
  %119 = landingpad { ptr, i32 }
          cleanup
  br label %124

120:                                              ; preds = %116, %113
  invoke void @_ZNSt6vectorIN4mgpu13MatrixElementESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(16) %9)
          to label %121 unwind label %.split125

121:                                              ; preds = %110, %120, %108
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #7
  %122 = add nuw nsw i32 %.082118, 1
  %123 = load i32, ptr %5, align 4, !tbaa !8
  %.not95.not = icmp slt i32 %122, %123
  br i1 %.not95.not, label %.lr.ph.split, label %.critedge102, !llvm.loop !15

124:                                              ; preds = %.split125, %.split125.us, %92, %101, %.split.us, %81
  %.pn93 = phi { ptr, i32 } [ %.pn88.pn, %81 ], [ %62, %.split.us ], [ %.pn.pn, %101 ], [ %93, %92 ], [ %119, %.split125 ], [ %63, %.split125.us ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #7
  br label %198

.critedge100:                                     ; preds = %102, %72
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #7
  br label %197

.critedge102:                                     ; preds = %121, %59, %.preheader104
  %125 = call ptr @_ZNSt6vectorIN4mgpu13MatrixElementESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #7
  %126 = call ptr @_ZNSt6vectorIN4mgpu13MatrixElementESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #7
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPN4mgpu13MatrixElementESt6vectorIS3_SaIS3_EEEEEvT_S9_(ptr %125, ptr %126)
          to label %127 unwind label %64

127:                                              ; preds = %.critedge102
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #7
  %128 = invoke noalias noundef nonnull dereferenceable(88) ptr @_Znwm(i64 noundef 88) #8
          to label %129 unwind label %159

129:                                              ; preds = %127
  call void @_ZN4mgpu12SparseMatrixC2Ev(ptr noundef nonnull align 8 dereferenceable(88) %128) #7
  call void @_ZNSt8auto_ptrIN4mgpu12SparseMatrixEEC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull %128) #7
  %130 = call noundef i64 @_ZNKSt6vectorIN4mgpu13MatrixElementESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #7
  %131 = trunc i64 %130 to i32
  store i32 %131, ptr %5, align 4, !tbaa !8
  %132 = load i32, ptr %6, align 4, !tbaa !8
  %133 = call noundef ptr @_ZNKSt8auto_ptrIN4mgpu12SparseMatrixEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #7
  store i32 %132, ptr %133, align 8, !tbaa !17
  %134 = load i32, ptr %7, align 4, !tbaa !8
  %135 = call noundef ptr @_ZNKSt8auto_ptrIN4mgpu12SparseMatrixEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #7
  %136 = getelementptr inbounds i8, ptr %135, i64 4
  store i32 %134, ptr %136, align 4, !tbaa !28
  %137 = load i32, ptr %5, align 4, !tbaa !8
  %138 = call noundef ptr @_ZNKSt8auto_ptrIN4mgpu12SparseMatrixEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #7
  %139 = getelementptr inbounds i8, ptr %138, i64 8
  store i32 %137, ptr %139, align 8, !tbaa !29
  %140 = call noundef ptr @_ZNKSt8auto_ptrIN4mgpu12SparseMatrixEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #7
  %141 = getelementptr inbounds i8, ptr %140, i64 16
  %142 = load i32, ptr %6, align 4, !tbaa !8
  %143 = add nsw i32 %142, 1
  %144 = sext i32 %143 to i64
  invoke void @_ZNSt6vectorIiSaIiEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %141, i64 noundef %144)
          to label %145 unwind label %161

145:                                              ; preds = %129
  %146 = call noundef ptr @_ZNKSt8auto_ptrIN4mgpu12SparseMatrixEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #7
  %147 = getelementptr inbounds i8, ptr %146, i64 40
  %148 = load i32, ptr %5, align 4, !tbaa !8
  %149 = sext i32 %148 to i64
  invoke void @_ZNSt6vectorIiSaIiEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %147, i64 noundef %149)
          to label %150 unwind label %161

150:                                              ; preds = %145
  %151 = call noundef ptr @_ZNKSt8auto_ptrIN4mgpu12SparseMatrixEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #7
  %152 = getelementptr inbounds i8, ptr %151, i64 64
  %153 = load i32, ptr %5, align 4, !tbaa !8
  %154 = sext i32 %153 to i64
  invoke void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %152, i64 noundef %154)
          to label %.preheader103 unwind label %161

.preheader103:                                    ; preds = %150
  %155 = load i32, ptr %5, align 4, !tbaa !8
  %156 = icmp sgt i32 %155, 0
  br i1 %156, label %.lr.ph129, label %.preheader

.preheader:                                       ; preds = %.lr.ph129, %.preheader103
  %157 = load i32, ptr %6, align 4, !tbaa !8
  %158 = icmp sgt i32 %157, 0
  br i1 %158, label %.lr.ph132, label %._crit_edge

159:                                              ; preds = %127
  %160 = landingpad { ptr, i32 }
          cleanup
  br label %196

161:                                              ; preds = %150, %145, %129
  %162 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt8auto_ptrIN4mgpu12SparseMatrixEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %16) #7
  br label %196

.lr.ph129:                                        ; preds = %.preheader103, %.lr.ph129
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph129 ], [ 0, %.preheader103 ]
  %163 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN4mgpu13MatrixElementESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %indvars.iv) #7
  %.sroa.0.0.copyload = load i32, ptr %163, align 8, !tbaa !8
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %163, i64 4
  %.sroa.4.0.copyload = load i32, ptr %.sroa.4.0..sroa_idx, align 4, !tbaa !8
  %.sroa.5.0..sroa_idx = getelementptr inbounds i8, ptr %163, i64 8
  %.sroa.5.0.copyload = load double, ptr %.sroa.5.0..sroa_idx, align 8, !tbaa !30
  %164 = call noundef ptr @_ZNKSt8auto_ptrIN4mgpu12SparseMatrixEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #7
  %165 = getelementptr inbounds i8, ptr %164, i64 16
  %166 = sext i32 %.sroa.0.0.copyload to i64
  %167 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %165, i64 noundef %166) #7
  %168 = load i32, ptr %167, align 4, !tbaa !8
  %169 = add nsw i32 %168, 1
  store i32 %169, ptr %167, align 4, !tbaa !8
  %170 = call noundef ptr @_ZNKSt8auto_ptrIN4mgpu12SparseMatrixEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #7
  %171 = getelementptr inbounds i8, ptr %170, i64 40
  %172 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %171, i64 noundef %indvars.iv) #7
  store i32 %.sroa.4.0.copyload, ptr %172, align 4, !tbaa !8
  %173 = call noundef ptr @_ZNKSt8auto_ptrIN4mgpu12SparseMatrixEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #7
  %174 = getelementptr inbounds i8, ptr %173, i64 64
  %175 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %174, i64 noundef %indvars.iv) #7
  store double %.sroa.5.0.copyload, ptr %175, align 8, !tbaa !30
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %176 = load i32, ptr %5, align 4, !tbaa !8
  %177 = sext i32 %176 to i64
  %178 = icmp slt i64 %indvars.iv.next, %177
  br i1 %178, label %.lr.ph129, label %.preheader, !llvm.loop !31

._crit_edge:                                      ; preds = %.lr.ph132, %.preheader
  %.058.lcssa = phi i32 [ 0, %.preheader ], [ %192, %.lr.ph132 ]
  %179 = call noundef ptr @_ZNKSt8auto_ptrIN4mgpu12SparseMatrixEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #7
  %180 = getelementptr inbounds i8, ptr %179, i64 16
  %181 = load i32, ptr %6, align 4, !tbaa !8
  %182 = sext i32 %181 to i64
  %183 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %180, i64 noundef %182) #7
  store i32 %.058.lcssa, ptr %183, align 4, !tbaa !8
  %184 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8auto_ptrIN4mgpu12SparseMatrixEEaSERS2_(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %16) #7
  call void @_ZNSt8auto_ptrIN4mgpu12SparseMatrixEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #7
  br label %197

.lr.ph132:                                        ; preds = %.preheader, %.lr.ph132
  %indvars.iv149 = phi i64 [ %indvars.iv.next150, %.lr.ph132 ], [ 0, %.preheader ]
  %.058130 = phi i32 [ %192, %.lr.ph132 ], [ 0, %.preheader ]
  %185 = call noundef ptr @_ZNKSt8auto_ptrIN4mgpu12SparseMatrixEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #7
  %186 = getelementptr inbounds i8, ptr %185, i64 16
  %187 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %186, i64 noundef %indvars.iv149) #7
  %188 = load i32, ptr %187, align 4, !tbaa !8
  %189 = call noundef ptr @_ZNKSt8auto_ptrIN4mgpu12SparseMatrixEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #7
  %190 = getelementptr inbounds i8, ptr %189, i64 16
  %191 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %190, i64 noundef %indvars.iv149) #7
  store i32 %.058130, ptr %191, align 4, !tbaa !8
  %192 = add nsw i32 %188, %.058130
  %indvars.iv.next150 = add nuw nsw i64 %indvars.iv149, 1
  %193 = load i32, ptr %6, align 4, !tbaa !8
  %194 = sext i32 %193 to i64
  %195 = icmp slt i64 %indvars.iv.next150, %194
  br i1 %195, label %.lr.ph132, label %._crit_edge, !llvm.loop !32

196:                                              ; preds = %161, %159
  %.pn96 = phi { ptr, i32 } [ %162, %161 ], [ %160, %159 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #7
  br label %198

197:                                              ; preds = %.critedge100, %._crit_edge
  %.not95110 = phi i1 [ false, %.critedge100 ], [ true, %._crit_edge ]
  call void @_ZNSt6vectorIN4mgpu13MatrixElementESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  br label %199

198:                                              ; preds = %196, %124, %64
  %.pn96.pn = phi { ptr, i32 } [ %.pn96, %196 ], [ %65, %64 ], [ %.pn93, %124 ]
  call void @_ZNSt6vectorIN4mgpu13MatrixElementESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #7
  resume { ptr, i32 } %.pn96.pn

199:                                              ; preds = %31, %197, %18
  %.8 = phi i1 [ false, %18 ], [ %.not95110, %197 ], [ false, %31 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #7
  ret i1 %.8
}

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

declare noundef i32 @_Z14mm_read_bannerP8_IO_FILEPA4_c(ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) local_unnamed_addr #0 align 2

declare noundef i32 @_Z20mm_read_mtx_crd_sizeP8_IO_FILEPiS1_S1_(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

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

declare i32 @__gxx_personality_v0(...)

declare i32 @__isoc99_fscanf(ptr noundef, ptr noundef, ...) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare void @_ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(112)) unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #4

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare void @_ZNKSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEE3strEv(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(112)) local_unnamed_addr #0 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) 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 void @_ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(112)) unnamed_addr #3 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #5

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

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

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

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) local_unnamed_addr #6

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4mgpu12SparseMatrixC2Ev(ptr noundef nonnull align 8 dereferenceable(88)) unnamed_addr #5 align 2

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN4mgpu13MatrixElementESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #3 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 #3 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 #3 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIN4mgpu13MatrixElementESaIS1_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 = { "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 = { 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 #6 = { nobuiltin allocsize(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 #7 = { nounwind }
attributes #8 = { builtin allocsize(0) }

!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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"int", !6, i64 0}
!10 = !{!11, !9, i64 0}
!11 = !{!"_ZTSN4mgpu13MatrixElementE", !9, i64 0, !9, i64 4, !12, i64 8}
!12 = !{!"double", !6, i64 0}
!13 = !{!11, !9, i64 4}
!14 = !{!11, !12, i64 8}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!18, !9, i64 0}
!18 = !{!"_ZTSN4mgpu12SparseMatrixE", !9, i64 0, !9, i64 4, !9, i64 8, !19, i64 16, !19, i64 40, !24, i64 64}
!19 = !{!"_ZTSSt6vectorIiSaIiEE", !20, i64 0}
!20 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !23, i64 0, !23, i64 8, !23, i64 16}
!23 = !{!"any pointer", !6, i64 0}
!24 = !{!"_ZTSSt6vectorIdSaIdEE", !25, i64 0}
!25 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !23, i64 0, !23, i64 8, !23, i64 16}
!28 = !{!18, !9, i64 4}
!29 = !{!18, !9, i64 8}
!30 = !{!12, !12, i64 0}
!31 = distinct !{!31, !16}
!32 = distinct !{!32, !16}


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