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

; 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 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: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1

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

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) #3

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nobuiltin allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }
attributes #6 = { builtin allocsize(0) }

!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 0}
!19 = !{!"_ZTSN4TPCE21TTradeCleanupTxnInputE", !12, i64 0, !7, i64 8, !7, i64 13, !7, i64 18}
!20 = !{!21, !6, i64 1784}
!21 = !{!"_ZTSN4TPCE3CDME", !22, i64 0, !23, i64 64, !26, i64 88, !27, i64 96, !28, 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, !41, i64 1840, !19, i64 1928, !6, i64 1952, !6, i64 1960}
!22 = !{!"_ZTSN4TPCE21CDriverGlobalSettingsE", !10, i64 0}
!23 = !{!"_ZTSN4TPCE17CDriverDMSettingsE", !24, i64 0}
!24 = !{!"_ZTSN4TPCE26CParametersWithoutDefaultsINS_17TDriverDMSettingsEEE", !25, i64 8}
!25 = !{!"_ZTSN4TPCE17TDriverDMSettingsE", !13, i64 0, !12, i64 8}
!26 = !{!"_ZTSN4TPCE7CRandomE", !12, i64 0}
!27 = !{!"_ZTSN4TPCE18CCustomerSelectionE", !6, i64 0, !12, i64 8, !12, i64 16, !15, i64 24, !13, i64 28, !12, i64 32, !12, i64 40}
!28 = !{!"_ZTSN4TPCE36CCustomerAccountsAndPermissionsTableE", !29, i64 0, !6, i64 472, !6, i64 480, !12, i64 488, !12, i64 496, !12, i64 504, !13, i64 512, !13, i64 516, !33, i64 520, !37, i64 1016, !13, i64 1080, !12, i64 1088, !38, i64 1096, !13, i64 1512, !27, i64 1520, !15, i64 1568, !13, i64 1572, !12, i64 1576, !6, i64 1584, !13, i64 1592, !12, i64 1600, !6, i64 1608}
!29 = !{!"_ZTSN4TPCE13TableTemplateINS_35CUSTOMER_ACCOUNT_AND_PERMISSION_ROWEEE", !30, i64 8, !12, i64 448, !15, i64 456, !26, i64 464}
!30 = !{!"_ZTSN4TPCE35CUSTOMER_ACCOUNT_AND_PERMISSION_ROWE", !31, i64 0, !7, i64 88}
!31 = !{!"_ZTSN4TPCE20CUSTOMER_ACCOUNT_ROWE", !12, i64 0, !12, i64 8, !12, i64 16, !7, i64 24, !7, i64 75, !32, i64 80}
!32 = !{!"double", !7, i64 0}
!33 = !{!"_ZTSN4TPCE14CCustomerTableE", !34, i64 0, !12, i64 328, !37, i64 336, !6, i64 400, !12, i64 408, !12, i64 416, !12, i64 424, !13, i64 432, !6, i64 440, !27, i64 448}
!34 = !{!"_ZTSN4TPCE13TableTemplateINS_12CUSTOMER_ROWEEE", !35, i64 8, !12, i64 304, !15, i64 312, !26, i64 320}
!35 = !{!"_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, !36, 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}
!36 = !{!"_ZTSN4TPCE9CDateTimeE", !13, i64 0, !13, i64 4, !6, i64 8}
!37 = !{!"_ZTSN4TPCE7CPersonE", !6, i64 0, !6, i64 8, !6, i64 16, !26, i64 24, !15, i64 32, !13, i64 36, !12, i64 40, !6, i64 48, !6, i64 56}
!38 = !{!"_ZTSN4TPCE13CAddressTableE", !39, i64 0, !36, 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}
!39 = !{!"_ZTSN4TPCE13TableTemplateINS_11ADDRESS_ROWEEE", !40, i64 8, !12, i64 272, !15, i64 280, !26, i64 288}
!40 = !{!"_ZTSN4TPCE11ADDRESS_ROWE", !12, i64 0, !7, i64 8, !7, i64 89, !7, i64 170, !7, i64 183}
!41 = !{!"_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}


; 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: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) local_unnamed_addr #2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef nonnull ptr @_ZN4TPCE3CDM13createTCInputEv(ptr nocapture noundef nonnull readonly align 8 dereferenceable(1968) %0) local_unnamed_addr #3 align 2 {
  %2 = tail call noalias noundef nonnull dereferenceable(24) ptr @_Znwm(i64 noundef 24) #4
  %3 = getelementptr inbounds i8, ptr %0, i64 60
  %4 = getelementptr inbounds i8, ptr %2, i64 8
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %4, i8 0, i64 16, i1 false)
  %5 = load i32, ptr %3, 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 %2, i64 13
  %18 = getelementptr inbounds i8, ptr %0, i64 1784
  %19 = load ptr, ptr %18, align 8, !tbaa !18
  %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) #5
  %23 = getelementptr inbounds i8, ptr %2, i64 18
  %24 = load ptr, ptr %18, align 8, !tbaa !18
  %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) #5
  %28 = getelementptr inbounds i8, ptr %2, i64 8
  %29 = load ptr, ptr %18, align 8, !tbaa !18
  %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) #5
  ret ptr %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 = { nobuiltin allocsize(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 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 = { builtin allocsize(0) }
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, !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 0}
!17 = !{!"_ZTSN4TPCE21TTradeCleanupTxnInputE", !8, i64 0, !9, i64 8, !9, i64 13, !9, i64 18}
!18 = !{!19, !26, i64 1784}
!19 = !{!"_ZTSN4TPCE3CDME", !20, i64 0, !21, i64 64, !24, i64 88, !25, i64 96, !27, i64 144, !26, i64 1760, !26, i64 1768, !26, i64 1776, !26, i64 1784, !8, i64 1792, !8, i64 1800, !8, i64 1808, !11, i64 1816, !8, i64 1824, !11, i64 1832, !40, i64 1840, !17, i64 1928, !26, i64 1952, !26, i64 1960}
!20 = !{!"_ZTSN4TPCE21CDriverGlobalSettingsE", !6, i64 0}
!21 = !{!"_ZTSN4TPCE17CDriverDMSettingsE", !22, i64 0}
!22 = !{!"_ZTSN4TPCE26CParametersWithoutDefaultsINS_17TDriverDMSettingsEEE", !23, i64 8}
!23 = !{!"_ZTSN4TPCE17TDriverDMSettingsE", !11, i64 0, !8, i64 8}
!24 = !{!"_ZTSN4TPCE7CRandomE", !8, i64 0}
!25 = !{!"_ZTSN4TPCE18CCustomerSelectionE", !26, i64 0, !8, i64 8, !8, i64 16, !13, i64 24, !11, i64 28, !8, i64 32, !8, i64 40}
!26 = !{!"any pointer", !9, i64 0}
!27 = !{!"_ZTSN4TPCE36CCustomerAccountsAndPermissionsTableE", !28, i64 0, !26, i64 472, !26, i64 480, !8, i64 488, !8, i64 496, !8, i64 504, !11, i64 512, !11, i64 516, !32, i64 520, !36, i64 1016, !11, i64 1080, !8, i64 1088, !37, i64 1096, !11, i64 1512, !25, i64 1520, !13, i64 1568, !11, i64 1572, !8, i64 1576, !26, i64 1584, !11, i64 1592, !8, i64 1600, !26, i64 1608}
!28 = !{!"_ZTSN4TPCE13TableTemplateINS_35CUSTOMER_ACCOUNT_AND_PERMISSION_ROWEEE", !29, i64 8, !8, i64 448, !13, i64 456, !24, i64 464}
!29 = !{!"_ZTSN4TPCE35CUSTOMER_ACCOUNT_AND_PERMISSION_ROWE", !30, i64 0, !9, i64 88}
!30 = !{!"_ZTSN4TPCE20CUSTOMER_ACCOUNT_ROWE", !8, i64 0, !8, i64 8, !8, i64 16, !9, i64 24, !9, i64 75, !31, i64 80}
!31 = !{!"double", !9, i64 0}
!32 = !{!"_ZTSN4TPCE14CCustomerTableE", !33, i64 0, !8, i64 328, !36, i64 336, !26, i64 400, !8, i64 408, !8, i64 416, !8, i64 424, !11, i64 432, !26, i64 440, !25, i64 448}
!33 = !{!"_ZTSN4TPCE13TableTemplateINS_12CUSTOMER_ROWEEE", !34, i64 8, !8, i64 304, !13, i64 312, !24, i64 320}
!34 = !{!"_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, !35, 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}
!35 = !{!"_ZTSN4TPCE9CDateTimeE", !11, i64 0, !11, i64 4, !26, i64 8}
!36 = !{!"_ZTSN4TPCE7CPersonE", !26, i64 0, !26, i64 8, !26, i64 16, !24, i64 24, !13, i64 32, !11, i64 36, !8, i64 40, !26, i64 48, !26, i64 56}
!37 = !{!"_ZTSN4TPCE13CAddressTableE", !38, i64 0, !35, i64 296, !26, i64 312, !26, i64 320, !26, i64 328, !26, 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, !26, i64 408}
!38 = !{!"_ZTSN4TPCE13TableTemplateINS_11ADDRESS_ROWEEE", !39, i64 8, !8, i64 272, !13, i64 280, !24, i64 288}
!39 = !{!"_ZTSN4TPCE11ADDRESS_ROWE", !8, i64 0, !9, i64 8, !9, i64 89, !9, i64 170, !9, i64 183}
!40 = !{!"_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}


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