; LLVM IR from sfu-dis/mosaicdb :: benchmarks/egen/MEETickerTape.ll (ZN4TPCE14CMEETickerTape20AddArtificialEntriesEv)

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

%"struct.TPCE::TTickerEntry" = type { double, i32, [16 x i8] }
%"class.TPCE::CMoney" = type { i64 }
%"class.TPCE::CMEETickerTape" = type { ptr, ptr, %"struct.TPCE::TMarketFeedTxnInput", i32, i32, %"class.TPCE::CRandom", i8, ptr, ptr, %"class.TPCE::CTimerWheel", %"class.std::queue", ptr, ptr }
%"struct.TPCE::TMarketFeedTxnInput" = type { i32, [4 x i8], %"struct.TPCE::TStatusAndTradeType", [4 x i8], [20 x %"struct.TPCE::TTickerEntry"] }
%"struct.TPCE::TStatusAndTradeType" = type { [5 x i8], [4 x i8], [4 x i8], [4 x i8] }
%"class.TPCE::CRandom" = type { i64 }
%"class.TPCE::CTimerWheel" = type <{ %"class.TPCE::CDateTime", %"class.TPCE::CWheelTime", %"class.TPCE::CWheelTime", %"class.TPCE::CWheelTime", %"struct.TPCE::TWheelConfig", [900 x %"class.std::__cxx11::list"], i32, [4 x i8] }>
%"class.TPCE::CDateTime" = type { i32, i32, ptr }
%"class.TPCE::CWheelTime" = type { ptr, i32, i32 }
%"struct.TPCE::TWheelConfig" = type { i32, i32 }
%"class.std::__cxx11::list" = type { %"class.std::__cxx11::_List_base" }
%"class.std::__cxx11::_List_base" = type { %"struct.std::__cxx11::_List_base<TPCE::CTimerWheelTimer<TPCE::TTickerEntry, TPCE::CMEETickerTape> *, std::allocator<TPCE::CTimerWheelTimer<TPCE::TTickerEntry, TPCE::CMEETickerTape> *>>::_List_impl" }
%"struct.std::__cxx11::_List_base<TPCE::CTimerWheelTimer<TPCE::TTickerEntry, TPCE::CMEETickerTape> *, std::allocator<TPCE::CTimerWheelTimer<TPCE::TTickerEntry, TPCE::CMEETickerTape> *>>::_List_impl" = type { %"struct.std::__detail::_List_node_header" }
%"struct.std::__detail::_List_node_header" = type { %"struct.std::__detail::_List_node_base", i64 }
%"struct.std::__detail::_List_node_base" = type { ptr, ptr }
%"class.std::queue" = type { %"class.std::deque" }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<TPCE::TTickerEntry *, std::allocator<TPCE::TTickerEntry *>>::_Deque_impl" }
%"struct.std::_Deque_base<TPCE::TTickerEntry *, std::allocator<TPCE::TTickerEntry *>>::_Deque_impl" = type { %"struct.std::_Deque_base<TPCE::TTickerEntry *, std::allocator<TPCE::TTickerEntry *>>::_Deque_impl_data" }
%"struct.std::_Deque_base<TPCE::TTickerEntry *, std::allocator<TPCE::TTickerEntry *>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator", %"struct.std::_Deque_iterator" }
%"struct.std::_Deque_iterator" = type { ptr, ptr, ptr, ptr }
%"class.TPCE::CMEEPriceBoard" = type { double, %"class.TPCE::CMEESecurity", ptr, i64 }
%"class.TPCE::CMEESecurity" = type { %"class.TPCE::CRandom", %"class.TPCE::CMoney", %"class.TPCE::CMoney", %"class.TPCE::CMoney", i32, i32, ptr, ptr, double }

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4TPCE14CMEETickerTape20AddArtificialEntriesEv(ptr noundef nonnull align 8 dereferenceable(22504) %0) #0 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca i64, align 8
  %4 = alloca %"struct.TPCE::TTickerEntry", align 8
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca %"class.TPCE::CMoney", align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %8 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %4) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  store i32 0, ptr %5, align 4, !tbaa !9
  br label %9

9:                                                ; preds = %26, %1
  %10 = load i32, ptr %5, align 4, !tbaa !9
  %11 = icmp slt i32 %10, 1
  br i1 %11, label %12, label %16

12:                                               ; preds = %9
  %13 = getelementptr inbounds %"class.TPCE::CMEETickerTape", ptr %8, i32 0, i32 10
  %14 = call noundef zeroext i1 @_ZNKSt5queueIPN4TPCE12TTickerEntryESt5dequeIS2_SaIS2_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %13)
  %15 = xor i1 %14, true
  br label %16

