; LLVM IR from moarseniy/CudaFEMproject :: FEMproject/VTKfile/src (VTKfile)

; 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::basic_fstream" = type { %"class.std::basic_iostream.base", %"class.std::basic_filebuf", %"class.std::basic_ios" }
%"class.std::basic_iostream.base" = type { %"class.std::basic_istream.base", %"class.std::basic_ostream.base" }
%"class.std::basic_istream.base" = type { ptr, i64 }
%"class.std::basic_ostream.base" = type { ptr }
%"class.std::basic_filebuf" = type { %"class.std::basic_streambuf", %union.pthread_mutex_t, %"class.std::__basic_file", i32, %struct.__mbstate_t, %struct.__mbstate_t, %struct.__mbstate_t, ptr, i64, i8, i8, i8, i8, ptr, ptr, i8, ptr, ptr, i64, ptr, ptr }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.std::__basic_file" = type <{ ptr, i8, [7 x i8] }>
%struct.__mbstate_t = type { i32, %union.anon.0 }
%union.anon.0 = type { i32 }
%"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 }

@.str.7 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [115 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [45 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: 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) #1

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

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

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

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

; Function Attrs: mustprogress uwtable
declare void @_ZNSt13basic_fstreamIcSt11char_traitsIcEE4openERKNSt7__cxx1112basic_stringIcS1_SaIcEEESt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(264), ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt13basic_fstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(264)) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z13MakeVTKfile2DNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEER6MatrixS6_S6_(ptr noundef %0, ptr noundef nonnull align 8 dereferenceable(49) %1, ptr noundef nonnull align 8 dereferenceable(49) %2, ptr noundef nonnull align 8 dereferenceable(49) %3) #3 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca %"class.std::basic_fstream", align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i32, align 4
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  %20 = alloca i64, align 8
  %21 = alloca i64, align 8
  %22 = alloca float, align 4
  %23 = alloca i64, align 8
  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
  store ptr %3, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 528, ptr %9) #7
  call void @_ZNSt13basic_fstreamIcSt11char_traitsIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(264) %9)
  invoke void @_ZNSt13basic_fstreamIcSt11char_traitsIcEE4openERKNSt7__cxx1112basic_stringIcS1_SaIcEEESt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(264) %9, ptr noundef nonnull align 8 dereferenceable(32) %0, i32 noundef 16)
          to label %24 unwind label %45

24:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  %25 = load ptr, ptr %6, align 8, !tbaa !5
  %26 = invoke noundef i64 @_ZNK6Matrix11get_numColsEv(ptr noundef nonnull align 8 dereferenceable(49) %25)
          to label %27 unwind label %49

27:                                               ; preds = %24
  store i64 %26, ptr %12, align 8, !tbaa !9
  %28 = getelementptr inbounds i8, ptr %9, i64 16
  %29 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %28, ptr noundef @.str.16)
          to label %30 unwind label %49

30:                                               ; preds = %27
  %31 = load ptr, ptr %6, align 8, !tbaa !5
  %32 = invoke noundef i64 @_ZNK6Matrix11get_numRowsEv(ptr noundef nonnull align 8 dereferenceable(49) %31)
          to label %33 unwind label %49

33:                                               ; preds = %30
  %34 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %29, i64 noundef %32)
          to label %35 unwind label %49

35:                                               ; preds = %33
  %36 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %34, ptr noundef @.str.17)
          to label %37 unwind label %49

37:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  store i64 0, ptr %13, align 8, !tbaa !9
  br label %38

38:                                               ; preds = %88, %37
  %39 = load i64, ptr %13, align 8, !tbaa !9
  %40 = load ptr, ptr %6, align 8, !tbaa !5
  %41 = invoke noundef i64 @_ZNK6Matrix11get_numRowsEv(ptr noundef nonnull align 8 dereferenceable(49) %40)
          to label %42 unwind label %53

42:                                               ; preds = %38
  %43 = icmp ult i64 %39, %41
  br i1 %43, label %57, label %44

44:                                               ; preds = %42
  store i32 2, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  br label %92

45:                                               ; preds = %4
  %46 = landingpad { ptr, i32 }
          cleanup
  %47 = extractvalue { ptr, i32 } %46, 0
  store ptr %47, ptr %10, align 8
  %48 = extractvalue { ptr, i32 } %46, 1
  store i32 %48, ptr %11, align 4
  br label %320

49:                                               ; preds = %255, %205, %203, %201, %198, %195, %172, %170, %167, %164, %108, %105, %102, %100, %98, %95, %92, %35, %33, %30, %27, %24
  %50 = landingpad { ptr, i32 }
          cleanup
  %51 = extractvalue { ptr, i32 } %50, 0
  store ptr %51, ptr %10, align 8
  %52 = extractvalue { ptr, i32 } %50, 1
  store i32 %52, ptr %11, align 4
  br label %319

53:                                               ; preds = %84, %38
  %54 = landingpad { ptr, i32 }
          cleanup
  %55 = extractvalue { ptr, i32 } %54, 0
  store ptr %55, ptr %10, align 8
  %56 = extractvalue { ptr, i32 } %54, 1
  store i32 %56, ptr %11, align 4
  br label %91

57:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  store i64 0, ptr %15, align 8, !tbaa !9
  br label %58

58:                                               ; preds = %81, %57
  %59 = load i64, ptr %15, align 8, !tbaa !9
  %60 = load ptr, ptr %6, align 8, !tbaa !5
  %61 = invoke noundef i64 @_ZNK6Matrix11get_numColsEv(ptr noundef nonnull align 8 dereferenceable(49) %60)
          to label %62 unwind label %65

62:                                               ; preds = %58
  %63 = icmp ult i64 %59, %61
  br i1 %63, label %69, label %64

64:                                               ; preds = %62
  store i32 5, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  br label %84

65:                                               ; preds = %78, %75, %69, %58
  %66 = landingpad { ptr, i32 }
          cleanup
  %67 = extractvalue { ptr, i32 } %66, 0
  store ptr %67, ptr %10, align 8
  %68 = extractvalue { ptr, i32 } %66, 1
  store i32 %68, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  br label %91

69:                                               ; preds = %62
  %70 = getelementptr inbounds i8, ptr %9, i64 16
  %71 = load ptr, ptr %6, align 8, !tbaa !5
  %72 = load i64, ptr %13, align 8, !tbaa !9
  %73 = load i64, ptr %15, align 8, !tbaa !9
  %74 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6MatrixclEmm(ptr noundef nonnull align 8 dereferenceable(49) %71, i64 noundef %72, i64 noundef %73)
          to label %75 unwind label %65

75:                                               ; preds = %69
  %76 = load float, ptr %74, align 4, !tbaa !11
  %77 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %70, float noundef %76)
          to label %78 unwind label %65

78:                                               ; preds = %75
  %79 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %77, ptr noundef @.str.11)
          to label %80 unwind label %65

80:                                               ; preds = %78
  br label %81

81:                                               ; preds = %80
  %82 = load i64, ptr %15, align 8, !tbaa !9
  %83 = add i64 %82, 1
  store i64 %83, ptr %15, align 8, !tbaa !9
  br label %58, !llvm.loop !13

84:                                               ; preds = %64
  %85 = getelementptr inbounds i8, ptr %9, i64 16
  %86 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %85, ptr noundef @.str.18)
          to label %87 unwind label %53

87:                                               ; preds = %84
  br label %88

88:                                               ; preds = %87
  %89 = load i64, ptr %13, align 8, !tbaa !9
  %90 = add i64 %89, 1
  store i64 %90, ptr %13, align 8, !tbaa !9
  br label %38, !llvm.loop !15

91:                                               ; preds = %65, %53
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  br label %319

92:                                               ; preds = %44
  %93 = getelementptr inbounds i8, ptr %9, i64 16
  %94 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %93, ptr noundef @.str.19)
          to label %95 unwind label %49

95:                                               ; preds = %92
  %96 = load ptr, ptr %7, align 8, !tbaa !5
  %97 = invoke noundef i64 @_ZNK6Matrix11get_numRowsEv(ptr noundef nonnull align 8 dereferenceable(49) %96)
          to label %98 unwind label %49

98:                                               ; preds = %95
  %99 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %94, i64 noundef %97)
          to label %100 unwind label %49

100:                                              ; preds = %98
  %101 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %99, ptr noundef @.str.11)
          to label %102 unwind label %49

102:                                              ; preds = %100
  %103 = load ptr, ptr %7, align 8, !tbaa !5
  %104 = invoke noundef i64 @_ZNK6Matrix11get_numRowsEv(ptr noundef nonnull align 8 dereferenceable(49) %103)
          to label %105 unwind label %49

105:                                              ; preds = %102
  %106 = mul i64 %104, 4
  %107 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %101, i64 noundef %106)
          to label %108 unwind label %49

108:                                              ; preds = %105
  %109 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %107, ptr noundef @.str.7)
          to label %110 unwind label %49

110:                                              ; preds = %108
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  store i64 0, ptr %16, align 8, !tbaa !9
  br label %111

111:                                              ; preds = %160, %110
  %112 = load i64, ptr %16, align 8, !tbaa !9
  %113 = load ptr, ptr %7, align 8, !tbaa !5
  %114 = invoke noundef i64 @_ZNK6Matrix11get_numRowsEv(ptr noundef nonnull align 8 dereferenceable(49) %113)
          to label %115 unwind label %118

115:                                              ; preds = %111
  %116 = icmp ult i64 %112, %114
  br i1 %116, label %122, label %117

117:                                              ; preds = %115
  store i32 8, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  br label %164

118:                                              ; preds = %156, %127, %122, %111
  %119 = landingpad { ptr, i32 }
          cleanup
  %120 = extractvalue { ptr, i32 } %119, 0
  store ptr %120, ptr %10, align 8
  %121 = extractvalue { ptr, i32 } %119, 1
  store i32 %121, ptr %11, align 4
  br label %163

122:                                              ; preds = %115
  %123 = getelementptr inbounds i8, ptr %9, i64 16
  %124 = load i64, ptr %12, align 8, !tbaa !9
  %125 = add i64 %124, 1
  %126 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %123, i64 noundef %125)
          to label %127 unwind label %118

127:                                              ; preds = %122
  %128 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %126, ptr noundef @.str.11)
          to label %129 unwind label %118

129:                                              ; preds = %127
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  store i64 0, ptr %17, align 8, !tbaa !9
  br label %130

130:                                              ; preds = %153, %129
  %131 = load i64, ptr %17, align 8, !tbaa !9
  %132 = load ptr, ptr %7, align 8, !tbaa !5
  %133 = invoke noundef i64 @_ZNK6Matrix11get_numColsEv(ptr noundef nonnull align 8 dereferenceable(49) %132)
          to label %134 unwind label %137

134:                                              ; preds = %130
  %135 = icmp ult i64 %131, %133
  br i1 %135, label %141, label %136

136:                                              ; preds = %134
  store i32 11, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  br label %156

137:                                              ; preds = %150, %147, %141, %130
  %138 = landingpad { ptr, i32 }
          cleanup
  %139 = extractvalue { ptr, i32 } %138, 0
  store ptr %139, ptr %10, align 8
  %140 = extractvalue { ptr, i32 } %138, 1
  store i32 %140, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  br label %163

141:                                              ; preds = %134
  %142 = getelementptr inbounds i8, ptr %9, i64 16
  %143 = load ptr, ptr %7, align 8, !tbaa !5
  %144 = load i64, ptr %16, align 8, !tbaa !9
  %145 = load i64, ptr %17, align 8, !tbaa !9
  %146 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6MatrixclEmm(ptr noundef nonnull align 8 dereferenceable(49) %143, i64 noundef %144, i64 noundef %145)
          to label %147 unwind label %137

147:                                              ; preds = %141
  %148 = load float, ptr %146, align 4, !tbaa !11
  %149 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %142, float noundef %148)
          to label %150 unwind label %137

150:                                              ; preds = %147
  %151 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %149, ptr noundef @.str.11)
          to label %152 unwind label %137

152:                                              ; preds = %150
  br label %153

153:                                              ; preds = %152
  %154 = load i64, ptr %17, align 8, !tbaa !9
  %155 = add i64 %154, 1
  store i64 %155, ptr %17, align 8, !tbaa !9
  br label %130, !llvm.loop !16

156:                                              ; preds = %136
  %157 = getelementptr inbounds i8, ptr %9, i64 16
  %158 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %157, ptr noundef @.str.7)
          to label %159 unwind label %118

159:                                              ; preds = %156
  br label %160

160:                                              ; preds = %159
  %161 = load i64, ptr %16, align 8, !tbaa !9
  %162 = add i64 %161, 1
  store i64 %162, ptr %16, align 8, !tbaa !9
  br label %111, !llvm.loop !17

163:                                              ; preds = %137, %118
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  br label %319

164:                                              ; preds = %117
  %165 = getelementptr inbounds i8, ptr %9, i64 16
  %166 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %165, ptr noundef @.str.20)
          to label %167 unwind label %49

167:                                              ; preds = %164
  %168 = load ptr, ptr %7, align 8, !tbaa !5
  %169 = invoke noundef i64 @_ZNK6Matrix11get_numRowsEv(ptr noundef nonnull align 8 dereferenceable(49) %168)
          to label %170 unwind label %49

170:                                              ; preds = %167
  %171 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %166, i64 noundef %169)
          to label %172 unwind label %49

172:                                              ; preds = %170
  %173 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %171, ptr noundef @.str.7)
          to label %174 unwind label %49

174:                                              ; preds = %172
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  store i64 0, ptr %18, align 8, !tbaa !9
  br label %175

175:                                              ; preds = %192, %174
  %176 = load i64, ptr %18, align 8, !tbaa !9
  %177 = load ptr, ptr %7, align 8, !tbaa !5
  %178 = invoke noundef i64 @_ZNK6Matrix11get_numRowsEv(ptr noundef nonnull align 8 dereferenceable(49) %177)
          to label %179 unwind label %182

179:                                              ; preds = %175
  %180 = icmp ult i64 %176, %178
  br i1 %180, label %186, label %181

181:                                              ; preds = %179
  store i32 14, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  br label %195

182:                                              ; preds = %189, %186, %175
  %183 = landingpad { ptr, i32 }
          cleanup
  %184 = extractvalue { ptr, i32 } %183, 0
  store ptr %184, ptr %10, align 8
  %185 = extractvalue { ptr, i32 } %183, 1
  store i32 %185, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  br label %319

186:                                              ; preds = %179
  %187 = getelementptr inbounds i8, ptr %9, i64 16
  %188 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %187, i32 noundef 5)
          to label %189 unwind label %182

189:                                              ; preds = %186
  %190 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %188, ptr noundef @.str.7)
          to label %191 unwind label %182

191:                                              ; preds = %189
  br label %192

192:                                              ; preds = %191
  %193 = load i64, ptr %18, align 8, !tbaa !9
  %194 = add i64 %193, 1
  store i64 %194, ptr %18, align 8, !tbaa !9
  br label %175, !llvm.loop !18

195:                                              ; preds = %181
  %196 = getelementptr inbounds i8, ptr %9, i64 16
  %197 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %196, ptr noundef @.str.21)
          to label %198 unwind label %49

198:                                              ; preds = %195
  %199 = load ptr, ptr %6, align 8, !tbaa !5
  %200 = invoke noundef i64 @_ZNK6Matrix11get_numRowsEv(ptr noundef nonnull align 8 dereferenceable(49) %199)
          to label %201 unwind label %49

201:                                              ; preds = %198
  %202 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %197, i64 noundef %200)
          to label %203 unwind label %49

203:                                              ; preds = %201
  %204 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %202, ptr noundef @.str.7)
          to label %205 unwind label %49

205:                                              ; preds = %203
  %206 = getelementptr inbounds i8, ptr %9, i64 16
  %207 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %206, ptr noundef @.str.22)
          to label %208 unwind label %49

208:                                              ; preds = %205
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  store i64 0, ptr %19, align 8, !tbaa !9
  br label %209

209:                                              ; preds = %251, %208
  %210 = load i64, ptr %19, align 8, !tbaa !9
  %211 = load ptr, ptr %8, align 8, !tbaa !5
  %212 = invoke noundef i64 @_ZNK6Matrix11get_numRowsEv(ptr noundef nonnull align 8 dereferenceable(49) %211)
          to label %213 unwind label %216

213:                                              ; preds = %209
  %214 = icmp ult i64 %210, %212
  br i1 %214, label %220, label %215

215:                                              ; preds = %213
  store i32 17, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  br label %255

216:                                              ; preds = %247, %209
  %217 = landingpad { ptr, i32 }
          cleanup
  %218 = extractvalue { ptr, i32 } %217, 0
  store ptr %218, ptr %10, align 8
  %219 = extractvalue { ptr, i32 } %217, 1
  store i32 %219, ptr %11, align 4
  br label %254

220:                                              ; preds = %213
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  store i64 0, ptr %20, align 8, !tbaa !9
  br label %221

221:                                              ; preds = %244, %220
  %222 = load i64, ptr %20, align 8, !tbaa !9
  %223 = load ptr, ptr %8, align 8, !tbaa !5
  %224 = invoke noundef i64 @_ZNK6Matrix11get_numColsEv(ptr noundef nonnull align 8 dereferenceable(49) %223)
          to label %225 unwind label %228

225:                                              ; preds = %221
  %226 = icmp ult i64 %222, %224
  br i1 %226, label %232, label %227

227:                                              ; preds = %225
  store i32 20, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  br label %247

228:                                              ; preds = %241, %238, %232, %221
  %229 = landingpad { ptr, i32 }
          cleanup
  %230 = extractvalue { ptr, i32 } %229, 0
  store ptr %230, ptr %10, align 8
  %231 = extractvalue { ptr, i32 } %229, 1
  store i32 %231, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  br label %254

232:                                              ; preds = %225
  %233 = getelementptr inbounds i8, ptr %9, i64 16
  %234 = load ptr, ptr %8, align 8, !tbaa !5
  %235 = load i64, ptr %19, align 8, !tbaa !9
  %236 = load i64, ptr %20, align 8, !tbaa !9
  %237 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6MatrixclEmm(ptr noundef nonnull align 8 dereferenceable(49) %234, i64 noundef %235, i64 noundef %236)
          to label %238 unwind label %228

238:                                              ; preds = %232
  %239 = load float, ptr %237, align 4, !tbaa !11
  %240 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %233, float noundef %239)
          to label %241 unwind label %228

241:                                              ; preds = %238
  %242 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %240, ptr noundef @.str.11)
          to label %243 unwind label %228

243:                                              ; preds = %241
  br label %244

244:                                              ; preds = %243
  %245 = load i64, ptr %20, align 8, !tbaa !9
  %246 = add i64 %245, 1
  store i64 %246, ptr %20, align 8, !tbaa !9
  br label %221, !llvm.loop !19

247:                                              ; preds = %227
  %248 = getelementptr inbounds i8, ptr %9, i64 16
  %249 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %248, ptr noundef @.str.18)
          to label %250 unwind label %216

250:                                              ; preds = %247
  br label %251

251:                                              ; preds = %250
  %252 = load i64, ptr %19, align 8, !tbaa !9
  %253 = add i64 %252, 1
  store i64 %253, ptr %19, align 8, !tbaa !9
  br label %209, !llvm.loop !20

254:                                              ; preds = %228, %216
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  br label %319

255:                                              ; preds = %215
  %256 = getelementptr inbounds i8, ptr %9, i64 16
  %257 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %256, ptr noundef @.str.23)
          to label %258 unwind label %49

258:                                              ; preds = %255
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #7
  store i64 0, ptr %21, align 8, !tbaa !9
  br label %259

259:                                              ; preds = %309, %258
  %260 = load i64, ptr %21, align 8, !tbaa !9
  %261 = load ptr, ptr %8, align 8, !tbaa !5
  %262 = invoke noundef i64 @_ZNK6Matrix11get_numRowsEv(ptr noundef nonnull align 8 dereferenceable(49) %261)
          to label %263 unwind label %266

263:                                              ; preds = %259
  %264 = icmp ult i64 %260, %262
  br i1 %264, label %270, label %265

265:                                              ; preds = %263
  store i32 23, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  br label %318

266:                                              ; preds = %259
  %267 = landingpad { ptr, i32 }
          cleanup
  %268 = extractvalue { ptr, i32 } %267, 0
  store ptr %268, ptr %10, align 8
  %269 = extractvalue { ptr, i32 } %267, 1
  store i32 %269, ptr %11, align 4
  br label %317

270:                                              ; preds = %263
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #7
  store float 0.000000e+00, ptr %22, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #7
  store i64 0, ptr %23, align 8, !tbaa !9
  br label %271

271:                                              ; preds = %297, %270
  %272 = load i64, ptr %23, align 8, !tbaa !9
  %273 = load ptr, ptr %8, align 8, !tbaa !5
  %274 = invoke noundef i64 @_ZNK6Matrix11get_numColsEv(ptr noundef nonnull align 8 dereferenceable(49) %273)
          to label %275 unwind label %278

275:                                              ; preds = %271
  %276 = icmp ult i64 %272, %274
  br i1 %276, label %282, label %277

277:                                              ; preds = %275
  store i32 26, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  br label %300

278:                                              ; preds = %287, %282, %271
  %279 = landingpad { ptr, i32 }
          cleanup
  %280 = extractvalue { ptr, i32 } %279, 0
  store ptr %280, ptr %10, align 8
  %281 = extractvalue { ptr, i32 } %279, 1
  store i32 %281, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  br label %316

282:                                              ; preds = %275
  %283 = load ptr, ptr %8, align 8, !tbaa !5
  %284 = load i64, ptr %21, align 8, !tbaa !9
  %285 = load i64, ptr %23, align 8, !tbaa !9
  %286 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6MatrixclEmm(ptr noundef nonnull align 8 dereferenceable(49) %283, i64 noundef %284, i64 noundef %285)
          to label %287 unwind label %278

287:                                              ; preds = %282
  %288 = load float, ptr %286, align 4, !tbaa !11
  %289 = load ptr, ptr %8, align 8, !tbaa !5
  %290 = load i64, ptr %21, align 8, !tbaa !9
  %291 = load i64, ptr %23, align 8, !tbaa !9
  %292 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6MatrixclEmm(ptr noundef nonnull align 8 dereferenceable(49) %289, i64 noundef %290, i64 noundef %291)
          to label %293 unwind label %278

293:                                              ; preds = %287
  %294 = load float, ptr %292, align 4, !tbaa !11
  %295 = load float, ptr %22, align 4, !tbaa !11
  %296 = call float @llvm.fmuladd.f32(float %288, float %294, float %295)
  store float %296, ptr %22, align 4, !tbaa !11
  br label %297

297:                                              ; preds = %293
  %298 = load i64, ptr %23, align 8, !tbaa !9
  %299 = add i64 %298, 1
  store i64 %299, ptr %23, align 8, !tbaa !9
  br label %271, !llvm.loop !21

300:                                              ; preds = %277
  %301 = getelementptr inbounds i8, ptr %9, i64 16
  %302 = load float, ptr %22, align 4, !tbaa !11
  %303 = invoke noundef float @_ZSt4sqrtf(float noundef %302)
          to label %304 unwind label %312

304:                                              ; preds = %300
  %305 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %301, float noundef %303)
          to label %306 unwind label %312

306:                                              ; preds = %304
  %307 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %305, ptr noundef @.str.7)
          to label %308 unwind label %312

308:                                              ; preds = %306
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  br label %309

309:                                              ; preds = %308
  %310 = load i64, ptr %21, align 8, !tbaa !9
  %311 = add i64 %310, 1
  store i64 %311, ptr %21, align 8, !tbaa !9
  br label %259, !llvm.loop !22

312:                                              ; preds = %306, %304, %300
  %313 = landingpad { ptr, i32 }
          cleanup
  %314 = extractvalue { ptr, i32 } %313, 0
  store ptr %314, ptr %10, align 8
  %315 = extractvalue { ptr, i32 } %313, 1
  store i32 %315, ptr %11, align 4
  br label %316

316:                                              ; preds = %312, %278
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  br label %317

317:                                              ; preds = %316, %266
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  br label %319

318:                                              ; preds = %265
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  call void @_ZNSt13basic_fstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(264) %9) #7
  call void @llvm.lifetime.end.p0(i64 528, ptr %9) #7
  ret void

319:                                              ; preds = %317, %254, %182, %163, %91, %49
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  br label %320

320:                                              ; preds = %319, %45
  call void @_ZNSt13basic_fstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(264) %9) #7
  call void @llvm.lifetime.end.p0(i64 528, ptr %9) #7
  br label %321

321:                                              ; preds = %320
  %322 = load ptr, ptr %10, align 8
  %323 = load i32, ptr %11, align 4
  %324 = insertvalue { ptr, i32 } poison, ptr %322, 0
  %325 = insertvalue { ptr, i32 } %324, i32 %323, 1
  resume { ptr, i32 } %325
}

declare noundef i64 @_ZNK6Matrix11get_numColsEv(ptr noundef nonnull align 8 dereferenceable(49)) #2

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

declare noundef i64 @_ZNK6Matrix11get_numRowsEv(ptr noundef nonnull align 8 dereferenceable(49)) #2

declare noundef nonnull align 4 dereferenceable(4) ptr @_ZN6MatrixclEmm(ptr noundef nonnull align 8 dereferenceable(49), i64 noundef, i64 noundef) #2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt4sqrtf(float noundef) #6

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 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 = { 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 #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { 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 #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, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !14}
!18 = distinct !{!18, !14}
!19 = distinct !{!19, !14}
!20 = distinct !{!20, !14}
!21 = distinct !{!21, !14}
!22 = distinct !{!22, !14}


; 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::basic_fstream" = type { %"class.std::basic_iostream.base", %"class.std::basic_filebuf", %"class.std::basic_ios" }
%"class.std::basic_iostream.base" = type { %"class.std::basic_istream.base", %"class.std::basic_ostream.base" }
%"class.std::basic_istream.base" = type { ptr, i64 }
%"class.std::basic_ostream.base" = type { ptr }
%"class.std::basic_filebuf" = type { %"class.std::basic_streambuf", %union.pthread_mutex_t, %"class.std::__basic_file", i32, %struct.__mbstate_t, %struct.__mbstate_t, %struct.__mbstate_t, ptr, i64, i8, i8, i8, i8, ptr, ptr, i8, ptr, ptr, i64, ptr, ptr }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.std::__basic_file" = type <{ ptr, i8, [7 x i8] }>
%struct.__mbstate_t = type { i32, %union.anon.0 }
%union.anon.0 = type { i32 }
%"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 }

@.str.7 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [115 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [45 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: 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 #1

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 noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8), float noundef) 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) #0

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

; Function Attrs: mustprogress uwtable
declare void @_ZNSt13basic_fstreamIcSt11char_traitsIcEE4openERKNSt7__cxx1112basic_stringIcS1_SaIcEEESt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(264), ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt13basic_fstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(264)) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z13MakeVTKfile2DNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEER6MatrixS6_S6_(ptr noundef %0, ptr noundef nonnull align 8 dereferenceable(49) %1, ptr noundef nonnull align 8 dereferenceable(49) %2, ptr noundef nonnull align 8 dereferenceable(49) %3) local_unnamed_addr #3 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"class.std::basic_fstream", align 8
  call void @llvm.lifetime.start.p0(i64 528, ptr nonnull %5) #7
  call void @_ZNSt13basic_fstreamIcSt11char_traitsIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(264) %5)
  invoke void @_ZNSt13basic_fstreamIcSt11char_traitsIcEE4openERKNSt7__cxx1112basic_stringIcS1_SaIcEEESt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(264) %5, ptr noundef nonnull align 8 dereferenceable(32) %0, i32 noundef 16)
          to label %6 unwind label %22

6:                                                ; preds = %4
  %7 = invoke noundef i64 @_ZNK6Matrix11get_numColsEv(ptr noundef nonnull align 8 dereferenceable(49) %1)
          to label %8 unwind label %24

8:                                                ; preds = %6
  %9 = getelementptr inbounds i8, ptr %5, i64 16
  %10 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull @.str.16)
          to label %11 unwind label %24

11:                                               ; preds = %8
  %12 = invoke noundef i64 @_ZNK6Matrix11get_numRowsEv(ptr noundef nonnull align 8 dereferenceable(49) %1)
          to label %13 unwind label %24

13:                                               ; preds = %11
  %14 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %10, i64 noundef %12)
          to label %15 unwind label %24

15:                                               ; preds = %13
  %16 = 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.17)
          to label %.preheader86 unwind label %24

.preheader86:                                     ; preds = %15, %44
  %.060 = phi i64 [ %45, %44 ], [ 0, %15 ]
  %17 = invoke noundef i64 @_ZNK6Matrix11get_numRowsEv(ptr noundef nonnull align 8 dereferenceable(49) %1)
          to label %18 unwind label %26

18:                                               ; preds = %.preheader86
  %19 = icmp ult i64 %.060, %17
  br i1 %19, label %.preheader85, label %20

20:                                               ; preds = %18
  %21 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull @.str.19)
          to label %46 unwind label %24

22:                                               ; preds = %4
  %23 = landingpad { ptr, i32 }
          cleanup
  br label %171

24:                                               ; preds = %120, %115, %113, %111, %109, %99, %94, %92, %90, %64, %57, %54, %52, %50, %48, %46, %20, %15, %13, %11, %8, %6
  %25 = landingpad { ptr, i32 }
          cleanup
  br label %171

26:                                               ; preds = %31, %.preheader86
  %27 = landingpad { ptr, i32 }
          cleanup
  br label %171

.preheader85:                                     ; preds = %18, %42
  %.059 = phi i64 [ %43, %42 ], [ 0, %18 ]
  %28 = invoke noundef i64 @_ZNK6Matrix11get_numColsEv(ptr noundef nonnull align 8 dereferenceable(49) %1)
          to label %29 unwind label %33

29:                                               ; preds = %.preheader85
  %30 = icmp ult i64 %.059, %28
  br i1 %30, label %35, label %31

31:                                               ; preds = %29
  %32 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull @.str.18)
          to label %44 unwind label %26

33:                                               ; preds = %40, %37, %35, %.preheader85
  %34 = landingpad { ptr, i32 }
          cleanup
  br label %171

35:                                               ; preds = %29
  %36 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6MatrixclEmm(ptr noundef nonnull align 8 dereferenceable(49) %1, i64 noundef %.060, i64 noundef %.059)
          to label %37 unwind label %33

37:                                               ; preds = %35
  %38 = load float, ptr %36, align 4, !tbaa !5
  %39 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %9, float noundef %38)
          to label %40 unwind label %33

40:                                               ; preds = %37
  %41 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %39, ptr noundef nonnull @.str.11)
          to label %42 unwind label %33

42:                                               ; preds = %40
  %43 = add nuw i64 %.059, 1
  br label %.preheader85, !llvm.loop !9

44:                                               ; preds = %31
  %45 = add nuw i64 %.060, 1
  br label %.preheader86, !llvm.loop !11

46:                                               ; preds = %20
  %47 = invoke noundef i64 @_ZNK6Matrix11get_numRowsEv(ptr noundef nonnull align 8 dereferenceable(49) %2)
          to label %48 unwind label %24

48:                                               ; preds = %46
  %49 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %21, i64 noundef %47)
          to label %50 unwind label %24

50:                                               ; preds = %48
  %51 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %49, ptr noundef nonnull @.str.11)
          to label %52 unwind label %24

52:                                               ; preds = %50
  %53 = invoke noundef i64 @_ZNK6Matrix11get_numRowsEv(ptr noundef nonnull align 8 dereferenceable(49) %2)
          to label %54 unwind label %24

54:                                               ; preds = %52
  %55 = shl i64 %53, 2
  %56 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %51, i64 noundef %55)
          to label %57 unwind label %24

57:                                               ; preds = %54
  %58 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %56, ptr noundef nonnull @.str.7)
          to label %.preheader84 unwind label %24

.preheader84:                                     ; preds = %57
  %59 = add i64 %7, 1
  br label %60

60:                                               ; preds = %.preheader84, %88
  %.058 = phi i64 [ %89, %88 ], [ 0, %.preheader84 ]
  %61 = invoke noundef i64 @_ZNK6Matrix11get_numRowsEv(ptr noundef nonnull align 8 dereferenceable(49) %2)
          to label %62 unwind label %66

62:                                               ; preds = %60
  %63 = icmp ult i64 %.058, %61
  br i1 %63, label %68, label %64

64:                                               ; preds = %62
  %65 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull @.str.20)
          to label %90 unwind label %24

66:                                               ; preds = %75, %70, %68, %60
  %67 = landingpad { ptr, i32 }
          cleanup
  br label %171

68:                                               ; preds = %62
  %69 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %9, i64 noundef %59)
          to label %70 unwind label %66

70:                                               ; preds = %68
  %71 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %69, ptr noundef nonnull @.str.11)
          to label %.preheader83 unwind label %66

.preheader83:                                     ; preds = %70, %86
  %.057 = phi i64 [ %87, %86 ], [ 0, %70 ]
  %72 = invoke noundef i64 @_ZNK6Matrix11get_numColsEv(ptr noundef nonnull align 8 dereferenceable(49) %2)
          to label %73 unwind label %77

73:                                               ; preds = %.preheader83
  %74 = icmp ult i64 %.057, %72
  br i1 %74, label %79, label %75

75:                                               ; preds = %73
  %76 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull @.str.7)
          to label %88 unwind label %66

77:                                               ; preds = %84, %81, %79, %.preheader83
  %78 = landingpad { ptr, i32 }
          cleanup
  br label %171

79:                                               ; preds = %73
  %80 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6MatrixclEmm(ptr noundef nonnull align 8 dereferenceable(49) %2, i64 noundef %.058, i64 noundef %.057)
          to label %81 unwind label %77

81:                                               ; preds = %79
  %82 = load float, ptr %80, align 4, !tbaa !5
  %83 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %9, float noundef %82)
          to label %84 unwind label %77

84:                                               ; preds = %81
  %85 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %83, ptr noundef nonnull @.str.11)
          to label %86 unwind label %77

86:                                               ; preds = %84
  %87 = add nuw i64 %.057, 1
  br label %.preheader83, !llvm.loop !12

88:                                               ; preds = %75
  %89 = add nuw i64 %.058, 1
  br label %60, !llvm.loop !13

90:                                               ; preds = %64
  %91 = invoke noundef i64 @_ZNK6Matrix11get_numRowsEv(ptr noundef nonnull align 8 dereferenceable(49) %2)
          to label %92 unwind label %24

92:                                               ; preds = %90
  %93 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %65, i64 noundef %91)
          to label %94 unwind label %24

94:                                               ; preds = %92
  %95 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %93, ptr noundef nonnull @.str.7)
          to label %.preheader82 unwind label %24

.preheader82:                                     ; preds = %94, %107
  %.056 = phi i64 [ %108, %107 ], [ 0, %94 ]
  %96 = invoke noundef i64 @_ZNK6Matrix11get_numRowsEv(ptr noundef nonnull align 8 dereferenceable(49) %2)
          to label %97 unwind label %101

97:                                               ; preds = %.preheader82
  %98 = icmp ult i64 %.056, %96
  br i1 %98, label %103, label %99

99:                                               ; preds = %97
  %100 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull @.str.21)
          to label %109 unwind label %24

101:                                              ; preds = %105, %103, %.preheader82
  %102 = landingpad { ptr, i32 }
          cleanup
  br label %171

103:                                              ; preds = %97
  %104 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %9, i32 noundef 5)
          to label %105 unwind label %101

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

107:                                              ; preds = %105
  %108 = add nuw i64 %.056, 1
  br label %.preheader82, !llvm.loop !14

109:                                              ; preds = %99
  %110 = invoke noundef i64 @_ZNK6Matrix11get_numRowsEv(ptr noundef nonnull align 8 dereferenceable(49) %1)
          to label %111 unwind label %24

111:                                              ; preds = %109
  %112 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %100, i64 noundef %110)
          to label %113 unwind label %24

113:                                              ; preds = %111
  %114 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %112, ptr noundef nonnull @.str.7)
          to label %115 unwind label %24

115:                                              ; preds = %113
  %116 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull @.str.22)
          to label %.preheader81 unwind label %24

.preheader81:                                     ; preds = %115, %140
  %.055 = phi i64 [ %141, %140 ], [ 0, %115 ]
  %117 = invoke noundef i64 @_ZNK6Matrix11get_numRowsEv(ptr noundef nonnull align 8 dereferenceable(49) %3)
          to label %118 unwind label %122

118:                                              ; preds = %.preheader81
  %119 = icmp ult i64 %.055, %117
  br i1 %119, label %.preheader80, label %120

120:                                              ; preds = %118
  %121 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull @.str.23)
          to label %.preheader79 unwind label %24

122:                                              ; preds = %127, %.preheader81
  %123 = landingpad { ptr, i32 }
          cleanup
  br label %171

.preheader80:                                     ; preds = %118, %138
  %.054 = phi i64 [ %139, %138 ], [ 0, %118 ]
  %124 = invoke noundef i64 @_ZNK6Matrix11get_numColsEv(ptr noundef nonnull align 8 dereferenceable(49) %3)
          to label %125 unwind label %129

125:                                              ; preds = %.preheader80
  %126 = icmp ult i64 %.054, %124
  br i1 %126, label %131, label %127

127:                                              ; preds = %125
  %128 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull @.str.18)
          to label %140 unwind label %122

129:                                              ; preds = %136, %133, %131, %.preheader80
  %130 = landingpad { ptr, i32 }
          cleanup
  br label %171

131:                                              ; preds = %125
  %132 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6MatrixclEmm(ptr noundef nonnull align 8 dereferenceable(49) %3, i64 noundef %.055, i64 noundef %.054)
          to label %133 unwind label %129

133:                                              ; preds = %131
  %134 = load float, ptr %132, align 4, !tbaa !5
  %135 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %9, float noundef %134)
          to label %136 unwind label %129

136:                                              ; preds = %133
  %137 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %135, ptr noundef nonnull @.str.11)
          to label %138 unwind label %129

138:                                              ; preds = %136
  %139 = add nuw i64 %.054, 1
  br label %.preheader80, !llvm.loop !15

140:                                              ; preds = %127
  %141 = add nuw i64 %.055, 1
  br label %.preheader81, !llvm.loop !16

.preheader79:                                     ; preds = %120, %167
  %.053 = phi i64 [ %168, %167 ], [ 0, %120 ]
  %142 = invoke noundef i64 @_ZNK6Matrix11get_numRowsEv(ptr noundef nonnull align 8 dereferenceable(49) %3)
          to label %143 unwind label %146

143:                                              ; preds = %.preheader79
  %144 = icmp ult i64 %.053, %142
  br i1 %144, label %.preheader, label %145

145:                                              ; preds = %143
  call void @_ZNSt13basic_fstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(264) %5) #7
  call void @llvm.lifetime.end.p0(i64 528, ptr nonnull %5) #7
  ret void

146:                                              ; preds = %.preheader79
  %147 = landingpad { ptr, i32 }
          cleanup
  br label %171

.preheader:                                       ; preds = %143, %161
  %.052 = phi float [ %163, %161 ], [ 0.000000e+00, %143 ]
  %.0 = phi i64 [ %164, %161 ], [ 0, %143 ]
  %148 = invoke noundef i64 @_ZNK6Matrix11get_numColsEv(ptr noundef nonnull align 8 dereferenceable(49) %3)
          to label %149 unwind label %154

149:                                              ; preds = %.preheader
  %150 = icmp ult i64 %.0, %148
  br i1 %150, label %156, label %151

151:                                              ; preds = %149
  %152 = call noundef float @_ZSt4sqrtf(float noundef %.052)
  %153 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %9, float noundef %152)
          to label %165 unwind label %169

154:                                              ; preds = %158, %156, %.preheader
  %155 = landingpad { ptr, i32 }
          cleanup
  br label %171

156:                                              ; preds = %149
  %157 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6MatrixclEmm(ptr noundef nonnull align 8 dereferenceable(49) %3, i64 noundef %.053, i64 noundef %.0)
          to label %158 unwind label %154

158:                                              ; preds = %156
  %159 = load float, ptr %157, align 4, !tbaa !5
  %160 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6MatrixclEmm(ptr noundef nonnull align 8 dereferenceable(49) %3, i64 noundef %.053, i64 noundef %.0)
          to label %161 unwind label %154

161:                                              ; preds = %158
  %162 = load float, ptr %160, align 4, !tbaa !5
  %163 = call float @llvm.fmuladd.f32(float %159, float %162, float %.052)
  %164 = add nuw i64 %.0, 1
  br label %.preheader, !llvm.loop !17

165:                                              ; preds = %151
  %166 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %153, ptr noundef nonnull @.str.7)
          to label %167 unwind label %169

167:                                              ; preds = %165
  %168 = add nuw i64 %.053, 1
  br label %.preheader79, !llvm.loop !18

169:                                              ; preds = %165, %151
  %170 = landingpad { ptr, i32 }
          cleanup
  br label %171

171:                                              ; preds = %24, %101, %33, %26, %77, %66, %129, %122, %154, %169, %146, %22
  %.pn75.pn.pn = phi { ptr, i32 } [ %23, %22 ], [ %102, %101 ], [ %25, %24 ], [ %34, %33 ], [ %27, %26 ], [ %78, %77 ], [ %67, %66 ], [ %130, %129 ], [ %123, %122 ], [ %147, %146 ], [ %155, %154 ], [ %170, %169 ]
  call void @_ZNSt13basic_fstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(264) %5) #7
  call void @llvm.lifetime.end.p0(i64 528, ptr nonnull %5) #7
  resume { ptr, i32 } %.pn75.pn.pn
}

declare noundef i64 @_ZNK6Matrix11get_numColsEv(ptr noundef nonnull align 8 dereferenceable(49)) local_unnamed_addr #2

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

declare noundef i64 @_ZNK6Matrix11get_numRowsEv(ptr noundef nonnull align 8 dereferenceable(49)) local_unnamed_addr #2

declare noundef nonnull align 4 dereferenceable(4) ptr @_ZN6MatrixclEmm(ptr noundef nonnull align 8 dereferenceable(49), i64 noundef, i64 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt4sqrtf(float noundef) local_unnamed_addr #6

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 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 = { 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 #5 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { 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 #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 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !10}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,LCSSAPass,LICMPass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass