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

; 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::_List_iterator" = type { ptr }
%"class.TPCE::CMoney" = type { i64 }
%"struct.std::_List_const_iterator" = type { ptr }
%"struct.TPCE::THoldingInfo" = type { i64, i32, %"class.TPCE::CMoney", %"class.TPCE::CDateTime", i64 }
%"class.TPCE::CDateTime" = type { i32, i32, ptr }
%"class.TPCE::CTradeGen" = type <{ %"class.TPCE::CRandom", %"class.TPCE::CAddressTable", %"class.TPCE::CCustomerSelection", %"class.TPCE::CCustomerTable", %"class.TPCE::CCustomerTaxratesTable", %"class.TPCE::CCustomerAccountsAndPermissionsTable", %"class.TPCE::CHoldingsAndTradesTable", %"class.TPCE::CBrokersTable", %"class.TPCE::CSecurityTable", %"class.TPCE::CPerson", ptr, ptr, ptr, ptr, ptr, ptr, ptr, i64, i64, i64, i64, i32, i32, i32, i32, double, double, %"class.TPCE::CDateTime", double, %"class.std::priority_queue", i64, i64, i64, i32, [4 x i8], ptr, %"struct.TPCE::TTradeInfo", %"struct.TPCE::TAdditionalTradeInfo", %"struct.TPCE::TTradeRow", %"struct.TPCE::HOLDING_ROW", %"struct.TPCE::HOLDING_SUMMARY_ROW", i32, i32, i32, i32, %"class.TPCE::CMEESecurity", i32, i32, %"struct.std::_List_iterator", i32, i32, i64, i32, [4 x i8] }>
%"class.TPCE::CRandom" = type { i64 }
%"class.TPCE::CAddressTable" = type { %"class.TPCE::TableTemplate", %"class.TPCE::CDateTime", ptr, ptr, ptr, ptr, i64, i64, i8, i8, i64, i32, i64, i8, i32, i64, ptr }
%"class.TPCE::TableTemplate" = type { ptr, %"struct.TPCE::ADDRESS_ROW", i64, i8, %"class.TPCE::CRandom" }
%"struct.TPCE::ADDRESS_ROW" = type { i64, [81 x i8], [81 x i8], [13 x i8], [81 x i8] }
%"class.TPCE::CCustomerSelection" = type { ptr, i64, i64, i8, i32, i64, i64 }
%"class.TPCE::CCustomerTable" = type { %"class.TPCE::TableTemplate.0", i64, %"class.TPCE::CPerson", ptr, i64, i64, i64, i32, ptr, %"class.TPCE::CCustomerSelection" }
%"class.TPCE::TableTemplate.0" = type { ptr, %"struct.TPCE::CUSTOMER_ROW", i64, i8, %"class.TPCE::CRandom" }
%"struct.TPCE::CUSTOMER_ROW" = type <{ i64, [21 x i8], [5 x i8], [26 x i8], [21 x i8], [2 x i8], i8, i8, [3 x i8], %"class.TPCE::CDateTime", i64, [4 x i8], [4 x i8], [11 x i8], [6 x i8], [4 x i8], [4 x i8], [11 x i8], [6 x i8], [4 x i8], [4 x i8], [11 x i8], [6 x i8], [51 x i8], [51 x i8], [7 x i8] }>
%"class.TPCE::CCustomerTaxratesTable" = type { %"class.TPCE::TableTemplate.1", %"class.TPCE::CCustomerTable", %"class.TPCE::CAddressTable", ptr, ptr }
%"class.TPCE::TableTemplate.1" = type { ptr, %"struct.TPCE::CUSTOMER_TAXRATE_ROWS", i64, i8, %"class.TPCE::CRandom" }
%"struct.TPCE::CUSTOMER_TAXRATE_ROWS" = type { [2 x %"struct.TPCE::CUSTOMER_TAXRATE_ROW"] }
%"struct.TPCE::CUSTOMER_TAXRATE_ROW" = type { [5 x i8], i64 }
%"class.TPCE::CCustomerAccountsAndPermissionsTable" = type { %"class.TPCE::TableTemplate.2", ptr, ptr, i64, i64, i64, i32, i32, %"class.TPCE::CCustomerTable", %"class.TPCE::CPerson", i32, i64, %"class.TPCE::CAddressTable", i32, %"class.TPCE::CCustomerSelection", i8, i32, i64, ptr, i32, i64, ptr }
%"class.TPCE::TableTemplate.2" = type { ptr, %"struct.TPCE::CUSTOMER_ACCOUNT_AND_PERMISSION_ROW", i64, i8, %"class.TPCE::CRandom" }
%"struct.TPCE::CUSTOMER_ACCOUNT_AND_PERMISSION_ROW" = type { %"struct.TPCE::CUSTOMER_ACCOUNT_ROW", [4 x %"struct.TPCE::ACCOUNT_PERMISSION_ROW"] }
%"struct.TPCE::CUSTOMER_ACCOUNT_ROW" = type { i64, i64, i64, [51 x i8], i8, double }
%"struct.TPCE::ACCOUNT_PERMISSION_ROW" = type { i64, [5 x i8], [21 x i8], [26 x i8], [21 x i8] }
%"class.TPCE::CHoldingsAndTradesTable" = type { %"class.TPCE::CRandom", %"class.TPCE::CCustomerAccountsAndPermissionsTable", i64, i32, [18 x i64], i8, i64, i32, ptr, i64, i32, ptr }
%"class.TPCE::CBrokersTable" = type { %"class.TPCE::TableTemplate.3", i64, i64, i64, %"class.TPCE::CPerson", ptr, ptr, ptr }
%"class.TPCE::TableTemplate.3" = type { ptr, %"struct.TPCE::BROKER_ROW", i64, i8, %"class.TPCE::CRandom" }
%"struct.TPCE::BROKER_ROW" = type { i64, [5 x i8], [50 x i8], i32, double }
%"class.TPCE::CSecurityTable" = type { %"class.TPCE::TableTemplate.4", i64, i64, ptr, ptr, %"class.TPCE::CDateTime", i32, i32, i32, i64 }
%"class.TPCE::TableTemplate.4" = type { ptr, %"struct.TPCE::SECURITY_ROW", i64, i8, %"class.TPCE::CRandom" }
%"struct.TPCE::SECURITY_ROW" = type { [16 x i8], [7 x i8], [5 x i8], [71 x i8], [7 x i8], i64, i64, %"class.TPCE::CDateTime", %"class.TPCE::CDateTime", double, float, %"class.TPCE::CDateTime", float, %"class.TPCE::CDateTime", double, double }
%"class.TPCE::CPerson" = type { ptr, ptr, ptr, %"class.TPCE::CRandom", i8, i32, i64, ptr, ptr }
%"class.std::priority_queue" = type <{ %"class.std::vector", [8 x i8] }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<TPCE::TTradeInfo, std::allocator<TPCE::TTradeInfo>>::_Vector_impl" }
%"struct.std::_Vector_base<TPCE::TTradeInfo, std::allocator<TPCE::TTradeInfo>>::_Vector_impl" = type { %"struct.std::_Vector_base<TPCE::TTradeInfo, std::allocator<TPCE::TTradeInfo>>::_Vector_impl_data" }
%"struct.std::_Vector_base<TPCE::TTradeInfo, std::allocator<TPCE::TTradeInfo>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.TPCE::TTradeInfo" = type <{ i64, i32, i32, double, double, double, i64, i32, i32, %"class.TPCE::CMoney", %"class.TPCE::CMoney", i64, i32, [4 x i8], i64, i8, [7 x i8] }>
%"struct.TPCE::TAdditionalTradeInfo" = type { %"class.TPCE::CMoney", %"class.TPCE::CMoney", i64, i32, %"class.TPCE::CMoney", %"class.TPCE::CMoney", %"class.TPCE::CMoney", %"class.TPCE::CMoney" }
%"struct.TPCE::TTradeRow" = type { %"struct.TPCE::TRADE_ROW", %"struct.TPCE::TRADE_REQUEST_ROW", [3 x %"struct.TPCE::TRADE_HISTORY_ROW"], %"struct.TPCE::SETTLEMENT_ROW", %"struct.TPCE::CASH_TRANSACTION_ROW", [8 x %"struct.TPCE::HOLDING_HISTORY_ROW"] }
%"struct.TPCE::TRADE_ROW" = type <{ i64, %"class.TPCE::CDateTime", [5 x i8], [4 x i8], i8, [16 x i8], [2 x i8], i32, double, i64, [50 x i8], [6 x i8], double, double, double, double, i8, [7 x i8] }>
%"struct.TPCE::TRADE_REQUEST_ROW" = type { i64, [4 x i8], [16 x i8], i32, double, i64 }
%"struct.TPCE::TRADE_HISTORY_ROW" = type <{ i64, %"class.TPCE::CDateTime", [5 x i8], [3 x i8] }>
%"struct.TPCE::SETTLEMENT_ROW" = type { i64, [41 x i8], %"class.TPCE::CDateTime", double }
%"struct.TPCE::CASH_TRANSACTION_ROW" = type <{ i64, %"class.TPCE::CDateTime", double, [101 x i8], [3 x i8] }>
%"struct.TPCE::HOLDING_HISTORY_ROW" = type { i64, i64, i32, i32 }
%"struct.TPCE::HOLDING_ROW" = type <{ i64, i64, [16 x i8], %"class.TPCE::CDateTime", double, i32, [4 x i8] }>
%"struct.TPCE::HOLDING_SUMMARY_ROW" = type { i64, [16 x i8], i32 }
%"class.TPCE::CMEESecurity" = type { %"class.TPCE::CRandom", %"class.TPCE::CMoney", %"class.TPCE::CMoney", %"class.TPCE::CMoney", i32, i32, ptr, ptr, double }

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #0

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: nounwind
declare void @_ZN4TPCE9CDateTimeD1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #3

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4TPCE9CTradeGen14UpdateHoldingsEv(ptr noundef nonnull align 8 dereferenceable(7356) %0) #4 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca %"struct.std::_List_iterator", align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca %"struct.std::_List_iterator", align 8
  %8 = alloca %"class.TPCE::CMoney", align 8
  %9 = alloca %"class.TPCE::CMoney", align 8
  %10 = alloca %"class.TPCE::CMoney", align 8
  %11 = alloca %"class.TPCE::CMoney", align 8
  %12 = alloca %"class.TPCE::CMoney", align 8
  %13 = alloca %"class.TPCE::CMoney", align 8
  %14 = alloca %"class.TPCE::CMoney", align 8
  %15 = alloca %"class.TPCE::CMoney", align 8
  %16 = alloca %"struct.std::_List_iterator", align 8
  %17 = alloca %"struct.std::_List_const_iterator", align 8
  %18 = alloca %"struct.std::_List_iterator", align 8
  %19 = alloca %"struct.TPCE::THoldingInfo", align 8
  %20 = alloca ptr, align 8
  %21 = alloca i32, align 4
  %22 = alloca %"class.TPCE::CMoney", align 8
  %23 = alloca %"class.TPCE::CMoney", align 8
  %24 = alloca %"class.TPCE::CMoney", align 8
  %25 = alloca %"class.TPCE::CMoney", align 8
  %26 = alloca %"class.TPCE::CMoney", align 8
  %27 = alloca %"class.TPCE::CMoney", align 8
  %28 = alloca %"class.TPCE::CMoney", align 8
  %29 = alloca %"class.TPCE::CMoney", align 8
  %30 = alloca %"struct.std::_List_iterator", align 8
  %31 = alloca %"struct.std::_List_const_iterator", align 8
  %32 = alloca %"struct.std::_List_iterator", align 8
  %33 = alloca %"struct.TPCE::THoldingInfo", align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %34 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #8
  call void @_ZNSt14_List_iteratorIN4TPCE12THoldingInfoEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #8
  %35 = call noundef i32 @_ZN4TPCE9CTradeGen18GetCurrentTradeQtyEv(ptr noundef nonnull align 8 dereferenceable(7356) %34)
  store i32 %35, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #8
  %36 = getelementptr inbounds %"class.TPCE::CTradeGen", ptr %34, i32 0, i32 37
  %37 = getelementptr inbounds %"struct.TPCE::TAdditionalTradeInfo", ptr %36, i32 0, i32 0
  %38 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4TPCE6CMoneyaSEd(ptr noundef nonnull align 8 dereferenceable(8) %37, double noundef 0.000000e+00)
  %39 = getelementptr inbounds %"class.TPCE::CTradeGen", ptr %34, i32 0, i32 37
  %40 = getelementptr inbounds %"struct.TPCE::TAdditionalTradeInfo", ptr %39, i32 0, i32 1
  %41 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4TPCE6CMoneyaSEd(ptr noundef nonnull align 8 dereferenceable(8) %40, double noundef 0.000000e+00)
  %42 = getelementptr inbounds %"class.TPCE::CTradeGen", ptr %34, i32 0, i32 44
  store i32 0, ptr %42, align 4, !tbaa !11
  %43 = call noundef ptr @_ZN4TPCE9CTradeGen29GetHoldingListForCurrentTradeB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(7356) %34)
  store ptr %43, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #8
  %44 = load ptr, ptr %3, align 8, !tbaa !5
  %45 = call noundef zeroext i1 @_ZN4TPCE9CTradeGen21GetCurrentTradeIsLifoEv(ptr noundef nonnull align 8 dereferenceable(7356) %34)
  %46 = zext i1 %45 to i32
  %47 = call ptr @_ZN4TPCE9CTradeGen21PositionAtHoldingListEPNSt7__cxx114listINS_12THoldingInfoESaIS3_EEEi(ptr noundef nonnull align 8 dereferenceable(7356) %34, ptr noundef %44, i32 noundef %46)
  %48 = getelementptr inbounds %"struct.std::_List_iterator", ptr %7, i32 0, i32 0
  store ptr %47, ptr %48, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %4, ptr align 8 %7, i64 8, i1 false), !tbaa.struct !63
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  %49 = call noundef i32 @_ZN4TPCE9CTradeGen19GetCurrentTradeTypeEv(ptr noundef nonnull align 8 dereferenceable(7356) %34)
  %50 = icmp eq i32 %49, 0
  br i1 %50, label %54, label %51

51:                                               ; preds = %1
  %52 = call noundef i32 @_ZN4TPCE9CTradeGen19GetCurrentTradeTypeEv(ptr noundef nonnull align 8 dereferenceable(7356) %34)
  %53 = icmp eq i32 %52, 4
  br i1 %53, label %54, label %188

54:                                               ; preds = %51, %1
  br label %55

55:                                               ; preds = %146, %54
  %56 = load ptr, ptr %3, align 8, !tbaa !5
  %57 = call noundef zeroext i1 @_ZNKSt7__cxx114listIN4TPCE12THoldingInfoESaIS2_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %56) #8
  br i1 %57, label %66, label %58

58:                                               ; preds = %55
  %59 = call noundef ptr @_ZNKSt14_List_iteratorIN4TPCE12THoldingInfoEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #8
  %60 = getelementptr inbounds %"struct.TPCE::THoldingInfo", ptr %59, i32 0, i32 1
  %61 = load i32, ptr %60, align 8, !tbaa !64
  %62 = icmp slt i32 %61, 0
  br i1 %62, label %63, label %66

63:                                               ; preds = %58
  %64 = load i32, ptr %5, align 4, !tbaa !9
  %65 = icmp sgt i32 %64, 0
  br label %66

66:                                               ; preds = %63, %58, %55
  %67 = phi i1 [ false, %58 ], [ false, %55 ], [ %65, %63 ]
  br i1 %67, label %68, label %155

68:                                               ; preds = %66
  %69 = call noundef ptr @_ZNKSt14_List_iteratorIN4TPCE12THoldingInfoEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #8
  %70 = getelementptr inbounds %"struct.TPCE::THoldingInfo", ptr %69, i32 0, i32 1
  %71 = load i32, ptr %70, align 8, !tbaa !64
  store i32 %71, ptr %6, align 4, !tbaa !9
  %72 = load i32, ptr %5, align 4, !tbaa !9
  %73 = call noundef ptr @_ZNKSt14_List_iteratorIN4TPCE12THoldingInfoEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #8
  %74 = getelementptr inbounds %"struct.TPCE::THoldingInfo", ptr %73, i32 0, i32 1
  %75 = load i32, ptr %74, align 8, !tbaa !64
  %76 = add nsw i32 %75, %72
  store i32 %76, ptr %74, align 8, !tbaa !64
  %77 = call noundef ptr @_ZNKSt14_List_iteratorIN4TPCE12THoldingInfoEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #8
  %78 = getelementptr inbounds %"struct.TPCE::THoldingInfo", ptr %77, i32 0, i32 1
  %79 = load i32, ptr %78, align 8, !tbaa !64
  %80 = icmp sgt i32 %79, 0
  br i1 %80, label %81, label %106

81:                                               ; preds = %68
  %82 = call noundef ptr @_ZNKSt14_List_iteratorIN4TPCE12THoldingInfoEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #8
  %83 = getelementptr inbounds %"struct.TPCE::THoldingInfo", ptr %82, i32 0, i32 1
  store i32 0, ptr %83, align 8, !tbaa !64
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #8
  %84 = load i32, ptr %6, align 4, !tbaa !9
  %85 = sub nsw i32 0, %84
  %86 = call noundef ptr @_ZNKSt14_List_iteratorIN4TPCE12THoldingInfoEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #8
  %87 = getelementptr inbounds %"struct.TPCE::THoldingInfo", ptr %86, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %9, ptr align 8 %87, i64 8, i1 false), !tbaa.struct !66
  %88 = getelementptr inbounds %"class.TPCE::CMoney", ptr %9, i32 0, i32 0
  %89 = load i64, ptr %88, align 8
  %90 = call i64 @_ZN4TPCEmlEiNS_6CMoneyE(i32 noundef %85, i64 %89)
  %91 = getelementptr inbounds %"class.TPCE::CMoney", ptr %8, i32 0, i32 0
  store i64 %90, ptr %91, align 8
  %92 = getelementptr inbounds %"class.TPCE::CTradeGen", ptr %34, i32 0, i32 37
  %93 = getelementptr inbounds %"struct.TPCE::TAdditionalTradeInfo", ptr %92, i32 0, i32 1
  %94 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4TPCE6CMoneypLERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %93, ptr noundef nonnull align 8 dereferenceable(8) %8)
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #8
  %95 = load i32, ptr %6, align 4, !tbaa !9
  %96 = sub nsw i32 0, %95
  %97 = call i64 @_ZN4TPCE9CTradeGen20GetCurrentTradePriceEv(ptr noundef nonnull align 8 dereferenceable(7356) %34)
  %98 = getelementptr inbounds %"class.TPCE::CMoney", ptr %11, i32 0, i32 0
  store i64 %97, ptr %98, align 8
  %99 = getelementptr inbounds %"class.TPCE::CMoney", ptr %11, i32 0, i32 0
  %100 = load i64, ptr %99, align 8
  %101 = call i64 @_ZN4TPCEmlEiNS_6CMoneyE(i32 noundef %96, i64 %100)
  %102 = getelementptr inbounds %"class.TPCE::CMoney", ptr %10, i32 0, i32 0
  store i64 %101, ptr %102, align 8
  %103 = getelementptr inbounds %"class.TPCE::CTradeGen", ptr %34, i32 0, i32 37
  %104 = getelementptr inbounds %"struct.TPCE::TAdditionalTradeInfo", ptr %103, i32 0, i32 0
  %105 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4TPCE6CMoneypLERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %104, ptr noundef nonnull align 8 dereferenceable(8) %10)
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  br label %127

106:                                              ; preds = %68
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  %107 = load i32, ptr %5, align 4, !tbaa !9
  %108 = call noundef ptr @_ZNKSt14_List_iteratorIN4TPCE12THoldingInfoEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #8
  %109 = getelementptr inbounds %"struct.TPCE::THoldingInfo", ptr %108, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %13, ptr align 8 %109, i64 8, i1 false), !tbaa.struct !66
  %110 = getelementptr inbounds %"class.TPCE::CMoney", ptr %13, i32 0, i32 0
  %111 = load i64, ptr %110, align 8
  %112 = call i64 @_ZN4TPCEmlEiNS_6CMoneyE(i32 noundef %107, i64 %111)
  %113 = getelementptr inbounds %"class.TPCE::CMoney", ptr %12, i32 0, i32 0
  store i64 %112, ptr %113, align 8
  %114 = getelementptr inbounds %"class.TPCE::CTradeGen", ptr %34, i32 0, i32 37
  %115 = getelementptr inbounds %"struct.TPCE::TAdditionalTradeInfo", ptr %114, i32 0, i32 1
  %116 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4TPCE6CMoneypLERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %115, ptr noundef nonnull align 8 dereferenceable(8) %12)
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  %117 = load i32, ptr %5, align 4, !tbaa !9
  %118 = call i64 @_ZN4TPCE9CTradeGen20GetCurrentTradePriceEv(ptr noundef nonnull align 8 dereferenceable(7356) %34)
  %119 = getelementptr inbounds %"class.TPCE::CMoney", ptr %15, i32 0, i32 0
  store i64 %118, ptr %119, align 8
  %120 = getelementptr inbounds %"class.TPCE::CMoney", ptr %15, i32 0, i32 0
  %121 = load i64, ptr %120, align 8
  %122 = call i64 @_ZN4TPCEmlEiNS_6CMoneyE(i32 noundef %117, i64 %121)
  %123 = getelementptr inbounds %"class.TPCE::CMoney", ptr %14, i32 0, i32 0
  store i64 %122, ptr %123, align 8
  %124 = getelementptr inbounds %"class.TPCE::CTradeGen", ptr %34, i32 0, i32 37
  %125 = getelementptr inbounds %"struct.TPCE::TAdditionalTradeInfo", ptr %124, i32 0, i32 0
  %126 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4TPCE6CMoneypLERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %125, ptr noundef nonnull align 8 dereferenceable(8) %14)
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  br label %127

127:                                              ; preds = %106, %81
  %128 = call noundef ptr @_ZNKSt14_List_iteratorIN4TPCE12THoldingInfoEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #8
  %129 = getelementptr inbounds %"struct.TPCE::THoldingInfo", ptr %128, i32 0, i32 0
  %130 = load i64, ptr %129, align 8, !tbaa !68
  %131 = call noundef i64 @_ZN4TPCE9CTradeGen17GetCurrentTradeIDEv(ptr noundef nonnull align 8 dereferenceable(7356) %34)
  %132 = load i32, ptr %6, align 4, !tbaa !9
  %133 = call noundef ptr @_ZNKSt14_List_iteratorIN4TPCE12THoldingInfoEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #8
  %134 = getelementptr inbounds %"struct.TPCE::THoldingInfo", ptr %133, i32 0, i32 1
  %135 = load i32, ptr %134, align 8, !tbaa !64
  call void @_ZN4TPCE9CTradeGen25GenerateHoldingHistoryRowExxii(ptr noundef nonnull align 8 dereferenceable(7356) %34, i64 noundef %130, i64 noundef %131, i32 noundef %132, i32 noundef %135)
  %136 = call noundef ptr @_ZNKSt14_List_iteratorIN4TPCE12THoldingInfoEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #8
  %137 = getelementptr inbounds %"struct.TPCE::THoldingInfo", ptr %136, i32 0, i32 1
  %138 = load i32, ptr %137, align 8, !tbaa !64
  %139 = icmp eq i32 %138, 0
  br i1 %139, label %140, label %146

140:                                              ; preds = %127
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  %141 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZNSt20_List_const_iteratorIN4TPCE12THoldingInfoEEC2ERKSt14_List_iteratorIS1_E(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %4) #8
  %142 = getelementptr inbounds %"struct.std::_List_const_iterator", ptr %17, i32 0, i32 0
  %143 = load ptr, ptr %142, align 8
  %144 = call ptr @_ZNSt7__cxx114listIN4TPCE12THoldingInfoESaIS2_EE5eraseESt20_List_const_iteratorIS2_E(ptr noundef nonnull align 8 dereferenceable(24) %141, ptr %143) #8
  %145 = getelementptr inbounds %"struct.std::_List_iterator", ptr %16, i32 0, i32 0
  store ptr %144, ptr %145, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %4, ptr align 8 %16, i64 8, i1 false), !tbaa.struct !63
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  br label %146

146:                                              ; preds = %140, %127
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  %147 = load ptr, ptr %3, align 8, !tbaa !5
  %148 = call noundef zeroext i1 @_ZN4TPCE9CTradeGen21GetCurrentTradeIsLifoEv(ptr noundef nonnull align 8 dereferenceable(7356) %34)
  %149 = zext i1 %148 to i32
  %150 = call ptr @_ZN4TPCE9CTradeGen21PositionAtHoldingListEPNSt7__cxx114listINS_12THoldingInfoESaIS3_EEEi(ptr noundef nonnull align 8 dereferenceable(7356) %34, ptr noundef %147, i32 noundef %149)
  %151 = getelementptr inbounds %"struct.std::_List_iterator", ptr %18, i32 0, i32 0
  store ptr %150, ptr %151, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %4, ptr align 8 %18, i64 8, i1 false), !tbaa.struct !63
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  %152 = load i32, ptr %6, align 4, !tbaa !9
  %153 = load i32, ptr %5, align 4, !tbaa !9
  %154 = add nsw i32 %153, %152
  store i32 %154, ptr %5, align 4, !tbaa !9
  br label %55, !llvm.loop !69

155:                                              ; preds = %66
  %156 = load i32, ptr %5, align 4, !tbaa !9
  %157 = icmp sgt i32 %156, 0
  br i1 %157, label %158, label %187

158:                                              ; preds = %155
  call void @llvm.lifetime.start.p0(i64 48, ptr %19) #8
  %159 = getelementptr inbounds %"struct.TPCE::THoldingInfo", ptr %19, i32 0, i32 0
  %160 = call noundef i64 @_ZN4TPCE9CTradeGen17GetCurrentTradeIDEv(ptr noundef nonnull align 8 dereferenceable(7356) %34)
  store i64 %160, ptr %159, align 8, !tbaa !68
  %161 = getelementptr inbounds %"struct.TPCE::THoldingInfo", ptr %19, i32 0, i32 1
  %162 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %162, ptr %161, align 8, !tbaa !64
  %163 = getelementptr inbounds %"struct.TPCE::THoldingInfo", ptr %19, i32 0, i32 2
  %164 = call i64 @_ZN4TPCE9CTradeGen20GetCurrentTradePriceEv(ptr noundef nonnull align 8 dereferenceable(7356) %34)
  %165 = getelementptr inbounds %"class.TPCE::CMoney", ptr %163, i32 0, i32 0
  store i64 %164, ptr %165, align 8
  %166 = getelementptr inbounds %"struct.TPCE::THoldingInfo", ptr %19, i32 0, i32 3
  call void @_ZN4TPCE9CTradeGen29GetCurrentTradeCompletionTimeEv(ptr dead_on_unwind writable sret(%"class.TPCE::CDateTime") align 8 %166, ptr noundef nonnull align 8 dereferenceable(7356) %34)
  %167 = getelementptr inbounds %"struct.TPCE::THoldingInfo", ptr %19, i32 0, i32 4
  %168 = invoke noundef i64 @_ZN4TPCE9CTradeGen23GetCurrentSecurityIndexEv(ptr noundef nonnull align 8 dereferenceable(7356) %34)
          to label %169 unwind label %178

169:                                              ; preds = %158
  store i64 %168, ptr %167, align 8, !tbaa !71
  %170 = load ptr, ptr %3, align 8, !tbaa !5
  invoke void @_ZNSt7__cxx114listIN4TPCE12THoldingInfoESaIS2_EE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %170, ptr noundef nonnull align 8 dereferenceable(48) %19)
          to label %171 unwind label %182

171:                                              ; preds = %169
  %172 = invoke noundef i64 @_ZN4TPCE9CTradeGen17GetCurrentTradeIDEv(ptr noundef nonnull align 8 dereferenceable(7356) %34)
          to label %173 unwind label %182

173:                                              ; preds = %171
  %174 = invoke noundef i64 @_ZN4TPCE9CTradeGen17GetCurrentTradeIDEv(ptr noundef nonnull align 8 dereferenceable(7356) %34)
          to label %175 unwind label %182

175:                                              ; preds = %173
  %176 = load i32, ptr %5, align 4, !tbaa !9
  invoke void @_ZN4TPCE9CTradeGen25GenerateHoldingHistoryRowExxii(ptr noundef nonnull align 8 dereferenceable(7356) %34, i64 noundef %172, i64 noundef %174, i32 noundef 0, i32 noundef %176)
          to label %177 unwind label %182

177:                                              ; preds = %175
  call void @_ZN4TPCE12THoldingInfoD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %19) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %19) #8
  br label %187

178:                                              ; preds = %158
  %179 = landingpad { ptr, i32 }
          cleanup
  %180 = extractvalue { ptr, i32 } %179, 0
  store ptr %180, ptr %20, align 8
  %181 = extractvalue { ptr, i32 } %179, 1
  store i32 %181, ptr %21, align 4
  call void @_ZN4TPCE9CDateTimeD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %166) #8
  br label %186

182:                                              ; preds = %175, %173, %171, %169
  %183 = landingpad { ptr, i32 }
          cleanup
  %184 = extractvalue { ptr, i32 } %183, 0
  store ptr %184, ptr %20, align 8
  %185 = extractvalue { ptr, i32 } %183, 1
  store i32 %185, ptr %21, align 4
  call void @_ZN4TPCE12THoldingInfoD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %19) #8
  br label %186

186:                                              ; preds = %182, %178
  call void @llvm.lifetime.end.p0(i64 48, ptr %19) #8
  br label %323

187:                                              ; preds = %177, %155
  br label %322

188:                                              ; preds = %51
  br label %189

189:                                              ; preds = %278, %188
  %190 = load ptr, ptr %3, align 8, !tbaa !5
  %191 = call noundef zeroext i1 @_ZNKSt7__cxx114listIN4TPCE12THoldingInfoESaIS2_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %190) #8
  br i1 %191, label %200, label %192

192:                                              ; preds = %189
  %193 = call noundef ptr @_ZNKSt14_List_iteratorIN4TPCE12THoldingInfoEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #8
  %194 = getelementptr inbounds %"struct.TPCE::THoldingInfo", ptr %193, i32 0, i32 1
  %195 = load i32, ptr %194, align 8, !tbaa !64
  %196 = icmp sgt i32 %195, 0
  br i1 %196, label %197, label %200

197:                                              ; preds = %192
  %198 = load i32, ptr %5, align 4, !tbaa !9
  %199 = icmp sgt i32 %198, 0
  br label %200

200:                                              ; preds = %197, %192, %189
  %201 = phi i1 [ false, %192 ], [ false, %189 ], [ %199, %197 ]
  br i1 %201, label %202, label %287

202:                                              ; preds = %200
  %203 = call noundef ptr @_ZNKSt14_List_iteratorIN4TPCE12THoldingInfoEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #8
  %204 = getelementptr inbounds %"struct.TPCE::THoldingInfo", ptr %203, i32 0, i32 1
  %205 = load i32, ptr %204, align 8, !tbaa !64
  store i32 %205, ptr %6, align 4, !tbaa !9
  %206 = load i32, ptr %5, align 4, !tbaa !9
  %207 = call noundef ptr @_ZNKSt14_List_iteratorIN4TPCE12THoldingInfoEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #8
  %208 = getelementptr inbounds %"struct.TPCE::THoldingInfo", ptr %207, i32 0, i32 1
  %209 = load i32, ptr %208, align 8, !tbaa !64
  %210 = sub nsw i32 %209, %206
  store i32 %210, ptr %208, align 8, !tbaa !64
  %211 = call noundef ptr @_ZNKSt14_List_iteratorIN4TPCE12THoldingInfoEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #8
  %212 = getelementptr inbounds %"struct.TPCE::THoldingInfo", ptr %211, i32 0, i32 1
  %213 = load i32, ptr %212, align 8, !tbaa !64
  %214 = icmp slt i32 %213, 0
  br i1 %214, label %215, label %238

215:                                              ; preds = %202
  %216 = call noundef ptr @_ZNKSt14_List_iteratorIN4TPCE12THoldingInfoEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #8
  %217 = getelementptr inbounds %"struct.TPCE::THoldingInfo", ptr %216, i32 0, i32 1
  store i32 0, ptr %217, align 8, !tbaa !64
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #8
  %218 = load i32, ptr %6, align 4, !tbaa !9
  %219 = call i64 @_ZN4TPCE9CTradeGen20GetCurrentTradePriceEv(ptr noundef nonnull align 8 dereferenceable(7356) %34)
  %220 = getelementptr inbounds %"class.TPCE::CMoney", ptr %23, i32 0, i32 0
  store i64 %219, ptr %220, align 8
  %221 = getelementptr inbounds %"class.TPCE::CMoney", ptr %23, i32 0, i32 0
  %222 = load i64, ptr %221, align 8
  %223 = call i64 @_ZN4TPCEmlEiNS_6CMoneyE(i32 noundef %218, i64 %222)
  %224 = getelementptr inbounds %"class.TPCE::CMoney", ptr %22, i32 0, i32 0
  store i64 %223, ptr %224, align 8
  %225 = getelementptr inbounds %"class.TPCE::CTradeGen", ptr %34, i32 0, i32 37
  %226 = getelementptr inbounds %"struct.TPCE::TAdditionalTradeInfo", ptr %225, i32 0, i32 1
  %227 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4TPCE6CMoneypLERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %226, ptr noundef nonnull align 8 dereferenceable(8) %22)
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #8
  %228 = load i32, ptr %6, align 4, !tbaa !9
  %229 = call noundef ptr @_ZNKSt14_List_iteratorIN4TPCE12THoldingInfoEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #8
  %230 = getelementptr inbounds %"struct.TPCE::THoldingInfo", ptr %229, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %25, ptr align 8 %230, i64 8, i1 false), !tbaa.struct !66
  %231 = getelementptr inbounds %"class.TPCE::CMoney", ptr %25, i32 0, i32 0
  %232 = load i64, ptr %231, align 8
  %233 = call i64 @_ZN4TPCEmlEiNS_6CMoneyE(i32 noundef %228, i64 %232)
  %234 = getelementptr inbounds %"class.TPCE::CMoney", ptr %24, i32 0, i32 0
  store i64 %233, ptr %234, align 8
  %235 = getelementptr inbounds %"class.TPCE::CTradeGen", ptr %34, i32 0, i32 37
  %236 = getelementptr inbounds %"struct.TPCE::TAdditionalTradeInfo", ptr %235, i32 0, i32 0
  %237 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4TPCE6CMoneypLERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %236, ptr noundef nonnull align 8 dereferenceable(8) %24)
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  br label %259

238:                                              ; preds = %202
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #8
  %239 = load i32, ptr %5, align 4, !tbaa !9
  %240 = call i64 @_ZN4TPCE9CTradeGen20GetCurrentTradePriceEv(ptr noundef nonnull align 8 dereferenceable(7356) %34)
  %241 = getelementptr inbounds %"class.TPCE::CMoney", ptr %27, i32 0, i32 0
  store i64 %240, ptr %241, align 8
  %242 = getelementptr inbounds %"class.TPCE::CMoney", ptr %27, i32 0, i32 0
  %243 = load i64, ptr %242, align 8
  %244 = call i64 @_ZN4TPCEmlEiNS_6CMoneyE(i32 noundef %239, i64 %243)
  %245 = getelementptr inbounds %"class.TPCE::CMoney", ptr %26, i32 0, i32 0
  store i64 %244, ptr %245, align 8
  %246 = getelementptr inbounds %"class.TPCE::CTradeGen", ptr %34, i32 0, i32 37
  %247 = getelementptr inbounds %"struct.TPCE::TAdditionalTradeInfo", ptr %246, i32 0, i32 1
  %248 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4TPCE6CMoneypLERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %247, ptr noundef nonnull align 8 dereferenceable(8) %26)
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #8
  %249 = load i32, ptr %5, align 4, !tbaa !9
  %250 = call noundef ptr @_ZNKSt14_List_iteratorIN4TPCE12THoldingInfoEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #8
  %251 = getelementptr inbounds %"struct.TPCE::THoldingInfo", ptr %250, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %29, ptr align 8 %251, i64 8, i1 false), !tbaa.struct !66
  %252 = getelementptr inbounds %"class.TPCE::CMoney", ptr %29, i32 0, i32 0
  %253 = load i64, ptr %252, align 8
  %254 = call i64 @_ZN4TPCEmlEiNS_6CMoneyE(i32 noundef %249, i64 %253)
  %255 = getelementptr inbounds %"class.TPCE::CMoney", ptr %28, i32 0, i32 0
  store i64 %254, ptr %255, align 8
  %256 = getelementptr inbounds %"class.TPCE::CTradeGen", ptr %34, i32 0, i32 37
  %257 = getelementptr inbounds %"struct.TPCE::TAdditionalTradeInfo", ptr %256, i32 0, i32 0
  %258 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4TPCE6CMoneypLERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %257, ptr noundef nonnull align 8 dereferenceable(8) %28)
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #8
  br label %259

259:                                              ; preds = %238, %215
  %260 = call noundef ptr @_ZNKSt14_List_iteratorIN4TPCE12THoldingInfoEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #8
  %261 = getelementptr inbounds %"struct.TPCE::THoldingInfo", ptr %260, i32 0, i32 0
  %262 = load i64, ptr %261, align 8, !tbaa !68
  %263 = call noundef i64 @_ZN4TPCE9CTradeGen17GetCurrentTradeIDEv(ptr noundef nonnull align 8 dereferenceable(7356) %34)
  %264 = load i32, ptr %6, align 4, !tbaa !9
  %265 = call noundef ptr @_ZNKSt14_List_iteratorIN4TPCE12THoldingInfoEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #8
  %266 = getelementptr inbounds %"struct.TPCE::THoldingInfo", ptr %265, i32 0, i32 1
  %267 = load i32, ptr %266, align 8, !tbaa !64
  call void @_ZN4TPCE9CTradeGen25GenerateHoldingHistoryRowExxii(ptr noundef nonnull align 8 dereferenceable(7356) %34, i64 noundef %262, i64 noundef %263, i32 noundef %264, i32 noundef %267)
  %268 = call noundef ptr @_ZNKSt14_List_iteratorIN4TPCE12THoldingInfoEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #8
  %269 = getelementptr inbounds %"struct.TPCE::THoldingInfo", ptr %268, i32 0, i32 1
  %270 = load i32, ptr %269, align 8, !tbaa !64
  %271 = icmp eq i32 %270, 0
  br i1 %271, label %272, label %278

272:                                              ; preds = %259
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #8
  %273 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZNSt20_List_const_iteratorIN4TPCE12THoldingInfoEEC2ERKSt14_List_iteratorIS1_E(ptr noundef nonnull align 8 dereferenceable(8) %31, ptr noundef nonnull align 8 dereferenceable(8) %4) #8
  %274 = getelementptr inbounds %"struct.std::_List_const_iterator", ptr %31, i32 0, i32 0
  %275 = load ptr, ptr %274, align 8
  %276 = call ptr @_ZNSt7__cxx114listIN4TPCE12THoldingInfoESaIS2_EE5eraseESt20_List_const_iteratorIS2_E(ptr noundef nonnull align 8 dereferenceable(24) %273, ptr %275) #8
  %277 = getelementptr inbounds %"struct.std::_List_iterator", ptr %30, i32 0, i32 0
  store ptr %276, ptr %277, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %4, ptr align 8 %30, i64 8, i1 false), !tbaa.struct !63
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #8
  br label %278

278:                                              ; preds = %272, %259
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #8
  %279 = load ptr, ptr %3, align 8, !tbaa !5
  %280 = call noundef zeroext i1 @_ZN4TPCE9CTradeGen21GetCurrentTradeIsLifoEv(ptr noundef nonnull align 8 dereferenceable(7356) %34)
  %281 = zext i1 %280 to i32
  %282 = call ptr @_ZN4TPCE9CTradeGen21PositionAtHoldingListEPNSt7__cxx114listINS_12THoldingInfoESaIS3_EEEi(ptr noundef nonnull align 8 dereferenceable(7356) %34, ptr noundef %279, i32 noundef %281)
  %283 = getelementptr inbounds %"struct.std::_List_iterator", ptr %32, i32 0, i32 0
  store ptr %282, ptr %283, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %4, ptr align 8 %32, i64 8, i1 false), !tbaa.struct !63
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #8
  %284 = load i32, ptr %6, align 4, !tbaa !9
  %285 = load i32, ptr %5, align 4, !tbaa !9
  %286 = sub nsw i32 %285, %284
  store i32 %286, ptr %5, align 4, !tbaa !9
  br label %189, !llvm.loop !72

287:                                              ; preds = %200
  %288 = load i32, ptr %5, align 4, !tbaa !9
  %289 = icmp sgt i32 %288, 0
  br i1 %289, label %290, label %321

290:                                              ; preds = %287
  call void @llvm.lifetime.start.p0(i64 48, ptr %33) #8
  %291 = getelementptr inbounds %"struct.TPCE::THoldingInfo", ptr %33, i32 0, i32 0
  %292 = call noundef i64 @_ZN4TPCE9CTradeGen17GetCurrentTradeIDEv(ptr noundef nonnull align 8 dereferenceable(7356) %34)
  store i64 %292, ptr %291, align 8, !tbaa !68
  %293 = getelementptr inbounds %"struct.TPCE::THoldingInfo", ptr %33, i32 0, i32 1
  %294 = load i32, ptr %5, align 4, !tbaa !9
  %295 = sub nsw i32 0, %294
  store i32 %295, ptr %293, align 8, !tbaa !64
  %296 = getelementptr inbounds %"struct.TPCE::THoldingInfo", ptr %33, i32 0, i32 2
  %297 = call i64 @_ZN4TPCE9CTradeGen20GetCurrentTradePriceEv(ptr noundef nonnull align 8 dereferenceable(7356) %34)
  %298 = getelementptr inbounds %"class.TPCE::CMoney", ptr %296, i32 0, i32 0
  store i64 %297, ptr %298, align 8
  %299 = getelementptr inbounds %"struct.TPCE::THoldingInfo", ptr %33, i32 0, i32 3
  call void @_ZN4TPCE9CTradeGen29GetCurrentTradeCompletionTimeEv(ptr dead_on_unwind writable sret(%"class.TPCE::CDateTime") align 8 %299, ptr noundef nonnull align 8 dereferenceable(7356) %34)
  %300 = getelementptr inbounds %"struct.TPCE::THoldingInfo", ptr %33, i32 0, i32 4
  %301 = invoke noundef i64 @_ZN4TPCE9CTradeGen23GetCurrentSecurityIndexEv(ptr noundef nonnull align 8 dereferenceable(7356) %34)
          to label %302 unwind label %312

302:                                              ; preds = %290
  store i64 %301, ptr %300, align 8, !tbaa !71
  %303 = load ptr, ptr %3, align 8, !tbaa !5
  invoke void @_ZNSt7__cxx114listIN4TPCE12THoldingInfoESaIS2_EE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %303, ptr noundef nonnull align 8 dereferenceable(48) %33)
          to label %304 unwind label %316

304:                                              ; preds = %302
  %305 = invoke noundef i64 @_ZN4TPCE9CTradeGen17GetCurrentTradeIDEv(ptr noundef nonnull align 8 dereferenceable(7356) %34)
          to label %306 unwind label %316

306:                                              ; preds = %304
  %307 = invoke noundef i64 @_ZN4TPCE9CTradeGen17GetCurrentTradeIDEv(ptr noundef nonnull align 8 dereferenceable(7356) %34)
          to label %308 unwind label %316

308:                                              ; preds = %306
  %309 = load i32, ptr %5, align 4, !tbaa !9
  %310 = sub nsw i32 0, %309
  invoke void @_ZN4TPCE9CTradeGen25GenerateHoldingHistoryRowExxii(ptr noundef nonnull align 8 dereferenceable(7356) %34, i64 noundef %305, i64 noundef %307, i32 noundef 0, i32 noundef %310)
          to label %311 unwind label %316

311:                                              ; preds = %308
  call void @_ZN4TPCE12THoldingInfoD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %33) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %33) #8
  br label %321

312:                                              ; preds = %290
  %313 = landingpad { ptr, i32 }
          cleanup
  %314 = extractvalue { ptr, i32 } %313, 0
  store ptr %314, ptr %20, align 8
  %315 = extractvalue { ptr, i32 } %313, 1
  store i32 %315, ptr %21, align 4
  call void @_ZN4TPCE9CDateTimeD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %299) #8
  br label %320

316:                                              ; preds = %308, %306, %304, %302
  %317 = landingpad { ptr, i32 }
          cleanup
  %318 = extractvalue { ptr, i32 } %317, 0
  store ptr %318, ptr %20, align 8
  %319 = extractvalue { ptr, i32 } %317, 1
  store i32 %319, ptr %21, align 4
  call void @_ZN4TPCE12THoldingInfoD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %33) #8
  br label %320

320:                                              ; preds = %316, %312
  call void @llvm.lifetime.end.p0(i64 48, ptr %33) #8
  br label %323

321:                                              ; preds = %311, %287
  br label %322

322:                                              ; preds = %321, %187
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #8
  ret void

323:                                              ; preds = %320, %186
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #8
  br label %324

324:                                              ; preds = %323
  %325 = load ptr, ptr %20, align 8
  %326 = load i32, ptr %21, align 4
  %327 = insertvalue { ptr, i32 } poison, ptr %325, 0
  %328 = insertvalue { ptr, i32 } %327, i32 %326, 1
  resume { ptr, i32 } %328
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZN4TPCE9CTradeGen21PositionAtHoldingListEPNSt7__cxx114listINS_12THoldingInfoESaIS3_EEEi(ptr noundef nonnull align 8 dereferenceable(7356), ptr noundef, i32 noundef) #1 align 2

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZN4TPCE9CTradeGen29GetHoldingListForCurrentTradeB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(7356)) #5 align 2

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

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

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

declare i64 @_ZN4TPCEmlEiNS_6CMoneyE(i32 noundef, i64) #6

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4TPCE9CTradeGen25GenerateHoldingHistoryRowExxii(ptr noundef nonnull align 8 dereferenceable(7356), i64 noundef, i64 noundef, i32 noundef, i32 noundef) #1 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4TPCE9CTradeGen29GetCurrentTradeCompletionTimeEv(ptr dead_on_unwind noalias writable sret(%"class.TPCE::CDateTime") align 8, ptr noundef nonnull align 8 dereferenceable(7356)) #4 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx114listIN4TPCE12THoldingInfoESaIS2_EE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(48)) #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4TPCE12THoldingInfoD2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #7 align 2

attributes #0 = { nocallback nofree 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { "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 #7 = { 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 #8 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 7252}
!12 = !{!"_ZTSN4TPCE9CTradeGenE", !13, i64 0, !15, i64 8, !20, i64 424, !21, i64 472, !25, i64 968, !28, i64 1960, !33, i64 3576, !34, i64 5416, !37, i64 5640, !24, i64 5976, !6, i64 6040, !6, i64 6048, !6, i64 6056, !6, i64 6064, !6, i64 6072, !6, i64 6080, !6, i64 6088, !14, i64 6096, !14, i64 6104, !14, i64 6112, !14, i64 6120, !10, i64 6128, !10, i64 6132, !10, i64 6136, !10, i64 6140, !32, i64 6144, !32, i64 6152, !19, i64 6160, !32, i64 6176, !41, i64 6184, !14, i64 6216, !14, i64 6224, !14, i64 6232, !10, i64 6240, !6, i64 6248, !47, i64 6256, !52, i64 6360, !54, i64 6424, !59, i64 7144, !60, i64 7208, !10, i64 7240, !10, i64 7244, !10, i64 7248, !10, i64 7252, !61, i64 7256, !10, i64 7320, !10, i64 7324, !62, i64 7328, !10, i64 7336, !10, i64 7340, !14, i64 7344, !10, i64 7352}
!13 = !{!"_ZTSN4TPCE7CRandomE", !14, i64 0}
!14 = !{!"long long", !7, i64 0}
!15 = !{!"_ZTSN4TPCE13CAddressTableE", !16, i64 0, !19, i64 296, !6, i64 312, !6, i64 320, !6, i64 328, !6, i64 336, !14, i64 344, !14, i64 352, !18, i64 360, !18, i64 361, !14, i64 368, !10, i64 376, !14, i64 384, !18, i64 392, !10, i64 396, !14, i64 400, !6, i64 408}
!16 = !{!"_ZTSN4TPCE13TableTemplateINS_11ADDRESS_ROWEEE", !17, i64 8, !14, i64 272, !18, i64 280, !13, i64 288}
!17 = !{!"_ZTSN4TPCE11ADDRESS_ROWE", !14, i64 0, !7, i64 8, !7, i64 89, !7, i64 170, !7, i64 183}
!18 = !{!"bool", !7, i64 0}
!19 = !{!"_ZTSN4TPCE9CDateTimeE", !10, i64 0, !10, i64 4, !6, i64 8}
!20 = !{!"_ZTSN4TPCE18CCustomerSelectionE", !6, i64 0, !14, i64 8, !14, i64 16, !18, i64 24, !10, i64 28, !14, i64 32, !14, i64 40}
!21 = !{!"_ZTSN4TPCE14CCustomerTableE", !22, i64 0, !14, i64 328, !24, i64 336, !6, i64 400, !14, i64 408, !14, i64 416, !14, i64 424, !10, i64 432, !6, i64 440, !20, i64 448}
!22 = !{!"_ZTSN4TPCE13TableTemplateINS_12CUSTOMER_ROWEEE", !23, i64 8, !14, i64 304, !18, i64 312, !13, i64 320}
!23 = !{!"_ZTSN4TPCE12CUSTOMER_ROWE", !14, i64 0, !7, i64 8, !7, i64 29, !7, i64 34, !7, i64 60, !7, i64 81, !7, i64 83, !7, i64 84, !19, i64 88, !14, i64 104, !7, i64 112, !7, i64 116, !7, i64 120, !7, i64 131, !7, i64 137, !7, i64 141, !7, i64 145, !7, i64 156, !7, i64 162, !7, i64 166, !7, i64 170, !7, i64 181, !7, i64 187, !7, i64 238}
!24 = !{!"_ZTSN4TPCE7CPersonE", !6, i64 0, !6, i64 8, !6, i64 16, !13, i64 24, !18, i64 32, !10, i64 36, !14, i64 40, !6, i64 48, !6, i64 56}
!25 = !{!"_ZTSN4TPCE22CCustomerTaxratesTableE", !26, i64 0, !21, i64 64, !15, i64 560, !6, i64 976, !6, i64 984}
!26 = !{!"_ZTSN4TPCE13TableTemplateINS_21CUSTOMER_TAXRATE_ROWSEEE", !27, i64 8, !14, i64 40, !18, i64 48, !13, i64 56}
!27 = !{!"_ZTSN4TPCE21CUSTOMER_TAXRATE_ROWSE", !7, i64 0}
!28 = !{!"_ZTSN4TPCE36CCustomerAccountsAndPermissionsTableE", !29, i64 0, !6, i64 472, !6, i64 480, !14, i64 488, !14, i64 496, !14, i64 504, !10, i64 512, !10, i64 516, !21, i64 520, !24, i64 1016, !10, i64 1080, !14, i64 1088, !15, i64 1096, !10, i64 1512, !20, i64 1520, !18, i64 1568, !10, i64 1572, !14, i64 1576, !6, i64 1584, !10, i64 1592, !14, i64 1600, !6, i64 1608}
!29 = !{!"_ZTSN4TPCE13TableTemplateINS_35CUSTOMER_ACCOUNT_AND_PERMISSION_ROWEEE", !30, i64 8, !14, i64 448, !18, i64 456, !13, i64 464}
!30 = !{!"_ZTSN4TPCE35CUSTOMER_ACCOUNT_AND_PERMISSION_ROWE", !31, i64 0, !7, i64 88}
!31 = !{!"_ZTSN4TPCE20CUSTOMER_ACCOUNT_ROWE", !14, i64 0, !14, i64 8, !14, i64 16, !7, i64 24, !7, i64 75, !32, i64 80}
!32 = !{!"double", !7, i64 0}
!33 = !{!"_ZTSN4TPCE23CHoldingsAndTradesTableE", !13, i64 0, !28, i64 8, !14, i64 1624, !10, i64 1632, !7, i64 1640, !18, i64 1784, !14, i64 1792, !10, i64 1800, !6, i64 1808, !14, i64 1816, !10, i64 1824, !6, i64 1832}
!34 = !{!"_ZTSN4TPCE13CBrokersTableE", !35, i64 0, !14, i64 112, !14, i64 120, !14, i64 128, !24, i64 136, !6, i64 200, !6, i64 208, !6, i64 216}
!35 = !{!"_ZTSN4TPCE13TableTemplateINS_10BROKER_ROWEEE", !36, i64 8, !14, i64 88, !18, i64 96, !13, i64 104}
!36 = !{!"_ZTSN4TPCE10BROKER_ROWE", !14, i64 0, !7, i64 8, !7, i64 13, !10, i64 64, !32, i64 72}
!37 = !{!"_ZTSN4TPCE14CSecurityTableE", !38, i64 0, !14, i64 264, !14, i64 272, !6, i64 280, !6, i64 288, !19, i64 296, !10, i64 312, !10, i64 316, !10, i64 320, !14, i64 328}
!38 = !{!"_ZTSN4TPCE13TableTemplateINS_12SECURITY_ROWEEE", !39, i64 8, !14, i64 240, !18, i64 248, !13, i64 256}
!39 = !{!"_ZTSN4TPCE12SECURITY_ROWE", !7, i64 0, !7, i64 16, !7, i64 23, !7, i64 28, !7, i64 99, !14, i64 112, !14, i64 120, !19, i64 128, !19, i64 144, !32, i64 160, !40, i64 168, !19, i64 176, !40, i64 192, !19, i64 200, !32, i64 216, !32, i64 224}
!40 = !{!"float", !7, i64 0}
!41 = !{!"_ZTSSt14priority_queueIN4TPCE10TTradeInfoESt6vectorIS1_SaIS1_EESt7greaterIS1_EE", !42, i64 0, !46, i64 24}
!42 = !{!"_ZTSSt6vectorIN4TPCE10TTradeInfoESaIS1_EE", !43, i64 0}
!43 = !{!"_ZTSSt12_Vector_baseIN4TPCE10TTradeInfoESaIS1_EE", !44, i64 0}
!44 = !{!"_ZTSNSt12_Vector_baseIN4TPCE10TTradeInfoESaIS1_EE12_Vector_implE", !45, i64 0}
!45 = !{!"_ZTSNSt12_Vector_baseIN4TPCE10TTradeInfoESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!46 = !{!"_ZTSSt7greaterIN4TPCE10TTradeInfoEE"}
!47 = !{!"_ZTSN4TPCE10TTradeInfoE", !14, i64 0, !48, i64 8, !49, i64 12, !32, i64 16, !32, i64 24, !32, i64 32, !14, i64 40, !10, i64 48, !10, i64 52, !50, i64 56, !50, i64 64, !14, i64 72, !51, i64 80, !14, i64 88, !18, i64 96}
!48 = !{!"_ZTSN4TPCE12eTradeTypeIDE", !7, i64 0}
!49 = !{!"_ZTSN4TPCE13eStatusTypeIDE", !7, i64 0}
!50 = !{!"_ZTSN4TPCE6CMoneyE", !14, i64 0}
!51 = !{!"_ZTSN4TPCE13eCustomerTierE", !7, i64 0}
!52 = !{!"_ZTSN4TPCE20TAdditionalTradeInfoE", !50, i64 0, !50, i64 8, !14, i64 16, !53, i64 24, !50, i64 32, !50, i64 40, !50, i64 48, !50, i64 56}
!53 = !{!"_ZTSN4TPCE10eTaxStatusE", !7, i64 0}
!54 = !{!"_ZTSN4TPCE9TTradeRowE", !55, i64 0, !56, i64 168, !7, i64 216, !57, i64 312, !58, i64 392, !7, i64 528}
!55 = !{!"_ZTSN4TPCE9TRADE_ROWE", !14, i64 0, !19, i64 8, !7, i64 24, !7, i64 29, !18, i64 33, !7, i64 34, !10, i64 52, !32, i64 56, !14, i64 64, !7, i64 72, !32, i64 128, !32, i64 136, !32, i64 144, !32, i64 152, !18, i64 160}
!56 = !{!"_ZTSN4TPCE17TRADE_REQUEST_ROWE", !14, i64 0, !7, i64 8, !7, i64 12, !10, i64 28, !32, i64 32, !14, i64 40}
!57 = !{!"_ZTSN4TPCE14SETTLEMENT_ROWE", !14, i64 0, !7, i64 8, !19, i64 56, !32, i64 72}
!58 = !{!"_ZTSN4TPCE20CASH_TRANSACTION_ROWE", !14, i64 0, !19, i64 8, !32, i64 24, !7, i64 32}
!59 = !{!"_ZTSN4TPCE11HOLDING_ROWE", !14, i64 0, !14, i64 8, !7, i64 16, !19, i64 32, !32, i64 48, !10, i64 56}
!60 = !{!"_ZTSN4TPCE19HOLDING_SUMMARY_ROWE", !14, i64 0, !7, i64 8, !10, i64 24}
!61 = !{!"_ZTSN4TPCE12CMEESecurityE", !13, i64 0, !50, i64 8, !50, i64 16, !50, i64 24, !10, i64 32, !10, i64 36, !6, i64 40, !6, i64 48, !32, i64 56}
!62 = !{!"_ZTSSt14_List_iteratorIN4TPCE12THoldingInfoEE", !6, i64 0}
!63 = !{i64 0, i64 8, !5}
!64 = !{!65, !10, i64 8}
!65 = !{!"_ZTSN4TPCE12THoldingInfoE", !14, i64 0, !10, i64 8, !50, i64 16, !19, i64 24, !14, i64 40}
!66 = !{i64 0, i64 8, !67}
!67 = !{!14, !14, i64 0}
!68 = !{!65, !14, i64 0}
!69 = distinct !{!69, !70}
!70 = !{!"llvm.loop.mustprogress"}
!71 = !{!65, !14, i64 40}
!72 = distinct !{!72, !70}


; 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::_List_iterator" = type { ptr }
%"class.TPCE::CMoney" = type { i64 }
%"struct.std::_List_const_iterator" = type { ptr }
%"struct.TPCE::THoldingInfo" = type { i64, i32, %"class.TPCE::CMoney", %"class.TPCE::CDateTime", i64 }
%"class.TPCE::CDateTime" = type { i32, i32, ptr }

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4TPCE9CTradeGen14UpdateHoldingsEv(ptr noundef nonnull align 8 dereferenceable(7356) %0) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"struct.std::_List_iterator", align 8
  %3 = alloca %"class.TPCE::CMoney", align 8
  %4 = alloca %"class.TPCE::CMoney", align 8
  %5 = alloca %"class.TPCE::CMoney", align 8
  %6 = alloca %"class.TPCE::CMoney", align 8
  %7 = alloca %"struct.std::_List_const_iterator", align 8
  %8 = alloca %"struct.TPCE::THoldingInfo", align 8
  %9 = alloca %"class.TPCE::CMoney", align 8
  %10 = alloca %"class.TPCE::CMoney", align 8
  %11 = alloca %"class.TPCE::CMoney", align 8
  %12 = alloca %"class.TPCE::CMoney", align 8
  %13 = alloca %"struct.std::_List_const_iterator", align 8
  %14 = alloca %"struct.TPCE::THoldingInfo", align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #6
  call void @_ZNSt14_List_iteratorIN4TPCE12THoldingInfoEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %2) #6
  %15 = call noundef i32 @_ZN4TPCE9CTradeGen18GetCurrentTradeQtyEv(ptr noundef nonnull align 8 dereferenceable(7356) %0)
  %16 = getelementptr inbounds i8, ptr %0, i64 6360
  %17 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4TPCE6CMoneyaSEd(ptr noundef nonnull align 8 dereferenceable(8) %16, double noundef 0.000000e+00)
  %18 = getelementptr inbounds i8, ptr %0, i64 6368
  %19 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4TPCE6CMoneyaSEd(ptr noundef nonnull align 8 dereferenceable(8) %18, double noundef 0.000000e+00)
  %20 = getelementptr inbounds i8, ptr %0, i64 7252
  store i32 0, ptr %20, align 4, !tbaa !5
  %21 = call noundef ptr @_ZN4TPCE9CTradeGen29GetHoldingListForCurrentTradeB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(7356) %0)
  %22 = call noundef zeroext i1 @_ZN4TPCE9CTradeGen21GetCurrentTradeIsLifoEv(ptr noundef nonnull align 8 dereferenceable(7356) %0)
  %23 = zext i1 %22 to i32
  %24 = call ptr @_ZN4TPCE9CTradeGen21PositionAtHoldingListEPNSt7__cxx114listINS_12THoldingInfoESaIS3_EEEi(ptr noundef nonnull align 8 dereferenceable(7356) %0, ptr noundef %21, i32 noundef %23)
  store ptr %24, ptr %2, align 8, !tbaa !61
  %25 = call noundef i32 @_ZN4TPCE9CTradeGen19GetCurrentTradeTypeEv(ptr noundef nonnull align 8 dereferenceable(7356) %0)
  %26 = icmp eq i32 %25, 0
  br i1 %26, label %31, label %27

27:                                               ; preds = %1
  %28 = call noundef i32 @_ZN4TPCE9CTradeGen19GetCurrentTradeTypeEv(ptr noundef nonnull align 8 dereferenceable(7356) %0)
  %29 = icmp eq i32 %28, 4
  br i1 %29, label %31, label %.preheader

.preheader:                                       ; preds = %27
  %30 = call noundef zeroext i1 @_ZNKSt7__cxx114listIN4TPCE12THoldingInfoESaIS2_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %21) #6
  br i1 %30, label %.critedge2, label %.lr.ph

31:                                               ; preds = %27, %1
  %32 = call noundef zeroext i1 @_ZNKSt7__cxx114listIN4TPCE12THoldingInfoESaIS2_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %21) #6
  br i1 %32, label %.critedge, label %.lr.ph59

.lr.ph59:                                         ; preds = %31, %83
  %.058 = phi i32 [ %87, %83 ], [ %15, %31 ]
  %33 = call noundef ptr @_ZNKSt14_List_iteratorIN4TPCE12THoldingInfoEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #6
  %34 = getelementptr inbounds i8, ptr %33, i64 8
  %35 = load i32, ptr %34, align 8, !tbaa !62
  %36 = icmp slt i32 %35, 0
  %37 = icmp sgt i32 %.058, 0
  %or.cond = select i1 %36, i1 %37, i1 false
  br i1 %or.cond, label %38, label %.critedge

38:                                               ; preds = %.lr.ph59
  %39 = call noundef ptr @_ZNKSt14_List_iteratorIN4TPCE12THoldingInfoEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #6
  %40 = getelementptr inbounds i8, ptr %39, i64 8
  %41 = load i32, ptr %40, align 8, !tbaa !62
  %42 = call noundef ptr @_ZNKSt14_List_iteratorIN4TPCE12THoldingInfoEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #6
  %43 = getelementptr inbounds i8, ptr %42, i64 8
  %44 = load i32, ptr %43, align 8, !tbaa !62
  %45 = add nsw i32 %44, %.058
  store i32 %45, ptr %43, align 8, !tbaa !62
  %46 = call noundef ptr @_ZNKSt14_List_iteratorIN4TPCE12THoldingInfoEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #6
  %47 = getelementptr inbounds i8, ptr %46, i64 8
  %48 = load i32, ptr %47, align 8, !tbaa !62
  %49 = icmp sgt i32 %48, 0
  br i1 %49, label %50, label %61

50:                                               ; preds = %38
  %51 = call noundef ptr @_ZNKSt14_List_iteratorIN4TPCE12THoldingInfoEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #6
  %52 = getelementptr inbounds i8, ptr %51, i64 8
  store i32 0, ptr %52, align 8, !tbaa !62
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #6
  %53 = sub nsw i32 0, %41
  %54 = call noundef ptr @_ZNKSt14_List_iteratorIN4TPCE12THoldingInfoEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #6
  %55 = getelementptr inbounds i8, ptr %54, i64 16
  %.sroa.016.0.copyload = load i64, ptr %55, align 8, !tbaa !64
  %56 = call i64 @_ZN4TPCEmlEiNS_6CMoneyE(i32 noundef %53, i64 %.sroa.016.0.copyload)
  store i64 %56, ptr %3, align 8
  %57 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4TPCE6CMoneypLERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) %3)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  %58 = call i64 @_ZN4TPCE9CTradeGen20GetCurrentTradePriceEv(ptr noundef nonnull align 8 dereferenceable(7356) %0)
  %59 = call i64 @_ZN4TPCEmlEiNS_6CMoneyE(i32 noundef %53, i64 %58)
  store i64 %59, ptr %4, align 8
  %60 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4TPCE6CMoneypLERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %4)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  br label %69

61:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #6
  %62 = call noundef ptr @_ZNKSt14_List_iteratorIN4TPCE12THoldingInfoEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #6
  %63 = getelementptr inbounds i8, ptr %62, i64 16
  %.sroa.014.0.copyload = load i64, ptr %63, align 8, !tbaa !64
  %64 = call i64 @_ZN4TPCEmlEiNS_6CMoneyE(i32 noundef %.058, i64 %.sroa.014.0.copyload)
  store i64 %64, ptr %5, align 8
  %65 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4TPCE6CMoneypLERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) %5)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #6
  %66 = call i64 @_ZN4TPCE9CTradeGen20GetCurrentTradePriceEv(ptr noundef nonnull align 8 dereferenceable(7356) %0)
  %67 = call i64 @_ZN4TPCEmlEiNS_6CMoneyE(i32 noundef %.058, i64 %66)
  store i64 %67, ptr %6, align 8
  %68 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4TPCE6CMoneypLERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %6)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  br label %69

69:                                               ; preds = %61, %50
  %70 = call noundef ptr @_ZNKSt14_List_iteratorIN4TPCE12THoldingInfoEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #6
  %71 = load i64, ptr %70, align 8, !tbaa !65
  %72 = call noundef i64 @_ZN4TPCE9CTradeGen17GetCurrentTradeIDEv(ptr noundef nonnull align 8 dereferenceable(7356) %0)
  %73 = call noundef ptr @_ZNKSt14_List_iteratorIN4TPCE12THoldingInfoEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #6
  %74 = getelementptr inbounds i8, ptr %73, i64 8
  %75 = load i32, ptr %74, align 8, !tbaa !62
  call void @_ZN4TPCE9CTradeGen25GenerateHoldingHistoryRowExxii(ptr noundef nonnull align 8 dereferenceable(7356) %0, i64 noundef %71, i64 noundef %72, i32 noundef %41, i32 noundef %75)
  %76 = call noundef ptr @_ZNKSt14_List_iteratorIN4TPCE12THoldingInfoEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #6
  %77 = getelementptr inbounds i8, ptr %76, i64 8
  %78 = load i32, ptr %77, align 8, !tbaa !62
  %79 = icmp eq i32 %78, 0
  br i1 %79, label %80, label %83

80:                                               ; preds = %69
  call void @_ZNSt20_List_const_iteratorIN4TPCE12THoldingInfoEEC2ERKSt14_List_iteratorIS1_E(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %2) #6
  %81 = load ptr, ptr %7, align 8
  %82 = call ptr @_ZNSt7__cxx114listIN4TPCE12THoldingInfoESaIS2_EE5eraseESt20_List_const_iteratorIS2_E(ptr noundef nonnull align 8 dereferenceable(24) %21, ptr %81) #6
  store ptr %82, ptr %2, align 8, !tbaa !61
  br label %83

83:                                               ; preds = %80, %69
  %84 = call noundef zeroext i1 @_ZN4TPCE9CTradeGen21GetCurrentTradeIsLifoEv(ptr noundef nonnull align 8 dereferenceable(7356) %0)
  %85 = zext i1 %84 to i32
  %86 = call ptr @_ZN4TPCE9CTradeGen21PositionAtHoldingListEPNSt7__cxx114listINS_12THoldingInfoESaIS3_EEEi(ptr noundef nonnull align 8 dereferenceable(7356) %0, ptr noundef nonnull %21, i32 noundef %85)
  store ptr %86, ptr %2, align 8, !tbaa !61
  %87 = add nsw i32 %41, %.058
  %88 = call noundef zeroext i1 @_ZNKSt7__cxx114listIN4TPCE12THoldingInfoESaIS2_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %21) #6
  br i1 %88, label %.critedge, label %.lr.ph59, !llvm.loop !66

.critedge:                                        ; preds = %83, %.lr.ph59, %31
  %.0.lcssa = phi i32 [ %15, %31 ], [ %.058, %.lr.ph59 ], [ %87, %83 ]
  %89 = icmp sgt i32 %.0.lcssa, 0
  br i1 %89, label %90, label %173

90:                                               ; preds = %.critedge
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %8) #6
  %91 = call noundef i64 @_ZN4TPCE9CTradeGen17GetCurrentTradeIDEv(ptr noundef nonnull align 8 dereferenceable(7356) %0)
  store i64 %91, ptr %8, align 8, !tbaa !65
  %92 = getelementptr inbounds i8, ptr %8, i64 8
  store i32 %.0.lcssa, ptr %92, align 8, !tbaa !62
  %93 = getelementptr inbounds i8, ptr %8, i64 16
  %94 = call i64 @_ZN4TPCE9CTradeGen20GetCurrentTradePriceEv(ptr noundef nonnull align 8 dereferenceable(7356) %0)
  store i64 %94, ptr %93, align 8
  %95 = getelementptr inbounds i8, ptr %8, i64 24
  call void @_ZN4TPCE9CTradeGen29GetCurrentTradeCompletionTimeEv(ptr dead_on_unwind nonnull writable sret(%"class.TPCE::CDateTime") align 8 %95, ptr noundef nonnull align 8 dereferenceable(7356) %0)
  %96 = getelementptr inbounds i8, ptr %8, i64 40
  %97 = call noundef i64 @_ZN4TPCE9CTradeGen23GetCurrentSecurityIndexEv(ptr noundef nonnull align 8 dereferenceable(7356) %0)
  store i64 %97, ptr %96, align 8, !tbaa !68
  invoke void @_ZNSt7__cxx114listIN4TPCE12THoldingInfoESaIS2_EE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %21, ptr noundef nonnull align 8 dereferenceable(48) %8)
          to label %98 unwind label %101

98:                                               ; preds = %90
  %99 = call noundef i64 @_ZN4TPCE9CTradeGen17GetCurrentTradeIDEv(ptr noundef nonnull align 8 dereferenceable(7356) %0)
  %100 = call noundef i64 @_ZN4TPCE9CTradeGen17GetCurrentTradeIDEv(ptr noundef nonnull align 8 dereferenceable(7356) %0)
  call void @_ZN4TPCE9CTradeGen25GenerateHoldingHistoryRowExxii(ptr noundef nonnull align 8 dereferenceable(7356) %0, i64 noundef %99, i64 noundef %100, i32 noundef 0, i32 noundef %.0.lcssa)
  call void @_ZN4TPCE12THoldingInfoD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %8) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %8) #6
  br label %173

101:                                              ; preds = %90
  %102 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4TPCE12THoldingInfoD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %8) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %8) #6
  br label %174

.lr.ph:                                           ; preds = %.preheader, %152
  %.155 = phi i32 [ %156, %152 ], [ %15, %.preheader ]
  %103 = call noundef ptr @_ZNKSt14_List_iteratorIN4TPCE12THoldingInfoEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #6
  %104 = getelementptr inbounds i8, ptr %103, i64 8
  %105 = load i32, ptr %104, align 8, !tbaa !62
  %106 = icmp sgt i32 %105, 0
  %107 = icmp sgt i32 %.155, 0
  %or.cond5 = select i1 %106, i1 %107, i1 false
  br i1 %or.cond5, label %108, label %.critedge2

108:                                              ; preds = %.lr.ph
  %109 = call noundef ptr @_ZNKSt14_List_iteratorIN4TPCE12THoldingInfoEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #6
  %110 = getelementptr inbounds i8, ptr %109, i64 8
  %111 = load i32, ptr %110, align 8, !tbaa !62
  %112 = call noundef ptr @_ZNKSt14_List_iteratorIN4TPCE12THoldingInfoEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #6
  %113 = getelementptr inbounds i8, ptr %112, i64 8
  %114 = load i32, ptr %113, align 8, !tbaa !62
  %115 = sub nsw i32 %114, %.155
  store i32 %115, ptr %113, align 8, !tbaa !62
  %116 = call noundef ptr @_ZNKSt14_List_iteratorIN4TPCE12THoldingInfoEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #6
  %117 = getelementptr inbounds i8, ptr %116, i64 8
  %118 = load i32, ptr %117, align 8, !tbaa !62
  %119 = icmp slt i32 %118, 0
  br i1 %119, label %120, label %130

120:                                              ; preds = %108
  %121 = call noundef ptr @_ZNKSt14_List_iteratorIN4TPCE12THoldingInfoEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #6
  %122 = getelementptr inbounds i8, ptr %121, i64 8
  store i32 0, ptr %122, align 8, !tbaa !62
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #6
  %123 = call i64 @_ZN4TPCE9CTradeGen20GetCurrentTradePriceEv(ptr noundef nonnull align 8 dereferenceable(7356) %0)
  %124 = call i64 @_ZN4TPCEmlEiNS_6CMoneyE(i32 noundef %111, i64 %123)
  store i64 %124, ptr %9, align 8
  %125 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4TPCE6CMoneypLERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) %9)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #6
  %126 = call noundef ptr @_ZNKSt14_List_iteratorIN4TPCE12THoldingInfoEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #6
  %127 = getelementptr inbounds i8, ptr %126, i64 16
  %.sroa.09.0.copyload = load i64, ptr %127, align 8, !tbaa !64
  %128 = call i64 @_ZN4TPCEmlEiNS_6CMoneyE(i32 noundef %111, i64 %.sroa.09.0.copyload)
  store i64 %128, ptr %10, align 8
  %129 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4TPCE6CMoneypLERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %10)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  br label %138

130:                                              ; preds = %108
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #6
  %131 = call i64 @_ZN4TPCE9CTradeGen20GetCurrentTradePriceEv(ptr noundef nonnull align 8 dereferenceable(7356) %0)
  %132 = call i64 @_ZN4TPCEmlEiNS_6CMoneyE(i32 noundef %.155, i64 %131)
  store i64 %132, ptr %11, align 8
  %133 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4TPCE6CMoneypLERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) %11)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #6
  %134 = call noundef ptr @_ZNKSt14_List_iteratorIN4TPCE12THoldingInfoEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #6
  %135 = getelementptr inbounds i8, ptr %134, i64 16
  %.sroa.07.0.copyload = load i64, ptr %135, align 8, !tbaa !64
  %136 = call i64 @_ZN4TPCEmlEiNS_6CMoneyE(i32 noundef %.155, i64 %.sroa.07.0.copyload)
  store i64 %136, ptr %12, align 8
  %137 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4TPCE6CMoneypLERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %12)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #6
  br label %138

138:                                              ; preds = %130, %120
  %139 = call noundef ptr @_ZNKSt14_List_iteratorIN4TPCE12THoldingInfoEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #6
  %140 = load i64, ptr %139, align 8, !tbaa !65
  %141 = call noundef i64 @_ZN4TPCE9CTradeGen17GetCurrentTradeIDEv(ptr noundef nonnull align 8 dereferenceable(7356) %0)
  %142 = call noundef ptr @_ZNKSt14_List_iteratorIN4TPCE12THoldingInfoEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #6
  %143 = getelementptr inbounds i8, ptr %142, i64 8
  %144 = load i32, ptr %143, align 8, !tbaa !62
  call void @_ZN4TPCE9CTradeGen25GenerateHoldingHistoryRowExxii(ptr noundef nonnull align 8 dereferenceable(7356) %0, i64 noundef %140, i64 noundef %141, i32 noundef %111, i32 noundef %144)
  %145 = call noundef ptr @_ZNKSt14_List_iteratorIN4TPCE12THoldingInfoEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #6
  %146 = getelementptr inbounds i8, ptr %145, i64 8
  %147 = load i32, ptr %146, align 8, !tbaa !62
  %148 = icmp eq i32 %147, 0
  br i1 %148, label %149, label %152

149:                                              ; preds = %138
  call void @_ZNSt20_List_const_iteratorIN4TPCE12THoldingInfoEEC2ERKSt14_List_iteratorIS1_E(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %2) #6
  %150 = load ptr, ptr %13, align 8
  %151 = call ptr @_ZNSt7__cxx114listIN4TPCE12THoldingInfoESaIS2_EE5eraseESt20_List_const_iteratorIS2_E(ptr noundef nonnull align 8 dereferenceable(24) %21, ptr %150) #6
  store ptr %151, ptr %2, align 8, !tbaa !61
  br label %152

152:                                              ; preds = %149, %138
  %153 = call noundef zeroext i1 @_ZN4TPCE9CTradeGen21GetCurrentTradeIsLifoEv(ptr noundef nonnull align 8 dereferenceable(7356) %0)
  %154 = zext i1 %153 to i32
  %155 = call ptr @_ZN4TPCE9CTradeGen21PositionAtHoldingListEPNSt7__cxx114listINS_12THoldingInfoESaIS3_EEEi(ptr noundef nonnull align 8 dereferenceable(7356) %0, ptr noundef nonnull %21, i32 noundef %154)
  store ptr %155, ptr %2, align 8, !tbaa !61
  %156 = sub nsw i32 %.155, %111
  %157 = call noundef zeroext i1 @_ZNKSt7__cxx114listIN4TPCE12THoldingInfoESaIS2_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %21) #6
  br i1 %157, label %.critedge2, label %.lr.ph, !llvm.loop !69

.critedge2:                                       ; preds = %152, %.lr.ph, %.preheader
  %.1.lcssa = phi i32 [ %15, %.preheader ], [ %.155, %.lr.ph ], [ %156, %152 ]
  %158 = icmp sgt i32 %.1.lcssa, 0
  br i1 %158, label %159, label %173

159:                                              ; preds = %.critedge2
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %14) #6
  %160 = call noundef i64 @_ZN4TPCE9CTradeGen17GetCurrentTradeIDEv(ptr noundef nonnull align 8 dereferenceable(7356) %0)
  store i64 %160, ptr %14, align 8, !tbaa !65
  %161 = getelementptr inbounds i8, ptr %14, i64 8
  %162 = sub nsw i32 0, %.1.lcssa
  store i32 %162, ptr %161, align 8, !tbaa !62
  %163 = getelementptr inbounds i8, ptr %14, i64 16
  %164 = call i64 @_ZN4TPCE9CTradeGen20GetCurrentTradePriceEv(ptr noundef nonnull align 8 dereferenceable(7356) %0)
  store i64 %164, ptr %163, align 8
  %165 = getelementptr inbounds i8, ptr %14, i64 24
  call void @_ZN4TPCE9CTradeGen29GetCurrentTradeCompletionTimeEv(ptr dead_on_unwind nonnull writable sret(%"class.TPCE::CDateTime") align 8 %165, ptr noundef nonnull align 8 dereferenceable(7356) %0)
  %166 = getelementptr inbounds i8, ptr %14, i64 40
  %167 = call noundef i64 @_ZN4TPCE9CTradeGen23GetCurrentSecurityIndexEv(ptr noundef nonnull align 8 dereferenceable(7356) %0)
  store i64 %167, ptr %166, align 8, !tbaa !68
  invoke void @_ZNSt7__cxx114listIN4TPCE12THoldingInfoESaIS2_EE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %21, ptr noundef nonnull align 8 dereferenceable(48) %14)
          to label %168 unwind label %171

168:                                              ; preds = %159
  %169 = call noundef i64 @_ZN4TPCE9CTradeGen17GetCurrentTradeIDEv(ptr noundef nonnull align 8 dereferenceable(7356) %0)
  %170 = call noundef i64 @_ZN4TPCE9CTradeGen17GetCurrentTradeIDEv(ptr noundef nonnull align 8 dereferenceable(7356) %0)
  call void @_ZN4TPCE9CTradeGen25GenerateHoldingHistoryRowExxii(ptr noundef nonnull align 8 dereferenceable(7356) %0, i64 noundef %169, i64 noundef %170, i32 noundef 0, i32 noundef %162)
  call void @_ZN4TPCE12THoldingInfoD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %14) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %14) #6
  br label %173

171:                                              ; preds = %159
  %172 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4TPCE12THoldingInfoD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %14) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %14) #6
  br label %174

173:                                              ; preds = %.critedge2, %168, %.critedge, %98
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  ret void

174:                                              ; preds = %171, %101
  %.pn = phi { ptr, i32 } [ %102, %101 ], [ %172, %171 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  resume { ptr, i32 } %.pn
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZN4TPCE9CTradeGen21PositionAtHoldingListEPNSt7__cxx114listINS_12THoldingInfoESaIS3_EEEi(ptr noundef nonnull align 8 dereferenceable(7356), ptr noundef, i32 noundef) local_unnamed_addr #0 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN4TPCE9CTradeGen18GetCurrentTradeQtyEv(ptr noundef nonnull align 8 dereferenceable(7356)) local_unnamed_addr #0 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN4TPCE9CTradeGen19GetCurrentTradeTypeEv(ptr noundef nonnull align 8 dereferenceable(7356)) local_unnamed_addr #0 align 2

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

declare i64 @_ZN4TPCEmlEiNS_6CMoneyE(i32 noundef, i64) local_unnamed_addr #4

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local i64 @_ZN4TPCE9CTradeGen20GetCurrentTradePriceEv(ptr noundef nonnull align 8 dereferenceable(7356)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4TPCE9CTradeGen25GenerateHoldingHistoryRowExxii(ptr noundef nonnull align 8 dereferenceable(7356), i64 noundef, i64 noundef, i32 noundef, i32 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN4TPCE9CTradeGen17GetCurrentTradeIDEv(ptr noundef nonnull align 8 dereferenceable(7356)) local_unnamed_addr #0 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4TPCE9CTradeGen29GetCurrentTradeCompletionTimeEv(ptr dead_on_unwind noalias writable sret(%"class.TPCE::CDateTime") align 8, ptr noundef nonnull align 8 dereferenceable(7356)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN4TPCE9CTradeGen23GetCurrentSecurityIndexEv(ptr noundef nonnull align 8 dereferenceable(7356)) local_unnamed_addr #0 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4TPCE12THoldingInfoD2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #5 align 2

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 = { 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 #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !16, i64 7252}
!6 = !{!"_ZTSN4TPCE9CTradeGenE", !7, i64 0, !11, i64 8, !18, i64 424, !19, i64 472, !23, i64 968, !26, i64 1960, !31, i64 3576, !32, i64 5416, !35, i64 5640, !22, i64 5976, !17, i64 6040, !17, i64 6048, !17, i64 6056, !17, i64 6064, !17, i64 6072, !17, i64 6080, !17, i64 6088, !8, i64 6096, !8, i64 6104, !8, i64 6112, !8, i64 6120, !16, i64 6128, !16, i64 6132, !16, i64 6136, !16, i64 6140, !30, i64 6144, !30, i64 6152, !15, i64 6160, !30, i64 6176, !39, i64 6184, !8, i64 6216, !8, i64 6224, !8, i64 6232, !16, i64 6240, !17, i64 6248, !45, i64 6256, !50, i64 6360, !52, i64 6424, !57, i64 7144, !58, i64 7208, !16, i64 7240, !16, i64 7244, !16, i64 7248, !16, i64 7252, !59, i64 7256, !16, i64 7320, !16, i64 7324, !60, i64 7328, !16, i64 7336, !16, i64 7340, !8, i64 7344, !16, i64 7352}
!7 = !{!"_ZTSN4TPCE7CRandomE", !8, i64 0}
!8 = !{!"long long", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"_ZTSN4TPCE13CAddressTableE", !12, i64 0, !15, i64 296, !17, i64 312, !17, i64 320, !17, i64 328, !17, i64 336, !8, i64 344, !8, i64 352, !14, i64 360, !14, i64 361, !8, i64 368, !16, i64 376, !8, i64 384, !14, i64 392, !16, i64 396, !8, i64 400, !17, i64 408}
!12 = !{!"_ZTSN4TPCE13TableTemplateINS_11ADDRESS_ROWEEE", !13, i64 8, !8, i64 272, !14, i64 280, !7, i64 288}
!13 = !{!"_ZTSN4TPCE11ADDRESS_ROWE", !8, i64 0, !9, i64 8, !9, i64 89, !9, i64 170, !9, i64 183}
!14 = !{!"bool", !9, i64 0}
!15 = !{!"_ZTSN4TPCE9CDateTimeE", !16, i64 0, !16, i64 4, !17, i64 8}
!16 = !{!"int", !9, i64 0}
!17 = !{!"any pointer", !9, i64 0}
!18 = !{!"_ZTSN4TPCE18CCustomerSelectionE", !17, i64 0, !8, i64 8, !8, i64 16, !14, i64 24, !16, i64 28, !8, i64 32, !8, i64 40}
!19 = !{!"_ZTSN4TPCE14CCustomerTableE", !20, i64 0, !8, i64 328, !22, i64 336, !17, i64 400, !8, i64 408, !8, i64 416, !8, i64 424, !16, i64 432, !17, i64 440, !18, i64 448}
!20 = !{!"_ZTSN4TPCE13TableTemplateINS_12CUSTOMER_ROWEEE", !21, i64 8, !8, i64 304, !14, i64 312, !7, i64 320}
!21 = !{!"_ZTSN4TPCE12CUSTOMER_ROWE", !8, i64 0, !9, i64 8, !9, i64 29, !9, i64 34, !9, i64 60, !9, i64 81, !9, i64 83, !9, i64 84, !15, i64 88, !8, i64 104, !9, i64 112, !9, i64 116, !9, i64 120, !9, i64 131, !9, i64 137, !9, i64 141, !9, i64 145, !9, i64 156, !9, i64 162, !9, i64 166, !9, i64 170, !9, i64 181, !9, i64 187, !9, i64 238}
!22 = !{!"_ZTSN4TPCE7CPersonE", !17, i64 0, !17, i64 8, !17, i64 16, !7, i64 24, !14, i64 32, !16, i64 36, !8, i64 40, !17, i64 48, !17, i64 56}
!23 = !{!"_ZTSN4TPCE22CCustomerTaxratesTableE", !24, i64 0, !19, i64 64, !11, i64 560, !17, i64 976, !17, i64 984}
!24 = !{!"_ZTSN4TPCE13TableTemplateINS_21CUSTOMER_TAXRATE_ROWSEEE", !25, i64 8, !8, i64 40, !14, i64 48, !7, i64 56}
!25 = !{!"_ZTSN4TPCE21CUSTOMER_TAXRATE_ROWSE", !9, i64 0}
!26 = !{!"_ZTSN4TPCE36CCustomerAccountsAndPermissionsTableE", !27, i64 0, !17, i64 472, !17, i64 480, !8, i64 488, !8, i64 496, !8, i64 504, !16, i64 512, !16, i64 516, !19, i64 520, !22, i64 1016, !16, i64 1080, !8, i64 1088, !11, i64 1096, !16, i64 1512, !18, i64 1520, !14, i64 1568, !16, i64 1572, !8, i64 1576, !17, i64 1584, !16, i64 1592, !8, i64 1600, !17, i64 1608}
!27 = !{!"_ZTSN4TPCE13TableTemplateINS_35CUSTOMER_ACCOUNT_AND_PERMISSION_ROWEEE", !28, i64 8, !8, i64 448, !14, i64 456, !7, i64 464}
!28 = !{!"_ZTSN4TPCE35CUSTOMER_ACCOUNT_AND_PERMISSION_ROWE", !29, i64 0, !9, i64 88}
!29 = !{!"_ZTSN4TPCE20CUSTOMER_ACCOUNT_ROWE", !8, i64 0, !8, i64 8, !8, i64 16, !9, i64 24, !9, i64 75, !30, i64 80}
!30 = !{!"double", !9, i64 0}
!31 = !{!"_ZTSN4TPCE23CHoldingsAndTradesTableE", !7, i64 0, !26, i64 8, !8, i64 1624, !16, i64 1632, !9, i64 1640, !14, i64 1784, !8, i64 1792, !16, i64 1800, !17, i64 1808, !8, i64 1816, !16, i64 1824, !17, i64 1832}
!32 = !{!"_ZTSN4TPCE13CBrokersTableE", !33, i64 0, !8, i64 112, !8, i64 120, !8, i64 128, !22, i64 136, !17, i64 200, !17, i64 208, !17, i64 216}
!33 = !{!"_ZTSN4TPCE13TableTemplateINS_10BROKER_ROWEEE", !34, i64 8, !8, i64 88, !14, i64 96, !7, i64 104}
!34 = !{!"_ZTSN4TPCE10BROKER_ROWE", !8, i64 0, !9, i64 8, !9, i64 13, !16, i64 64, !30, i64 72}
!35 = !{!"_ZTSN4TPCE14CSecurityTableE", !36, i64 0, !8, i64 264, !8, i64 272, !17, i64 280, !17, i64 288, !15, i64 296, !16, i64 312, !16, i64 316, !16, i64 320, !8, i64 328}
!36 = !{!"_ZTSN4TPCE13TableTemplateINS_12SECURITY_ROWEEE", !37, i64 8, !8, i64 240, !14, i64 248, !7, i64 256}
!37 = !{!"_ZTSN4TPCE12SECURITY_ROWE", !9, i64 0, !9, i64 16, !9, i64 23, !9, i64 28, !9, i64 99, !8, i64 112, !8, i64 120, !15, i64 128, !15, i64 144, !30, i64 160, !38, i64 168, !15, i64 176, !38, i64 192, !15, i64 200, !30, i64 216, !30, i64 224}
!38 = !{!"float", !9, i64 0}
!39 = !{!"_ZTSSt14priority_queueIN4TPCE10TTradeInfoESt6vectorIS1_SaIS1_EESt7greaterIS1_EE", !40, i64 0, !44, i64 24}
!40 = !{!"_ZTSSt6vectorIN4TPCE10TTradeInfoESaIS1_EE", !41, i64 0}
!41 = !{!"_ZTSSt12_Vector_baseIN4TPCE10TTradeInfoESaIS1_EE", !42, i64 0}
!42 = !{!"_ZTSNSt12_Vector_baseIN4TPCE10TTradeInfoESaIS1_EE12_Vector_implE", !43, i64 0}
!43 = !{!"_ZTSNSt12_Vector_baseIN4TPCE10TTradeInfoESaIS1_EE17_Vector_impl_dataE", !17, i64 0, !17, i64 8, !17, i64 16}
!44 = !{!"_ZTSSt7greaterIN4TPCE10TTradeInfoEE"}
!45 = !{!"_ZTSN4TPCE10TTradeInfoE", !8, i64 0, !46, i64 8, !47, i64 12, !30, i64 16, !30, i64 24, !30, i64 32, !8, i64 40, !16, i64 48, !16, i64 52, !48, i64 56, !48, i64 64, !8, i64 72, !49, i64 80, !8, i64 88, !14, i64 96}
!46 = !{!"_ZTSN4TPCE12eTradeTypeIDE", !9, i64 0}
!47 = !{!"_ZTSN4TPCE13eStatusTypeIDE", !9, i64 0}
!48 = !{!"_ZTSN4TPCE6CMoneyE", !8, i64 0}
!49 = !{!"_ZTSN4TPCE13eCustomerTierE", !9, i64 0}
!50 = !{!"_ZTSN4TPCE20TAdditionalTradeInfoE", !48, i64 0, !48, i64 8, !8, i64 16, !51, i64 24, !48, i64 32, !48, i64 40, !48, i64 48, !48, i64 56}
!51 = !{!"_ZTSN4TPCE10eTaxStatusE", !9, i64 0}
!52 = !{!"_ZTSN4TPCE9TTradeRowE", !53, i64 0, !54, i64 168, !9, i64 216, !55, i64 312, !56, i64 392, !9, i64 528}
!53 = !{!"_ZTSN4TPCE9TRADE_ROWE", !8, i64 0, !15, i64 8, !9, i64 24, !9, i64 29, !14, i64 33, !9, i64 34, !16, i64 52, !30, i64 56, !8, i64 64, !9, i64 72, !30, i64 128, !30, i64 136, !30, i64 144, !30, i64 152, !14, i64 160}
!54 = !{!"_ZTSN4TPCE17TRADE_REQUEST_ROWE", !8, i64 0, !9, i64 8, !9, i64 12, !16, i64 28, !30, i64 32, !8, i64 40}
!55 = !{!"_ZTSN4TPCE14SETTLEMENT_ROWE", !8, i64 0, !9, i64 8, !15, i64 56, !30, i64 72}
!56 = !{!"_ZTSN4TPCE20CASH_TRANSACTION_ROWE", !8, i64 0, !15, i64 8, !30, i64 24, !9, i64 32}
!57 = !{!"_ZTSN4TPCE11HOLDING_ROWE", !8, i64 0, !8, i64 8, !9, i64 16, !15, i64 32, !30, i64 48, !16, i64 56}
!58 = !{!"_ZTSN4TPCE19HOLDING_SUMMARY_ROWE", !8, i64 0, !9, i64 8, !16, i64 24}
!59 = !{!"_ZTSN4TPCE12CMEESecurityE", !7, i64 0, !48, i64 8, !48, i64 16, !48, i64 24, !16, i64 32, !16, i64 36, !17, i64 40, !17, i64 48, !30, i64 56}
!60 = !{!"_ZTSSt14_List_iteratorIN4TPCE12THoldingInfoEE", !17, i64 0}
!61 = !{!17, !17, i64 0}
!62 = !{!63, !16, i64 8}
!63 = !{!"_ZTSN4TPCE12THoldingInfoE", !8, i64 0, !16, i64 8, !48, i64 16, !15, i64 24, !8, i64 40}
!64 = !{!8, !8, i64 0}
!65 = !{!63, !8, i64 0}
!66 = distinct !{!66, !67}
!67 = !{!"llvm.loop.mustprogress"}
!68 = !{!63, !8, i64 40}
!69 = distinct !{!69, !67}


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