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

; 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::CCE" = type <{ %"class.TPCE::CDriverGlobalSettings", %"class.TPCE::CDriverCESettings", %"class.TPCE::CDriverCEPartitionSettings", %"struct.TPCE::TDriverCETxnSettings", ptr, ptr, %"class.TPCE::CCETxnMixGenerator", %"class.TPCE::CCETxnInputGenerator", %"struct.TPCE::TBrokerVolumeTxnInput", i8, %"struct.TPCE::TCustomerPositionTxnInput", %"struct.TPCE::TMarketWatchTxnInput", %"struct.TPCE::TSecurityDetailTxnInput", %"struct.TPCE::TTradeLookupTxnInput", %"struct.TPCE::TTradeOrderTxnInput", %"struct.TPCE::TTradeStatusTxnInput", %"struct.TPCE::TTradeUpdateTxnInput", i8, [7 x i8] }>
%"class.TPCE::CDriverGlobalSettings" = type { %"class.TPCE::CParametersWithDefaults" }
%"class.TPCE::CParametersWithDefaults" = type { ptr, %"struct.TPCE::TDriverGlobalSettings", %"struct.TPCE::TDriverGlobalSettingsState", %"struct.TPCE::TDriverGlobalSettings" }
%"struct.TPCE::TDriverGlobalSettingsState" = type { i8, i8, i8, i8 }
%"struct.TPCE::TDriverGlobalSettings" = type { i64, i64, i32, i32 }
%"class.TPCE::CDriverCESettings" = type { %"class.TPCE::CParametersWithoutDefaults" }
%"class.TPCE::CParametersWithoutDefaults" = type { ptr, %"struct.TPCE::TDriverCESettings" }
%"struct.TPCE::TDriverCESettings" = type { i32, i64, i64 }
%"class.TPCE::CDriverCEPartitionSettings" = type { %"class.TPCE::CParametersWithDefaults.0" }
%"class.TPCE::CParametersWithDefaults.0" = type { ptr, %"struct.TPCE::TDriverCEPartitionSettings", %"struct.TPCE::TDriverCEPartitionSettingsState", %"struct.TPCE::TDriverCEPartitionSettings" }
%"struct.TPCE::TDriverCEPartitionSettingsState" = type { i8 }
%"struct.TPCE::TDriverCEPartitionSettings" = type { i64, i64, i32 }
%"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.3", [4 x i8] }
%"class.TPCE::CParametersWithDefaults.base.3" = 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.5", [4 x i8] }
%"class.TPCE::CParametersWithDefaults.base.5" = 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.7", [4 x i8] }
%"class.TPCE::CParametersWithDefaults.base.7" = 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.9", [4 x i8] }
%"class.TPCE::CParametersWithDefaults.base.9" = 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.11", [4 x i8] }
%"class.TPCE::CParametersWithDefaults.base.11" = 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.13", [4 x i8] }
%"class.TPCE::CParametersWithDefaults.base.13" = 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.15", [4 x i8] }
%"class.TPCE::CParametersWithDefaults.base.15" = 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::CCETxnMixGenerator" = type { ptr, %"class.TPCE::CRandom", ptr, i32, i32, ptr }
%"class.TPCE::CRandom" = type { i64 }
%"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::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.16", i64, %"class.TPCE::CPerson", ptr, i64, i64, i64, i32, ptr, %"class.TPCE::CCustomerSelection" }
%"class.TPCE::TableTemplate.16" = 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.17", %"class.TPCE::CDateTime", ptr, ptr, ptr, ptr, i64, i64, i8, i8, i64, i32, i64, i8, i32, i64, ptr }
%"class.TPCE::TableTemplate.17" = 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.18", i64, i64, i64, %"class.TPCE::CPerson", ptr, ptr, ptr }
%"class.TPCE::TableTemplate.18" = 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::TBrokerVolumeTxnInput" = type { [40 x [50 x i8]], [31 x i8] }
%"struct.TPCE::TCustomerPositionTxnInput" = type { i64, i64, i8, [21 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::TSecurityDetailTxnInput" = type { i32, i8, %"struct.TPCE::tagTIMESTAMP_STRUCT", [16 x i8] }
%"struct.TPCE::TTradeLookupTxnInput" = type { [20 x i64], i64, i64, i32, i32, %"struct.TPCE::tagTIMESTAMP_STRUCT", %"struct.TPCE::tagTIMESTAMP_STRUCT", [16 x i8] }
%"struct.TPCE::TTradeOrderTxnInput" = type { double, i64, i32, i32, i32, i32, [61 x i8], [21 x i8], [26 x i8], [21 x i8], [7 x i8], [5 x i8], [5 x i8], [16 x i8], [4 x i8] }
%"struct.TPCE::TTradeStatusTxnInput" = type { i64 }
%"struct.TPCE::TTradeUpdateTxnInput" = type { [20 x i64], i64, i64, i32, i32, i32, %"struct.TPCE::tagTIMESTAMP_STRUCT", %"struct.TPCE::tagTIMESTAMP_STRUCT", [16 x i8] }

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4TPCE3CCE15AutoSetRNGSeedsEj(ptr noundef nonnull align 8 dereferenceable(7713) %0, i32 noundef %1) #0 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca %"class.TPCE::CDateTime", align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca %"class.TPCE::CDateTime", align 8
  %12 = alloca i64, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store i32 %1, ptr %4, align 4, !tbaa !9
  %13 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %5) #5
  call void @_ZN4TPCE9CDateTimeC1Ev(ptr noundef nonnull align 8 dereferenceable(16) %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
  invoke void @_ZN4TPCE9CDateTime6GetYMDEPiS1_S1_(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef %6, ptr noundef %7, ptr noundef %8)
          to label %14 unwind label %58

14:                                               ; preds = %2
  %15 = load i32, ptr %6, align 4, !tbaa !9
  %16 = srem i32 %15, 5
  %17 = load i32, ptr %6, align 4, !tbaa !9
  %18 = sub nsw i32 %17, %16
  store i32 %18, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #5
  %19 = load i32, ptr %6, align 4, !tbaa !9
  invoke void @_ZN4TPCE9CDateTimeC1Eiii(ptr noundef nonnull align 8 dereferenceable(16) %11, i32 noundef %19, i32 noundef 1, i32 noundef 1)
          to label %20 unwind label %62

20:                                               ; preds = %14
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %21 = invoke noundef i32 @_ZN4TPCE9CDateTime4MSecEv(ptr noundef nonnull align 8 dereferenceable(16) %5)
          to label %22 unwind label %66

22:                                               ; preds = %20
  %23 = udiv i32 %21, 100
  %24 = zext i32 %23 to i64
  store i64 %24, ptr %12, align 8, !tbaa !11
  %25 = load i64, ptr %12, align 8, !tbaa !11
  %26 = shl i64 %25, 11
  store i64 %26, ptr %12, align 8, !tbaa !11
  %27 = invoke noundef i32 @_ZN4TPCE9CDateTime5DayNoEv(ptr noundef nonnull align 8 dereferenceable(16) %5)
          to label %28 unwind label %66

28:                                               ; preds = %22
  %29 = zext i32 %27 to i64
  %30 = invoke noundef i32 @_ZN4TPCE9CDateTime5DayNoEv(ptr noundef nonnull align 8 dereferenceable(16) %11)
          to label %31 unwind label %66

31:                                               ; preds = %28
  %32 = zext i32 %30 to i64
  %33 = sub nsw i64 %29, %32
  %34 = load i64, ptr %12, align 8, !tbaa !11
  %35 = add i64 %34, %33
  store i64 %35, ptr %12, align 8, !tbaa !11
  %36 = load i64, ptr %12, align 8, !tbaa !11
  %37 = shl i64 %36, 33
  store i64 %37, ptr %12, align 8, !tbaa !11
  %38 = load i32, ptr %4, align 4, !tbaa !9
  %39 = zext i32 %38 to i64
  %40 = load i64, ptr %12, align 8, !tbaa !11
  %41 = add i64 %40, %39
  store i64 %41, ptr %12, align 8, !tbaa !11
  %42 = getelementptr inbounds %"class.TPCE::CCE", ptr %13, i32 0, i32 6
  %43 = load i64, ptr %12, align 8, !tbaa !11
  invoke void @_ZN4TPCE18CCETxnMixGenerator10SetRNGSeedEy(ptr noundef nonnull align 8 dereferenceable(40) %42, i64 noundef %43)
          to label %44 unwind label %66

44:                                               ; preds = %31
  %45 = load i64, ptr %12, align 8, !tbaa !11
  %46 = getelementptr inbounds %"class.TPCE::CCE", ptr %13, i32 0, i32 1
  %47 = getelementptr inbounds %"class.TPCE::CParametersWithoutDefaults", ptr %46, i32 0, i32 1
  %48 = getelementptr inbounds %"struct.TPCE::TDriverCESettings", ptr %47, i32 0, i32 1
  store i64 %45, ptr %48, align 8, !tbaa !13
  %49 = load i64, ptr %12, align 8, !tbaa !11
  %50 = or i64 %49, 4294967296
  store i64 %50, ptr %12, align 8, !tbaa !11
  %51 = getelementptr inbounds %"class.TPCE::CCE", ptr %13, i32 0, i32 7
  %52 = load i64, ptr %12, align 8, !tbaa !11
  invoke void @_ZN4TPCE20CCETxnInputGenerator10SetRNGSeedEy(ptr noundef nonnull align 8 dereferenceable(4032) %51, i64 noundef %52)
          to label %53 unwind label %66

53:                                               ; preds = %44
  %54 = load i64, ptr %12, align 8, !tbaa !11
  %55 = getelementptr inbounds %"class.TPCE::CCE", ptr %13, i32 0, i32 1
  %56 = getelementptr inbounds %"class.TPCE::CParametersWithoutDefaults", ptr %55, i32 0, i32 1
  %57 = getelementptr inbounds %"struct.TPCE::TDriverCESettings", ptr %56, i32 0, i32 2
  store i64 %54, ptr %57, align 8, !tbaa !16
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @_ZN4TPCE9CDateTimeD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #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 @_ZN4TPCE9CDateTimeD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %5) #5
  ret void

58:                                               ; preds = %2
  %59 = landingpad { ptr, i32 }
          cleanup
  %60 = extractvalue { ptr, i32 } %59, 0
  store ptr %60, ptr %9, align 8
  %61 = extractvalue { ptr, i32 } %59, 1
  store i32 %61, ptr %10, align 4
  br label %71

62:                                               ; preds = %14
  %63 = landingpad { ptr, i32 }
          cleanup
  %64 = extractvalue { ptr, i32 } %63, 0
  store ptr %64, ptr %9, align 8
  %65 = extractvalue { ptr, i32 } %63, 1
  store i32 %65, ptr %10, align 4
  br label %70

66:                                               ; preds = %44, %31, %28, %22, %20
  %67 = landingpad { ptr, i32 }
          cleanup
  %68 = extractvalue { ptr, i32 } %67, 0
  store ptr %68, ptr %9, align 8
  %69 = extractvalue { ptr, i32 } %67, 1
  store i32 %69, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @_ZN4TPCE9CDateTimeD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #5
  br label %70

70:                                               ; preds = %66, %62
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #5
  br label %71

71:                                               ; preds = %70, %58
  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 @_ZN4TPCE9CDateTimeD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %5) #5
  br label %72

72:                                               ; preds = %71
  %73 = load ptr, ptr %9, align 8
  %74 = load i32, ptr %10, align 4
  %75 = insertvalue { ptr, i32 } poison, ptr %73, 0
  %76 = insertvalue { ptr, i32 } %75, i32 %74, 1
  resume { ptr, i32 } %76
}

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

declare void @_ZN4TPCE9CDateTimeC1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #2

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

declare i32 @__gxx_personality_v0(...)

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

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

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

declare void @_ZN4TPCE18CCETxnMixGenerator10SetRNGSeedEy(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef) #2

declare void @_ZN4TPCE20CCETxnInputGenerator10SetRNGSeedEy(ptr noundef nonnull align 8 dereferenceable(4032), i64 noundef) #2

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

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

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 = { 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 nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #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, !12, i64 0}
!12 = !{!"long long", !7, i64 0}
!13 = !{!14, !12, i64 16}
!14 = !{!"_ZTSN4TPCE26CParametersWithoutDefaultsINS_17TDriverCESettingsEEE", !15, i64 8}
!15 = !{!"_ZTSN4TPCE17TDriverCESettingsE", !10, i64 0, !12, i64 8, !12, i64 16}
!16 = !{!14, !12, i64 24}


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

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

8:                                                ; preds = %2
  %9 = load i32, ptr %4, align 4, !tbaa !5
  %10 = srem i32 %9, 5
  %11 = sub nsw i32 %9, %10
  store i32 %11, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #5
  invoke void @_ZN4TPCE9CDateTimeC1Eiii(ptr noundef nonnull align 8 dereferenceable(16) %7, i32 noundef %11, i32 noundef 1, i32 noundef 1)
          to label %12 unwind label %35

12:                                               ; preds = %8
  %13 = call noundef i32 @_ZN4TPCE9CDateTime4MSecEv(ptr noundef nonnull align 8 dereferenceable(16) %3)
  %14 = udiv i32 %13, 100
  %15 = zext nneg i32 %14 to i64
  %16 = call noundef i32 @_ZN4TPCE9CDateTime5DayNoEv(ptr noundef nonnull align 8 dereferenceable(16) %3)
  %17 = zext i32 %16 to i64
  %18 = call noundef i32 @_ZN4TPCE9CDateTime5DayNoEv(ptr noundef nonnull align 8 dereferenceable(16) %7)
  %19 = zext i32 %18 to i64
  %20 = sub nsw i64 %17, %19
  %21 = shl i64 %15, 44
  %22 = shl i64 %20, 33
  %23 = add i64 %22, %21
  %24 = zext i32 %1 to i64
  %25 = or disjoint i64 %23, %24
  %26 = getelementptr inbounds i8, ptr %0, i64 744
  invoke void @_ZN4TPCE18CCETxnMixGenerator10SetRNGSeedEy(ptr noundef nonnull align 8 dereferenceable(40) %26, i64 noundef %25)
          to label %27 unwind label %37

27:                                               ; preds = %12
  %28 = getelementptr inbounds i8, ptr %0, i64 80
  store i64 %25, ptr %28, align 8, !tbaa !9
  %29 = or disjoint i64 %25, 4294967296
  %30 = getelementptr inbounds i8, ptr %0, i64 784
  invoke void @_ZN4TPCE20CCETxnInputGenerator10SetRNGSeedEy(ptr noundef nonnull align 8 dereferenceable(4032) %30, i64 noundef %29)
          to label %31 unwind label %37

31:                                               ; preds = %27
  %32 = getelementptr inbounds i8, ptr %0, i64 88
  store i64 %29, ptr %32, align 8, !tbaa !13
  call void @_ZN4TPCE9CDateTimeD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #5
  call void @_ZN4TPCE9CDateTimeD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %3) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #5
  ret void

33:                                               ; preds = %2
  %34 = landingpad { ptr, i32 }
          cleanup
  br label %40

35:                                               ; preds = %8
  %36 = landingpad { ptr, i32 }
          cleanup
  br label %39

37:                                               ; preds = %27, %12
  %38 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4TPCE9CDateTimeD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #5
  br label %39

39:                                               ; preds = %37, %35
  %.pn = phi { ptr, i32 } [ %38, %37 ], [ %36, %35 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #5
  br label %40

40:                                               ; preds = %39, %33
  %.pn.pn = phi { ptr, i32 } [ %.pn, %39 ], [ %34, %33 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #5
  call void @_ZN4TPCE9CDateTimeD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %3) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #5
  resume { ptr, i32 } %.pn.pn
}

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

declare void @_ZN4TPCE9CDateTimeC1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #2

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

declare i32 @__gxx_personality_v0(...)

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

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

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

declare void @_ZN4TPCE18CCETxnMixGenerator10SetRNGSeedEy(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef) local_unnamed_addr #2

declare void @_ZN4TPCE20CCETxnInputGenerator10SetRNGSeedEy(ptr noundef nonnull align 8 dereferenceable(4032), i64 noundef) local_unnamed_addr #2

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

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress 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 nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !12, i64 16}
!10 = !{!"_ZTSN4TPCE26CParametersWithoutDefaultsINS_17TDriverCESettingsEEE", !11, i64 8}
!11 = !{!"_ZTSN4TPCE17TDriverCESettingsE", !6, i64 0, !12, i64 8, !12, i64 16}
!12 = !{!"long long", !7, i64 0}
!13 = !{!10, !12, i64 24}


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