; LLVM IR from gem5/gem5 :: ext/drampower/src/CmdHandlers.ll (ZN4Data15CommandAnalysis9handleRefEjl)

; 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::__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::allocator.0" = type { i8 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.18" = type { ptr }
%"class.Data::CommandAnalysis" = type { %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector", i64, %"class.std::vector", i64, i64, %"class.std::vector", 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.8", %"class.std::vector.8", %"class.std::vector.8", %"class.std::vector.13", %"class.std::vector.13", %"class.std::vector", i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i32, i64, i64, %"class.std::vector", 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.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.3" }
%"class.std::vector.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = 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.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = 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" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = 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 }

@.str = external hidden unnamed_addr constant [41 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [71 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [35 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_Z10zero_guardlPKc(i64 noundef, ptr noundef) #0

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

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

declare void @_ZN4Data15CommandAnalysis25printWarningIfPoweredDownERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEilj(ptr noundef nonnull align 8 dereferenceable(1392), ptr noundef nonnull align 8 dereferenceable(32), i32 noundef, i64 noundef, i32 noundef) #2

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

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

declare i32 @__gxx_personality_v0(...)

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

declare void @_ZN4Data15CommandAnalysis15idle_pre_updateEll(ptr noundef nonnull align 8 dereferenceable(1392), i64 noundef, i64 noundef) #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4Data15CommandAnalysis9handleRefEjl(ptr noundef nonnull align 8 dereferenceable(1392) %0, i32 noundef %1, i64 noundef %2) #0 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i64, align 8
  %7 = alloca %"class.std::__cxx11::basic_string", align 8
  %8 = alloca %"class.std::allocator.0", align 1
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca %"class.std::__cxx11::basic_string", align 8
  %12 = alloca %"class.std::allocator.0", align 1
  %13 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %14 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %15 = alloca ptr, align 8
  %16 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %17 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca %"class.__gnu_cxx::__normal_iterator.18", align 8
  %21 = alloca %"class.__gnu_cxx::__normal_iterator.18", align 8
  %22 = alloca ptr, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !9
  store i64 %2, ptr %6, align 8, !tbaa !11
  %23 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef @.str, ptr noundef nonnull align 1 dereferenceable(1) %8)
          to label %24 unwind label %95

24:                                               ; preds = %3
  %25 = load i64, ptr %6, align 8, !tbaa !11
  %26 = load i32, ptr %5, align 4, !tbaa !9
  invoke void @_ZN4Data15CommandAnalysis25printWarningIfPoweredDownERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEilj(ptr noundef nonnull align 8 dereferenceable(1392) %23, ptr noundef nonnull align 8 dereferenceable(32) %7, i32 noundef 4, i64 noundef %25, i32 noundef %26)
          to label %27 unwind label %99

27:                                               ; preds = %24
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %11, ptr noundef @.str.4, ptr noundef nonnull align 1 dereferenceable(1) %12)
          to label %28 unwind label %104

28:                                               ; preds = %27
  %29 = load i64, ptr %6, align 8, !tbaa !11
  %30 = load i32, ptr %5, align 4, !tbaa !9
  invoke void @_ZN4Data15CommandAnalysis20printWarningIfActiveERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEilj(ptr noundef nonnull align 8 dereferenceable(1392) %23, ptr noundef nonnull align 8 dereferenceable(32) %11, i32 noundef 4, i64 noundef %29, i32 noundef %30)
          to label %31 unwind label %108

31:                                               ; preds = %28
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #6
  %32 = getelementptr inbounds %"class.Data::CommandAnalysis", ptr %23, i32 0, i32 4
  %33 = load i64, ptr %32, align 8, !tbaa !13
  %34 = add nsw i64 %33, 1
  store i64 %34, ptr %32, align 8, !tbaa !13
  %35 = load i64, ptr %6, align 8, !tbaa !11
  %36 = getelementptr inbounds %"class.Data::CommandAnalysis", ptr %23, i32 0, i32 39
  %37 = load i64, ptr %36, align 8, !tbaa !37
  call void @_ZN4Data15CommandAnalysis15idle_pre_updateEll(ptr noundef nonnull align 8 dereferenceable(1392) %23, i64 noundef %35, i64 noundef %37)
  %38 = load i64, ptr %6, align 8, !tbaa !11
  %39 = getelementptr inbounds %"class.Data::CommandAnalysis", ptr %23, i32 0, i32 50
  store i64 %38, ptr %39, align 8, !tbaa !38
  %40 = getelementptr inbounds %"class.Data::CommandAnalysis", ptr %23, i32 0, i32 51
  %41 = call ptr @_ZNSt6vectorIlSaIlEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %40) #6
  %42 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %13, i32 0, i32 0
  store ptr %41, ptr %42, align 8
  %43 = getelementptr inbounds %"class.Data::CommandAnalysis", ptr %23, i32 0, i32 51
  %44 = call ptr @_ZNSt6vectorIlSaIlEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %43) #6
  %45 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %14, i32 0, i32 0
  store ptr %44, ptr %45, align 8
  %46 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %13, i32 0, i32 0
  %47 = load ptr, ptr %46, align 8
  %48 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %14, i32 0, i32 0
  %49 = load ptr, ptr %48, align 8
  call void @_ZSt4fillIN9__gnu_cxx17__normal_iteratorIPlSt6vectorIlSaIlEEEElEvT_S7_RKT0_(ptr %47, ptr %49, ptr noundef nonnull align 8 dereferenceable(8) %6)
  %50 = load i64, ptr %6, align 8, !tbaa !11
  %51 = getelementptr inbounds %"class.Data::CommandAnalysis", ptr %23, i32 0, i32 52
  %52 = load i64, ptr %51, align 8, !tbaa !39
  %53 = sub nsw i64 %50, %52
  %54 = call noundef i64 @_Z10zero_guardlPKc(i64 noundef %53, ptr noundef @.str.5)
  %55 = getelementptr inbounds %"class.Data::CommandAnalysis", ptr %23, i32 0, i32 6
  %56 = load i64, ptr %55, align 8, !tbaa !40
  %57 = add nsw i64 %56, %54
  store i64 %57, ptr %55, align 8, !tbaa !40
  %58 = load i64, ptr %6, align 8, !tbaa !11
  %59 = getelementptr inbounds %"class.Data::CommandAnalysis", ptr %23, i32 0, i32 30
  %60 = getelementptr inbounds %"class.Data::MemorySpecification", ptr %59, i32 0, i32 5
  %61 = getelementptr inbounds %"class.Data::MemTimingSpec", ptr %60, i32 0, i32 18
  %62 = load i64, ptr %61, align 8, !tbaa !41
  %63 = add nsw i64 %58, %62
  %64 = getelementptr inbounds %"class.Data::CommandAnalysis", ptr %23, i32 0, i32 30
  %65 = getelementptr inbounds %"class.Data::MemorySpecification", ptr %64, i32 0, i32 5
  %66 = getelementptr inbounds %"class.Data::MemTimingSpec", ptr %65, i32 0, i32 17
  %67 = load i64, ptr %66, align 8, !tbaa !42
  %68 = sub nsw i64 %63, %67
  %69 = getelementptr inbounds %"class.Data::CommandAnalysis", ptr %23, i32 0, i32 52
  store i64 %68, ptr %69, align 8, !tbaa !39
  %70 = getelementptr inbounds %"class.Data::CommandAnalysis", ptr %23, i32 0, i32 52
  %71 = load i64, ptr %70, align 8, !tbaa !39
  %72 = getelementptr inbounds %"class.Data::CommandAnalysis", ptr %23, i32 0, i32 39
  store i64 %71, ptr %72, align 8, !tbaa !37
  %73 = getelementptr inbounds %"class.Data::CommandAnalysis", ptr %23, i32 0, i32 30
  %74 = getelementptr inbounds %"class.Data::MemorySpecification", ptr %73, i32 0, i32 5
  %75 = getelementptr inbounds %"class.Data::MemTimingSpec", ptr %74, i32 0, i32 18
  %76 = load i64, ptr %75, align 8, !tbaa !41
  %77 = getelementptr inbounds %"class.Data::CommandAnalysis", ptr %23, i32 0, i32 30
  %78 = getelementptr inbounds %"class.Data::MemorySpecification", ptr %77, i32 0, i32 5
  %79 = getelementptr inbounds %"class.Data::MemTimingSpec", ptr %78, i32 0, i32 17
  %80 = load i64, ptr %79, align 8, !tbaa !42
  %81 = sub nsw i64 %76, %80
  %82 = getelementptr inbounds %"class.Data::CommandAnalysis", ptr %23, i32 0, i32 7
  %83 = load i64, ptr %82, align 8, !tbaa !43
  %84 = add nsw i64 %83, %81
  store i64 %84, ptr %82, align 8, !tbaa !43
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %85 = getelementptr inbounds %"class.Data::CommandAnalysis", ptr %23, i32 0, i32 8
  store ptr %85, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  %86 = load ptr, ptr %15, align 8, !tbaa !5
  %87 = call ptr @_ZNSt6vectorIlSaIlEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %86) #6
  %88 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %16, i32 0, i32 0
  store ptr %87, ptr %88, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %89 = load ptr, ptr %15, align 8, !tbaa !5
  %90 = call ptr @_ZNSt6vectorIlSaIlEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %89) #6
  %91 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %17, i32 0, i32 0
  store ptr %90, ptr %91, align 8
  br label %92

92:                                               ; preds = %127, %31
  %93 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPlSt6vectorIlSaIlEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %17) #6
  br i1 %93, label %113, label %94

94:                                               ; preds = %92
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  br label %129

95:                                               ; preds = %3
  %96 = landingpad { ptr, i32 }
          cleanup
  %97 = extractvalue { ptr, i32 } %96, 0
  store ptr %97, ptr %9, align 8
  %98 = extractvalue { ptr, i32 } %96, 1
  store i32 %98, ptr %10, align 4
  br label %103

99:                                               ; preds = %24
  %100 = landingpad { ptr, i32 }
          cleanup
  %101 = extractvalue { ptr, i32 } %100, 0
  store ptr %101, ptr %9, align 8
  %102 = extractvalue { ptr, i32 } %100, 1
  store i32 %102, ptr %10, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #6
  br label %103

103:                                              ; preds = %99, %95
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %7) #6
  br label %146

104:                                              ; preds = %27
  %105 = landingpad { ptr, i32 }
          cleanup
  %106 = extractvalue { ptr, i32 } %105, 0
  store ptr %106, ptr %9, align 8
  %107 = extractvalue { ptr, i32 } %105, 1
  store i32 %107, ptr %10, align 4
  br label %112

108:                                              ; preds = %28
  %109 = landingpad { ptr, i32 }
          cleanup
  %110 = extractvalue { ptr, i32 } %109, 0
  store ptr %110, ptr %9, align 8
  %111 = extractvalue { ptr, i32 } %109, 1
  store i32 %111, ptr %10, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #6
  br label %112

112:                                              ; preds = %108, %104
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #6
  br label %146

113:                                              ; preds = %92
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  %114 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPlSt6vectorIlSaIlEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #6
  store ptr %114, ptr %18, align 8, !tbaa !5
  %115 = getelementptr inbounds %"class.Data::CommandAnalysis", ptr %23, i32 0, i32 30
  %116 = getelementptr inbounds %"class.Data::MemorySpecification", ptr %115, i32 0, i32 5
  %117 = getelementptr inbounds %"class.Data::MemTimingSpec", ptr %116, i32 0, i32 18
  %118 = load i64, ptr %117, align 8, !tbaa !41
  %119 = getelementptr inbounds %"class.Data::CommandAnalysis", ptr %23, i32 0, i32 30
  %120 = getelementptr inbounds %"class.Data::MemorySpecification", ptr %119, i32 0, i32 5
  %121 = getelementptr inbounds %"class.Data::MemTimingSpec", ptr %120, i32 0, i32 17
  %122 = load i64, ptr %121, align 8, !tbaa !42
  %123 = sub nsw i64 %118, %122
  %124 = load ptr, ptr %18, align 8, !tbaa !5
  %125 = load i64, ptr %124, align 8, !tbaa !11
  %126 = add nsw i64 %125, %123
  store i64 %126, ptr %124, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  br label %127

127:                                              ; preds = %113
  %128 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPlSt6vectorIlSaIlEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #6
  br label %92

129:                                              ; preds = %94
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  %130 = getelementptr inbounds %"class.Data::CommandAnalysis", ptr %23, i32 0, i32 36
  store ptr %130, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  %131 = load ptr, ptr %19, align 8, !tbaa !5
  %132 = call ptr @_ZNSt6vectorIN4Data15CommandAnalysis9BankStateESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %131) #6
  %133 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.18", ptr %20, i32 0, i32 0
  store ptr %132, ptr %133, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  %134 = load ptr, ptr %19, align 8, !tbaa !5
  %135 = call ptr @_ZNSt6vectorIN4Data15CommandAnalysis9BankStateESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %134) #6
  %136 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.18", ptr %21, i32 0, i32 0
  store ptr %135, ptr %136, align 8
  br label %137

137:                                              ; preds = %143, %129
  %138 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN4Data15CommandAnalysis9BankStateESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull align 8 dereferenceable(8) %21) #6
  br i1 %138, label %140, label %139

139:                                              ; preds = %137
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  br label %145

140:                                              ; preds = %137
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  %141 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN4Data15CommandAnalysis9BankStateESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %20) #6
  store ptr %141, ptr %22, align 8, !tbaa !5
  %142 = load ptr, ptr %22, align 8, !tbaa !5
  store i32 0, ptr %142, align 4, !tbaa !44
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  br label %143

143:                                              ; preds = %140
  %144 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN4Data15CommandAnalysis9BankStateESt6vectorIS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %20) #6
  br label %137

145:                                              ; preds = %139
  ret void

146:                                              ; preds = %112, %103
  %147 = load ptr, ptr %9, align 8
  %148 = load i32, ptr %10, align 4
  %149 = insertvalue { ptr, i32 } poison, ptr %147, 0
  %150 = insertvalue { ptr, i32 } %149, i32 %148, 1
  resume { ptr, i32 } %150
}

declare void @_ZN4Data15CommandAnalysis20printWarningIfActiveERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEilj(ptr noundef nonnull align 8 dereferenceable(1392), ptr noundef nonnull align 8 dereferenceable(32), i32 noundef, i64 noundef, i32 noundef) #2

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPlSt6vectorIlSaIlEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #5

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPN4Data15CommandAnalysis9BankStateESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #5

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

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

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 = !{!"long", !7, i64 0}
!13 = !{!14, !12, i64 96}
!14 = !{!"_ZTSN4Data15CommandAnalysisE", !15, i64 0, !15, i64 24, !15, i64 48, !15, i64 72, !12, i64 96, !15, i64 104, !12, i64 128, !12, i64 136, !15, i64 144, !12, i64 168, !12, i64 176, !12, i64 184, !12, i64 192, !12, i64 200, !12, i64 208, !12, i64 216, !12, i64 224, !12, i64 232, !12, i64 240, !12, i64 248, !12, i64 256, !12, i64 264, !12, i64 272, !12, i64 280, !12, i64 288, !12, i64 296, !12, i64 304, !12, i64 312, !12, i64 320, !12, i64 328, !19, i64 336, !12, i64 1104, !29, i64 1112, !29, i64 1136, !29, i64 1160, !33, i64 1184, !33, i64 1208, !15, i64 1232, !12, i64 1256, !12, i64 1264, !12, i64 1272, !12, i64 1280, !12, i64 1288, !12, i64 1296, !12, i64 1304, !12, i64 1312, !12, i64 1320, !12, i64 1328, !10, i64 1336, !12, i64 1344, !12, i64 1352, !15, i64 1360, !12, i64 1384}
!15 = !{!"_ZTSSt6vectorIlSaIlEE", !16, i64 0}
!16 = !{!"_ZTSSt12_Vector_baseIlSaIlEE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIlSaIlEE12_Vector_implE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIlSaIlEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!19 = !{!"_ZTSN4Data19MemorySpecificationE", !20, i64 8, !22, i64 40, !24, i64 48, !26, i64 160, !28, i64 456}
!20 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !21, i64 0, !12, i64 8, !7, i64 16}
!21 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!22 = !{!"_ZTSN4Data10MemoryTypeE", !23, i64 0}
!23 = !{!"_ZTSN4Data10MemoryType12MemoryType_tE", !7, i64 0}
!24 = !{!"_ZTSN4Data19MemArchitectureSpecE", !12, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !12, i64 48, !12, i64 56, !12, i64 64, !25, i64 72, !25, i64 73, !25, i64 74}
!25 = !{!"bool", !7, i64 0}
!26 = !{!"_ZTSN4Data13MemTimingSpecE", !27, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !12, i64 48, !12, i64 56, !12, i64 64, !12, i64 72, !12, i64 80, !12, i64 88, !12, i64 96, !12, i64 104, !12, i64 112, !12, i64 120, !12, i64 128, !12, i64 136, !12, i64 144, !12, i64 152, !12, i64 160, !12, i64 168, !12, i64 176, !12, i64 184, !12, i64 192, !12, i64 200, !12, i64 208, !12, i64 216, !12, i64 224, !12, i64 232, !12, i64 240, !12, i64 248, !27, i64 256}
!27 = !{!"double", !7, i64 0}
!28 = !{!"_ZTSN4Data12MemPowerSpecE", !27, i64 8, !27, i64 16, !27, i64 24, !27, i64 32, !27, i64 40, !27, i64 48, !27, i64 56, !27, i64 64, !27, i64 72, !27, i64 80, !27, i64 88, !27, i64 96, !27, i64 104, !27, i64 112, !27, i64 120, !27, i64 128, !27, i64 136, !27, i64 144, !27, i64 152, !27, i64 160, !27, i64 168, !27, i64 176, !27, i64 184, !27, i64 192, !27, i64 200, !27, i64 208, !27, i64 216, !27, i64 224, !27, i64 232, !27, i64 240}
!29 = !{!"_ZTSSt6vectorIN4Data10MemCommandESaIS1_EE", !30, i64 0}
!30 = !{!"_ZTSSt12_Vector_baseIN4Data10MemCommandESaIS1_EE", !31, i64 0}
!31 = !{!"_ZTSNSt12_Vector_baseIN4Data10MemCommandESaIS1_EE12_Vector_implE", !32, i64 0}
!32 = !{!"_ZTSNSt12_Vector_baseIN4Data10MemCommandESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!33 = !{!"_ZTSSt6vectorIN4Data15CommandAnalysis9BankStateESaIS2_EE", !34, i64 0}
!34 = !{!"_ZTSSt12_Vector_baseIN4Data15CommandAnalysis9BankStateESaIS2_EE", !35, i64 0}
!35 = !{!"_ZTSNSt12_Vector_baseIN4Data15CommandAnalysis9BankStateESaIS2_EE12_Vector_implE", !36, i64 0}
!36 = !{!"_ZTSNSt12_Vector_baseIN4Data15CommandAnalysis9BankStateESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!37 = !{!14, !12, i64 1264}
!38 = !{!14, !12, i64 1352}
!39 = !{!14, !12, i64 1384}
!40 = !{!14, !12, i64 128}
!41 = !{!14, !12, i64 640}
!42 = !{!14, !12, i64 632}
!43 = !{!14, !12, i64 136}
!44 = !{!45, !45, i64 0}
!45 = !{!"_ZTSN4Data15CommandAnalysis9BankStateE", !7, i64 0}


; 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::__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::allocator.0" = type { i8 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.18" = type { ptr }

@.str = external hidden unnamed_addr constant [41 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [71 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [35 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_Z10zero_guardlPKc(i64 noundef, ptr noundef) local_unnamed_addr #0

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

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

declare void @_ZN4Data15CommandAnalysis25printWarningIfPoweredDownERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEilj(ptr noundef nonnull align 8 dereferenceable(1392), ptr noundef nonnull align 8 dereferenceable(32), i32 noundef, i64 noundef, i32 noundef) local_unnamed_addr #2

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

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

declare i32 @__gxx_personality_v0(...)

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

declare void @_ZN4Data15CommandAnalysis15idle_pre_updateEll(ptr noundef nonnull align 8 dereferenceable(1392), i64 noundef, i64 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4Data15CommandAnalysis9handleRefEjl(ptr noundef nonnull align 8 dereferenceable(1392) %0, i32 noundef %1, i64 noundef %2) local_unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca i64, align 8
  %5 = alloca %"class.std::__cxx11::basic_string", align 8
  %6 = alloca %"class.std::allocator.0", align 1
  %7 = alloca %"class.std::__cxx11::basic_string", align 8
  %8 = alloca %"class.std::allocator.0", align 1
  %9 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %10 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %11 = alloca %"class.__gnu_cxx::__normal_iterator.18", align 8
  %12 = alloca %"class.__gnu_cxx::__normal_iterator.18", align 8
  store i64 %2, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull @.str, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %13 unwind label %53

13:                                               ; preds = %3
  invoke void @_ZN4Data15CommandAnalysis25printWarningIfPoweredDownERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEilj(ptr noundef nonnull align 8 dereferenceable(1392) %0, ptr noundef nonnull align 8 dereferenceable(32) %5, i32 noundef 4, i64 noundef %2, i32 noundef %1)
          to label %14 unwind label %55

14:                                               ; preds = %13
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %8) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef nonnull @.str.4, ptr noundef nonnull align 1 dereferenceable(1) %8)
          to label %15 unwind label %58

15:                                               ; preds = %14
  invoke void @_ZN4Data15CommandAnalysis20printWarningIfActiveERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEilj(ptr noundef nonnull align 8 dereferenceable(1392) %0, ptr noundef nonnull align 8 dereferenceable(32) %7, i32 noundef 4, i64 noundef %2, i32 noundef %1)
          to label %16 unwind label %60

16:                                               ; preds = %15
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #6
  %17 = getelementptr inbounds i8, ptr %0, i64 96
  %18 = load i64, ptr %17, align 8, !tbaa !9
  %19 = add nsw i64 %18, 1
  store i64 %19, ptr %17, align 8, !tbaa !9
  %20 = getelementptr inbounds i8, ptr %0, i64 1264
  %21 = load i64, ptr %20, align 8, !tbaa !35
  call void @_ZN4Data15CommandAnalysis15idle_pre_updateEll(ptr noundef nonnull align 8 dereferenceable(1392) %0, i64 noundef %2, i64 noundef %21)
  %22 = getelementptr inbounds i8, ptr %0, i64 1352
  store i64 %2, ptr %22, align 8, !tbaa !36
  %23 = getelementptr inbounds i8, ptr %0, i64 1360
  %24 = call ptr @_ZNSt6vectorIlSaIlEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %23) #6
  %25 = call ptr @_ZNSt6vectorIlSaIlEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %23) #6
  call void @_ZSt4fillIN9__gnu_cxx17__normal_iteratorIPlSt6vectorIlSaIlEEEElEvT_S7_RKT0_(ptr %24, ptr %25, ptr noundef nonnull align 8 dereferenceable(8) %4)
  %26 = load i64, ptr %4, align 8, !tbaa !5
  %27 = getelementptr inbounds i8, ptr %0, i64 1384
  %28 = load i64, ptr %27, align 8, !tbaa !37
  %29 = sub nsw i64 %26, %28
  %30 = call noundef i64 @_Z10zero_guardlPKc(i64 noundef %29, ptr noundef nonnull @.str.5)
  %31 = getelementptr inbounds i8, ptr %0, i64 128
  %32 = load i64, ptr %31, align 8, !tbaa !38
  %33 = add nsw i64 %32, %30
  store i64 %33, ptr %31, align 8, !tbaa !38
  %34 = load i64, ptr %4, align 8, !tbaa !5
  %35 = getelementptr inbounds i8, ptr %0, i64 640
  %36 = load i64, ptr %35, align 8, !tbaa !39
  %37 = add nsw i64 %36, %34
  %38 = getelementptr inbounds i8, ptr %0, i64 632
  %39 = load i64, ptr %38, align 8, !tbaa !40
  %40 = sub i64 %37, %39
  store i64 %40, ptr %27, align 8, !tbaa !37
  store i64 %40, ptr %20, align 8, !tbaa !35
  %41 = sub i64 %36, %39
  %42 = getelementptr inbounds i8, ptr %0, i64 136
  %43 = load i64, ptr %42, align 8, !tbaa !41
  %44 = add nsw i64 %41, %43
  store i64 %44, ptr %42, align 8, !tbaa !41
  %45 = getelementptr inbounds i8, ptr %0, i64 144
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #6
  %46 = call ptr @_ZNSt6vectorIlSaIlEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %45) #6
  store ptr %46, ptr %9, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #6
  %47 = call ptr @_ZNSt6vectorIlSaIlEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %45) #6
  store ptr %47, ptr %10, align 8
  %48 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPlSt6vectorIlSaIlEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  br i1 %48, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %16
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  %49 = getelementptr inbounds i8, ptr %0, i64 1208
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #6
  %50 = call ptr @_ZNSt6vectorIN4Data15CommandAnalysis9BankStateESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %49) #6
  store ptr %50, ptr %11, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #6
  %51 = call ptr @_ZNSt6vectorIN4Data15CommandAnalysis9BankStateESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %49) #6
  store ptr %51, ptr %12, align 8
  %52 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN4Data15CommandAnalysis9BankStateESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12) #6
  br i1 %52, label %.lr.ph20, label %._crit_edge21

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

55:                                               ; preds = %13
  %56 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  br label %57

57:                                               ; preds = %55, %53
  %.pn = phi { ptr, i32 } [ %56, %55 ], [ %54, %53 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #6
  br label %74

58:                                               ; preds = %14
  %59 = landingpad { ptr, i32 }
          cleanup
  br label %62

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

62:                                               ; preds = %60, %58
  %.pn15 = phi { ptr, i32 } [ %61, %60 ], [ %59, %58 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #6
  br label %74

.lr.ph:                                           ; preds = %16, %.lr.ph
  %63 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPlSt6vectorIlSaIlEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  %64 = load i64, ptr %35, align 8, !tbaa !39
  %65 = load i64, ptr %38, align 8, !tbaa !40
  %66 = sub i64 %64, %65
  %67 = load i64, ptr %63, align 8, !tbaa !5
  %68 = add nsw i64 %66, %67
  store i64 %68, ptr %63, align 8, !tbaa !5
  %69 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPlSt6vectorIlSaIlEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  %70 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPlSt6vectorIlSaIlEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  br i1 %70, label %.lr.ph, label %._crit_edge

._crit_edge21:                                    ; preds = %.lr.ph20, %._crit_edge
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
  ret void

.lr.ph20:                                         ; preds = %._crit_edge, %.lr.ph20
  %71 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN4Data15CommandAnalysis9BankStateESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #6
  store i32 0, ptr %71, align 4, !tbaa !42
  %72 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN4Data15CommandAnalysis9BankStateESt6vectorIS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #6
  %73 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN4Data15CommandAnalysis9BankStateESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12) #6
  br i1 %73, label %.lr.ph20, label %._crit_edge21

74:                                               ; preds = %62, %57
  %.pn15.pn = phi { ptr, i32 } [ %.pn15, %62 ], [ %.pn, %57 ]
  resume { ptr, i32 } %.pn15.pn
}

declare void @_ZN4Data15CommandAnalysis20printWarningIfActiveERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEilj(ptr noundef nonnull align 8 dereferenceable(1392), ptr noundef nonnull align 8 dereferenceable(32), i32 noundef, i64 noundef, i32 noundef) local_unnamed_addr #2

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPlSt6vectorIlSaIlEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPN4Data15CommandAnalysis9BankStateESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5

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

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

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 96}
!10 = !{!"_ZTSN4Data15CommandAnalysisE", !11, i64 0, !11, i64 24, !11, i64 48, !11, i64 72, !6, i64 96, !11, i64 104, !6, i64 128, !6, i64 136, !11, i64 144, !6, i64 168, !6, i64 176, !6, i64 184, !6, i64 192, !6, i64 200, !6, i64 208, !6, i64 216, !6, i64 224, !6, i64 232, !6, i64 240, !6, i64 248, !6, i64 256, !6, i64 264, !6, i64 272, !6, i64 280, !6, i64 288, !6, i64 296, !6, i64 304, !6, i64 312, !6, i64 320, !6, i64 328, !16, i64 336, !6, i64 1104, !26, i64 1112, !26, i64 1136, !26, i64 1160, !30, i64 1184, !30, i64 1208, !11, i64 1232, !6, i64 1256, !6, i64 1264, !6, i64 1272, !6, i64 1280, !6, i64 1288, !6, i64 1296, !6, i64 1304, !6, i64 1312, !6, i64 1320, !6, i64 1328, !34, i64 1336, !6, i64 1344, !6, i64 1352, !11, i64 1360, !6, i64 1384}
!11 = !{!"_ZTSSt6vectorIlSaIlEE", !12, i64 0}
!12 = !{!"_ZTSSt12_Vector_baseIlSaIlEE", !13, i64 0}
!13 = !{!"_ZTSNSt12_Vector_baseIlSaIlEE12_Vector_implE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseIlSaIlEE17_Vector_impl_dataE", !15, i64 0, !15, i64 8, !15, i64 16}
!15 = !{!"any pointer", !7, i64 0}
!16 = !{!"_ZTSN4Data19MemorySpecificationE", !17, i64 8, !19, i64 40, !21, i64 48, !23, i64 160, !25, i64 456}
!17 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !18, i64 0, !6, i64 8, !7, i64 16}
!18 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !15, i64 0}
!19 = !{!"_ZTSN4Data10MemoryTypeE", !20, i64 0}
!20 = !{!"_ZTSN4Data10MemoryType12MemoryType_tE", !7, i64 0}
!21 = !{!"_ZTSN4Data19MemArchitectureSpecE", !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !22, i64 72, !22, i64 73, !22, i64 74}
!22 = !{!"bool", !7, i64 0}
!23 = !{!"_ZTSN4Data13MemTimingSpecE", !24, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !6, i64 184, !6, i64 192, !6, i64 200, !6, i64 208, !6, i64 216, !6, i64 224, !6, i64 232, !6, i64 240, !6, i64 248, !24, i64 256}
!24 = !{!"double", !7, i64 0}
!25 = !{!"_ZTSN4Data12MemPowerSpecE", !24, i64 8, !24, i64 16, !24, i64 24, !24, i64 32, !24, i64 40, !24, i64 48, !24, i64 56, !24, i64 64, !24, i64 72, !24, i64 80, !24, i64 88, !24, i64 96, !24, i64 104, !24, i64 112, !24, i64 120, !24, i64 128, !24, i64 136, !24, i64 144, !24, i64 152, !24, i64 160, !24, i64 168, !24, i64 176, !24, i64 184, !24, i64 192, !24, i64 200, !24, i64 208, !24, i64 216, !24, i64 224, !24, i64 232, !24, i64 240}
!26 = !{!"_ZTSSt6vectorIN4Data10MemCommandESaIS1_EE", !27, i64 0}
!27 = !{!"_ZTSSt12_Vector_baseIN4Data10MemCommandESaIS1_EE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseIN4Data10MemCommandESaIS1_EE12_Vector_implE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseIN4Data10MemCommandESaIS1_EE17_Vector_impl_dataE", !15, i64 0, !15, i64 8, !15, i64 16}
!30 = !{!"_ZTSSt6vectorIN4Data15CommandAnalysis9BankStateESaIS2_EE", !31, i64 0}
!31 = !{!"_ZTSSt12_Vector_baseIN4Data15CommandAnalysis9BankStateESaIS2_EE", !32, i64 0}
!32 = !{!"_ZTSNSt12_Vector_baseIN4Data15CommandAnalysis9BankStateESaIS2_EE12_Vector_implE", !33, i64 0}
!33 = !{!"_ZTSNSt12_Vector_baseIN4Data15CommandAnalysis9BankStateESaIS2_EE17_Vector_impl_dataE", !15, i64 0, !15, i64 8, !15, i64 16}
!34 = !{!"int", !7, i64 0}
!35 = !{!10, !6, i64 1264}
!36 = !{!10, !6, i64 1352}
!37 = !{!10, !6, i64 1384}
!38 = !{!10, !6, i64 128}
!39 = !{!10, !6, i64 640}
!40 = !{!10, !6, i64 632}
!41 = !{!10, !6, i64 136}
!42 = !{!43, !43, i64 0}
!43 = !{!"_ZTSN4Data15CommandAnalysis9BankStateE", !7, i64 0}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass