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

; 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.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.Message = type { ptr, i32, i64, i64, i64, i64, i64, i64, double, double, double, double, double, double, double }
%class.Array.0 = type { ptr, i64, i64 }
%class.Array.2 = type { ptr, i64, i64 }

@.str.1 = external hidden unnamed_addr constant [69 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [18 x i8], align 1
@__PRETTY_FUNCTION__._ZN22TPCCClientQueryMessage11copy_to_bufEPc = external hidden unnamed_addr constant [57 x i8], align 1

; 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: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZN18ClientQueryMessage8get_sizeEv(ptr noundef nonnull align 8 dereferenceable(176)) unnamed_addr #3 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN5ArrayIP7Item_noE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #4 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN22TPCCClientQueryMessage11copy_to_bufEPc(ptr noundef nonnull align 8 dereferenceable(312) %0, ptr noundef %1) unnamed_addr #3 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %9 = load ptr, ptr %3, align 8
  %10 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN18ClientQueryMessage11copy_to_bufEPc(ptr noundef nonnull align 8 dereferenceable(176) %9, ptr noundef %10)
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  %11 = call noundef i64 @_ZN18ClientQueryMessage8get_sizeEv(ptr noundef nonnull align 8 dereferenceable(176) %9)
  store i64 %11, ptr %5, align 8, !tbaa !9
  %12 = load ptr, ptr %4, align 8, !tbaa !5
  %13 = load i64, ptr %5, align 8, !tbaa !9
  %14 = getelementptr inbounds i8, ptr %12, i64 %13
  %15 = getelementptr inbounds %class.TPCCClientQueryMessage, ptr %9, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %14, ptr align 8 %15, i64 8, i1 false)
  %16 = load i64, ptr %5, align 8, !tbaa !9
  %17 = add i64 %16, 8
  store i64 %17, ptr %5, align 8, !tbaa !9
  %18 = load ptr, ptr %4, align 8, !tbaa !5
  %19 = load i64, ptr %5, align 8, !tbaa !9
  %20 = getelementptr inbounds i8, ptr %18, i64 %19
  %21 = getelementptr inbounds %class.TPCCClientQueryMessage, ptr %9, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %20, ptr align 8 %21, i64 8, i1 false)
  %22 = load i64, ptr %5, align 8, !tbaa !9
  %23 = add i64 %22, 8
  store i64 %23, ptr %5, align 8, !tbaa !9
  %24 = load ptr, ptr %4, align 8, !tbaa !5
  %25 = load i64, ptr %5, align 8, !tbaa !9
  %26 = getelementptr inbounds i8, ptr %24, i64 %25
  %27 = getelementptr inbounds %class.TPCCClientQueryMessage, ptr %9, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %26, ptr align 8 %27, i64 8, i1 false)
  %28 = load i64, ptr %5, align 8, !tbaa !9
  %29 = add i64 %28, 8
  store i64 %29, ptr %5, align 8, !tbaa !9
  %30 = load ptr, ptr %4, align 8, !tbaa !5
  %31 = load i64, ptr %5, align 8, !tbaa !9
  %32 = getelementptr inbounds i8, ptr %30, i64 %31
  %33 = getelementptr inbounds %class.TPCCClientQueryMessage, ptr %9, i32 0, i32 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %32, ptr align 8 %33, i64 8, i1 false)
  %34 = load i64, ptr %5, align 8, !tbaa !9
  %35 = add i64 %34, 8
  store i64 %35, ptr %5, align 8, !tbaa !9
  %36 = load ptr, ptr %4, align 8, !tbaa !5
  %37 = load i64, ptr %5, align 8, !tbaa !9
  %38 = getelementptr inbounds i8, ptr %36, i64 %37
  %39 = getelementptr inbounds %class.TPCCClientQueryMessage, ptr %9, i32 0, i32 5
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %38, ptr align 8 %39, i64 8, i1 false)
  %40 = load i64, ptr %5, align 8, !tbaa !9
  %41 = add i64 %40, 8
  store i64 %41, ptr %5, align 8, !tbaa !9
  %42 = load ptr, ptr %4, align 8, !tbaa !5
  %43 = load i64, ptr %5, align 8, !tbaa !9
  %44 = getelementptr inbounds i8, ptr %42, i64 %43
  %45 = getelementptr inbounds %class.TPCCClientQueryMessage, ptr %9, i32 0, i32 6
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %44, ptr align 8 %45, i64 8, i1 false)
  %46 = load i64, ptr %5, align 8, !tbaa !9
  %47 = add i64 %46, 8
  store i64 %47, ptr %5, align 8, !tbaa !9
  %48 = load ptr, ptr %4, align 8, !tbaa !5
  %49 = load i64, ptr %5, align 8, !tbaa !9
  %50 = getelementptr inbounds i8, ptr %48, i64 %49
  %51 = getelementptr inbounds %class.TPCCClientQueryMessage, ptr %9, i32 0, i32 7
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %50, ptr align 8 %51, i64 8, i1 false)
  %52 = load i64, ptr %5, align 8, !tbaa !9
  %53 = add i64 %52, 8
  store i64 %53, ptr %5, align 8, !tbaa !9
  %54 = load ptr, ptr %4, align 8, !tbaa !5
  %55 = load i64, ptr %5, align 8, !tbaa !9
  %56 = getelementptr inbounds i8, ptr %54, i64 %55
  %57 = getelementptr inbounds %class.TPCCClientQueryMessage, ptr %9, i32 0, i32 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %56, ptr align 8 %57, i64 16, i1 false)
  %58 = load i64, ptr %5, align 8, !tbaa !9
  %59 = add i64 %58, 16
  store i64 %59, ptr %5, align 8, !tbaa !9
  %60 = load ptr, ptr %4, align 8, !tbaa !5
  %61 = load i64, ptr %5, align 8, !tbaa !9
  %62 = getelementptr inbounds i8, ptr %60, i64 %61
  %63 = getelementptr inbounds %class.TPCCClientQueryMessage, ptr %9, i32 0, i32 9
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %62, ptr align 8 %63, i64 8, i1 false)
  %64 = load i64, ptr %5, align 8, !tbaa !9
  %65 = add i64 %64, 8
  store i64 %65, ptr %5, align 8, !tbaa !9
  %66 = load ptr, ptr %4, align 8, !tbaa !5
  %67 = load i64, ptr %5, align 8, !tbaa !9
  %68 = getelementptr inbounds i8, ptr %66, i64 %67
  %69 = getelementptr inbounds %class.TPCCClientQueryMessage, ptr %9, i32 0, i32 10
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %68, ptr align 8 %69, i64 1, i1 false)
  %70 = load i64, ptr %5, align 8, !tbaa !9
  %71 = add i64 %70, 1
  store i64 %71, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %72 = getelementptr inbounds %class.TPCCClientQueryMessage, ptr %9, i32 0, i32 11
  %73 = call noundef i64 @_ZN5ArrayIP7Item_noE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %72)
  store i64 %73, ptr %6, align 8, !tbaa !9
  %74 = load ptr, ptr %4, align 8, !tbaa !5
  %75 = load i64, ptr %5, align 8, !tbaa !9
  %76 = getelementptr inbounds i8, ptr %74, i64 %75
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %76, ptr align 8 %6, i64 8, i1 false)
  %77 = load i64, ptr %5, align 8, !tbaa !9
  %78 = add i64 %77, 8
  store i64 %78, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  store i64 0, ptr %7, align 8, !tbaa !9
  br label %79

79:                                               ; preds = %95, %2
  %80 = load i64, ptr %7, align 8, !tbaa !9
  %81 = getelementptr inbounds %class.TPCCClientQueryMessage, ptr %9, i32 0, i32 11
  %82 = call noundef i64 @_ZN5ArrayIP7Item_noE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %81)
  %83 = icmp ult i64 %80, %82
  br i1 %83, label %85, label %84

84:                                               ; preds = %79
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  br label %98

85:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %86 = getelementptr inbounds %class.TPCCClientQueryMessage, ptr %9, i32 0, i32 11
  %87 = load i64, ptr %7, align 8, !tbaa !9
  %88 = call noundef ptr @_ZN5ArrayIP7Item_noEixEm(ptr noundef nonnull align 8 dereferenceable(24) %86, i64 noundef %87)
  store ptr %88, ptr %8, align 8, !tbaa !5
  %89 = load ptr, ptr %4, align 8, !tbaa !5
  %90 = load i64, ptr %5, align 8, !tbaa !9
  %91 = getelementptr inbounds i8, ptr %89, i64 %90
  %92 = load ptr, ptr %8, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %91, ptr align 1 %92, i64 24, i1 false)
  %93 = load i64, ptr %5, align 8, !tbaa !9
  %94 = add i64 %93, 24
  store i64 %94, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  br label %95

95:                                               ; preds = %85
  %96 = load i64, ptr %7, align 8, !tbaa !9
  %97 = add i64 %96, 1
  store i64 %97, ptr %7, align 8, !tbaa !9
  br label %79, !llvm.loop !11

98:                                               ; preds = %84
  %99 = load ptr, ptr %4, align 8, !tbaa !5
  %100 = load i64, ptr %5, align 8, !tbaa !9
  %101 = getelementptr inbounds i8, ptr %99, i64 %100
  %102 = getelementptr inbounds %class.TPCCClientQueryMessage, ptr %9, i32 0, i32 12
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %101, ptr align 8 %102, i64 1, i1 false)
  %103 = load i64, ptr %5, align 8, !tbaa !9
  %104 = add i64 %103, 1
  store i64 %104, ptr %5, align 8, !tbaa !9
  %105 = load ptr, ptr %4, align 8, !tbaa !5
  %106 = load i64, ptr %5, align 8, !tbaa !9
  %107 = getelementptr inbounds i8, ptr %105, i64 %106
  %108 = getelementptr inbounds %class.TPCCClientQueryMessage, ptr %9, i32 0, i32 13
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %107, ptr align 1 %108, i64 1, i1 false)
  %109 = load i64, ptr %5, align 8, !tbaa !9
  %110 = add i64 %109, 1
  store i64 %110, ptr %5, align 8, !tbaa !9
  %111 = load ptr, ptr %4, align 8, !tbaa !5
  %112 = load i64, ptr %5, align 8, !tbaa !9
  %113 = getelementptr inbounds i8, ptr %111, i64 %112
  %114 = getelementptr inbounds %class.TPCCClientQueryMessage, ptr %9, i32 0, i32 14
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %113, ptr align 8 %114, i64 8, i1 false)
  %115 = load i64, ptr %5, align 8, !tbaa !9
  %116 = add i64 %115, 8
  store i64 %116, ptr %5, align 8, !tbaa !9
  %117 = load ptr, ptr %4, align 8, !tbaa !5
  %118 = load i64, ptr %5, align 8, !tbaa !9
  %119 = getelementptr inbounds i8, ptr %117, i64 %118
  %120 = getelementptr inbounds %class.TPCCClientQueryMessage, ptr %9, i32 0, i32 15
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %119, ptr align 8 %120, i64 8, i1 false)
  %121 = load i64, ptr %5, align 8, !tbaa !9
  %122 = add i64 %121, 8
  store i64 %122, ptr %5, align 8, !tbaa !9
  %123 = load i64, ptr %5, align 8, !tbaa !9
  %124 = load ptr, ptr %9, align 8, !tbaa !13
  %125 = getelementptr inbounds ptr, ptr %124, i64 2
  %126 = load ptr, ptr %125, align 8
  %127 = call noundef i64 %126(ptr noundef nonnull align 8 dereferenceable(312) %9)
  %128 = icmp eq i64 %123, %127
  br i1 %128, label %129, label %130

129:                                              ; preds = %98
  br label %132

130:                                              ; preds = %98
  call void @__assert_fail(ptr noundef @.str.9, ptr noundef @.str.1, i32 noundef 686, ptr noundef @__PRETTY_FUNCTION__._ZN22TPCCClientQueryMessage11copy_to_bufEPc) #6
  unreachable

131:                                              ; No predecessors!
  br label %132

132:                                              ; preds = %131, %129
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  ret void
}

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { noreturn 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 = { 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 = { 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 #5 = { nounwind }
attributes #6 = { noreturn 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 = !{!"long", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !14, i64 0}
!14 = !{!"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"

@.str.1 = external hidden unnamed_addr constant [69 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [18 x i8], align 1
@__PRETTY_FUNCTION__._ZN22TPCCClientQueryMessage11copy_to_bufEPc = external hidden unnamed_addr constant [57 x i8], align 1

; Function Attrs: mustprogress 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) #0

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZN18ClientQueryMessage8get_sizeEv(ptr noundef nonnull align 8 dereferenceable(176)) unnamed_addr #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN5ArrayIP7Item_noE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN22TPCCClientQueryMessage11copy_to_bufEPc(ptr noundef nonnull align 8 dereferenceable(312) %0, ptr noundef %1) unnamed_addr #2 align 2 {
  tail call void @_ZN18ClientQueryMessage11copy_to_bufEPc(ptr noundef nonnull align 8 dereferenceable(176) %0, ptr noundef %1)
  %3 = tail call noundef i64 @_ZN18ClientQueryMessage8get_sizeEv(ptr noundef nonnull align 8 dereferenceable(176) %0)
  %4 = getelementptr inbounds i8, ptr %1, i64 %3
  %5 = getelementptr inbounds i8, ptr %0, i64 176
  %6 = load i64, ptr %5, align 8
  store i64 %6, ptr %4, align 1
  %7 = getelementptr i8, ptr %4, i64 8
  %8 = getelementptr inbounds i8, ptr %0, i64 184
  %9 = load i64, ptr %8, align 8
  store i64 %9, ptr %7, align 1
  %10 = getelementptr i8, ptr %4, i64 16
  %11 = getelementptr inbounds i8, ptr %0, i64 192
  %12 = load i64, ptr %11, align 8
  store i64 %12, ptr %10, align 1
  %13 = getelementptr i8, ptr %4, i64 24
  %14 = getelementptr inbounds i8, ptr %0, i64 200
  %15 = load i64, ptr %14, align 8
  store i64 %15, ptr %13, align 1
  %16 = getelementptr i8, ptr %4, i64 32
  %17 = getelementptr inbounds i8, ptr %0, i64 208
  %18 = load i64, ptr %17, align 8
  store i64 %18, ptr %16, align 1
  %19 = getelementptr i8, ptr %4, i64 40
  %20 = getelementptr inbounds i8, ptr %0, i64 216
  %21 = load i64, ptr %20, align 8
  store i64 %21, ptr %19, align 1
  %22 = getelementptr i8, ptr %4, i64 48
  %23 = getelementptr inbounds i8, ptr %0, i64 224
  %24 = load i64, ptr %23, align 8
  store i64 %24, ptr %22, align 1
  %25 = getelementptr i8, ptr %4, i64 56
  %26 = getelementptr inbounds i8, ptr %0, i64 232
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(16) %25, ptr noundef nonnull align 8 dereferenceable(16) %26, i64 16, i1 false)
  %27 = getelementptr i8, ptr %4, i64 72
  %28 = getelementptr inbounds i8, ptr %0, i64 248
  %29 = load i64, ptr %28, align 8
  store i64 %29, ptr %27, align 1
  %30 = getelementptr i8, ptr %4, i64 80
  %31 = getelementptr inbounds i8, ptr %0, i64 256
  %32 = load i8, ptr %31, align 8
  store i8 %32, ptr %30, align 1
  %33 = getelementptr inbounds i8, ptr %0, i64 264
  %34 = tail call noundef i64 @_ZN5ArrayIP7Item_noE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %33)
  %35 = getelementptr i8, ptr %4, i64 81
  store i64 %34, ptr %35, align 1
  %36 = add i64 %3, 89
  %37 = tail call noundef i64 @_ZN5ArrayIP7Item_noE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %33)
  %.not = icmp eq i64 %37, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %2
  %.0.lcssa = phi i64 [ %36, %2 ], [ %58, %.lr.ph ]
  %38 = getelementptr inbounds i8, ptr %1, i64 %.0.lcssa
  %39 = getelementptr inbounds i8, ptr %0, i64 288
  %40 = load i8, ptr %39, align 8
  store i8 %40, ptr %38, align 1
  %41 = getelementptr i8, ptr %38, i64 1
  %42 = getelementptr inbounds i8, ptr %0, i64 289
  %43 = load i8, ptr %42, align 1
  store i8 %43, ptr %41, align 1
  %44 = getelementptr i8, ptr %38, i64 2
  %45 = getelementptr inbounds i8, ptr %0, i64 296
  %46 = load i64, ptr %45, align 8
  store i64 %46, ptr %44, align 1
  %47 = getelementptr i8, ptr %38, i64 10
  %48 = getelementptr inbounds i8, ptr %0, i64 304
  %49 = load i64, ptr %48, align 8
  store i64 %49, ptr %47, align 1
  %50 = add i64 %.0.lcssa, 18
  %51 = load ptr, ptr %0, align 8, !tbaa !5
  %52 = getelementptr inbounds i8, ptr %51, i64 16
  %53 = load ptr, ptr %52, align 8
  %54 = tail call noundef i64 %53(ptr noundef nonnull align 8 dereferenceable(312) %0)
  %55 = icmp eq i64 %50, %54
  br i1 %55, label %63, label %62

.lr.ph:                                           ; preds = %2, %.lr.ph
  %.056 = phi i64 [ %58, %.lr.ph ], [ %36, %2 ]
  %.05455 = phi i64 [ %59, %.lr.ph ], [ 0, %2 ]
  %56 = tail call noundef ptr @_ZN5ArrayIP7Item_noEixEm(ptr noundef nonnull align 8 dereferenceable(24) %33, i64 noundef %.05455)
  %57 = getelementptr inbounds i8, ptr %1, i64 %.056
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(24) %57, ptr noundef nonnull align 1 dereferenceable(24) %56, i64 24, i1 false)
  %58 = add i64 %.056, 24
  %59 = add nuw i64 %.05455, 1
  %60 = tail call noundef i64 @_ZN5ArrayIP7Item_noE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %33)
  %61 = icmp ult i64 %59, %60
  br i1 %61, label %.lr.ph, label %._crit_edge, !llvm.loop !8

62:                                               ; preds = %._crit_edge
  tail call void @__assert_fail(ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.1, i32 noundef 686, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN22TPCCClientQueryMessage11copy_to_bufEPc) #4
  unreachable

63:                                               ; preds = %._crit_edge
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN5ArrayIP7Item_noEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #3 align 2

attributes #0 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { noreturn 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 = { 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 = { noreturn 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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = distinct !{!8, !9}
!9 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass