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

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

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

@_ZN4TPCEL16cTRADE_QTY_SIZESE = external hidden constant [4 x i32], align 16

; 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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4TPCE9CTradeGen16GenerateNewTradeEv(ptr noundef nonnull align 8 dereferenceable(7356) %0) #2 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca %"class.TPCE::CMoney", align 8
  %4 = alloca %"class.TPCE::CMoney", align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %5 = load ptr, ptr %2, align 8
  %6 = call noundef i64 @_ZN4TPCE9CTradeGen19GenerateNextTradeIdEv(ptr noundef nonnull align 8 dereferenceable(7356) %5)
  %7 = getelementptr inbounds %"class.TPCE::CTradeGen", ptr %5, i32 0, i32 36
  %8 = getelementptr inbounds %"struct.TPCE::TTradeInfo", ptr %7, i32 0, i32 0
  store i64 %6, ptr %8, align 8, !tbaa !9
  %9 = getelementptr inbounds %"class.TPCE::CTradeGen", ptr %5, i32 0, i32 2
  %10 = getelementptr inbounds %"class.TPCE::CTradeGen", ptr %5, i32 0, i32 36
  %11 = getelementptr inbounds %"struct.TPCE::TTradeInfo", ptr %10, i32 0, i32 11
  %12 = getelementptr inbounds %"class.TPCE::CTradeGen", ptr %5, i32 0, i32 36
  %13 = getelementptr inbounds %"struct.TPCE::TTradeInfo", ptr %12, i32 0, i32 12
  call void @_ZN4TPCE18CCustomerSelection22GenerateRandomCustomerERxRNS_13eCustomerTierE(ptr noundef nonnull align 8 dereferenceable(48) %9, ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 4 dereferenceable(4) %13)
  %14 = getelementptr inbounds %"class.TPCE::CTradeGen", ptr %5, i32 0, i32 6
  %15 = getelementptr inbounds %"class.TPCE::CTradeGen", ptr %5, i32 0, i32 36
  %16 = getelementptr inbounds %"struct.TPCE::TTradeInfo", ptr %15, i32 0, i32 11
  %17 = load i64, ptr %16, align 8, !tbaa !62
  %18 = getelementptr inbounds %"class.TPCE::CTradeGen", ptr %5, i32 0, i32 36
  %19 = getelementptr inbounds %"struct.TPCE::TTradeInfo", ptr %18, i32 0, i32 12
  %20 = load i32, ptr %19, align 8, !tbaa !63
  %21 = getelementptr inbounds %"class.TPCE::CTradeGen", ptr %5, i32 0, i32 36
  %22 = getelementptr inbounds %"struct.TPCE::TTradeInfo", ptr %21, i32 0, i32 14
  %23 = getelementptr inbounds %"class.TPCE::CTradeGen", ptr %5, i32 0, i32 36
  %24 = getelementptr inbounds %"struct.TPCE::TTradeInfo", ptr %23, i32 0, i32 6
  %25 = getelementptr inbounds %"class.TPCE::CTradeGen", ptr %5, i32 0, i32 36
  %26 = getelementptr inbounds %"struct.TPCE::TTradeInfo", ptr %25, i32 0, i32 7
  call void @_ZN4TPCE23CHoldingsAndTradesTable29GenerateRandomAccountSecurityExNS_13eCustomerTierEPxS2_Pj(ptr noundef nonnull align 8 dereferenceable(1840) %14, i64 noundef %17, i32 noundef %20, ptr noundef %22, ptr noundef %24, ptr noundef %26)
  %27 = call noundef i32 @_ZN4TPCE9CTradeGen17GenerateTradeTypeEv(ptr noundef nonnull align 8 dereferenceable(7356) %5)
  %28 = getelementptr inbounds %"class.TPCE::CTradeGen", ptr %5, i32 0, i32 36
  %29 = getelementptr inbounds %"struct.TPCE::TTradeInfo", ptr %28, i32 0, i32 1
  store i32 %27, ptr %29, align 8, !tbaa !64
  %30 = getelementptr inbounds %"class.TPCE::CTradeGen", ptr %5, i32 0, i32 36
  %31 = getelementptr inbounds %"struct.TPCE::TTradeInfo", ptr %30, i32 0, i32 2
  store i32 0, ptr %31, align 4, !tbaa !65
  %32 = getelementptr inbounds %"class.TPCE::CTradeGen", ptr %5, i32 0, i32 0
  %33 = call noundef double @_ZN4TPCE7CRandom18RndDoubleIncrRangeEddd(ptr noundef nonnull align 8 dereferenceable(8) %32, double noundef 2.000000e+01, double noundef 3.000000e+01, double noundef 1.000000e-02)
  %34 = getelementptr inbounds %"class.TPCE::CTradeGen", ptr %5, i32 0, i32 36
  %35 = getelementptr inbounds %"struct.TPCE::TTradeInfo", ptr %34, i32 0, i32 9
  %36 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4TPCE6CMoneyaSEd(ptr noundef nonnull align 8 dereferenceable(8) %35, double noundef %33)
  %37 = getelementptr inbounds %"class.TPCE::CTradeGen", ptr %5, i32 0, i32 0
  %38 = call noundef i32 @_ZN4TPCE7CRandom11RndIntRangeEii(ptr noundef nonnull align 8 dereferenceable(8) %37, i32 noundef 0, i32 noundef 3)
  %39 = sext i32 %38 to i64
  %40 = getelementptr inbounds [4 x i32], ptr @_ZN4TPCEL16cTRADE_QTY_SIZESE, i64 0, i64 %39
  %41 = load i32, ptr %40, align 4, !tbaa !66
  %42 = getelementptr inbounds %"class.TPCE::CTradeGen", ptr %5, i32 0, i32 36
  %43 = getelementptr inbounds %"struct.TPCE::TTradeInfo", ptr %42, i32 0, i32 8
  store i32 %41, ptr %43, align 4, !tbaa !67
  %44 = getelementptr inbounds %"class.TPCE::CTradeGen", ptr %5, i32 0, i32 36
  %45 = getelementptr inbounds %"struct.TPCE::TTradeInfo", ptr %44, i32 0, i32 1
  %46 = load i32, ptr %45, align 8, !tbaa !64
  %47 = icmp eq i32 %46, 0
  br i1 %47, label %53, label %48

48:                                               ; preds = %1
  %49 = getelementptr inbounds %"class.TPCE::CTradeGen", ptr %5, i32 0, i32 36
  %50 = getelementptr inbounds %"struct.TPCE::TTradeInfo", ptr %49, i32 0, i32 1
  %51 = load i32, ptr %50, align 8, !tbaa !64
  %52 = icmp eq i32 %51, 1
  br i1 %52, label %53, label %68

53:                                               ; preds = %48, %1
  %54 = getelementptr inbounds %"class.TPCE::CTradeGen", ptr %5, i32 0, i32 28
  %55 = load double, ptr %54, align 8, !tbaa !68
  %56 = getelementptr inbounds %"class.TPCE::CTradeGen", ptr %5, i32 0, i32 36
  %57 = getelementptr inbounds %"struct.TPCE::TTradeInfo", ptr %56, i32 0, i32 4
  store double %55, ptr %57, align 8, !tbaa !69
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #6
  %58 = getelementptr inbounds %"class.TPCE::CTradeGen", ptr %5, i32 0, i32 45
  %59 = getelementptr inbounds %"class.TPCE::CTradeGen", ptr %5, i32 0, i32 36
  %60 = getelementptr inbounds %"struct.TPCE::TTradeInfo", ptr %59, i32 0, i32 6
  %61 = load i64, ptr %60, align 8, !tbaa !70
  %62 = getelementptr inbounds %"class.TPCE::CTradeGen", ptr %5, i32 0, i32 28
  %63 = load double, ptr %62, align 8, !tbaa !68
  %64 = call i64 @_ZN4TPCE12CMEESecurity14CalculatePriceExd(ptr noundef nonnull align 8 dereferenceable(64) %58, i64 noundef %61, double noundef %63)
  %65 = getelementptr inbounds %"class.TPCE::CMoney", ptr %3, i32 0, i32 0
  store i64 %64, ptr %65, align 8
  %66 = getelementptr inbounds %"class.TPCE::CTradeGen", ptr %5, i32 0, i32 36
  %67 = getelementptr inbounds %"struct.TPCE::TTradeInfo", ptr %66, i32 0, i32 9
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %67, ptr align 8 %3, i64 8, i1 false), !tbaa.struct !71
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  br label %116

68:                                               ; preds = %48
  %69 = getelementptr inbounds %"class.TPCE::CTradeGen", ptr %5, i32 0, i32 28
  %70 = load double, ptr %69, align 8, !tbaa !68
  %71 = getelementptr inbounds %"class.TPCE::CTradeGen", ptr %5, i32 0, i32 36
  %72 = getelementptr inbounds %"struct.TPCE::TTradeInfo", ptr %71, i32 0, i32 3
  store double %70, ptr %72, align 8, !tbaa !73
  %73 = getelementptr inbounds %"class.TPCE::CTradeGen", ptr %5, i32 0, i32 45
  %74 = getelementptr inbounds %"class.TPCE::CTradeGen", ptr %5, i32 0, i32 36
  %75 = getelementptr inbounds %"struct.TPCE::TTradeInfo", ptr %74, i32 0, i32 6
  %76 = load i64, ptr %75, align 8, !tbaa !70
  %77 = getelementptr inbounds %"class.TPCE::CTradeGen", ptr %5, i32 0, i32 36
  %78 = getelementptr inbounds %"struct.TPCE::TTradeInfo", ptr %77, i32 0, i32 3
  %79 = load double, ptr %78, align 8, !tbaa !73
  %80 = getelementptr inbounds %"class.TPCE::CTradeGen", ptr %5, i32 0, i32 36
  %81 = getelementptr inbounds %"struct.TPCE::TTradeInfo", ptr %80, i32 0, i32 9
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %4, ptr align 8 %81, i64 8, i1 false), !tbaa.struct !71
  %82 = getelementptr inbounds %"class.TPCE::CTradeGen", ptr %5, i32 0, i32 36
  %83 = getelementptr inbounds %"struct.TPCE::TTradeInfo", ptr %82, i32 0, i32 1
  %84 = load i32, ptr %83, align 8, !tbaa !64
  %85 = getelementptr inbounds %"class.TPCE::CMoney", ptr %4, i32 0, i32 0
  %86 = load i64, ptr %85, align 8
  %87 = call noundef double @_ZN4TPCE12CMEESecurity17GetSubmissionTimeExdNS_6CMoneyENS_12eTradeTypeIDE(ptr noundef nonnull align 8 dereferenceable(64) %73, i64 noundef %76, double noundef %79, i64 %86, i32 noundef %84)
  %88 = getelementptr inbounds %"class.TPCE::CTradeGen", ptr %5, i32 0, i32 36
  %89 = getelementptr inbounds %"struct.TPCE::TTradeInfo", ptr %88, i32 0, i32 4
  store double %87, ptr %89, align 8, !tbaa !69
  %90 = getelementptr inbounds %"class.TPCE::CTradeGen", ptr %5, i32 0, i32 36
  %91 = getelementptr inbounds %"struct.TPCE::TTradeInfo", ptr %90, i32 0, i32 4
  %92 = load double, ptr %91, align 8, !tbaa !69
  %93 = fdiv double %92, 3.600000e+03
  %94 = fptosi double %93 to i32
  %95 = srem i32 %94, 24
  %96 = icmp eq i32 %95, 8
  br i1 %96, label %97, label %115

97:                                               ; preds = %68
  %98 = getelementptr inbounds %"class.TPCE::CTradeGen", ptr %5, i32 0, i32 36
  %99 = getelementptr inbounds %"struct.TPCE::TTradeInfo", ptr %98, i32 0, i32 4
  %100 = load double, ptr %99, align 8, !tbaa !69
  %101 = fdiv double %100, 3.600000e+03
  %102 = getelementptr inbounds %"class.TPCE::CTradeGen", ptr %5, i32 0, i32 36
  %103 = getelementptr inbounds %"struct.TPCE::TTradeInfo", ptr %102, i32 0, i32 4
  %104 = load double, ptr %103, align 8, !tbaa !69
  %105 = fdiv double %104, 3.600000e+03
  %106 = fptosi double %105 to i32
  %107 = sitofp i32 %106 to double
  %108 = fsub double %101, %107
  %109 = fcmp ogt double %108, 0.000000e+00
  br i1 %109, label %110, label %115

110:                                              ; preds = %97
  %111 = getelementptr inbounds %"class.TPCE::CTradeGen", ptr %5, i32 0, i32 36
  %112 = getelementptr inbounds %"struct.TPCE::TTradeInfo", ptr %111, i32 0, i32 4
  %113 = load double, ptr %112, align 8, !tbaa !69
  %114 = fadd double %113, 5.760000e+04
  store double %114, ptr %112, align 8, !tbaa !69
  br label %115

115:                                              ; preds = %110, %97, %68
  br label %116

116:                                              ; preds = %115, %53
  %117 = getelementptr inbounds %"class.TPCE::CTradeGen", ptr %5, i32 0, i32 45
  %118 = getelementptr inbounds %"class.TPCE::CTradeGen", ptr %5, i32 0, i32 36
  %119 = getelementptr inbounds %"struct.TPCE::TTradeInfo", ptr %118, i32 0, i32 6
  %120 = load i64, ptr %119, align 8, !tbaa !70
  %121 = getelementptr inbounds %"class.TPCE::CTradeGen", ptr %5, i32 0, i32 36
  %122 = getelementptr inbounds %"struct.TPCE::TTradeInfo", ptr %121, i32 0, i32 4
  %123 = load double, ptr %122, align 8, !tbaa !69
  %124 = getelementptr inbounds %"class.TPCE::CTradeGen", ptr %5, i32 0, i32 36
  %125 = getelementptr inbounds %"struct.TPCE::TTradeInfo", ptr %124, i32 0, i32 10
  %126 = call noundef double @_ZN4TPCE12CMEESecurity17GetCompletionTimeExdPNS_6CMoneyE(ptr noundef nonnull align 8 dereferenceable(64) %117, i64 noundef %120, double noundef %123, ptr noundef %125)
  %127 = getelementptr inbounds %"class.TPCE::CTradeGen", ptr %5, i32 0, i32 36
  %128 = getelementptr inbounds %"struct.TPCE::TTradeInfo", ptr %127, i32 0, i32 5
  store double %126, ptr %128, align 8, !tbaa !74
  %129 = getelementptr inbounds %"class.TPCE::CTradeGen", ptr %5, i32 0, i32 36
  %130 = getelementptr inbounds %"struct.TPCE::TTradeInfo", ptr %129, i32 0, i32 1
  %131 = load i32, ptr %130, align 8, !tbaa !64
  %132 = icmp eq i32 %131, 4
  br i1 %132, label %133, label %139

133:                                              ; preds = %116
  %134 = getelementptr inbounds %"class.TPCE::CTradeGen", ptr %5, i32 0, i32 36
  %135 = getelementptr inbounds %"struct.TPCE::TTradeInfo", ptr %134, i32 0, i32 9
  %136 = getelementptr inbounds %"class.TPCE::CTradeGen", ptr %5, i32 0, i32 36
  %137 = getelementptr inbounds %"struct.TPCE::TTradeInfo", ptr %136, i32 0, i32 10
  %138 = call noundef zeroext i1 @_ZN4TPCE6CMoneyltERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %135, ptr noundef nonnull align 8 dereferenceable(8) %137)
  br i1 %138, label %150, label %139

139:                                              ; preds = %133, %116
  %140 = getelementptr inbounds %"class.TPCE::CTradeGen", ptr %5, i32 0, i32 36
  %141 = getelementptr inbounds %"struct.TPCE::TTradeInfo", ptr %140, i32 0, i32 1
  %142 = load i32, ptr %141, align 8, !tbaa !64
  %143 = icmp eq i32 %142, 3
  br i1 %143, label %144, label %155

144:                                              ; preds = %139
  %145 = getelementptr inbounds %"class.TPCE::CTradeGen", ptr %5, i32 0, i32 36
  %146 = getelementptr inbounds %"struct.TPCE::TTradeInfo", ptr %145, i32 0, i32 9
  %147 = getelementptr inbounds %"class.TPCE::CTradeGen", ptr %5, i32 0, i32 36
  %148 = getelementptr inbounds %"struct.TPCE::TTradeInfo", ptr %147, i32 0, i32 10
  %149 = call noundef zeroext i1 @_ZN4TPCE6CMoneygtERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %146, ptr noundef nonnull align 8 dereferenceable(8) %148)
  br i1 %149, label %150, label %155

150:                                              ; preds = %144, %133
  %151 = getelementptr inbounds %"class.TPCE::CTradeGen", ptr %5, i32 0, i32 36
  %152 = getelementptr inbounds %"struct.TPCE::TTradeInfo", ptr %151, i32 0, i32 9
  %153 = getelementptr inbounds %"class.TPCE::CTradeGen", ptr %5, i32 0, i32 36
  %154 = getelementptr inbounds %"struct.TPCE::TTradeInfo", ptr %153, i32 0, i32 10
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %154, ptr align 8 %152, i64 8, i1 false), !tbaa.struct !71
  br label %155

155:                                              ; preds = %150, %144, %139
  %156 = getelementptr inbounds %"class.TPCE::CTradeGen", ptr %5, i32 0, i32 0
  %157 = call noundef zeroext i1 @_ZN4TPCE7CRandom10RndPercentEi(ptr noundef nonnull align 8 dereferenceable(8) %156, i32 noundef 35)
  br i1 %157, label %158, label %161

158:                                              ; preds = %155
  %159 = getelementptr inbounds %"class.TPCE::CTradeGen", ptr %5, i32 0, i32 36
  %160 = getelementptr inbounds %"struct.TPCE::TTradeInfo", ptr %159, i32 0, i32 15
  store i8 1, ptr %160, align 8, !tbaa !75
  br label %164

161:                                              ; preds = %155
  %162 = getelementptr inbounds %"class.TPCE::CTradeGen", ptr %5, i32 0, i32 36
  %163 = getelementptr inbounds %"struct.TPCE::TTradeInfo", ptr %162, i32 0, i32 15
  store i8 0, ptr %163, align 8, !tbaa !75
  br label %164

164:                                              ; preds = %161, %158
  %165 = getelementptr inbounds %"class.TPCE::CTradeGen", ptr %5, i32 0, i32 32
  %166 = load i64, ptr %165, align 8, !tbaa !76
  %167 = add nsw i64 %166, 1
  store i64 %167, ptr %165, align 8, !tbaa !76
  ret void
}

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

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

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

declare void @_ZN4TPCE18CCustomerSelection22GenerateRandomCustomerERxRNS_13eCustomerTierE(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4)) #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4TPCE23CHoldingsAndTradesTable29GenerateRandomAccountSecurityExNS_13eCustomerTierEPxS2_Pj(ptr noundef nonnull align 8 dereferenceable(1840), i64 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) #2 align 2

declare noundef double @_ZN4TPCE7CRandom18RndDoubleIncrRangeEddd(ptr noundef nonnull align 8 dereferenceable(8), double noundef, double noundef, double noundef) #4

declare noundef i32 @_ZN4TPCE7CRandom11RndIntRangeEii(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef, i32 noundef) #4

declare i64 @_ZN4TPCE12CMEESecurity14CalculatePriceExd(ptr noundef nonnull align 8 dereferenceable(64), i64 noundef, double noundef) #4

declare noundef double @_ZN4TPCE12CMEESecurity17GetSubmissionTimeExdNS_6CMoneyENS_12eTradeTypeIDE(ptr noundef nonnull align 8 dereferenceable(64), i64 noundef, double noundef, i64, i32 noundef) #4

declare noundef double @_ZN4TPCE12CMEESecurity17GetCompletionTimeExdPNS_6CMoneyE(ptr noundef nonnull align 8 dereferenceable(64), i64 noundef, double noundef, ptr noundef) #4

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

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

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

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

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

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


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

@_ZN4TPCEL16cTRADE_QTY_SIZESE = external hidden local_unnamed_addr constant [4 x i32], align 16

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4TPCE9CTradeGen16GenerateNewTradeEv(ptr noundef nonnull align 8 dereferenceable(7356) %0) local_unnamed_addr #0 align 2 {
  %2 = tail call noundef i64 @_ZN4TPCE9CTradeGen19GenerateNextTradeIdEv(ptr noundef nonnull align 8 dereferenceable(7356) %0)
  %3 = getelementptr inbounds i8, ptr %0, i64 6256
  store i64 %2, ptr %3, align 8, !tbaa !5
  %4 = getelementptr inbounds i8, ptr %0, i64 424
  %5 = getelementptr inbounds i8, ptr %0, i64 6328
  %6 = getelementptr inbounds i8, ptr %0, i64 6336
  tail call void @_ZN4TPCE18CCustomerSelection22GenerateRandomCustomerERxRNS_13eCustomerTierE(ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 4 dereferenceable(4) %6)
  %7 = getelementptr inbounds i8, ptr %0, i64 3576
  %8 = load i64, ptr %5, align 8, !tbaa !61
  %9 = load i32, ptr %6, align 8, !tbaa !62
  %10 = getelementptr inbounds i8, ptr %0, i64 6344
  %11 = getelementptr inbounds i8, ptr %0, i64 6296
  %12 = getelementptr inbounds i8, ptr %0, i64 6304
  tail call void @_ZN4TPCE23CHoldingsAndTradesTable29GenerateRandomAccountSecurityExNS_13eCustomerTierEPxS2_Pj(ptr noundef nonnull align 8 dereferenceable(1840) %7, i64 noundef %8, i32 noundef %9, ptr noundef nonnull %10, ptr noundef nonnull %11, ptr noundef nonnull %12)
  %13 = tail call noundef i32 @_ZN4TPCE9CTradeGen17GenerateTradeTypeEv(ptr noundef nonnull align 8 dereferenceable(7356) %0)
  %14 = getelementptr inbounds i8, ptr %0, i64 6264
  store i32 %13, ptr %14, align 8, !tbaa !63
  %15 = getelementptr inbounds i8, ptr %0, i64 6268
  store i32 0, ptr %15, align 4, !tbaa !64
  %16 = tail call noundef double @_ZN4TPCE7CRandom18RndDoubleIncrRangeEddd(ptr noundef nonnull align 8 dereferenceable(8) %0, double noundef 2.000000e+01, double noundef 3.000000e+01, double noundef 1.000000e-02)
  %17 = getelementptr inbounds i8, ptr %0, i64 6312
  %18 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4TPCE6CMoneyaSEd(ptr noundef nonnull align 8 dereferenceable(8) %17, double noundef %16)
  %19 = tail call noundef i32 @_ZN4TPCE7CRandom11RndIntRangeEii(ptr noundef nonnull align 8 dereferenceable(8) %0, i32 noundef 0, i32 noundef 3)
  %20 = sext i32 %19 to i64
  %21 = getelementptr inbounds [4 x i32], ptr @_ZN4TPCEL16cTRADE_QTY_SIZESE, i64 0, i64 %20
  %22 = load i32, ptr %21, align 4, !tbaa !65
  %23 = getelementptr inbounds i8, ptr %0, i64 6308
  store i32 %22, ptr %23, align 4, !tbaa !66
  %24 = load i32, ptr %14, align 8, !tbaa !63
  %switch = icmp ult i32 %24, 2
  %25 = getelementptr inbounds i8, ptr %0, i64 6176
  %26 = load double, ptr %25, align 8, !tbaa !67
  %27 = getelementptr inbounds i8, ptr %0, i64 7256
  br i1 %switch, label %28, label %32

28:                                               ; preds = %1
  %29 = getelementptr inbounds i8, ptr %0, i64 6280
  store double %26, ptr %29, align 8, !tbaa !68
  %30 = load i64, ptr %11, align 8, !tbaa !69
  %31 = tail call i64 @_ZN4TPCE12CMEESecurity14CalculatePriceExd(ptr noundef nonnull align 8 dereferenceable(64) %27, i64 noundef %30, double noundef %26)
  store i64 %31, ptr %17, align 8, !tbaa !70
  %.pre = load double, ptr %29, align 8, !tbaa !68
  br label %45

32:                                               ; preds = %1
  %33 = getelementptr inbounds i8, ptr %0, i64 6272
  store double %26, ptr %33, align 8, !tbaa !71
  %34 = load i64, ptr %11, align 8, !tbaa !69
  %.sroa.0.0.copyload = load i64, ptr %17, align 8, !tbaa !70
  %35 = tail call noundef double @_ZN4TPCE12CMEESecurity17GetSubmissionTimeExdNS_6CMoneyENS_12eTradeTypeIDE(ptr noundef nonnull align 8 dereferenceable(64) %27, i64 noundef %34, double noundef %26, i64 %.sroa.0.0.copyload, i32 noundef %24)
  %36 = getelementptr inbounds i8, ptr %0, i64 6280
  store double %35, ptr %36, align 8, !tbaa !68
  %37 = fdiv double %35, 3.600000e+03
  %38 = fptosi double %37 to i32
  %39 = srem i32 %38, 24
  %40 = icmp eq i32 %39, 8
  %41 = sitofp i32 %38 to double
  %42 = fcmp ogt double %37, %41
  %or.cond = and i1 %40, %42
  br i1 %or.cond, label %43, label %45

43:                                               ; preds = %32
  %44 = fadd double %35, 5.760000e+04
  store double %44, ptr %36, align 8, !tbaa !68
  br label %45

45:                                               ; preds = %32, %43, %28
  %46 = phi double [ %35, %32 ], [ %44, %43 ], [ %.pre, %28 ]
  %47 = getelementptr inbounds i8, ptr %0, i64 7256
  %48 = load i64, ptr %11, align 8, !tbaa !69
  %49 = getelementptr inbounds i8, ptr %0, i64 6320
  %50 = tail call noundef double @_ZN4TPCE12CMEESecurity17GetCompletionTimeExdPNS_6CMoneyE(ptr noundef nonnull align 8 dereferenceable(64) %47, i64 noundef %48, double noundef %46, ptr noundef nonnull %49)
  %51 = getelementptr inbounds i8, ptr %0, i64 6288
  store double %50, ptr %51, align 8, !tbaa !72
  %52 = load i32, ptr %14, align 8, !tbaa !63
  %53 = icmp eq i32 %52, 4
  br i1 %53, label %54, label %56

54:                                               ; preds = %45
  %55 = tail call noundef zeroext i1 @_ZN4TPCE6CMoneyltERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %49)
  br i1 %55, label %61, label %thread-pre-split

thread-pre-split:                                 ; preds = %54
  %.pr = load i32, ptr %14, align 8, !tbaa !63
  br label %56

56:                                               ; preds = %thread-pre-split, %45
  %57 = phi i32 [ %.pr, %thread-pre-split ], [ %52, %45 ]
  %58 = icmp eq i32 %57, 3
  br i1 %58, label %59, label %63

59:                                               ; preds = %56
  %60 = tail call noundef zeroext i1 @_ZN4TPCE6CMoneygtERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %49)
  br i1 %60, label %61, label %63

61:                                               ; preds = %59, %54
  %62 = load i64, ptr %17, align 8, !tbaa !70
  store i64 %62, ptr %49, align 8, !tbaa !70
  br label %63

63:                                               ; preds = %61, %59, %56
  %64 = tail call noundef zeroext i1 @_ZN4TPCE7CRandom10RndPercentEi(ptr noundef nonnull align 8 dereferenceable(8) %0, i32 noundef 35)
  %spec.select = zext i1 %64 to i8
  %65 = getelementptr inbounds i8, ptr %0, i64 6352
  store i8 %spec.select, ptr %65, align 8
  %66 = getelementptr inbounds i8, ptr %0, i64 6232
  %67 = load i64, ptr %66, align 8, !tbaa !73
  %68 = add nsw i64 %67, 1
  store i64 %68, ptr %66, align 8, !tbaa !73
  ret void
}

; 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 #1 align 2

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

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

declare void @_ZN4TPCE18CCustomerSelection22GenerateRandomCustomerERxRNS_13eCustomerTierE(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2

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

declare noundef double @_ZN4TPCE7CRandom18RndDoubleIncrRangeEddd(ptr noundef nonnull align 8 dereferenceable(8), double noundef, double noundef, double noundef) local_unnamed_addr #2

declare noundef i32 @_ZN4TPCE7CRandom11RndIntRangeEii(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef, i32 noundef) local_unnamed_addr #2

declare i64 @_ZN4TPCE12CMEESecurity14CalculatePriceExd(ptr noundef nonnull align 8 dereferenceable(64), i64 noundef, double noundef) local_unnamed_addr #2

declare noundef double @_ZN4TPCE12CMEESecurity17GetSubmissionTimeExdNS_6CMoneyENS_12eTradeTypeIDE(ptr noundef nonnull align 8 dereferenceable(64), i64 noundef, double noundef, i64, i32 noundef) local_unnamed_addr #2

declare noundef double @_ZN4TPCE12CMEESecurity17GetCompletionTimeExdPNS_6CMoneyE(ptr noundef nonnull align 8 dereferenceable(64), i64 noundef, double noundef, ptr noundef) local_unnamed_addr #2

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

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

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 = { "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" }

!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, !8, i64 6256}
!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 = !{!6, !8, i64 6328}
!62 = !{!6, !49, i64 6336}
!63 = !{!6, !46, i64 6264}
!64 = !{!6, !47, i64 6268}
!65 = !{!16, !16, i64 0}
!66 = !{!6, !16, i64 6308}
!67 = !{!6, !30, i64 6176}
!68 = !{!6, !30, i64 6280}
!69 = !{!6, !8, i64 6296}
!70 = !{!8, !8, i64 0}
!71 = !{!6, !30, i64 6272}
!72 = !{!6, !30, i64 6288}
!73 = !{!6, !8, i64 6232}


; Effective O3 passes: BDCEPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,MergedLoadStoreMotionPass,SROAPass,SimplifyCFGPass,TailCallElimPass