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

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.__gnu_cxx::__normal_iterator" = 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.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.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.17 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [26 x i8], align 1
@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str.19 = external hidden unnamed_addr constant [34 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

; 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)) #2

; 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: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIN4Data15CommandAnalysis9BankStateESaIS2_EEaSERKS4_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4Data15CommandAnalysis12handlePupActEl(ptr noundef nonnull align 8 dereferenceable(1392) %0, i64 noundef %1) #0 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca i64, align 8
  %5 = alloca ptr, align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store i64 %1, ptr %4, align 8, !tbaa !9
  %8 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  %9 = getelementptr inbounds %"class.Data::CommandAnalysis", ptr %8, i32 0, i32 30
  %10 = getelementptr inbounds %"class.Data::MemorySpecification", ptr %9, i32 0, i32 5
  store ptr %10, ptr %5, align 8, !tbaa !5
  %11 = getelementptr inbounds %"class.Data::CommandAnalysis", ptr %8, i32 0, i32 48
  %12 = load i32, ptr %11, align 8, !tbaa !11
  %13 = icmp eq i32 %12, 10
  br i1 %13, label %14, label %31

14:                                               ; preds = %2
  %15 = load i64, ptr %4, align 8, !tbaa !9
  %16 = getelementptr inbounds %"class.Data::CommandAnalysis", ptr %8, i32 0, i32 47
  %17 = load i64, ptr %16, align 8, !tbaa !36
  %18 = sub nsw i64 %15, %17
  %19 = call noundef i64 @_Z10zero_guardlPKc(i64 noundef %18, ptr noundef @.str.17)
  %20 = getelementptr inbounds %"class.Data::CommandAnalysis", ptr %8, i32 0, i32 16
  %21 = load i64, ptr %20, align 8, !tbaa !37
  %22 = add nsw i64 %21, %19
  store i64 %22, ptr %20, align 8, !tbaa !37
  %23 = load ptr, ptr %5, align 8, !tbaa !5
  %24 = getelementptr inbounds %"class.Data::MemTimingSpec", ptr %23, i32 0, i32 26
  %25 = load i64, ptr %24, align 8, !tbaa !38
  %26 = getelementptr inbounds %"class.Data::CommandAnalysis", ptr %8, i32 0, i32 21
  %27 = load i64, ptr %26, align 8, !tbaa !39
  %28 = add nsw i64 %27, %25
  store i64 %28, ptr %26, align 8, !tbaa !39
  %29 = load i64, ptr %4, align 8, !tbaa !9
  %30 = getelementptr inbounds %"class.Data::CommandAnalysis", ptr %8, i32 0, i32 38
  store i64 %29, ptr %30, align 8, !tbaa !40
  br label %88

31:                                               ; preds = %2
  %32 = getelementptr inbounds %"class.Data::CommandAnalysis", ptr %8, i32 0, i32 48
  %33 = load i32, ptr %32, align 8, !tbaa !11
  %34 = icmp eq i32 %33, 11
  br i1 %34, label %35, label %84

35:                                               ; preds = %31
  %36 = load i64, ptr %4, align 8, !tbaa !9
  %37 = getelementptr inbounds %"class.Data::CommandAnalysis", ptr %8, i32 0, i32 47
  %38 = load i64, ptr %37, align 8, !tbaa !36
  %39 = sub nsw i64 %36, %38
  %40 = call noundef i64 @_Z10zero_guardlPKc(i64 noundef %39, ptr noundef @.str.17)
  %41 = getelementptr inbounds %"class.Data::CommandAnalysis", ptr %8, i32 0, i32 17
  %42 = load i64, ptr %41, align 8, !tbaa !41
  %43 = add nsw i64 %42, %40
  store i64 %43, ptr %41, align 8, !tbaa !41
  %44 = getelementptr inbounds %"class.Data::CommandAnalysis", ptr %8, i32 0, i32 30
  %45 = getelementptr inbounds %"class.Data::MemorySpecification", ptr %44, i32 0, i32 4
  %46 = getelementptr inbounds %"class.Data::MemArchitectureSpec", ptr %45, i32 0, i32 9
  %47 = load i8, ptr %46, align 8, !tbaa !42, !range !43, !noundef !44
  %48 = trunc i8 %47 to i1
  %49 = zext i1 %48 to i32
  %50 = icmp eq i32 %49, 0
  br i1 %50, label %51, label %60

51:                                               ; preds = %35
  %52 = load ptr, ptr %5, align 8, !tbaa !5
  %53 = getelementptr inbounds %"class.Data::MemTimingSpec", ptr %52, i32 0, i32 26
  %54 = load i64, ptr %53, align 8, !tbaa !38
  %55 = getelementptr inbounds %"class.Data::CommandAnalysis", ptr %8, i32 0, i32 21
  %56 = load i64, ptr %55, align 8, !tbaa !39
  %57 = add nsw i64 %56, %54
  store i64 %57, ptr %55, align 8, !tbaa !39
  %58 = load i64, ptr %4, align 8, !tbaa !9
  %59 = getelementptr inbounds %"class.Data::CommandAnalysis", ptr %8, i32 0, i32 38
  store i64 %58, ptr %59, align 8, !tbaa !40
  br label %83

60:                                               ; preds = %35
  %61 = load ptr, ptr %5, align 8, !tbaa !5
  %62 = getelementptr inbounds %"class.Data::MemTimingSpec", ptr %61, i32 0, i32 27
  %63 = load i64, ptr %62, align 8, !tbaa !45
  %64 = load ptr, ptr %5, align 8, !tbaa !5
  %65 = getelementptr inbounds %"class.Data::MemTimingSpec", ptr %64, i32 0, i32 3
  %66 = load i64, ptr %65, align 8, !tbaa !46
  %67 = sub nsw i64 %63, %66
  %68 = getelementptr inbounds %"class.Data::CommandAnalysis", ptr %8, i32 0, i32 21
  %69 = load i64, ptr %68, align 8, !tbaa !39
  %70 = add nsw i64 %69, %67
  store i64 %70, ptr %68, align 8, !tbaa !39
  %71 = load i64, ptr %4, align 8, !tbaa !9
  %72 = load ptr, ptr %5, align 8, !tbaa !5
  %73 = getelementptr inbounds %"class.Data::MemTimingSpec", ptr %72, i32 0, i32 27
  %74 = load i64, ptr %73, align 8, !tbaa !45
  %75 = load ptr, ptr %5, align 8, !tbaa !5
  %76 = getelementptr inbounds %"class.Data::MemTimingSpec", ptr %75, i32 0, i32 3
  %77 = load i64, ptr %76, align 8, !tbaa !46
  %78 = mul nsw i64 2, %77
  %79 = sub nsw i64 %74, %78
  %80 = call noundef i64 @_Z10zero_guardlPKc(i64 noundef %79, ptr noundef @.str.18)
  %81 = add nsw i64 %71, %80
  %82 = getelementptr inbounds %"class.Data::CommandAnalysis", ptr %8, i32 0, i32 38
  store i64 %81, ptr %82, align 8, !tbaa !40
  br label %83

83:                                               ; preds = %60, %51
  br label %87

84:                                               ; preds = %31
  %85 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.19)
  %86 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %85, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %87

87:                                               ; preds = %84, %83
  br label %88

88:                                               ; preds = %87, %14
  %89 = getelementptr inbounds %"class.Data::CommandAnalysis", ptr %8, i32 0, i32 48
  store i32 0, ptr %89, align 8, !tbaa !11
  %90 = getelementptr inbounds %"class.Data::CommandAnalysis", ptr %8, i32 0, i32 35
  %91 = getelementptr inbounds %"class.Data::CommandAnalysis", ptr %8, i32 0, i32 36
  %92 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIN4Data15CommandAnalysis9BankStateESaIS2_EEaSERKS4_(ptr noundef nonnull align 8 dereferenceable(24) %91, ptr noundef nonnull align 8 dereferenceable(24) %90)
  %93 = load i64, ptr %4, align 8, !tbaa !9
  %94 = getelementptr inbounds %"class.Data::CommandAnalysis", ptr %8, i32 0, i32 50
  store i64 %93, ptr %94, align 8, !tbaa !47
  %95 = getelementptr inbounds %"class.Data::CommandAnalysis", ptr %8, i32 0, i32 51
  %96 = call ptr @_ZNSt6vectorIlSaIlEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %95) #4
  %97 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %6, i32 0, i32 0
  store ptr %96, ptr %97, align 8
  %98 = getelementptr inbounds %"class.Data::CommandAnalysis", ptr %8, i32 0, i32 51
  %99 = call ptr @_ZNSt6vectorIlSaIlEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %98) #4
  %100 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %7, i32 0, i32 0
  store ptr %99, ptr %100, align 8
  %101 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %6, i32 0, i32 0
  %102 = load ptr, ptr %101, align 8
  %103 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %7, i32 0, i32 0
  %104 = load ptr, ptr %103, align 8
  call void @_ZSt4fillIN9__gnu_cxx17__normal_iteratorIPlSt6vectorIlSaIlEEEElEvT_S7_RKT0_(ptr %102, ptr %104, ptr noundef nonnull align 8 dereferenceable(8) %4)
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  ret void
}

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #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 = { 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 #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 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !35, i64 1336}
!12 = !{!"_ZTSN4Data15CommandAnalysisE", !13, i64 0, !13, i64 24, !13, i64 48, !13, i64 72, !10, i64 96, !13, i64 104, !10, i64 128, !10, i64 136, !13, i64 144, !10, i64 168, !10, i64 176, !10, i64 184, !10, i64 192, !10, i64 200, !10, i64 208, !10, i64 216, !10, i64 224, !10, i64 232, !10, i64 240, !10, i64 248, !10, i64 256, !10, i64 264, !10, i64 272, !10, i64 280, !10, i64 288, !10, i64 296, !10, i64 304, !10, i64 312, !10, i64 320, !10, i64 328, !17, i64 336, !10, i64 1104, !27, i64 1112, !27, i64 1136, !27, i64 1160, !31, i64 1184, !31, i64 1208, !13, i64 1232, !10, i64 1256, !10, i64 1264, !10, i64 1272, !10, i64 1280, !10, i64 1288, !10, i64 1296, !10, i64 1304, !10, i64 1312, !10, i64 1320, !10, i64 1328, !35, i64 1336, !10, i64 1344, !10, i64 1352, !13, i64 1360, !10, i64 1384}
!13 = !{!"_ZTSSt6vectorIlSaIlEE", !14, i64 0}
!14 = !{!"_ZTSSt12_Vector_baseIlSaIlEE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIlSaIlEE12_Vector_implE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIlSaIlEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!17 = !{!"_ZTSN4Data19MemorySpecificationE", !18, i64 8, !20, i64 40, !22, i64 48, !24, i64 160, !26, i64 456}
!18 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !19, i64 0, !10, i64 8, !7, i64 16}
!19 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!20 = !{!"_ZTSN4Data10MemoryTypeE", !21, i64 0}
!21 = !{!"_ZTSN4Data10MemoryType12MemoryType_tE", !7, i64 0}
!22 = !{!"_ZTSN4Data19MemArchitectureSpecE", !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !23, i64 72, !23, i64 73, !23, i64 74}
!23 = !{!"bool", !7, i64 0}
!24 = !{!"_ZTSN4Data13MemTimingSpecE", !25, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !10, i64 72, !10, i64 80, !10, i64 88, !10, i64 96, !10, i64 104, !10, i64 112, !10, i64 120, !10, i64 128, !10, i64 136, !10, i64 144, !10, i64 152, !10, i64 160, !10, i64 168, !10, i64 176, !10, i64 184, !10, i64 192, !10, i64 200, !10, i64 208, !10, i64 216, !10, i64 224, !10, i64 232, !10, i64 240, !10, i64 248, !25, i64 256}
!25 = !{!"double", !7, i64 0}
!26 = !{!"_ZTSN4Data12MemPowerSpecE", !25, i64 8, !25, i64 16, !25, i64 24, !25, i64 32, !25, i64 40, !25, i64 48, !25, i64 56, !25, i64 64, !25, i64 72, !25, i64 80, !25, i64 88, !25, i64 96, !25, i64 104, !25, i64 112, !25, i64 120, !25, i64 128, !25, i64 136, !25, i64 144, !25, i64 152, !25, i64 160, !25, i64 168, !25, i64 176, !25, i64 184, !25, i64 192, !25, i64 200, !25, i64 208, !25, i64 216, !25, i64 224, !25, i64 232, !25, i64 240}
!27 = !{!"_ZTSSt6vectorIN4Data10MemCommandESaIS1_EE", !28, i64 0}
!28 = !{!"_ZTSSt12_Vector_baseIN4Data10MemCommandESaIS1_EE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseIN4Data10MemCommandESaIS1_EE12_Vector_implE", !30, i64 0}
!30 = !{!"_ZTSNSt12_Vector_baseIN4Data10MemCommandESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!31 = !{!"_ZTSSt6vectorIN4Data15CommandAnalysis9BankStateESaIS2_EE", !32, i64 0}
!32 = !{!"_ZTSSt12_Vector_baseIN4Data15CommandAnalysis9BankStateESaIS2_EE", !33, i64 0}
!33 = !{!"_ZTSNSt12_Vector_baseIN4Data15CommandAnalysis9BankStateESaIS2_EE12_Vector_implE", !34, i64 0}
!34 = !{!"_ZTSNSt12_Vector_baseIN4Data15CommandAnalysis9BankStateESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!35 = !{!"int", !7, i64 0}
!36 = !{!12, !10, i64 1328}
!37 = !{!12, !10, i64 224}
!38 = !{!24, !10, i64 208}
!39 = !{!12, !10, i64 264}
!40 = !{!12, !10, i64 1256}
!41 = !{!12, !10, i64 232}
!42 = !{!12, !23, i64 456}
!43 = !{i8 0, i8 2}
!44 = !{}
!45 = !{!24, !10, i64 216}
!46 = !{!24, !10, i64 24}
!47 = !{!12, !10, i64 1352}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }

@.str.17 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [26 x i8], align 1
@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str.19 = external hidden unnamed_addr constant [34 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: 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 #1

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4Data15CommandAnalysis12handlePupActEl(ptr noundef nonnull align 8 dereferenceable(1392) %0, i64 noundef %1) local_unnamed_addr #0 align 2 {
  %3 = alloca i64, align 8
  store i64 %1, ptr %3, align 8, !tbaa !5
  %4 = getelementptr inbounds i8, ptr %0, i64 1336
  %5 = load i32, ptr %4, align 8, !tbaa !9
  switch i32 %5, label %52 [
    i32 10, label %6
    i32 11, label %20
  ]

6:                                                ; preds = %2
  %7 = getelementptr inbounds i8, ptr %0, i64 1328
  %8 = load i64, ptr %7, align 8, !tbaa !35
  %9 = sub nsw i64 %1, %8
  %10 = tail call noundef i64 @_Z10zero_guardlPKc(i64 noundef %9, ptr noundef nonnull @.str.17)
  %11 = getelementptr inbounds i8, ptr %0, i64 224
  %12 = load i64, ptr %11, align 8, !tbaa !36
  %13 = add nsw i64 %12, %10
  store i64 %13, ptr %11, align 8, !tbaa !36
  %14 = getelementptr inbounds i8, ptr %0, i64 704
  %15 = load i64, ptr %14, align 8, !tbaa !37
  %16 = getelementptr inbounds i8, ptr %0, i64 264
  %17 = load i64, ptr %16, align 8, !tbaa !38
  %18 = add nsw i64 %17, %15
  store i64 %18, ptr %16, align 8, !tbaa !38
  %19 = getelementptr inbounds i8, ptr %0, i64 1256
  store i64 %1, ptr %19, align 8, !tbaa !39
  br label %55

20:                                               ; preds = %2
  %21 = getelementptr inbounds i8, ptr %0, i64 1328
  %22 = load i64, ptr %21, align 8, !tbaa !35
  %23 = sub nsw i64 %1, %22
  %24 = tail call noundef i64 @_Z10zero_guardlPKc(i64 noundef %23, ptr noundef nonnull @.str.17)
  %25 = getelementptr inbounds i8, ptr %0, i64 232
  %26 = load i64, ptr %25, align 8, !tbaa !40
  %27 = add nsw i64 %26, %24
  store i64 %27, ptr %25, align 8, !tbaa !40
  %28 = getelementptr inbounds i8, ptr %0, i64 456
  %29 = load i8, ptr %28, align 8, !tbaa !41, !range !42, !noundef !43
  %30 = icmp eq i8 %29, 0
  br i1 %30, label %31, label %38

31:                                               ; preds = %20
  %32 = getelementptr inbounds i8, ptr %0, i64 704
  %33 = load i64, ptr %32, align 8, !tbaa !37
  %34 = getelementptr inbounds i8, ptr %0, i64 264
  %35 = load i64, ptr %34, align 8, !tbaa !38
  %36 = add nsw i64 %35, %33
  store i64 %36, ptr %34, align 8, !tbaa !38
  %37 = getelementptr inbounds i8, ptr %0, i64 1256
  store i64 %1, ptr %37, align 8, !tbaa !39
  br label %55

38:                                               ; preds = %20
  %39 = getelementptr inbounds i8, ptr %0, i64 712
  %40 = load i64, ptr %39, align 8, !tbaa !44
  %41 = getelementptr inbounds i8, ptr %0, i64 520
  %42 = load i64, ptr %41, align 8, !tbaa !45
  %43 = sub i64 %40, %42
  %44 = getelementptr inbounds i8, ptr %0, i64 264
  %45 = load i64, ptr %44, align 8, !tbaa !38
  %46 = add nsw i64 %43, %45
  store i64 %46, ptr %44, align 8, !tbaa !38
  %47 = shl nsw i64 %42, 1
  %48 = sub nsw i64 %40, %47
  %49 = tail call noundef i64 @_Z10zero_guardlPKc(i64 noundef %48, ptr noundef nonnull @.str.18)
  %50 = add nsw i64 %49, %1
  %51 = getelementptr inbounds i8, ptr %0, i64 1256
  store i64 %50, ptr %51, align 8, !tbaa !39
  br label %55

52:                                               ; preds = %2
  %53 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str.19)
  %54 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %53, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %55

55:                                               ; preds = %52, %38, %31, %6
  store i32 0, ptr %4, align 8, !tbaa !9
  %56 = getelementptr inbounds i8, ptr %0, i64 1184
  %57 = getelementptr inbounds i8, ptr %0, i64 1208
  %58 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIN4Data15CommandAnalysis9BankStateESaIS2_EEaSERKS4_(ptr noundef nonnull align 8 dereferenceable(24) %57, ptr noundef nonnull align 8 dereferenceable(24) %56)
  %59 = getelementptr inbounds i8, ptr %0, i64 1352
  store i64 %1, ptr %59, align 8, !tbaa !46
  %60 = getelementptr inbounds i8, ptr %0, i64 1360
  %61 = tail call ptr @_ZNSt6vectorIlSaIlEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %60) #3
  %62 = tail call ptr @_ZNSt6vectorIlSaIlEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %60) #3
  call void @_ZSt4fillIN9__gnu_cxx17__normal_iteratorIPlSt6vectorIlSaIlEEEElEvT_S7_RKT0_(ptr %61, ptr %62, ptr noundef nonnull align 8 dereferenceable(8) %3)
  ret void
}

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #1

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

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

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 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 #3 = { 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, !34, i64 1336}
!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 1328}
!36 = !{!10, !6, i64 224}
!37 = !{!23, !6, i64 208}
!38 = !{!10, !6, i64 264}
!39 = !{!10, !6, i64 1256}
!40 = !{!10, !6, i64 232}
!41 = !{!10, !22, i64 456}
!42 = !{i8 0, i8 2}
!43 = !{}
!44 = !{!23, !6, i64 216}
!45 = !{!23, !6, i64 24}
!46 = !{!10, !6, i64 1352}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass