; LLVM IR from sympiler/nasoq :: src/common (Util)

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

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.14 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [68 x i8], align 1
@__PRETTY_FUNCTION__._ZN5nasoq15readMatrix_rectENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERmS6_S6_RPiS8_RPd = external hidden unnamed_addr constant [98 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #3

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare { i64, i1 } @llvm.umul.with.overflow.i64(i64, i64) #4

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #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)) #2 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(32)) #1 align 2

; Function Attrs: nounwind willreturn memory(read)
declare i32 @tolower(i32 noundef) #8

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

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) #3

; Function Attrs: mustprogress uwtable
declare noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEntEv(ptr noundef nonnull align 8 dereferenceable(264)) #2 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) #7

; Function Attrs: nounwind
declare noundef i32 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) #9

declare noundef i32 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEmmPKc(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef, i64 noundef, ptr noundef) #3

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #10

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(120)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN5nasoq15readMatrix_rectENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERmS6_S6_RPiS8_RPd(ptr noundef %0, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #2 personality ptr @__gxx_personality_v0 {
  %8 = alloca i1, align 1
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca %"class.std::basic_ifstream", align 8
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca %"class.std::__cxx11::basic_string", align 8
  %20 = alloca %"class.std::__cxx11::basic_string", align 8
  %21 = alloca %"class.std::__cxx11::basic_string", align 8
  %22 = alloca %"class.std::__cxx11::basic_string", align 8
  %23 = alloca %"class.std::__cxx11::basic_string", align 8
  %24 = alloca %"class.std::__cxx11::basic_string", align 8
  %25 = alloca i32, align 4
  %26 = alloca %"class.std::__cxx11::basic_istringstream", align 8
  %27 = alloca i32, align 4
  %28 = alloca %"class.std::__cxx11::basic_istringstream", align 8
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca double, align 8
  %34 = alloca i32, align 4
  %35 = alloca i32, align 4
  %36 = alloca i32, align 4
  %37 = alloca i32, align 4
  store ptr %0, ptr %9, align 8, !tbaa !5
  store ptr %1, ptr %10, align 8, !tbaa !5
  store ptr %2, ptr %11, align 8, !tbaa !5
  store ptr %3, ptr %12, align 8, !tbaa !5
  store ptr %4, ptr %13, align 8, !tbaa !5
  store ptr %5, ptr %14, align 8, !tbaa !5
  store ptr %6, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 520, ptr %16) #11
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(256) %16)
  invoke void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEE4openERKNSt7__cxx1112basic_stringIcS1_SaIcEEESt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(256) %16, ptr noundef nonnull align 8 dereferenceable(32) %0, i32 noundef 8)
          to label %38 unwind label %47

38:                                               ; preds = %7
  call void @llvm.lifetime.start.p0(i64 32, ptr %19) #11
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #11
  call void @llvm.lifetime.start.p0(i64 32, ptr %20) #11
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #11
  call void @llvm.lifetime.start.p0(i64 32, ptr %21) #11
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #11
  call void @llvm.lifetime.start.p0(i64 32, ptr %22) #11
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #11
  call void @llvm.lifetime.start.p0(i64 32, ptr %23) #11
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #11
  call void @llvm.lifetime.start.p0(i64 32, ptr %24) #11
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #11
  %39 = 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) %16, ptr noundef nonnull align 8 dereferenceable(32) %19)
          to label %40 unwind label %51

40:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #11
  store i32 0, ptr %25, align 4, !tbaa !9
  br label %41

41:                                               ; preds = %68, %40
  %42 = load i32, ptr %25, align 4, !tbaa !9
  %43 = zext i32 %42 to i64
  %44 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(32) %19) #11
  %45 = icmp ult i64 %43, %44
  br i1 %45, label %55, label %46

46:                                               ; preds = %41
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #11
  br label %75

47:                                               ; preds = %7
  %48 = landingpad { ptr, i32 }
          cleanup
  %49 = extractvalue { ptr, i32 } %48, 0
  store ptr %49, ptr %17, align 8
  %50 = extractvalue { ptr, i32 } %48, 1
  store i32 %50, ptr %18, align 4
  br label %475

51:                                               ; preds = %38
  %52 = landingpad { ptr, i32 }
          cleanup
  %53 = extractvalue { ptr, i32 } %52, 0
  store ptr %53, ptr %17, align 8
  %54 = extractvalue { ptr, i32 } %52, 1
  store i32 %54, ptr %18, align 4
  br label %474

55:                                               ; preds = %41
  br label %56

56:                                               ; preds = %55
  %57 = load i32, ptr %25, align 4, !tbaa !9
  %58 = zext i32 %57 to i64
  %59 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %19, i64 noundef %58)
          to label %60 unwind label %71

60:                                               ; preds = %56
  %61 = load i8, ptr %59, align 1, !tbaa !11
  %62 = sext i8 %61 to i32
  %63 = call i32 @tolower(i32 noundef %62) #12
  %64 = trunc i32 %63 to i8
  %65 = load i32, ptr %25, align 4, !tbaa !9
  %66 = zext i32 %65 to i64
  %67 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %19, i64 noundef %66)
          to label %68 unwind label %71

68:                                               ; preds = %60
  store i8 %64, ptr %67, align 1, !tbaa !11
  %69 = load i32, ptr %25, align 4, !tbaa !9
  %70 = add i32 %69, 1
  store i32 %70, ptr %25, align 4, !tbaa !9
  br label %41, !llvm.loop !12

71:                                               ; preds = %60, %56
  %72 = landingpad { ptr, i32 }
          cleanup
  %73 = extractvalue { ptr, i32 } %72, 0
  store ptr %73, ptr %17, align 8
  %74 = extractvalue { ptr, i32 } %72, 1
  store i32 %74, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #11
  br label %474

75:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 384, ptr %26) #11
  invoke void @_ZNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEEC1ERKNS_12basic_stringIcS2_S3_EESt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(120) %26, ptr noundef nonnull align 8 dereferenceable(32) %19, i32 noundef 8)
          to label %76 unwind label %96

76:                                               ; preds = %75
  %77 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) %26, ptr noundef nonnull align 8 dereferenceable(32) %20)
          to label %78 unwind label %100

78:                                               ; preds = %76
  %79 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) %77, ptr noundef nonnull align 8 dereferenceable(32) %21)
          to label %80 unwind label %100

80:                                               ; preds = %78
  %81 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) %79, ptr noundef nonnull align 8 dereferenceable(32) %22)
          to label %82 unwind label %100

82:                                               ; preds = %80
  %83 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) %81, ptr noundef nonnull align 8 dereferenceable(32) %23)
          to label %84 unwind label %100

84:                                               ; preds = %82
  %85 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) %83, ptr noundef nonnull align 8 dereferenceable(32) %24)
          to label %86 unwind label %100

86:                                               ; preds = %84
  %87 = load ptr, ptr %85, align 8, !tbaa !14
  %88 = getelementptr i8, ptr %87, i64 -24
  %89 = load i64, ptr %88, align 8
  %90 = getelementptr inbounds i8, ptr %85, i64 %89
  %91 = invoke noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEntEv(ptr noundef nonnull align 8 dereferenceable(264) %90)
          to label %92 unwind label %100

92:                                               ; preds = %86
  br i1 %91, label %93, label %104

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

95:                                               ; preds = %93
  store i1 false, ptr %8, align 1
  store i32 1, ptr %27, align 4
  br label %470

96:                                               ; preds = %75
  %97 = landingpad { ptr, i32 }
          cleanup
  %98 = extractvalue { ptr, i32 } %97, 0
  store ptr %98, ptr %17, align 8
  %99 = extractvalue { ptr, i32 } %97, 1
  store i32 %99, ptr %18, align 4
  br label %473

100:                                              ; preds = %149, %144, %140, %137, %131, %119, %113, %107, %93, %86, %84, %82, %80, %78, %76
  %101 = landingpad { ptr, i32 }
          cleanup
  %102 = extractvalue { ptr, i32 } %101, 0
  store ptr %102, ptr %17, align 8
  %103 = extractvalue { ptr, i32 } %101, 1
  store i32 %103, ptr %18, align 4
  br label %472

104:                                              ; preds = %92
  %105 = call noundef i32 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc(ptr noundef nonnull align 8 dereferenceable(32) %20, ptr noundef @.str.15) #11
  %106 = icmp ne i32 %105, 0
  br i1 %106, label %107, label %110

107:                                              ; preds = %104
  %108 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.16)
          to label %109 unwind label %100

109:                                              ; preds = %107
  store i1 false, ptr %8, align 1
  store i32 1, ptr %27, align 4
  br label %470

110:                                              ; preds = %104
  %111 = call noundef i32 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc(ptr noundef nonnull align 8 dereferenceable(32) %21, ptr noundef @.str.17) #11
  %112 = icmp ne i32 %111, 0
  br i1 %112, label %113, label %116

113:                                              ; preds = %110
  %114 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.18)
          to label %115 unwind label %100

115:                                              ; preds = %113
  store i1 false, ptr %8, align 1
  store i32 1, ptr %27, align 4
  br label %470

116:                                              ; preds = %110
  %117 = call noundef i32 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc(ptr noundef nonnull align 8 dereferenceable(32) %22, ptr noundef @.str.19) #11
  %118 = icmp ne i32 %117, 0
  br i1 %118, label %119, label %122

119:                                              ; preds = %116
  %120 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.20)
          to label %121 unwind label %100

121:                                              ; preds = %119
  store i1 false, ptr %8, align 1
  store i32 1, ptr %27, align 4
  br label %470

122:                                              ; preds = %116
  %123 = call noundef i32 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc(ptr noundef nonnull align 8 dereferenceable(32) %23, ptr noundef @.str.21) #11
  %124 = icmp ne i32 %123, 0
  br i1 %124, label %125, label %143

125:                                              ; preds = %122
  %126 = call noundef i32 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc(ptr noundef nonnull align 8 dereferenceable(32) %23, ptr noundef @.str.22) #11
  %127 = icmp ne i32 %126, 0
  br i1 %127, label %128, label %143

128:                                              ; preds = %125
  %129 = call noundef i32 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc(ptr noundef nonnull align 8 dereferenceable(32) %23, ptr noundef @.str.23) #11
  %130 = icmp ne i32 %129, 0
  br i1 %130, label %134, label %131

131:                                              ; preds = %128
  %132 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.24)
          to label %133 unwind label %100

133:                                              ; preds = %131
  store i1 false, ptr %8, align 1
  store i32 1, ptr %27, align 4
  br label %470

134:                                              ; preds = %128
  %135 = call noundef i32 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc(ptr noundef nonnull align 8 dereferenceable(32) %23, ptr noundef @.str.25) #11
  %136 = icmp ne i32 %135, 0
  br i1 %136, label %140, label %137

137:                                              ; preds = %134
  %138 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.26)
          to label %139 unwind label %100

139:                                              ; preds = %137
  store i1 false, ptr %8, align 1
  store i32 1, ptr %27, align 4
  br label %470

140:                                              ; preds = %134
  %141 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.27)
          to label %142 unwind label %100

142:                                              ; preds = %140
  store i1 false, ptr %8, align 1
  store i32 1, ptr %27, align 4
  br label %470

143:                                              ; preds = %125, %122
  br label %144

144:                                              ; preds = %151, %143
  %145 = invoke noundef i32 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEmmPKc(ptr noundef nonnull align 8 dereferenceable(32) %19, i64 noundef 0, i64 noundef 1, ptr noundef @.str.28)
          to label %146 unwind label %100

146:                                              ; preds = %144
  %147 = icmp ne i32 %145, 0
  %148 = xor i1 %147, true
  br i1 %148, label %149, label %152

149:                                              ; preds = %146
  %150 = 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) %16, ptr noundef nonnull align 8 dereferenceable(32) %19)
          to label %151 unwind label %100

151:                                              ; preds = %149
  br label %144, !llvm.loop !16

152:                                              ; preds = %146
  call void @llvm.lifetime.start.p0(i64 384, ptr %28) #11
  invoke void @_ZNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEEC1ERKNS_12basic_stringIcS2_S3_EESt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(120) %28, ptr noundef nonnull align 8 dereferenceable(32) %19, i32 noundef 8)
          to label %153 unwind label %172

153:                                              ; preds = %152
  %154 = load ptr, ptr %10, align 8, !tbaa !5
  %155 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERm(ptr noundef nonnull align 8 dereferenceable(16) %28, ptr noundef nonnull align 8 dereferenceable(8) %154)
          to label %156 unwind label %176

156:                                              ; preds = %153
  %157 = load ptr, ptr %11, align 8, !tbaa !5
  %158 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERm(ptr noundef nonnull align 8 dereferenceable(16) %155, ptr noundef nonnull align 8 dereferenceable(8) %157)
          to label %159 unwind label %176

159:                                              ; preds = %156
  %160 = load ptr, ptr %12, align 8, !tbaa !5
  %161 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERm(ptr noundef nonnull align 8 dereferenceable(16) %158, ptr noundef nonnull align 8 dereferenceable(8) %160)
          to label %162 unwind label %176

162:                                              ; preds = %159
  %163 = load ptr, ptr %161, align 8, !tbaa !14
  %164 = getelementptr i8, ptr %163, i64 -24
  %165 = load i64, ptr %164, align 8
  %166 = getelementptr inbounds i8, ptr %161, i64 %165
  %167 = invoke noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEntEv(ptr noundef nonnull align 8 dereferenceable(264) %166)
          to label %168 unwind label %176

168:                                              ; preds = %162
  br i1 %167, label %169, label %180

169:                                              ; preds = %168
  %170 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.29)
          to label %171 unwind label %176

171:                                              ; preds = %169
  store i1 false, ptr %8, align 1
  store i32 1, ptr %27, align 4
  br label %467

172:                                              ; preds = %152
  %173 = landingpad { ptr, i32 }
          cleanup
  %174 = extractvalue { ptr, i32 } %173, 0
  store ptr %174, ptr %17, align 8
  %175 = extractvalue { ptr, i32 } %173, 1
  store i32 %175, ptr %18, align 4
  br label %469

176:                                              ; preds = %223, %214, %205, %169, %162, %159, %156, %153
  %177 = landingpad { ptr, i32 }
          cleanup
  %178 = extractvalue { ptr, i32 } %177, 0
  store ptr %178, ptr %17, align 8
  %179 = extractvalue { ptr, i32 } %177, 1
  store i32 %179, ptr %18, align 4
  br label %468

180:                                              ; preds = %168
  %181 = load ptr, ptr %11, align 8, !tbaa !5
  %182 = load i64, ptr %181, align 8, !tbaa !17
  %183 = icmp ult i64 %182, 0
  br i1 %183, label %188, label %184

184:                                              ; preds = %180
  %185 = load ptr, ptr %12, align 8, !tbaa !5
  %186 = load i64, ptr %185, align 8, !tbaa !17
  %187 = icmp ult i64 %186, 0
  br i1 %187, label %188, label %189

188:                                              ; preds = %184, %180
  store i1 false, ptr %8, align 1
  store i32 1, ptr %27, align 4
  br label %467

189:                                              ; preds = %184
  %190 = load ptr, ptr %11, align 8, !tbaa !5
  %191 = load i64, ptr %190, align 8, !tbaa !17
  %192 = icmp eq i64 %191, 0
  br i1 %192, label %201, label %193

193:                                              ; preds = %189
  %194 = load ptr, ptr %12, align 8, !tbaa !5
  %195 = load i64, ptr %194, align 8, !tbaa !17
  %196 = icmp eq i64 %195, 0
  br i1 %196, label %201, label %197

197:                                              ; preds = %193
  %198 = load ptr, ptr %10, align 8, !tbaa !5
  %199 = load i64, ptr %198, align 8, !tbaa !17
  %200 = icmp eq i64 %199, 0
  br i1 %200, label %201, label %205

201:                                              ; preds = %197, %193, %189
  %202 = load ptr, ptr %13, align 8, !tbaa !5
  store ptr null, ptr %202, align 8, !tbaa !5
  %203 = load ptr, ptr %14, align 8, !tbaa !5
  store ptr null, ptr %203, align 8, !tbaa !5
  %204 = load ptr, ptr %15, align 8, !tbaa !5
  store ptr null, ptr %204, align 8, !tbaa !5
  store i1 true, ptr %8, align 1
  store i32 1, ptr %27, align 4
  br label %467

205:                                              ; preds = %197
  %206 = load ptr, ptr %11, align 8, !tbaa !5
  %207 = load i64, ptr %206, align 8, !tbaa !17
  %208 = add i64 %207, 1
  %209 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %208, i64 4)
  %210 = extractvalue { i64, i1 } %209, 1
  %211 = extractvalue { i64, i1 } %209, 0
  %212 = select i1 %210, i64 -1, i64 %211
  %213 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %212) #13
          to label %214 unwind label %176

214:                                              ; preds = %205
  call void @llvm.memset.p0.i64(ptr align 4 %213, i8 0, i64 %212, i1 false)
  %215 = load ptr, ptr %13, align 8, !tbaa !5
  store ptr %213, ptr %215, align 8, !tbaa !5
  %216 = load ptr, ptr %12, align 8, !tbaa !5
  %217 = load i64, ptr %216, align 8, !tbaa !17
  %218 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %217, i64 4)
  %219 = extractvalue { i64, i1 } %218, 1
  %220 = extractvalue { i64, i1 } %218, 0
  %221 = select i1 %219, i64 -1, i64 %220
  %222 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %221) #13
          to label %223 unwind label %176

223:                                              ; preds = %214
  %224 = load ptr, ptr %14, align 8, !tbaa !5
  store ptr %222, ptr %224, align 8, !tbaa !5
  %225 = load ptr, ptr %12, align 8, !tbaa !5
  %226 = load i64, ptr %225, align 8, !tbaa !17
  %227 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %226, i64 8)
  %228 = extractvalue { i64, i1 } %227, 1
  %229 = extractvalue { i64, i1 } %227, 0
  %230 = select i1 %228, i64 -1, i64 %229
  %231 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %230) #13
          to label %232 unwind label %176

232:                                              ; preds = %223
  %233 = load ptr, ptr %15, align 8, !tbaa !5
  store ptr %231, ptr %233, align 8, !tbaa !5
  %234 = load ptr, ptr %15, align 8, !tbaa !5
  %235 = load ptr, ptr %234, align 8, !tbaa !5
  %236 = icmp ne ptr %235, null
  br i1 %236, label %237, label %245

237:                                              ; preds = %232
  %238 = load ptr, ptr %13, align 8, !tbaa !5
  %239 = load ptr, ptr %238, align 8, !tbaa !5
  %240 = icmp ne ptr %239, null
  br i1 %240, label %241, label %245

241:                                              ; preds = %237
  %242 = load ptr, ptr %14, align 8, !tbaa !5
  %243 = load ptr, ptr %242, align 8, !tbaa !5
  %244 = icmp ne ptr %243, null
  br i1 %244, label %246, label %245

245:                                              ; preds = %241, %237, %232
  store i1 false, ptr %8, align 1
  store i32 1, ptr %27, align 4
  br label %467

246:                                              ; preds = %241
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #11
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #11
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #11
  store i32 0, ptr %31, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #11
  store i32 0, ptr %32, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #11
  %247 = load ptr, ptr %13, align 8, !tbaa !5
  %248 = load ptr, ptr %247, align 8, !tbaa !5
  %249 = getelementptr inbounds i32, ptr %248, i64 0
  store i32 0, ptr %249, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #11
  store i32 0, ptr %34, align 4, !tbaa !9
  br label %250

250:                                              ; preds = %392, %246
  %251 = load i32, ptr %32, align 4, !tbaa !9
  %252 = sext i32 %251 to i64
  %253 = load ptr, ptr %12, align 8, !tbaa !5
  %254 = load i64, ptr %253, align 8, !tbaa !17
  %255 = icmp ult i64 %252, %254
  br i1 %255, label %257, label %256

256:                                              ; preds = %250
  store i32 7, ptr %27, align 4
  br label %393

257:                                              ; preds = %250
  %258 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef nonnull align 4 dereferenceable(4) %30)
          to label %259 unwind label %274

259:                                              ; preds = %257
  %260 = load i32, ptr %30, align 4, !tbaa !9
  %261 = add nsw i32 %260, -1
  store i32 %261, ptr %30, align 4, !tbaa !9
  %262 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef nonnull align 4 dereferenceable(4) %29)
          to label %263 unwind label %274

263:                                              ; preds = %259
  %264 = load i32, ptr %29, align 4, !tbaa !9
  %265 = add nsw i32 %264, -1
  store i32 %265, ptr %29, align 4, !tbaa !9
  %266 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef nonnull align 8 dereferenceable(8) %33)
          to label %267 unwind label %274

267:                                              ; preds = %263
  %268 = load i32, ptr %29, align 4, !tbaa !9
  %269 = sext i32 %268 to i64
  %270 = load ptr, ptr %11, align 8, !tbaa !5
  %271 = load i64, ptr %270, align 8, !tbaa !17
  %272 = icmp ugt i64 %269, %271
  br i1 %272, label %273, label %278

273:                                              ; preds = %267
  store i1 false, ptr %8, align 1
  store i32 1, ptr %27, align 4
  br label %393

274:                                              ; preds = %263, %259, %257
  %275 = landingpad { ptr, i32 }
          cleanup
  %276 = extractvalue { ptr, i32 } %275, 0
  store ptr %276, ptr %17, align 8
  %277 = extractvalue { ptr, i32 } %275, 1
  store i32 %277, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #11
  br label %468

278:                                              ; preds = %267
  %279 = load i32, ptr %29, align 4, !tbaa !9
  %280 = load i32, ptr %34, align 4, !tbaa !9
  %281 = icmp eq i32 %279, %280
  br i1 %281, label %282, label %299

282:                                              ; preds = %278
  %283 = load double, ptr %33, align 8, !tbaa !19
  %284 = load ptr, ptr %15, align 8, !tbaa !5
  %285 = load ptr, ptr %284, align 8, !tbaa !5
  %286 = load i32, ptr %32, align 4, !tbaa !9
  %287 = sext i32 %286 to i64
  %288 = getelementptr inbounds double, ptr %285, i64 %287
  store double %283, ptr %288, align 8, !tbaa !19
  %289 = load i32, ptr %30, align 4, !tbaa !9
  %290 = load ptr, ptr %14, align 8, !tbaa !5
  %291 = load ptr, ptr %290, align 8, !tbaa !5
  %292 = load i32, ptr %32, align 4, !tbaa !9
  %293 = sext i32 %292 to i64
  %294 = getelementptr inbounds i32, ptr %291, i64 %293
  store i32 %289, ptr %294, align 4, !tbaa !9
  %295 = load i32, ptr %31, align 4, !tbaa !9
  %296 = add nsw i32 %295, 1
  store i32 %296, ptr %31, align 4, !tbaa !9
  %297 = load i32, ptr %32, align 4, !tbaa !9
  %298 = add nsw i32 %297, 1
  store i32 %298, ptr %32, align 4, !tbaa !9
  br label %392

299:                                              ; preds = %278
  %300 = load i32, ptr %34, align 4, !tbaa !9
  %301 = add nsw i32 %300, 1
  %302 = load i32, ptr %29, align 4, !tbaa !9
  %303 = icmp eq i32 %301, %302
  br i1 %303, label %304, label %335

304:                                              ; preds = %299
  %305 = load ptr, ptr %13, align 8, !tbaa !5
  %306 = load ptr, ptr %305, align 8, !tbaa !5
  %307 = load i32, ptr %34, align 4, !tbaa !9
  %308 = sext i32 %307 to i64
  %309 = getelementptr inbounds i32, ptr %306, i64 %308
  %310 = load i32, ptr %309, align 4, !tbaa !9
  %311 = load i32, ptr %31, align 4, !tbaa !9
  %312 = add nsw i32 %310, %311
  %313 = load ptr, ptr %13, align 8, !tbaa !5
  %314 = load ptr, ptr %313, align 8, !tbaa !5
  %315 = load i32, ptr %34, align 4, !tbaa !9
  %316 = add nsw i32 %315, 1
  %317 = sext i32 %316 to i64
  %318 = getelementptr inbounds i32, ptr %314, i64 %317
  store i32 %312, ptr %318, align 4, !tbaa !9
  %319 = load i32, ptr %34, align 4, !tbaa !9
  %320 = add nsw i32 %319, 1
  store i32 %320, ptr %34, align 4, !tbaa !9
  store i32 1, ptr %31, align 4, !tbaa !9
  %321 = load double, ptr %33, align 8, !tbaa !19
  %322 = load ptr, ptr %15, align 8, !tbaa !5
  %323 = load ptr, ptr %322, align 8, !tbaa !5
  %324 = load i32, ptr %32, align 4, !tbaa !9
  %325 = sext i32 %324 to i64
  %326 = getelementptr inbounds double, ptr %323, i64 %325
  store double %321, ptr %326, align 8, !tbaa !19
  %327 = load i32, ptr %30, align 4, !tbaa !9
  %328 = load ptr, ptr %14, align 8, !tbaa !5
  %329 = load ptr, ptr %328, align 8, !tbaa !5
  %330 = load i32, ptr %32, align 4, !tbaa !9
  %331 = sext i32 %330 to i64
  %332 = getelementptr inbounds i32, ptr %329, i64 %331
  store i32 %327, ptr %332, align 4, !tbaa !9
  %333 = load i32, ptr %32, align 4, !tbaa !9
  %334 = add nsw i32 %333, 1
  store i32 %334, ptr %32, align 4, !tbaa !9
  br label %391

335:                                              ; preds = %299
  %336 = load ptr, ptr %13, align 8, !tbaa !5
  %337 = load ptr, ptr %336, align 8, !tbaa !5
  %338 = load i32, ptr %34, align 4, !tbaa !9
  %339 = sext i32 %338 to i64
  %340 = getelementptr inbounds i32, ptr %337, i64 %339
  %341 = load i32, ptr %340, align 4, !tbaa !9
  %342 = load i32, ptr %31, align 4, !tbaa !9
  %343 = add nsw i32 %341, %342
  %344 = load ptr, ptr %13, align 8, !tbaa !5
  %345 = load ptr, ptr %344, align 8, !tbaa !5
  %346 = load i32, ptr %34, align 4, !tbaa !9
  %347 = add nsw i32 %346, 1
  %348 = sext i32 %347 to i64
  %349 = getelementptr inbounds i32, ptr %345, i64 %348
  store i32 %343, ptr %349, align 4, !tbaa !9
  %350 = load i32, ptr %34, align 4, !tbaa !9
  %351 = add nsw i32 %350, 1
  store i32 %351, ptr %34, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #11
  %352 = load i32, ptr %34, align 4, !tbaa !9
  %353 = add nsw i32 %352, 1
  store i32 %353, ptr %35, align 4, !tbaa !9
  br label %354

354:                                              ; preds = %371, %335
  %355 = load i32, ptr %35, align 4, !tbaa !9
  %356 = load i32, ptr %29, align 4, !tbaa !9
  %357 = icmp sle i32 %355, %356
  br i1 %357, label %359, label %358

358:                                              ; preds = %354
  store i32 9, ptr %27, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #11
  br label %376

359:                                              ; preds = %354
  %360 = load ptr, ptr %13, align 8, !tbaa !5
  %361 = load ptr, ptr %360, align 8, !tbaa !5
  %362 = load i32, ptr %34, align 4, !tbaa !9
  %363 = sext i32 %362 to i64
  %364 = getelementptr inbounds i32, ptr %361, i64 %363
  %365 = load i32, ptr %364, align 4, !tbaa !9
  %366 = load ptr, ptr %13, align 8, !tbaa !5
  %367 = load ptr, ptr %366, align 8, !tbaa !5
  %368 = load i32, ptr %35, align 4, !tbaa !9
  %369 = sext i32 %368 to i64
  %370 = getelementptr inbounds i32, ptr %367, i64 %369
  store i32 %365, ptr %370, align 4, !tbaa !9
  br label %371

371:                                              ; preds = %359
  %372 = load i32, ptr %35, align 4, !tbaa !9
  %373 = add nsw i32 %372, 1
  store i32 %373, ptr %35, align 4, !tbaa !9
  %374 = load i32, ptr %34, align 4, !tbaa !9
  %375 = add nsw i32 %374, 1
  store i32 %375, ptr %34, align 4, !tbaa !9
  br label %354, !llvm.loop !21

376:                                              ; preds = %358
  %377 = load double, ptr %33, align 8, !tbaa !19
  %378 = load ptr, ptr %15, align 8, !tbaa !5
  %379 = load ptr, ptr %378, align 8, !tbaa !5
  %380 = load i32, ptr %32, align 4, !tbaa !9
  %381 = sext i32 %380 to i64
  %382 = getelementptr inbounds double, ptr %379, i64 %381
  store double %377, ptr %382, align 8, !tbaa !19
  %383 = load i32, ptr %30, align 4, !tbaa !9
  %384 = load ptr, ptr %14, align 8, !tbaa !5
  %385 = load ptr, ptr %384, align 8, !tbaa !5
  %386 = load i32, ptr %32, align 4, !tbaa !9
  %387 = sext i32 %386 to i64
  %388 = getelementptr inbounds i32, ptr %385, i64 %387
  store i32 %383, ptr %388, align 4, !tbaa !9
  %389 = load i32, ptr %32, align 4, !tbaa !9
  %390 = add nsw i32 %389, 1
  store i32 %390, ptr %32, align 4, !tbaa !9
  store i32 1, ptr %31, align 4, !tbaa !9
  br label %391

391:                                              ; preds = %376, %304
  br label %392

392:                                              ; preds = %391, %282
  br label %250, !llvm.loop !22

393:                                              ; preds = %273, %256
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #11
  %394 = load i32, ptr %27, align 4
  switch i32 %394, label %466 [
    i32 7, label %395
  ]

395:                                              ; preds = %393
  %396 = load i32, ptr %29, align 4, !tbaa !9
  %397 = sext i32 %396 to i64
  %398 = load ptr, ptr %11, align 8, !tbaa !5
  %399 = load i64, ptr %398, align 8, !tbaa !17
  %400 = sub i64 %399, 1
  %401 = icmp eq i64 %397, %400
  br i1 %401, label %402, label %417

402:                                              ; preds = %395
  %403 = load ptr, ptr %13, align 8, !tbaa !5
  %404 = load ptr, ptr %403, align 8, !tbaa !5
  %405 = load ptr, ptr %11, align 8, !tbaa !5
  %406 = load i64, ptr %405, align 8, !tbaa !17
  %407 = sub i64 %406, 1
  %408 = getelementptr inbounds i32, ptr %404, i64 %407
  %409 = load i32, ptr %408, align 4, !tbaa !9
  %410 = load i32, ptr %31, align 4, !tbaa !9
  %411 = add nsw i32 %409, %410
  %412 = load ptr, ptr %13, align 8, !tbaa !5
  %413 = load ptr, ptr %412, align 8, !tbaa !5
  %414 = load ptr, ptr %11, align 8, !tbaa !5
  %415 = load i64, ptr %414, align 8, !tbaa !17
  %416 = getelementptr inbounds i32, ptr %413, i64 %415
  store i32 %411, ptr %416, align 4, !tbaa !9
  br label %465

417:                                              ; preds = %395
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #11
  %418 = load ptr, ptr %13, align 8, !tbaa !5
  %419 = load ptr, ptr %418, align 8, !tbaa !5
  %420 = load i32, ptr %29, align 4, !tbaa !9
  %421 = sext i32 %420 to i64
  %422 = getelementptr inbounds i32, ptr %419, i64 %421
  %423 = load i32, ptr %422, align 4, !tbaa !9
  %424 = load i32, ptr %31, align 4, !tbaa !9
  %425 = add nsw i32 %423, %424
  store i32 %425, ptr %36, align 4, !tbaa !9
  %426 = load i32, ptr %36, align 4, !tbaa !9
  %427 = load ptr, ptr %13, align 8, !tbaa !5
  %428 = load ptr, ptr %427, align 8, !tbaa !5
  %429 = load i32, ptr %29, align 4, !tbaa !9
  %430 = add nsw i32 %429, 1
  %431 = sext i32 %430 to i64
  %432 = getelementptr inbounds i32, ptr %428, i64 %431
  store i32 %426, ptr %432, align 4, !tbaa !9
  %433 = load i32, ptr %29, align 4, !tbaa !9
  %434 = add nsw i32 %433, 1
  store i32 %434, ptr %29, align 4, !tbaa !9
  %435 = load i32, ptr %36, align 4, !tbaa !9
  %436 = sext i32 %435 to i64
  %437 = load ptr, ptr %12, align 8, !tbaa !5
  %438 = load i64, ptr %437, align 8, !tbaa !17
  %439 = icmp eq i64 %436, %438
  br i1 %439, label %440, label %441

440:                                              ; preds = %417
  br label %443

441:                                              ; preds = %417
  call void @__assert_fail(ptr noundef @.str.30, ptr noundef @.str.31, i32 noundef 316, ptr noundef @__PRETTY_FUNCTION__._ZN5nasoq15readMatrix_rectENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERmS6_S6_RPiS8_RPd) #14
  unreachable

442:                                              ; No predecessors!
  br label %443

443:                                              ; preds = %442, %440
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #11
  %444 = load i32, ptr %29, align 4, !tbaa !9
  %445 = add nsw i32 %444, 1
  store i32 %445, ptr %37, align 4, !tbaa !9
  br label %446

446:                                              ; preds = %461, %443
  %447 = load i32, ptr %37, align 4, !tbaa !9
  %448 = sext i32 %447 to i64
  %449 = load ptr, ptr %11, align 8, !tbaa !5
  %450 = load i64, ptr %449, align 8, !tbaa !17
  %451 = add i64 %450, 1
  %452 = icmp ult i64 %448, %451
  br i1 %452, label %454, label %453

453:                                              ; preds = %446
  store i32 12, ptr %27, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #11
  br label %464

454:                                              ; preds = %446
  %455 = load i32, ptr %36, align 4, !tbaa !9
  %456 = load ptr, ptr %13, align 8, !tbaa !5
  %457 = load ptr, ptr %456, align 8, !tbaa !5
  %458 = load i32, ptr %37, align 4, !tbaa !9
  %459 = sext i32 %458 to i64
  %460 = getelementptr inbounds i32, ptr %457, i64 %459
  store i32 %455, ptr %460, align 4, !tbaa !9
  br label %461

461:                                              ; preds = %454
  %462 = load i32, ptr %37, align 4, !tbaa !9
  %463 = add nsw i32 %462, 1
  store i32 %463, ptr %37, align 4, !tbaa !9
  br label %446, !llvm.loop !23

464:                                              ; preds = %453
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #11
  br label %465

465:                                              ; preds = %464, %402
  store i1 true, ptr %8, align 1
  store i32 1, ptr %27, align 4
  br label %466

466:                                              ; preds = %465, %393
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #11
  br label %467

467:                                              ; preds = %466, %245, %201, %188, %171
  call void @_ZNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(120) %28) #11
  call void @llvm.lifetime.end.p0(i64 384, ptr %28) #11
  br label %470

468:                                              ; preds = %274, %176
  call void @_ZNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(120) %28) #11
  br label %469

469:                                              ; preds = %468, %172
  call void @llvm.lifetime.end.p0(i64 384, ptr %28) #11
  br label %472

470:                                              ; preds = %467, %142, %139, %133, %121, %115, %109, %95
  call void @_ZNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(120) %26) #11
  call void @llvm.lifetime.end.p0(i64 384, ptr %26) #11
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr %24) #11
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr %23) #11
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr %22) #11
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr %21) #11
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #11
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #11
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256) %16) #11
  call void @llvm.lifetime.end.p0(i64 520, ptr %16) #11
  %471 = load i1, ptr %8, align 1
  ret i1 %471

472:                                              ; preds = %469, %100
  call void @_ZNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(120) %26) #11
  br label %473

473:                                              ; preds = %472, %96
  call void @llvm.lifetime.end.p0(i64 384, ptr %26) #11
  br label %474

474:                                              ; preds = %473, %71, %51
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr %24) #11
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr %23) #11
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr %22) #11
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr %21) #11
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #11
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #11
  br label %475

475:                                              ; preds = %474, %47
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256) %16) #11
  call void @llvm.lifetime.end.p0(i64 520, ptr %16) #11
  br label %476

476:                                              ; preds = %475
  %477 = load ptr, ptr %17, align 8
  %478 = load i32, ptr %18, align 4
  %479 = insertvalue { ptr, i32 } poison, ptr %477, 0
  %480 = insertvalue { ptr, i32 } %479, i32 %478, 1
  resume { ptr, i32 } %480
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #7 = { 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 #8 = { nounwind willreturn memory(read) "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 "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 #10 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #11 = { nounwind }
attributes #12 = { nounwind willreturn memory(read) }
attributes #13 = { builtin allocsize(0) }
attributes #14 = { noreturn 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 = !{!"int", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = !{!15, !15, i64 0}
!15 = !{!"vtable pointer", !8, i64 0}
!16 = distinct !{!16, !13}
!17 = !{!18, !18, i64 0}
!18 = !{!"long", !7, i64 0}
!19 = !{!20, !20, i64 0}
!20 = !{!"double", !7, i64 0}
!21 = distinct !{!21, !13}
!22 = distinct !{!22, !13}
!23 = distinct !{!23, !13}


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

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.14 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [68 x i8], align 1
@__PRETTY_FUNCTION__._ZN5nasoq15readMatrix_rectENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERmS6_S6_RPiS8_RPd = external hidden unnamed_addr constant [98 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #3

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #5

; 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 nounwind uwtable
declare void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 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 #6

; Function Attrs: mustprogress nounwind uwtable
declare noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nofree nounwind willreturn memory(read)
declare i32 @tolower(i32 noundef) local_unnamed_addr #7

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

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_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 #3

; Function Attrs: mustprogress uwtable
declare noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEntEv(ptr noundef nonnull align 8 dereferenceable(264)) local_unnamed_addr #2 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 #6

; Function Attrs: nounwind
declare noundef i32 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) local_unnamed_addr #8

declare noundef i32 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEmmPKc(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #3

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #9

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(120)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN5nasoq15readMatrix_rectENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERmS6_S6_RPiS8_RPd(ptr noundef %0, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3, ptr nocapture noundef nonnull align 8 dereferenceable(8) %4, ptr nocapture noundef nonnull align 8 dereferenceable(8) %5, ptr nocapture noundef nonnull align 8 dereferenceable(8) %6) local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %8 = alloca %"class.std::basic_ifstream", align 8
  %9 = alloca %"class.std::__cxx11::basic_string", align 8
  %10 = alloca %"class.std::__cxx11::basic_string", align 8
  %11 = alloca %"class.std::__cxx11::basic_string", align 8
  %12 = alloca %"class.std::__cxx11::basic_string", align 8
  %13 = alloca %"class.std::__cxx11::basic_string", align 8
  %14 = alloca %"class.std::__cxx11::basic_string", align 8
  %15 = alloca %"class.std::__cxx11::basic_istringstream", align 8
  %16 = alloca %"class.std::__cxx11::basic_istringstream", align 8
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca double, align 8
  call void @llvm.lifetime.start.p0(i64 520, ptr nonnull %8) #10
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(256) %8)
  invoke void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEE4openERKNSt7__cxx1112basic_stringIcS1_SaIcEEESt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(256) %8, ptr noundef nonnull align 8 dereferenceable(32) %0, i32 noundef 8)
          to label %20 unwind label %23

20:                                               ; preds = %7
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #10
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #10
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #10
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #10
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %11) #10
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #10
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %12) #10
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #10
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %13) #10
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #10
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %14) #10
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #10
  %21 = 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) %8, ptr noundef nonnull align 8 dereferenceable(32) %9)
          to label %.preheader unwind label %25

.preheader:                                       ; preds = %20
  %22 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(32) %9) #10
  %.not164 = icmp eq i64 %22, 0
  br i1 %.not164, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %.preheader
  call void @llvm.lifetime.start.p0(i64 384, ptr nonnull %15) #10
  invoke void @_ZNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEEC1ERKNS_12basic_stringIcS2_S3_EESt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(120) %15, ptr noundef nonnull align 8 dereferenceable(32) %9, i32 noundef 8)
          to label %38 unwind label %57

23:                                               ; preds = %7
  %24 = landingpad { ptr, i32 }
          cleanup
  br label %221

25:                                               ; preds = %20
  %26 = landingpad { ptr, i32 }
          cleanup
  br label %220

.lr.ph:                                           ; preds = %.preheader, %.lr.ph
  %27 = phi i64 [ %35, %.lr.ph ], [ 0, %.preheader ]
  %.097145 = phi i32 [ %34, %.lr.ph ], [ 0, %.preheader ]
  %28 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %9, i64 noundef %27)
  %29 = load i8, ptr %28, align 1, !tbaa !5
  %30 = sext i8 %29 to i32
  %31 = call i32 @tolower(i32 noundef %30) #11
  %32 = trunc i32 %31 to i8
  %33 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %9, i64 noundef %27)
  store i8 %32, ptr %33, align 1, !tbaa !5
  %34 = add i32 %.097145, 1
  %35 = zext i32 %34 to i64
  %36 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(32) %9) #10
  %37 = icmp ugt i64 %36, %35
  br i1 %37, label %.lr.ph, label %._crit_edge, !llvm.loop !8

38:                                               ; preds = %._crit_edge
  %39 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 8 dereferenceable(32) %10)
          to label %40 unwind label %.loopexit.split-lp

40:                                               ; preds = %38
  %41 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) %39, ptr noundef nonnull align 8 dereferenceable(32) %11)
          to label %42 unwind label %.loopexit.split-lp

42:                                               ; preds = %40
  %43 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) %41, ptr noundef nonnull align 8 dereferenceable(32) %12)
          to label %44 unwind label %.loopexit.split-lp

44:                                               ; preds = %42
  %45 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) %43, ptr noundef nonnull align 8 dereferenceable(32) %13)
          to label %46 unwind label %.loopexit.split-lp

46:                                               ; preds = %44
  %47 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) %45, ptr noundef nonnull align 8 dereferenceable(32) %14)
          to label %48 unwind label %.loopexit.split-lp

48:                                               ; preds = %46
  %49 = load ptr, ptr %47, align 8, !tbaa !10
  %50 = getelementptr i8, ptr %49, i64 -24
  %51 = load i64, ptr %50, align 8
  %52 = getelementptr inbounds i8, ptr %47, i64 %51
  %53 = invoke noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEntEv(ptr noundef nonnull align 8 dereferenceable(264) %52)
          to label %54 unwind label %.loopexit.split-lp

54:                                               ; preds = %48
  br i1 %53, label %.invoke, label %59

.invoke:                                          ; preds = %54, %71, %69, %63, %61, %59
  %55 = phi ptr [ @.str.16, %59 ], [ @.str.18, %61 ], [ @.str.20, %63 ], [ @.str.24, %69 ], [ %.str.26..str.27, %71 ], [ @.str.14, %54 ]
  %56 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull %55)
          to label %217 unwind label %.loopexit.split-lp

57:                                               ; preds = %._crit_edge
  %58 = landingpad { ptr, i32 }
          cleanup
  br label %219

.loopexit139:                                     ; preds = %73, %76
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %218

.loopexit.split-lp:                               ; preds = %.invoke, %38, %40, %42, %44, %46, %48
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %218

59:                                               ; preds = %54
  %60 = call noundef i32 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull @.str.15) #10
  %.not = icmp eq i32 %60, 0
  br i1 %.not, label %61, label %.invoke

61:                                               ; preds = %59
  %62 = call noundef i32 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc(ptr noundef nonnull align 8 dereferenceable(32) %11, ptr noundef nonnull @.str.17) #10
  %.not117 = icmp eq i32 %62, 0
  br i1 %.not117, label %63, label %.invoke

63:                                               ; preds = %61
  %64 = call noundef i32 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef nonnull @.str.19) #10
  %.not118 = icmp eq i32 %64, 0
  br i1 %.not118, label %65, label %.invoke

65:                                               ; preds = %63
  %66 = call noundef i32 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc(ptr noundef nonnull align 8 dereferenceable(32) %13, ptr noundef nonnull @.str.21) #10
  %.not119 = icmp eq i32 %66, 0
  br i1 %.not119, label %.preheader195, label %67

.preheader195:                                    ; preds = %67, %65
  br label %73

67:                                               ; preds = %65
  %68 = call noundef i32 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc(ptr noundef nonnull align 8 dereferenceable(32) %13, ptr noundef nonnull @.str.22) #10
  %.not120 = icmp eq i32 %68, 0
  br i1 %.not120, label %.preheader195, label %69

69:                                               ; preds = %67
  %70 = call noundef i32 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc(ptr noundef nonnull align 8 dereferenceable(32) %13, ptr noundef nonnull @.str.23) #10
  %.not128 = icmp eq i32 %70, 0
  br i1 %.not128, label %.invoke, label %71

71:                                               ; preds = %69
  %72 = call noundef i32 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc(ptr noundef nonnull align 8 dereferenceable(32) %13, ptr noundef nonnull @.str.25) #10
  %.not129 = icmp eq i32 %72, 0
  %.str.26..str.27 = select i1 %.not129, ptr @.str.26, ptr @.str.27
  br label %.invoke

73:                                               ; preds = %.preheader195, %76
  %74 = invoke noundef i32 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEmmPKc(ptr noundef nonnull align 8 dereferenceable(32) %9, i64 noundef 0, i64 noundef 1, ptr noundef nonnull @.str.28)
          to label %75 unwind label %.loopexit139

75:                                               ; preds = %73
  %.not121 = icmp eq i32 %74, 0
  br i1 %.not121, label %76, label %78

76:                                               ; preds = %75
  %77 = 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) %8, ptr noundef nonnull align 8 dereferenceable(32) %9)
          to label %73 unwind label %.loopexit139, !llvm.loop !12

78:                                               ; preds = %75
  call void @llvm.lifetime.start.p0(i64 384, ptr nonnull %16) #10
  invoke void @_ZNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEEC1ERKNS_12basic_stringIcS2_S3_EESt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(120) %16, ptr noundef nonnull align 8 dereferenceable(32) %9, i32 noundef 8)
          to label %79 unwind label %94

79:                                               ; preds = %78
  %80 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERm(ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef nonnull align 8 dereferenceable(8) %1)
          to label %81 unwind label %96

81:                                               ; preds = %79
  %82 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERm(ptr noundef nonnull align 8 dereferenceable(16) %80, ptr noundef nonnull align 8 dereferenceable(8) %2)
          to label %83 unwind label %96

83:                                               ; preds = %81
  %84 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERm(ptr noundef nonnull align 8 dereferenceable(16) %82, ptr noundef nonnull align 8 dereferenceable(8) %3)
          to label %85 unwind label %96

85:                                               ; preds = %83
  %86 = load ptr, ptr %84, align 8, !tbaa !10
  %87 = getelementptr i8, ptr %86, i64 -24
  %88 = load i64, ptr %87, align 8
  %89 = getelementptr inbounds i8, ptr %84, i64 %88
  %90 = invoke noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEntEv(ptr noundef nonnull align 8 dereferenceable(264) %89)
          to label %91 unwind label %96

91:                                               ; preds = %85
  br i1 %90, label %92, label %98

92:                                               ; preds = %91
  %93 = 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.29)
          to label %214 unwind label %96

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

96:                                               ; preds = %117, %112, %106, %92, %85, %83, %81, %79
  %97 = landingpad { ptr, i32 }
          cleanup
  br label %215

98:                                               ; preds = %91
  %99 = load i64, ptr %2, align 8, !tbaa !13
  %100 = load i64, ptr %3, align 8, !tbaa !13
  %101 = icmp eq i64 %99, 0
  %102 = icmp eq i64 %100, 0
  %or.cond = select i1 %101, i1 true, i1 %102
  %103 = load i64, ptr %1, align 8
  %104 = icmp eq i64 %103, 0
  %or.cond136 = select i1 %or.cond, i1 true, i1 %104
  br i1 %or.cond136, label %105, label %106

105:                                              ; preds = %98
  store ptr null, ptr %4, align 8, !tbaa !15
  store ptr null, ptr %5, align 8, !tbaa !15
  store ptr null, ptr %6, align 8, !tbaa !15
  br label %214

106:                                              ; preds = %98
  %107 = add i64 %99, 1
  %108 = icmp ugt i64 %107, 4611686018427387903
  %109 = shl i64 %107, 2
  %110 = select i1 %108, i64 -1, i64 %109
  %111 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %110) #12
          to label %112 unwind label %96

112:                                              ; preds = %106
  call void @llvm.memset.p0.i64(ptr nonnull align 4 %111, i8 0, i64 %110, i1 false)
  store ptr %111, ptr %4, align 8, !tbaa !15
  %113 = icmp ugt i64 %100, 4611686018427387903
  %114 = shl i64 %100, 2
  %115 = select i1 %113, i64 -1, i64 %114
  %116 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %115) #12
          to label %117 unwind label %96

117:                                              ; preds = %112
  store ptr %116, ptr %5, align 8, !tbaa !15
  %118 = icmp ugt i64 %100, 2305843009213693951
  %119 = shl i64 %100, 3
  %120 = select i1 %118, i64 -1, i64 %119
  %121 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %120) #12
          to label %122 unwind label %96

122:                                              ; preds = %117
  store ptr %121, ptr %6, align 8, !tbaa !15
  %123 = load ptr, ptr %4, align 8, !tbaa !15
  %.not122 = icmp eq ptr %123, null
  %124 = load ptr, ptr %5, align 8
  %.not123 = icmp eq ptr %124, null
  %or.cond137 = select i1 %.not122, i1 true, i1 %.not123
  br i1 %or.cond137, label %214, label %.lr.ph158.preheader

.lr.ph158.preheader:                              ; preds = %122
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #10
  store i32 0, ptr %123, align 4, !tbaa !17
  br label %.lr.ph158

.lr.ph158:                                        ; preds = %.lr.ph158.preheader, %185
  %indvars.iv174 = phi i64 [ 0, %.lr.ph158.preheader ], [ %indvars.iv.next175, %185 ]
  %.089155 = phi i32 [ 0, %.lr.ph158.preheader ], [ %.291, %185 ]
  %.094153 = phi i32 [ 0, %.lr.ph158.preheader ], [ %.195, %185 ]
  %125 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef nonnull align 4 dereferenceable(4) %18)
          to label %126 unwind label %139

126:                                              ; preds = %.lr.ph158
  %127 = load i32, ptr %18, align 4, !tbaa !17
  %128 = add nsw i32 %127, -1
  store i32 %128, ptr %18, align 4, !tbaa !17
  %129 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef nonnull align 4 dereferenceable(4) %17)
          to label %130 unwind label %139

130:                                              ; preds = %126
  %131 = load i32, ptr %17, align 4, !tbaa !17
  %132 = add nsw i32 %131, -1
  store i32 %132, ptr %17, align 4, !tbaa !17
  %133 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef nonnull align 8 dereferenceable(8) %19)
          to label %134 unwind label %139

134:                                              ; preds = %130
  %135 = load i32, ptr %17, align 4, !tbaa !17
  %136 = sext i32 %135 to i64
  %137 = load i64, ptr %2, align 8, !tbaa !13
  %138 = icmp uge i64 %137, %136
  br i1 %138, label %141, label %.loopexit

139:                                              ; preds = %130, %126, %.lr.ph158
  %140 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #10
  br label %215

141:                                              ; preds = %134
  %142 = icmp eq i32 %135, %.089155
  br i1 %142, label %143, label %151

143:                                              ; preds = %141
  %144 = load double, ptr %19, align 8, !tbaa !19
  %145 = load ptr, ptr %6, align 8, !tbaa !15
  %146 = getelementptr inbounds double, ptr %145, i64 %indvars.iv174
  store double %144, ptr %146, align 8, !tbaa !19
  %147 = load i32, ptr %18, align 4, !tbaa !17
  %148 = load ptr, ptr %5, align 8, !tbaa !15
  %149 = getelementptr inbounds i32, ptr %148, i64 %indvars.iv174
  store i32 %147, ptr %149, align 4, !tbaa !17
  %150 = add nsw i32 %.094153, 1
  br label %185

151:                                              ; preds = %141
  %152 = add nsw i32 %.089155, 1
  %153 = icmp eq i32 %152, %135
  %154 = load ptr, ptr %4, align 8, !tbaa !15
  %155 = sext i32 %.089155 to i64
  %156 = getelementptr inbounds i32, ptr %154, i64 %155
  %157 = load i32, ptr %156, align 4, !tbaa !17
  %158 = add nsw i32 %157, %.094153
  br i1 %153, label %159, label %167

159:                                              ; preds = %151
  %160 = getelementptr inbounds i32, ptr %154, i64 %136
  store i32 %158, ptr %160, align 4, !tbaa !17
  %161 = load double, ptr %19, align 8, !tbaa !19
  %162 = load ptr, ptr %6, align 8, !tbaa !15
  %163 = getelementptr inbounds double, ptr %162, i64 %indvars.iv174
  store double %161, ptr %163, align 8, !tbaa !19
  %164 = load i32, ptr %18, align 4, !tbaa !17
  %165 = load ptr, ptr %5, align 8, !tbaa !15
  %166 = getelementptr inbounds i32, ptr %165, i64 %indvars.iv174
  store i32 %164, ptr %166, align 4, !tbaa !17
  br label %185

167:                                              ; preds = %151
  %168 = sext i32 %152 to i64
  %169 = getelementptr inbounds i32, ptr %154, i64 %168
  store i32 %158, ptr %169, align 4, !tbaa !17
  %170 = add nsw i32 %.089155, 2
  %171 = load i32, ptr %17, align 4, !tbaa !17
  %.not124146 = icmp sgt i32 %170, %171
  br i1 %.not124146, label %._crit_edge151, label %.lr.ph150.preheader

.lr.ph150.preheader:                              ; preds = %167
  %172 = sext i32 %170 to i64
  br label %.lr.ph150

._crit_edge151.loopexit:                          ; preds = %.lr.ph150
  %173 = trunc nsw i64 %indvars.iv.next170 to i32
  br label %._crit_edge151

._crit_edge151:                                   ; preds = %._crit_edge151.loopexit, %167
  %.190.lcssa = phi i32 [ %152, %167 ], [ %173, %._crit_edge151.loopexit ]
  %174 = load double, ptr %19, align 8, !tbaa !19
  %175 = load ptr, ptr %6, align 8, !tbaa !15
  %176 = getelementptr inbounds double, ptr %175, i64 %indvars.iv174
  store double %174, ptr %176, align 8, !tbaa !19
  %177 = load i32, ptr %18, align 4, !tbaa !17
  %178 = load ptr, ptr %5, align 8, !tbaa !15
  %179 = getelementptr inbounds i32, ptr %178, i64 %indvars.iv174
  store i32 %177, ptr %179, align 4, !tbaa !17
  br label %185

.lr.ph150:                                        ; preds = %.lr.ph150.preheader, %.lr.ph150
  %indvars.iv169 = phi i64 [ %168, %.lr.ph150.preheader ], [ %indvars.iv.next170, %.lr.ph150 ]
  %indvars.iv = phi i64 [ %172, %.lr.ph150.preheader ], [ %indvars.iv.next, %.lr.ph150 ]
  %180 = getelementptr inbounds i32, ptr %154, i64 %indvars.iv169
  %181 = load i32, ptr %180, align 4, !tbaa !17
  %182 = getelementptr inbounds i32, ptr %154, i64 %indvars.iv
  store i32 %181, ptr %182, align 4, !tbaa !17
  %indvars.iv.next = add nsw i64 %indvars.iv, 1
  %indvars.iv.next170 = add nsw i64 %indvars.iv169, 1
  %183 = load i32, ptr %17, align 4, !tbaa !17
  %184 = sext i32 %183 to i64
  %.not124.not = icmp slt i64 %indvars.iv, %184
  br i1 %.not124.not, label %.lr.ph150, label %._crit_edge151.loopexit, !llvm.loop !21

185:                                              ; preds = %159, %._crit_edge151, %143
  %.195 = phi i32 [ %150, %143 ], [ 1, %159 ], [ 1, %._crit_edge151 ]
  %.291 = phi i32 [ %.089155, %143 ], [ %135, %159 ], [ %.190.lcssa, %._crit_edge151 ]
  %indvars.iv.next175 = add nuw nsw i64 %indvars.iv174, 1
  %186 = load i64, ptr %3, align 8, !tbaa !13
  %.not125.not = icmp ugt i64 %186, %indvars.iv.next175
  br i1 %.not125.not, label %.lr.ph158, label %.critedge, !llvm.loop !22

.critedge:                                        ; preds = %185
  %187 = load i32, ptr %17, align 4, !tbaa !17
  %188 = sext i32 %187 to i64
  %189 = add i64 %137, -1
  %190 = icmp eq i64 %189, %188
  %191 = load ptr, ptr %4, align 8, !tbaa !15
  %192 = getelementptr inbounds i32, ptr %191, i64 %188
  %193 = load i32, ptr %192, align 4, !tbaa !17
  %194 = add nsw i32 %193, %.195
  br i1 %190, label %195, label %197

195:                                              ; preds = %.critedge
  %196 = getelementptr inbounds i32, ptr %191, i64 %137
  store i32 %194, ptr %196, align 4, !tbaa !17
  br label %.loopexit

197:                                              ; preds = %.critedge
  %198 = getelementptr i8, ptr %192, i64 4
  store i32 %194, ptr %198, align 4, !tbaa !17
  %199 = load i32, ptr %17, align 4, !tbaa !17
  %200 = add nsw i32 %199, 1
  store i32 %200, ptr %17, align 4, !tbaa !17
  %201 = sext i32 %194 to i64
  %202 = icmp eq i64 %186, %201
  br i1 %202, label %204, label %203

203:                                              ; preds = %197
  call void @__assert_fail(ptr noundef nonnull @.str.30, ptr noundef nonnull @.str.31, i32 noundef 316, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN5nasoq15readMatrix_rectENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERmS6_S6_RPiS8_RPd) #13
  unreachable

204:                                              ; preds = %197
  %205 = add nsw i32 %199, 2
  %206 = add i64 %137, 1
  %207 = sext i32 %205 to i64
  %208 = icmp ugt i64 %206, %207
  br i1 %208, label %.lr.ph163.preheader, label %.loopexit

.lr.ph163.preheader:                              ; preds = %204
  %reass.sub = sub i64 %137, %207
  %209 = add i64 %reass.sub, 1
  %min.iters.check = icmp ult i64 %209, 8
  br i1 %min.iters.check, label %.lr.ph163.preheader189, label %vector.ph

vector.ph:                                        ; preds = %.lr.ph163.preheader
  %n.vec = and i64 %209, -8
  %ind.end = add i64 %n.vec, %207
  %broadcast.splatinsert = insertelement <4 x i32> poison, i32 %194, i64 0
  %broadcast.splat = shufflevector <4 x i32> %broadcast.splatinsert, <4 x i32> poison, <4 x i32> zeroinitializer
  %invariant.gep = getelementptr i32, ptr %191, i64 %207
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %gep = getelementptr i32, ptr %invariant.gep, i64 %index
  %210 = getelementptr inbounds i8, ptr %gep, i64 16
  store <4 x i32> %broadcast.splat, ptr %gep, align 4, !tbaa !17
  store <4 x i32> %broadcast.splat, ptr %210, align 4, !tbaa !17
  %index.next = add nuw i64 %index, 8
  %211 = icmp eq i64 %index.next, %n.vec
  br i1 %211, label %middle.block, label %vector.body, !llvm.loop !23

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %209, %n.vec
  br i1 %cmp.n, label %.loopexit, label %.lr.ph163.preheader189

.lr.ph163.preheader189:                           ; preds = %middle.block, %.lr.ph163.preheader
  %indvars.iv176.ph = phi i64 [ %207, %.lr.ph163.preheader ], [ %ind.end, %middle.block ]
  br label %.lr.ph163

.lr.ph163:                                        ; preds = %.lr.ph163.preheader189, %.lr.ph163
  %indvars.iv176 = phi i64 [ %indvars.iv.next177, %.lr.ph163 ], [ %indvars.iv176.ph, %.lr.ph163.preheader189 ]
  %212 = getelementptr inbounds i32, ptr %191, i64 %indvars.iv176
  store i32 %194, ptr %212, align 4, !tbaa !17
  %indvars.iv.next177 = add nuw nsw i64 %indvars.iv176, 1
  %213 = icmp ugt i64 %206, %indvars.iv.next177
  br i1 %213, label %.lr.ph163, label %.loopexit, !llvm.loop !26

.loopexit:                                        ; preds = %134, %.lr.ph163, %middle.block, %204, %195
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #10
  br label %214

214:                                              ; preds = %122, %92, %.loopexit, %105
  %.2 = phi i1 [ true, %105 ], [ %138, %.loopexit ], [ false, %92 ], [ false, %122 ]
  call void @_ZNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(120) %16) #10
  call void @llvm.lifetime.end.p0(i64 384, ptr nonnull %16) #10
  br label %217

215:                                              ; preds = %139, %96
  %.pn = phi { ptr, i32 } [ %97, %96 ], [ %140, %139 ]
  call void @_ZNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(120) %16) #10
  br label %216

216:                                              ; preds = %215, %94
  %.pn.pn = phi { ptr, i32 } [ %.pn, %215 ], [ %95, %94 ]
  call void @llvm.lifetime.end.p0(i64 384, ptr nonnull %16) #10
  br label %218

217:                                              ; preds = %.invoke, %214
  %.3 = phi i1 [ %.2, %214 ], [ false, %.invoke ]
  call void @_ZNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(120) %15) #10
  call void @llvm.lifetime.end.p0(i64 384, ptr nonnull %15) #10
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %14) #10
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #10
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #10
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #10
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #10
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #10
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256) %8) #10
  call void @llvm.lifetime.end.p0(i64 520, ptr nonnull %8) #10
  ret i1 %.3

218:                                              ; preds = %.loopexit139, %.loopexit.split-lp, %216
  %.pn130 = phi { ptr, i32 } [ %.pn.pn, %216 ], [ %lpad.loopexit, %.loopexit139 ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @_ZNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(120) %15) #10
  br label %219

219:                                              ; preds = %218, %57
  %.pn130.pn = phi { ptr, i32 } [ %.pn130, %218 ], [ %58, %57 ]
  call void @llvm.lifetime.end.p0(i64 384, ptr nonnull %15) #10
  br label %220

220:                                              ; preds = %219, %25
  %.pn130.pn.pn = phi { ptr, i32 } [ %.pn130.pn, %219 ], [ %26, %25 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %14) #10
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #10
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #10
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #10
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #10
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #10
  br label %221

221:                                              ; preds = %220, %23
  %.pn130.pn.pn.pn = phi { ptr, i32 } [ %.pn130.pn.pn, %220 ], [ %24, %23 ]
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256) %8) #10
  call void @llvm.lifetime.end.p0(i64 520, ptr nonnull %8) #10
  resume { ptr, i32 } %.pn130.pn.pn.pn
}

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { "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 = { 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 #5 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { 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 #7 = { mustprogress nofree nounwind willreturn memory(read) "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 = { 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 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #10 = { nounwind }
attributes #11 = { nounwind willreturn memory(read) }
attributes #12 = { builtin allocsize(0) }
attributes #13 = { noreturn 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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = distinct !{!8, !9}
!9 = !{!"llvm.loop.mustprogress"}
!10 = !{!11, !11, i64 0}
!11 = !{!"vtable pointer", !7, i64 0}
!12 = distinct !{!12, !9}
!13 = !{!14, !14, i64 0}
!14 = !{!"long", !6, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"any pointer", !6, i64 0}
!17 = !{!18, !18, i64 0}
!18 = !{!"int", !6, i64 0}
!19 = !{!20, !20, i64 0}
!20 = !{!"double", !6, i64 0}
!21 = distinct !{!21, !9}
!22 = distinct !{!22, !9}
!23 = distinct !{!23, !9, !24, !25}
!24 = !{!"llvm.loop.isvectorized", i32 1}
!25 = !{!"llvm.loop.unroll.runtime.disable"}
!26 = distinct !{!26, !9, !25, !24}


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