; LLVM IR from sfu-dis/mosaicdb :: benchmarks/egen (CETxnInputGenerator)

; 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::CCETxnInputGenerator" = type { %"class.TPCE::CRandom", %"class.TPCE::CPerson", %"class.TPCE::CCustomerSelection", %"class.TPCE::CCustomerAccountsAndPermissionsTable", %"class.TPCE::CHoldingsAndTradesTable", %"class.TPCE::CBrokersTable", ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i64, i64, i64, i64, i32, i32, i32, i64, i64, i64, i64, i64, i64, i64, i64, i32, i32, i64, %"class.TPCE::CDateTime", %"class.TPCE::CDateTime", i32, i32 }
%"class.TPCE::CRandom" = type { i64 }
%"class.TPCE::CPerson" = type { ptr, ptr, ptr, %"class.TPCE::CRandom", i8, i32, i64, ptr, ptr }
%"class.TPCE::CCustomerSelection" = type { ptr, i64, i64, i8, i32, i64, i64 }
%"class.TPCE::CCustomerAccountsAndPermissionsTable" = type { %"class.TPCE::TableTemplate", 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" = 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::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::CAddressTable" = type { %"class.TPCE::TableTemplate.1", %"class.TPCE::CDateTime", ptr, ptr, ptr, ptr, i64, i64, i8, i8, i64, i32, i64, i8, i32, i64, ptr }
%"class.TPCE::TableTemplate.1" = 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::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.2", i64, i64, i64, %"class.TPCE::CPerson", ptr, ptr, ptr }
%"class.TPCE::TableTemplate.2" = 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::CDateTime" = type { i32, i32, ptr }
%"struct.TPCE::TTradeOrderTxnInput" = type { double, i64, i32, i32, i32, i32, [61 x i8], [21 x i8], [26 x i8], [21 x i8], [7 x i8], [5 x i8], [5 x i8], [16 x i8], [4 x i8] }
%"struct.TPCE::TDriverCETxnSettings" = type { %"class.TPCE::CBrokerVolumeSettings", %"class.TPCE::CCustomerPositionSettings", %"class.TPCE::CMarketWatchSettings", %"class.TPCE::CSecurityDetailSettings", %"class.TPCE::CTradeLookupSettings", %"class.TPCE::CTradeOrderSettings", %"class.TPCE::CTradeUpdateSettings", %"class.TPCE::CTxnMixGeneratorSettings" }
%"class.TPCE::CBrokerVolumeSettings" = type { %"class.TPCE::CParametersWithDefaults.base", [5 x i8] }
%"class.TPCE::CParametersWithDefaults.base" = type <{ ptr, [3 x i8] }>
%"class.TPCE::CCustomerPositionSettings" = type { %"class.TPCE::CParametersWithDefaults.base.16", [4 x i8] }
%"class.TPCE::CParametersWithDefaults.base.16" = type <{ ptr, %"struct.TPCE::TCustomerPositionSettings", %"struct.TPCE::TCustomerPositionSettingsState", i8, %"struct.TPCE::TCustomerPositionSettings" }>
%"struct.TPCE::TCustomerPositionSettingsState" = type { i8, i8, i8 }
%"struct.TPCE::TCustomerPositionSettings" = type { i32, i32, i32 }
%"class.TPCE::CMarketWatchSettings" = type { %"class.TPCE::CParametersWithDefaults.base.18", [4 x i8] }
%"class.TPCE::CParametersWithDefaults.base.18" = type <{ ptr, %"struct.TPCE::TMarketWatchSettings", %"struct.TPCE::TMarketWatchSettingsState", i8, %"struct.TPCE::TMarketWatchSettings" }>
%"struct.TPCE::TMarketWatchSettingsState" = type { i8, i8, i8 }
%"struct.TPCE::TMarketWatchSettings" = type { i32, i32, i32 }
%"class.TPCE::CSecurityDetailSettings" = type { %"class.TPCE::CParametersWithDefaults.base.20", [4 x i8] }
%"class.TPCE::CParametersWithDefaults.base.20" = type <{ ptr, %"struct.TPCE::TSecurityDetailSettings", %"struct.TPCE::TSecurityDetailSettingsState", [3 x i8], %"struct.TPCE::TSecurityDetailSettings" }>
%"struct.TPCE::TSecurityDetailSettingsState" = type { i8 }
%"struct.TPCE::TSecurityDetailSettings" = type { i32 }
%"class.TPCE::CTradeLookupSettings" = type { %"class.TPCE::CParametersWithDefaults.base.22", [4 x i8] }
%"class.TPCE::CParametersWithDefaults.base.22" = type <{ ptr, %"struct.TPCE::TTradeLookupSettings", %"struct.TPCE::TTradeLookupSettingsState", i8, %"struct.TPCE::TTradeLookupSettings" }>
%"struct.TPCE::TTradeLookupSettingsState" = type { i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8 }
%"struct.TPCE::TTradeLookupSettings" = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%"class.TPCE::CTradeOrderSettings" = type { %"class.TPCE::CParametersWithDefaults.base.24", [4 x i8] }
%"class.TPCE::CParametersWithDefaults.base.24" = type <{ ptr, %"struct.TPCE::TTradeOrderSettings", %"struct.TPCE::TTradeOrderSettingsState", i8, %"struct.TPCE::TTradeOrderSettings" }>
%"struct.TPCE::TTradeOrderSettingsState" = type { i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8 }
%"struct.TPCE::TTradeOrderSettings" = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%"class.TPCE::CTradeUpdateSettings" = type { %"class.TPCE::CParametersWithDefaults.base.26", [4 x i8] }
%"class.TPCE::CParametersWithDefaults.base.26" = type <{ ptr, %"struct.TPCE::TTradeUpdateSettings", %"struct.TPCE::TTradeUpdateSettingsState", i8, %"struct.TPCE::TTradeUpdateSettings" }>
%"struct.TPCE::TTradeUpdateSettingsState" = type { i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8 }
%"struct.TPCE::TTradeUpdateSettings" = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%"class.TPCE::CTxnMixGeneratorSettings" = type { %"class.TPCE::CParametersWithDefaults.base.28", [4 x i8] }
%"class.TPCE::CParametersWithDefaults.base.28" = type <{ ptr, %"struct.TPCE::TTxnMixGeneratorSettings", %"struct.TPCE::TTxnMixGeneratorSettingsState", [3 x i8], %"struct.TPCE::TTxnMixGeneratorSettings" }>
%"struct.TPCE::TTxnMixGeneratorSettingsState" = type { i8, i8, i8, i8, i8, i8, i8, i8, i8 }
%"struct.TPCE::TTxnMixGeneratorSettings" = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%"class.TPCE::CParametersWithDefaults.23" = type <{ ptr, %"struct.TPCE::TTradeOrderSettings", %"struct.TPCE::TTradeOrderSettingsState", i8, %"struct.TPCE::TTradeOrderSettings", [4 x i8] }>
%"struct.TPCE::TSecurityInputRow" = type { %"struct.TPCE::TBaseInputRow", i64, [7 x i8], [5 x i8], [16 x i8], [7 x i8], i64 }
%"struct.TPCE::TBaseInputRow" = type { ptr }
%"struct.TPCE::TRADE_TYPE_ROW" = type { [4 x i8], [13 x i8], i8, i8 }
%"struct.TPCE::STATUS_TYPE_ROW" = type { %"struct.TPCE::TBaseInputRow", [5 x i8], [11 x i8] }

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

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

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

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

; Function Attrs: nounwind
declare ptr @strncpy(ptr noundef, ptr noundef, i64 noundef) #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN4TPCE20CCETxnInputGenerator34GenerateNonUniformRandomCustomerIdERxRNS_13eCustomerTierE(ptr noundef nonnull align 8 dereferenceable(4032), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4)) #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4TPCE13CSecurityFile12CreateSymbolExPcm(ptr noundef nonnull align 8 dereferenceable(161), i64 noundef, ptr noundef, i64 noundef) #4 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4TPCE20CCETxnInputGenerator23GenerateTradeOrderInputERNS_19TTradeOrderTxnInputERiRb(ptr noundef nonnull align 8 dereferenceable(4032) %0, ptr noundef nonnull align 8 dereferenceable(200) %1, ptr noundef nonnull align 4 dereferenceable(4) %2, ptr noundef nonnull align 1 dereferenceable(1) %3) #4 align 2 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i64, align 8
  %10 = alloca i32, align 4
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i8, align 1
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i64, align 8
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  %19 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  call void @_ZN4TPCE20CCETxnInputGenerator34GenerateNonUniformRandomCustomerIdERxRNS_13eCustomerTierE(ptr noundef nonnull align 8 dereferenceable(4032) %19, ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 4 dereferenceable(4) %10)
  %20 = getelementptr inbounds %"class.TPCE::CCETxnInputGenerator", ptr %19, i32 0, i32 4
  %21 = load i64, ptr %9, align 8, !tbaa !9
  %22 = load i32, ptr %10, align 4, !tbaa !11
  %23 = load ptr, ptr %6, align 8, !tbaa !5
  %24 = getelementptr inbounds %"struct.TPCE::TTradeOrderTxnInput", ptr %23, i32 0, i32 1
  call void @_ZN4TPCE23CHoldingsAndTradesTable29GenerateRandomAccountSecurityExNS_13eCustomerTierEPxS2_Pj(ptr noundef nonnull align 8 dereferenceable(1840) %20, i64 noundef %21, i32 noundef %22, ptr noundef %24, ptr noundef %16, ptr noundef %15)
  %25 = getelementptr inbounds %"class.TPCE::CCETxnInputGenerator", ptr %19, i32 0, i32 3
  %26 = load ptr, ptr %6, align 8, !tbaa !5
  %27 = getelementptr inbounds %"struct.TPCE::TTradeOrderTxnInput", ptr %26, i32 0, i32 1
  %28 = load i64, ptr %27, align 8, !tbaa !13
  %29 = call noundef i32 @_ZN4TPCE36CCustomerAccountsAndPermissionsTable16GetNumPermsForCAEx(ptr noundef nonnull align 8 dereferenceable(1616) %25, i64 noundef %28)
  store i32 %29, ptr %14, align 4, !tbaa !17
  %30 = load i32, ptr %14, align 4, !tbaa !17
  %31 = icmp eq i32 %30, 0
  br i1 %31, label %32, label %45

32:                                               ; preds = %4
  %33 = getelementptr inbounds %"class.TPCE::CCETxnInputGenerator", ptr %19, i32 0, i32 1
  %34 = load i64, ptr %9, align 8, !tbaa !9
  %35 = load ptr, ptr %6, align 8, !tbaa !5
  %36 = getelementptr inbounds %"struct.TPCE::TTradeOrderTxnInput", ptr %35, i32 0, i32 7
  %37 = getelementptr inbounds [21 x i8], ptr %36, i64 0, i64 0
  %38 = load ptr, ptr %6, align 8, !tbaa !5
  %39 = getelementptr inbounds %"struct.TPCE::TTradeOrderTxnInput", ptr %38, i32 0, i32 8
  %40 = getelementptr inbounds [26 x i8], ptr %39, i64 0, i64 0
  %41 = load ptr, ptr %6, align 8, !tbaa !5
  %42 = getelementptr inbounds %"struct.TPCE::TTradeOrderTxnInput", ptr %41, i32 0, i32 9
  %43 = getelementptr inbounds [21 x i8], ptr %42, i64 0, i64 0
  call void @_ZN4TPCE7CPerson20GetFirstLastAndTaxIDExPcS1_S1_(ptr noundef nonnull align 8 dereferenceable(64) %33, i64 noundef %34, ptr noundef %37, ptr noundef %40, ptr noundef %43)
  %44 = load ptr, ptr %8, align 8, !tbaa !5
  store i8 1, ptr %44, align 1, !tbaa !18
  br label %111

45:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  %46 = getelementptr inbounds %"class.TPCE::CCETxnInputGenerator", ptr %19, i32 0, i32 12
  %47 = load ptr, ptr %46, align 8, !tbaa !20
  %48 = getelementptr inbounds %"struct.TPCE::TDriverCETxnSettings", ptr %47, i32 0, i32 5
  %49 = getelementptr inbounds %"class.TPCE::CParametersWithDefaults.23", ptr %48, i32 0, i32 4
  %50 = getelementptr inbounds %"struct.TPCE::TTradeOrderSettings", ptr %49, i32 0, i32 8
  %51 = load i32, ptr %50, align 8, !tbaa !40
  %52 = sub i32 %51, 60
  %53 = mul i32 %52, 100
  %54 = udiv i32 %53, 40
  store i32 %54, ptr %18, align 4, !tbaa !17
  %55 = getelementptr inbounds %"class.TPCE::CCETxnInputGenerator", ptr %19, i32 0, i32 0
  %56 = load i32, ptr %18, align 4, !tbaa !17
  %57 = call noundef zeroext i1 @_ZN4TPCE7CRandom10RndPercentEi(ptr noundef nonnull align 8 dereferenceable(8) %55, i32 noundef %56)
  br i1 %57, label %58, label %71

58:                                               ; preds = %45
  %59 = getelementptr inbounds %"class.TPCE::CCETxnInputGenerator", ptr %19, i32 0, i32 1
  %60 = load i64, ptr %9, align 8, !tbaa !9
  %61 = load ptr, ptr %6, align 8, !tbaa !5
  %62 = getelementptr inbounds %"struct.TPCE::TTradeOrderTxnInput", ptr %61, i32 0, i32 7
  %63 = getelementptr inbounds [21 x i8], ptr %62, i64 0, i64 0
  %64 = load ptr, ptr %6, align 8, !tbaa !5
  %65 = getelementptr inbounds %"struct.TPCE::TTradeOrderTxnInput", ptr %64, i32 0, i32 8
  %66 = getelementptr inbounds [26 x i8], ptr %65, i64 0, i64 0
  %67 = load ptr, ptr %6, align 8, !tbaa !5
  %68 = getelementptr inbounds %"struct.TPCE::TTradeOrderTxnInput", ptr %67, i32 0, i32 9
  %69 = getelementptr inbounds [21 x i8], ptr %68, i64 0, i64 0
  call void @_ZN4TPCE7CPerson20GetFirstLastAndTaxIDExPcS1_S1_(ptr noundef nonnull align 8 dereferenceable(64) %59, i64 noundef %60, ptr noundef %63, ptr noundef %66, ptr noundef %69)
  %70 = load ptr, ptr %8, align 8, !tbaa !5
  store i8 1, ptr %70, align 1, !tbaa !18
  br label %110

71:                                               ; preds = %45
  %72 = load i32, ptr %14, align 4, !tbaa !17
  %73 = icmp eq i32 %72, 1
  br i1 %73, label %74, label %91

74:                                               ; preds = %71
  %75 = getelementptr inbounds %"class.TPCE::CCETxnInputGenerator", ptr %19, i32 0, i32 3
  %76 = load ptr, ptr %6, align 8, !tbaa !5
  %77 = getelementptr inbounds %"struct.TPCE::TTradeOrderTxnInput", ptr %76, i32 0, i32 1
  %78 = load i64, ptr %77, align 8, !tbaa !13
  %79 = load i64, ptr %9, align 8, !tbaa !9
  call void @_ZN4TPCE36CCustomerAccountsAndPermissionsTable21GetCIDsForPermissionsExxPxS1_(ptr noundef nonnull align 8 dereferenceable(1616) %75, i64 noundef %78, i64 noundef %79, ptr noundef %11, ptr noundef null)
  %80 = getelementptr inbounds %"class.TPCE::CCETxnInputGenerator", ptr %19, i32 0, i32 1
  %81 = load i64, ptr %11, align 8, !tbaa !9
  %82 = load ptr, ptr %6, align 8, !tbaa !5
  %83 = getelementptr inbounds %"struct.TPCE::TTradeOrderTxnInput", ptr %82, i32 0, i32 7
  %84 = getelementptr inbounds [21 x i8], ptr %83, i64 0, i64 0
  %85 = load ptr, ptr %6, align 8, !tbaa !5
  %86 = getelementptr inbounds %"struct.TPCE::TTradeOrderTxnInput", ptr %85, i32 0, i32 8
  %87 = getelementptr inbounds [26 x i8], ptr %86, i64 0, i64 0
  %88 = load ptr, ptr %6, align 8, !tbaa !5
  %89 = getelementptr inbounds %"struct.TPCE::TTradeOrderTxnInput", ptr %88, i32 0, i32 9
  %90 = getelementptr inbounds [21 x i8], ptr %89, i64 0, i64 0
  call void @_ZN4TPCE7CPerson20GetFirstLastAndTaxIDExPcS1_S1_(ptr noundef nonnull align 8 dereferenceable(64) %80, i64 noundef %81, ptr noundef %84, ptr noundef %87, ptr noundef %90)
  br label %108

91:                                               ; preds = %71
  %92 = getelementptr inbounds %"class.TPCE::CCETxnInputGenerator", ptr %19, i32 0, i32 3
  %93 = load ptr, ptr %6, align 8, !tbaa !5
  %94 = getelementptr inbounds %"struct.TPCE::TTradeOrderTxnInput", ptr %93, i32 0, i32 1
  %95 = load i64, ptr %94, align 8, !tbaa !13
  %96 = load i64, ptr %9, align 8, !tbaa !9
  call void @_ZN4TPCE36CCustomerAccountsAndPermissionsTable21GetCIDsForPermissionsExxPxS1_(ptr noundef nonnull align 8 dereferenceable(1616) %92, i64 noundef %95, i64 noundef %96, ptr noundef %11, ptr noundef %12)
  %97 = getelementptr inbounds %"class.TPCE::CCETxnInputGenerator", ptr %19, i32 0, i32 1
  %98 = load i64, ptr %12, align 8, !tbaa !9
  %99 = load ptr, ptr %6, align 8, !tbaa !5
  %100 = getelementptr inbounds %"struct.TPCE::TTradeOrderTxnInput", ptr %99, i32 0, i32 7
  %101 = getelementptr inbounds [21 x i8], ptr %100, i64 0, i64 0
  %102 = load ptr, ptr %6, align 8, !tbaa !5
  %103 = getelementptr inbounds %"struct.TPCE::TTradeOrderTxnInput", ptr %102, i32 0, i32 8
  %104 = getelementptr inbounds [26 x i8], ptr %103, i64 0, i64 0
  %105 = load ptr, ptr %6, align 8, !tbaa !5
  %106 = getelementptr inbounds %"struct.TPCE::TTradeOrderTxnInput", ptr %105, i32 0, i32 9
  %107 = getelementptr inbounds [21 x i8], ptr %106, i64 0, i64 0
  call void @_ZN4TPCE7CPerson20GetFirstLastAndTaxIDExPcS1_S1_(ptr noundef nonnull align 8 dereferenceable(64) %97, i64 noundef %98, ptr noundef %101, ptr noundef %104, ptr noundef %107)
  br label %108

108:                                              ; preds = %91, %74
  %109 = load ptr, ptr %8, align 8, !tbaa !5
  store i8 0, ptr %109, align 1, !tbaa !18
  br label %110

110:                                              ; preds = %108, %58
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  br label %111

111:                                              ; preds = %110, %32
  %112 = getelementptr inbounds %"class.TPCE::CCETxnInputGenerator", ptr %19, i32 0, i32 0
  %113 = getelementptr inbounds %"class.TPCE::CCETxnInputGenerator", ptr %19, i32 0, i32 12
  %114 = load ptr, ptr %113, align 8, !tbaa !20
  %115 = getelementptr inbounds %"struct.TPCE::TDriverCETxnSettings", ptr %114, i32 0, i32 5
  %116 = getelementptr inbounds %"class.TPCE::CParametersWithDefaults.23", ptr %115, i32 0, i32 4
  %117 = getelementptr inbounds %"struct.TPCE::TTradeOrderSettings", ptr %116, i32 0, i32 4
  %118 = load i32, ptr %117, align 8, !tbaa !44
  %119 = call noundef zeroext i1 @_ZN4TPCE7CRandom10RndPercentEi(ptr noundef nonnull align 8 dereferenceable(8) %112, i32 noundef %118)
  br i1 %119, label %120, label %133

120:                                              ; preds = %111
  %121 = getelementptr inbounds %"class.TPCE::CCETxnInputGenerator", ptr %19, i32 0, i32 7
  %122 = load ptr, ptr %121, align 8, !tbaa !45
  %123 = load i64, ptr %16, align 8, !tbaa !9
  %124 = load ptr, ptr %6, align 8, !tbaa !5
  %125 = getelementptr inbounds %"struct.TPCE::TTradeOrderTxnInput", ptr %124, i32 0, i32 13
  %126 = getelementptr inbounds [16 x i8], ptr %125, i64 0, i64 0
  call void @_ZN4TPCE13CSecurityFile12CreateSymbolExPcm(ptr noundef nonnull align 8 dereferenceable(161) %122, i64 noundef %123, ptr noundef %126, i64 noundef 16)
  %127 = load ptr, ptr %6, align 8, !tbaa !5
  %128 = getelementptr inbounds %"struct.TPCE::TTradeOrderTxnInput", ptr %127, i32 0, i32 6
  %129 = getelementptr inbounds [61 x i8], ptr %128, i64 0, i64 0
  store i8 0, ptr %129, align 8, !tbaa !46
  %130 = load ptr, ptr %6, align 8, !tbaa !5
  %131 = getelementptr inbounds %"struct.TPCE::TTradeOrderTxnInput", ptr %130, i32 0, i32 10
  %132 = getelementptr inbounds [7 x i8], ptr %131, i64 0, i64 0
  store i8 0, ptr %132, align 1, !tbaa !46
  br label %156

133:                                              ; preds = %111
  %134 = getelementptr inbounds %"class.TPCE::CCETxnInputGenerator", ptr %19, i32 0, i32 6
  %135 = load ptr, ptr %134, align 8, !tbaa !47
  %136 = getelementptr inbounds %"class.TPCE::CCETxnInputGenerator", ptr %19, i32 0, i32 7
  %137 = load ptr, ptr %136, align 8, !tbaa !45
  %138 = load i64, ptr %16, align 8, !tbaa !9
  %139 = call noundef i64 @_ZN4TPCE13CSecurityFile15GetCompanyIndexEx(ptr noundef nonnull align 8 dereferenceable(161) %137, i64 noundef %138)
  %140 = load ptr, ptr %6, align 8, !tbaa !5
  %141 = getelementptr inbounds %"struct.TPCE::TTradeOrderTxnInput", ptr %140, i32 0, i32 6
  %142 = getelementptr inbounds [61 x i8], ptr %141, i64 0, i64 0
  call void @_ZN4TPCE12CCompanyFile10CreateNameExPcm(ptr noundef nonnull align 8 dereferenceable(56) %135, i64 noundef %139, ptr noundef %142, i64 noundef 61)
  %143 = load ptr, ptr %6, align 8, !tbaa !5
  %144 = getelementptr inbounds %"struct.TPCE::TTradeOrderTxnInput", ptr %143, i32 0, i32 10
  %145 = getelementptr inbounds [7 x i8], ptr %144, i64 0, i64 0
  %146 = getelementptr inbounds %"class.TPCE::CCETxnInputGenerator", ptr %19, i32 0, i32 7
  %147 = load ptr, ptr %146, align 8, !tbaa !45
  %148 = load i64, ptr %16, align 8, !tbaa !9
  %149 = call noundef ptr @_ZN4TPCE13CSecurityFile9GetRecordEx(ptr noundef nonnull align 8 dereferenceable(161) %147, i64 noundef %148)
  %150 = getelementptr inbounds %"struct.TPCE::TSecurityInputRow", ptr %149, i32 0, i32 2
  %151 = getelementptr inbounds [7 x i8], ptr %150, i64 0, i64 0
  %152 = call ptr @strncpy(ptr noundef %145, ptr noundef %151, i64 noundef 7) #6
  %153 = load ptr, ptr %6, align 8, !tbaa !5
  %154 = getelementptr inbounds %"struct.TPCE::TTradeOrderTxnInput", ptr %153, i32 0, i32 13
  %155 = getelementptr inbounds [16 x i8], ptr %154, i64 0, i64 0
  store i8 0, ptr %155, align 2, !tbaa !46
  br label %156

156:                                              ; preds = %133, %120
  %157 = getelementptr inbounds %"class.TPCE::CCETxnInputGenerator", ptr %19, i32 0, i32 0
  %158 = call noundef i32 @_ZN4TPCE7CRandom11RndIntRangeEii(ptr noundef nonnull align 8 dereferenceable(8) %157, i32 noundef 0, i32 noundef 3)
  %159 = sext i32 %158 to i64
  %160 = getelementptr inbounds [4 x i32], ptr @_ZN4TPCEL16cTRADE_QTY_SIZESE, i64 0, i64 %159
  %161 = load i32, ptr %160, align 4, !tbaa !17
  %162 = load ptr, ptr %6, align 8, !tbaa !5
  %163 = getelementptr inbounds %"struct.TPCE::TTradeOrderTxnInput", ptr %162, i32 0, i32 4
  store i32 %161, ptr %163, align 8, !tbaa !48
  %164 = getelementptr inbounds %"class.TPCE::CCETxnInputGenerator", ptr %19, i32 0, i32 0
  %165 = call noundef double @_ZN4TPCE7CRandom18RndDoubleIncrRangeEddd(ptr noundef nonnull align 8 dereferenceable(8) %164, double noundef 2.000000e+01, double noundef 3.000000e+01, double noundef 1.000000e-02)
  %166 = load ptr, ptr %6, align 8, !tbaa !5
  %167 = getelementptr inbounds %"struct.TPCE::TTradeOrderTxnInput", ptr %166, i32 0, i32 0
  store double %165, ptr %167, align 8, !tbaa !49
  %168 = getelementptr inbounds %"class.TPCE::CCETxnInputGenerator", ptr %19, i32 0, i32 0
  %169 = getelementptr inbounds %"class.TPCE::CCETxnInputGenerator", ptr %19, i32 0, i32 12
  %170 = load ptr, ptr %169, align 8, !tbaa !20
  %171 = getelementptr inbounds %"struct.TPCE::TDriverCETxnSettings", ptr %170, i32 0, i32 5
  %172 = getelementptr inbounds %"class.TPCE::CParametersWithDefaults.23", ptr %171, i32 0, i32 4
  %173 = getelementptr inbounds %"struct.TPCE::TTradeOrderSettings", ptr %172, i32 0, i32 0
  %174 = load i32, ptr %173, align 8, !tbaa !50
  %175 = call noundef zeroext i1 @_ZN4TPCE7CRandom10RndPercentEi(ptr noundef nonnull align 8 dereferenceable(8) %168, i32 noundef %174)
  %176 = zext i1 %175 to i8
  store i8 %176, ptr %13, align 1, !tbaa !18
  %177 = getelementptr inbounds %"class.TPCE::CCETxnInputGenerator", ptr %19, i32 0, i32 0
  %178 = getelementptr inbounds %"class.TPCE::CCETxnInputGenerator", ptr %19, i32 0, i32 12
  %179 = load ptr, ptr %178, align 8, !tbaa !20
  %180 = getelementptr inbounds %"struct.TPCE::TDriverCETxnSettings", ptr %179, i32 0, i32 5
  %181 = getelementptr inbounds %"class.TPCE::CParametersWithDefaults.23", ptr %180, i32 0, i32 4
  %182 = getelementptr inbounds %"struct.TPCE::TTradeOrderSettings", ptr %181, i32 0, i32 5
  %183 = load i32, ptr %182, align 4, !tbaa !51
  %184 = call noundef zeroext i1 @_ZN4TPCE7CRandom10RndPercentEi(ptr noundef nonnull align 8 dereferenceable(8) %177, i32 noundef %183)
  br i1 %184, label %185, label %210

185:                                              ; preds = %156
  %186 = load i8, ptr %13, align 1, !tbaa !18, !range !52, !noundef !53
  %187 = trunc i8 %186 to i1
  br i1 %187, label %188, label %189

188:                                              ; preds = %185
  store i32 0, ptr %17, align 4, !tbaa !54
  br label %190

189:                                              ; preds = %185
  store i32 4, ptr %17, align 4, !tbaa !54
  br label %190

190:                                              ; preds = %189, %188
  %191 = getelementptr inbounds %"class.TPCE::CCETxnInputGenerator", ptr %19, i32 0, i32 0
  %192 = getelementptr inbounds %"class.TPCE::CCETxnInputGenerator", ptr %19, i32 0, i32 12
  %193 = load ptr, ptr %192, align 8, !tbaa !20
  %194 = getelementptr inbounds %"struct.TPCE::TDriverCETxnSettings", ptr %193, i32 0, i32 5
  %195 = getelementptr inbounds %"class.TPCE::CParametersWithDefaults.23", ptr %194, i32 0, i32 4
  %196 = getelementptr inbounds %"struct.TPCE::TTradeOrderSettings", ptr %195, i32 0, i32 10
  %197 = load i32, ptr %196, align 8, !tbaa !56
  %198 = mul nsw i32 %197, 100
  %199 = getelementptr inbounds %"class.TPCE::CCETxnInputGenerator", ptr %19, i32 0, i32 12
  %200 = load ptr, ptr %199, align 8, !tbaa !20
  %201 = getelementptr inbounds %"struct.TPCE::TDriverCETxnSettings", ptr %200, i32 0, i32 5
  %202 = getelementptr inbounds %"class.TPCE::CParametersWithDefaults.23", ptr %201, i32 0, i32 4
  %203 = getelementptr inbounds %"struct.TPCE::TTradeOrderSettings", ptr %202, i32 0, i32 5
  %204 = load i32, ptr %203, align 4, !tbaa !51
  %205 = sdiv i32 %198, %204
  %206 = call noundef zeroext i1 @_ZN4TPCE7CRandom10RndPercentEi(ptr noundef nonnull align 8 dereferenceable(8) %191, i32 noundef %205)
  %207 = zext i1 %206 to i32
  %208 = load ptr, ptr %6, align 8, !tbaa !5
  %209 = getelementptr inbounds %"struct.TPCE::TTradeOrderTxnInput", ptr %208, i32 0, i32 5
  store i32 %207, ptr %209, align 4, !tbaa !57
  br label %229

210:                                              ; preds = %156
  %211 = load i8, ptr %13, align 1, !tbaa !18, !range !52, !noundef !53
  %212 = trunc i8 %211 to i1
  br i1 %212, label %213, label %214

213:                                              ; preds = %210
  store i32 1, ptr %17, align 4, !tbaa !54
  br label %226

214:                                              ; preds = %210
  %215 = getelementptr inbounds %"class.TPCE::CCETxnInputGenerator", ptr %19, i32 0, i32 0
  %216 = getelementptr inbounds %"class.TPCE::CCETxnInputGenerator", ptr %19, i32 0, i32 12
  %217 = load ptr, ptr %216, align 8, !tbaa !20
  %218 = getelementptr inbounds %"struct.TPCE::TDriverCETxnSettings", ptr %217, i32 0, i32 5
  %219 = getelementptr inbounds %"class.TPCE::CParametersWithDefaults.23", ptr %218, i32 0, i32 4
  %220 = getelementptr inbounds %"struct.TPCE::TTradeOrderSettings", ptr %219, i32 0, i32 2
  %221 = load i32, ptr %220, align 8, !tbaa !58
  %222 = call noundef zeroext i1 @_ZN4TPCE7CRandom10RndPercentEi(ptr noundef nonnull align 8 dereferenceable(8) %215, i32 noundef %221)
  br i1 %222, label %223, label %224

223:                                              ; preds = %214
  store i32 2, ptr %17, align 4, !tbaa !54
  br label %225

224:                                              ; preds = %214
  store i32 3, ptr %17, align 4, !tbaa !54
  br label %225

225:                                              ; preds = %224, %223
  br label %226

226:                                              ; preds = %225, %213
  %227 = load ptr, ptr %6, align 8, !tbaa !5
  %228 = getelementptr inbounds %"struct.TPCE::TTradeOrderTxnInput", ptr %227, i32 0, i32 5
  store i32 0, ptr %228, align 4, !tbaa !57
  br label %229

229:                                              ; preds = %226, %190
  %230 = load i32, ptr %17, align 4, !tbaa !54
  %231 = load ptr, ptr %7, align 8, !tbaa !5
  store i32 %230, ptr %231, align 4, !tbaa !17
  %232 = getelementptr inbounds %"class.TPCE::CCETxnInputGenerator", ptr %19, i32 0, i32 0
  %233 = getelementptr inbounds %"class.TPCE::CCETxnInputGenerator", ptr %19, i32 0, i32 12
  %234 = load ptr, ptr %233, align 8, !tbaa !20
  %235 = getelementptr inbounds %"struct.TPCE::TDriverCETxnSettings", ptr %234, i32 0, i32 5
  %236 = getelementptr inbounds %"class.TPCE::CParametersWithDefaults.23", ptr %235, i32 0, i32 4
  %237 = getelementptr inbounds %"struct.TPCE::TTradeOrderSettings", ptr %236, i32 0, i32 7
  %238 = load i32, ptr %237, align 4, !tbaa !59
  %239 = call noundef zeroext i1 @_ZN4TPCE7CRandom10RndPercentEi(ptr noundef nonnull align 8 dereferenceable(8) %232, i32 noundef %238)
  %240 = zext i1 %239 to i32
  %241 = load ptr, ptr %6, align 8, !tbaa !5
  %242 = getelementptr inbounds %"struct.TPCE::TTradeOrderTxnInput", ptr %241, i32 0, i32 2
  store i32 %240, ptr %242, align 8, !tbaa !60
  %243 = load ptr, ptr %6, align 8, !tbaa !5
  %244 = getelementptr inbounds %"struct.TPCE::TTradeOrderTxnInput", ptr %243, i32 0, i32 14
  %245 = getelementptr inbounds [4 x i8], ptr %244, i64 0, i64 0
  %246 = getelementptr inbounds %"class.TPCE::CCETxnInputGenerator", ptr %19, i32 0, i32 11
  %247 = load ptr, ptr %246, align 8, !tbaa !61
  %248 = load i32, ptr %17, align 4, !tbaa !54
  %249 = call noundef ptr @_ZN4TPCE9CFlatFileINS_14TRADE_TYPE_ROWENS_16TTradeTypeLimitsEE9GetRecordEi(ptr noundef nonnull align 8 dereferenceable(40) %247, i32 noundef %248)
  %250 = getelementptr inbounds %"struct.TPCE::TRADE_TYPE_ROW", ptr %249, i32 0, i32 0
  %251 = getelementptr inbounds [4 x i8], ptr %250, i64 0, i64 0
  %252 = call ptr @strncpy(ptr noundef %245, ptr noundef %251, i64 noundef 4) #6
  %253 = load ptr, ptr %6, align 8, !tbaa !5
  %254 = getelementptr inbounds %"struct.TPCE::TTradeOrderTxnInput", ptr %253, i32 0, i32 11
  %255 = getelementptr inbounds [5 x i8], ptr %254, i64 0, i64 0
  %256 = getelementptr inbounds %"class.TPCE::CCETxnInputGenerator", ptr %19, i32 0, i32 10
  %257 = load ptr, ptr %256, align 8, !tbaa !62
  %258 = call noundef ptr @_ZN4TPCE9CFlatFileINS_15STATUS_TYPE_ROWENS_17TStatusTypeLimitsEE9GetRecordEi(ptr noundef nonnull align 8 dereferenceable(40) %257, i32 noundef 3)
  %259 = getelementptr inbounds %"struct.TPCE::STATUS_TYPE_ROW", ptr %258, i32 0, i32 1
  %260 = getelementptr inbounds [5 x i8], ptr %259, i64 0, i64 0
  %261 = call ptr @strncpy(ptr noundef %255, ptr noundef %260, i64 noundef 5) #6
  %262 = load ptr, ptr %6, align 8, !tbaa !5
  %263 = getelementptr inbounds %"struct.TPCE::TTradeOrderTxnInput", ptr %262, i32 0, i32 12
  %264 = getelementptr inbounds [5 x i8], ptr %263, i64 0, i64 0
  %265 = getelementptr inbounds %"class.TPCE::CCETxnInputGenerator", ptr %19, i32 0, i32 10
  %266 = load ptr, ptr %265, align 8, !tbaa !62
  %267 = call noundef ptr @_ZN4TPCE9CFlatFileINS_15STATUS_TYPE_ROWENS_17TStatusTypeLimitsEE9GetRecordEi(ptr noundef nonnull align 8 dereferenceable(40) %266, i32 noundef 2)
  %268 = getelementptr inbounds %"struct.TPCE::STATUS_TYPE_ROW", ptr %267, i32 0, i32 1
  %269 = getelementptr inbounds [5 x i8], ptr %268, i64 0, i64 0
  %270 = call ptr @strncpy(ptr noundef %264, ptr noundef %269, i64 noundef 5) #6
  %271 = getelementptr inbounds %"class.TPCE::CCETxnInputGenerator", ptr %19, i32 0, i32 35
  %272 = load i32, ptr %271, align 4, !tbaa !63
  %273 = getelementptr inbounds %"class.TPCE::CCETxnInputGenerator", ptr %19, i32 0, i32 0
  %274 = getelementptr inbounds %"class.TPCE::CCETxnInputGenerator", ptr %19, i32 0, i32 34
  %275 = load i32, ptr %274, align 8, !tbaa !64
  %276 = call noundef i32 @_ZN4TPCE7CRandom11RndIntRangeEii(ptr noundef nonnull align 8 dereferenceable(8) %273, i32 noundef 1, i32 noundef %275)
  %277 = icmp sge i32 %272, %276
  %278 = zext i1 %277 to i32
  %279 = load ptr, ptr %6, align 8, !tbaa !5
  %280 = getelementptr inbounds %"struct.TPCE::TTradeOrderTxnInput", ptr %279, i32 0, i32 3
  store i32 %278, ptr %280, align 4, !tbaa !65
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  ret void
}

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN4TPCE36CCustomerAccountsAndPermissionsTable16GetNumPermsForCAEx(ptr noundef nonnull align 8 dereferenceable(1616), i64 noundef) #4 align 2

declare void @_ZN4TPCE7CPerson20GetFirstLastAndTaxIDExPcS1_S1_(ptr noundef nonnull align 8 dereferenceable(64), i64 noundef, ptr noundef, ptr noundef, ptr noundef) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4TPCE36CCustomerAccountsAndPermissionsTable21GetCIDsForPermissionsExxPxS1_(ptr noundef nonnull align 8 dereferenceable(1616), i64 noundef, i64 noundef, ptr noundef, ptr noundef) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4TPCE12CCompanyFile10CreateNameExPcm(ptr noundef nonnull align 8 dereferenceable(56), i64 noundef, ptr noundef, i64 noundef) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZN4TPCE13CSecurityFile15GetCompanyIndexEx(ptr noundef nonnull align 8 dereferenceable(161), i64 noundef) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN4TPCE13CSecurityFile9GetRecordEx(ptr noundef nonnull align 8 dereferenceable(161), i64 noundef) #5 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN4TPCE9CFlatFileINS_14TRADE_TYPE_ROWENS_16TTradeTypeLimitsEE9GetRecordEi(ptr noundef nonnull align 8 dereferenceable(40), i32 noundef) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN4TPCE9CFlatFileINS_15STATUS_TYPE_ROWENS_17TStatusTypeLimitsEE9GetRecordEi(ptr noundef nonnull align 8 dereferenceable(40), i32 noundef) #4 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { 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 #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 = { 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 = { 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, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"_ZTSN4TPCE13eCustomerTierE", !7, i64 0}
!13 = !{!14, !10, i64 8}
!14 = !{!"_ZTSN4TPCE19TTradeOrderTxnInputE", !15, i64 0, !10, i64 8, !16, i64 16, !16, i64 20, !16, i64 24, !16, i64 28, !7, i64 32, !7, i64 93, !7, i64 114, !7, i64 140, !7, i64 161, !7, i64 168, !7, i64 173, !7, i64 178, !7, i64 194}
!15 = !{!"double", !7, i64 0}
!16 = !{!"int", !7, i64 0}
!17 = !{!16, !16, i64 0}
!18 = !{!19, !19, i64 0}
!19 = !{!"bool", !7, i64 0}
!20 = !{!21, !6, i64 3848}
!21 = !{!"_ZTSN4TPCE20CCETxnInputGeneratorE", !22, i64 0, !23, i64 8, !24, i64 72, !25, i64 120, !36, i64 1736, !37, i64 3576, !6, i64 3800, !6, i64 3808, !6, i64 3816, !6, i64 3824, !6, i64 3832, !6, i64 3840, !6, i64 3848, !6, i64 3856, !10, i64 3864, !10, i64 3872, !10, i64 3880, !10, i64 3888, !16, i64 3896, !16, i64 3900, !16, i64 3904, !10, i64 3912, !10, i64 3920, !10, i64 3928, !10, i64 3936, !10, i64 3944, !10, i64 3952, !10, i64 3960, !10, i64 3968, !16, i64 3976, !16, i64 3980, !10, i64 3984, !32, i64 3992, !32, i64 4008, !16, i64 4024, !16, i64 4028}
!22 = !{!"_ZTSN4TPCE7CRandomE", !10, i64 0}
!23 = !{!"_ZTSN4TPCE7CPersonE", !6, i64 0, !6, i64 8, !6, i64 16, !22, i64 24, !19, i64 32, !16, i64 36, !10, i64 40, !6, i64 48, !6, i64 56}
!24 = !{!"_ZTSN4TPCE18CCustomerSelectionE", !6, i64 0, !10, i64 8, !10, i64 16, !19, i64 24, !16, i64 28, !10, i64 32, !10, i64 40}
!25 = !{!"_ZTSN4TPCE36CCustomerAccountsAndPermissionsTableE", !26, i64 0, !6, i64 472, !6, i64 480, !10, i64 488, !10, i64 496, !10, i64 504, !16, i64 512, !16, i64 516, !29, i64 520, !23, i64 1016, !16, i64 1080, !10, i64 1088, !33, i64 1096, !16, i64 1512, !24, i64 1520, !19, i64 1568, !16, i64 1572, !10, i64 1576, !6, i64 1584, !16, i64 1592, !10, i64 1600, !6, i64 1608}
!26 = !{!"_ZTSN4TPCE13TableTemplateINS_35CUSTOMER_ACCOUNT_AND_PERMISSION_ROWEEE", !27, i64 8, !10, i64 448, !19, i64 456, !22, i64 464}
!27 = !{!"_ZTSN4TPCE35CUSTOMER_ACCOUNT_AND_PERMISSION_ROWE", !28, i64 0, !7, i64 88}
!28 = !{!"_ZTSN4TPCE20CUSTOMER_ACCOUNT_ROWE", !10, i64 0, !10, i64 8, !10, i64 16, !7, i64 24, !7, i64 75, !15, i64 80}
!29 = !{!"_ZTSN4TPCE14CCustomerTableE", !30, i64 0, !10, i64 328, !23, i64 336, !6, i64 400, !10, i64 408, !10, i64 416, !10, i64 424, !16, i64 432, !6, i64 440, !24, i64 448}
!30 = !{!"_ZTSN4TPCE13TableTemplateINS_12CUSTOMER_ROWEEE", !31, i64 8, !10, i64 304, !19, i64 312, !22, i64 320}
!31 = !{!"_ZTSN4TPCE12CUSTOMER_ROWE", !10, i64 0, !7, i64 8, !7, i64 29, !7, i64 34, !7, i64 60, !7, i64 81, !7, i64 83, !7, i64 84, !32, i64 88, !10, 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}
!32 = !{!"_ZTSN4TPCE9CDateTimeE", !16, i64 0, !16, i64 4, !6, i64 8}
!33 = !{!"_ZTSN4TPCE13CAddressTableE", !34, i64 0, !32, i64 296, !6, i64 312, !6, i64 320, !6, i64 328, !6, i64 336, !10, i64 344, !10, i64 352, !19, i64 360, !19, i64 361, !10, i64 368, !16, i64 376, !10, i64 384, !19, i64 392, !16, i64 396, !10, i64 400, !6, i64 408}
!34 = !{!"_ZTSN4TPCE13TableTemplateINS_11ADDRESS_ROWEEE", !35, i64 8, !10, i64 272, !19, i64 280, !22, i64 288}
!35 = !{!"_ZTSN4TPCE11ADDRESS_ROWE", !10, i64 0, !7, i64 8, !7, i64 89, !7, i64 170, !7, i64 183}
!36 = !{!"_ZTSN4TPCE23CHoldingsAndTradesTableE", !22, i64 0, !25, i64 8, !10, i64 1624, !16, i64 1632, !7, i64 1640, !19, i64 1784, !10, i64 1792, !16, i64 1800, !6, i64 1808, !10, i64 1816, !16, i64 1824, !6, i64 1832}
!37 = !{!"_ZTSN4TPCE13CBrokersTableE", !38, i64 0, !10, i64 112, !10, i64 120, !10, i64 128, !23, i64 136, !6, i64 200, !6, i64 208, !6, i64 216}
!38 = !{!"_ZTSN4TPCE13TableTemplateINS_10BROKER_ROWEEE", !39, i64 8, !10, i64 88, !19, i64 96, !22, i64 104}
!39 = !{!"_ZTSN4TPCE10BROKER_ROWE", !10, i64 0, !7, i64 8, !7, i64 13, !16, i64 64, !15, i64 72}
!40 = !{!41, !16, i64 96}
!41 = !{!"_ZTSN4TPCE23CParametersWithDefaultsINS_19TTradeOrderSettingsENS_24TTradeOrderSettingsStateEEE", !42, i64 8, !43, i64 52, !42, i64 64}
!42 = !{!"_ZTSN4TPCE19TTradeOrderSettingsE", !16, i64 0, !16, i64 4, !16, i64 8, !16, i64 12, !16, i64 16, !16, i64 20, !16, i64 24, !16, i64 28, !16, i64 32, !16, i64 36, !16, i64 40}
!43 = !{!"_ZTSN4TPCE24TTradeOrderSettingsStateE", !19, i64 0, !19, i64 1, !19, i64 2, !19, i64 3, !19, i64 4, !19, i64 5, !19, i64 6, !19, i64 7, !19, i64 8, !19, i64 9, !19, i64 10}
!44 = !{!41, !16, i64 80}
!45 = !{!21, !6, i64 3808}
!46 = !{!7, !7, i64 0}
!47 = !{!21, !6, i64 3800}
!48 = !{!14, !16, i64 24}
!49 = !{!14, !15, i64 0}
!50 = !{!41, !16, i64 64}
!51 = !{!41, !16, i64 84}
!52 = !{i8 0, i8 2}
!53 = !{}
!54 = !{!55, !55, i64 0}
!55 = !{!"_ZTSN4TPCE12eTradeTypeIDE", !7, i64 0}
!56 = !{!41, !16, i64 104}
!57 = !{!14, !16, i64 28}
!58 = !{!41, !16, i64 72}
!59 = !{!41, !16, i64 92}
!60 = !{!14, !16, i64 16}
!61 = !{!21, !6, i64 3840}
!62 = !{!21, !6, i64 3832}
!63 = !{!21, !16, i64 4028}
!64 = !{!21, !16, i64 4024}
!65 = !{!14, !16, i64 20}


; 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

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

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: readwrite)
declare ptr @strncpy(ptr noalias noundef returned writeonly, ptr noalias nocapture noundef readonly, i64 noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN4TPCE20CCETxnInputGenerator34GenerateNonUniformRandomCustomerIdERxRNS_13eCustomerTierE(ptr noundef nonnull align 8 dereferenceable(4032), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #3 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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4TPCE13CSecurityFile12CreateSymbolExPcm(ptr noundef nonnull align 8 dereferenceable(161), i64 noundef, ptr noundef, i64 noundef) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4TPCE20CCETxnInputGenerator23GenerateTradeOrderInputERNS_19TTradeOrderTxnInputERiRb(ptr noundef nonnull align 8 dereferenceable(4032) %0, ptr noundef nonnull align 8 dereferenceable(200) %1, ptr nocapture noundef nonnull writeonly align 4 dereferenceable(4) %2, ptr nocapture noundef nonnull writeonly align 1 dereferenceable(1) %3) local_unnamed_addr #4 align 2 {
  %5 = alloca i64, align 8
  %6 = alloca i32, align 4
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i32, align 4
  %10 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #6
  call void @_ZN4TPCE20CCETxnInputGenerator34GenerateNonUniformRandomCustomerIdERxRNS_13eCustomerTierE(ptr noundef nonnull align 8 dereferenceable(4032) %0, ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 4 dereferenceable(4) %6)
  %11 = getelementptr inbounds i8, ptr %0, i64 1736
  %12 = load i64, ptr %5, align 8, !tbaa !5
  %13 = load i32, ptr %6, align 4, !tbaa !9
  %14 = getelementptr inbounds i8, ptr %1, i64 8
  call void @_ZN4TPCE23CHoldingsAndTradesTable29GenerateRandomAccountSecurityExNS_13eCustomerTierEPxS2_Pj(ptr noundef nonnull align 8 dereferenceable(1840) %11, i64 noundef %12, i32 noundef %13, ptr noundef nonnull %14, ptr noundef nonnull %10, ptr noundef nonnull %9)
  %15 = getelementptr inbounds i8, ptr %0, i64 120
  %16 = load i64, ptr %14, align 8, !tbaa !11
  %17 = call noundef i32 @_ZN4TPCE36CCustomerAccountsAndPermissionsTable16GetNumPermsForCAEx(ptr noundef nonnull align 8 dereferenceable(1616) %15, i64 noundef %16)
  %18 = icmp eq i32 %17, 0
  br i1 %18, label %19, label %25

19:                                               ; preds = %4
  %20 = getelementptr inbounds i8, ptr %0, i64 8
  %21 = load i64, ptr %5, align 8, !tbaa !5
  %22 = getelementptr inbounds i8, ptr %1, i64 93
  %23 = getelementptr inbounds i8, ptr %1, i64 114
  %24 = getelementptr inbounds i8, ptr %1, i64 140
  call void @_ZN4TPCE7CPerson20GetFirstLastAndTaxIDExPcS1_S1_(ptr noundef nonnull align 8 dereferenceable(64) %20, i64 noundef %21, ptr noundef nonnull %22, ptr noundef nonnull %23, ptr noundef nonnull %24)
  br label %52

25:                                               ; preds = %4
  %26 = getelementptr inbounds i8, ptr %0, i64 3848
  %27 = load ptr, ptr %26, align 8, !tbaa !15
  %28 = getelementptr inbounds i8, ptr %27, i64 328
  %29 = load i32, ptr %28, align 8, !tbaa !37
  %30 = mul i32 %29, 100
  %31 = add i32 %30, -6000
  %32 = udiv i32 %31, 40
  %33 = call noundef zeroext i1 @_ZN4TPCE7CRandom10RndPercentEi(ptr noundef nonnull align 8 dereferenceable(8) %0, i32 noundef %32)
  br i1 %33, label %34, label %40

34:                                               ; preds = %25
  %35 = getelementptr inbounds i8, ptr %0, i64 8
  %36 = load i64, ptr %5, align 8, !tbaa !5
  %37 = getelementptr inbounds i8, ptr %1, i64 93
  %38 = getelementptr inbounds i8, ptr %1, i64 114
  %39 = getelementptr inbounds i8, ptr %1, i64 140
  call void @_ZN4TPCE7CPerson20GetFirstLastAndTaxIDExPcS1_S1_(ptr noundef nonnull align 8 dereferenceable(64) %35, i64 noundef %36, ptr noundef nonnull %37, ptr noundef nonnull %38, ptr noundef nonnull %39)
  br label %52

40:                                               ; preds = %25
  %41 = icmp eq i32 %17, 1
  %42 = load i64, ptr %14, align 8, !tbaa !11
  %43 = load i64, ptr %5, align 8, !tbaa !5
  %44 = getelementptr inbounds i8, ptr %0, i64 8
  %45 = getelementptr inbounds i8, ptr %1, i64 93
  %46 = getelementptr inbounds i8, ptr %1, i64 114
  %47 = getelementptr inbounds i8, ptr %1, i64 140
  br i1 %41, label %48, label %50

48:                                               ; preds = %40
  call void @_ZN4TPCE36CCustomerAccountsAndPermissionsTable21GetCIDsForPermissionsExxPxS1_(ptr noundef nonnull align 8 dereferenceable(1616) %15, i64 noundef %42, i64 noundef %43, ptr noundef nonnull %7, ptr noundef null)
  %49 = load i64, ptr %7, align 8, !tbaa !5
  call void @_ZN4TPCE7CPerson20GetFirstLastAndTaxIDExPcS1_S1_(ptr noundef nonnull align 8 dereferenceable(64) %44, i64 noundef %49, ptr noundef nonnull %45, ptr noundef nonnull %46, ptr noundef nonnull %47)
  br label %52

50:                                               ; preds = %40
  call void @_ZN4TPCE36CCustomerAccountsAndPermissionsTable21GetCIDsForPermissionsExxPxS1_(ptr noundef nonnull align 8 dereferenceable(1616) %15, i64 noundef %42, i64 noundef %43, ptr noundef nonnull %7, ptr noundef nonnull %8)
  %51 = load i64, ptr %8, align 8, !tbaa !5
  call void @_ZN4TPCE7CPerson20GetFirstLastAndTaxIDExPcS1_S1_(ptr noundef nonnull align 8 dereferenceable(64) %44, i64 noundef %51, ptr noundef nonnull %45, ptr noundef nonnull %46, ptr noundef nonnull %47)
  br label %52

52:                                               ; preds = %34, %50, %48, %19
  %storemerge43 = phi i8 [ 1, %19 ], [ 1, %34 ], [ 0, %50 ], [ 0, %48 ]
  store i8 %storemerge43, ptr %3, align 1, !tbaa !41
  %53 = getelementptr inbounds i8, ptr %0, i64 3848
  %54 = load ptr, ptr %53, align 8, !tbaa !15
  %55 = getelementptr inbounds i8, ptr %54, i64 312
  %56 = load i32, ptr %55, align 8, !tbaa !42
  %57 = call noundef zeroext i1 @_ZN4TPCE7CRandom10RndPercentEi(ptr noundef nonnull align 8 dereferenceable(8) %0, i32 noundef %56)
  br i1 %57, label %58, label %65

58:                                               ; preds = %52
  %59 = getelementptr inbounds i8, ptr %0, i64 3808
  %60 = load ptr, ptr %59, align 8, !tbaa !43
  %61 = load i64, ptr %10, align 8, !tbaa !5
  %62 = getelementptr inbounds i8, ptr %1, i64 178
  call void @_ZN4TPCE13CSecurityFile12CreateSymbolExPcm(ptr noundef nonnull align 8 dereferenceable(161) %60, i64 noundef %61, ptr noundef nonnull %62, i64 noundef 16)
  %63 = getelementptr inbounds i8, ptr %1, i64 32
  store i8 0, ptr %63, align 8, !tbaa !44
  %64 = getelementptr inbounds i8, ptr %1, i64 161
  store i8 0, ptr %64, align 1, !tbaa !44
  br label %80

65:                                               ; preds = %52
  %66 = getelementptr inbounds i8, ptr %0, i64 3800
  %67 = load ptr, ptr %66, align 8, !tbaa !45
  %68 = getelementptr inbounds i8, ptr %0, i64 3808
  %69 = load ptr, ptr %68, align 8, !tbaa !43
  %70 = load i64, ptr %10, align 8, !tbaa !5
  %71 = call noundef i64 @_ZN4TPCE13CSecurityFile15GetCompanyIndexEx(ptr noundef nonnull align 8 dereferenceable(161) %69, i64 noundef %70)
  %72 = getelementptr inbounds i8, ptr %1, i64 32
  call void @_ZN4TPCE12CCompanyFile10CreateNameExPcm(ptr noundef nonnull align 8 dereferenceable(56) %67, i64 noundef %71, ptr noundef nonnull %72, i64 noundef 61)
  %73 = getelementptr inbounds i8, ptr %1, i64 161
  %74 = load ptr, ptr %68, align 8, !tbaa !43
  %75 = load i64, ptr %10, align 8, !tbaa !5
  %76 = call noundef ptr @_ZN4TPCE13CSecurityFile9GetRecordEx(ptr noundef nonnull align 8 dereferenceable(161) %74, i64 noundef %75)
  %77 = getelementptr inbounds i8, ptr %76, i64 16
  %78 = call ptr @strncpy(ptr noundef nonnull dereferenceable(1) %73, ptr noundef nonnull dereferenceable(1) %77, i64 noundef 7) #6
  %79 = getelementptr inbounds i8, ptr %1, i64 178
  store i8 0, ptr %79, align 2, !tbaa !44
  br label %80

80:                                               ; preds = %65, %58
  %81 = call noundef i32 @_ZN4TPCE7CRandom11RndIntRangeEii(ptr noundef nonnull align 8 dereferenceable(8) %0, i32 noundef 0, i32 noundef 3)
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds [4 x i32], ptr @_ZN4TPCEL16cTRADE_QTY_SIZESE, i64 0, i64 %82
  %84 = load i32, ptr %83, align 4, !tbaa !46
  %85 = getelementptr inbounds i8, ptr %1, i64 24
  store i32 %84, ptr %85, align 8, !tbaa !47
  %86 = 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)
  store double %86, ptr %1, align 8, !tbaa !48
  %87 = load ptr, ptr %53, align 8, !tbaa !15
  %88 = getelementptr inbounds i8, ptr %87, i64 296
  %89 = load i32, ptr %88, align 8, !tbaa !49
  %90 = call noundef zeroext i1 @_ZN4TPCE7CRandom10RndPercentEi(ptr noundef nonnull align 8 dereferenceable(8) %0, i32 noundef %89)
  %91 = load ptr, ptr %53, align 8, !tbaa !15
  %92 = getelementptr inbounds i8, ptr %91, i64 316
  %93 = load i32, ptr %92, align 4, !tbaa !50
  %94 = call noundef zeroext i1 @_ZN4TPCE7CRandom10RndPercentEi(ptr noundef nonnull align 8 dereferenceable(8) %0, i32 noundef %93)
  br i1 %94, label %95, label %105

95:                                               ; preds = %80
  %. = select i1 %90, i32 0, i32 4
  %96 = load ptr, ptr %53, align 8, !tbaa !15
  %97 = getelementptr inbounds i8, ptr %96, i64 336
  %98 = load i32, ptr %97, align 8, !tbaa !51
  %99 = mul nsw i32 %98, 100
  %100 = getelementptr inbounds i8, ptr %96, i64 316
  %101 = load i32, ptr %100, align 4, !tbaa !50
  %102 = sdiv i32 %99, %101
  %103 = call noundef zeroext i1 @_ZN4TPCE7CRandom10RndPercentEi(ptr noundef nonnull align 8 dereferenceable(8) %0, i32 noundef %102)
  %104 = zext i1 %103 to i32
  br label %111

105:                                              ; preds = %80
  br i1 %90, label %111, label %106

106:                                              ; preds = %105
  %107 = load ptr, ptr %53, align 8, !tbaa !15
  %108 = getelementptr inbounds i8, ptr %107, i64 304
  %109 = load i32, ptr %108, align 8, !tbaa !52
  %110 = call noundef zeroext i1 @_ZN4TPCE7CRandom10RndPercentEi(ptr noundef nonnull align 8 dereferenceable(8) %0, i32 noundef %109)
  %.44 = select i1 %110, i32 2, i32 3
  br label %111

111:                                              ; preds = %105, %106, %95
  %.sink = phi i32 [ %104, %95 ], [ 0, %106 ], [ 0, %105 ]
  %.2 = phi i32 [ %., %95 ], [ %.44, %106 ], [ 1, %105 ]
  %112 = getelementptr inbounds i8, ptr %1, i64 28
  store i32 %.sink, ptr %112, align 4, !tbaa !53
  store i32 %.2, ptr %2, align 4, !tbaa !46
  %113 = load ptr, ptr %53, align 8, !tbaa !15
  %114 = getelementptr inbounds i8, ptr %113, i64 324
  %115 = load i32, ptr %114, align 4, !tbaa !54
  %116 = call noundef zeroext i1 @_ZN4TPCE7CRandom10RndPercentEi(ptr noundef nonnull align 8 dereferenceable(8) %0, i32 noundef %115)
  %117 = zext i1 %116 to i32
  %118 = getelementptr inbounds i8, ptr %1, i64 16
  store i32 %117, ptr %118, align 8, !tbaa !55
  %119 = getelementptr inbounds i8, ptr %1, i64 194
  %120 = getelementptr inbounds i8, ptr %0, i64 3840
  %121 = load ptr, ptr %120, align 8, !tbaa !56
  %122 = call noundef ptr @_ZN4TPCE9CFlatFileINS_14TRADE_TYPE_ROWENS_16TTradeTypeLimitsEE9GetRecordEi(ptr noundef nonnull align 8 dereferenceable(40) %121, i32 noundef %.2)
  %123 = call ptr @strncpy(ptr noundef nonnull dereferenceable(1) %119, ptr noundef nonnull dereferenceable(1) %122, i64 noundef 4) #6
  %124 = getelementptr inbounds i8, ptr %1, i64 168
  %125 = getelementptr inbounds i8, ptr %0, i64 3832
  %126 = load ptr, ptr %125, align 8, !tbaa !57
  %127 = call noundef ptr @_ZN4TPCE9CFlatFileINS_15STATUS_TYPE_ROWENS_17TStatusTypeLimitsEE9GetRecordEi(ptr noundef nonnull align 8 dereferenceable(40) %126, i32 noundef 3)
  %128 = getelementptr inbounds i8, ptr %127, i64 8
  %129 = call ptr @strncpy(ptr noundef nonnull dereferenceable(1) %124, ptr noundef nonnull dereferenceable(1) %128, i64 noundef 5) #6
  %130 = getelementptr inbounds i8, ptr %1, i64 173
  %131 = load ptr, ptr %125, align 8, !tbaa !57
  %132 = call noundef ptr @_ZN4TPCE9CFlatFileINS_15STATUS_TYPE_ROWENS_17TStatusTypeLimitsEE9GetRecordEi(ptr noundef nonnull align 8 dereferenceable(40) %131, i32 noundef 2)
  %133 = getelementptr inbounds i8, ptr %132, i64 8
  %134 = call ptr @strncpy(ptr noundef nonnull dereferenceable(1) %130, ptr noundef nonnull dereferenceable(1) %133, i64 noundef 5) #6
  %135 = getelementptr inbounds i8, ptr %0, i64 4028
  %136 = load i32, ptr %135, align 4, !tbaa !58
  %137 = getelementptr inbounds i8, ptr %0, i64 4024
  %138 = load i32, ptr %137, align 8, !tbaa !59
  %139 = call noundef i32 @_ZN4TPCE7CRandom11RndIntRangeEii(ptr noundef nonnull align 8 dereferenceable(8) %0, i32 noundef 1, i32 noundef %138)
  %140 = icmp sge i32 %136, %139
  %141 = zext i1 %140 to i32
  %142 = getelementptr inbounds i8, ptr %1, i64 20
  store i32 %141, ptr %142, align 4, !tbaa !60
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  ret void
}

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN4TPCE36CCustomerAccountsAndPermissionsTable16GetNumPermsForCAEx(ptr noundef nonnull align 8 dereferenceable(1616), i64 noundef) local_unnamed_addr #4 align 2

declare void @_ZN4TPCE7CPerson20GetFirstLastAndTaxIDExPcS1_S1_(ptr noundef nonnull align 8 dereferenceable(64), i64 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4TPCE36CCustomerAccountsAndPermissionsTable21GetCIDsForPermissionsExxPxS1_(ptr noundef nonnull align 8 dereferenceable(1616), i64 noundef, i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4TPCE12CCompanyFile10CreateNameExPcm(ptr noundef nonnull align 8 dereferenceable(56), i64 noundef, ptr noundef, i64 noundef) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZN4TPCE13CSecurityFile15GetCompanyIndexEx(ptr noundef nonnull align 8 dereferenceable(161), i64 noundef) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN4TPCE13CSecurityFile9GetRecordEx(ptr noundef nonnull align 8 dereferenceable(161), i64 noundef) local_unnamed_addr #5 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN4TPCE9CFlatFileINS_14TRADE_TYPE_ROWENS_16TTradeTypeLimitsEE9GetRecordEi(ptr noundef nonnull align 8 dereferenceable(40), i32 noundef) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN4TPCE9CFlatFileINS_15STATUS_TYPE_ROWENS_17TStatusTypeLimitsEE9GetRecordEi(ptr noundef nonnull align 8 dereferenceable(40), i32 noundef) local_unnamed_addr #4 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { mustprogress nofree nounwind willreturn memory(argmem: readwrite) "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 = { 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 = { 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, !6, i64 0}
!6 = !{!"long long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"_ZTSN4TPCE13eCustomerTierE", !7, i64 0}
!11 = !{!12, !6, i64 8}
!12 = !{!"_ZTSN4TPCE19TTradeOrderTxnInputE", !13, i64 0, !6, i64 8, !14, i64 16, !14, i64 20, !14, i64 24, !14, i64 28, !7, i64 32, !7, i64 93, !7, i64 114, !7, i64 140, !7, i64 161, !7, i64 168, !7, i64 173, !7, i64 178, !7, i64 194}
!13 = !{!"double", !7, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{!16, !19, i64 3848}
!16 = !{!"_ZTSN4TPCE20CCETxnInputGeneratorE", !17, i64 0, !18, i64 8, !21, i64 72, !22, i64 120, !33, i64 1736, !34, i64 3576, !19, i64 3800, !19, i64 3808, !19, i64 3816, !19, i64 3824, !19, i64 3832, !19, i64 3840, !19, i64 3848, !19, i64 3856, !6, i64 3864, !6, i64 3872, !6, i64 3880, !6, i64 3888, !14, i64 3896, !14, i64 3900, !14, i64 3904, !6, i64 3912, !6, i64 3920, !6, i64 3928, !6, i64 3936, !6, i64 3944, !6, i64 3952, !6, i64 3960, !6, i64 3968, !14, i64 3976, !14, i64 3980, !6, i64 3984, !29, i64 3992, !29, i64 4008, !14, i64 4024, !14, i64 4028}
!17 = !{!"_ZTSN4TPCE7CRandomE", !6, i64 0}
!18 = !{!"_ZTSN4TPCE7CPersonE", !19, i64 0, !19, i64 8, !19, i64 16, !17, i64 24, !20, i64 32, !14, i64 36, !6, i64 40, !19, i64 48, !19, i64 56}
!19 = !{!"any pointer", !7, i64 0}
!20 = !{!"bool", !7, i64 0}
!21 = !{!"_ZTSN4TPCE18CCustomerSelectionE", !19, i64 0, !6, i64 8, !6, i64 16, !20, i64 24, !14, i64 28, !6, i64 32, !6, i64 40}
!22 = !{!"_ZTSN4TPCE36CCustomerAccountsAndPermissionsTableE", !23, i64 0, !19, i64 472, !19, i64 480, !6, i64 488, !6, i64 496, !6, i64 504, !14, i64 512, !14, i64 516, !26, i64 520, !18, i64 1016, !14, i64 1080, !6, i64 1088, !30, i64 1096, !14, i64 1512, !21, i64 1520, !20, i64 1568, !14, i64 1572, !6, i64 1576, !19, i64 1584, !14, i64 1592, !6, i64 1600, !19, i64 1608}
!23 = !{!"_ZTSN4TPCE13TableTemplateINS_35CUSTOMER_ACCOUNT_AND_PERMISSION_ROWEEE", !24, i64 8, !6, i64 448, !20, i64 456, !17, i64 464}
!24 = !{!"_ZTSN4TPCE35CUSTOMER_ACCOUNT_AND_PERMISSION_ROWE", !25, i64 0, !7, i64 88}
!25 = !{!"_ZTSN4TPCE20CUSTOMER_ACCOUNT_ROWE", !6, i64 0, !6, i64 8, !6, i64 16, !7, i64 24, !7, i64 75, !13, i64 80}
!26 = !{!"_ZTSN4TPCE14CCustomerTableE", !27, i64 0, !6, i64 328, !18, i64 336, !19, i64 400, !6, i64 408, !6, i64 416, !6, i64 424, !14, i64 432, !19, i64 440, !21, i64 448}
!27 = !{!"_ZTSN4TPCE13TableTemplateINS_12CUSTOMER_ROWEEE", !28, i64 8, !6, i64 304, !20, i64 312, !17, i64 320}
!28 = !{!"_ZTSN4TPCE12CUSTOMER_ROWE", !6, i64 0, !7, i64 8, !7, i64 29, !7, i64 34, !7, i64 60, !7, i64 81, !7, i64 83, !7, i64 84, !29, i64 88, !6, 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}
!29 = !{!"_ZTSN4TPCE9CDateTimeE", !14, i64 0, !14, i64 4, !19, i64 8}
!30 = !{!"_ZTSN4TPCE13CAddressTableE", !31, i64 0, !29, i64 296, !19, i64 312, !19, i64 320, !19, i64 328, !19, i64 336, !6, i64 344, !6, i64 352, !20, i64 360, !20, i64 361, !6, i64 368, !14, i64 376, !6, i64 384, !20, i64 392, !14, i64 396, !6, i64 400, !19, i64 408}
!31 = !{!"_ZTSN4TPCE13TableTemplateINS_11ADDRESS_ROWEEE", !32, i64 8, !6, i64 272, !20, i64 280, !17, i64 288}
!32 = !{!"_ZTSN4TPCE11ADDRESS_ROWE", !6, i64 0, !7, i64 8, !7, i64 89, !7, i64 170, !7, i64 183}
!33 = !{!"_ZTSN4TPCE23CHoldingsAndTradesTableE", !17, i64 0, !22, i64 8, !6, i64 1624, !14, i64 1632, !7, i64 1640, !20, i64 1784, !6, i64 1792, !14, i64 1800, !19, i64 1808, !6, i64 1816, !14, i64 1824, !19, i64 1832}
!34 = !{!"_ZTSN4TPCE13CBrokersTableE", !35, i64 0, !6, i64 112, !6, i64 120, !6, i64 128, !18, i64 136, !19, i64 200, !19, i64 208, !19, i64 216}
!35 = !{!"_ZTSN4TPCE13TableTemplateINS_10BROKER_ROWEEE", !36, i64 8, !6, i64 88, !20, i64 96, !17, i64 104}
!36 = !{!"_ZTSN4TPCE10BROKER_ROWE", !6, i64 0, !7, i64 8, !7, i64 13, !14, i64 64, !13, i64 72}
!37 = !{!38, !14, i64 96}
!38 = !{!"_ZTSN4TPCE23CParametersWithDefaultsINS_19TTradeOrderSettingsENS_24TTradeOrderSettingsStateEEE", !39, i64 8, !40, i64 52, !39, i64 64}
!39 = !{!"_ZTSN4TPCE19TTradeOrderSettingsE", !14, i64 0, !14, i64 4, !14, i64 8, !14, i64 12, !14, i64 16, !14, i64 20, !14, i64 24, !14, i64 28, !14, i64 32, !14, i64 36, !14, i64 40}
!40 = !{!"_ZTSN4TPCE24TTradeOrderSettingsStateE", !20, i64 0, !20, i64 1, !20, i64 2, !20, i64 3, !20, i64 4, !20, i64 5, !20, i64 6, !20, i64 7, !20, i64 8, !20, i64 9, !20, i64 10}
!41 = !{!20, !20, i64 0}
!42 = !{!38, !14, i64 80}
!43 = !{!16, !19, i64 3808}
!44 = !{!7, !7, i64 0}
!45 = !{!16, !19, i64 3800}
!46 = !{!14, !14, i64 0}
!47 = !{!12, !14, i64 24}
!48 = !{!12, !13, i64 0}
!49 = !{!38, !14, i64 64}
!50 = !{!38, !14, i64 84}
!51 = !{!38, !14, i64 104}
!52 = !{!38, !14, i64 72}
!53 = !{!12, !14, i64 28}
!54 = !{!38, !14, i64 92}
!55 = !{!12, !14, i64 16}
!56 = !{!16, !19, i64 3840}
!57 = !{!16, !19, i64 3832}
!58 = !{!16, !14, i64 4028}
!59 = !{!16, !14, i64 4024}
!60 = !{!12, !14, i64 20}


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