; LLVM IR from mitdbg/deneva :: transport/message.ll (ZN22TPCCClientQueryMessage11copy_to_txnEP10TxnManager)

; 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.Array.2 = type { ptr, i64, i64 }
%class.TxnManager = type { ptr, ptr, ptr, i8, ptr, i32, i8, i32, i32, i8, i64, i64, i64, i64, ptr, ptr, ptr, i64, i8, i8, ptr, ptr, i64, i64, i64, %class.TxnStats, i32, i32, i32, i8, i32, %class.Array, i32, ptr, ptr, i32, %union.sem_t }
%class.TxnStats = type { i64, i64, i64, i64, i64, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, i64, i64, double, double, double, double, double, double, double, double }
%class.Array = type { ptr, i64, i64 }
%union.sem_t = type { i64, [24 x i8] }
%class.Message = type { ptr, i32, i64, i64, i64, i64, i64, i64, double, double, double, double, double, double, double }
%class.TPCCClientQueryMessage = type { %class.ClientQueryMessage, i64, i64, i64, i64, i64, i64, i64, [16 x i8], i64, i8, %class.Array.2, i8, i8, i64, i64 }
%class.ClientQueryMessage = type { %class.Message, i64, i64, i64, i64, %class.Array.0 }
%class.Array.0 = type { ptr, i64, i64 }
%class.TPCCQuery = type { %class.BaseQuery, i32, i64, i64, i64, i64, i64, i64, [16 x i8], double, i8, %class.Array.2, i8, i8, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64 }
%class.BaseQuery = type { ptr, i64, %class.Array.0, %class.Array.0, %class.Array.0, %class.Array.0 }
%class.TPCCTxnManager = type { %class.TxnManager, i32, ptr, i32, ptr, i64 }

; 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 nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

; 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 void @_ZN18ClientQueryMessage11copy_to_txnEP10TxnManager(ptr noundef nonnull align 8 dereferenceable(176), ptr noundef) unnamed_addr #2 align 2

; Function Attrs: nounwind
declare ptr @strcpy(ptr noundef, ptr noundef) #3

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN22TPCCClientQueryMessage11copy_to_txnEP10TxnManager(ptr noundef nonnull align 8 dereferenceable(312) %0, ptr noundef %1) unnamed_addr #2 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca %class.Array.2, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %7 = load ptr, ptr %3, align 8
  %8 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN18ClientQueryMessage11copy_to_txnEP10TxnManager(ptr noundef nonnull align 8 dereferenceable(176) %7, ptr noundef %8)
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  %9 = load ptr, ptr %4, align 8, !tbaa !5
  %10 = getelementptr inbounds %class.TxnManager, ptr %9, i32 0, i32 21
  %11 = load ptr, ptr %10, align 8, !tbaa !9
  store ptr %11, ptr %5, align 8, !tbaa !5
  %12 = getelementptr inbounds %class.Message, ptr %7, i32 0, i32 4
  %13 = load i64, ptr %12, align 8, !tbaa !19
  %14 = load ptr, ptr %4, align 8, !tbaa !5
  %15 = getelementptr inbounds %class.TxnManager, ptr %14, i32 0, i32 23
  store i64 %13, ptr %15, align 8, !tbaa !22
  %16 = getelementptr inbounds %class.TPCCClientQueryMessage, ptr %7, i32 0, i32 1
  %17 = load i64, ptr %16, align 8, !tbaa !23
  %18 = trunc i64 %17 to i32
  %19 = load ptr, ptr %5, align 8, !tbaa !5
  %20 = getelementptr inbounds %class.TPCCQuery, ptr %19, i32 0, i32 1
  store i32 %18, ptr %20, align 8, !tbaa !28
  %21 = load ptr, ptr %5, align 8, !tbaa !5
  %22 = getelementptr inbounds %class.TPCCQuery, ptr %21, i32 0, i32 1
  %23 = load i32, ptr %22, align 8, !tbaa !28
  %24 = icmp eq i32 %23, 1
  br i1 %24, label %25, label %28

25:                                               ; preds = %2
  %26 = load ptr, ptr %4, align 8, !tbaa !5
  %27 = getelementptr inbounds %class.TPCCTxnManager, ptr %26, i32 0, i32 1
  store i32 1, ptr %27, align 8, !tbaa !32
  br label %37

28:                                               ; preds = %2
  %29 = load ptr, ptr %5, align 8, !tbaa !5
  %30 = getelementptr inbounds %class.TPCCQuery, ptr %29, i32 0, i32 1
  %31 = load i32, ptr %30, align 8, !tbaa !28
  %32 = icmp eq i32 %31, 2
  br i1 %32, label %33, label %36

33:                                               ; preds = %28
  %34 = load ptr, ptr %4, align 8, !tbaa !5
  %35 = getelementptr inbounds %class.TPCCTxnManager, ptr %34, i32 0, i32 1
  store i32 8, ptr %35, align 8, !tbaa !32
  br label %36

36:                                               ; preds = %33, %28
  br label %37

37:                                               ; preds = %36, %25
  %38 = getelementptr inbounds %class.TPCCClientQueryMessage, ptr %7, i32 0, i32 2
  %39 = load i64, ptr %38, align 8, !tbaa !36
  %40 = load ptr, ptr %5, align 8, !tbaa !5
  %41 = getelementptr inbounds %class.TPCCQuery, ptr %40, i32 0, i32 2
  store i64 %39, ptr %41, align 8, !tbaa !37
  %42 = getelementptr inbounds %class.TPCCClientQueryMessage, ptr %7, i32 0, i32 3
  %43 = load i64, ptr %42, align 8, !tbaa !38
  %44 = load ptr, ptr %5, align 8, !tbaa !5
  %45 = getelementptr inbounds %class.TPCCQuery, ptr %44, i32 0, i32 3
  store i64 %43, ptr %45, align 8, !tbaa !39
  %46 = getelementptr inbounds %class.TPCCClientQueryMessage, ptr %7, i32 0, i32 4
  %47 = load i64, ptr %46, align 8, !tbaa !40
  %48 = load ptr, ptr %5, align 8, !tbaa !5
  %49 = getelementptr inbounds %class.TPCCQuery, ptr %48, i32 0, i32 4
  store i64 %47, ptr %49, align 8, !tbaa !41
  %50 = getelementptr inbounds %class.TPCCClientQueryMessage, ptr %7, i32 0, i32 5
  %51 = load i64, ptr %50, align 8, !tbaa !42
  %52 = load ptr, ptr %5, align 8, !tbaa !5
  %53 = getelementptr inbounds %class.TPCCQuery, ptr %52, i32 0, i32 5
  store i64 %51, ptr %53, align 8, !tbaa !43
  %54 = getelementptr inbounds %class.TPCCClientQueryMessage, ptr %7, i32 0, i32 6
  %55 = load i64, ptr %54, align 8, !tbaa !44
  %56 = load ptr, ptr %5, align 8, !tbaa !5
  %57 = getelementptr inbounds %class.TPCCQuery, ptr %56, i32 0, i32 6
  store i64 %55, ptr %57, align 8, !tbaa !45
  %58 = getelementptr inbounds %class.TPCCClientQueryMessage, ptr %7, i32 0, i32 7
  %59 = load i64, ptr %58, align 8, !tbaa !46
  %60 = load ptr, ptr %5, align 8, !tbaa !5
  %61 = getelementptr inbounds %class.TPCCQuery, ptr %60, i32 0, i32 7
  store i64 %59, ptr %61, align 8, !tbaa !47
  %62 = load ptr, ptr %5, align 8, !tbaa !5
  %63 = getelementptr inbounds %class.TPCCQuery, ptr %62, i32 0, i32 8
  %64 = getelementptr inbounds [16 x i8], ptr %63, i64 0, i64 0
  %65 = getelementptr inbounds %class.TPCCClientQueryMessage, ptr %7, i32 0, i32 8
  %66 = getelementptr inbounds [16 x i8], ptr %65, i64 0, i64 0
  %67 = call ptr @strcpy(ptr noundef %64, ptr noundef %66) #4
  %68 = getelementptr inbounds %class.TPCCClientQueryMessage, ptr %7, i32 0, i32 9
  %69 = load i64, ptr %68, align 8, !tbaa !48
  %70 = uitofp i64 %69 to double
  %71 = load ptr, ptr %5, align 8, !tbaa !5
  %72 = getelementptr inbounds %class.TPCCQuery, ptr %71, i32 0, i32 9
  store double %70, ptr %72, align 8, !tbaa !49
  %73 = getelementptr inbounds %class.TPCCClientQueryMessage, ptr %7, i32 0, i32 10
  %74 = load i8, ptr %73, align 8, !tbaa !50, !range !51, !noundef !52
  %75 = trunc i8 %74 to i1
  %76 = load ptr, ptr %5, align 8, !tbaa !5
  %77 = getelementptr inbounds %class.TPCCQuery, ptr %76, i32 0, i32 10
  %78 = zext i1 %75 to i8
  store i8 %78, ptr %77, align 8, !tbaa !53
  %79 = load ptr, ptr %5, align 8, !tbaa !5
  %80 = getelementptr inbounds %class.TPCCQuery, ptr %79, i32 0, i32 11
  %81 = getelementptr inbounds %class.TPCCClientQueryMessage, ptr %7, i32 0, i32 11
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %6, ptr align 8 %81, i64 24, i1 false), !tbaa.struct !54
  call void @_ZN5ArrayIP7Item_noE6appendES2_(ptr noundef nonnull align 8 dereferenceable(24) %80, ptr noundef byval(%class.Array.2) align 8 %6)
  %82 = getelementptr inbounds %class.TPCCClientQueryMessage, ptr %7, i32 0, i32 12
  %83 = load i8, ptr %82, align 8, !tbaa !56, !range !51, !noundef !52
  %84 = trunc i8 %83 to i1
  %85 = load ptr, ptr %5, align 8, !tbaa !5
  %86 = getelementptr inbounds %class.TPCCQuery, ptr %85, i32 0, i32 12
  %87 = zext i1 %84 to i8
  store i8 %87, ptr %86, align 8, !tbaa !57
  %88 = getelementptr inbounds %class.TPCCClientQueryMessage, ptr %7, i32 0, i32 13
  %89 = load i8, ptr %88, align 1, !tbaa !58, !range !51, !noundef !52
  %90 = trunc i8 %89 to i1
  %91 = load ptr, ptr %5, align 8, !tbaa !5
  %92 = getelementptr inbounds %class.TPCCQuery, ptr %91, i32 0, i32 13
  %93 = zext i1 %90 to i8
  store i8 %93, ptr %92, align 1, !tbaa !59
  %94 = getelementptr inbounds %class.TPCCClientQueryMessage, ptr %7, i32 0, i32 14
  %95 = load i64, ptr %94, align 8, !tbaa !60
  %96 = load ptr, ptr %5, align 8, !tbaa !5
  %97 = getelementptr inbounds %class.TPCCQuery, ptr %96, i32 0, i32 14
  store i64 %95, ptr %97, align 8, !tbaa !61
  %98 = getelementptr inbounds %class.TPCCClientQueryMessage, ptr %7, i32 0, i32 15
  %99 = load i64, ptr %98, align 8, !tbaa !62
  %100 = load ptr, ptr %5, align 8, !tbaa !5
  %101 = getelementptr inbounds %class.TPCCQuery, ptr %100, i32 0, i32 15
  store i64 %99, ptr %101, align 8, !tbaa !63
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  ret void
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5ArrayIP7Item_noE6appendES2_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef byval(%class.Array.2) align 8) #2 align 2

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

!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, !6, i64 144}
!10 = !{!"_ZTS10TxnManager", !6, i64 8, !6, i64 16, !11, i64 24, !6, i64 32, !12, i64 40, !11, i64 44, !12, i64 48, !12, i64 52, !11, i64 56, !13, i64 64, !13, i64 72, !13, i64 80, !13, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !13, i64 120, !11, i64 128, !11, i64 129, !6, i64 136, !6, i64 144, !13, i64 152, !13, i64 160, !13, i64 168, !14, i64 176, !12, i64 432, !12, i64 436, !12, i64 440, !11, i64 444, !16, i64 448, !17, i64 456, !12, i64 480, !6, i64 488, !6, i64 496, !18, i64 504, !7, i64 512}
!11 = !{!"bool", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!"long", !7, i64 0}
!14 = !{!"_ZTS8TxnStats", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24, !13, i64 32, !15, i64 40, !15, i64 48, !15, i64 56, !15, i64 64, !15, i64 72, !15, i64 80, !15, i64 88, !15, i64 96, !15, i64 104, !15, i64 112, !15, i64 120, !15, i64 128, !15, i64 136, !15, i64 144, !15, i64 152, !15, i64 160, !15, i64 168, !13, i64 176, !13, i64 184, !15, i64 192, !15, i64 200, !15, i64 208, !15, i64 216, !15, i64 224, !15, i64 232, !15, i64 240, !15, i64 248}
!15 = !{!"double", !7, i64 0}
!16 = !{!"_ZTS12CALVIN_PHASE", !7, i64 0}
!17 = !{!"_ZTS5ArrayIP5row_tE", !6, i64 0, !13, i64 8, !13, i64 16}
!18 = !{!"_ZTS8access_t", !7, i64 0}
!19 = !{!20, !13, i64 32}
!20 = !{!"_ZTS7Message", !21, i64 8, !13, i64 16, !13, i64 24, !13, i64 32, !13, i64 40, !13, i64 48, !13, i64 56, !15, i64 64, !15, i64 72, !15, i64 80, !15, i64 88, !15, i64 96, !15, i64 104, !15, i64 112}
!21 = !{!"_ZTS10RemReqType", !7, i64 0}
!22 = !{!10, !13, i64 160}
!23 = !{!24, !13, i64 176}
!24 = !{!"_ZTS22TPCCClientQueryMessage", !25, i64 0, !13, i64 176, !13, i64 184, !13, i64 192, !13, i64 200, !13, i64 208, !13, i64 216, !13, i64 224, !7, i64 232, !13, i64 248, !11, i64 256, !27, i64 264, !11, i64 288, !11, i64 289, !13, i64 296, !13, i64 304}
!25 = !{!"_ZTS18ClientQueryMessage", !20, i64 0, !13, i64 120, !13, i64 128, !13, i64 136, !13, i64 144, !26, i64 152}
!26 = !{!"_ZTS5ArrayImE", !6, i64 0, !13, i64 8, !13, i64 16}
!27 = !{!"_ZTS5ArrayIP7Item_noE", !6, i64 0, !13, i64 8, !13, i64 16}
!28 = !{!29, !31, i64 112}
!29 = !{!"_ZTS9TPCCQuery", !30, i64 0, !31, i64 112, !13, i64 120, !13, i64 128, !13, i64 136, !13, i64 144, !13, i64 152, !13, i64 160, !7, i64 168, !15, i64 184, !11, i64 192, !27, i64 200, !11, i64 224, !11, i64 225, !13, i64 232, !13, i64 240, !13, i64 248, !13, i64 256, !13, i64 264, !13, i64 272, !13, i64 280, !13, i64 288, !13, i64 296, !13, i64 304, !13, i64 312}
!30 = !{!"_ZTS9BaseQuery", !13, i64 8, !26, i64 16, !26, i64 40, !26, i64 64, !26, i64 88}
!31 = !{!"_ZTS11TPCCTxnType", !7, i64 0}
!32 = !{!33, !34, i64 544}
!33 = !{!"_ZTS14TPCCTxnManager", !10, i64 0, !34, i64 544, !6, i64 552, !35, i64 560, !6, i64 568, !13, i64 576}
!34 = !{!"_ZTS14TPCCRemTxnType", !7, i64 0}
!35 = !{!"_ZTS2RC", !7, i64 0}
!36 = !{!24, !13, i64 184}
!37 = !{!29, !13, i64 120}
!38 = !{!24, !13, i64 192}
!39 = !{!29, !13, i64 128}
!40 = !{!24, !13, i64 200}
!41 = !{!29, !13, i64 136}
!42 = !{!24, !13, i64 208}
!43 = !{!29, !13, i64 144}
!44 = !{!24, !13, i64 216}
!45 = !{!29, !13, i64 152}
!46 = !{!24, !13, i64 224}
!47 = !{!29, !13, i64 160}
!48 = !{!24, !13, i64 248}
!49 = !{!29, !15, i64 184}
!50 = !{!24, !11, i64 256}
!51 = !{i8 0, i8 2}
!52 = !{}
!53 = !{!29, !11, i64 192}
!54 = !{i64 0, i64 8, !5, i64 8, i64 8, !55, i64 16, i64 8, !55}
!55 = !{!13, !13, i64 0}
!56 = !{!24, !11, i64 288}
!57 = !{!29, !11, i64 224}
!58 = !{!24, !11, i64 289}
!59 = !{!29, !11, i64 225}
!60 = !{!24, !13, i64 296}
!61 = !{!29, !13, i64 232}
!62 = !{!24, !13, i64 304}
!63 = !{!29, !13, i64 240}


; 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.Array.2 = type { ptr, i64, i64 }

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN18ClientQueryMessage11copy_to_txnEP10TxnManager(ptr noundef nonnull align 8 dereferenceable(176), ptr noundef) unnamed_addr #0 align 2

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: readwrite)
declare ptr @strcpy(ptr noalias noundef returned writeonly, ptr noalias nocapture noundef readonly) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN22TPCCClientQueryMessage11copy_to_txnEP10TxnManager(ptr noundef nonnull align 8 dereferenceable(312) %0, ptr noundef %1) unnamed_addr #0 align 2 {
  tail call void @_ZN18ClientQueryMessage11copy_to_txnEP10TxnManager(ptr noundef nonnull align 8 dereferenceable(176) %0, ptr noundef %1)
  %3 = getelementptr inbounds i8, ptr %1, i64 144
  %4 = load ptr, ptr %3, align 8, !tbaa !5
  %5 = getelementptr inbounds i8, ptr %0, i64 32
  %6 = load i64, ptr %5, align 8, !tbaa !18
  %7 = getelementptr inbounds i8, ptr %1, i64 160
  store i64 %6, ptr %7, align 8, !tbaa !21
  %8 = getelementptr inbounds i8, ptr %0, i64 176
  %9 = load i64, ptr %8, align 8, !tbaa !22
  %10 = trunc i64 %9 to i32
  %11 = getelementptr inbounds i8, ptr %4, i64 112
  store i32 %10, ptr %11, align 8, !tbaa !27
  switch i32 %10, label %14 [
    i32 1, label %.sink.split
    i32 2, label %12
  ]

12:                                               ; preds = %2
  br label %.sink.split

.sink.split:                                      ; preds = %2, %12
  %.sink = phi i32 [ 8, %12 ], [ %10, %2 ]
  %13 = getelementptr inbounds i8, ptr %1, i64 544
  store i32 %.sink, ptr %13, align 8, !tbaa !31
  br label %14

14:                                               ; preds = %.sink.split, %2
  %15 = getelementptr inbounds i8, ptr %0, i64 184
  %16 = getelementptr inbounds i8, ptr %4, i64 120
  %17 = load <2 x i64>, ptr %15, align 8, !tbaa !35
  store <2 x i64> %17, ptr %16, align 8, !tbaa !35
  %18 = getelementptr inbounds i8, ptr %0, i64 200
  %19 = getelementptr inbounds i8, ptr %4, i64 136
  %20 = load <2 x i64>, ptr %18, align 8, !tbaa !35
  store <2 x i64> %20, ptr %19, align 8, !tbaa !35
  %21 = getelementptr inbounds i8, ptr %0, i64 216
  %22 = getelementptr inbounds i8, ptr %4, i64 152
  %23 = load <2 x i64>, ptr %21, align 8, !tbaa !35
  store <2 x i64> %23, ptr %22, align 8, !tbaa !35
  %24 = getelementptr inbounds i8, ptr %4, i64 168
  %25 = getelementptr inbounds i8, ptr %0, i64 232
  %26 = tail call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %24, ptr noundef nonnull dereferenceable(1) %25) #2
  %27 = getelementptr inbounds i8, ptr %0, i64 248
  %28 = load i64, ptr %27, align 8, !tbaa !36
  %29 = uitofp i64 %28 to double
  %30 = getelementptr inbounds i8, ptr %4, i64 184
  store double %29, ptr %30, align 8, !tbaa !37
  %31 = getelementptr inbounds i8, ptr %0, i64 256
  %32 = load i8, ptr %31, align 8, !tbaa !38, !range !39, !noundef !40
  %33 = getelementptr inbounds i8, ptr %4, i64 192
  store i8 %32, ptr %33, align 8, !tbaa !41
  %34 = getelementptr inbounds i8, ptr %4, i64 200
  %35 = getelementptr inbounds i8, ptr %0, i64 264
  tail call void @_ZN5ArrayIP7Item_noE6appendES2_(ptr noundef nonnull align 8 dereferenceable(24) %34, ptr noundef nonnull byval(%class.Array.2) align 8 %35)
  %36 = getelementptr inbounds i8, ptr %0, i64 288
  %37 = load i8, ptr %36, align 8, !tbaa !42, !range !39, !noundef !40
  %38 = getelementptr inbounds i8, ptr %4, i64 224
  store i8 %37, ptr %38, align 8, !tbaa !43
  %39 = getelementptr inbounds i8, ptr %0, i64 289
  %40 = load i8, ptr %39, align 1, !tbaa !44, !range !39, !noundef !40
  %41 = getelementptr inbounds i8, ptr %4, i64 225
  store i8 %40, ptr %41, align 1, !tbaa !45
  %42 = getelementptr inbounds i8, ptr %0, i64 296
  %43 = getelementptr inbounds i8, ptr %4, i64 232
  %44 = load <2 x i64>, ptr %42, align 8, !tbaa !35
  store <2 x i64> %44, ptr %43, align 8, !tbaa !35
  ret void
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5ArrayIP7Item_noE6appendES2_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef byval(%class.Array.2) align 8) local_unnamed_addr #0 align 2

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 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 = { 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, !7, i64 144}
!6 = !{!"_ZTS10TxnManager", !7, i64 8, !7, i64 16, !10, i64 24, !7, i64 32, !11, i64 40, !10, i64 44, !11, i64 48, !11, i64 52, !10, i64 56, !12, i64 64, !12, i64 72, !12, i64 80, !12, i64 88, !7, i64 96, !7, i64 104, !7, i64 112, !12, i64 120, !10, i64 128, !10, i64 129, !7, i64 136, !7, i64 144, !12, i64 152, !12, i64 160, !12, i64 168, !13, i64 176, !11, i64 432, !11, i64 436, !11, i64 440, !10, i64 444, !15, i64 448, !16, i64 456, !11, i64 480, !7, i64 488, !7, i64 496, !17, i64 504, !8, i64 512}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"bool", !8, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = !{!"long", !8, i64 0}
!13 = !{!"_ZTS8TxnStats", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !14, i64 40, !14, i64 48, !14, i64 56, !14, i64 64, !14, i64 72, !14, i64 80, !14, i64 88, !14, i64 96, !14, i64 104, !14, i64 112, !14, i64 120, !14, i64 128, !14, i64 136, !14, i64 144, !14, i64 152, !14, i64 160, !14, i64 168, !12, i64 176, !12, i64 184, !14, i64 192, !14, i64 200, !14, i64 208, !14, i64 216, !14, i64 224, !14, i64 232, !14, i64 240, !14, i64 248}
!14 = !{!"double", !8, i64 0}
!15 = !{!"_ZTS12CALVIN_PHASE", !8, i64 0}
!16 = !{!"_ZTS5ArrayIP5row_tE", !7, i64 0, !12, i64 8, !12, i64 16}
!17 = !{!"_ZTS8access_t", !8, i64 0}
!18 = !{!19, !12, i64 32}
!19 = !{!"_ZTS7Message", !20, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !12, i64 48, !12, i64 56, !14, i64 64, !14, i64 72, !14, i64 80, !14, i64 88, !14, i64 96, !14, i64 104, !14, i64 112}
!20 = !{!"_ZTS10RemReqType", !8, i64 0}
!21 = !{!6, !12, i64 160}
!22 = !{!23, !12, i64 176}
!23 = !{!"_ZTS22TPCCClientQueryMessage", !24, i64 0, !12, i64 176, !12, i64 184, !12, i64 192, !12, i64 200, !12, i64 208, !12, i64 216, !12, i64 224, !8, i64 232, !12, i64 248, !10, i64 256, !26, i64 264, !10, i64 288, !10, i64 289, !12, i64 296, !12, i64 304}
!24 = !{!"_ZTS18ClientQueryMessage", !19, i64 0, !12, i64 120, !12, i64 128, !12, i64 136, !12, i64 144, !25, i64 152}
!25 = !{!"_ZTS5ArrayImE", !7, i64 0, !12, i64 8, !12, i64 16}
!26 = !{!"_ZTS5ArrayIP7Item_noE", !7, i64 0, !12, i64 8, !12, i64 16}
!27 = !{!28, !30, i64 112}
!28 = !{!"_ZTS9TPCCQuery", !29, i64 0, !30, i64 112, !12, i64 120, !12, i64 128, !12, i64 136, !12, i64 144, !12, i64 152, !12, i64 160, !8, i64 168, !14, i64 184, !10, i64 192, !26, i64 200, !10, i64 224, !10, i64 225, !12, i64 232, !12, i64 240, !12, i64 248, !12, i64 256, !12, i64 264, !12, i64 272, !12, i64 280, !12, i64 288, !12, i64 296, !12, i64 304, !12, i64 312}
!29 = !{!"_ZTS9BaseQuery", !12, i64 8, !25, i64 16, !25, i64 40, !25, i64 64, !25, i64 88}
!30 = !{!"_ZTS11TPCCTxnType", !8, i64 0}
!31 = !{!32, !33, i64 544}
!32 = !{!"_ZTS14TPCCTxnManager", !6, i64 0, !33, i64 544, !7, i64 552, !34, i64 560, !7, i64 568, !12, i64 576}
!33 = !{!"_ZTS14TPCCRemTxnType", !8, i64 0}
!34 = !{!"_ZTS2RC", !8, i64 0}
!35 = !{!12, !12, i64 0}
!36 = !{!23, !12, i64 248}
!37 = !{!28, !14, i64 184}
!38 = !{!23, !10, i64 256}
!39 = !{i8 0, i8 2}
!40 = !{}
!41 = !{!28, !10, i64 192}
!42 = !{!23, !10, i64 288}
!43 = !{!28, !10, i64 224}
!44 = !{!23, !10, i64 289}
!45 = !{!28, !10, i64 225}


; Effective O3 passes: DSEPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,MemCpyOptPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass