; LLVM IR from mitdbg/deneva :: transport/message.ll (ZN15PPSQueryMessage11copy_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.PPSQueryMessage = type { %class.QueryMessage, i64, i64, i64, i64, i64, %class.Array.0 }
%class.QueryMessage = type { %class.Message, i64, i64 }
%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 }

@.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__._ZN15PPSQueryMessage11copy_to_bufEPc = external hidden unnamed_addr constant [50 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 nounwind uwtable
declare dso_local noundef i64 @_ZN12QueryMessage8get_sizeEv(ptr noundef nonnull align 8 dereferenceable(136)) unnamed_addr #3 align 2

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN15PPSQueryMessage11copy_to_bufEPc(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef %1) unnamed_addr #4 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 i64, 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 @_ZN12QueryMessage11copy_to_bufEPc(ptr noundef nonnull align 8 dereferenceable(136) %9, ptr noundef %10)
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  %11 = call noundef i64 @_ZN12QueryMessage8get_sizeEv(ptr noundef nonnull align 8 dereferenceable(136) %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.PPSQueryMessage, 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.PPSQueryMessage, 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 = getelementptr inbounds %class.PPSQueryMessage, ptr %9, i32 0, i32 1
  %25 = load i64, ptr %24, align 8, !tbaa !11
  %26 = icmp eq i64 %25, 1
  br i1 %26, label %27, label %34

27:                                               ; preds = %2
  %28 = load ptr, ptr %4, align 8, !tbaa !5
  %29 = load i64, ptr %5, align 8, !tbaa !9
  %30 = getelementptr inbounds i8, ptr %28, i64 %29
  %31 = getelementptr inbounds %class.PPSQueryMessage, ptr %9, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %30, ptr align 8 %31, i64 8, i1 false)
  %32 = load i64, ptr %5, align 8, !tbaa !9
  %33 = add i64 %32, 8
  store i64 %33, ptr %5, align 8, !tbaa !9
  br label %34

34:                                               ; preds = %27, %2
  %35 = getelementptr inbounds %class.PPSQueryMessage, ptr %9, i32 0, i32 1
  %36 = load i64, ptr %35, align 8, !tbaa !11
  %37 = icmp eq i64 %36, 3
  br i1 %37, label %38, label %45

38:                                               ; preds = %34
  %39 = load ptr, ptr %4, align 8, !tbaa !5
  %40 = load i64, ptr %5, align 8, !tbaa !9
  %41 = getelementptr inbounds i8, ptr %39, i64 %40
  %42 = getelementptr inbounds %class.PPSQueryMessage, ptr %9, i32 0, i32 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %41, ptr align 8 %42, i64 8, i1 false)
  %43 = load i64, ptr %5, align 8, !tbaa !9
  %44 = add i64 %43, 8
  store i64 %44, ptr %5, align 8, !tbaa !9
  br label %45

45:                                               ; preds = %38, %34
  %46 = getelementptr inbounds %class.PPSQueryMessage, ptr %9, i32 0, i32 1
  %47 = load i64, ptr %46, align 8, !tbaa !11
  %48 = icmp eq i64 %47, 2
  br i1 %48, label %49, label %56

49:                                               ; preds = %45
  %50 = load ptr, ptr %4, align 8, !tbaa !5
  %51 = load i64, ptr %5, align 8, !tbaa !9
  %52 = getelementptr inbounds i8, ptr %50, i64 %51
  %53 = getelementptr inbounds %class.PPSQueryMessage, ptr %9, i32 0, i32 5
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %52, ptr align 8 %53, i64 8, i1 false)
  %54 = load i64, ptr %5, align 8, !tbaa !9
  %55 = add i64 %54, 8
  store i64 %55, ptr %5, align 8, !tbaa !9
  br label %56

56:                                               ; preds = %49, %45
  %57 = getelementptr inbounds %class.PPSQueryMessage, ptr %9, i32 0, i32 1
  %58 = load i64, ptr %57, align 8, !tbaa !11
  %59 = icmp eq i64 %58, 5
  br i1 %59, label %60, label %67

60:                                               ; preds = %56
  %61 = load ptr, ptr %4, align 8, !tbaa !5
  %62 = load i64, ptr %5, align 8, !tbaa !9
  %63 = getelementptr inbounds i8, ptr %61, i64 %62
  %64 = getelementptr inbounds %class.PPSQueryMessage, ptr %9, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %63, ptr align 8 %64, i64 8, i1 false)
  %65 = load i64, ptr %5, align 8, !tbaa !9
  %66 = add i64 %65, 8
  store i64 %66, ptr %5, align 8, !tbaa !9
  br label %67

67:                                               ; preds = %60, %56
  %68 = getelementptr inbounds %class.PPSQueryMessage, ptr %9, i32 0, i32 1
  %69 = load i64, ptr %68, align 8, !tbaa !11
  %70 = icmp eq i64 %69, 4
  br i1 %70, label %71, label %78

71:                                               ; preds = %67
  %72 = load ptr, ptr %4, align 8, !tbaa !5
  %73 = load i64, ptr %5, align 8, !tbaa !9
  %74 = getelementptr inbounds i8, ptr %72, i64 %73
  %75 = getelementptr inbounds %class.PPSQueryMessage, ptr %9, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %74, ptr align 8 %75, i64 8, i1 false)
  %76 = load i64, ptr %5, align 8, !tbaa !9
  %77 = add i64 %76, 8
  store i64 %77, ptr %5, align 8, !tbaa !9
  br label %78

78:                                               ; preds = %71, %67
  %79 = getelementptr inbounds %class.PPSQueryMessage, ptr %9, i32 0, i32 1
  %80 = load i64, ptr %79, align 8, !tbaa !11
  %81 = icmp eq i64 %80, 6
  br i1 %81, label %82, label %89

82:                                               ; preds = %78
  %83 = load ptr, ptr %4, align 8, !tbaa !5
  %84 = load i64, ptr %5, align 8, !tbaa !9
  %85 = getelementptr inbounds i8, ptr %83, i64 %84
  %86 = getelementptr inbounds %class.PPSQueryMessage, ptr %9, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %85, ptr align 8 %86, i64 8, i1 false)
  %87 = load i64, ptr %5, align 8, !tbaa !9
  %88 = add i64 %87, 8
  store i64 %88, ptr %5, align 8, !tbaa !9
  br label %89

89:                                               ; preds = %82, %78
  %90 = getelementptr inbounds %class.PPSQueryMessage, ptr %9, i32 0, i32 1
  %91 = load i64, ptr %90, align 8, !tbaa !11
  %92 = icmp eq i64 %91, 7
  br i1 %92, label %93, label %100

93:                                               ; preds = %89
  %94 = load ptr, ptr %4, align 8, !tbaa !5
  %95 = load i64, ptr %5, align 8, !tbaa !9
  %96 = getelementptr inbounds i8, ptr %94, i64 %95
  %97 = getelementptr inbounds %class.PPSQueryMessage, ptr %9, i32 0, i32 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %96, ptr align 8 %97, i64 8, i1 false)
  %98 = load i64, ptr %5, align 8, !tbaa !9
  %99 = add i64 %98, 8
  store i64 %99, ptr %5, align 8, !tbaa !9
  br label %100

100:                                              ; preds = %93, %89
  %101 = getelementptr inbounds %class.PPSQueryMessage, ptr %9, i32 0, i32 1
  %102 = load i64, ptr %101, align 8, !tbaa !11
  %103 = icmp eq i64 %102, 8
  br i1 %103, label %104, label %111

104:                                              ; preds = %100
  %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.PPSQueryMessage, ptr %9, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %107, ptr align 8 %108, i64 8, i1 false)
  %109 = load i64, ptr %5, align 8, !tbaa !9
  %110 = add i64 %109, 8
  store i64 %110, ptr %5, align 8, !tbaa !9
  br label %111

111:                                              ; preds = %104, %100
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %112 = getelementptr inbounds %class.PPSQueryMessage, ptr %9, i32 0, i32 6
  %113 = call noundef i64 @_ZN5ArrayImE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %112)
  store i64 %113, ptr %6, align 8, !tbaa !9
  %114 = load ptr, ptr %4, align 8, !tbaa !5
  %115 = load i64, ptr %5, align 8, !tbaa !9
  %116 = getelementptr inbounds i8, ptr %114, i64 %115
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %116, ptr align 8 %6, i64 8, i1 false)
  %117 = load i64, ptr %5, align 8, !tbaa !9
  %118 = add i64 %117, 8
  store i64 %118, 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 %119

119:                                              ; preds = %134, %111
  %120 = load i64, ptr %7, align 8, !tbaa !9
  %121 = getelementptr inbounds %class.PPSQueryMessage, ptr %9, i32 0, i32 6
  %122 = call noundef i64 @_ZN5ArrayImE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %121)
  %123 = icmp ult i64 %120, %122
  br i1 %123, label %125, label %124

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

125:                                              ; preds = %119
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %126 = getelementptr inbounds %class.PPSQueryMessage, ptr %9, i32 0, i32 6
  %127 = load i64, ptr %7, align 8, !tbaa !9
  %128 = call noundef i64 @_ZN5ArrayImEixEm(ptr noundef nonnull align 8 dereferenceable(24) %126, i64 noundef %127)
  store i64 %128, ptr %8, align 8, !tbaa !9
  %129 = load ptr, ptr %4, align 8, !tbaa !5
  %130 = load i64, ptr %5, align 8, !tbaa !9
  %131 = getelementptr inbounds i8, ptr %129, i64 %130
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %131, ptr align 8 %8, i64 8, i1 false)
  %132 = load i64, ptr %5, align 8, !tbaa !9
  %133 = add i64 %132, 8
  store i64 %133, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  br label %134

134:                                              ; preds = %125
  %135 = load i64, ptr %7, align 8, !tbaa !9
  %136 = add i64 %135, 1
  store i64 %136, ptr %7, align 8, !tbaa !9
  br label %119, !llvm.loop !18

137:                                              ; preds = %124
  %138 = load i64, ptr %5, align 8, !tbaa !9
  %139 = load ptr, ptr %9, align 8, !tbaa !20
  %140 = getelementptr inbounds ptr, ptr %139, i64 2
  %141 = load ptr, ptr %140, align 8
  %142 = call noundef i64 %141(ptr noundef nonnull align 8 dereferenceable(200) %9)
  %143 = icmp eq i64 %138, %142
  br i1 %143, label %144, label %145

144:                                              ; preds = %137
  br label %147

145:                                              ; preds = %137
  call void @__assert_fail(ptr noundef @.str.9, ptr noundef @.str.1, i32 noundef 1765, ptr noundef @__PRETTY_FUNCTION__._ZN15PPSQueryMessage11copy_to_bufEPc) #6
  unreachable

146:                                              ; No predecessors!
  br label %147

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

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 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 = { 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 = { 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 = !{!12, !10, i64 136}
!12 = !{!"_ZTS15PPSQueryMessage", !13, i64 0, !10, i64 136, !10, i64 144, !10, i64 152, !10, i64 160, !10, i64 168, !17, i64 176}
!13 = !{!"_ZTS12QueryMessage", !14, i64 0, !10, i64 120, !10, i64 128}
!14 = !{!"_ZTS7Message", !15, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !16, i64 64, !16, i64 72, !16, i64 80, !16, i64 88, !16, i64 96, !16, i64 104, !16, i64 112}
!15 = !{!"_ZTS10RemReqType", !7, i64 0}
!16 = !{!"double", !7, i64 0}
!17 = !{!"_ZTS5ArrayImE", !6, i64 0, !10, i64 8, !10, i64 16}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!21, !21, i64 0}
!21 = !{!"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__._ZN15PPSQueryMessage11copy_to_bufEPc = external hidden unnamed_addr constant [50 x i8], align 1

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN12QueryMessage8get_sizeEv(ptr noundef nonnull align 8 dereferenceable(136)) unnamed_addr #1 align 2

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN15PPSQueryMessage11copy_to_bufEPc(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef %1) unnamed_addr #2 align 2 {
  tail call void @_ZN12QueryMessage11copy_to_bufEPc(ptr noundef nonnull align 8 dereferenceable(136) %0, ptr noundef %1)
  %3 = tail call noundef i64 @_ZN12QueryMessage8get_sizeEv(ptr noundef nonnull align 8 dereferenceable(136) %0)
  %4 = getelementptr inbounds i8, ptr %1, i64 %3
  %5 = getelementptr inbounds i8, ptr %0, i64 136
  %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 144
  %9 = load i64, ptr %8, align 8
  store i64 %9, ptr %7, align 1
  %10 = add i64 %3, 16
  %11 = load i64, ptr %5, align 8, !tbaa !5
  %12 = icmp eq i64 %11, 1
  br i1 %12, label %13, label %18

13:                                               ; preds = %2
  %14 = getelementptr inbounds i8, ptr %1, i64 %10
  %15 = getelementptr inbounds i8, ptr %0, i64 152
  %16 = load i64, ptr %15, align 8
  store i64 %16, ptr %14, align 1
  %17 = add i64 %3, 24
  %.pr = load i64, ptr %5, align 8, !tbaa !5
  br label %18

18:                                               ; preds = %13, %2
  %19 = phi i64 [ %.pr, %13 ], [ %11, %2 ]
  %.0 = phi i64 [ %17, %13 ], [ %10, %2 ]
  %20 = icmp eq i64 %19, 3
  br i1 %20, label %21, label %26

21:                                               ; preds = %18
  %22 = getelementptr inbounds i8, ptr %1, i64 %.0
  %23 = getelementptr inbounds i8, ptr %0, i64 160
  %24 = load i64, ptr %23, align 8
  store i64 %24, ptr %22, align 1
  %25 = add i64 %.0, 8
  %.pre = load i64, ptr %5, align 8, !tbaa !5
  br label %26

26:                                               ; preds = %21, %18
  %27 = phi i64 [ %.pre, %21 ], [ %19, %18 ]
  %.1 = phi i64 [ %25, %21 ], [ %.0, %18 ]
  %28 = icmp eq i64 %27, 2
  br i1 %28, label %29, label %34

29:                                               ; preds = %26
  %30 = getelementptr inbounds i8, ptr %1, i64 %.1
  %31 = getelementptr inbounds i8, ptr %0, i64 168
  %32 = load i64, ptr %31, align 8
  store i64 %32, ptr %30, align 1
  %33 = add i64 %.1, 8
  %.pr43 = load i64, ptr %5, align 8, !tbaa !5
  br label %34

34:                                               ; preds = %29, %26
  %35 = phi i64 [ %.pr43, %29 ], [ %27, %26 ]
  %.2 = phi i64 [ %33, %29 ], [ %.1, %26 ]
  %36 = icmp eq i64 %35, 5
  br i1 %36, label %37, label %42

37:                                               ; preds = %34
  %38 = getelementptr inbounds i8, ptr %1, i64 %.2
  %39 = getelementptr inbounds i8, ptr %0, i64 152
  %40 = load i64, ptr %39, align 8
  store i64 %40, ptr %38, align 1
  %41 = add i64 %.2, 8
  %.pre50 = load i64, ptr %5, align 8, !tbaa !5
  br label %42

42:                                               ; preds = %37, %34
  %43 = phi i64 [ %.pre50, %37 ], [ %35, %34 ]
  %.3 = phi i64 [ %41, %37 ], [ %.2, %34 ]
  %44 = icmp eq i64 %43, 4
  br i1 %44, label %45, label %50

45:                                               ; preds = %42
  %46 = getelementptr inbounds i8, ptr %1, i64 %.3
  %47 = getelementptr inbounds i8, ptr %0, i64 152
  %48 = load i64, ptr %47, align 8
  store i64 %48, ptr %46, align 1
  %49 = add i64 %.3, 8
  %.pr44 = load i64, ptr %5, align 8, !tbaa !5
  br label %50

50:                                               ; preds = %45, %42
  %51 = phi i64 [ %.pr44, %45 ], [ %43, %42 ]
  %.4 = phi i64 [ %49, %45 ], [ %.3, %42 ]
  %52 = icmp eq i64 %51, 6
  br i1 %52, label %53, label %58

53:                                               ; preds = %50
  %54 = getelementptr inbounds i8, ptr %1, i64 %.4
  %55 = getelementptr inbounds i8, ptr %0, i64 152
  %56 = load i64, ptr %55, align 8
  store i64 %56, ptr %54, align 1
  %57 = add i64 %.4, 8
  %.pre51 = load i64, ptr %5, align 8, !tbaa !5
  br label %58

58:                                               ; preds = %53, %50
  %59 = phi i64 [ %.pre51, %53 ], [ %51, %50 ]
  %.5 = phi i64 [ %57, %53 ], [ %.4, %50 ]
  %60 = icmp eq i64 %59, 7
  br i1 %60, label %61, label %66

61:                                               ; preds = %58
  %62 = getelementptr inbounds i8, ptr %1, i64 %.5
  %63 = getelementptr inbounds i8, ptr %0, i64 160
  %64 = load i64, ptr %63, align 8
  store i64 %64, ptr %62, align 1
  %65 = add i64 %.5, 8
  %.pr45 = load i64, ptr %5, align 8, !tbaa !5
  br label %66

66:                                               ; preds = %61, %58
  %67 = phi i64 [ %.pr45, %61 ], [ %59, %58 ]
  %.6 = phi i64 [ %65, %61 ], [ %.5, %58 ]
  %68 = icmp eq i64 %67, 8
  br i1 %68, label %69, label %74

69:                                               ; preds = %66
  %70 = getelementptr inbounds i8, ptr %1, i64 %.6
  %71 = getelementptr inbounds i8, ptr %0, i64 152
  %72 = load i64, ptr %71, align 8
  store i64 %72, ptr %70, align 1
  %73 = add i64 %.6, 8
  br label %74

74:                                               ; preds = %69, %66
  %.7 = phi i64 [ %73, %69 ], [ %.6, %66 ]
  %75 = getelementptr inbounds i8, ptr %0, i64 176
  %76 = tail call noundef i64 @_ZN5ArrayImE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %75)
  %77 = getelementptr inbounds i8, ptr %1, i64 %.7
  store i64 %76, ptr %77, align 1
  %.846 = add i64 %.7, 8
  %78 = tail call noundef i64 @_ZN5ArrayImE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %75)
  %.not = icmp eq i64 %78, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %74
  %.8.lcssa = phi i64 [ %.846, %74 ], [ %.8, %.lr.ph ]
  %79 = load ptr, ptr %0, align 8, !tbaa !16
  %80 = getelementptr inbounds i8, ptr %79, i64 16
  %81 = load ptr, ptr %80, align 8
  %82 = tail call noundef i64 %81(ptr noundef nonnull align 8 dereferenceable(200) %0)
  %83 = icmp eq i64 %.8.lcssa, %82
  br i1 %83, label %90, label %89

.lr.ph:                                           ; preds = %74, %.lr.ph
  %.848 = phi i64 [ %.8, %.lr.ph ], [ %.846, %74 ]
  %.04247 = phi i64 [ %86, %.lr.ph ], [ 0, %74 ]
  %84 = tail call noundef i64 @_ZN5ArrayImEixEm(ptr noundef nonnull align 8 dereferenceable(24) %75, i64 noundef %.04247)
  %85 = getelementptr inbounds i8, ptr %1, i64 %.848
  store i64 %84, ptr %85, align 1
  %86 = add nuw i64 %.04247, 1
  %.8 = add i64 %.848, 8
  %87 = tail call noundef i64 @_ZN5ArrayImE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %75)
  %88 = icmp ult i64 %86, %87
  br i1 %88, label %.lr.ph, label %._crit_edge, !llvm.loop !18

89:                                               ; preds = %._crit_edge
  tail call void @__assert_fail(ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.1, i32 noundef 1765, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN15PPSQueryMessage11copy_to_bufEPc) #3
  unreachable

90:                                               ; preds = %._crit_edge
  ret void
}

attributes #0 = { 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 #1 = { 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 #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 = { 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, !12, i64 136}
!6 = !{!"_ZTS15PPSQueryMessage", !7, i64 0, !12, i64 136, !12, i64 144, !12, i64 152, !12, i64 160, !12, i64 168, !14, i64 176}
!7 = !{!"_ZTS12QueryMessage", !8, i64 0, !12, i64 120, !12, i64 128}
!8 = !{!"_ZTS7Message", !9, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !12, i64 48, !12, i64 56, !13, i64 64, !13, i64 72, !13, i64 80, !13, i64 88, !13, i64 96, !13, i64 104, !13, i64 112}
!9 = !{!"_ZTS10RemReqType", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C++ TBAA"}
!12 = !{!"long", !10, i64 0}
!13 = !{!"double", !10, i64 0}
!14 = !{!"_ZTS5ArrayImE", !15, i64 0, !12, i64 8, !12, i64 16}
!15 = !{!"any pointer", !10, i64 0}
!16 = !{!17, !17, i64 0}
!17 = !{!"vtable pointer", !11, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}


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