; LLVM IR from gem5/gem5 :: ext/drampower/src (TraceParser)

; 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_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" }
%"class.std::locale" = type { ptr }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.std::__basic_file" = type <{ ptr, i8, [7 x i8] }>
%struct.__mbstate_t = type { i32, %union.anon.18 }
%union.anon.18 = type { i32 }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.Data::CommandAnalysis" = type { %"class.std::vector.0", %"class.std::vector.0", %"class.std::vector.0", %"class.std::vector.0", i64, %"class.std::vector.0", i64, i64, %"class.std::vector.0", i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, %"class.Data::MemorySpecification", i64, %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector.13", %"class.std::vector.13", %"class.std::vector.0", i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i32, i64, i64, %"class.std::vector.0", i64 }
%"class.Data::MemorySpecification" = type { ptr, %"class.std::__cxx11::basic_string", %"class.Data::MemoryType", [4 x i8], %"class.Data::MemArchitectureSpec", %"class.Data::MemTimingSpec", %"class.Data::MemPowerSpec", %"class.Data::Parametrisable" }
%"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.Data::MemoryType" = type { i32 }
%"class.Data::MemArchitectureSpec" = type <{ ptr, i64, i64, i64, i64, i64, i64, i64, i64, i8, i8, i8, [5 x i8], %"class.Data::Parametrisable" }>
%"class.Data::MemTimingSpec" = type { ptr, double, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, double, %"class.Data::Parametrisable" }
%"class.Data::MemPowerSpec" = type { ptr, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, %"class.Data::Parametrisable" }
%"class.Data::Parametrisable" = type { ptr, %"class.std::vector.8" }
%"class.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = type { %"struct.std::_Vector_base<Data::Parameter, std::allocator<Data::Parameter>>::_Vector_impl" }
%"struct.std::_Vector_base<Data::Parameter, std::allocator<Data::Parameter>>::_Vector_impl" = type { %"struct.std::_Vector_base<Data::Parameter, std::allocator<Data::Parameter>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Data::Parameter, std::allocator<Data::Parameter>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<Data::MemCommand, std::allocator<Data::MemCommand>>::_Vector_impl" }
%"struct.std::_Vector_base<Data::MemCommand, std::allocator<Data::MemCommand>>::_Vector_impl" = type { %"struct.std::_Vector_base<Data::MemCommand, std::allocator<Data::MemCommand>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Data::MemCommand, std::allocator<Data::MemCommand>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.13" = type { %"struct.std::_Vector_base.14" }
%"struct.std::_Vector_base.14" = type { %"struct.std::_Vector_base<Data::CommandAnalysis::BankState, std::allocator<Data::CommandAnalysis::BankState>>::_Vector_impl" }
%"struct.std::_Vector_base<Data::CommandAnalysis::BankState, std::allocator<Data::CommandAnalysis::BankState>>::_Vector_impl" = type { %"struct.std::_Vector_base<Data::CommandAnalysis::BankState, std::allocator<Data::CommandAnalysis::BankState>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Data::CommandAnalysis::BankState, std::allocator<Data::CommandAnalysis::BankState>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<long, std::allocator<long>>::_Vector_impl" }
%"struct.std::_Vector_base<long, std::allocator<long>>::_Vector_impl" = type { %"struct.std::_Vector_base<long, std::allocator<long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<long, std::allocator<long>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.Data::cmdScheduler" = type { %"class.std::vector.19", %"class.Data::cmdScheduler::commandItem", %"class.Data::cmdScheduler::commandItem", %"class.Data::cmdScheduler::commandItem", %"class.std::vector.24", %"class.std::vector.24", %"class.std::vector.29", %"class.std::vector.24", %"class.std::vector.24", i32, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i8, i64, %"class.std::basic_ofstream" }
%"class.std::vector.19" = type { %"struct.std::_Vector_base.20" }
%"struct.std::_Vector_base.20" = type { %"struct.std::_Vector_base<Data::cmdScheduler::trans, std::allocator<Data::cmdScheduler::trans>>::_Vector_impl" }
%"struct.std::_Vector_base<Data::cmdScheduler::trans, std::allocator<Data::cmdScheduler::trans>>::_Vector_impl" = type { %"struct.std::_Vector_base<Data::cmdScheduler::trans, std::allocator<Data::cmdScheduler::trans>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Data::cmdScheduler::trans, std::allocator<Data::cmdScheduler::trans>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.Data::cmdScheduler::commandItem" = type { i64, i64, i64, %"class.std::__cxx11::basic_string", %"class.Data::cmdScheduler::physicalAddr" }
%"class.Data::cmdScheduler::physicalAddr" = type { i64, i64, i64, i64 }
%"class.std::vector.29" = type { %"struct.std::_Vector_base.30" }
%"struct.std::_Vector_base.30" = type { %"struct.std::_Vector_base<std::vector<Data::cmdScheduler::commandItem>, std::allocator<std::vector<Data::cmdScheduler::commandItem>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<Data::cmdScheduler::commandItem>, std::allocator<std::vector<Data::cmdScheduler::commandItem>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<Data::cmdScheduler::commandItem>, std::allocator<std::vector<Data::cmdScheduler::commandItem>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<Data::cmdScheduler::commandItem>, std::allocator<std::vector<Data::cmdScheduler::commandItem>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.24" = type { %"struct.std::_Vector_base.25" }
%"struct.std::_Vector_base.25" = type { %"struct.std::_Vector_base<Data::cmdScheduler::commandItem, std::allocator<Data::cmdScheduler::commandItem>>::_Vector_impl" }
%"struct.std::_Vector_base<Data::cmdScheduler::commandItem, std::allocator<Data::cmdScheduler::commandItem>>::_Vector_impl" = type { %"struct.std::_Vector_base<Data::cmdScheduler::commandItem, std::allocator<Data::cmdScheduler::commandItem>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Data::cmdScheduler::commandItem, std::allocator<Data::cmdScheduler::commandItem>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::basic_ofstream" = type { %"class.std::basic_ostream.base", %"class.std::basic_filebuf", %"class.std::basic_ios" }
%"class.std::basic_ostream.base" = type { ptr }
%"class.Data::MemCommand" = type { i32, i32, i64 }
%class.TraceParser = type { %"class.std::vector", %"class.Data::CommandAnalysis" }

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

declare void @_ZN4Data15CommandAnalysisC1ERKNS_19MemorySpecificationE(ptr noundef nonnull align 8 dereferenceable(1392), ptr noundef nonnull align 8 dereferenceable(736)) unnamed_addr #0

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local { i64, i64 } @_ZN11TraceParser9parseLineENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(1416), ptr noundef) #1 align 2

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

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

; Function Attrs: mustprogress uwtable
declare noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264)) #1 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11TraceParser9parseFileEN4Data19MemorySpecificationERSt14basic_ifstreamIcSt11char_traitsIcEEiiiiii(ptr noundef nonnull align 8 dereferenceable(1416) %0, ptr noundef %1, ptr noundef nonnull align 8 dereferenceable(256) %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6, i32 noundef %7, i32 noundef %8) #1 align 2 personality ptr @__gxx_personality_v0 {
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca %"class.std::basic_ifstream", align 8
  %20 = alloca %"class.Data::CommandAnalysis", align 8
  %21 = alloca ptr, align 8
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i8, align 1
  %25 = alloca %"class.Data::cmdScheduler", align 8
  %26 = alloca %"class.std::__cxx11::basic_string", align 8
  %27 = alloca %"class.Data::MemCommand", align 8
  %28 = alloca %"class.std::__cxx11::basic_string", align 8
  %29 = alloca %"class.std::__cxx11::basic_string", align 8
  %30 = alloca %"class.Data::MemCommand", align 8
  %31 = alloca %"class.std::__cxx11::basic_string", align 8
  store ptr %0, ptr %10, align 8, !tbaa !5
  store ptr %1, ptr %11, align 8, !tbaa !5
  store ptr %2, ptr %12, align 8, !tbaa !5
  store i32 %3, ptr %13, align 4, !tbaa !9
  store i32 %4, ptr %14, align 4, !tbaa !9
  store i32 %5, ptr %15, align 4, !tbaa !9
  store i32 %6, ptr %16, align 4, !tbaa !9
  store i32 %7, ptr %17, align 4, !tbaa !9
  store i32 %8, ptr %18, align 4, !tbaa !9
  %32 = load ptr, ptr %10, align 8
  call void @llvm.lifetime.start.p0(i64 520, ptr %19) #6
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(256) %19)
  call void @llvm.lifetime.start.p0(i64 1392, ptr %20) #6
  invoke void @_ZN4Data15CommandAnalysisC1ERKNS_19MemorySpecificationE(ptr noundef nonnull align 8 dereferenceable(1392) %20, ptr noundef nonnull align 8 dereferenceable(736) %1)
          to label %33 unwind label %79

33:                                               ; preds = %9
  %34 = getelementptr inbounds %class.TraceParser, ptr %32, i32 0, i32 1
  %35 = invoke noundef nonnull align 8 dereferenceable(1392) ptr @_ZN4Data15CommandAnalysisaSEOS0_(ptr noundef nonnull align 8 dereferenceable(1392) %34, ptr noundef nonnull align 8 dereferenceable(1392) %20)
          to label %36 unwind label %83

36:                                               ; preds = %33
  call void @_ZN4Data15CommandAnalysisD2Ev(ptr noundef nonnull align 8 dereferenceable(1392) %20) #6
  call void @llvm.lifetime.end.p0(i64 1392, ptr %20) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #6
  store i32 0, ptr %23, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %24) #6
  store i8 0, ptr %24, align 1, !tbaa !11
  %37 = load i32, ptr %18, align 4, !tbaa !9
  %38 = icmp ne i32 %37, 0
  br i1 %38, label %39, label %121

39:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 1080, ptr %25) #6
  invoke void @_ZN4Data12cmdSchedulerC2Ev(ptr noundef nonnull align 8 dereferenceable(1080) %25)
          to label %40 unwind label %88

40:                                               ; preds = %39
  %41 = load ptr, ptr %12, align 8, !tbaa !5
  %42 = load i32, ptr %14, align 4, !tbaa !9
  %43 = load i32, ptr %15, align 4, !tbaa !9
  %44 = load i32, ptr %16, align 4, !tbaa !9
  %45 = load i32, ptr %17, align 4, !tbaa !9
  invoke void @_ZN4Data12cmdScheduler16transTranslationERKNS_19MemorySpecificationERSt14basic_ifstreamIcSt11char_traitsIcEEiiii(ptr noundef nonnull align 8 dereferenceable(1080) %25, ptr noundef nonnull align 8 dereferenceable(736) %1, ptr noundef nonnull align 8 dereferenceable(256) %41, i32 noundef %42, i32 noundef %43, i32 noundef %44, i32 noundef %45)
          to label %46 unwind label %92

46:                                               ; preds = %40
  invoke void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(256) %19, ptr noundef @.str, i32 noundef 8)
          to label %47 unwind label %92

47:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 32, ptr %26) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #6
  br label %48

48:                                               ; preds = %108, %47
  %49 = 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) %19, ptr noundef nonnull align 8 dereferenceable(32) %26)
          to label %50 unwind label %96

50:                                               ; preds = %48
  %51 = load ptr, ptr %49, align 8, !tbaa !13
  %52 = getelementptr i8, ptr %51, i64 -24
  %53 = load i64, ptr %52, align 8
  %54 = getelementptr inbounds i8, ptr %49, i64 %53
  %55 = invoke noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264) %54)
          to label %56 unwind label %96

56:                                               ; preds = %50
  br i1 %55, label %57, label %110

57:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 16, ptr %27) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %28, ptr noundef nonnull align 8 dereferenceable(32) %26)
          to label %58 unwind label %100

58:                                               ; preds = %57
  %59 = invoke { i64, i64 } @_ZN11TraceParser9parseLineENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(1416) %32, ptr noundef %28)
          to label %60 unwind label %104

60:                                               ; preds = %58
  %61 = getelementptr inbounds { i64, i64 }, ptr %27, i32 0, i32 0
  %62 = extractvalue { i64, i64 } %59, 0
  store i64 %62, ptr %61, align 8
  %63 = getelementptr inbounds { i64, i64 }, ptr %27, i32 0, i32 1
  %64 = extractvalue { i64, i64 } %59, 1
  store i64 %64, ptr %63, align 8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %28) #6
  %65 = getelementptr inbounds %class.TraceParser, ptr %32, i32 0, i32 0
  invoke void @_ZNSt6vectorIN4Data10MemCommandESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %65, ptr noundef nonnull align 8 dereferenceable(16) %27)
          to label %66 unwind label %100

66:                                               ; preds = %60
  %67 = load i32, ptr %23, align 4, !tbaa !9
  %68 = add nsw i32 %67, 1
  store i32 %68, ptr %23, align 4, !tbaa !9
  %69 = load i32, ptr %23, align 4, !tbaa !9
  %70 = load i32, ptr %13, align 4, !tbaa !9
  %71 = icmp eq i32 %69, %70
  br i1 %71, label %72, label %108

72:                                               ; preds = %66
  %73 = getelementptr inbounds %class.TraceParser, ptr %32, i32 0, i32 1
  %74 = getelementptr inbounds %class.TraceParser, ptr %32, i32 0, i32 0
  %75 = load i8, ptr %24, align 1, !tbaa !11, !range !15, !noundef !16
  %76 = trunc i8 %75 to i1
  invoke void @_ZN4Data15CommandAnalysis11getCommandsERSt6vectorINS_10MemCommandESaIS2_EEbl(ptr noundef nonnull align 8 dereferenceable(1392) %73, ptr noundef nonnull align 8 dereferenceable(24) %74, i1 noundef zeroext %76, i64 noundef 0)
          to label %77 unwind label %100

77:                                               ; preds = %72
  store i32 0, ptr %23, align 4, !tbaa !9
  %78 = getelementptr inbounds %class.TraceParser, ptr %32, i32 0, i32 0
  call void @_ZNSt6vectorIN4Data10MemCommandESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %78) #6
  br label %108

79:                                               ; preds = %9
  %80 = landingpad { ptr, i32 }
          cleanup
  %81 = extractvalue { ptr, i32 } %80, 0
  store ptr %81, ptr %21, align 8
  %82 = extractvalue { ptr, i32 } %80, 1
  store i32 %82, ptr %22, align 4
  br label %87

83:                                               ; preds = %33
  %84 = landingpad { ptr, i32 }
          cleanup
  %85 = extractvalue { ptr, i32 } %84, 0
  store ptr %85, ptr %21, align 8
  %86 = extractvalue { ptr, i32 } %84, 1
  store i32 %86, ptr %22, align 4
  call void @_ZN4Data15CommandAnalysisD2Ev(ptr noundef nonnull align 8 dereferenceable(1392) %20) #6
  br label %87

87:                                               ; preds = %83, %79
  call void @llvm.lifetime.end.p0(i64 1392, ptr %20) #6
  br label %186

88:                                               ; preds = %39
  %89 = landingpad { ptr, i32 }
          cleanup
  %90 = extractvalue { ptr, i32 } %89, 0
  store ptr %90, ptr %21, align 8
  %91 = extractvalue { ptr, i32 } %89, 1
  store i32 %91, ptr %22, align 4
  br label %120

92:                                               ; preds = %46, %40
  %93 = landingpad { ptr, i32 }
          cleanup
  %94 = extractvalue { ptr, i32 } %93, 0
  store ptr %94, ptr %21, align 8
  %95 = extractvalue { ptr, i32 } %93, 1
  store i32 %95, ptr %22, align 4
  br label %119

96:                                               ; preds = %115, %110, %50, %48
  %97 = landingpad { ptr, i32 }
          cleanup
  %98 = extractvalue { ptr, i32 } %97, 0
  store ptr %98, ptr %21, align 8
  %99 = extractvalue { ptr, i32 } %97, 1
  store i32 %99, ptr %22, align 4
  br label %118

100:                                              ; preds = %72, %60, %57
  %101 = landingpad { ptr, i32 }
          cleanup
  %102 = extractvalue { ptr, i32 } %101, 0
  store ptr %102, ptr %21, align 8
  %103 = extractvalue { ptr, i32 } %101, 1
  store i32 %103, ptr %22, align 4
  br label %109

104:                                              ; preds = %58
  %105 = landingpad { ptr, i32 }
          cleanup
  %106 = extractvalue { ptr, i32 } %105, 0
  store ptr %106, ptr %21, align 8
  %107 = extractvalue { ptr, i32 } %105, 1
  store i32 %107, ptr %22, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %28) #6
  br label %109

108:                                              ; preds = %77, %66
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #6
  br label %48, !llvm.loop !17

109:                                              ; preds = %104, %100
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #6
  br label %118

110:                                              ; preds = %56
  store i8 1, ptr %24, align 1, !tbaa !11
  %111 = getelementptr inbounds %class.TraceParser, ptr %32, i32 0, i32 1
  %112 = getelementptr inbounds %class.TraceParser, ptr %32, i32 0, i32 0
  %113 = load i8, ptr %24, align 1, !tbaa !11, !range !15, !noundef !16
  %114 = trunc i8 %113 to i1
  invoke void @_ZN4Data15CommandAnalysis11getCommandsERSt6vectorINS_10MemCommandESaIS2_EEbl(ptr noundef nonnull align 8 dereferenceable(1392) %111, ptr noundef nonnull align 8 dereferenceable(24) %112, i1 noundef zeroext %114, i64 noundef 0)
          to label %115 unwind label %96

115:                                              ; preds = %110
  %116 = getelementptr inbounds %class.TraceParser, ptr %32, i32 0, i32 0
  call void @_ZNSt6vectorIN4Data10MemCommandESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %116) #6
  invoke void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEE5closeEv(ptr noundef nonnull align 8 dereferenceable(256) %19)
          to label %117 unwind label %96

117:                                              ; preds = %115
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %26) #6
  call void @_ZN4Data12cmdSchedulerD2Ev(ptr noundef nonnull align 8 dereferenceable(1080) %25) #6
  call void @llvm.lifetime.end.p0(i64 1080, ptr %25) #6
  br label %176

118:                                              ; preds = %109, %96
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %26) #6
  br label %119

119:                                              ; preds = %118, %92
  call void @_ZN4Data12cmdSchedulerD2Ev(ptr noundef nonnull align 8 dereferenceable(1080) %25) #6
  br label %120

120:                                              ; preds = %119, %88
  call void @llvm.lifetime.end.p0(i64 1080, ptr %25) #6
  br label %185

121:                                              ; preds = %36
  call void @llvm.lifetime.start.p0(i64 32, ptr %29) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %29) #6
  br label %122

122:                                              ; preds = %166, %121
  %123 = load ptr, ptr %12, align 8, !tbaa !5
  %124 = 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) %123, ptr noundef nonnull align 8 dereferenceable(32) %29)
          to label %125 unwind label %154

125:                                              ; preds = %122
  %126 = load ptr, ptr %124, align 8, !tbaa !13
  %127 = getelementptr i8, ptr %126, i64 -24
  %128 = load i64, ptr %127, align 8
  %129 = getelementptr inbounds i8, ptr %124, i64 %128
  %130 = invoke noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264) %129)
          to label %131 unwind label %154

131:                                              ; preds = %125
  br i1 %130, label %132, label %168

132:                                              ; preds = %131
  call void @llvm.lifetime.start.p0(i64 16, ptr %30) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %31, ptr noundef nonnull align 8 dereferenceable(32) %29)
          to label %133 unwind label %158

133:                                              ; preds = %132
  %134 = invoke { i64, i64 } @_ZN11TraceParser9parseLineENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(1416) %32, ptr noundef %31)
          to label %135 unwind label %162

135:                                              ; preds = %133
  %136 = getelementptr inbounds { i64, i64 }, ptr %30, i32 0, i32 0
  %137 = extractvalue { i64, i64 } %134, 0
  store i64 %137, ptr %136, align 8
  %138 = getelementptr inbounds { i64, i64 }, ptr %30, i32 0, i32 1
  %139 = extractvalue { i64, i64 } %134, 1
  store i64 %139, ptr %138, align 8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %31) #6
  %140 = getelementptr inbounds %class.TraceParser, ptr %32, i32 0, i32 0
  invoke void @_ZNSt6vectorIN4Data10MemCommandESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %140, ptr noundef nonnull align 8 dereferenceable(16) %30)
          to label %141 unwind label %158

141:                                              ; preds = %135
  %142 = load i32, ptr %23, align 4, !tbaa !9
  %143 = add nsw i32 %142, 1
  store i32 %143, ptr %23, align 4, !tbaa !9
  %144 = load i32, ptr %23, align 4, !tbaa !9
  %145 = load i32, ptr %13, align 4, !tbaa !9
  %146 = icmp eq i32 %144, %145
  br i1 %146, label %147, label %166

147:                                              ; preds = %141
  %148 = getelementptr inbounds %class.TraceParser, ptr %32, i32 0, i32 1
  %149 = getelementptr inbounds %class.TraceParser, ptr %32, i32 0, i32 0
  %150 = load i8, ptr %24, align 1, !tbaa !11, !range !15, !noundef !16
  %151 = trunc i8 %150 to i1
  invoke void @_ZN4Data15CommandAnalysis11getCommandsERSt6vectorINS_10MemCommandESaIS2_EEbl(ptr noundef nonnull align 8 dereferenceable(1392) %148, ptr noundef nonnull align 8 dereferenceable(24) %149, i1 noundef zeroext %151, i64 noundef 0)
          to label %152 unwind label %158

152:                                              ; preds = %147
  store i32 0, ptr %23, align 4, !tbaa !9
  %153 = getelementptr inbounds %class.TraceParser, ptr %32, i32 0, i32 0
  call void @_ZNSt6vectorIN4Data10MemCommandESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %153) #6
  br label %166

154:                                              ; preds = %168, %125, %122
  %155 = landingpad { ptr, i32 }
          cleanup
  %156 = extractvalue { ptr, i32 } %155, 0
  store ptr %156, ptr %21, align 8
  %157 = extractvalue { ptr, i32 } %155, 1
  store i32 %157, ptr %22, align 4
  br label %175

158:                                              ; preds = %147, %135, %132
  %159 = landingpad { ptr, i32 }
          cleanup
  %160 = extractvalue { ptr, i32 } %159, 0
  store ptr %160, ptr %21, align 8
  %161 = extractvalue { ptr, i32 } %159, 1
  store i32 %161, ptr %22, align 4
  br label %167

162:                                              ; preds = %133
  %163 = landingpad { ptr, i32 }
          cleanup
  %164 = extractvalue { ptr, i32 } %163, 0
  store ptr %164, ptr %21, align 8
  %165 = extractvalue { ptr, i32 } %163, 1
  store i32 %165, ptr %22, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %31) #6
  br label %167

166:                                              ; preds = %152, %141
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #6
  br label %122, !llvm.loop !19

167:                                              ; preds = %162, %158
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #6
  br label %175

168:                                              ; preds = %131
  store i8 1, ptr %24, align 1, !tbaa !11
  %169 = getelementptr inbounds %class.TraceParser, ptr %32, i32 0, i32 1
  %170 = getelementptr inbounds %class.TraceParser, ptr %32, i32 0, i32 0
  %171 = load i8, ptr %24, align 1, !tbaa !11, !range !15, !noundef !16
  %172 = trunc i8 %171 to i1
  invoke void @_ZN4Data15CommandAnalysis11getCommandsERSt6vectorINS_10MemCommandESaIS2_EEbl(ptr noundef nonnull align 8 dereferenceable(1392) %169, ptr noundef nonnull align 8 dereferenceable(24) %170, i1 noundef zeroext %172, i64 noundef 0)
          to label %173 unwind label %154

173:                                              ; preds = %168
  %174 = getelementptr inbounds %class.TraceParser, ptr %32, i32 0, i32 0
  call void @_ZNSt6vectorIN4Data10MemCommandESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %174) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %29) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %29) #6
  br label %176

175:                                              ; preds = %167, %154
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %29) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %29) #6
  br label %185

176:                                              ; preds = %173, %117
  %177 = getelementptr inbounds %class.TraceParser, ptr %32, i32 0, i32 1
  invoke void @_ZN4Data15CommandAnalysis5clearEv(ptr noundef nonnull align 8 dereferenceable(1392) %177)
          to label %178 unwind label %181

178:                                              ; preds = %176
  %179 = load ptr, ptr %12, align 8, !tbaa !5
  invoke void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEE5closeEv(ptr noundef nonnull align 8 dereferenceable(256) %179)
          to label %180 unwind label %181

180:                                              ; preds = %178
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256) %19) #6
  call void @llvm.lifetime.end.p0(i64 520, ptr %19) #6
  ret void

181:                                              ; preds = %178, %176
  %182 = landingpad { ptr, i32 }
          cleanup
  %183 = extractvalue { ptr, i32 } %182, 0
  store ptr %183, ptr %21, align 8
  %184 = extractvalue { ptr, i32 } %182, 1
  store i32 %184, ptr %22, align 4
  br label %185

185:                                              ; preds = %181, %175, %120
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  br label %186

186:                                              ; preds = %185, %87
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256) %19) #6
  call void @llvm.lifetime.end.p0(i64 520, ptr %19) #6
  br label %187

187:                                              ; preds = %186
  %188 = load ptr, ptr %21, align 8
  %189 = load i32, ptr %22, align 4
  %190 = insertvalue { ptr, i32 } poison, ptr %188, 0
  %191 = insertvalue { ptr, i32 } %190, i32 %189, 1
  resume { ptr, i32 } %191
}

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN4Data12cmdSchedulerC2Ev(ptr noundef nonnull align 8 dereferenceable(1080)) unnamed_addr #4 align 2

declare void @_ZN4Data12cmdScheduler16transTranslationERKNS_19MemorySpecificationERSt14basic_ifstreamIcSt11char_traitsIcEEiiii(ptr noundef nonnull align 8 dereferenceable(1080), ptr noundef nonnull align 8 dereferenceable(736), ptr noundef nonnull align 8 dereferenceable(256), i32 noundef, i32 noundef, i32 noundef, i32 noundef) #0

; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(256), ptr noundef, i32 noundef) #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)) #4

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

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

declare void @_ZN4Data15CommandAnalysis11getCommandsERSt6vectorINS_10MemCommandESaIS2_EEbl(ptr noundef nonnull align 8 dereferenceable(1392), ptr noundef nonnull align 8 dereferenceable(24), i1 noundef zeroext, i64 noundef) #0

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

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

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

declare void @_ZN4Data15CommandAnalysis5clearEv(ptr noundef nonnull align 8 dereferenceable(1392)) #0

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

attributes #0 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"vtable pointer", !8, i64 0}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}


; 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_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" }
%"class.std::locale" = type { ptr }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.std::__basic_file" = type <{ ptr, i8, [7 x i8] }>
%struct.__mbstate_t = type { i32, %union.anon.18 }
%union.anon.18 = type { i32 }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.Data::CommandAnalysis" = type { %"class.std::vector.0", %"class.std::vector.0", %"class.std::vector.0", %"class.std::vector.0", i64, %"class.std::vector.0", i64, i64, %"class.std::vector.0", i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, %"class.Data::MemorySpecification", i64, %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector.13", %"class.std::vector.13", %"class.std::vector.0", i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i32, i64, i64, %"class.std::vector.0", i64 }
%"class.Data::MemorySpecification" = type { ptr, %"class.std::__cxx11::basic_string", %"class.Data::MemoryType", [4 x i8], %"class.Data::MemArchitectureSpec", %"class.Data::MemTimingSpec", %"class.Data::MemPowerSpec", %"class.Data::Parametrisable" }
%"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.Data::MemoryType" = type { i32 }
%"class.Data::MemArchitectureSpec" = type <{ ptr, i64, i64, i64, i64, i64, i64, i64, i64, i8, i8, i8, [5 x i8], %"class.Data::Parametrisable" }>
%"class.Data::MemTimingSpec" = type { ptr, double, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, double, %"class.Data::Parametrisable" }
%"class.Data::MemPowerSpec" = type { ptr, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, %"class.Data::Parametrisable" }
%"class.Data::Parametrisable" = type { ptr, %"class.std::vector.8" }
%"class.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = type { %"struct.std::_Vector_base<Data::Parameter, std::allocator<Data::Parameter>>::_Vector_impl" }
%"struct.std::_Vector_base<Data::Parameter, std::allocator<Data::Parameter>>::_Vector_impl" = type { %"struct.std::_Vector_base<Data::Parameter, std::allocator<Data::Parameter>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Data::Parameter, std::allocator<Data::Parameter>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<Data::MemCommand, std::allocator<Data::MemCommand>>::_Vector_impl" }
%"struct.std::_Vector_base<Data::MemCommand, std::allocator<Data::MemCommand>>::_Vector_impl" = type { %"struct.std::_Vector_base<Data::MemCommand, std::allocator<Data::MemCommand>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Data::MemCommand, std::allocator<Data::MemCommand>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.13" = type { %"struct.std::_Vector_base.14" }
%"struct.std::_Vector_base.14" = type { %"struct.std::_Vector_base<Data::CommandAnalysis::BankState, std::allocator<Data::CommandAnalysis::BankState>>::_Vector_impl" }
%"struct.std::_Vector_base<Data::CommandAnalysis::BankState, std::allocator<Data::CommandAnalysis::BankState>>::_Vector_impl" = type { %"struct.std::_Vector_base<Data::CommandAnalysis::BankState, std::allocator<Data::CommandAnalysis::BankState>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Data::CommandAnalysis::BankState, std::allocator<Data::CommandAnalysis::BankState>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<long, std::allocator<long>>::_Vector_impl" }
%"struct.std::_Vector_base<long, std::allocator<long>>::_Vector_impl" = type { %"struct.std::_Vector_base<long, std::allocator<long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<long, std::allocator<long>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.Data::cmdScheduler" = type { %"class.std::vector.19", %"class.Data::cmdScheduler::commandItem", %"class.Data::cmdScheduler::commandItem", %"class.Data::cmdScheduler::commandItem", %"class.std::vector.24", %"class.std::vector.24", %"class.std::vector.29", %"class.std::vector.24", %"class.std::vector.24", i32, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i8, i64, %"class.std::basic_ofstream" }
%"class.std::vector.19" = type { %"struct.std::_Vector_base.20" }
%"struct.std::_Vector_base.20" = type { %"struct.std::_Vector_base<Data::cmdScheduler::trans, std::allocator<Data::cmdScheduler::trans>>::_Vector_impl" }
%"struct.std::_Vector_base<Data::cmdScheduler::trans, std::allocator<Data::cmdScheduler::trans>>::_Vector_impl" = type { %"struct.std::_Vector_base<Data::cmdScheduler::trans, std::allocator<Data::cmdScheduler::trans>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Data::cmdScheduler::trans, std::allocator<Data::cmdScheduler::trans>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.Data::cmdScheduler::commandItem" = type { i64, i64, i64, %"class.std::__cxx11::basic_string", %"class.Data::cmdScheduler::physicalAddr" }
%"class.Data::cmdScheduler::physicalAddr" = type { i64, i64, i64, i64 }
%"class.std::vector.29" = type { %"struct.std::_Vector_base.30" }
%"struct.std::_Vector_base.30" = type { %"struct.std::_Vector_base<std::vector<Data::cmdScheduler::commandItem>, std::allocator<std::vector<Data::cmdScheduler::commandItem>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<Data::cmdScheduler::commandItem>, std::allocator<std::vector<Data::cmdScheduler::commandItem>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<Data::cmdScheduler::commandItem>, std::allocator<std::vector<Data::cmdScheduler::commandItem>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<Data::cmdScheduler::commandItem>, std::allocator<std::vector<Data::cmdScheduler::commandItem>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.24" = type { %"struct.std::_Vector_base.25" }
%"struct.std::_Vector_base.25" = type { %"struct.std::_Vector_base<Data::cmdScheduler::commandItem, std::allocator<Data::cmdScheduler::commandItem>>::_Vector_impl" }
%"struct.std::_Vector_base<Data::cmdScheduler::commandItem, std::allocator<Data::cmdScheduler::commandItem>>::_Vector_impl" = type { %"struct.std::_Vector_base<Data::cmdScheduler::commandItem, std::allocator<Data::cmdScheduler::commandItem>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Data::cmdScheduler::commandItem, std::allocator<Data::cmdScheduler::commandItem>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::basic_ofstream" = type { %"class.std::basic_ostream.base", %"class.std::basic_filebuf", %"class.std::basic_ios" }
%"class.std::basic_ostream.base" = type { ptr }
%"class.Data::MemCommand" = type { i32, i32, i64 }

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

declare void @_ZN4Data15CommandAnalysisC1ERKNS_19MemorySpecificationE(ptr noundef nonnull align 8 dereferenceable(1392), ptr noundef nonnull align 8 dereferenceable(736)) unnamed_addr #0

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local { i64, i64 } @_ZN11TraceParser9parseLineENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(1416), ptr noundef) local_unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress uwtable
declare noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264)) local_unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11TraceParser9parseFileEN4Data19MemorySpecificationERSt14basic_ifstreamIcSt11char_traitsIcEEiiiiii(ptr noundef nonnull align 8 dereferenceable(1416) %0, ptr noundef %1, ptr noundef nonnull align 8 dereferenceable(256) %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6, i32 noundef %7, i32 noundef %8) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %10 = alloca %"class.std::basic_ifstream", align 8
  %11 = alloca %"class.Data::CommandAnalysis", align 8
  %12 = alloca %"class.Data::cmdScheduler", align 8
  %13 = alloca %"class.std::__cxx11::basic_string", align 8
  %14 = alloca %"class.Data::MemCommand", align 8
  %15 = alloca %"class.std::__cxx11::basic_string", align 8
  %16 = alloca %"class.std::__cxx11::basic_string", align 8
  %17 = alloca %"class.Data::MemCommand", align 8
  %18 = alloca %"class.std::__cxx11::basic_string", align 8
  call void @llvm.lifetime.start.p0(i64 520, ptr nonnull %10) #6
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(256) %10)
  call void @llvm.lifetime.start.p0(i64 1392, ptr nonnull %11) #6
  invoke void @_ZN4Data15CommandAnalysisC1ERKNS_19MemorySpecificationE(ptr noundef nonnull align 8 dereferenceable(1392) %11, ptr noundef nonnull align 8 dereferenceable(736) %1)
          to label %19 unwind label %48

19:                                               ; preds = %9
  %20 = getelementptr inbounds i8, ptr %0, i64 24
  %21 = invoke noundef nonnull align 8 dereferenceable(1392) ptr @_ZN4Data15CommandAnalysisaSEOS0_(ptr noundef nonnull align 8 dereferenceable(1392) %20, ptr noundef nonnull align 8 dereferenceable(1392) %11)
          to label %22 unwind label %50

22:                                               ; preds = %19
  call void @_ZN4Data15CommandAnalysisD2Ev(ptr noundef nonnull align 8 dereferenceable(1392) %11) #6
  call void @llvm.lifetime.end.p0(i64 1392, ptr nonnull %11) #6
  %.not = icmp eq i32 %8, 0
  br i1 %.not, label %69, label %23

23:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 1080, ptr nonnull %12) #6
  invoke void @_ZN4Data12cmdSchedulerC2Ev(ptr noundef nonnull align 8 dereferenceable(1080) %12)
          to label %24 unwind label %53

24:                                               ; preds = %23
  invoke void @_ZN4Data12cmdScheduler16transTranslationERKNS_19MemorySpecificationERSt14basic_ifstreamIcSt11char_traitsIcEEiiii(ptr noundef nonnull align 8 dereferenceable(1080) %12, ptr noundef nonnull align 8 dereferenceable(736) %1, ptr noundef nonnull align 8 dereferenceable(256) %2, i32 noundef %4, i32 noundef %5, i32 noundef %6, i32 noundef %7)
          to label %25 unwind label %55

25:                                               ; preds = %24
  invoke void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(256) %10, ptr noundef nonnull @.str, i32 noundef 8)
          to label %26 unwind label %55

26:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %13) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #6
  %27 = getelementptr inbounds i8, ptr %14, i64 8
  br label %28

28:                                               ; preds = %61, %26
  %.0 = phi i32 [ 0, %26 ], [ %.1, %61 ]
  %29 = 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) %10, ptr noundef nonnull align 8 dereferenceable(32) %13)
          to label %30 unwind label %.loopexit46

30:                                               ; preds = %28
  %31 = load ptr, ptr %29, align 8, !tbaa !5
  %32 = getelementptr i8, ptr %31, i64 -24
  %33 = load i64, ptr %32, align 8
  %34 = getelementptr inbounds i8, ptr %29, i64 %33
  %35 = invoke noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264) %34)
          to label %36 unwind label %.loopexit46

36:                                               ; preds = %30
  br i1 %35, label %37, label %63

37:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef nonnull align 8 dereferenceable(32) %13)
          to label %38 unwind label %57

38:                                               ; preds = %37
  %39 = invoke { i64, i64 } @_ZN11TraceParser9parseLineENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(1416) %0, ptr noundef nonnull %15)
          to label %40 unwind label %59

40:                                               ; preds = %38
  %41 = extractvalue { i64, i64 } %39, 0
  store i64 %41, ptr %14, align 8
  %42 = extractvalue { i64, i64 } %39, 1
  store i64 %42, ptr %27, align 8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #6
  invoke void @_ZNSt6vectorIN4Data10MemCommandESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(16) %14)
          to label %43 unwind label %57

43:                                               ; preds = %40
  %44 = add nsw i32 %.0, 1
  %45 = icmp eq i32 %44, %3
  br i1 %45, label %46, label %61

46:                                               ; preds = %43
  invoke void @_ZN4Data15CommandAnalysis11getCommandsERSt6vectorINS_10MemCommandESaIS2_EEbl(ptr noundef nonnull align 8 dereferenceable(1392) %20, ptr noundef nonnull align 8 dereferenceable(24) %0, i1 noundef zeroext false, i64 noundef 0)
          to label %47 unwind label %57

47:                                               ; preds = %46
  call void @_ZNSt6vectorIN4Data10MemCommandESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  br label %61

48:                                               ; preds = %9
  %49 = landingpad { ptr, i32 }
          cleanup
  br label %52

50:                                               ; preds = %19
  %51 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4Data15CommandAnalysisD2Ev(ptr noundef nonnull align 8 dereferenceable(1392) %11) #6
  br label %52

52:                                               ; preds = %50, %48
  %.pn = phi { ptr, i32 } [ %51, %50 ], [ %49, %48 ]
  call void @llvm.lifetime.end.p0(i64 1392, ptr nonnull %11) #6
  br label %105

53:                                               ; preds = %23
  %54 = landingpad { ptr, i32 }
          cleanup
  br label %68

55:                                               ; preds = %25, %24
  %56 = landingpad { ptr, i32 }
          cleanup
  br label %67

.loopexit46:                                      ; preds = %28, %30
  %lpad.loopexit48 = landingpad { ptr, i32 }
          cleanup
  br label %66

.loopexit.split-lp47:                             ; preds = %63, %64
  %lpad.loopexit.split-lp49 = landingpad { ptr, i32 }
          cleanup
  br label %66

57:                                               ; preds = %46, %40, %37
  %58 = landingpad { ptr, i32 }
          cleanup
  br label %62

59:                                               ; preds = %38
  %60 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #6
  br label %62

61:                                               ; preds = %47, %43
  %.1 = phi i32 [ 0, %47 ], [ %44, %43 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #6
  br label %28, !llvm.loop !8

62:                                               ; preds = %59, %57
  %.pn39 = phi { ptr, i32 } [ %58, %57 ], [ %60, %59 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #6
  br label %66

63:                                               ; preds = %36
  invoke void @_ZN4Data15CommandAnalysis11getCommandsERSt6vectorINS_10MemCommandESaIS2_EEbl(ptr noundef nonnull align 8 dereferenceable(1392) %20, ptr noundef nonnull align 8 dereferenceable(24) %0, i1 noundef zeroext true, i64 noundef 0)
          to label %64 unwind label %.loopexit.split-lp47

64:                                               ; preds = %63
  call void @_ZNSt6vectorIN4Data10MemCommandESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  invoke void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEE5closeEv(ptr noundef nonnull align 8 dereferenceable(256) %10)
          to label %65 unwind label %.loopexit.split-lp47

65:                                               ; preds = %64
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #6
  call void @_ZN4Data12cmdSchedulerD2Ev(ptr noundef nonnull align 8 dereferenceable(1080) %12) #6
  call void @llvm.lifetime.end.p0(i64 1080, ptr nonnull %12) #6
  br label %100

66:                                               ; preds = %.loopexit46, %.loopexit.split-lp47, %62
  %.pn39.pn = phi { ptr, i32 } [ %.pn39, %62 ], [ %lpad.loopexit48, %.loopexit46 ], [ %lpad.loopexit.split-lp49, %.loopexit.split-lp47 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #6
  br label %67

67:                                               ; preds = %66, %55
  %.pn39.pn.pn = phi { ptr, i32 } [ %.pn39.pn, %66 ], [ %56, %55 ]
  call void @_ZN4Data12cmdSchedulerD2Ev(ptr noundef nonnull align 8 dereferenceable(1080) %12) #6
  br label %68

68:                                               ; preds = %67, %53
  %.pn39.pn.pn.pn = phi { ptr, i32 } [ %.pn39.pn.pn, %67 ], [ %54, %53 ]
  call void @llvm.lifetime.end.p0(i64 1080, ptr nonnull %12) #6
  br label %105

69:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %16) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #6
  %70 = getelementptr inbounds i8, ptr %17, i64 8
  br label %71

71:                                               ; preds = %95, %69
  %.2 = phi i32 [ 0, %69 ], [ %.3, %95 ]
  %72 = 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) %2, ptr noundef nonnull align 8 dereferenceable(32) %16)
          to label %73 unwind label %.loopexit

73:                                               ; preds = %71
  %74 = load ptr, ptr %72, align 8, !tbaa !5
  %75 = getelementptr i8, ptr %74, i64 -24
  %76 = load i64, ptr %75, align 8
  %77 = getelementptr inbounds i8, ptr %72, i64 %76
  %78 = invoke noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264) %77)
          to label %79 unwind label %.loopexit

79:                                               ; preds = %73
  br i1 %78, label %80, label %97

80:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %17) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %18, ptr noundef nonnull align 8 dereferenceable(32) %16)
          to label %81 unwind label %91

81:                                               ; preds = %80
  %82 = invoke { i64, i64 } @_ZN11TraceParser9parseLineENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(1416) %0, ptr noundef nonnull %18)
          to label %83 unwind label %93

83:                                               ; preds = %81
  %84 = extractvalue { i64, i64 } %82, 0
  store i64 %84, ptr %17, align 8
  %85 = extractvalue { i64, i64 } %82, 1
  store i64 %85, ptr %70, align 8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #6
  invoke void @_ZNSt6vectorIN4Data10MemCommandESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(16) %17)
          to label %86 unwind label %91

86:                                               ; preds = %83
  %87 = add nsw i32 %.2, 1
  %88 = icmp eq i32 %87, %3
  br i1 %88, label %89, label %95

89:                                               ; preds = %86
  invoke void @_ZN4Data15CommandAnalysis11getCommandsERSt6vectorINS_10MemCommandESaIS2_EEbl(ptr noundef nonnull align 8 dereferenceable(1392) %20, ptr noundef nonnull align 8 dereferenceable(24) %0, i1 noundef zeroext false, i64 noundef 0)
          to label %90 unwind label %91

90:                                               ; preds = %89
  call void @_ZNSt6vectorIN4Data10MemCommandESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  br label %95

.loopexit:                                        ; preds = %71, %73
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %99

.loopexit.split-lp:                               ; preds = %97
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %99

91:                                               ; preds = %89, %83, %80
  %92 = landingpad { ptr, i32 }
          cleanup
  br label %96

93:                                               ; preds = %81
  %94 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #6
  br label %96

95:                                               ; preds = %90, %86
  %.3 = phi i32 [ 0, %90 ], [ %87, %86 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #6
  br label %71, !llvm.loop !10

96:                                               ; preds = %93, %91
  %.pn36 = phi { ptr, i32 } [ %92, %91 ], [ %94, %93 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #6
  br label %99

97:                                               ; preds = %79
  invoke void @_ZN4Data15CommandAnalysis11getCommandsERSt6vectorINS_10MemCommandESaIS2_EEbl(ptr noundef nonnull align 8 dereferenceable(1392) %20, ptr noundef nonnull align 8 dereferenceable(24) %0, i1 noundef zeroext true, i64 noundef 0)
          to label %98 unwind label %.loopexit.split-lp

98:                                               ; preds = %97
  call void @_ZNSt6vectorIN4Data10MemCommandESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %16) #6
  br label %100

99:                                               ; preds = %.loopexit, %.loopexit.split-lp, %96
  %.pn36.pn = phi { ptr, i32 } [ %.pn36, %96 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %16) #6
  br label %105

100:                                              ; preds = %98, %65
  invoke void @_ZN4Data15CommandAnalysis5clearEv(ptr noundef nonnull align 8 dereferenceable(1392) %20)
          to label %101 unwind label %103

101:                                              ; preds = %100
  invoke void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEE5closeEv(ptr noundef nonnull align 8 dereferenceable(256) %2)
          to label %102 unwind label %103

102:                                              ; preds = %101
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256) %10) #6
  call void @llvm.lifetime.end.p0(i64 520, ptr nonnull %10) #6
  ret void

103:                                              ; preds = %101, %100
  %104 = landingpad { ptr, i32 }
          cleanup
  br label %105

105:                                              ; preds = %68, %99, %103, %52
  %.pn39.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn, %52 ], [ %.pn39.pn.pn.pn, %68 ], [ %104, %103 ], [ %.pn36.pn, %99 ]
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256) %10) #6
  call void @llvm.lifetime.end.p0(i64 520, ptr nonnull %10) #6
  resume { ptr, i32 } %.pn39.pn.pn.pn.pn.pn
}

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN4Data12cmdSchedulerC2Ev(ptr noundef nonnull align 8 dereferenceable(1080)) unnamed_addr #4 align 2

declare void @_ZN4Data12cmdScheduler16transTranslationERKNS_19MemorySpecificationERSt14basic_ifstreamIcSt11char_traitsIcEEiiii(ptr noundef nonnull align 8 dereferenceable(1080), ptr noundef nonnull align 8 dereferenceable(736), ptr noundef nonnull align 8 dereferenceable(256), i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(256), ptr noundef, i32 noundef) local_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 #4

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

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

declare void @_ZN4Data15CommandAnalysis11getCommandsERSt6vectorINS_10MemCommandESaIS2_EEbl(ptr noundef nonnull align 8 dereferenceable(1392), ptr noundef nonnull align 8 dereferenceable(24), i1 noundef zeroext, i64 noundef) local_unnamed_addr #0

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

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

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

declare void @_ZN4Data15CommandAnalysis5clearEv(ptr noundef nonnull align 8 dereferenceable(1392)) local_unnamed_addr #0

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

attributes #0 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = distinct !{!8, !9}
!9 = !{!"llvm.loop.mustprogress"}
!10 = distinct !{!10, !9}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,LoopSimplifyPass,SROAPass,SimplifyCFGPass