; 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::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.25" = type <{ ptr, %"struct.TPCE::TTradeUpdateSettings", %"struct.TPCE::TTradeUpdateSettingsState", i8, %"struct.TPCE::TTradeUpdateSettings", [4 x i8] }>
%"struct.TPCE::TTradeUpdateTxnInput" = type { [20 x i64], i64, i64, i32, i32, i32, %"struct.TPCE::tagTIMESTAMP_STRUCT", %"struct.TPCE::tagTIMESTAMP_STRUCT", [16 x i8] }
%"struct.TPCE::tagTIMESTAMP_STRUCT" = type { i16, i16, i16, i16, i16, i16, i32 }

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZN4TPCE20CCETxnInputGenerator25GenerateNonUniformTradeIDEii(ptr noundef nonnull align 8 dereferenceable(4032), i32 noundef, i32 noundef) #1 align 2

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

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

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

; 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 void @_ZN4TPCE13CSecurityFile12CreateSymbolExPcm(ptr noundef nonnull align 8 dereferenceable(161), i64 noundef, ptr noundef, i64 noundef) #1 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4TPCE20CCETxnInputGenerator24GenerateTradeUpdateInputERNS_20TTradeUpdateTxnInputE(ptr noundef nonnull align 8 dereferenceable(4032) %0, ptr noundef nonnull align 8 dereferenceable(240) %1) #1 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i8, align 1
  %9 = alloca i64, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %10 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  %11 = getelementptr inbounds %"class.TPCE::CCETxnInputGenerator", ptr %10, i32 0, i32 0
  %12 = call noundef i32 @_ZN4TPCE7CRandom28RndGenerateIntegerPercentageEv(ptr noundef nonnull align 8 dereferenceable(8) %11)
  store i32 %12, ptr %5, align 4, !tbaa !9
  %13 = load ptr, ptr %4, align 8, !tbaa !5
  call void @llvm.memset.p0.i64(ptr align 8 %13, i8 8, i64 240, i1 false)
  %14 = load i32, ptr %5, align 4, !tbaa !9
  %15 = getelementptr inbounds %"class.TPCE::CCETxnInputGenerator", ptr %10, i32 0, i32 12
  %16 = load ptr, ptr %15, align 8, !tbaa !11
  %17 = getelementptr inbounds %"struct.TPCE::TDriverCETxnSettings", ptr %16, i32 0, i32 6
  %18 = getelementptr inbounds %"class.TPCE::CParametersWithDefaults.25", ptr %17, i32 0, i32 4
  %19 = getelementptr inbounds %"struct.TPCE::TTradeUpdateSettings", ptr %18, i32 0, i32 0
  %20 = load i32, ptr %19, align 8, !tbaa !34
  %21 = icmp sle i32 %14, %20
  br i1 %21, label %22, label %100

22:                                               ; preds = %2
  %23 = load ptr, ptr %4, align 8, !tbaa !5
  %24 = getelementptr inbounds %"struct.TPCE::TTradeUpdateTxnInput", ptr %23, i32 0, i32 3
  store i32 1, ptr %24, align 8, !tbaa !38
  %25 = getelementptr inbounds %"class.TPCE::CCETxnInputGenerator", ptr %10, i32 0, i32 12
  %26 = load ptr, ptr %25, align 8, !tbaa !11
  %27 = getelementptr inbounds %"struct.TPCE::TDriverCETxnSettings", ptr %26, i32 0, i32 6
  %28 = getelementptr inbounds %"class.TPCE::CParametersWithDefaults.25", ptr %27, i32 0, i32 4
  %29 = getelementptr inbounds %"struct.TPCE::TTradeUpdateSettings", ptr %28, i32 0, i32 3
  %30 = load i32, ptr %29, align 4, !tbaa !42
  %31 = load ptr, ptr %4, align 8, !tbaa !5
  %32 = getelementptr inbounds %"struct.TPCE::TTradeUpdateTxnInput", ptr %31, i32 0, i32 4
  store i32 %30, ptr %32, align 4, !tbaa !43
  %33 = getelementptr inbounds %"class.TPCE::CCETxnInputGenerator", ptr %10, i32 0, i32 12
  %34 = load ptr, ptr %33, align 8, !tbaa !11
  %35 = getelementptr inbounds %"struct.TPCE::TDriverCETxnSettings", ptr %34, i32 0, i32 6
  %36 = getelementptr inbounds %"class.TPCE::CParametersWithDefaults.25", ptr %35, i32 0, i32 4
  %37 = getelementptr inbounds %"struct.TPCE::TTradeUpdateSettings", ptr %36, i32 0, i32 4
  %38 = load i32, ptr %37, align 8, !tbaa !44
  %39 = load ptr, ptr %4, align 8, !tbaa !5
  %40 = getelementptr inbounds %"struct.TPCE::TTradeUpdateTxnInput", ptr %39, i32 0, i32 5
  store i32 %38, ptr %40, align 8, !tbaa !45
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  store i32 0, ptr %6, align 4, !tbaa !9
  br label %41

41:                                               ; preds = %85, %22
  %42 = load i32, ptr %6, align 4, !tbaa !9
  %43 = load ptr, ptr %4, align 8, !tbaa !5
  %44 = getelementptr inbounds %"struct.TPCE::TTradeUpdateTxnInput", ptr %43, i32 0, i32 4
  %45 = load i32, ptr %44, align 4, !tbaa !43
  %46 = icmp slt i32 %42, %45
  br i1 %46, label %47, label %88

47:                                               ; preds = %41
  store i8 0, ptr %8, align 1, !tbaa !46
  br label %48

48:                                               ; preds = %83, %47
  %49 = load i8, ptr %8, align 1, !tbaa !46, !range !47, !noundef !48
  %50 = trunc i8 %49 to i1
  %51 = xor i1 %50, true
  br i1 %51, label %52, label %84

52:                                               ; preds = %48
  %53 = call noundef i64 @_ZN4TPCE20CCETxnInputGenerator25GenerateNonUniformTradeIDEii(ptr noundef nonnull align 8 dereferenceable(4032) %10, i32 noundef 65535, i32 noundef 7)
  store i64 %53, ptr %9, align 8, !tbaa !49
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %54

54:                                               ; preds = %69, %52
  %55 = load i32, ptr %7, align 4, !tbaa !9
  %56 = load i32, ptr %6, align 4, !tbaa !9
  %57 = icmp slt i32 %55, %56
  br i1 %57, label %58, label %67

58:                                               ; preds = %54
  %59 = load ptr, ptr %4, align 8, !tbaa !5
  %60 = getelementptr inbounds %"struct.TPCE::TTradeUpdateTxnInput", ptr %59, i32 0, i32 0
  %61 = load i32, ptr %7, align 4, !tbaa !9
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds [20 x i64], ptr %60, i64 0, i64 %62
  %64 = load i64, ptr %63, align 8, !tbaa !49
  %65 = load i64, ptr %9, align 8, !tbaa !49
  %66 = icmp ne i64 %64, %65
  br label %67

67:                                               ; preds = %58, %54
  %68 = phi i1 [ false, %54 ], [ %66, %58 ]
  br i1 %68, label %69, label %72

69:                                               ; preds = %67
  %70 = load i32, ptr %7, align 4, !tbaa !9
  %71 = add nsw i32 %70, 1
  store i32 %71, ptr %7, align 4, !tbaa !9
  br label %54, !llvm.loop !50

72:                                               ; preds = %67
  %73 = load i32, ptr %7, align 4, !tbaa !9
  %74 = load i32, ptr %6, align 4, !tbaa !9
  %75 = icmp eq i32 %73, %74
  br i1 %75, label %76, label %83

76:                                               ; preds = %72
  %77 = load i64, ptr %9, align 8, !tbaa !49
  %78 = load ptr, ptr %4, align 8, !tbaa !5
  %79 = getelementptr inbounds %"struct.TPCE::TTradeUpdateTxnInput", ptr %78, i32 0, i32 0
  %80 = load i32, ptr %6, align 4, !tbaa !9
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds [20 x i64], ptr %79, i64 0, i64 %81
  store i64 %77, ptr %82, align 8, !tbaa !49
  store i8 1, ptr %8, align 1, !tbaa !46
  br label %83

83:                                               ; preds = %76, %72
  br label %48, !llvm.loop !52

84:                                               ; preds = %48
  br label %85

85:                                               ; preds = %84
  %86 = load i32, ptr %6, align 4, !tbaa !9
  %87 = add nsw i32 %86, 1
  store i32 %87, ptr %6, align 4, !tbaa !9
  br label %41, !llvm.loop !53

