; LLVM IR from mitdbg/deneva :: transport/message.ll (ZN15PPSQueryMessage13copy_from_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__._ZN15PPSQueryMessage13copy_from_bufEPc = external hidden unnamed_addr constant [52 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 @_ZN12QueryMessage13copy_from_bufEPc(ptr noundef nonnull align 8 dereferenceable(136), ptr noundef) unnamed_addr #4 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN15PPSQueryMessage13copy_from_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 @_ZN12QueryMessage13copy_from_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 = getelementptr inbounds %class.PPSQueryMessage, ptr %9, i32 0, i32 1
  %13 = load ptr, ptr %4, align 8, !tbaa !5
  %14 = load i64, ptr %5, align 8, !tbaa !9
  %15 = getelementptr inbounds i8, ptr %13, i64 %14
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %12, ptr align 1 %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 = getelementptr inbounds %class.PPSQueryMessage, ptr %9, i32 0, i32 2
  %19 = load ptr, ptr %4, align 8, !tbaa !5
  %20 = load i64, ptr %5, align 8, !tbaa !9
  %21 = getelementptr inbounds i8, ptr %19, i64 %20
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %18, ptr align 1 %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 = getelementptr inbounds %class.PPSQueryMessage, ptr %9, i32 0, i32 3
  %29 = load ptr, ptr %4, align 8, !tbaa !5
  %30 = load i64, ptr %5, align 8, !tbaa !9
  %31 = getelementptr inbounds i8, ptr %29, i64 %30
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %28, ptr align 1 %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 = getelementptr inbounds %class.PPSQueryMessage, ptr %9, i32 0, i32 4
  %40 = load ptr, ptr %4, align 8, !tbaa !5
  %41 = load i64, ptr %5, align 8, !tbaa !9
  %42 = getelementptr inbounds i8, ptr %40, i64 %41
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %39, ptr align 1 %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 = getelementptr inbounds %class.PPSQueryMessage, ptr %9, i32 0, i32 5
  %51 = load ptr, ptr %4, align 8, !tbaa !5
  %52 = load i64, ptr %5, align 8, !tbaa !9
  %53 = getelementptr inbounds i8, ptr %51, i64 %52
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %50, ptr align 1 %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 = getelementptr inbounds %class.PPSQueryMessage, ptr %9, i32 0, i32 3
  %62 = load ptr, ptr %4, align 8, !tbaa !5
  %63 = load i64, ptr %5, align 8, !tbaa !9
  %64 = getelementptr inbounds i8, ptr %62, i64 %63
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %61, ptr align 1 %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 = getelementptr inbounds %class.PPSQueryMessage, ptr %9, i32 0, i32 3
  %73 = load ptr, ptr %4, align 8, !tbaa !5
  %74 = load i64, ptr %5, align 8, !tbaa !9
  %75 = getelementptr inbounds i8, ptr %73, i64 %74
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %72, ptr align 1 %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 = getelementptr inbounds %class.PPSQueryMessage, ptr %9, i32 0, i32 3
  %84 = load ptr, ptr %4, align 8, !tbaa !5
  %85 = load i64, ptr %5, align 8, !tbaa !9
  %86 = getelementptr inbounds i8, ptr %84, i64 %85
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %83, ptr align 1 %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 = getelementptr inbounds %class.PPSQueryMessage, ptr %9, i32 0, i32 4
  %95 = load ptr, ptr %4, align 8, !tbaa !5
  %96 = load i64, ptr %5, align 8, !tbaa !9
  %97 = getelementptr inbounds i8, ptr %95, i64 %96
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %94, ptr align 1 %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 = getelementptr inbounds %class.PPSQueryMessage, ptr %9, i32 0, i32 3
  %106 = load ptr, ptr %4, align 8, !tbaa !5
  %107 = load i64, ptr %5, align 8, !tbaa !9
  %108 = getelementptr inbounds i8, ptr %106, i64 %107
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %105, ptr align 1 %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 = load ptr, ptr %4, align 8, !tbaa !5
  %113 = load i64, ptr %5, align 8, !tbaa !9
  %114 = getelementptr inbounds i8, ptr %112, i64 %113
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %6, ptr align 1 %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 = getelementptr inbounds %class.PPSQueryMessage, ptr %9, i32 0, i32 6
  %118 = load i64, ptr %6, align 8, !tbaa !9
  call void @_ZN5ArrayImE4initEm(ptr noundef nonnull align 8 dereferenceable(24) %117, i64 noundef %118)
  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 = %132, %111
  %120 = load i64, ptr %7, align 8, !tbaa !9
  %121 = load i64, ptr %6, align 8, !tbaa !9
  %122 = icmp ult i64 %120, %121
  br i1 %122, label %124, label %123

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

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

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

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

142:                                              ; preds = %135
  br label %145

143:                                              ; preds = %135
  call void @__assert_fail(ptr noundef @.str.9, ptr noundef @.str.1, i32 noundef 1717, ptr noundef @__PRETTY_FUNCTION__._ZN15PPSQueryMessage13copy_from_bufEPc) #6
  unreachable

144:                                              ; No predecessors!
  br label %145

145:                                              ; preds = %144, %142
  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__._ZN15PPSQueryMessage13copy_from_bufEPc = external hidden unnamed_addr constant [52 x i8], align 1
@switch.table._ZN15PPSQueryMessage13copy_from_bufEPc = private unnamed_addr constant [8 x i64] [i64 152, i64 168, i64 160, i64 152, i64 152, i64 152, i64 160, i64 152], align 8

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN15PPSQueryMessage13copy_from_bufEPc(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef %1) unnamed_addr #2 align 2 {
  tail call void @_ZN12QueryMessage13copy_from_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 %0, i64 136
  %5 = getelementptr inbounds i8, ptr %1, i64 %3
  %6 = load i64, ptr %5, align 1
  store i64 %6, ptr %4, align 8
  %7 = getelementptr inbounds i8, ptr %0, i64 144
  %8 = getelementptr i8, ptr %5, i64 8
  %9 = load i64, ptr %8, align 1
  store i64 %9, ptr %7, align 8
  %10 = add i64 %3, 16
  %switch.tableidx = add i64 %6, -1
  %11 = icmp ult i64 %switch.tableidx, 8
  br i1 %11, label %switch.lookup, label %.thread61

switch.lookup:                                    ; preds = %2
  %switch.gep = getelementptr inbounds [8 x i64], ptr @switch.table._ZN15PPSQueryMessage13copy_from_bufEPc, i64 0, i64 %switch.tableidx
  %switch.load = load i64, ptr %switch.gep, align 8
  %12 = getelementptr inbounds i8, ptr %0, i64 %switch.load
  %13 = getelementptr inbounds i8, ptr %1, i64 %10
  %14 = load i64, ptr %13, align 1
  store i64 %14, ptr %12, align 8
  %15 = add i64 %3, 24
  br label %.thread61

.thread61:                                        ; preds = %2, %switch.lookup
  %.7 = phi i64 [ %10, %2 ], [ %15, %switch.lookup ]
  %16 = getelementptr inbounds i8, ptr %1, i64 %.7
  %.0.copyload3 = load i64, ptr %16, align 1
  %17 = getelementptr inbounds i8, ptr %0, i64 176
  tail call void @_ZN5ArrayImE4initEm(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %.0.copyload3)
  %.863 = add i64 %.7, 8
  %.not = icmp eq i64 %.0.copyload3, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %.thread61
  %.8.lcssa = phi i64 [ %.863, %.thread61 ], [ %.8, %.lr.ph ]
  %18 = load ptr, ptr %0, align 8, !tbaa !5
  %19 = getelementptr inbounds i8, ptr %18, i64 16
  %20 = load ptr, ptr %19, align 8
  %21 = tail call noundef i64 %20(ptr noundef nonnull align 8 dereferenceable(200) %0)
  %22 = icmp eq i64 %.8.lcssa, %21
  br i1 %22, label %26, label %25

.lr.ph:                                           ; preds = %.thread61, %.lr.ph
  %.865 = phi i64 [ %.8, %.lr.ph ], [ %.863, %.thread61 ]
  %.04464 = phi i64 [ %24, %.lr.ph ], [ 0, %.thread61 ]
  %23 = getelementptr inbounds i8, ptr %1, i64 %.865
  %.0.copyload = load i64, ptr %23, align 1
  tail call void @_ZN5ArrayImE3addEm(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %.0.copyload)
  %24 = add nuw i64 %.04464, 1
  %.8 = add i64 %.865, 8
  %exitcond.not = icmp eq i64 %24, %.0.copyload3
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !8

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

26:                                               ; 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, !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,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass