; LLVM IR from arasgungore/EE242-projects :: GaussianEliminationWithPartialPivoting (main)

; 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_ostream" = type { ptr, %"class.std::basic_ios" }
%"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::locale" = type { ptr }
%"class.std::basic_ifstream" = type { %"class.std::basic_istream.base", %"class.std::basic_filebuf", %"class.std::basic_ios" }
%"class.std::basic_istream.base" = type { ptr, i64 }
%"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" }
%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 }
%union.anon = type { i32 }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon.0 }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon.0 = type { i64, [8 x i8] }
%"class.std::basic_ofstream" = type { %"class.std::basic_ostream.base", %"class.std::basic_filebuf", %"class.std::basic_ios" }
%"class.std::basic_ostream.base" = type { ptr }

@_ZTIPKc = external constant ptr
@_ZTIPc = external constant ptr
@.str = external hidden unnamed_addr constant [6 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1
@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str.5 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [3 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr noundef %1) #0 personality ptr @__gxx_personality_v0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i16, align 2
  %7 = alloca %"class.std::basic_ifstream", align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca %"class.std::basic_ifstream", align 8
  %11 = alloca %"class.std::__cxx11::basic_string", align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i16, align 2
  %15 = alloca i32, align 4
  %16 = alloca i16, align 2
  %17 = alloca ptr, align 8
  %18 = alloca %"class.std::basic_ofstream", align 8
  %19 = alloca i16, align 2
  %20 = alloca ptr, align 8
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 2, ptr %6) #10
  store i16 0, ptr %6, align 2, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 520, ptr %7) #10
  %21 = load ptr, ptr %5, align 8, !tbaa !9
  %22 = getelementptr inbounds ptr, ptr %21, i64 1
  %23 = load ptr, ptr %22, align 8, !tbaa !9
  invoke void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(256) %7, ptr noundef %23, i32 noundef 8)
          to label %24 unwind label %32

24:                                               ; preds = %2
  %25 = invoke noundef zeroext i1 @_ZNSt14basic_ifstreamIcSt11char_traitsIcEE7is_openEv(ptr noundef nonnull align 8 dereferenceable(256) %7)
          to label %26 unwind label %36

26:                                               ; preds = %24
  br i1 %25, label %40, label %27

27:                                               ; preds = %26
  %28 = call ptr @__cxa_allocate_exception(i64 8) #10
  %29 = load ptr, ptr %5, align 8, !tbaa !9
  %30 = getelementptr inbounds ptr, ptr %29, i64 1
  %31 = load ptr, ptr %30, align 8, !tbaa !9
  store ptr %31, ptr %28, align 16, !tbaa !9
  invoke void @__cxa_throw(ptr %28, ptr @_ZTIPc, ptr null) #11
          to label %318 unwind label %36

32:                                               ; preds = %2
  %33 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTIPKc
  %34 = extractvalue { ptr, i32 } %33, 0
  store ptr %34, ptr %8, align 8
  %35 = extractvalue { ptr, i32 } %33, 1
  store i32 %35, ptr %9, align 4
  br label %290

36:                                               ; preds = %27, %24
  %37 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTIPKc
  %38 = extractvalue { ptr, i32 } %37, 0
  store ptr %38, ptr %8, align 8
  %39 = extractvalue { ptr, i32 } %37, 1
  store i32 %39, ptr %9, align 4
  br label %289

40:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 520, ptr %10) #10
  %41 = load ptr, ptr %5, align 8, !tbaa !9
  %42 = getelementptr inbounds ptr, ptr %41, i64 2
  %43 = load ptr, ptr %42, align 8, !tbaa !9
  invoke void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(256) %10, ptr noundef %43, i32 noundef 8)
          to label %44 unwind label %52

44:                                               ; preds = %40
  %45 = invoke noundef zeroext i1 @_ZNSt14basic_ifstreamIcSt11char_traitsIcEE7is_openEv(ptr noundef nonnull align 8 dereferenceable(256) %10)
          to label %46 unwind label %56

46:                                               ; preds = %44
  br i1 %45, label %60, label %47

47:                                               ; preds = %46
  %48 = call ptr @__cxa_allocate_exception(i64 8) #10
  %49 = load ptr, ptr %5, align 8, !tbaa !9
  %50 = getelementptr inbounds ptr, ptr %49, i64 2
  %51 = load ptr, ptr %50, align 8, !tbaa !9
  store ptr %51, ptr %48, align 16, !tbaa !9
  invoke void @__cxa_throw(ptr %48, ptr @_ZTIPc, ptr null) #11
          to label %318 unwind label %56

52:                                               ; preds = %40
  %53 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTIPKc
  %54 = extractvalue { ptr, i32 } %53, 0
  store ptr %54, ptr %8, align 8
  %55 = extractvalue { ptr, i32 } %53, 1
  store i32 %55, ptr %9, align 4
  br label %288

56:                                               ; preds = %47, %44
  %57 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTIPKc
  %58 = extractvalue { ptr, i32 } %57, 0
  store ptr %58, ptr %8, align 8
  %59 = extractvalue { ptr, i32 } %57, 1
  store i32 %59, ptr %9, align 4
  br label %287

60:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 32, ptr %11) #10
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #10
  br label %61

61:                                               ; preds = %76, %60
  %62 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 8 dereferenceable(32) %11)
          to label %63 unwind label %71

63:                                               ; preds = %61
  %64 = load ptr, ptr %62, align 8, !tbaa !13
  %65 = getelementptr i8, ptr %64, i64 -24
  %66 = load i64, ptr %65, align 8
  %67 = getelementptr inbounds i8, ptr %62, i64 %66
  %68 = invoke noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264) %67)
          to label %69 unwind label %71

69:                                               ; preds = %63
  br i1 %68, label %75, label %70

70:                                               ; preds = %69
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #10
  br label %79

71:                                               ; preds = %63, %61
  %72 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTIPKc
  %73 = extractvalue { ptr, i32 } %72, 0
  store ptr %73, ptr %8, align 8
  %74 = extractvalue { ptr, i32 } %72, 1
  store i32 %74, ptr %9, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #10
  br label %287

75:                                               ; preds = %69
  br label %76

76:                                               ; preds = %75
  %77 = load i16, ptr %6, align 2, !tbaa !11
  %78 = add i16 %77, 1
  store i16 %78, ptr %6, align 2, !tbaa !11
  br label %61, !llvm.loop !15

79:                                               ; preds = %70
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #10
  %80 = load i16, ptr %6, align 2, !tbaa !11
  %81 = sext i16 %80 to i64
  %82 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %81, i64 8)
  %83 = extractvalue { i64, i1 } %82, 1
  %84 = extractvalue { i64, i1 } %82, 0
  %85 = select i1 %83, i64 -1, i64 %84
  %86 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %85) #12
          to label %87 unwind label %110

87:                                               ; preds = %79
  store ptr %86, ptr %12, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #10
  %88 = load i16, ptr %6, align 2, !tbaa !11
  %89 = sext i16 %88 to i64
  %90 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %89, i64 8)
  %91 = extractvalue { i64, i1 } %90, 1
  %92 = extractvalue { i64, i1 } %90, 0
  %93 = select i1 %91, i64 -1, i64 %92
  %94 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %93) #12
          to label %95 unwind label %114

95:                                               ; preds = %87
  store ptr %94, ptr %13, align 8, !tbaa !9
  %96 = load ptr, ptr %7, align 8, !tbaa !13
  %97 = getelementptr i8, ptr %96, i64 -24
  %98 = load i64, ptr %97, align 8
  %99 = getelementptr inbounds i8, ptr %7, i64 %98
  invoke void @_ZNSt9basic_iosIcSt11char_traitsIcEE5clearESt12_Ios_Iostate(ptr noundef nonnull align 8 dereferenceable(264) %99, i32 noundef 0)
          to label %100 unwind label %114

100:                                              ; preds = %95
  %101 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi5seekgElSt12_Ios_Seekdir(ptr noundef nonnull align 8 dereferenceable(16) %7, i64 noundef 0, i32 noundef 0)
          to label %102 unwind label %114

102:                                              ; preds = %100
  call void @llvm.lifetime.start.p0(i64 2, ptr %14) #10
  store i16 0, ptr %14, align 2, !tbaa !11
  br label %103

103:                                              ; preds = %167, %102
  %104 = load i16, ptr %14, align 2, !tbaa !11
  %105 = sext i16 %104 to i32
  %106 = load i16, ptr %6, align 2, !tbaa !11
  %107 = sext i16 %106 to i32
  %108 = icmp slt i32 %105, %107
  br i1 %108, label %118, label %109

109:                                              ; preds = %103
  store i32 5, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 2, ptr %14) #10
  br label %171

110:                                              ; preds = %79
  %111 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTIPKc
  %112 = extractvalue { ptr, i32 } %111, 0
  store ptr %112, ptr %8, align 8
  %113 = extractvalue { ptr, i32 } %111, 1
  store i32 %113, ptr %9, align 4
  br label %286

114:                                              ; preds = %177, %172, %171, %100, %95, %87
  %115 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTIPKc
  %116 = extractvalue { ptr, i32 } %115, 0
  store ptr %116, ptr %8, align 8
  %117 = extractvalue { ptr, i32 } %115, 1
  store i32 %117, ptr %9, align 4
  br label %285

118:                                              ; preds = %103
  %119 = load i16, ptr %6, align 2, !tbaa !11
  %120 = sext i16 %119 to i64
  %121 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %120, i64 8)
  %122 = extractvalue { i64, i1 } %121, 1
  %123 = extractvalue { i64, i1 } %121, 0
  %124 = select i1 %122, i64 -1, i64 %123
  %125 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %124) #12
          to label %126 unwind label %138

126:                                              ; preds = %118
  %127 = load ptr, ptr %12, align 8, !tbaa !9
  %128 = load i16, ptr %14, align 2, !tbaa !11
  %129 = sext i16 %128 to i64
  %130 = getelementptr inbounds ptr, ptr %127, i64 %129
  store ptr %125, ptr %130, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 2, ptr %16) #10
  store i16 0, ptr %16, align 2, !tbaa !11
  br label %131

131:                                              ; preds = %153, %126
  %132 = load i16, ptr %16, align 2, !tbaa !11
  %133 = sext i16 %132 to i32
  %134 = load i16, ptr %6, align 2, !tbaa !11
  %135 = sext i16 %134 to i32
  %136 = icmp slt i32 %133, %135
  br i1 %136, label %142, label %137

137:                                              ; preds = %131
  store i32 8, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 2, ptr %16) #10
  br label %160

138:                                              ; preds = %160, %118
  %139 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTIPKc
  %140 = extractvalue { ptr, i32 } %139, 0
  store ptr %140, ptr %8, align 8
  %141 = extractvalue { ptr, i32 } %139, 1
  store i32 %141, ptr %9, align 4
  br label %170

142:                                              ; preds = %131
  %143 = load ptr, ptr %12, align 8, !tbaa !9
  %144 = load i16, ptr %14, align 2, !tbaa !11
  %145 = sext i16 %144 to i64
  %146 = getelementptr inbounds ptr, ptr %143, i64 %145
  %147 = load ptr, ptr %146, align 8, !tbaa !9
  %148 = load i16, ptr %16, align 2, !tbaa !11
  %149 = sext i16 %148 to i64
  %150 = getelementptr inbounds double, ptr %147, i64 %149
  %151 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 8 dereferenceable(8) %150)
          to label %152 unwind label %156

152:                                              ; preds = %142
  br label %153

153:                                              ; preds = %152
  %154 = load i16, ptr %16, align 2, !tbaa !11
  %155 = add i16 %154, 1
  store i16 %155, ptr %16, align 2, !tbaa !11
  br label %131, !llvm.loop !17

156:                                              ; preds = %142
  %157 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTIPKc
  %158 = extractvalue { ptr, i32 } %157, 0
  store ptr %158, ptr %8, align 8
  %159 = extractvalue { ptr, i32 } %157, 1
  store i32 %159, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 2, ptr %16) #10
  br label %170

160:                                              ; preds = %137
  %161 = load ptr, ptr %13, align 8, !tbaa !9
  %162 = load i16, ptr %14, align 2, !tbaa !11
  %163 = sext i16 %162 to i64
  %164 = getelementptr inbounds double, ptr %161, i64 %163
  %165 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 8 dereferenceable(8) %164)
          to label %166 unwind label %138

166:                                              ; preds = %160
  br label %167

167:                                              ; preds = %166
  %168 = load i16, ptr %14, align 2, !tbaa !11
  %169 = add i16 %168, 1
  store i16 %169, ptr %14, align 2, !tbaa !11
  br label %103, !llvm.loop !18

170:                                              ; preds = %156, %138
  call void @llvm.lifetime.end.p0(i64 2, ptr %14) #10
  br label %285

171:                                              ; preds = %109
  invoke void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEE5closeEv(ptr noundef nonnull align 8 dereferenceable(256) %7)
          to label %172 unwind label %114

172:                                              ; preds = %171
  invoke void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEE5closeEv(ptr noundef nonnull align 8 dereferenceable(256) %10)
          to label %173 unwind label %114

173:                                              ; preds = %172
  %174 = load i16, ptr %6, align 2, !tbaa !11
  %175 = sext i16 %174 to i32
  %176 = icmp eq i32 %175, 2
  br i1 %176, label %177, label %180

177:                                              ; preds = %173
  %178 = load ptr, ptr %12, align 8, !tbaa !9
  invoke void @_Z11printCondNoPPd(ptr noundef %178)
          to label %179 unwind label %114

179:                                              ; preds = %177
  br label %180

180:                                              ; preds = %179, %173
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #10
  %181 = load ptr, ptr %12, align 8, !tbaa !9
  %182 = load ptr, ptr %13, align 8, !tbaa !9
  %183 = load i16, ptr %6, align 2, !tbaa !11
  %184 = invoke noundef ptr @_Z11solveByGEPPPPdS_s(ptr noundef %181, ptr noundef %182, i16 noundef signext %183)
          to label %185 unwind label %191

185:                                              ; preds = %180
  store ptr %184, ptr %17, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 512, ptr %18) #10
  invoke void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(248) %18, ptr noundef @.str, i32 noundef 16)
          to label %186 unwind label %195

186:                                              ; preds = %185
  %187 = invoke noundef zeroext i1 @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE7is_openEv(ptr noundef nonnull align 8 dereferenceable(248) %18)
          to label %188 unwind label %199

188:                                              ; preds = %186
  br i1 %187, label %203, label %189

189:                                              ; preds = %188
  %190 = call ptr @__cxa_allocate_exception(i64 8) #10
  store ptr @.str, ptr %190, align 16, !tbaa !9
  invoke void @__cxa_throw(ptr %190, ptr @_ZTIPKc, ptr null) #11
          to label %318 unwind label %199

191:                                              ; preds = %180
  %192 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTIPKc
  %193 = extractvalue { ptr, i32 } %192, 0
  store ptr %193, ptr %8, align 8
  %194 = extractvalue { ptr, i32 } %192, 1
  store i32 %194, ptr %9, align 4
  br label %284

195:                                              ; preds = %185
  %196 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTIPKc
  %197 = extractvalue { ptr, i32 } %196, 0
  store ptr %197, ptr %8, align 8
  %198 = extractvalue { ptr, i32 } %196, 1
  store i32 %198, ptr %9, align 4
  br label %283

199:                                              ; preds = %274, %273, %263, %254, %252, %212, %210, %205, %203, %189, %186
  %200 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTIPKc
  %201 = extractvalue { ptr, i32 } %200, 0
  store ptr %201, ptr %8, align 8
  %202 = extractvalue { ptr, i32 } %200, 1
  store i32 %202, ptr %9, align 4
  br label %282

203:                                              ; preds = %188
  %204 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.1)
          to label %205 unwind label %199

205:                                              ; preds = %203
  %206 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %204, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %207 unwind label %199

207:                                              ; preds = %205
  %208 = load ptr, ptr %17, align 8, !tbaa !9
  %209 = icmp eq ptr %208, null
  br i1 %209, label %210, label %215

210:                                              ; preds = %207
  %211 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.2)
          to label %212 unwind label %199

212:                                              ; preds = %210
  %213 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef @.str.3)
          to label %214 unwind label %199

214:                                              ; preds = %212
  br label %273

215:                                              ; preds = %207
  call void @llvm.lifetime.start.p0(i64 2, ptr %19) #10
  store i16 0, ptr %19, align 2, !tbaa !11
  br label %216

216:                                              ; preds = %245, %215
  %217 = load i16, ptr %19, align 2, !tbaa !11
  %218 = sext i16 %217 to i32
  %219 = load i16, ptr %6, align 2, !tbaa !11
  %220 = sext i16 %219 to i32
  %221 = sub nsw i32 %220, 1
  %222 = icmp slt i32 %218, %221
  br i1 %222, label %224, label %223

223:                                              ; preds = %216
  store i32 11, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 2, ptr %19) #10
  br label %252

224:                                              ; preds = %216
  %225 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.4)
          to label %226 unwind label %248

226:                                              ; preds = %224
  %227 = load ptr, ptr %17, align 8, !tbaa !9
  %228 = load i16, ptr %19, align 2, !tbaa !11
  %229 = sext i16 %228 to i64
  %230 = getelementptr inbounds double, ptr %227, i64 %229
  %231 = load double, ptr %230, align 8, !tbaa !19
  %232 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %225, double noundef %231)
          to label %233 unwind label %248

233:                                              ; preds = %226
  %234 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %232, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %235 unwind label %248

235:                                              ; preds = %233
  %236 = load ptr, ptr %17, align 8, !tbaa !9
  %237 = load i16, ptr %19, align 2, !tbaa !11
  %238 = sext i16 %237 to i64
  %239 = getelementptr inbounds double, ptr %236, i64 %238
  %240 = load double, ptr %239, align 8, !tbaa !19
  %241 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %18, double noundef %240)
          to label %242 unwind label %248

242:                                              ; preds = %235
  %243 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %241, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %244 unwind label %248

244:                                              ; preds = %242
  br label %245

245:                                              ; preds = %244
  %246 = load i16, ptr %19, align 2, !tbaa !11
  %247 = add i16 %246, 1
  store i16 %247, ptr %19, align 2, !tbaa !11
  br label %216, !llvm.loop !21

248:                                              ; preds = %242, %235, %233, %226, %224
  %249 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTIPKc
  %250 = extractvalue { ptr, i32 } %249, 0
  store ptr %250, ptr %8, align 8
  %251 = extractvalue { ptr, i32 } %249, 1
  store i32 %251, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 2, ptr %19) #10
  br label %282

252:                                              ; preds = %223
  %253 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.4)
          to label %254 unwind label %199

254:                                              ; preds = %252
  %255 = load ptr, ptr %17, align 8, !tbaa !9
  %256 = load i16, ptr %6, align 2, !tbaa !11
  %257 = sext i16 %256 to i32
  %258 = sub nsw i32 %257, 1
  %259 = sext i32 %258 to i64
  %260 = getelementptr inbounds double, ptr %255, i64 %259
  %261 = load double, ptr %260, align 8, !tbaa !19
  %262 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %253, double noundef %261)
          to label %263 unwind label %199

263:                                              ; preds = %254
  %264 = load ptr, ptr %17, align 8, !tbaa !9
  %265 = load i16, ptr %6, align 2, !tbaa !11
  %266 = sext i16 %265 to i32
  %267 = sub nsw i32 %266, 1
  %268 = sext i32 %267 to i64
  %269 = getelementptr inbounds double, ptr %264, i64 %268
  %270 = load double, ptr %269, align 8, !tbaa !19
  %271 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %18, double noundef %270)
          to label %272 unwind label %199

272:                                              ; preds = %263
  br label %273

273:                                              ; preds = %272, %214
  invoke void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE5closeEv(ptr noundef nonnull align 8 dereferenceable(248) %18)
          to label %274 unwind label %199

274:                                              ; preds = %273
  %275 = load ptr, ptr %12, align 8, !tbaa !9
  %276 = load i16, ptr %6, align 2, !tbaa !11
  invoke void @_Z12deleteMatrixPPds(ptr noundef %275, i16 noundef signext %276)
          to label %277 unwind label %199

277:                                              ; preds = %274
  %278 = load ptr, ptr %13, align 8, !tbaa !9
  %279 = icmp eq ptr %278, null
  br i1 %279, label %281, label %280

280:                                              ; preds = %277
  call void @_ZdaPv(ptr noundef %278) #13
  br label %281

281:                                              ; preds = %280, %277
  store i32 0, ptr %3, align 4
  store i32 1, ptr %15, align 4
  call void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(248) %18) #10
  call void @llvm.lifetime.end.p0(i64 512, ptr %18) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #10
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256) %10) #10
  call void @llvm.lifetime.end.p0(i64 520, ptr %10) #10
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256) %7) #10
  call void @llvm.lifetime.end.p0(i64 520, ptr %7) #10
  call void @llvm.lifetime.end.p0(i64 2, ptr %6) #10
  br label %311

282:                                              ; preds = %248, %199
  call void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(248) %18) #10
  br label %283

283:                                              ; preds = %282, %195
  call void @llvm.lifetime.end.p0(i64 512, ptr %18) #10
  br label %284

284:                                              ; preds = %283, %191
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #10
  br label %285

285:                                              ; preds = %284, %170, %114
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #10
  br label %286

286:                                              ; preds = %285, %110
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #10
  br label %287

287:                                              ; preds = %286, %71, %56
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256) %10) #10
  br label %288

288:                                              ; preds = %287, %52
  call void @llvm.lifetime.end.p0(i64 520, ptr %10) #10
  br label %289

289:                                              ; preds = %288, %36
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256) %7) #10
  br label %290

290:                                              ; preds = %289, %32
  call void @llvm.lifetime.end.p0(i64 520, ptr %7) #10
  call void @llvm.lifetime.end.p0(i64 2, ptr %6) #10
  br label %291

291:                                              ; preds = %290
  %292 = load i32, ptr %9, align 4
  %293 = call i32 @llvm.eh.typeid.for.p0(ptr @_ZTIPKc) #10
  %294 = icmp eq i32 %292, %293
  br i1 %294, label %295, label %313

295:                                              ; preds = %291
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #10
  %296 = load ptr, ptr %8, align 8
  %297 = call ptr @__cxa_begin_catch(ptr %296) #10
  store ptr %297, ptr %20, align 8
  %298 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.5)
          to label %299 unwind label %307

299:                                              ; preds = %295
  %300 = load ptr, ptr %20, align 8, !tbaa !9
  %301 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %298, ptr noundef %300)
          to label %302 unwind label %307

302:                                              ; preds = %299
  %303 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %301, ptr noundef @.str.6)
          to label %304 unwind label %307

304:                                              ; preds = %302
  %305 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %303, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %306 unwind label %307

306:                                              ; preds = %304
  store i32 1, ptr %3, align 4
  store i32 1, ptr %15, align 4
  call void @__cxa_end_catch() #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #10
  br label %311

307:                                              ; preds = %304, %302, %299, %295
  %308 = landingpad { ptr, i32 }
          cleanup
  %309 = extractvalue { ptr, i32 } %308, 0
  store ptr %309, ptr %8, align 8
  %310 = extractvalue { ptr, i32 } %308, 1
  store i32 %310, ptr %9, align 4
  call void @__cxa_end_catch() #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #10
  br label %313

311:                                              ; preds = %306, %281
  %312 = load i32, ptr %3, align 4
  ret i32 %312

313:                                              ; preds = %307, %291
  %314 = load ptr, ptr %8, align 8
  %315 = load i32, ptr %9, align 4
  %316 = insertvalue { ptr, i32 } poison, ptr %314, 0
  %317 = insertvalue { ptr, i32 } %316, i32 %315, 1
  resume { ptr, i32 } %317

318:                                              ; preds = %189, %47, %27
  unreachable
}

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

; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(256), ptr noundef, i32 noundef) unnamed_addr #2 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare noundef zeroext i1 @_ZNSt14basic_ifstreamIcSt11char_traitsIcEE7is_openEv(ptr noundef nonnull align 8 dereferenceable(256)) #3 align 2

declare ptr @__cxa_allocate_exception(i64)

declare void @__cxa_throw(ptr, ptr, ptr)

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

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

; Function Attrs: mustprogress uwtable
declare noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264)) #2 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: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare { i64, i1 } @llvm.umul.with.overflow.i64(i64, i64) #5

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

declare void @_ZNSt9basic_iosIcSt11char_traitsIcEE5clearESt12_Ios_Iostate(ptr noundef nonnull align 8 dereferenceable(264), i32 noundef) #7

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi5seekgElSt12_Ios_Seekdir(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef, i32 noundef) #7

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2

; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEE5closeEv(ptr noundef nonnull align 8 dereferenceable(256)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z11printCondNoPPd(ptr noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_Z11solveByGEPPPPdS_s(ptr noundef, ptr noundef, i16 noundef signext) #2

; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(248), ptr noundef, i32 noundef) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare noundef zeroext i1 @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE7is_openEv(ptr noundef nonnull align 8 dereferenceable(248)) #3 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

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

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8), double noundef) #2 align 2

; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE5closeEv(ptr noundef nonnull align 8 dereferenceable(248)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z12deleteMatrixPPds(ptr noundef, i16 noundef signext) #3

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) #8

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

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

; Function Attrs: nounwind memory(none)
declare i32 @llvm.eh.typeid.for.p0(ptr) #9

declare ptr @__cxa_begin_catch(ptr)

declare void @__cxa_end_catch()

attributes #0 = { mustprogress norecurse 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 = { 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 #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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { "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 #8 = { nobuiltin nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #9 = { nounwind memory(none) }
attributes #10 = { nounwind }
attributes #11 = { noreturn }
attributes #12 = { builtin allocsize(0) }
attributes #13 = { builtin 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"short", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"vtable pointer", !8, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}
!18 = distinct !{!18, !16}
!19 = !{!20, !20, i64 0}
!20 = !{!"double", !7, i64 0}
!21 = distinct !{!21, !16}


; 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_ostream" = type { ptr, %"class.std::basic_ios" }
%"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::locale" = type { ptr }
%"class.std::basic_ifstream" = type { %"class.std::basic_istream.base", %"class.std::basic_filebuf", %"class.std::basic_ios" }
%"class.std::basic_istream.base" = type { ptr, i64 }
%"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" }
%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 }
%union.anon = type { i32 }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon.0 }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon.0 = type { i64, [8 x i8] }
%"class.std::basic_ofstream" = type { %"class.std::basic_ostream.base", %"class.std::basic_filebuf", %"class.std::basic_ios" }
%"class.std::basic_ostream.base" = type { ptr }

@_ZTIPKc = external constant ptr
@_ZTIPc = external constant ptr
@.str = external hidden unnamed_addr constant [6 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1
@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str.5 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [3 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef range(i32 0, 2) i32 @main(i32 noundef %0, ptr nocapture noundef readonly %1) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.std::basic_ifstream", align 8
  %4 = alloca %"class.std::basic_ifstream", align 8
  %5 = alloca %"class.std::__cxx11::basic_string", align 8
  %6 = alloca %"class.std::basic_ofstream", align 8
  call void @llvm.lifetime.start.p0(i64 520, ptr nonnull %3) #9
  %7 = getelementptr inbounds i8, ptr %1, i64 8
  %8 = load ptr, ptr %7, align 8, !tbaa !5
  invoke void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(256) %3, ptr noundef %8, i32 noundef 8)
          to label %9 unwind label %14

9:                                                ; preds = %2
  %10 = call noundef zeroext i1 @_ZNSt14basic_ifstreamIcSt11char_traitsIcEE7is_openEv(ptr noundef nonnull align 8 dereferenceable(256) %3)
  br i1 %10, label %18, label %11

11:                                               ; preds = %9
  %12 = call ptr @__cxa_allocate_exception(i64 8) #9
  %13 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %13, ptr %12, align 16, !tbaa !5
  invoke void @__cxa_throw(ptr nonnull %12, ptr nonnull @_ZTIPc, ptr null) #10
          to label %158 unwind label %16

14:                                               ; preds = %2
  %15 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTIPKc
  br label %141

16:                                               ; preds = %11
  %17 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTIPKc
  br label %140

18:                                               ; preds = %9
  call void @llvm.lifetime.start.p0(i64 520, ptr nonnull %4) #9
  %19 = getelementptr inbounds i8, ptr %1, i64 16
  %20 = load ptr, ptr %19, align 8, !tbaa !5
  invoke void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(256) %4, ptr noundef %20, i32 noundef 8)
          to label %21 unwind label %26

21:                                               ; preds = %18
  %22 = call noundef zeroext i1 @_ZNSt14basic_ifstreamIcSt11char_traitsIcEE7is_openEv(ptr noundef nonnull align 8 dereferenceable(256) %4)
  br i1 %22, label %30, label %23

23:                                               ; preds = %21
  %24 = call ptr @__cxa_allocate_exception(i64 8) #9
  %25 = load ptr, ptr %19, align 8, !tbaa !5
  store ptr %25, ptr %24, align 16, !tbaa !5
  invoke void @__cxa_throw(ptr nonnull %24, ptr nonnull @_ZTIPc, ptr null) #10
          to label %158 unwind label %28

26:                                               ; preds = %18
  %27 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTIPKc
  br label %139

28:                                               ; preds = %23
  %29 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTIPKc
  br label %138

30:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #9
  br label %31

31:                                               ; preds = %48, %30
  %.047 = phi i16 [ 0, %30 ], [ %49, %48 ]
  %32 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) %3, ptr noundef nonnull align 8 dereferenceable(32) %5)
          to label %33 unwind label %46

33:                                               ; preds = %31
  %34 = load ptr, ptr %32, align 8, !tbaa !9
  %35 = getelementptr i8, ptr %34, i64 -24
  %36 = load i64, ptr %35, align 8
  %37 = getelementptr inbounds i8, ptr %32, i64 %36
  %38 = invoke noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264) %37)
          to label %39 unwind label %46

39:                                               ; preds = %33
  br i1 %38, label %48, label %40

40:                                               ; preds = %39
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #9
  %41 = sext i16 %.047 to i64
  %42 = icmp slt i16 %.047, 0
  %43 = shl nsw i64 %41, 3
  %44 = select i1 %42, i64 -1, i64 %43
  %45 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %44) #11
          to label %50 unwind label %73

46:                                               ; preds = %33, %31
  %47 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTIPKc
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #9
  br label %138

48:                                               ; preds = %39
  %49 = add i16 %.047, 1
  br label %31, !llvm.loop !11

50:                                               ; preds = %40
  %51 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %44) #11
          to label %52 unwind label %75

52:                                               ; preds = %50
  %53 = load ptr, ptr %3, align 8, !tbaa !9
  %54 = getelementptr i8, ptr %53, i64 -24
  %55 = load i64, ptr %54, align 8
  %56 = getelementptr inbounds i8, ptr %3, i64 %55
  invoke void @_ZNSt9basic_iosIcSt11char_traitsIcEE5clearESt12_Ios_Iostate(ptr noundef nonnull align 8 dereferenceable(264) %56, i32 noundef 0)
          to label %57 unwind label %75

57:                                               ; preds = %52
  %58 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi5seekgElSt12_Ios_Seekdir(ptr noundef nonnull align 8 dereferenceable(16) %3, i64 noundef 0, i32 noundef 0)
          to label %.preheader77 unwind label %75

.preheader77:                                     ; preds = %57
  %59 = icmp sgt i16 %.047, 0
  br i1 %59, label %.lr.ph85.split.us.preheader, label %._crit_edge86

.lr.ph85.split.us.preheader:                      ; preds = %.preheader77
  %wide.trip.count99 = zext nneg i16 %.047 to i64
  br label %.lr.ph85.split.us

.lr.ph85.split.us:                                ; preds = %.lr.ph85.split.us.preheader, %62
  %indvars.iv95 = phi i64 [ 0, %.lr.ph85.split.us.preheader ], [ %indvars.iv.next96, %62 ]
  %60 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %44) #11
          to label %.lr.ph.us unwind label %.split.us

.lr.ph.us:                                        ; preds = %.lr.ph85.split.us
  %61 = getelementptr inbounds ptr, ptr %45, i64 %indvars.iv95
  store ptr %60, ptr %61, align 8, !tbaa !5
  br label %63

62:                                               ; preds = %._crit_edge.us
  %indvars.iv.next96 = add nuw nsw i64 %indvars.iv95, 1
  %exitcond100.not = icmp eq i64 %indvars.iv.next96, %wide.trip.count99
  br i1 %exitcond100.not, label %._crit_edge86, label %.lr.ph85.split.us, !llvm.loop !13

63:                                               ; preds = %.lr.ph.us, %67
  %indvars.iv = phi i64 [ 0, %.lr.ph.us ], [ %indvars.iv.next, %67 ]
  %64 = load ptr, ptr %61, align 8, !tbaa !5
  %65 = getelementptr inbounds double, ptr %64, i64 %indvars.iv
  %66 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) %3, ptr noundef nonnull align 8 dereferenceable(8) %65)
          to label %67 unwind label %.split88.us

67:                                               ; preds = %63
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count99
  br i1 %exitcond.not, label %._crit_edge.us, label %63, !llvm.loop !14

._crit_edge.us:                                   ; preds = %67
  %68 = getelementptr inbounds double, ptr %51, i64 %indvars.iv95
  %69 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull align 8 dereferenceable(8) %68)
          to label %62 unwind label %.split.us

.split.us:                                        ; preds = %._crit_edge.us, %.lr.ph85.split.us
  %70 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTIPKc
  br label %138

.split88.us:                                      ; preds = %63
  %71 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTIPKc
  br label %138

._crit_edge86:                                    ; preds = %62, %.preheader77
  %72 = sext i16 %.047 to i32
  invoke void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEE5closeEv(ptr noundef nonnull align 8 dereferenceable(256) %3)
          to label %77 unwind label %75

73:                                               ; preds = %40
  %74 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTIPKc
  br label %138

75:                                               ; preds = %80, %77, %._crit_edge86, %57, %52, %50
  %76 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTIPKc
  br label %138

77:                                               ; preds = %._crit_edge86
  invoke void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEE5closeEv(ptr noundef nonnull align 8 dereferenceable(256) %4)
          to label %78 unwind label %75

78:                                               ; preds = %77
  %79 = icmp eq i16 %.047, 2
  br i1 %79, label %80, label %81

80:                                               ; preds = %78
  invoke void @_Z11printCondNoPPd(ptr noundef nonnull %45)
          to label %81 unwind label %75

81:                                               ; preds = %80, %78
  %82 = invoke noundef ptr @_Z11solveByGEPPPPdS_s(ptr noundef nonnull %45, ptr noundef nonnull %51, i16 noundef signext %.047)
          to label %83 unwind label %88

83:                                               ; preds = %81
  call void @llvm.lifetime.start.p0(i64 512, ptr nonnull %6) #9
  invoke void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(248) %6, ptr noundef nonnull @.str, i32 noundef 16)
          to label %84 unwind label %90

84:                                               ; preds = %83
  %85 = call noundef zeroext i1 @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE7is_openEv(ptr noundef nonnull align 8 dereferenceable(248) %6)
  br i1 %85, label %94, label %86

86:                                               ; preds = %84
  %87 = call ptr @__cxa_allocate_exception(i64 8) #9
  store ptr @.str, ptr %87, align 16, !tbaa !5
  invoke void @__cxa_throw(ptr nonnull %87, ptr nonnull @_ZTIPKc, ptr null) #10
          to label %158 unwind label %92

88:                                               ; preds = %81
  %89 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTIPKc
  br label %138

90:                                               ; preds = %83
  %91 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTIPKc
  br label %137

92:                                               ; preds = %134, %131, %126, %._crit_edge, %104, %102, %96, %94, %86
  %93 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTIPKc
  br label %136

94:                                               ; preds = %84
  %95 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.1)
          to label %96 unwind label %92

96:                                               ; preds = %94
  %97 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %95, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %98 unwind label %92

98:                                               ; preds = %96
  %99 = icmp eq ptr %82, null
  br i1 %99, label %102, label %.preheader

.preheader:                                       ; preds = %98
  %100 = add nsw i32 %72, -1
  %101 = icmp sgt i16 %.047, 1
  br i1 %101, label %.lr.ph, label %._crit_edge

102:                                              ; preds = %98
  %103 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.2)
          to label %104 unwind label %92

104:                                              ; preds = %102
  %105 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull @.str.3)
          to label %134 unwind label %92

._crit_edge:                                      ; preds = %120, %.preheader
  %106 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.4)
          to label %126 unwind label %92

.lr.ph:                                           ; preds = %.preheader, %120
  %.04690 = phi i16 [ %121, %120 ], [ 0, %.preheader ]
  %107 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.4)
          to label %108 unwind label %124

108:                                              ; preds = %.lr.ph
  %109 = sext i16 %.04690 to i64
  %110 = getelementptr inbounds double, ptr %82, i64 %109
  %111 = load double, ptr %110, align 8, !tbaa !15
  %112 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %107, double noundef %111)
          to label %113 unwind label %124

113:                                              ; preds = %108
  %114 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %112, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %115 unwind label %124

115:                                              ; preds = %113
  %116 = load double, ptr %110, align 8, !tbaa !15
  %117 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %6, double noundef %116)
          to label %118 unwind label %124

118:                                              ; preds = %115
  %119 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %117, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %120 unwind label %124

120:                                              ; preds = %118
  %121 = add i16 %.04690, 1
  %122 = sext i16 %121 to i32
  %123 = icmp sgt i32 %100, %122
  br i1 %123, label %.lr.ph, label %._crit_edge, !llvm.loop !17

124:                                              ; preds = %118, %115, %113, %108, %.lr.ph
  %125 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTIPKc
  br label %136

126:                                              ; preds = %._crit_edge
  %127 = sext i32 %100 to i64
  %128 = getelementptr inbounds double, ptr %82, i64 %127
  %129 = load double, ptr %128, align 8, !tbaa !15
  %130 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %106, double noundef %129)
          to label %131 unwind label %92

131:                                              ; preds = %126
  %132 = load double, ptr %128, align 8, !tbaa !15
  %133 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %6, double noundef %132)
          to label %134 unwind label %92

134:                                              ; preds = %131, %104
  invoke void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE5closeEv(ptr noundef nonnull align 8 dereferenceable(248) %6)
          to label %135 unwind label %92

135:                                              ; preds = %134
  call void @_Z12deleteMatrixPPds(ptr noundef nonnull %45, i16 noundef signext %.047)
  call void @_ZdaPv(ptr noundef nonnull %51) #12
  call void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(248) %6) #9
  call void @llvm.lifetime.end.p0(i64 512, ptr nonnull %6) #9
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256) %4) #9
  call void @llvm.lifetime.end.p0(i64 520, ptr nonnull %4) #9
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256) %3) #9
  call void @llvm.lifetime.end.p0(i64 520, ptr nonnull %3) #9
  br label %156

136:                                              ; preds = %124, %92
  %.pn = phi { ptr, i32 } [ %93, %92 ], [ %125, %124 ]
  call void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(248) %6) #9
  br label %137

137:                                              ; preds = %136, %90
  %.pn.pn = phi { ptr, i32 } [ %.pn, %136 ], [ %91, %90 ]
  call void @llvm.lifetime.end.p0(i64 512, ptr nonnull %6) #9
  br label %138

138:                                              ; preds = %.split.us, %73, %88, %137, %.split88.us, %75, %46, %28
  %.pn69.pn.pn.pn = phi { ptr, i32 } [ %47, %46 ], [ %29, %28 ], [ %74, %73 ], [ %76, %75 ], [ %71, %.split88.us ], [ %.pn.pn, %137 ], [ %89, %88 ], [ %70, %.split.us ]
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256) %4) #9
  br label %139

139:                                              ; preds = %138, %26
  %.pn69.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn69.pn.pn.pn, %138 ], [ %27, %26 ]
  call void @llvm.lifetime.end.p0(i64 520, ptr nonnull %4) #9
  br label %140

140:                                              ; preds = %139, %16
  %.pn69.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn69.pn.pn.pn.pn, %139 ], [ %17, %16 ]
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256) %3) #9
  br label %141

141:                                              ; preds = %140, %14
  %.pn69.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn69.pn.pn.pn.pn.pn, %140 ], [ %15, %14 ]
  %.960 = extractvalue { ptr, i32 } %.pn69.pn.pn.pn.pn.pn.pn, 1
  call void @llvm.lifetime.end.p0(i64 520, ptr nonnull %3) #9
  %142 = call i32 @llvm.eh.typeid.for.p0(ptr nonnull @_ZTIPKc) #9
  %143 = icmp eq i32 %.960, %142
  br i1 %143, label %144, label %157

144:                                              ; preds = %141
  %.9 = extractvalue { ptr, i32 } %.pn69.pn.pn.pn.pn.pn.pn, 0
  %145 = call ptr @__cxa_begin_catch(ptr %.9) #9
  %146 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str.5)
          to label %147 unwind label %154

147:                                              ; preds = %144
  %148 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %146, ptr noundef %145)
          to label %149 unwind label %154

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

151:                                              ; preds = %149
  %152 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %150, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %153 unwind label %154

153:                                              ; preds = %151
  call void @__cxa_end_catch() #9
  br label %156

154:                                              ; preds = %151, %149, %147, %144
  %155 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_end_catch() #9
  br label %157

156:                                              ; preds = %153, %135
  %.0 = phi i32 [ 1, %153 ], [ 0, %135 ]
  ret i32 %.0

157:                                              ; preds = %154, %141
  %.merged = phi { ptr, i32 } [ %155, %154 ], [ %.pn69.pn.pn.pn.pn.pn.pn, %141 ]
  resume { ptr, i32 } %.merged

158:                                              ; preds = %86, %23, %11
  unreachable
}

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

; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(256), ptr noundef, i32 noundef) unnamed_addr #2 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare noundef zeroext i1 @_ZNSt14basic_ifstreamIcSt11char_traitsIcEE7is_openEv(ptr noundef nonnull align 8 dereferenceable(256)) local_unnamed_addr #3 align 2

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

declare void @__cxa_throw(ptr, ptr, ptr) local_unnamed_addr

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

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

; Function Attrs: mustprogress uwtable
declare noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264)) local_unnamed_addr #2 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: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) local_unnamed_addr #5

declare void @_ZNSt9basic_iosIcSt11char_traitsIcEE5clearESt12_Ios_Iostate(ptr noundef nonnull align 8 dereferenceable(264), i32 noundef) local_unnamed_addr #6

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi5seekgElSt12_Ios_Seekdir(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef, i32 noundef) local_unnamed_addr #6

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

; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEE5closeEv(ptr noundef nonnull align 8 dereferenceable(256)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z11printCondNoPPd(ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_Z11solveByGEPPPPdS_s(ptr noundef, ptr noundef, i16 noundef signext) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(248), ptr noundef, i32 noundef) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare noundef zeroext i1 @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE7is_openEv(ptr noundef nonnull align 8 dereferenceable(248)) local_unnamed_addr #3 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

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

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

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

; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE5closeEv(ptr noundef nonnull align 8 dereferenceable(248)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z12deleteMatrixPPds(ptr noundef, i16 noundef signext) local_unnamed_addr #3

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) local_unnamed_addr #7

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

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

; Function Attrs: nofree nosync nounwind memory(none)
declare i32 @llvm.eh.typeid.for.p0(ptr) #8

declare ptr @__cxa_begin_catch(ptr) local_unnamed_addr

declare void @__cxa_end_catch() local_unnamed_addr

attributes #0 = { mustprogress norecurse 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 = { 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 #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 = { 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 #6 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nobuiltin nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { nofree nosync nounwind memory(none) }
attributes #9 = { nounwind }
attributes #10 = { noreturn }
attributes #11 = { builtin allocsize(0) }
attributes #12 = { builtin 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 = !{!"vtable pointer", !8, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = !{!16, !16, i64 0}
!16 = !{!"double", !7, i64 0}
!17 = distinct !{!17, !12}


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