88:                                               ; preds = %41
  %89 = load ptr, ptr %4, align 8, !tbaa !5
  %90 = getelementptr inbounds %"struct.TPCE::TTradeUpdateTxnInput", ptr %89, i32 0, i32 1
  store i64 0, ptr %90, align 8, !tbaa !54
  %91 = load ptr, ptr %4, align 8, !tbaa !5
  %92 = getelementptr inbounds %"struct.TPCE::TTradeUpdateTxnInput", ptr %91, i32 0, i32 2
  store i64 0, ptr %92, align 8, !tbaa !55
  %93 = load ptr, ptr %4, align 8, !tbaa !5
  %94 = getelementptr inbounds %"struct.TPCE::TTradeUpdateTxnInput", ptr %93, i32 0, i32 8
  %95 = getelementptr inbounds [16 x i8], ptr %94, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 4 %95, i8 0, i64 16, i1 false)
  %96 = load ptr, ptr %4, align 8, !tbaa !5
  %97 = getelementptr inbounds %"struct.TPCE::TTradeUpdateTxnInput", ptr %96, i32 0, i32 7
  call void @llvm.memset.p0.i64(ptr align 4 %97, i8 0, i64 16, i1 false)
  %98 = load ptr, ptr %4, align 8, !tbaa !5
  %99 = getelementptr inbounds %"struct.TPCE::TTradeUpdateTxnInput", ptr %98, i32 0, i32 6
  call void @llvm.memset.p0.i64(ptr align 4 %99, i8 0, i64 16, i1 false)
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  br label %201

100:                                              ; preds = %2
  %101 = load i32, ptr %5, align 4, !tbaa !9
  %102 = getelementptr inbounds %"class.TPCE::CCETxnInputGenerator", ptr %10, i32 0, i32 12
  %103 = load ptr, ptr %102, align 8, !tbaa !11
  %104 = getelementptr inbounds %"struct.TPCE::TDriverCETxnSettings", ptr %103, i32 0, i32 6
  %105 = getelementptr inbounds %"class.TPCE::CParametersWithDefaults.25", ptr %104, i32 0, i32 4
  %106 = getelementptr inbounds %"struct.TPCE::TTradeUpdateSettings", ptr %105, i32 0, i32 0
  %107 = load i32, ptr %106, align 8, !tbaa !34
  %108 = getelementptr inbounds %"class.TPCE::CCETxnInputGenerator", ptr %10, i32 0, i32 12
  %109 = load ptr, ptr %108, align 8, !tbaa !11
  %110 = getelementptr inbounds %"struct.TPCE::TDriverCETxnSettings", ptr %109, i32 0, i32 6
  %111 = getelementptr inbounds %"class.TPCE::CParametersWithDefaults.25", ptr %110, i32 0, i32 4
  %112 = getelementptr inbounds %"struct.TPCE::TTradeUpdateSettings", ptr %111, i32 0, i32 1
  %113 = load i32, ptr %112, align 4, !tbaa !56
  %114 = add nsw i32 %107, %113
  %115 = icmp sle i32 %101, %114
  br i1 %115, label %116, label %153

116:                                              ; preds = %100
  %117 = load ptr, ptr %4, align 8, !tbaa !5
  %118 = getelementptr inbounds %"struct.TPCE::TTradeUpdateTxnInput", ptr %117, i32 0, i32 3
  store i32 2, ptr %118, align 8, !tbaa !38
  %119 = getelementptr inbounds %"class.TPCE::CCETxnInputGenerator", ptr %10, i32 0, i32 12
  %120 = load ptr, ptr %119, align 8, !tbaa !11
  %121 = getelementptr inbounds %"struct.TPCE::TDriverCETxnSettings", ptr %120, i32 0, i32 6
  %122 = getelementptr inbounds %"class.TPCE::CParametersWithDefaults.25", ptr %121, i32 0, i32 4
  %123 = getelementptr inbounds %"struct.TPCE::TTradeUpdateSettings", ptr %122, i32 0, i32 6
  %124 = load i32, ptr %123, align 8, !tbaa !57
  %125 = load ptr, ptr %4, align 8, !tbaa !5
  %126 = getelementptr inbounds %"struct.TPCE::TTradeUpdateTxnInput", ptr %125, i32 0, i32 4
  store i32 %124, ptr %126, align 4, !tbaa !43
  %127 = getelementptr inbounds %"class.TPCE::CCETxnInputGenerator", ptr %10, i32 0, i32 12
  %128 = load ptr, ptr %127, align 8, !tbaa !11
  %129 = getelementptr inbounds %"struct.TPCE::TDriverCETxnSettings", ptr %128, i32 0, i32 6
  %130 = getelementptr inbounds %"class.TPCE::CParametersWithDefaults.25", ptr %129, i32 0, i32 4
  %131 = getelementptr inbounds %"struct.TPCE::TTradeUpdateSettings", ptr %130, i32 0, i32 7
  %132 = load i32, ptr %131, align 4, !tbaa !58
  %133 = load ptr, ptr %4, align 8, !tbaa !5
  %134 = getelementptr inbounds %"struct.TPCE::TTradeUpdateTxnInput", ptr %133, i32 0, i32 5
  store i32 %132, ptr %134, align 8, !tbaa !45
  %135 = call noundef i64 @_ZN4TPCE20CCETxnInputGenerator31GenerateRandomCustomerAccountIdEv(ptr noundef nonnull align 8 dereferenceable(4032) %10)
  %136 = load ptr, ptr %4, align 8, !tbaa !5
  %137 = getelementptr inbounds %"struct.TPCE::TTradeUpdateTxnInput", ptr %136, i32 0, i32 1
  store i64 %135, ptr %137, align 8, !tbaa !54
  %138 = load ptr, ptr %4, align 8, !tbaa !5
  %139 = getelementptr inbounds %"struct.TPCE::TTradeUpdateTxnInput", ptr %138, i32 0, i32 7
  %140 = getelementptr inbounds %"class.TPCE::CCETxnInputGenerator", ptr %10, i32 0, i32 25
  %141 = load i64, ptr %140, align 8, !tbaa !59
  call void @_ZN4TPCE20CCETxnInputGenerator26GenerateNonUniformTradeDTSERNS_19tagTIMESTAMP_STRUCTExii(ptr noundef nonnull align 8 dereferenceable(4032) %10, ptr noundef nonnull align 4 dereferenceable(16) %139, i64 noundef %141, i32 noundef 4095, i32 noundef 16)
  %142 = getelementptr inbounds %"class.TPCE::CCETxnInputGenerator", ptr %10, i32 0, i32 33
  %143 = load ptr, ptr %4, align 8, !tbaa !5
  %144 = getelementptr inbounds %"struct.TPCE::TTradeUpdateTxnInput", ptr %143, i32 0, i32 6
  call void @_ZN4TPCE9CDateTime12GetTimeStampEPNS_19tagTIMESTAMP_STRUCTE(ptr noundef nonnull align 8 dereferenceable(16) %142, ptr noundef %144)
  %145 = load ptr, ptr %4, align 8, !tbaa !5
  %146 = getelementptr inbounds %"struct.TPCE::TTradeUpdateTxnInput", ptr %145, i32 0, i32 2
  store i64 0, ptr %146, align 8, !tbaa !55
  %147 = load ptr, ptr %4, align 8, !tbaa !5
  %148 = getelementptr inbounds %"struct.TPCE::TTradeUpdateTxnInput", ptr %147, i32 0, i32 8
  %149 = getelementptr inbounds [16 x i8], ptr %148, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 4 %149, i8 0, i64 16, i1 false)
  %150 = load ptr, ptr %4, align 8, !tbaa !5
  %151 = getelementptr inbounds %"struct.TPCE::TTradeUpdateTxnInput", ptr %150, i32 0, i32 0
  %152 = getelementptr inbounds [20 x i64], ptr %151, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 8 %152, i8 0, i64 160, i1 false)
  br label %200

153:                                              ; preds = %100
  %154 = load ptr, ptr %4, align 8, !tbaa !5
  %155 = getelementptr inbounds %"struct.TPCE::TTradeUpdateTxnInput", ptr %154, i32 0, i32 3
  store i32 3, ptr %155, align 8, !tbaa !38
  %156 = getelementptr inbounds %"class.TPCE::CCETxnInputGenerator", ptr %10, i32 0, i32 12
  %157 = load ptr, ptr %156, align 8, !tbaa !11
  %158 = getelementptr inbounds %"struct.TPCE::TDriverCETxnSettings", ptr %157, i32 0, i32 6
  %159 = getelementptr inbounds %"class.TPCE::CParametersWithDefaults.25", ptr %158, i32 0, i32 4
  %160 = getelementptr inbounds %"struct.TPCE::TTradeUpdateSettings", ptr %159, i32 0, i32 9
  %161 = load i32, ptr %160, align 4, !tbaa !60
  %162 = load ptr, ptr %4, align 8, !tbaa !5
  %163 = getelementptr inbounds %"struct.TPCE::TTradeUpdateTxnInput", ptr %162, i32 0, i32 4
  store i32 %161, ptr %163, align 4, !tbaa !43
  %164 = getelementptr inbounds %"class.TPCE::CCETxnInputGenerator", ptr %10, i32 0, i32 12
  %165 = load ptr, ptr %164, align 8, !tbaa !11
  %166 = getelementptr inbounds %"struct.TPCE::TDriverCETxnSettings", ptr %165, i32 0, i32 6
  %167 = getelementptr inbounds %"class.TPCE::CParametersWithDefaults.25", ptr %166, i32 0, i32 4
  %168 = getelementptr inbounds %"struct.TPCE::TTradeUpdateSettings", ptr %167, i32 0, i32 10
  %169 = load i32, ptr %168, align 8, !tbaa !61
  %170 = load ptr, ptr %4, align 8, !tbaa !5
  %171 = getelementptr inbounds %"struct.TPCE::TTradeUpdateTxnInput", ptr %170, i32 0, i32 5
  store i32 %169, ptr %171, align 8, !tbaa !45
  %172 = getelementptr inbounds %"class.TPCE::CCETxnInputGenerator", ptr %10, i32 0, i32 7
  %173 = load ptr, ptr %172, align 8, !tbaa !62
  %174 = getelementptr inbounds %"class.TPCE::CCETxnInputGenerator", ptr %10, i32 0, i32 0
  %175 = getelementptr inbounds %"class.TPCE::CCETxnInputGenerator", ptr %10, i32 0, i32 27
  %176 = load i64, ptr %175, align 8, !tbaa !63
  %177 = sub nsw i64 %176, 1
  %178 = call noundef i64 @_ZN4TPCE7CRandom5NURndExxii(ptr noundef nonnull align 8 dereferenceable(8) %174, i64 noundef 0, i64 noundef %177, i32 noundef 0, i32 noundef 0)
  %179 = load ptr, ptr %4, align 8, !tbaa !5
  %180 = getelementptr inbounds %"struct.TPCE::TTradeUpdateTxnInput", ptr %179, i32 0, i32 8
  %181 = getelementptr inbounds [16 x i8], ptr %180, i64 0, i64 0
  call void @_ZN4TPCE13CSecurityFile12CreateSymbolExPcm(ptr noundef nonnull align 8 dereferenceable(161) %173, i64 noundef %178, ptr noundef %181, i64 noundef 16)
  %182 = load ptr, ptr %4, align 8, !tbaa !5
  %183 = getelementptr inbounds %"struct.TPCE::TTradeUpdateTxnInput", ptr %182, i32 0, i32 7
  %184 = getelementptr inbounds %"class.TPCE::CCETxnInputGenerator", ptr %10, i32 0, i32 26
  %185 = load i64, ptr %184, align 8, !tbaa !64
  call void @_ZN4TPCE20CCETxnInputGenerator26GenerateNonUniformTradeDTSERNS_19tagTIMESTAMP_STRUCTExii(ptr noundef nonnull align 8 dereferenceable(4032) %10, ptr noundef nonnull align 4 dereferenceable(16) %183, i64 noundef %185, i32 noundef 4095, i32 noundef 16)
  %186 = getelementptr inbounds %"class.TPCE::CCETxnInputGenerator", ptr %10, i32 0, i32 33
  %187 = load ptr, ptr %4, align 8, !tbaa !5
  %188 = getelementptr inbounds %"struct.TPCE::TTradeUpdateTxnInput", ptr %187, i32 0, i32 6
  call void @_ZN4TPCE9CDateTime12GetTimeStampEPNS_19tagTIMESTAMP_STRUCTE(ptr noundef nonnull align 8 dereferenceable(16) %186, ptr noundef %188)
  %189 = getelementptr inbounds %"class.TPCE::CCETxnInputGenerator", ptr %10, i32 0, i32 3
  %190 = getelementptr inbounds %"class.TPCE::CCETxnInputGenerator", ptr %10, i32 0, i32 15
  %191 = load i64, ptr %190, align 8, !tbaa !65
  %192 = call noundef i64 @_ZN4TPCE36CCustomerAccountsAndPermissionsTable14GetEndingCA_IDEx(ptr noundef nonnull align 8 dereferenceable(1616) %189, i64 noundef %191)
  %193 = load ptr, ptr %4, align 8, !tbaa !5
  %194 = getelementptr inbounds %"struct.TPCE::TTradeUpdateTxnInput", ptr %193, i32 0, i32 2
  store i64 %192, ptr %194, align 8, !tbaa !55
  %195 = load ptr, ptr %4, align 8, !tbaa !5
  %196 = getelementptr inbounds %"struct.TPCE::TTradeUpdateTxnInput", ptr %195, i32 0, i32 1
  store i64 0, ptr %196, align 8, !tbaa !54
  %197 = load ptr, ptr %4, align 8, !tbaa !5
  %198 = getelementptr inbounds %"struct.TPCE::TTradeUpdateTxnInput", ptr %197, i32 0, i32 0
  %199 = getelementptr inbounds [20 x i64], ptr %198, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 8 %199, i8 0, i64 160, i1 false)
  br label %200

200:                                              ; preds = %153, %116
  br label %201

201:                                              ; preds = %200, %88
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  ret void
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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 = !{!"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 64}
!35 = !{!"_ZTSN4TPCE23CParametersWithDefaultsINS_20TTradeUpdateSettingsENS_25TTradeUpdateSettingsStateEEE", !36, i64 8, !37, i64 52, !36, i64 64}
!36 = !{!"_ZTSN4TPCE20TTradeUpdateSettingsE", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40}
!37 = !{!"_ZTSN4TPCE25TTradeUpdateSettingsStateE", !16, i64 0, !16, i64 1, !16, i64 2, !16, i64 3, !16, i64 4, !16, i64 5, !16, i64 6, !16, i64 7, !16, i64 8, !16, i64 9, !16, i64 10}
!38 = !{!39, !10, i64 176}
!39 = !{!"_ZTSN4TPCE20TTradeUpdateTxnInputE", !7, i64 0, !14, i64 160, !14, i64 168, !10, i64 176, !10, i64 180, !10, i64 184, !40, i64 188, !40, i64 204, !7, i64 220}
!40 = !{!"_ZTSN4TPCE19tagTIMESTAMP_STRUCTE", !41, i64 0, !41, i64 2, !41, i64 4, !41, i64 6, !41, i64 8, !41, i64 10, !10, i64 12}
!41 = !{!"short", !7, i64 0}
!42 = !{!35, !10, i64 76}
!43 = !{!39, !10, i64 180}
!44 = !{!35, !10, i64 80}
!45 = !{!39, !10, i64 184}
!46 = !{!16, !16, i64 0}
!47 = !{i8 0, i8 2}
!48 = !{}
!49 = !{!14, !14, i64 0}
!50 = distinct !{!50, !51}
!51 = !{!"llvm.loop.mustprogress"}
!52 = distinct !{!52, !51}
!53 = distinct !{!53, !51}
!54 = !{!39, !14, i64 160}
!55 = !{!39, !14, i64 168}
!56 = !{!35, !10, i64 68}
!57 = !{!35, !10, i64 88}
!58 = !{!35, !10, i64 92}
!59 = !{!12, !14, i64 3944}
!60 = !{!35, !10, i64 100}
!61 = !{!35, !10, i64 104}
!62 = !{!12, !6, i64 3808}
!63 = !{!12, !14, i64 3960}
!64 = !{!12, !14, i64 3952}
!65 = !{!12, !14, i64 3872}


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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZN4TPCE7CRandom28RndGenerateIntegerPercentageEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 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 #0 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4TPCE20CCETxnInputGenerator24GenerateTradeUpdateInputERNS_20TTradeUpdateTxnInputE(ptr noundef nonnull align 8 dereferenceable(4032) %0, ptr noundef nonnull align 8 dereferenceable(240) %1) local_unnamed_addr #0 align 2 {
  %3 = tail call noundef i32 @_ZN4TPCE7CRandom28RndGenerateIntegerPercentageEv(ptr noundef nonnull align 8 dereferenceable(8) %0)
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(240) %1, i8 8, i64 240, i1 false)
  %4 = getelementptr inbounds i8, ptr %0, i64 3848
  %5 = load ptr, ptr %4, align 8, !tbaa !5
  %6 = getelementptr inbounds i8, ptr %5, i64 408
  %7 = load i32, ptr %6, align 8, !tbaa !32
  %.not = icmp sgt i32 %3, %7
  br i1 %.not, label %29, label %8

8:                                                ; preds = %2
  %9 = getelementptr inbounds i8, ptr %1, i64 176
  store i32 1, ptr %9, align 8, !tbaa !36
  %10 = getelementptr inbounds i8, ptr %5, i64 420
  %11 = getelementptr inbounds i8, ptr %1, i64 180
  %12 = load <2 x i32>, ptr %10, align 4, !tbaa !40
  store <2 x i32> %12, ptr %11, align 4, !tbaa !40
  %13 = extractelement <2 x i32> %12, i64 0
  %14 = icmp sgt i32 %13, 0
  br i1 %14, label %.preheader, label %._crit_edge

.preheader:                                       ; preds = %8, %.split.us
  %indvars.iv61 = phi i64 [ %indvars.iv.next62, %.split.us ], [ 0, %8 ]
  %.not59 = icmp eq i64 %indvars.iv61, 0
  %15 = getelementptr inbounds [20 x i64], ptr %1, i64 0, i64 %indvars.iv61
  br i1 %.not59, label %.critedge.us54, label %.lr.ph.us

.lr.ph.us:                                        ; preds = %.preheader, %.critedge.us
  %16 = tail call noundef i64 @_ZN4TPCE20CCETxnInputGenerator25GenerateNonUniformTradeIDEii(ptr noundef nonnull align 8 dereferenceable(4032) %0, i32 noundef 65535, i32 noundef 7)
  br label %17

17:                                               ; preds = %.lr.ph.us, %20
  %indvars.iv = phi i64 [ 0, %.lr.ph.us ], [ %indvars.iv.next, %20 ]
  %18 = getelementptr inbounds [20 x i64], ptr %1, i64 0, i64 %indvars.iv
  %19 = load i64, ptr %18, align 8, !tbaa !41
  %.not49.us = icmp eq i64 %19, %16
  br i1 %.not49.us, label %.critedge.us, label %20

20:                                               ; preds = %17
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %indvars.iv61
  br i1 %exitcond.not, label %.critedge.us, label %17, !llvm.loop !42

.critedge.us:                                     ; preds = %17, %20
  %.045.lcssa.us.in = phi i64 [ %indvars.iv61, %20 ], [ %indvars.iv, %17 ]
  %21 = and i64 %.045.lcssa.us.in, 4294967295
  %22 = icmp eq i64 %21, %indvars.iv61
  br i1 %22, label %.split.us, label %.lr.ph.us

.critedge.us54:                                   ; preds = %.preheader
  %23 = tail call noundef i64 @_ZN4TPCE20CCETxnInputGenerator25GenerateNonUniformTradeIDEii(ptr noundef nonnull align 8 dereferenceable(4032) %0, i32 noundef 65535, i32 noundef 7)
  br label %.split.us

.split.us:                                        ; preds = %.critedge.us, %.critedge.us54
  %.lcssa.sink = phi i64 [ %23, %.critedge.us54 ], [ %16, %.critedge.us ]
  store i64 %.lcssa.sink, ptr %15, align 8, !tbaa !41
  %indvars.iv.next62 = add nuw nsw i64 %indvars.iv61, 1
  %24 = load i32, ptr %11, align 4, !tbaa !44
  %25 = sext i32 %24 to i64
  %26 = icmp slt i64 %indvars.iv.next62, %25
  br i1 %26, label %.preheader, label %._crit_edge, !llvm.loop !45

._crit_edge:                                      ; preds = %.split.us, %8
  %27 = getelementptr inbounds i8, ptr %1, i64 160
  %28 = getelementptr inbounds i8, ptr %1, i64 188
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %27, i8 0, i64 16, i1 false)
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(48) %28, i8 0, i64 48, i1 false)
  br label %67

29:                                               ; preds = %2
  %30 = getelementptr inbounds i8, ptr %5, i64 412
  %31 = load i32, ptr %30, align 4, !tbaa !46
  %32 = add nsw i32 %31, %7
  %.not48 = icmp sgt i32 %3, %32
  %33 = getelementptr inbounds i8, ptr %1, i64 176
  %34 = getelementptr inbounds i8, ptr %1, i64 180
  br i1 %.not48, label %47, label %35

35:                                               ; preds = %29
  store i32 2, ptr %33, align 8, !tbaa !36
  %36 = getelementptr inbounds i8, ptr %5, i64 432
  %37 = load <2 x i32>, ptr %36, align 8, !tbaa !40
  store <2 x i32> %37, ptr %34, align 4, !tbaa !40
  %38 = tail call noundef i64 @_ZN4TPCE20CCETxnInputGenerator31GenerateRandomCustomerAccountIdEv(ptr noundef nonnull align 8 dereferenceable(4032) %0)
  %39 = getelementptr inbounds i8, ptr %1, i64 160
  store i64 %38, ptr %39, align 8, !tbaa !47
  %40 = getelementptr inbounds i8, ptr %1, i64 204
  %41 = getelementptr inbounds i8, ptr %0, i64 3944
  %42 = load i64, ptr %41, align 8, !tbaa !48
  tail call void @_ZN4TPCE20CCETxnInputGenerator26GenerateNonUniformTradeDTSERNS_19tagTIMESTAMP_STRUCTExii(ptr noundef nonnull align 8 dereferenceable(4032) %0, ptr noundef nonnull align 4 dereferenceable(16) %40, i64 noundef %42, i32 noundef 4095, i32 noundef 16)
  %43 = getelementptr inbounds i8, ptr %0, i64 4008
  %44 = getelementptr inbounds i8, ptr %1, i64 188
  tail call void @_ZN4TPCE9CDateTime12GetTimeStampEPNS_19tagTIMESTAMP_STRUCTE(ptr noundef nonnull align 8 dereferenceable(16) %43, ptr noundef nonnull %44)
  %45 = getelementptr inbounds i8, ptr %1, i64 168
  store i64 0, ptr %45, align 8, !tbaa !49
  %46 = getelementptr inbounds i8, ptr %1, i64 220
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(16) %46, i8 0, i64 16, i1 false)
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(160) %1, i8 0, i64 160, i1 false)
  br label %67

47:                                               ; preds = %29
  store i32 3, ptr %33, align 8, !tbaa !36
  %48 = getelementptr inbounds i8, ptr %5, i64 444
  %49 = load <2 x i32>, ptr %48, align 4, !tbaa !40
  store <2 x i32> %49, ptr %34, align 4, !tbaa !40
  %50 = getelementptr inbounds i8, ptr %0, i64 3808
  %51 = load ptr, ptr %50, align 8, !tbaa !50
  %52 = getelementptr inbounds i8, ptr %0, i64 3960
  %53 = load i64, ptr %52, align 8, !tbaa !51
  %54 = add nsw i64 %53, -1
  %55 = tail call noundef i64 @_ZN4TPCE7CRandom5NURndExxii(ptr noundef nonnull align 8 dereferenceable(8) %0, i64 noundef 0, i64 noundef %54, i32 noundef 0, i32 noundef 0)
  %56 = getelementptr inbounds i8, ptr %1, i64 220
  tail call void @_ZN4TPCE13CSecurityFile12CreateSymbolExPcm(ptr noundef nonnull align 8 dereferenceable(161) %51, i64 noundef %55, ptr noundef nonnull %56, i64 noundef 16)
  %57 = getelementptr inbounds i8, ptr %1, i64 204
  %58 = getelementptr inbounds i8, ptr %0, i64 3952
  %59 = load i64, ptr %58, align 8, !tbaa !52
  tail call void @_ZN4TPCE20CCETxnInputGenerator26GenerateNonUniformTradeDTSERNS_19tagTIMESTAMP_STRUCTExii(ptr noundef nonnull align 8 dereferenceable(4032) %0, ptr noundef nonnull align 4 dereferenceable(16) %57, i64 noundef %59, i32 noundef 4095, i32 noundef 16)
  %60 = getelementptr inbounds i8, ptr %0, i64 4008
  %61 = getelementptr inbounds i8, ptr %1, i64 188
  tail call void @_ZN4TPCE9CDateTime12GetTimeStampEPNS_19tagTIMESTAMP_STRUCTE(ptr noundef nonnull align 8 dereferenceable(16) %60, ptr noundef nonnull %61)
  %62 = getelementptr inbounds i8, ptr %0, i64 120
  %63 = getelementptr inbounds i8, ptr %0, i64 3872
  %64 = load i64, ptr %63, align 8, !tbaa !53
  %65 = tail call noundef i64 @_ZN4TPCE36CCustomerAccountsAndPermissionsTable14GetEndingCA_IDEx(ptr noundef nonnull align 8 dereferenceable(1616) %62, i64 noundef %64)
  %66 = getelementptr inbounds i8, ptr %1, i64 168
  store i64 %65, ptr %66, align 8, !tbaa !49
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(168) %1, i8 0, i64 168, i1 false)
  br label %67

67:                                               ; preds = %35, %47, %._crit_edge
  ret void
}

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

!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 64}
!33 = !{!"_ZTSN4TPCE23CParametersWithDefaultsINS_20TTradeUpdateSettingsENS_25TTradeUpdateSettingsStateEEE", !34, i64 8, !35, i64 52, !34, i64 64}
!34 = !{!"_ZTSN4TPCE20TTradeUpdateSettingsE", !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}
!35 = !{!"_ZTSN4TPCE25TTradeUpdateSettingsStateE", !13, i64 0, !13, i64 1, !13, i64 2, !13, i64 3, !13, i64 4, !13, i64 5, !13, i64 6, !13, i64 7, !13, i64 8, !13, i64 9, !13, i64 10}
!36 = !{!37, !14, i64 176}
!37 = !{!"_ZTSN4TPCE20TTradeUpdateTxnInputE", !9, i64 0, !8, i64 160, !8, i64 168, !14, i64 176, !14, i64 180, !14, i64 184, !38, i64 188, !38, i64 204, !9, i64 220}
!38 = !{!"_ZTSN4TPCE19tagTIMESTAMP_STRUCTE", !39, i64 0, !39, i64 2, !39, i64 4, !39, i64 6, !39, i64 8, !39, i64 10, !14, i64 12}
!39 = !{!"short", !9, i64 0}
!40 = !{!14, !14, i64 0}
!41 = !{!8, !8, i64 0}
!42 = distinct !{!42, !43}
!43 = !{!"llvm.loop.mustprogress"}
!44 = !{!37, !14, i64 180}
!45 = distinct !{!45, !43}
!46 = !{!33, !14, i64 68}
!47 = !{!37, !8, i64 160}
!48 = !{!6, !8, i64 3944}
!49 = !{!37, !8, i64 168}
!50 = !{!6, !12, i64 3808}
!51 = !{!6, !8, i64 3960}
!52 = !{!6, !8, i64 3952}
!53 = !{!6, !8, i64 3872}


; Effective O3 passes: AggressiveInstCombinePass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,MemCpyOptPass,ReassociatePass,SCCPPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass