; LLVM IR from AsyncAlgoTrading/aat :: aat/cpp/src/core/order_book (price_level)

; 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.std::_Deque_iterator" = type { ptr, ptr, ptr, ptr }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"struct.aat::core::Order" = type <{ %"struct.aat::core::_EventTarget", %"class.std::__cxx11::basic_string", %"class.std::chrono::time_point", i32, [4 x i8], %"struct.aat::core::Instrument", %"struct.aat::core::ExchangeType", double, double, i32, i32, i32, [4 x i8], %"class.std::shared_ptr", double, double, i8, [7 x i8] }>
%"struct.aat::core::_EventTarget" = type { ptr }
%"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::chrono::time_point" = type { %"class.std::chrono::duration" }
%"class.std::chrono::duration" = type { i64 }
%"struct.aat::core::Instrument" = type { ptr, %"class.std::__cxx11::basic_string", i32, %"class.std::vector.204" }
%"class.std::vector.204" = type { %"struct.std::_Vector_base.205" }
%"struct.std::_Vector_base.205" = type { %"struct.std::_Vector_base<aat::core::ExchangeType, std::allocator<aat::core::ExchangeType>>::_Vector_impl" }
%"struct.std::_Vector_base<aat::core::ExchangeType, std::allocator<aat::core::ExchangeType>>::_Vector_impl" = type { %"struct.std::_Vector_base<aat::core::ExchangeType, std::allocator<aat::core::ExchangeType>>::_Vector_impl_data" }
%"struct.std::_Vector_base<aat::core::ExchangeType, std::allocator<aat::core::ExchangeType>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.aat::core::ExchangeType" = type { ptr, %"class.std::__cxx11::basic_string" }
%"class.aat::core::PriceLevel" = type { double, ptr, %"class.std::deque", %"class.std::deque", %"class.std::deque.183", %"class.std::vector.189", %"class.std::vector.189" }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<std::shared_ptr<aat::core::Order>, std::allocator<std::shared_ptr<aat::core::Order>>>::_Deque_impl" }
%"struct.std::_Deque_base<std::shared_ptr<aat::core::Order>, std::allocator<std::shared_ptr<aat::core::Order>>>::_Deque_impl" = type { %"struct.std::_Deque_base<std::shared_ptr<aat::core::Order>, std::allocator<std::shared_ptr<aat::core::Order>>>::_Deque_impl_data" }
%"struct.std::_Deque_base<std::shared_ptr<aat::core::Order>, std::allocator<std::shared_ptr<aat::core::Order>>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator", %"struct.std::_Deque_iterator" }
%"class.std::deque.183" = type { %"class.std::_Deque_base.184" }
%"class.std::_Deque_base.184" = type { %"struct.std::_Deque_base<double, std::allocator<double>>::_Deque_impl" }
%"struct.std::_Deque_base<double, std::allocator<double>>::_Deque_impl" = type { %"struct.std::_Deque_base<double, std::allocator<double>>::_Deque_impl_data" }
%"struct.std::_Deque_base<double, std::allocator<double>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator.188", %"struct.std::_Deque_iterator.188" }
%"struct.std::_Deque_iterator.188" = type { ptr, ptr, ptr, ptr }
%"class.std::vector.189" = type { %"struct.std::_Vector_base.190" }
%"struct.std::_Vector_base.190" = type { %"struct.std::_Vector_base<std::shared_ptr<aat::core::Order>, std::allocator<std::shared_ptr<aat::core::Order>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::shared_ptr<aat::core::Order>, std::allocator<std::shared_ptr<aat::core::Order>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::shared_ptr<aat::core::Order>, std::allocator<std::shared_ptr<aat::core::Order>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::shared_ptr<aat::core::Order>, std::allocator<std::shared_ptr<aat::core::Order>>>::_Vector_impl_data" = type { ptr, ptr, ptr }

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZStneRKSt15_Deque_iteratorISt10shared_ptrIN3aat4core5OrderEERS4_PS4_ES9_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt5dequeISt10shared_ptrIN3aat4core5OrderEESaIS4_EE5beginEv(ptr dead_on_unwind noalias writable sret(%"struct.std::_Deque_iterator") align 8, ptr noundef nonnull align 8 dereferenceable(80)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt5dequeISt10shared_ptrIN3aat4core5OrderEESaIS4_EE3endEv(ptr dead_on_unwind noalias writable sret(%"struct.std::_Deque_iterator") align 8, ptr noundef nonnull align 8 dereferenceable(80)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN3aat4core10PriceLevel4findESt10shared_ptrINS0_5OrderEE(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr") align 8 %0, ptr noundef nonnull align 8 dereferenceable(304) %1, ptr noundef %2) #1 align 2 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca %"struct.std::_Deque_iterator", align 8
  %9 = alloca %"struct.std::_Deque_iterator", align 8
  %10 = alloca i32, align 4
  %11 = alloca i1, align 1
  store ptr %0, ptr %4, align 8
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %12 = load ptr, ptr %5, align 8
  %13 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3aat4core5OrderELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %2) #3
  %14 = getelementptr inbounds %"struct.aat::core::Order", ptr %13, i32 0, i32 8
  %15 = load double, ptr %14, align 8, !tbaa !9
  %16 = getelementptr inbounds %"class.aat::core::PriceLevel", ptr %12, i32 0, i32 0
  %17 = load double, ptr %16, align 8, !tbaa !33
  %18 = fcmp une double %15, %17
  br i1 %18, label %19, label %20

19:                                               ; preds = %3
  call void @_ZNSt10shared_ptrIN3aat4core5OrderEEC2EDn(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr null) #3
  br label %47

20:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  %21 = getelementptr inbounds %"class.aat::core::PriceLevel", ptr %12, i32 0, i32 2
  store ptr %21, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %8) #3
  %22 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZNSt5dequeISt10shared_ptrIN3aat4core5OrderEESaIS4_EE5beginEv(ptr dead_on_unwind writable sret(%"struct.std::_Deque_iterator") align 8 %8, ptr noundef nonnull align 8 dereferenceable(80) %22) #3
  call void @llvm.lifetime.start.p0(i64 32, ptr %9) #3
  %23 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZNSt5dequeISt10shared_ptrIN3aat4core5OrderEESaIS4_EE3endEv(ptr dead_on_unwind writable sret(%"struct.std::_Deque_iterator") align 8 %9, ptr noundef nonnull align 8 dereferenceable(80) %23) #3
  br label %24

24:                                               ; preds = %42, %20
  %25 = call noundef zeroext i1 @_ZStneRKSt15_Deque_iteratorISt10shared_ptrIN3aat4core5OrderEERS4_PS4_ES9_(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull align 8 dereferenceable(32) %9) #3
  br i1 %25, label %27, label %26

26:                                               ; preds = %24
  store i32 2, ptr %10, align 4
  br label %44

27:                                               ; preds = %24
  store i1 false, ptr %11, align 1
  %28 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt15_Deque_iteratorISt10shared_ptrIN3aat4core5OrderEERS4_PS4_EdeEv(ptr noundef nonnull align 8 dereferenceable(32) %8) #3
  call void @_ZNSt10shared_ptrIN3aat4core5OrderEEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(16) %28) #3
  %29 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3aat4core5OrderELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %0) #3
  %30 = getelementptr inbounds %"struct.aat::core::Order", ptr %29, i32 0, i32 1
  %31 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3aat4core5OrderELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %2) #3
  %32 = getelementptr inbounds %"struct.aat::core::Order", ptr %31, i32 0, i32 1
  %33 = call noundef zeroext i1 @_ZSteqIcEN9__gnu_cxx11__enable_ifIXsr9__is_charIT_EE7__valueEbE6__typeERKNSt7__cxx1112basic_stringIS2_St11char_traitsIS2_ESaIS2_EEESC_(ptr noundef nonnull align 8 dereferenceable(32) %30, ptr noundef nonnull align 8 dereferenceable(32) %32) #3
  br i1 %33, label %34, label %35

34:                                               ; preds = %27
  store i1 true, ptr %11, align 1
  store i32 1, ptr %10, align 4
  br label %36

35:                                               ; preds = %27
  store i32 0, ptr %10, align 4
  br label %36

36:                                               ; preds = %35, %34
  %37 = load i1, ptr %11, align 1
  br i1 %37, label %39, label %38

38:                                               ; preds = %36
  call void @_ZNSt12__shared_ptrIN3aat4core5OrderELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %0) #3
  br label %39

39:                                               ; preds = %38, %36
  %40 = load i32, ptr %10, align 4
  switch i32 %40, label %44 [
    i32 0, label %41
  ]

41:                                               ; preds = %39
  br label %42

42:                                               ; preds = %41
  %43 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt15_Deque_iteratorISt10shared_ptrIN3aat4core5OrderEERS4_PS4_EppEv(ptr noundef nonnull align 8 dereferenceable(32) %8) #3
  br label %24

44:                                               ; preds = %39, %26
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 32, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  %45 = load i32, ptr %10, align 4
  switch i32 %45, label %48 [
    i32 2, label %46
    i32 1, label %47
  ]

46:                                               ; preds = %44
  call void @_ZNSt10shared_ptrIN3aat4core5OrderEEC2EDn(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr null) #3
  br label %47

47:                                               ; preds = %46, %44, %19
  ret void

48:                                               ; preds = %44
  unreachable
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt15_Deque_iteratorISt10shared_ptrIN3aat4core5OrderEERS4_PS4_EdeEv(ptr noundef nonnull align 8 dereferenceable(32)) #1 align 2

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #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, !25, i64 176}
!10 = !{!"_ZTSN3aat4core5OrderE", !11, i64 0, !12, i64 8, !15, i64 40, !17, i64 48, !18, i64 56, !24, i64 128, !25, i64 168, !25, i64 176, !26, i64 184, !27, i64 188, !28, i64 192, !29, i64 200, !25, i64 216, !25, i64 224, !32, i64 232}
!11 = !{!"_ZTSN3aat4core12_EventTargetE"}
!12 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !13, i64 0, !14, i64 8, !7, i64 16}
!13 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!"_ZTSNSt6chrono10time_pointINS_3_V212system_clockENS_8durationIlSt5ratioILl1ELl1000000000EEEEEE", !16, i64 0}
!16 = !{!"_ZTSNSt6chrono8durationIlSt5ratioILl1ELl1000000000EEEE", !14, i64 0}
!17 = !{!"_ZTSN3aat6config8DataTypeE", !7, i64 0}
!18 = !{!"_ZTSN3aat4core10InstrumentE", !12, i64 8, !19, i64 40, !20, i64 48}
!19 = !{!"_ZTSN3aat6config14InstrumentTypeE", !7, i64 0}
!20 = !{!"_ZTSSt6vectorIN3aat4core12ExchangeTypeESaIS2_EE", !21, i64 0}
!21 = !{!"_ZTSSt12_Vector_baseIN3aat4core12ExchangeTypeESaIS2_EE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIN3aat4core12ExchangeTypeESaIS2_EE12_Vector_implE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIN3aat4core12ExchangeTypeESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!24 = !{!"_ZTSN3aat4core12ExchangeTypeE", !12, i64 8}
!25 = !{!"double", !7, i64 0}
!26 = !{!"_ZTSN3aat6config4SideE", !7, i64 0}
!27 = !{!"_ZTSN3aat6config9OrderTypeE", !7, i64 0}
!28 = !{!"_ZTSN3aat6config9OrderFlagE", !7, i64 0}
!29 = !{!"_ZTSSt10shared_ptrIN3aat4core5OrderEE", !30, i64 0}
!30 = !{!"_ZTSSt12__shared_ptrIN3aat4core5OrderELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !31, i64 8}
!31 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0}
!32 = !{!"bool", !7, i64 0}
!33 = !{!34, !25, i64 0}
!34 = !{!"_ZTSN3aat4core10PriceLevelE", !25, i64 0, !6, i64 8, !35, i64 16, !35, i64 96, !40, i64 176, !45, i64 256, !45, i64 280}
!35 = !{!"_ZTSSt5dequeISt10shared_ptrIN3aat4core5OrderEESaIS4_EE", !36, i64 0}
!36 = !{!"_ZTSSt11_Deque_baseISt10shared_ptrIN3aat4core5OrderEESaIS4_EE", !37, i64 0}
!37 = !{!"_ZTSNSt11_Deque_baseISt10shared_ptrIN3aat4core5OrderEESaIS4_EE11_Deque_implE", !38, i64 0}
!38 = !{!"_ZTSNSt11_Deque_baseISt10shared_ptrIN3aat4core5OrderEESaIS4_EE16_Deque_impl_dataE", !6, i64 0, !14, i64 8, !39, i64 16, !39, i64 48}
!39 = !{!"_ZTSSt15_Deque_iteratorISt10shared_ptrIN3aat4core5OrderEERS4_PS4_E", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!40 = !{!"_ZTSSt5dequeIdSaIdEE", !41, i64 0}
!41 = !{!"_ZTSSt11_Deque_baseIdSaIdEE", !42, i64 0}
!42 = !{!"_ZTSNSt11_Deque_baseIdSaIdEE11_Deque_implE", !43, i64 0}
!43 = !{!"_ZTSNSt11_Deque_baseIdSaIdEE16_Deque_impl_dataE", !6, i64 0, !14, i64 8, !44, i64 16, !44, i64 48}
!44 = !{!"_ZTSSt15_Deque_iteratorIdRdPdE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!45 = !{!"_ZTSSt6vectorISt10shared_ptrIN3aat4core5OrderEESaIS4_EE", !46, i64 0}
!46 = !{!"_ZTSSt12_Vector_baseISt10shared_ptrIN3aat4core5OrderEESaIS4_EE", !47, i64 0}
!47 = !{!"_ZTSNSt12_Vector_baseISt10shared_ptrIN3aat4core5OrderEESaIS4_EE12_Vector_implE", !48, i64 0}
!48 = !{!"_ZTSNSt12_Vector_baseISt10shared_ptrIN3aat4core5OrderEESaIS4_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}


; 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.std::_Deque_iterator" = type { ptr, ptr, ptr, ptr }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZStneRKSt15_Deque_iteratorISt10shared_ptrIN3aat4core5OrderEERS4_PS4_ES9_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt5dequeISt10shared_ptrIN3aat4core5OrderEESaIS4_EE5beginEv(ptr dead_on_unwind noalias writable sret(%"struct.std::_Deque_iterator") align 8, ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt5dequeISt10shared_ptrIN3aat4core5OrderEESaIS4_EE3endEv(ptr dead_on_unwind noalias writable sret(%"struct.std::_Deque_iterator") align 8, ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN3aat4core10PriceLevel4findESt10shared_ptrINS0_5OrderEE(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr") align 8 %0, ptr noundef nonnull align 8 dereferenceable(304) %1, ptr noundef nonnull %2) local_unnamed_addr #1 align 2 {
  %4 = alloca %"struct.std::_Deque_iterator", align 8
  %5 = alloca %"struct.std::_Deque_iterator", align 8
  %6 = tail call noundef ptr @_ZNKSt19__shared_ptr_accessIN3aat4core5OrderELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %2) #3
  %7 = getelementptr inbounds i8, ptr %6, i64 176
  %8 = load double, ptr %7, align 8, !tbaa !5
  %9 = load double, ptr %1, align 8, !tbaa !32
  %10 = fcmp une double %8, %9
  br i1 %10, label %11, label %12

11:                                               ; preds = %3
  tail call void @_ZNSt10shared_ptrIN3aat4core5OrderEEC2EDn(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr null) #3
  br label %24

12:                                               ; preds = %3
  %13 = getelementptr inbounds i8, ptr %1, i64 16
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #3
  call void @_ZNSt5dequeISt10shared_ptrIN3aat4core5OrderEESaIS4_EE5beginEv(ptr dead_on_unwind nonnull writable sret(%"struct.std::_Deque_iterator") align 8 %4, ptr noundef nonnull align 8 dereferenceable(80) %13) #3
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #3
  call void @_ZNSt5dequeISt10shared_ptrIN3aat4core5OrderEESaIS4_EE3endEv(ptr dead_on_unwind nonnull writable sret(%"struct.std::_Deque_iterator") align 8 %5, ptr noundef nonnull align 8 dereferenceable(80) %13) #3
  %14 = call noundef zeroext i1 @_ZStneRKSt15_Deque_iteratorISt10shared_ptrIN3aat4core5OrderEERS4_PS4_ES9_(ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull align 8 dereferenceable(32) %5) #3
  br i1 %14, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %12, %21
  %15 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt15_Deque_iteratorISt10shared_ptrIN3aat4core5OrderEERS4_PS4_EdeEv(ptr noundef nonnull align 8 dereferenceable(32) %4) #3
  call void @_ZNSt10shared_ptrIN3aat4core5OrderEEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(16) %15) #3
  %16 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3aat4core5OrderELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %0) #3
  %17 = getelementptr inbounds i8, ptr %16, i64 8
  %18 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3aat4core5OrderELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %2) #3
  %19 = getelementptr inbounds i8, ptr %18, i64 8
  %20 = call noundef zeroext i1 @_ZSteqIcEN9__gnu_cxx11__enable_ifIXsr9__is_charIT_EE7__valueEbE6__typeERKNSt7__cxx1112basic_stringIS2_St11char_traitsIS2_ESaIS2_EEESC_(ptr noundef nonnull align 8 dereferenceable(32) %17, ptr noundef nonnull align 8 dereferenceable(32) %19) #3
  br i1 %20, label %.critedge, label %21

21:                                               ; preds = %.lr.ph
  call void @_ZNSt12__shared_ptrIN3aat4core5OrderELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %0) #3
  %22 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt15_Deque_iteratorISt10shared_ptrIN3aat4core5OrderEERS4_PS4_EppEv(ptr noundef nonnull align 8 dereferenceable(32) %4) #3
  %23 = call noundef zeroext i1 @_ZStneRKSt15_Deque_iteratorISt10shared_ptrIN3aat4core5OrderEERS4_PS4_ES9_(ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull align 8 dereferenceable(32) %5) #3
  br i1 %23, label %.lr.ph, label %._crit_edge

.critedge:                                        ; preds = %.lr.ph
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #3
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #3
  br label %24

._crit_edge:                                      ; preds = %21, %12
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #3
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #3
  call void @_ZNSt10shared_ptrIN3aat4core5OrderEEC2EDn(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr null) #3
  br label %24

24:                                               ; preds = %.critedge, %._crit_edge, %11
  ret void
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt15_Deque_iteratorISt10shared_ptrIN3aat4core5OrderEERS4_PS4_EdeEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1 align 2

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #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, !24, i64 176}
!6 = !{!"_ZTSN3aat4core5OrderE", !7, i64 0, !8, i64 8, !14, i64 40, !16, i64 48, !17, i64 56, !23, i64 128, !24, i64 168, !24, i64 176, !25, i64 184, !26, i64 188, !27, i64 192, !28, i64 200, !24, i64 216, !24, i64 224, !31, i64 232}
!7 = !{!"_ZTSN3aat4core12_EventTargetE"}
!8 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !9, i64 0, !13, i64 8, !11, i64 16}
!9 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !10, i64 0}
!10 = !{!"any pointer", !11, i64 0}
!11 = !{!"omnipotent char", !12, i64 0}
!12 = !{!"Simple C++ TBAA"}
!13 = !{!"long", !11, i64 0}
!14 = !{!"_ZTSNSt6chrono10time_pointINS_3_V212system_clockENS_8durationIlSt5ratioILl1ELl1000000000EEEEEE", !15, i64 0}
!15 = !{!"_ZTSNSt6chrono8durationIlSt5ratioILl1ELl1000000000EEEE", !13, i64 0}
!16 = !{!"_ZTSN3aat6config8DataTypeE", !11, i64 0}
!17 = !{!"_ZTSN3aat4core10InstrumentE", !8, i64 8, !18, i64 40, !19, i64 48}
!18 = !{!"_ZTSN3aat6config14InstrumentTypeE", !11, i64 0}
!19 = !{!"_ZTSSt6vectorIN3aat4core12ExchangeTypeESaIS2_EE", !20, i64 0}
!20 = !{!"_ZTSSt12_Vector_baseIN3aat4core12ExchangeTypeESaIS2_EE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIN3aat4core12ExchangeTypeESaIS2_EE12_Vector_implE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIN3aat4core12ExchangeTypeESaIS2_EE17_Vector_impl_dataE", !10, i64 0, !10, i64 8, !10, i64 16}
!23 = !{!"_ZTSN3aat4core12ExchangeTypeE", !8, i64 8}
!24 = !{!"double", !11, i64 0}
!25 = !{!"_ZTSN3aat6config4SideE", !11, i64 0}
!26 = !{!"_ZTSN3aat6config9OrderTypeE", !11, i64 0}
!27 = !{!"_ZTSN3aat6config9OrderFlagE", !11, i64 0}
!28 = !{!"_ZTSSt10shared_ptrIN3aat4core5OrderEE", !29, i64 0}
!29 = !{!"_ZTSSt12__shared_ptrIN3aat4core5OrderELN9__gnu_cxx12_Lock_policyE2EE", !10, i64 0, !30, i64 8}
!30 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !10, i64 0}
!31 = !{!"bool", !11, i64 0}
!32 = !{!33, !24, i64 0}
!33 = !{!"_ZTSN3aat4core10PriceLevelE", !24, i64 0, !10, i64 8, !34, i64 16, !34, i64 96, !39, i64 176, !44, i64 256, !44, i64 280}
!34 = !{!"_ZTSSt5dequeISt10shared_ptrIN3aat4core5OrderEESaIS4_EE", !35, i64 0}
!35 = !{!"_ZTSSt11_Deque_baseISt10shared_ptrIN3aat4core5OrderEESaIS4_EE", !36, i64 0}
!36 = !{!"_ZTSNSt11_Deque_baseISt10shared_ptrIN3aat4core5OrderEESaIS4_EE11_Deque_implE", !37, i64 0}
!37 = !{!"_ZTSNSt11_Deque_baseISt10shared_ptrIN3aat4core5OrderEESaIS4_EE16_Deque_impl_dataE", !10, i64 0, !13, i64 8, !38, i64 16, !38, i64 48}
!38 = !{!"_ZTSSt15_Deque_iteratorISt10shared_ptrIN3aat4core5OrderEERS4_PS4_E", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24}
!39 = !{!"_ZTSSt5dequeIdSaIdEE", !40, i64 0}
!40 = !{!"_ZTSSt11_Deque_baseIdSaIdEE", !41, i64 0}
!41 = !{!"_ZTSNSt11_Deque_baseIdSaIdEE11_Deque_implE", !42, i64 0}
!42 = !{!"_ZTSNSt11_Deque_baseIdSaIdEE16_Deque_impl_dataE", !10, i64 0, !13, i64 8, !43, i64 16, !43, i64 48}
!43 = !{!"_ZTSSt15_Deque_iteratorIdRdPdE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24}
!44 = !{!"_ZTSSt6vectorISt10shared_ptrIN3aat4core5OrderEESaIS4_EE", !45, i64 0}
!45 = !{!"_ZTSSt12_Vector_baseISt10shared_ptrIN3aat4core5OrderEESaIS4_EE", !46, i64 0}
!46 = !{!"_ZTSNSt12_Vector_baseISt10shared_ptrIN3aat4core5OrderEESaIS4_EE12_Vector_implE", !47, i64 0}
!47 = !{!"_ZTSNSt12_Vector_baseISt10shared_ptrIN3aat4core5OrderEESaIS4_EE17_Vector_impl_dataE", !10, i64 0, !10, i64 8, !10, i64 16}


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