16:                                               ; preds = %12, %9
  %17 = phi i1 [ false, %9 ], [ %15, %12 ]
  br i1 %17, label %18, label %30

18:                                               ; preds = %16
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  %19 = getelementptr inbounds %"class.TPCE::CMEETickerTape", ptr %8, i32 0, i32 10
  %20 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5queueIPN4TPCE12TTickerEntryESt5dequeIS2_SaIS2_EEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %19)
  %21 = load ptr, ptr %20, align 8, !tbaa !5
  store ptr %21, ptr %6, align 8, !tbaa !5
  %22 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN4TPCE14CMEETickerTape10AddToBatchEPNS_12TTickerEntryE(ptr noundef nonnull align 8 dereferenceable(22504) %8, ptr noundef %22)
  %23 = load ptr, ptr %6, align 8, !tbaa !5
  %24 = icmp eq ptr %23, null
  br i1 %24, label %26, label %25

25:                                               ; preds = %18
  call void @_ZdlPvm(ptr noundef %23, i64 noundef 32) #7
  br label %26

26:                                               ; preds = %25, %18
  %27 = getelementptr inbounds %"class.TPCE::CMEETickerTape", ptr %8, i32 0, i32 10
  call void @_ZNSt5queueIPN4TPCE12TTickerEntryESt5dequeIS2_SaIS2_EEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %27)
  %28 = load i32, ptr %5, align 4, !tbaa !9
  %29 = add nsw i32 %28, 1
  store i32 %29, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  br label %9, !llvm.loop !11

30:                                               ; preds = %16
  br label %31

31:                                               ; preds = %34, %30
  %32 = load i32, ptr %5, align 4, !tbaa !9
  %33 = icmp slt i32 %32, 1
  br i1 %33, label %34, label %61

34:                                               ; preds = %31
  %35 = getelementptr inbounds %"class.TPCE::CMEETickerTape", ptr %8, i32 0, i32 5
  %36 = call noundef zeroext i1 @_ZN4TPCE7CRandom10RndPercentEi(ptr noundef nonnull align 8 dereferenceable(8) %35, i32 noundef 50)
  %37 = zext i1 %36 to i64
  %38 = select i1 %36, i32 325, i32 425
  %39 = getelementptr inbounds %"struct.TPCE::TTickerEntry", ptr %4, i32 0, i32 1
  store i32 %38, ptr %39, align 8, !tbaa !13
  %40 = getelementptr inbounds %"class.TPCE::CMEETickerTape", ptr %8, i32 0, i32 5
  %41 = getelementptr inbounds %"class.TPCE::CMEETickerTape", ptr %8, i32 0, i32 1
  %42 = load ptr, ptr %41, align 8, !tbaa !16
  %43 = getelementptr inbounds %"class.TPCE::CMEEPriceBoard", ptr %42, i32 0, i32 3
  %44 = load i64, ptr %43, align 8, !tbaa !34
  %45 = sub nsw i64 %44, 1
  %46 = call noundef i64 @_ZN4TPCE7CRandom13RndInt64RangeExx(ptr noundef nonnull align 8 dereferenceable(8) %40, i64 noundef 0, i64 noundef %45)
  store i64 %46, ptr %3, align 8, !tbaa !38
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %47 = getelementptr inbounds %"class.TPCE::CMEETickerTape", ptr %8, i32 0, i32 1
  %48 = load ptr, ptr %47, align 8, !tbaa !16
  %49 = load i64, ptr %3, align 8, !tbaa !38
  %50 = call i64 @_ZN4TPCE14CMEEPriceBoard15GetCurrentPriceEx(ptr noundef nonnull align 8 dereferenceable(88) %48, i64 noundef %49)
  %51 = getelementptr inbounds %"class.TPCE::CMoney", ptr %7, i32 0, i32 0
  store i64 %50, ptr %51, align 8
  %52 = call noundef double @_ZN4TPCE6CMoney12DollarAmountEv(ptr noundef nonnull align 8 dereferenceable(8) %7)
  %53 = getelementptr inbounds %"struct.TPCE::TTickerEntry", ptr %4, i32 0, i32 0
  store double %52, ptr %53, align 8, !tbaa !39
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  %54 = getelementptr inbounds %"class.TPCE::CMEETickerTape", ptr %8, i32 0, i32 1
  %55 = load ptr, ptr %54, align 8, !tbaa !16
  %56 = load i64, ptr %3, align 8, !tbaa !38
  %57 = getelementptr inbounds %"struct.TPCE::TTickerEntry", ptr %4, i32 0, i32 2
  %58 = getelementptr inbounds [16 x i8], ptr %57, i64 0, i64 0
  call void @_ZN4TPCE14CMEEPriceBoard9GetSymbolExPcm(ptr noundef nonnull align 8 dereferenceable(88) %55, i64 noundef %56, ptr noundef %58, i64 noundef 16)
  call void @_ZN4TPCE14CMEETickerTape10AddToBatchEPNS_12TTickerEntryE(ptr noundef nonnull align 8 dereferenceable(22504) %8, ptr noundef %4)
  %59 = load i32, ptr %5, align 4, !tbaa !9
  %60 = add nsw i32 %59, 1
  store i32 %60, ptr %5, align 4, !tbaa !9
  br label %31, !llvm.loop !40

61:                                               ; preds = %31
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  ret void
}

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt5queueIPN4TPCE12TTickerEntryESt5dequeIS2_SaIS2_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80)) #2 align 2

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

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #3

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN4TPCE7CRandom10RndPercentEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #4 align 2

declare noundef i64 @_ZN4TPCE7CRandom13RndInt64RangeExx(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef, i64 noundef) #5

declare i64 @_ZN4TPCE14CMEEPriceBoard15GetCurrentPriceEx(ptr noundef nonnull align 8 dereferenceable(88), i64 noundef) #5

declare void @_ZN4TPCE14CMEEPriceBoard9GetSymbolExPcm(ptr noundef nonnull align 8 dereferenceable(88), i64 noundef, ptr noundef, i64 noundef) #5

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 = { 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 = { nobuiltin nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 = { "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 }
attributes #7 = { builtin 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 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !10, i64 8}
!14 = !{!"_ZTSN4TPCE12TTickerEntryE", !15, i64 0, !10, i64 8, !7, i64 12}
!15 = !{!"double", !7, i64 0}
!16 = !{!17, !6, i64 8}
!17 = !{!"_ZTSN4TPCE14CMEETickerTapeE", !6, i64 0, !6, i64 8, !18, i64 16, !10, i64 688, !10, i64 692, !20, i64 696, !22, i64 704, !6, i64 712, !6, i64 720, !23, i64 728, !27, i64 22408, !6, i64 22488, !6, i64 22496}
!18 = !{!"_ZTSN4TPCE19TMarketFeedTxnInputE", !10, i64 0, !7, i64 4, !19, i64 8, !7, i64 25, !7, i64 32}
!19 = !{!"_ZTSN4TPCE19TStatusAndTradeTypeE", !7, i64 0, !7, i64 5, !7, i64 9, !7, i64 13}
!20 = !{!"_ZTSN4TPCE7CRandomE", !21, i64 0}
!21 = !{!"long long", !7, i64 0}
!22 = !{!"bool", !7, i64 0}
!23 = !{!"_ZTSN4TPCE11CTimerWheelINS_12TTickerEntryENS_14CMEETickerTapeELi900ELi1000EEE", !24, i64 0, !25, i64 16, !25, i64 32, !25, i64 48, !26, i64 64, !7, i64 72, !10, i64 21672}
!24 = !{!"_ZTSN4TPCE9CDateTimeE", !10, i64 0, !10, i64 4, !6, i64 8}
!25 = !{!"_ZTSN4TPCE10CWheelTimeE", !6, i64 0, !10, i64 8, !10, i64 12}
!26 = !{!"_ZTSN4TPCE12TWheelConfigE", !10, i64 0, !10, i64 4}
!27 = !{!"_ZTSSt5queueIPN4TPCE12TTickerEntryESt5dequeIS2_SaIS2_EEE", !28, i64 0}
!28 = !{!"_ZTSSt5dequeIPN4TPCE12TTickerEntryESaIS2_EE", !29, i64 0}
!29 = !{!"_ZTSSt11_Deque_baseIPN4TPCE12TTickerEntryESaIS2_EE", !30, i64 0}
!30 = !{!"_ZTSNSt11_Deque_baseIPN4TPCE12TTickerEntryESaIS2_EE11_Deque_implE", !31, i64 0}
!31 = !{!"_ZTSNSt11_Deque_baseIPN4TPCE12TTickerEntryESaIS2_EE16_Deque_impl_dataE", !6, i64 0, !32, i64 8, !33, i64 16, !33, i64 48}
!32 = !{!"long", !7, i64 0}
!33 = !{!"_ZTSSt15_Deque_iteratorIPN4TPCE12TTickerEntryERS2_PS2_E", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!34 = !{!35, !21, i64 80}
!35 = !{!"_ZTSN4TPCE14CMEEPriceBoardE", !15, i64 0, !36, i64 8, !6, i64 72, !21, i64 80}
!36 = !{!"_ZTSN4TPCE12CMEESecurityE", !20, i64 0, !37, i64 8, !37, i64 16, !37, i64 24, !10, i64 32, !10, i64 36, !6, i64 40, !6, i64 48, !15, i64 56}
!37 = !{!"_ZTSN4TPCE6CMoneyE", !21, i64 0}
!38 = !{!21, !21, i64 0}
!39 = !{!14, !15, i64 0}
!40 = distinct !{!40, !12}


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

%"struct.TPCE::TTickerEntry" = type { double, i32, [16 x i8] }
%"class.TPCE::CMoney" = type { i64 }

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4TPCE14CMEETickerTape20AddArtificialEntriesEv(ptr noundef nonnull align 8 dereferenceable(22504) %0) local_unnamed_addr #0 align 2 {
.critedge:
  %1 = alloca %"struct.TPCE::TTickerEntry", align 8
  %2 = alloca %"class.TPCE::CMoney", align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %1) #6
  %3 = getelementptr inbounds i8, ptr %0, i64 22408
  %4 = tail call noundef zeroext i1 @_ZNKSt5queueIPN4TPCE12TTickerEntryESt5dequeIS2_SaIS2_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %3)
  br i1 %4, label %.critedge10, label %5

5:                                                ; preds = %.critedge
  %6 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5queueIPN4TPCE12TTickerEntryESt5dequeIS2_SaIS2_EEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %3)
  %7 = load ptr, ptr %6, align 8, !tbaa !5
  tail call void @_ZN4TPCE14CMEETickerTape10AddToBatchEPNS_12TTickerEntryE(ptr noundef nonnull align 8 dereferenceable(22504) %0, ptr noundef %7)
  %8 = icmp eq ptr %7, null
  br i1 %8, label %10, label %9

9:                                                ; preds = %5
  tail call void @_ZdlPvm(ptr noundef nonnull %7, i64 noundef 32) #7
  br label %10

10:                                               ; preds = %9, %5
  tail call void @_ZNSt5queueIPN4TPCE12TTickerEntryESt5dequeIS2_SaIS2_EEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %3)
  br label %.critedge11

.critedge10:                                      ; preds = %.critedge
  %11 = getelementptr inbounds i8, ptr %0, i64 696
  %12 = tail call noundef zeroext i1 @_ZN4TPCE7CRandom10RndPercentEi(ptr noundef nonnull align 8 dereferenceable(8) %11, i32 noundef 50)
  %13 = select i1 %12, i32 325, i32 425
  %14 = getelementptr inbounds i8, ptr %1, i64 8
  store i32 %13, ptr %14, align 8, !tbaa !9
  %15 = getelementptr inbounds i8, ptr %0, i64 8
  %16 = load ptr, ptr %15, align 8, !tbaa !13
  %17 = getelementptr inbounds i8, ptr %16, i64 80
  %18 = load i64, ptr %17, align 8, !tbaa !31
  %19 = add nsw i64 %18, -1
  %20 = tail call noundef i64 @_ZN4TPCE7CRandom13RndInt64RangeExx(ptr noundef nonnull align 8 dereferenceable(8) %11, i64 noundef 0, i64 noundef %19)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #6
  %21 = load ptr, ptr %15, align 8, !tbaa !13
  %22 = tail call i64 @_ZN4TPCE14CMEEPriceBoard15GetCurrentPriceEx(ptr noundef nonnull align 8 dereferenceable(88) %21, i64 noundef %20)
  store i64 %22, ptr %2, align 8
  %23 = call noundef double @_ZN4TPCE6CMoney12DollarAmountEv(ptr noundef nonnull align 8 dereferenceable(8) %2)
  store double %23, ptr %1, align 8, !tbaa !35
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  %24 = load ptr, ptr %15, align 8, !tbaa !13
  %25 = getelementptr inbounds i8, ptr %1, i64 12
  call void @_ZN4TPCE14CMEEPriceBoard9GetSymbolExPcm(ptr noundef nonnull align 8 dereferenceable(88) %24, i64 noundef %20, ptr noundef nonnull %25, i64 noundef 16)
  call void @_ZN4TPCE14CMEETickerTape10AddToBatchEPNS_12TTickerEntryE(ptr noundef nonnull align 8 dereferenceable(22504) %0, ptr noundef nonnull %1)
  br label %.critedge11

.critedge11:                                      ; preds = %10, %.critedge10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %1) #6
  ret void
}

; 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 nounwind uwtable
declare dso_local noundef double @_ZN4TPCE6CMoney12DollarAmountEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt5queueIPN4TPCE12TTickerEntryESt5dequeIS2_SaIS2_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #2 align 2

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

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) local_unnamed_addr #3

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN4TPCE7CRandom10RndPercentEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #4 align 2

declare noundef i64 @_ZN4TPCE7CRandom13RndInt64RangeExx(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef, i64 noundef) local_unnamed_addr #5

declare i64 @_ZN4TPCE14CMEEPriceBoard15GetCurrentPriceEx(ptr noundef nonnull align 8 dereferenceable(88), i64 noundef) local_unnamed_addr #5

declare void @_ZN4TPCE14CMEEPriceBoard9GetSymbolExPcm(ptr noundef nonnull align 8 dereferenceable(88), i64 noundef, ptr noundef, i64 noundef) local_unnamed_addr #5

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 = { 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 = { nobuiltin nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 = { "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 }
attributes #7 = { builtin 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, !12, i64 8}
!10 = !{!"_ZTSN4TPCE12TTickerEntryE", !11, i64 0, !12, i64 8, !7, i64 12}
!11 = !{!"double", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !6, i64 8}
!14 = !{!"_ZTSN4TPCE14CMEETickerTapeE", !6, i64 0, !6, i64 8, !15, i64 16, !12, i64 688, !12, i64 692, !17, i64 696, !19, i64 704, !6, i64 712, !6, i64 720, !20, i64 728, !24, i64 22408, !6, i64 22488, !6, i64 22496}
!15 = !{!"_ZTSN4TPCE19TMarketFeedTxnInputE", !12, i64 0, !7, i64 4, !16, i64 8, !7, i64 25, !7, i64 32}
!16 = !{!"_ZTSN4TPCE19TStatusAndTradeTypeE", !7, i64 0, !7, i64 5, !7, i64 9, !7, i64 13}
!17 = !{!"_ZTSN4TPCE7CRandomE", !18, i64 0}
!18 = !{!"long long", !7, i64 0}
!19 = !{!"bool", !7, i64 0}
!20 = !{!"_ZTSN4TPCE11CTimerWheelINS_12TTickerEntryENS_14CMEETickerTapeELi900ELi1000EEE", !21, i64 0, !22, i64 16, !22, i64 32, !22, i64 48, !23, i64 64, !7, i64 72, !12, i64 21672}
!21 = !{!"_ZTSN4TPCE9CDateTimeE", !12, i64 0, !12, i64 4, !6, i64 8}
!22 = !{!"_ZTSN4TPCE10CWheelTimeE", !6, i64 0, !12, i64 8, !12, i64 12}
!23 = !{!"_ZTSN4TPCE12TWheelConfigE", !12, i64 0, !12, i64 4}
!24 = !{!"_ZTSSt5queueIPN4TPCE12TTickerEntryESt5dequeIS2_SaIS2_EEE", !25, i64 0}
!25 = !{!"_ZTSSt5dequeIPN4TPCE12TTickerEntryESaIS2_EE", !26, i64 0}
!26 = !{!"_ZTSSt11_Deque_baseIPN4TPCE12TTickerEntryESaIS2_EE", !27, i64 0}
!27 = !{!"_ZTSNSt11_Deque_baseIPN4TPCE12TTickerEntryESaIS2_EE11_Deque_implE", !28, i64 0}
!28 = !{!"_ZTSNSt11_Deque_baseIPN4TPCE12TTickerEntryESaIS2_EE16_Deque_impl_dataE", !6, i64 0, !29, i64 8, !30, i64 16, !30, i64 48}
!29 = !{!"long", !7, i64 0}
!30 = !{!"_ZTSSt15_Deque_iteratorIPN4TPCE12TTickerEntryERS2_PS2_E", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!31 = !{!32, !18, i64 80}
!32 = !{!"_ZTSN4TPCE14CMEEPriceBoardE", !11, i64 0, !33, i64 8, !6, i64 72, !18, i64 80}
!33 = !{!"_ZTSN4TPCE12CMEESecurityE", !17, i64 0, !34, i64 8, !34, i64 16, !34, i64 24, !12, i64 32, !12, i64 36, !6, i64 40, !6, i64 48, !11, i64 56}
!34 = !{!"_ZTSN4TPCE6CMoneyE", !18, i64 0}
!35 = !{!10, !11, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,SROAPass,SimplifyCFGPass,TailCallElimPass