; 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::CDateTime" = type { i32, i32, ptr }
%"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 }
%"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.17" = type <{ ptr, %"struct.TPCE::TMarketWatchSettings", %"struct.TPCE::TMarketWatchSettingsState", i8, %"struct.TPCE::TMarketWatchSettings", [4 x i8] }>
%"struct.TPCE::TMarketWatchTxnInput" = type { i64, i64, i64, i64, %"struct.TPCE::tagTIMESTAMP_STRUCT", [51 x i8] }
%"struct.TPCE::tagTIMESTAMP_STRUCT" = type { i16, i16, i16, i16, i16, i16, i32 }
%"struct.TPCE::INDUSTRY_ROW" = type <{ %"struct.TPCE::TBaseInputRow", [3 x i8], [51 x i8], [3 x i8], [7 x i8] }>
%"struct.TPCE::TBaseInputRow" = type { ptr }

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nounwind
declare void @_ZN4TPCE9CDateTimeD1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #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

declare noundef i64 @_ZN4TPCE7CRandom5NURndExxii(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef, i64 noundef, i32 noundef, i32 noundef) #2

declare void @_ZN4TPCE9CDateTimeC1Eiiiiiii(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) unnamed_addr #2

declare void @_ZN4TPCE9CDateTime12GetTimeStampEPNS_19tagTIMESTAMP_STRUCTE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) #2

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

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

; 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: mustprogress uwtable
define dso_local void @_ZN4TPCE20CCETxnInputGenerator24GenerateMarketWatchInputERNS_20TMarketWatchTxnInputE(ptr noundef nonnull align 8 dereferenceable(4032) %0, ptr noundef nonnull align 8 dereferenceable(104) %1) #4 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca %"class.TPCE::CDateTime", align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %13 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #5
  call void @_ZN4TPCE9CDateTimeC1Eiiiiiii(ptr noundef nonnull align 8 dereferenceable(16) %10, i32 noundef 2000, i32 noundef 1, i32 noundef 3, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0)
  %14 = getelementptr inbounds %"class.TPCE::CCETxnInputGenerator", ptr %13, i32 0, i32 0
  %15 = invoke noundef i32 @_ZN4TPCE7CRandom28RndGenerateIntegerPercentageEv(ptr noundef nonnull align 8 dereferenceable(8) %14)
          to label %16 unwind label %69

16:                                               ; preds = %2
  store i32 %15, ptr %7, align 4, !tbaa !9
  %17 = load i32, ptr %7, align 4, !tbaa !9
  %18 = getelementptr inbounds %"class.TPCE::CCETxnInputGenerator", ptr %13, i32 0, i32 12
  %19 = load ptr, ptr %18, align 8, !tbaa !11
  %20 = getelementptr inbounds %"struct.TPCE::TDriverCETxnSettings", ptr %19, i32 0, i32 2
  %21 = getelementptr inbounds %"class.TPCE::CParametersWithDefaults.17", ptr %20, i32 0, i32 4
  %22 = getelementptr inbounds %"struct.TPCE::TMarketWatchSettings", ptr %21, i32 0, i32 1
  %23 = load i32, ptr %22, align 4, !tbaa !34
  %24 = icmp sle i32 %17, %23
  br i1 %24, label %25, label %87

25:                                               ; preds = %16
  %26 = load ptr, ptr %4, align 8, !tbaa !5
  %27 = getelementptr inbounds %"struct.TPCE::TMarketWatchTxnInput", ptr %26, i32 0, i32 5
  %28 = getelementptr inbounds [51 x i8], ptr %27, i64 0, i64 0
  %29 = getelementptr inbounds %"class.TPCE::CCETxnInputGenerator", ptr %13, i32 0, i32 8
  %30 = load ptr, ptr %29, align 8, !tbaa !38
  %31 = getelementptr inbounds %"class.TPCE::CCETxnInputGenerator", ptr %13, i32 0, i32 0
  %32 = getelementptr inbounds %"class.TPCE::CCETxnInputGenerator", ptr %13, i32 0, i32 29
  %33 = load i32, ptr %32, align 8, !tbaa !39
  %34 = sub nsw i32 %33, 1
  %35 = invoke noundef i32 @_ZN4TPCE7CRandom11RndIntRangeEii(ptr noundef nonnull align 8 dereferenceable(8) %31, i32 noundef 0, i32 noundef %34)
          to label %36 unwind label %69

36:                                               ; preds = %25
  %37 = invoke noundef ptr @_ZN4TPCE9CFlatFileINS_12INDUSTRY_ROWENS_15TIndustryLimitsEE9GetRecordEi(ptr noundef nonnull align 8 dereferenceable(40) %30, i32 noundef %35)
          to label %38 unwind label %69

38:                                               ; preds = %36
  %39 = getelementptr inbounds %"struct.TPCE::INDUSTRY_ROW", ptr %37, i32 0, i32 2
  %40 = getelementptr inbounds [51 x i8], ptr %39, i64 0, i64 0
  %41 = call ptr @strncpy(ptr noundef %28, ptr noundef %40, i64 noundef 51) #5
  %42 = load ptr, ptr %4, align 8, !tbaa !5
  %43 = getelementptr inbounds %"struct.TPCE::TMarketWatchTxnInput", ptr %42, i32 0, i32 0
  store i64 0, ptr %43, align 8, !tbaa !40
  %44 = load ptr, ptr %4, align 8, !tbaa !5
  %45 = getelementptr inbounds %"struct.TPCE::TMarketWatchTxnInput", ptr %44, i32 0, i32 1
  store i64 0, ptr %45, align 8, !tbaa !44
  %46 = getelementptr inbounds %"class.TPCE::CCETxnInputGenerator", ptr %13, i32 0, i32 28
  %47 = load i64, ptr %46, align 8, !tbaa !45
  %48 = icmp slt i64 5000, %47
  br i1 %48, label %49, label %73

49:                                               ; preds = %38
  %50 = getelementptr inbounds %"class.TPCE::CCETxnInputGenerator", ptr %13, i32 0, i32 0
  %51 = getelementptr inbounds %"class.TPCE::CCETxnInputGenerator", ptr %13, i32 0, i32 31
  %52 = load i64, ptr %51, align 8, !tbaa !46
  %53 = getelementptr inbounds %"class.TPCE::CCETxnInputGenerator", ptr %13, i32 0, i32 31
  %54 = load i64, ptr %53, align 8, !tbaa !46
  %55 = getelementptr inbounds %"class.TPCE::CCETxnInputGenerator", ptr %13, i32 0, i32 28
  %56 = load i64, ptr %55, align 8, !tbaa !45
  %57 = add nsw i64 %54, %56
  %58 = sub nsw i64 %57, 4999
  %59 = invoke noundef i64 @_ZN4TPCE7CRandom13RndInt64RangeExx(ptr noundef nonnull align 8 dereferenceable(8) %50, i64 noundef %52, i64 noundef %58)
          to label %60 unwind label %69

60:                                               ; preds = %49
  %61 = load ptr, ptr %4, align 8, !tbaa !5
  %62 = getelementptr inbounds %"struct.TPCE::TMarketWatchTxnInput", ptr %61, i32 0, i32 3
  store i64 %59, ptr %62, align 8, !tbaa !47
  %63 = load ptr, ptr %4, align 8, !tbaa !5
  %64 = getelementptr inbounds %"struct.TPCE::TMarketWatchTxnInput", ptr %63, i32 0, i32 3
  %65 = load i64, ptr %64, align 8, !tbaa !47
  %66 = add nsw i64 %65, 4999
  %67 = load ptr, ptr %4, align 8, !tbaa !5
  %68 = getelementptr inbounds %"struct.TPCE::TMarketWatchTxnInput", ptr %67, i32 0, i32 2
  store i64 %66, ptr %68, align 8, !tbaa !48
  br label %86

69:                                               ; preds = %172, %170, %131, %128, %117, %116, %110, %49, %36, %25, %2
  %70 = landingpad { ptr, i32 }
          cleanup
  %71 = extractvalue { ptr, i32 } %70, 0
  store ptr %71, ptr %11, align 8
  %72 = extractvalue { ptr, i32 } %70, 1
  store i32 %72, ptr %12, align 4
  call void @_ZN4TPCE9CDateTimeD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  br label %176

73:                                               ; preds = %38
  %74 = getelementptr inbounds %"class.TPCE::CCETxnInputGenerator", ptr %13, i32 0, i32 31
  %75 = load i64, ptr %74, align 8, !tbaa !46
  %76 = load ptr, ptr %4, align 8, !tbaa !5
  %77 = getelementptr inbounds %"struct.TPCE::TMarketWatchTxnInput", ptr %76, i32 0, i32 3
  store i64 %75, ptr %77, align 8, !tbaa !47
  %78 = getelementptr inbounds %"class.TPCE::CCETxnInputGenerator", ptr %13, i32 0, i32 31
  %79 = load i64, ptr %78, align 8, !tbaa !46
  %80 = getelementptr inbounds %"class.TPCE::CCETxnInputGenerator", ptr %13, i32 0, i32 28
  %81 = load i64, ptr %80, align 8, !tbaa !45
  %82 = add nsw i64 %79, %81
  %83 = sub nsw i64 %82, 1
  %84 = load ptr, ptr %4, align 8, !tbaa !5
  %85 = getelementptr inbounds %"struct.TPCE::TMarketWatchTxnInput", ptr %84, i32 0, i32 2
  store i64 %83, ptr %85, align 8, !tbaa !48
  br label %86

86:                                               ; preds = %73, %60
  br label %128

87:                                               ; preds = %16
  %88 = load ptr, ptr %4, align 8, !tbaa !5
  %89 = getelementptr inbounds %"struct.TPCE::TMarketWatchTxnInput", ptr %88, i32 0, i32 5
  %90 = getelementptr inbounds [51 x i8], ptr %89, i64 0, i64 0
  store i8 0, ptr %90, align 8, !tbaa !49
  %91 = load ptr, ptr %4, align 8, !tbaa !5
  %92 = getelementptr inbounds %"struct.TPCE::TMarketWatchTxnInput", ptr %91, i32 0, i32 3
  store i64 0, ptr %92, align 8, !tbaa !47
  %93 = load ptr, ptr %4, align 8, !tbaa !5
  %94 = getelementptr inbounds %"struct.TPCE::TMarketWatchTxnInput", ptr %93, i32 0, i32 2
  store i64 0, ptr %94, align 8, !tbaa !48
  %95 = load i32, ptr %7, align 4, !tbaa !9
  %96 = getelementptr inbounds %"class.TPCE::CCETxnInputGenerator", ptr %13, i32 0, i32 12
  %97 = load ptr, ptr %96, align 8, !tbaa !11
  %98 = getelementptr inbounds %"struct.TPCE::TDriverCETxnSettings", ptr %97, i32 0, i32 2
  %99 = getelementptr inbounds %"class.TPCE::CParametersWithDefaults.17", ptr %98, i32 0, i32 4
  %100 = getelementptr inbounds %"struct.TPCE::TMarketWatchSettings", ptr %99, i32 0, i32 1
  %101 = load i32, ptr %100, align 4, !tbaa !34
  %102 = getelementptr inbounds %"class.TPCE::CCETxnInputGenerator", ptr %13, i32 0, i32 12
  %103 = load ptr, ptr %102, align 8, !tbaa !11
  %104 = getelementptr inbounds %"struct.TPCE::TDriverCETxnSettings", ptr %103, i32 0, i32 2
  %105 = getelementptr inbounds %"class.TPCE::CParametersWithDefaults.17", ptr %104, i32 0, i32 4
  %106 = getelementptr inbounds %"struct.TPCE::TMarketWatchSettings", ptr %105, i32 0, i32 2
  %107 = load i32, ptr %106, align 8, !tbaa !50
  %108 = add nsw i32 %101, %107
  %109 = icmp sle i32 %95, %108
  br i1 %109, label %110, label %116

110:                                              ; preds = %87
  %111 = load ptr, ptr %4, align 8, !tbaa !5
  %112 = getelementptr inbounds %"struct.TPCE::TMarketWatchTxnInput", ptr %111, i32 0, i32 1
  invoke void @_ZN4TPCE20CCETxnInputGenerator34GenerateNonUniformRandomCustomerIdERxRNS_13eCustomerTierE(ptr noundef nonnull align 8 dereferenceable(4032) %13, ptr noundef nonnull align 8 dereferenceable(8) %112, ptr noundef nonnull align 4 dereferenceable(4) %6)
          to label %113 unwind label %69

113:                                              ; preds = %110
  %114 = load ptr, ptr %4, align 8, !tbaa !5
  %115 = getelementptr inbounds %"struct.TPCE::TMarketWatchTxnInput", ptr %114, i32 0, i32 0
  store i64 0, ptr %115, align 8, !tbaa !40
  br label %127

116:                                              ; preds = %87
  invoke void @_ZN4TPCE20CCETxnInputGenerator34GenerateNonUniformRandomCustomerIdERxRNS_13eCustomerTierE(ptr noundef nonnull align 8 dereferenceable(4032) %13, ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 4 dereferenceable(4) %6)
          to label %117 unwind label %69

117:                                              ; preds = %116
  %118 = getelementptr inbounds %"class.TPCE::CCETxnInputGenerator", ptr %13, i32 0, i32 3
  %119 = getelementptr inbounds %"class.TPCE::CCETxnInputGenerator", ptr %13, i32 0, i32 0
  %120 = load i64, ptr %5, align 8, !tbaa !51
  %121 = load i32, ptr %6, align 4, !tbaa !52
  %122 = load ptr, ptr %4, align 8, !tbaa !5
  %123 = getelementptr inbounds %"struct.TPCE::TMarketWatchTxnInput", ptr %122, i32 0, i32 0
  invoke void @_ZN4TPCE36CCustomerAccountsAndPermissionsTable23GenerateRandomAccountIdERNS_7CRandomExNS_13eCustomerTierEPxPi(ptr noundef nonnull align 8 dereferenceable(1616) %118, ptr noundef nonnull align 8 dereferenceable(8) %119, i64 noundef %120, i32 noundef %121, ptr noundef %123, ptr noundef null)
          to label %124 unwind label %69

124:                                              ; preds = %117
  %125 = load ptr, ptr %4, align 8, !tbaa !5
  %126 = getelementptr inbounds %"struct.TPCE::TMarketWatchTxnInput", ptr %125, i32 0, i32 1
  store i64 0, ptr %126, align 8, !tbaa !44
  br label %127

127:                                              ; preds = %124, %113
  br label %128

128:                                              ; preds = %127, %86
  %129 = getelementptr inbounds %"class.TPCE::CCETxnInputGenerator", ptr %13, i32 0, i32 0
  %130 = invoke noundef i64 @_ZN4TPCE7CRandom5NURndExxii(ptr noundef nonnull align 8 dereferenceable(8) %129, i64 noundef 0, i64 noundef 255, i32 noundef 255, i32 noundef 0)
          to label %131 unwind label %69

131:                                              ; preds = %128
  %132 = trunc i64 %130 to i32
  %133 = add nsw i32 %132, 5
  store i32 %133, ptr %8, align 4, !tbaa !9
  %134 = getelementptr inbounds %"class.TPCE::CCETxnInputGenerator", ptr %13, i32 0, i32 0
  %135 = invoke noundef i32 @_ZN4TPCE7CRandom28RndGenerateIntegerPercentageEv(ptr noundef nonnull align 8 dereferenceable(8) %134)
          to label %136 unwind label %69

136:                                              ; preds = %131
  store i32 %135, ptr %7, align 4, !tbaa !9
  %137 = load i32, ptr %7, align 4, !tbaa !9
  %138 = icmp sgt i32 %137, 40
  br i1 %138, label %139, label %143

139:                                              ; preds = %136
  %140 = load i32, ptr %8, align 4, !tbaa !9
  %141 = mul nsw i32 %140, 7
  %142 = add nsw i32 %141, 4
  store i32 %142, ptr %9, align 4, !tbaa !9
  br label %170

143:                                              ; preds = %136
  %144 = load i32, ptr %7, align 4, !tbaa !9
  %145 = icmp sle i32 %144, 20
  br i1 %145, label %146, label %149

146:                                              ; preds = %143
  %147 = load i32, ptr %8, align 4, !tbaa !9
  %148 = mul nsw i32 %147, 7
  store i32 %148, ptr %9, align 4, !tbaa !9
  br label %169

149:                                              ; preds = %143
  %150 = load i32, ptr %7, align 4, !tbaa !9
  %151 = icmp sle i32 %150, 27
  br i1 %151, label %152, label %156

152:                                              ; preds = %149
  %153 = load i32, ptr %8, align 4, !tbaa !9
  %154 = mul nsw i32 %153, 7
  %155 = add nsw i32 %154, 1
  store i32 %155, ptr %9, align 4, !tbaa !9
  br label %168

156:                                              ; preds = %149
  %157 = load i32, ptr %7, align 4, !tbaa !9
  %158 = icmp sle i32 %157, 33
  br i1 %158, label %159, label %163

159:                                              ; preds = %156
  %160 = load i32, ptr %8, align 4, !tbaa !9
  %161 = mul nsw i32 %160, 7
  %162 = add nsw i32 %161, 2
  store i32 %162, ptr %9, align 4, !tbaa !9
  br label %167

163:                                              ; preds = %156
  %164 = load i32, ptr %8, align 4, !tbaa !9
  %165 = mul nsw i32 %164, 7
  %166 = add nsw i32 %165, 3
  store i32 %166, ptr %9, align 4, !tbaa !9
  br label %167

167:                                              ; preds = %163, %159
  br label %168

168:                                              ; preds = %167, %152
  br label %169

169:                                              ; preds = %168, %146
  br label %170

170:                                              ; preds = %169, %139
  %171 = load i32, ptr %9, align 4, !tbaa !9
  invoke void @_ZN4TPCE9CDateTime3AddEiib(ptr noundef nonnull align 8 dereferenceable(16) %10, i32 noundef %171, i32 noundef 0, i1 noundef zeroext false)
          to label %172 unwind label %69

172:                                              ; preds = %170
  %173 = load ptr, ptr %4, align 8, !tbaa !5
  %174 = getelementptr inbounds %"struct.TPCE::TMarketWatchTxnInput", ptr %173, i32 0, i32 4
  invoke void @_ZN4TPCE9CDateTime12GetTimeStampEPNS_19tagTIMESTAMP_STRUCTE(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef %174)
          to label %175 unwind label %69

175:                                              ; preds = %172
  call void @_ZN4TPCE9CDateTimeD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  ret void

176:                                              ; preds = %69
  %177 = load ptr, ptr %11, align 8
  %178 = load i32, ptr %12, align 4
  %179 = insertvalue { ptr, i32 } poison, ptr %177, 0
  %180 = insertvalue { ptr, i32 } %179, i32 %178, 1
  resume { ptr, i32 } %180
}

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

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

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

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

declare void @_ZN4TPCE9CDateTime3AddEiib(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef, i32 noundef, i1 noundef zeroext) #2

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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" }
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 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 3848}
!12 = !{!"_ZTSN4TPCE20CCETxnInputGeneratorE", !13, i64 0, !15, i64 8, !17, i64 72, !18, i64 120, !30, i64 1736, !31, 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, !14, i64 3864, !14, i64 3872, !14, i64 3880, !14, i64 3888, !10, i64 3896, !10, i64 3900, !10, i64 3904, !14, i64 3912, !14, i64 3920, !14, i64 3928, !14, i64 3936, !14, i64 3944, !14, i64 3952, !14, i64 3960, !14, i64 3968, !10, i64 3976, !10, i64 3980, !14, i64 3984, !26, i64 3992, !26, i64 4008, !10, i64 4024, !10, i64 4028}
!13 = !{!"_ZTSN4TPCE7CRandomE", !14, i64 0}
!14 = !{!"long long", !7, i64 0}
!15 = !{!"_ZTSN4TPCE7CPersonE", !6, i64 0, !6, i64 8, !6, i64 16, !13, i64 24, !16, i64 32, !10, i64 36, !14, i64 40, !6, i64 48, !6, i64 56}
!16 = !{!"bool", !7, i64 0}
!17 = !{!"_ZTSN4TPCE18CCustomerSelectionE", !6, i64 0, !14, i64 8, !14, i64 16, !16, i64 24, !10, i64 28, !14, i64 32, !14, i64 40}
!18 = !{!"_ZTSN4TPCE36CCustomerAccountsAndPermissionsTableE", !19, i64 0, !6, i64 472, !6, i64 480, !14, i64 488, !14, i64 496, !14, i64 504, !10, i64 512, !10, i64 516, !23, i64 520, !15, i64 1016, !10, i64 1080, !14, i64 1088, !27, i64 1096, !10, i64 1512, !17, i64 1520, !16, i64 1568, !10, i64 1572, !14, i64 1576, !6, i64 1584, !10, i64 1592, !14, i64 1600, !6, i64 1608}
!19 = !{!"_ZTSN4TPCE13TableTemplateINS_35CUSTOMER_ACCOUNT_AND_PERMISSION_ROWEEE", !20, i64 8, !14, i64 448, !16, i64 456, !13, i64 464}
!20 = !{!"_ZTSN4TPCE35CUSTOMER_ACCOUNT_AND_PERMISSION_ROWE", !21, i64 0, !7, i64 88}
!21 = !{!"_ZTSN4TPCE20CUSTOMER_ACCOUNT_ROWE", !14, i64 0, !14, i64 8, !14, i64 16, !7, i64 24, !7, i64 75, !22, i64 80}
!22 = !{!"double", !7, i64 0}
!23 = !{!"_ZTSN4TPCE14CCustomerTableE", !24, i64 0, !14, i64 328, !15, i64 336, !6, i64 400, !14, i64 408, !14, i64 416, !14, i64 424, !10, i64 432, !6, i64 440, !17, i64 448}
!24 = !{!"_ZTSN4TPCE13TableTemplateINS_12CUSTOMER_ROWEEE", !25, i64 8, !14, i64 304, !16, i64 312, !13, i64 320}
!25 = !{!"_ZTSN4TPCE12CUSTOMER_ROWE", !14, i64 0, !7, i64 8, !7, i64 29, !7, i64 34, !7, i64 60, !7, i64 81, !7, i64 83, !7, i64 84, !26, i64 88, !14, i64 104, !7, i64 112, !7, i64 116, !7, i64 120, !7, i64 131, !7, i64 137, !7, i64 141, !7, i64 145, !7, i64 156, !7, i64 162, !7, i64 166, !7, i64 170, !7, i64 181, !7, i64 187, !7, i64 238}
!26 = !{!"_ZTSN4TPCE9CDateTimeE", !10, i64 0, !10, i64 4, !6, i64 8}
!27 = !{!"_ZTSN4TPCE13CAddressTableE", !28, i64 0, !26, i64 296, !6, i64 312, !6, i64 320, !6, i64 328, !6, i64 336, !14, i64 344, !14, i64 352, !16, i64 360, !16, i64 361, !14, i64 368, !10, i64 376, !14, i64 384, !16, i64 392, !10, i64 396, !14, i64 400, !6, i64 408}
!28 = !{!"_ZTSN4TPCE13TableTemplateINS_11ADDRESS_ROWEEE", !29, i64 8, !14, i64 272, !16, i64 280, !13, i64 288}
!29 = !{!"_ZTSN4TPCE11ADDRESS_ROWE", !14, i64 0, !7, i64 8, !7, i64 89, !7, i64 170, !7, i64 183}
!30 = !{!"_ZTSN4TPCE23CHoldingsAndTradesTableE", !13, i64 0, !18, i64 8, !14, i64 1624, !10, i64 1632, !7, i64 1640, !16, i64 1784, !14, i64 1792, !10, i64 1800, !6, i64 1808, !14, i64 1816, !10, i64 1824, !6, i64 1832}
!31 = !{!"_ZTSN4TPCE13CBrokersTableE", !32, i64 0, !14, i64 112, !14, i64 120, !14, i64 128, !15, i64 136, !6, i64 200, !6, i64 208, !6, i64 216}
!32 = !{!"_ZTSN4TPCE13TableTemplateINS_10BROKER_ROWEEE", !33, i64 8, !14, i64 88, !16, i64 96, !13, i64 104}
!33 = !{!"_ZTSN4TPCE10BROKER_ROWE", !14, i64 0, !7, i64 8, !7, i64 13, !10, i64 64, !22, i64 72}
!34 = !{!35, !10, i64 28}
!35 = !{!"_ZTSN4TPCE23CParametersWithDefaultsINS_20TMarketWatchSettingsENS_25TMarketWatchSettingsStateEEE", !36, i64 8, !37, i64 20, !36, i64 24}
!36 = !{!"_ZTSN4TPCE20TMarketWatchSettingsE", !10, i64 0, !10, i64 4, !10, i64 8}
!37 = !{!"_ZTSN4TPCE25TMarketWatchSettingsStateE", !16, i64 0, !16, i64 1, !16, i64 2}
!38 = !{!12, !6, i64 3816}
!39 = !{!12, !10, i64 3976}
!40 = !{!41, !14, i64 0}
!41 = !{!"_ZTSN4TPCE20TMarketWatchTxnInputE", !14, i64 0, !14, i64 8, !14, i64 16, !14, i64 24, !42, i64 32, !7, i64 48}
!42 = !{!"_ZTSN4TPCE19tagTIMESTAMP_STRUCTE", !43, i64 0, !43, i64 2, !43, i64 4, !43, i64 6, !43, i64 8, !43, i64 10, !10, i64 12}
!43 = !{!"short", !7, i64 0}
!44 = !{!41, !14, i64 8}
!45 = !{!12, !14, i64 3968}
!46 = !{!12, !14, i64 3984}
!47 = !{!41, !14, i64 24}
!48 = !{!41, !14, i64 16}
!49 = !{!7, !7, i64 0}
!50 = !{!35, !10, i64 32}
!51 = !{!14, !14, i64 0}
!52 = !{!53, !53, i64 0}
!53 = !{!"_ZTSN4TPCE13eCustomerTierE", !7, i64 0}


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

%"class.TPCE::CDateTime" = type { i32, i32, ptr }

declare i32 @__gxx_personality_v0(...)

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

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

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

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

declare void @_ZN4TPCE9CDateTimeC1Eiiiiiii(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) unnamed_addr #2

declare void @_ZN4TPCE9CDateTime12GetTimeStampEPNS_19tagTIMESTAMP_STRUCTE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) local_unnamed_addr #2

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

; 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 #3

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4TPCE20CCETxnInputGenerator24GenerateMarketWatchInputERNS_20TMarketWatchTxnInputE(ptr noundef nonnull align 8 dereferenceable(4032) %0, ptr noundef nonnull align 8 dereferenceable(104) %1) local_unnamed_addr #5 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca i64, align 8
  %4 = alloca i32, align 4
  %5 = alloca %"class.TPCE::CDateTime", align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #7
  call void @_ZN4TPCE9CDateTimeC1Eiiiiiii(ptr noundef nonnull align 8 dereferenceable(16) %5, i32 noundef 2000, i32 noundef 1, i32 noundef 3, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0)
  %6 = invoke noundef i32 @_ZN4TPCE7CRandom28RndGenerateIntegerPercentageEv(ptr noundef nonnull align 8 dereferenceable(8) %0)
          to label %7 unwind label %38

7:                                                ; preds = %2
  %8 = getelementptr inbounds i8, ptr %0, i64 3848
  %9 = load ptr, ptr %8, align 8, !tbaa !5
  %10 = getelementptr inbounds i8, ptr %9, i64 84
  %11 = load i32, ptr %10, align 4, !tbaa !32
  %.not = icmp sgt i32 %6, %11
  %12 = getelementptr inbounds i8, ptr %1, i64 48
  br i1 %.not, label %45, label %13

13:                                               ; preds = %7
  %14 = getelementptr inbounds i8, ptr %0, i64 3816
  %15 = load ptr, ptr %14, align 8, !tbaa !36
  %16 = getelementptr inbounds i8, ptr %0, i64 3976
  %17 = load i32, ptr %16, align 8, !tbaa !37
  %18 = add nsw i32 %17, -1
  %19 = invoke noundef i32 @_ZN4TPCE7CRandom11RndIntRangeEii(ptr noundef nonnull align 8 dereferenceable(8) %0, i32 noundef 0, i32 noundef %18)
          to label %20 unwind label %38

20:                                               ; preds = %13
  %21 = invoke noundef ptr @_ZN4TPCE9CFlatFileINS_12INDUSTRY_ROWENS_15TIndustryLimitsEE9GetRecordEi(ptr noundef nonnull align 8 dereferenceable(40) %15, i32 noundef %19)
          to label %22 unwind label %38

22:                                               ; preds = %20
  %23 = getelementptr inbounds i8, ptr %21, i64 11
  %24 = call ptr @strncpy(ptr noundef nonnull dereferenceable(1) %12, ptr noundef nonnull dereferenceable(1) %23, i64 noundef 51) #7
  %25 = getelementptr inbounds i8, ptr %0, i64 3968
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %1, i8 0, i64 16, i1 false)
  %26 = load i64, ptr %25, align 8, !tbaa !38
  %27 = icmp sgt i64 %26, 5000
  %28 = getelementptr inbounds i8, ptr %0, i64 3984
  %29 = load i64, ptr %28, align 8, !tbaa !39
  br i1 %27, label %30, label %40

30:                                               ; preds = %22
  %31 = add nsw i64 %26, -4999
  %32 = add i64 %31, %29
  %33 = invoke noundef i64 @_ZN4TPCE7CRandom13RndInt64RangeExx(ptr noundef nonnull align 8 dereferenceable(8) %0, i64 noundef %29, i64 noundef %32)
          to label %34 unwind label %38

34:                                               ; preds = %30
  %35 = getelementptr inbounds i8, ptr %1, i64 24
  store i64 %33, ptr %35, align 8, !tbaa !40
  %36 = add nsw i64 %33, 4999
  %37 = getelementptr inbounds i8, ptr %1, i64 16
  store i64 %36, ptr %37, align 8, !tbaa !44
  br label %63

38:                                               ; preds = %91, %90, %65, %63, %57, %56, %53, %30, %20, %13, %2
  %39 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4TPCE9CDateTimeD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  resume { ptr, i32 } %39

40:                                               ; preds = %22
  %41 = getelementptr inbounds i8, ptr %1, i64 24
  store i64 %29, ptr %41, align 8, !tbaa !40
  %42 = add i64 %26, -1
  %43 = add i64 %42, %29
  %44 = getelementptr inbounds i8, ptr %1, i64 16
  store i64 %43, ptr %44, align 8, !tbaa !44
  br label %63

45:                                               ; preds = %7
  store i8 0, ptr %12, align 8, !tbaa !45
  %46 = getelementptr inbounds i8, ptr %1, i64 16
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %46, i8 0, i64 16, i1 false)
  %47 = load ptr, ptr %8, align 8, !tbaa !5
  %48 = getelementptr inbounds i8, ptr %47, i64 84
  %49 = load i32, ptr %48, align 4, !tbaa !32
  %50 = getelementptr inbounds i8, ptr %47, i64 88
  %51 = load i32, ptr %50, align 8, !tbaa !46
  %52 = add nsw i32 %51, %49
  %.not33 = icmp sgt i32 %6, %52
  br i1 %.not33, label %56, label %53

53:                                               ; preds = %45
  %54 = getelementptr inbounds i8, ptr %1, i64 8
  invoke void @_ZN4TPCE20CCETxnInputGenerator34GenerateNonUniformRandomCustomerIdERxRNS_13eCustomerTierE(ptr noundef nonnull align 8 dereferenceable(4032) %0, ptr noundef nonnull align 8 dereferenceable(8) %54, ptr noundef nonnull align 4 dereferenceable(4) %4)
          to label %55 unwind label %38

55:                                               ; preds = %53
  store i64 0, ptr %1, align 8, !tbaa !47
  br label %63

56:                                               ; preds = %45
  invoke void @_ZN4TPCE20CCETxnInputGenerator34GenerateNonUniformRandomCustomerIdERxRNS_13eCustomerTierE(ptr noundef nonnull align 8 dereferenceable(4032) %0, ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 4 dereferenceable(4) %4)
          to label %57 unwind label %38

57:                                               ; preds = %56
  %58 = getelementptr inbounds i8, ptr %0, i64 120
  %59 = load i64, ptr %3, align 8, !tbaa !48
  %60 = load i32, ptr %4, align 4, !tbaa !49
  invoke void @_ZN4TPCE36CCustomerAccountsAndPermissionsTable23GenerateRandomAccountIdERNS_7CRandomExNS_13eCustomerTierEPxPi(ptr noundef nonnull align 8 dereferenceable(1616) %58, ptr noundef nonnull align 8 dereferenceable(8) %0, i64 noundef %59, i32 noundef %60, ptr noundef nonnull %1, ptr noundef null)
          to label %61 unwind label %38

61:                                               ; preds = %57
  %62 = getelementptr inbounds i8, ptr %1, i64 8
  store i64 0, ptr %62, align 8, !tbaa !51
  br label %63

63:                                               ; preds = %55, %61, %34, %40
  %64 = invoke noundef i64 @_ZN4TPCE7CRandom5NURndExxii(ptr noundef nonnull align 8 dereferenceable(8) %0, i64 noundef 0, i64 noundef 255, i32 noundef 255, i32 noundef 0)
          to label %65 unwind label %38

65:                                               ; preds = %63
  %66 = trunc i64 %64 to i32
  %67 = add nsw i32 %66, 5
  %68 = invoke noundef i32 @_ZN4TPCE7CRandom28RndGenerateIntegerPercentageEv(ptr noundef nonnull align 8 dereferenceable(8) %0)
          to label %69 unwind label %38

69:                                               ; preds = %65
  %70 = icmp sgt i32 %68, 40
  br i1 %70, label %71, label %74

71:                                               ; preds = %69
  %72 = mul nsw i32 %67, 7
  %73 = add nsw i32 %72, 4
  br label %90

74:                                               ; preds = %69
  %75 = icmp slt i32 %68, 21
  br i1 %75, label %76, label %78

76:                                               ; preds = %74
  %77 = mul nsw i32 %67, 7
  br label %90

78:                                               ; preds = %74
  %79 = icmp ult i32 %68, 28
  br i1 %79, label %80, label %83

80:                                               ; preds = %78
  %81 = mul nsw i32 %67, 7
  %82 = add nsw i32 %81, 1
  br label %90

83:                                               ; preds = %78
  %84 = icmp ult i32 %68, 34
  %85 = mul nsw i32 %67, 7
  br i1 %84, label %86, label %88

86:                                               ; preds = %83
  %87 = add nsw i32 %85, 2
  br label %90

88:                                               ; preds = %83
  %89 = add nsw i32 %85, 3
  br label %90

90:                                               ; preds = %76, %86, %88, %80, %71
  %.0 = phi i32 [ %73, %71 ], [ %77, %76 ], [ %82, %80 ], [ %87, %86 ], [ %89, %88 ]
  invoke void @_ZN4TPCE9CDateTime3AddEiib(ptr noundef nonnull align 8 dereferenceable(16) %5, i32 noundef %.0, i32 noundef 0, i1 noundef zeroext false)
          to label %91 unwind label %38

91:                                               ; preds = %90
  %92 = getelementptr inbounds i8, ptr %1, i64 32
  invoke void @_ZN4TPCE9CDateTime12GetTimeStampEPNS_19tagTIMESTAMP_STRUCTE(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull %92)
          to label %93 unwind label %38

93:                                               ; preds = %91
  call void @_ZN4TPCE9CDateTimeD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  ret void
}

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

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

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

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

declare void @_ZN4TPCE9CDateTime3AddEiib(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef, i32 noundef, i1 noundef zeroext) local_unnamed_addr #2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #6

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #4 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #7 = { 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, !12, i64 3848}
!6 = !{!"_ZTSN4TPCE20CCETxnInputGeneratorE", !7, i64 0, !11, i64 8, !15, i64 72, !16, i64 120, !28, i64 1736, !29, i64 3576, !12, i64 3800, !12, i64 3808, !12, i64 3816, !12, i64 3824, !12, i64 3832, !12, i64 3840, !12, i64 3848, !12, i64 3856, !8, i64 3864, !8, i64 3872, !8, i64 3880, !8, i64 3888, !14, i64 3896, !14, i64 3900, !14, i64 3904, !8, i64 3912, !8, i64 3920, !8, i64 3928, !8, i64 3936, !8, i64 3944, !8, i64 3952, !8, i64 3960, !8, i64 3968, !14, i64 3976, !14, i64 3980, !8, i64 3984, !24, i64 3992, !24, i64 4008, !14, i64 4024, !14, i64 4028}
!7 = !{!"_ZTSN4TPCE7CRandomE", !8, i64 0}
!8 = !{!"long long", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"_ZTSN4TPCE7CPersonE", !12, i64 0, !12, i64 8, !12, i64 16, !7, i64 24, !13, i64 32, !14, i64 36, !8, i64 40, !12, i64 48, !12, i64 56}
!12 = !{!"any pointer", !9, i64 0}
!13 = !{!"bool", !9, i64 0}
!14 = !{!"int", !9, i64 0}
!15 = !{!"_ZTSN4TPCE18CCustomerSelectionE", !12, i64 0, !8, i64 8, !8, i64 16, !13, i64 24, !14, i64 28, !8, i64 32, !8, i64 40}
!16 = !{!"_ZTSN4TPCE36CCustomerAccountsAndPermissionsTableE", !17, i64 0, !12, i64 472, !12, i64 480, !8, i64 488, !8, i64 496, !8, i64 504, !14, i64 512, !14, i64 516, !21, i64 520, !11, i64 1016, !14, i64 1080, !8, i64 1088, !25, i64 1096, !14, i64 1512, !15, i64 1520, !13, i64 1568, !14, i64 1572, !8, i64 1576, !12, i64 1584, !14, i64 1592, !8, i64 1600, !12, i64 1608}
!17 = !{!"_ZTSN4TPCE13TableTemplateINS_35CUSTOMER_ACCOUNT_AND_PERMISSION_ROWEEE", !18, i64 8, !8, i64 448, !13, i64 456, !7, i64 464}
!18 = !{!"_ZTSN4TPCE35CUSTOMER_ACCOUNT_AND_PERMISSION_ROWE", !19, i64 0, !9, i64 88}
!19 = !{!"_ZTSN4TPCE20CUSTOMER_ACCOUNT_ROWE", !8, i64 0, !8, i64 8, !8, i64 16, !9, i64 24, !9, i64 75, !20, i64 80}
!20 = !{!"double", !9, i64 0}
!21 = !{!"_ZTSN4TPCE14CCustomerTableE", !22, i64 0, !8, i64 328, !11, i64 336, !12, i64 400, !8, i64 408, !8, i64 416, !8, i64 424, !14, i64 432, !12, i64 440, !15, i64 448}
!22 = !{!"_ZTSN4TPCE13TableTemplateINS_12CUSTOMER_ROWEEE", !23, i64 8, !8, i64 304, !13, i64 312, !7, i64 320}
!23 = !{!"_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, !24, 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}
!24 = !{!"_ZTSN4TPCE9CDateTimeE", !14, i64 0, !14, i64 4, !12, i64 8}
!25 = !{!"_ZTSN4TPCE13CAddressTableE", !26, i64 0, !24, i64 296, !12, i64 312, !12, i64 320, !12, i64 328, !12, i64 336, !8, i64 344, !8, i64 352, !13, i64 360, !13, i64 361, !8, i64 368, !14, i64 376, !8, i64 384, !13, i64 392, !14, i64 396, !8, i64 400, !12, i64 408}
!26 = !{!"_ZTSN4TPCE13TableTemplateINS_11ADDRESS_ROWEEE", !27, i64 8, !8, i64 272, !13, i64 280, !7, i64 288}
!27 = !{!"_ZTSN4TPCE11ADDRESS_ROWE", !8, i64 0, !9, i64 8, !9, i64 89, !9, i64 170, !9, i64 183}
!28 = !{!"_ZTSN4TPCE23CHoldingsAndTradesTableE", !7, i64 0, !16, i64 8, !8, i64 1624, !14, i64 1632, !9, i64 1640, !13, i64 1784, !8, i64 1792, !14, i64 1800, !12, i64 1808, !8, i64 1816, !14, i64 1824, !12, i64 1832}
!29 = !{!"_ZTSN4TPCE13CBrokersTableE", !30, i64 0, !8, i64 112, !8, i64 120, !8, i64 128, !11, i64 136, !12, i64 200, !12, i64 208, !12, i64 216}
!30 = !{!"_ZTSN4TPCE13TableTemplateINS_10BROKER_ROWEEE", !31, i64 8, !8, i64 88, !13, i64 96, !7, i64 104}
!31 = !{!"_ZTSN4TPCE10BROKER_ROWE", !8, i64 0, !9, i64 8, !9, i64 13, !14, i64 64, !20, i64 72}
!32 = !{!33, !14, i64 28}
!33 = !{!"_ZTSN4TPCE23CParametersWithDefaultsINS_20TMarketWatchSettingsENS_25TMarketWatchSettingsStateEEE", !34, i64 8, !35, i64 20, !34, i64 24}
!34 = !{!"_ZTSN4TPCE20TMarketWatchSettingsE", !14, i64 0, !14, i64 4, !14, i64 8}
!35 = !{!"_ZTSN4TPCE25TMarketWatchSettingsStateE", !13, i64 0, !13, i64 1, !13, i64 2}
!36 = !{!6, !12, i64 3816}
!37 = !{!6, !14, i64 3976}
!38 = !{!6, !8, i64 3968}
!39 = !{!6, !8, i64 3984}
!40 = !{!41, !8, i64 24}
!41 = !{!"_ZTSN4TPCE20TMarketWatchTxnInputE", !8, i64 0, !8, i64 8, !8, i64 16, !8, i64 24, !42, i64 32, !9, i64 48}
!42 = !{!"_ZTSN4TPCE19tagTIMESTAMP_STRUCTE", !43, i64 0, !43, i64 2, !43, i64 4, !43, i64 6, !43, i64 8, !43, i64 10, !14, i64 12}
!43 = !{!"short", !9, i64 0}
!44 = !{!41, !8, i64 16}
!45 = !{!9, !9, i64 0}
!46 = !{!33, !14, i64 32}
!47 = !{!41, !8, i64 0}
!48 = !{!8, !8, i64 0}
!49 = !{!50, !50, i64 0}
!50 = !{!"_ZTSN4TPCE13eCustomerTierE", !9, i64 0}
!51 = !{!41, !8, i64 8}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,MemCpyOptPass,ReassociatePass,SROAPass,SimplifyCFGPass