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

; 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::CDM" = type { %"class.TPCE::CDriverGlobalSettings", %"class.TPCE::CDriverDMSettings", %"class.TPCE::CRandom", %"class.TPCE::CCustomerSelection", %"class.TPCE::CCustomerAccountsAndPermissionsTable", ptr, ptr, ptr, ptr, i64, i64, i64, i32, i64, i32, %"struct.TPCE::TDataMaintenanceTxnInput", %"struct.TPCE::TTradeCleanupTxnInput", ptr, ptr }
%"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::CDriverDMSettings" = type { %"class.TPCE::CParametersWithoutDefaults" }
%"class.TPCE::CParametersWithoutDefaults" = type { ptr, %"struct.TPCE::TDriverDMSettings" }
%"struct.TPCE::TDriverDMSettings" = type { i32, i64 }
%"class.TPCE::CRandom" = type { i64 }
%"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::CDateTime" = type { i32, i32, ptr }
%"class.TPCE::CPerson" = type { ptr, ptr, ptr, %"class.TPCE::CRandom", i8, i32, i64, ptr, ptr }
%"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] }
%"struct.TPCE::TDataMaintenanceTxnInput" = type { i64, i64, i64, i32, i32, [16 x i8], [31 x i8], [5 x i8] }
%"struct.TPCE::TTradeCleanupTxnInput" = type { i64, [5 x i8], [5 x i8], [5 x i8] }
%"struct.TPCE::STATUS_TYPE_ROW" = type { %"struct.TPCE::TBaseInputRow", [5 x i8], [11 x i8] }
%"struct.TPCE::TBaseInputRow" = type { ptr }

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4TPCE3CDM12DoCleanupTxnEv(ptr noundef nonnull align 8 dereferenceable(1968) %0) #2 align 2 {
  %2 = alloca ptr, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %3 = load ptr, ptr %2, align 8
  %4 = getelementptr inbounds %"class.TPCE::CDM", ptr %3, i32 0, i32 16
  call void @llvm.memset.p0.i64(ptr align 8 %4, i8 0, i64 24, i1 false)
  %5 = getelementptr inbounds %"class.TPCE::CDM", ptr %3, i32 0, i32 0
  %6 = getelementptr inbounds %"class.TPCE::CParametersWithDefaults", ptr %5, i32 0, i32 3
  %7 = getelementptr inbounds %"struct.TPCE::TDriverGlobalSettings", ptr %6, i32 0, i32 3
  %8 = load i32, ptr %7, align 4, !tbaa !9
  %9 = sext i32 %8 to i64
  %10 = mul nsw i64 %9, 8
  %11 = mul nsw i64 %10, 3600
  %12 = getelementptr inbounds %"class.TPCE::CDM", ptr %3, i32 0, i32 0
  %13 = getelementptr inbounds %"class.TPCE::CParametersWithDefaults", ptr %12, i32 0, i32 3
  %14 = getelementptr inbounds %"struct.TPCE::TDriverGlobalSettings", ptr %13, i32 0, i32 1
  %15 = load i64, ptr %14, align 8, !tbaa !16
  %16 = getelementptr inbounds %"class.TPCE::CDM", ptr %3, i32 0, i32 0
  %17 = getelementptr inbounds %"class.TPCE::CParametersWithDefaults", ptr %16, i32 0, i32 3
  %18 = getelementptr inbounds %"struct.TPCE::TDriverGlobalSettings", ptr %17, i32 0, i32 2
  %19 = load i32, ptr %18, align 8, !tbaa !17
  %20 = sext i32 %19 to i64
  %21 = sdiv i64 %15, %20
  %22 = mul nsw i64 %11, %21
  %23 = mul nsw i64 %22, 101
  %24 = sdiv i64 %23, 100
  %25 = add nsw i64 %24, 1
  %26 = add nsw i64 %25, 200000000000000
  %27 = getelementptr inbounds %"class.TPCE::CDM", ptr %3, i32 0, i32 16
  %28 = getelementptr inbounds %"struct.TPCE::TTradeCleanupTxnInput", ptr %27, i32 0, i32 0
  store i64 %26, ptr %28, align 8, !tbaa !18
  %29 = getelementptr inbounds %"class.TPCE::CDM", ptr %3, i32 0, i32 16
  %30 = getelementptr inbounds %"struct.TPCE::TTradeCleanupTxnInput", ptr %29, i32 0, i32 2
  %31 = getelementptr inbounds [5 x i8], ptr %30, i64 0, i64 0
  %32 = getelementptr inbounds %"class.TPCE::CDM", ptr %3, i32 0, i32 8
  %33 = load ptr, ptr %32, align 8, !tbaa !41
  %34 = call noundef ptr @_ZN4TPCE9CFlatFileINS_15STATUS_TYPE_ROWENS_17TStatusTypeLimitsEE9GetRecordEi(ptr noundef nonnull align 8 dereferenceable(40) %33, i32 noundef 3)
  %35 = getelementptr inbounds %"struct.TPCE::STATUS_TYPE_ROW", ptr %34, i32 0, i32 1
  %36 = getelementptr inbounds [5 x i8], ptr %35, i64 0, i64 0
  %37 = call ptr @strncpy(ptr noundef %31, ptr noundef %36, i64 noundef 5) #3
  %38 = getelementptr inbounds %"class.TPCE::CDM", ptr %3, i32 0, i32 16
  %39 = getelementptr inbounds %"struct.TPCE::TTradeCleanupTxnInput", ptr %38, i32 0, i32 3
  %40 = getelementptr inbounds [5 x i8], ptr %39, i64 0, i64 0
  %41 = getelementptr inbounds %"class.TPCE::CDM", ptr %3, i32 0, i32 8
  %42 = load ptr, ptr %41, align 8, !tbaa !41
  %43 = call noundef ptr @_ZN4TPCE9CFlatFileINS_15STATUS_TYPE_ROWENS_17TStatusTypeLimitsEE9GetRecordEi(ptr noundef nonnull align 8 dereferenceable(40) %42, i32 noundef 2)
  %44 = getelementptr inbounds %"struct.TPCE::STATUS_TYPE_ROW", ptr %43, i32 0, i32 1
  %45 = getelementptr inbounds [5 x i8], ptr %44, i64 0, i64 0
  %46 = call ptr @strncpy(ptr noundef %40, ptr noundef %45, i64 noundef 5) #3
  %47 = getelementptr inbounds %"class.TPCE::CDM", ptr %3, i32 0, i32 16
  %48 = getelementptr inbounds %"struct.TPCE::TTradeCleanupTxnInput", ptr %47, i32 0, i32 1
  %49 = getelementptr inbounds [5 x i8], ptr %48, i64 0, i64 0
  %50 = getelementptr inbounds %"class.TPCE::CDM", ptr %3, i32 0, i32 8
  %51 = load ptr, ptr %50, align 8, !tbaa !41
  %52 = call noundef ptr @_ZN4TPCE9CFlatFileINS_15STATUS_TYPE_ROWENS_17TStatusTypeLimitsEE9GetRecordEi(ptr noundef nonnull align 8 dereferenceable(40) %51, i32 noundef 4)
  %53 = getelementptr inbounds %"struct.TPCE::STATUS_TYPE_ROW", ptr %52, i32 0, i32 1
  %54 = getelementptr inbounds [5 x i8], ptr %53, i64 0, i64 0
  %55 = call ptr @strncpy(ptr noundef %49, ptr noundef %54, i64 noundef 5) #3
  %56 = getelementptr inbounds %"class.TPCE::CDM", ptr %3, i32 0, i32 17
  %57 = load ptr, ptr %56, align 8, !tbaa !42
  %58 = getelementptr inbounds %"class.TPCE::CDM", ptr %3, i32 0, i32 16
  %59 = load ptr, ptr %57, align 8, !tbaa !43
  %60 = getelementptr inbounds ptr, ptr %59, i64 3
  %61 = load ptr, ptr %60, align 8
  %62 = call noundef zeroext i1 %61(ptr noundef nonnull align 8 dereferenceable(8) %57, ptr noundef %58)
  ret void
}

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

attributes #0 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #1 = { 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 #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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, !13, i64 60}
!10 = !{!"_ZTSN4TPCE23CParametersWithDefaultsINS_21TDriverGlobalSettingsENS_26TDriverGlobalSettingsStateEEE", !11, i64 8, !14, i64 32, !11, i64 40}
!11 = !{!"_ZTSN4TPCE21TDriverGlobalSettingsE", !12, i64 0, !12, i64 8, !13, i64 16, !13, i64 20}
!12 = !{!"long long", !7, i64 0}
!13 = !{!"int", !7, i64 0}
!14 = !{!"_ZTSN4TPCE26TDriverGlobalSettingsStateE", !15, i64 0, !15, i64 1, !15, i64 2, !15, i64 3}
!15 = !{!"bool", !7, i64 0}
!16 = !{!10, !12, i64 48}
!17 = !{!10, !13, i64 56}
!18 = !{!19, !12, i64 1928}
!19 = !{!"_ZTSN4TPCE3CDME", !20, i64 0, !21, i64 64, !24, i64 88, !25, i64 96, !26, i64 144, !6, i64 1760, !6, i64 1768, !6, i64 1776, !6, i64 1784, !12, i64 1792, !12, i64 1800, !12, i64 1808, !13, i64 1816, !12, i64 1824, !13, i64 1832, !39, i64 1840, !40, i64 1928, !6, i64 1952, !6, i64 1960}
!20 = !{!"_ZTSN4TPCE21CDriverGlobalSettingsE", !10, i64 0}
!21 = !{!"_ZTSN4TPCE17CDriverDMSettingsE", !22, i64 0}
!22 = !{!"_ZTSN4TPCE26CParametersWithoutDefaultsINS_17TDriverDMSettingsEEE", !23, i64 8}
!23 = !{!"_ZTSN4TPCE17TDriverDMSettingsE", !13, i64 0, !12, i64 8}
!24 = !{!"_ZTSN4TPCE7CRandomE", !12, i64 0}
!25 = !{!"_ZTSN4TPCE18CCustomerSelectionE", !6, i64 0, !12, i64 8, !12, i64 16, !15, i64 24, !13, i64 28, !12, i64 32, !12, i64 40}
!26 = !{!"_ZTSN4TPCE36CCustomerAccountsAndPermissionsTableE", !27, i64 0, !6, i64 472, !6, i64 480, !12, i64 488, !12, i64 496, !12, i64 504, !13, i64 512, !13, i64 516, !31, i64 520, !35, i64 1016, !13, i64 1080, !12, i64 1088, !36, i64 1096, !13, i64 1512, !25, i64 1520, !15, i64 1568, !13, i64 1572, !12, i64 1576, !6, i64 1584, !13, i64 1592, !12, i64 1600, !6, i64 1608}
!27 = !{!"_ZTSN4TPCE13TableTemplateINS_35CUSTOMER_ACCOUNT_AND_PERMISSION_ROWEEE", !28, i64 8, !12, i64 448, !15, i64 456, !24, i64 464}
!28 = !{!"_ZTSN4TPCE35CUSTOMER_ACCOUNT_AND_PERMISSION_ROWE", !29, i64 0, !7, i64 88}
!29 = !{!"_ZTSN4TPCE20CUSTOMER_ACCOUNT_ROWE", !12, i64 0, !12, i64 8, !12, i64 16, !7, i64 24, !7, i64 75, !30, i64 80}
!30 = !{!"double", !7, i64 0}
!31 = !{!"_ZTSN4TPCE14CCustomerTableE", !32, i64 0, !12, i64 328, !35, i64 336, !6, i64 400, !12, i64 408, !12, i64 416, !12, i64 424, !13, i64 432, !6, i64 440, !25, i64 448}
!32 = !{!"_ZTSN4TPCE13TableTemplateINS_12CUSTOMER_ROWEEE", !33, i64 8, !12, i64 304, !15, i64 312, !24, i64 320}
!33 = !{!"_ZTSN4TPCE12CUSTOMER_ROWE", !12, i64 0, !7, i64 8, !7, i64 29, !7, i64 34, !7, i64 60, !7, i64 81, !7, i64 83, !7, i64 84, !34, i64 88, !12, i64 104, !7, i64 112, !7, i64 116, !7, i64 120, !7, i64 131, !7, i64 137, !7, i64 141, !7, i64 145, !7, i64 156, !7, i64 162, !7, i64 166, !7, i64 170, !7, i64 181, !7, i64 187, !7, i64 238}
!34 = !{!"_ZTSN4TPCE9CDateTimeE", !13, i64 0, !13, i64 4, !6, i64 8}
!35 = !{!"_ZTSN4TPCE7CPersonE", !6, i64 0, !6, i64 8, !6, i64 16, !24, i64 24, !15, i64 32, !13, i64 36, !12, i64 40, !6, i64 48, !6, i64 56}
!36 = !{!"_ZTSN4TPCE13CAddressTableE", !37, i64 0, !34, i64 296, !6, i64 312, !6, i64 320, !6, i64 328, !6, i64 336, !12, i64 344, !12, i64 352, !15, i64 360, !15, i64 361, !12, i64 368, !13, i64 376, !12, i64 384, !15, i64 392, !13, i64 396, !12, i64 400, !6, i64 408}
!37 = !{!"_ZTSN4TPCE13TableTemplateINS_11ADDRESS_ROWEEE", !38, i64 8, !12, i64 272, !15, i64 280, !24, i64 288}
!38 = !{!"_ZTSN4TPCE11ADDRESS_ROWE", !12, i64 0, !7, i64 8, !7, i64 89, !7, i64 170, !7, i64 183}
!39 = !{!"_ZTSN4TPCE24TDataMaintenanceTxnInputE", !12, i64 0, !12, i64 8, !12, i64 16, !13, i64 24, !13, i64 28, !7, i64 32, !7, i64 48, !7, i64 79}
!40 = !{!"_ZTSN4TPCE21TTradeCleanupTxnInputE", !12, i64 0, !7, i64 8, !7, i64 13, !7, i64 18}
!41 = !{!19, !6, i64 1784}
!42 = !{!19, !6, i64 1952}
!43 = !{!44, !44, i64 0}
!44 = !{!"vtable pointer", !8, 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"

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4TPCE3CDM12DoCleanupTxnEv(ptr noundef nonnull align 8 dereferenceable(1968) %0) local_unnamed_addr #2 align 2 {
  %2 = getelementptr inbounds i8, ptr %0, i64 1928
  %3 = getelementptr inbounds i8, ptr %0, i64 1936
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %3, i8 0, i64 16, i1 false)
  %4 = getelementptr inbounds i8, ptr %0, i64 60
  %5 = load i32, ptr %4, align 4, !tbaa !5
  %6 = sext i32 %5 to i64
  %7 = getelementptr inbounds i8, ptr %0, i64 48
  %8 = load i64, ptr %7, align 8, !tbaa !14
  %9 = getelementptr inbounds i8, ptr %0, i64 56
  %10 = load i32, ptr %9, align 8, !tbaa !15
  %11 = sext i32 %10 to i64
  %12 = sdiv i64 %8, %11
  %13 = mul nsw i64 %6, 2908800
  %14 = mul i64 %13, %12
  %15 = sdiv i64 %14, 100
  %16 = add nsw i64 %15, 200000000000001
  store i64 %16, ptr %2, align 8, !tbaa !16
  %17 = getelementptr inbounds i8, ptr %0, i64 1941
  %18 = getelementptr inbounds i8, ptr %0, i64 1784
  %19 = load ptr, ptr %18, align 8, !tbaa !40
  %20 = tail call noundef ptr @_ZN4TPCE9CFlatFileINS_15STATUS_TYPE_ROWENS_17TStatusTypeLimitsEE9GetRecordEi(ptr noundef nonnull align 8 dereferenceable(40) %19, i32 noundef 3)
  %21 = getelementptr inbounds i8, ptr %20, i64 8
  %22 = tail call ptr @strncpy(ptr noundef nonnull dereferenceable(1) %17, ptr noundef nonnull dereferenceable(1) %21, i64 noundef 5) #3
  %23 = getelementptr inbounds i8, ptr %0, i64 1946
  %24 = load ptr, ptr %18, align 8, !tbaa !40
  %25 = tail call noundef ptr @_ZN4TPCE9CFlatFileINS_15STATUS_TYPE_ROWENS_17TStatusTypeLimitsEE9GetRecordEi(ptr noundef nonnull align 8 dereferenceable(40) %24, i32 noundef 2)
  %26 = getelementptr inbounds i8, ptr %25, i64 8
  %27 = tail call ptr @strncpy(ptr noundef nonnull dereferenceable(1) %23, ptr noundef nonnull dereferenceable(1) %26, i64 noundef 5) #3
  %28 = getelementptr inbounds i8, ptr %0, i64 1936
  %29 = load ptr, ptr %18, align 8, !tbaa !40
  %30 = tail call noundef ptr @_ZN4TPCE9CFlatFileINS_15STATUS_TYPE_ROWENS_17TStatusTypeLimitsEE9GetRecordEi(ptr noundef nonnull align 8 dereferenceable(40) %29, i32 noundef 4)
  %31 = getelementptr inbounds i8, ptr %30, i64 8
  %32 = tail call ptr @strncpy(ptr noundef nonnull dereferenceable(1) %28, ptr noundef nonnull dereferenceable(1) %31, i64 noundef 5) #3
  %33 = getelementptr inbounds i8, ptr %0, i64 1952
  %34 = load ptr, ptr %33, align 8, !tbaa !41
  %35 = load ptr, ptr %34, align 8, !tbaa !42
  %36 = getelementptr inbounds i8, ptr %35, i64 24
  %37 = load ptr, ptr %36, align 8
  %38 = tail call noundef zeroext i1 %37(ptr noundef nonnull align 8 dereferenceable(8) %34, ptr noundef nonnull %2)
  ret void
}

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

attributes #0 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #1 = { 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 #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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, !11, i64 60}
!6 = !{!"_ZTSN4TPCE23CParametersWithDefaultsINS_21TDriverGlobalSettingsENS_26TDriverGlobalSettingsStateEEE", !7, i64 8, !12, i64 32, !7, i64 40}
!7 = !{!"_ZTSN4TPCE21TDriverGlobalSettingsE", !8, i64 0, !8, i64 8, !11, i64 16, !11, i64 20}
!8 = !{!"long long", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"int", !9, i64 0}
!12 = !{!"_ZTSN4TPCE26TDriverGlobalSettingsStateE", !13, i64 0, !13, i64 1, !13, i64 2, !13, i64 3}
!13 = !{!"bool", !9, i64 0}
!14 = !{!6, !8, i64 48}
!15 = !{!6, !11, i64 56}
!16 = !{!17, !8, i64 1928}
!17 = !{!"_ZTSN4TPCE3CDME", !18, i64 0, !19, i64 64, !22, i64 88, !23, i64 96, !25, i64 144, !24, i64 1760, !24, i64 1768, !24, i64 1776, !24, i64 1784, !8, i64 1792, !8, i64 1800, !8, i64 1808, !11, i64 1816, !8, i64 1824, !11, i64 1832, !38, i64 1840, !39, i64 1928, !24, i64 1952, !24, i64 1960}
!18 = !{!"_ZTSN4TPCE21CDriverGlobalSettingsE", !6, i64 0}
!19 = !{!"_ZTSN4TPCE17CDriverDMSettingsE", !20, i64 0}
!20 = !{!"_ZTSN4TPCE26CParametersWithoutDefaultsINS_17TDriverDMSettingsEEE", !21, i64 8}
!21 = !{!"_ZTSN4TPCE17TDriverDMSettingsE", !11, i64 0, !8, i64 8}
!22 = !{!"_ZTSN4TPCE7CRandomE", !8, i64 0}
!23 = !{!"_ZTSN4TPCE18CCustomerSelectionE", !24, i64 0, !8, i64 8, !8, i64 16, !13, i64 24, !11, i64 28, !8, i64 32, !8, i64 40}
!24 = !{!"any pointer", !9, i64 0}
!25 = !{!"_ZTSN4TPCE36CCustomerAccountsAndPermissionsTableE", !26, i64 0, !24, i64 472, !24, i64 480, !8, i64 488, !8, i64 496, !8, i64 504, !11, i64 512, !11, i64 516, !30, i64 520, !34, i64 1016, !11, i64 1080, !8, i64 1088, !35, i64 1096, !11, i64 1512, !23, i64 1520, !13, i64 1568, !11, i64 1572, !8, i64 1576, !24, i64 1584, !11, i64 1592, !8, i64 1600, !24, i64 1608}
!26 = !{!"_ZTSN4TPCE13TableTemplateINS_35CUSTOMER_ACCOUNT_AND_PERMISSION_ROWEEE", !27, i64 8, !8, i64 448, !13, i64 456, !22, i64 464}
!27 = !{!"_ZTSN4TPCE35CUSTOMER_ACCOUNT_AND_PERMISSION_ROWE", !28, i64 0, !9, i64 88}
!28 = !{!"_ZTSN4TPCE20CUSTOMER_ACCOUNT_ROWE", !8, i64 0, !8, i64 8, !8, i64 16, !9, i64 24, !9, i64 75, !29, i64 80}
!29 = !{!"double", !9, i64 0}
!30 = !{!"_ZTSN4TPCE14CCustomerTableE", !31, i64 0, !8, i64 328, !34, i64 336, !24, i64 400, !8, i64 408, !8, i64 416, !8, i64 424, !11, i64 432, !24, i64 440, !23, i64 448}
!31 = !{!"_ZTSN4TPCE13TableTemplateINS_12CUSTOMER_ROWEEE", !32, i64 8, !8, i64 304, !13, i64 312, !22, i64 320}
!32 = !{!"_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, !33, 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}
!33 = !{!"_ZTSN4TPCE9CDateTimeE", !11, i64 0, !11, i64 4, !24, i64 8}
!34 = !{!"_ZTSN4TPCE7CPersonE", !24, i64 0, !24, i64 8, !24, i64 16, !22, i64 24, !13, i64 32, !11, i64 36, !8, i64 40, !24, i64 48, !24, i64 56}
!35 = !{!"_ZTSN4TPCE13CAddressTableE", !36, i64 0, !33, i64 296, !24, i64 312, !24, i64 320, !24, i64 328, !24, i64 336, !8, i64 344, !8, i64 352, !13, i64 360, !13, i64 361, !8, i64 368, !11, i64 376, !8, i64 384, !13, i64 392, !11, i64 396, !8, i64 400, !24, i64 408}
!36 = !{!"_ZTSN4TPCE13TableTemplateINS_11ADDRESS_ROWEEE", !37, i64 8, !8, i64 272, !13, i64 280, !22, i64 288}
!37 = !{!"_ZTSN4TPCE11ADDRESS_ROWE", !8, i64 0, !9, i64 8, !9, i64 89, !9, i64 170, !9, i64 183}
!38 = !{!"_ZTSN4TPCE24TDataMaintenanceTxnInputE", !8, i64 0, !8, i64 8, !8, i64 16, !11, i64 24, !11, i64 28, !9, i64 32, !9, i64 48, !9, i64 79}
!39 = !{!"_ZTSN4TPCE21TTradeCleanupTxnInputE", !8, i64 0, !9, i64 8, !9, i64 13, !9, i64 18}
!40 = !{!17, !24, i64 1784}
!41 = !{!17, !24, i64 1952}
!42 = !{!43, !43, i64 0}
!43 = !{!"vtable pointer", !10, i64 0}


; Effective O3 passes: DSEPass,EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SROAPass,TailCallElimPass