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

; 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.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
@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str.20 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [38 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 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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4Data15CommandAnalysis12handlePupPreEl(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
  store ptr %0, ptr %3, align 8, !tbaa !5
  store i64 %1, ptr %4, align 8, !tbaa !9
  %6 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #3
  %7 = getelementptr inbounds %"class.Data::CommandAnalysis", ptr %6, i32 0, i32 30
  %8 = getelementptr inbounds %"class.Data::MemorySpecification", ptr %7, i32 0, i32 5
  store ptr %8, ptr %5, align 8, !tbaa !5
  %9 = getelementptr inbounds %"class.Data::CommandAnalysis", ptr %6, i32 0, i32 48
  %10 = load i32, ptr %9, align 8, !tbaa !11
  %11 = icmp eq i32 %10, 12
  br i1 %11, label %12, label %29

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

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

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

49:                                               ; preds = %33
  %50 = load ptr, ptr %5, align 8, !tbaa !5
  %51 = getelementptr inbounds %"class.Data::MemTimingSpec", ptr %50, i32 0, i32 26
  %52 = load i64, ptr %51, align 8, !tbaa !38
  %53 = getelementptr inbounds %"class.Data::CommandAnalysis", ptr %6, i32 0, i32 22
  %54 = load i64, ptr %53, align 8, !tbaa !39
  %55 = add nsw i64 %54, %52
  store i64 %55, ptr %53, align 8, !tbaa !39
  %56 = load i64, ptr %4, align 8, !tbaa !9
  %57 = getelementptr inbounds %"class.Data::CommandAnalysis", ptr %6, i32 0, i32 39
  store i64 %56, ptr %57, align 8, !tbaa !40
  br label %84

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

84:                                               ; preds = %58, %49
  br label %88

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

88:                                               ; preds = %85, %84
  br label %89

89:                                               ; preds = %88, %12
  %90 = getelementptr inbounds %"class.Data::CommandAnalysis", ptr %6, i32 0, i32 48
  store i32 0, ptr %90, align 8, !tbaa !11
  %91 = load i64, ptr %4, align 8, !tbaa !9
  %92 = getelementptr inbounds %"class.Data::CommandAnalysis", ptr %6, i32 0, i32 52
  store i64 %91, ptr %92, align 8, !tbaa !48
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #3
  ret void
}

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 = { 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 240}
!38 = !{!24, !10, i64 208}
!39 = !{!12, !10, i64 272}
!40 = !{!12, !10, i64 1264}
!41 = !{!12, !10, i64 248}
!42 = !{!12, !23, i64 456}
!43 = !{i8 0, i8 2}
!44 = !{}
!45 = !{!24, !10, i64 216}
!46 = !{!24, !10, i64 24}
!47 = !{!24, !10, i64 136}
!48 = !{!12, !10, i64 1384}


; 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
@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str.20 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [38 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 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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4Data15CommandAnalysis12handlePupPreEl(ptr nocapture noundef nonnull align 8 dereferenceable(1392) %0, i64 noundef %1) local_unnamed_addr #0 align 2 {
  %3 = getelementptr inbounds i8, ptr %0, i64 1336
  %4 = load i32, ptr %3, align 8, !tbaa !5
  switch i32 %4, label %53 [
    i32 12, label %5
    i32 13, label %19
  ]

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

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

30:                                               ; preds = %19
  %31 = getelementptr inbounds i8, ptr %0, i64 704
  %32 = load i64, ptr %31, align 8, !tbaa !36
  %33 = getelementptr inbounds i8, ptr %0, i64 272
  %34 = load i64, ptr %33, align 8, !tbaa !37
  %35 = add nsw i64 %34, %32
  store i64 %35, ptr %33, align 8, !tbaa !37
  %36 = getelementptr inbounds i8, ptr %0, i64 1264
  store i64 %1, ptr %36, align 8, !tbaa !38
  br label %56

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

53:                                               ; preds = %2
  %54 = 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.21)
  %55 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %54, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %56

56:                                               ; preds = %53, %37, %30, %5
  store i32 0, ptr %3, align 8, !tbaa !5
  %57 = getelementptr inbounds i8, ptr %0, i64 1384
  store i64 %1, ptr %57, align 8, !tbaa !46
  ret void
}

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" }

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


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