; LLVM IR from yinqiwen/ardb :: src/common/channel/codec/redis_reply.ll (ZN4ardb5codec14RedisReplyPool8AllocateEv)

; 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"

%"struct.ardb::codec::RedisReply" = type { ptr, i32, %"class.std::__cxx11::basic_string", i64, ptr, ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.ardb::codec::RedisReplyPool" = type { i32, i32, %"class.std::vector", %"class.std::deque" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<ardb::codec::RedisReply, std::allocator<ardb::codec::RedisReply>>::_Vector_impl" }
%"struct.std::_Vector_base<ardb::codec::RedisReply, std::allocator<ardb::codec::RedisReply>>::_Vector_impl" = type { %"struct.std::_Vector_base<ardb::codec::RedisReply, std::allocator<ardb::codec::RedisReply>>::_Vector_impl_data" }
%"struct.std::_Vector_base<ardb::codec::RedisReply, std::allocator<ardb::codec::RedisReply>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<ardb::codec::RedisReply, std::allocator<ardb::codec::RedisReply>>::_Deque_impl" }
%"struct.std::_Deque_base<ardb::codec::RedisReply, std::allocator<ardb::codec::RedisReply>>::_Deque_impl" = type { %"struct.std::_Deque_base<ardb::codec::RedisReply, std::allocator<ardb::codec::RedisReply>>::_Deque_impl_data" }
%"struct.std::_Deque_base<ardb::codec::RedisReply, std::allocator<ardb::codec::RedisReply>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator", %"struct.std::_Deque_iterator" }
%"struct.std::_Deque_iterator" = type { ptr, ptr, ptr, ptr }

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4ardb5codec10RedisReply7SetPoolEPNS0_14RedisReplyPoolE(ptr noundef nonnull align 8 dereferenceable(72), ptr noundef) #1 align 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
define dso_local noundef nonnull align 8 dereferenceable(72) ptr @_ZN4ardb5codec14RedisReplyPool8AllocateEv(ptr noundef nonnull align 8 dereferenceable(112) %0) #2 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca %"struct.ardb::codec::RedisReply", align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  %9 = load ptr, ptr %3, align 8
  %10 = getelementptr inbounds %"class.ardb::codec::RedisReplyPool", ptr %9, i32 0, i32 1
  %11 = load i32, ptr %10, align 4, !tbaa !9
  %12 = zext i32 %11 to i64
  %13 = getelementptr inbounds %"class.ardb::codec::RedisReplyPool", ptr %9, i32 0, i32 2
  %14 = call noundef i64 @_ZNKSt6vectorIN4ardb5codec10RedisReplyESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #3
  %15 = icmp uge i64 %12, %14
  br i1 %15, label %16, label %49

16:                                               ; preds = %1
  br label %17

17:                                               ; preds = %30, %16
  %18 = getelementptr inbounds %"class.ardb::codec::RedisReplyPool", ptr %9, i32 0, i32 1
  %19 = load i32, ptr %18, align 4, !tbaa !9
  %20 = zext i32 %19 to i64
  %21 = getelementptr inbounds %"class.ardb::codec::RedisReplyPool", ptr %9, i32 0, i32 2
  %22 = call noundef i64 @_ZNKSt6vectorIN4ardb5codec10RedisReplyESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %21) #3
  %23 = sub i64 %20, %22
  %24 = getelementptr inbounds %"class.ardb::codec::RedisReplyPool", ptr %9, i32 0, i32 3
  %25 = call noundef i64 @_ZNKSt5dequeIN4ardb5codec10RedisReplyESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(80) %24) #3
  %26 = icmp uge i64 %23, %25
  br i1 %26, label %27, label %35

27:                                               ; preds = %17
  call void @llvm.lifetime.start.p0(i64 72, ptr %4) #3
  call void @_ZN4ardb5codec10RedisReplyC1Ev(ptr noundef nonnull align 8 dereferenceable(72) %4)
  invoke void @_ZN4ardb5codec10RedisReply7SetPoolEPNS0_14RedisReplyPoolE(ptr noundef nonnull align 8 dereferenceable(72) %4, ptr noundef %9)
          to label %28 unwind label %31

28:                                               ; preds = %27
  %29 = getelementptr inbounds %"class.ardb::codec::RedisReplyPool", ptr %9, i32 0, i32 3
  invoke void @_ZNSt5dequeIN4ardb5codec10RedisReplyESaIS2_EE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(80) %29, ptr noundef nonnull align 8 dereferenceable(72) %4)
          to label %30 unwind label %31

30:                                               ; preds = %28
  call void @_ZN4ardb5codec10RedisReplyD1Ev(ptr noundef nonnull align 8 dereferenceable(72) %4) #3
  call void @llvm.lifetime.end.p0(i64 72, ptr %4) #3
  br label %17, !llvm.loop !22

31:                                               ; preds = %28, %27
  %32 = landingpad { ptr, i32 }
          cleanup
  %33 = extractvalue { ptr, i32 } %32, 0
  store ptr %33, ptr %5, align 8
  %34 = extractvalue { ptr, i32 } %32, 1
  store i32 %34, ptr %6, align 4
  call void @_ZN4ardb5codec10RedisReplyD1Ev(ptr noundef nonnull align 8 dereferenceable(72) %4) #3
  call void @llvm.lifetime.end.p0(i64 72, ptr %4) #3
  br label %60

35:                                               ; preds = %17
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  %36 = getelementptr inbounds %"class.ardb::codec::RedisReplyPool", ptr %9, i32 0, i32 3
  %37 = getelementptr inbounds %"class.ardb::codec::RedisReplyPool", ptr %9, i32 0, i32 1
  %38 = load i32, ptr %37, align 4, !tbaa !9
  %39 = zext i32 %38 to i64
  %40 = getelementptr inbounds %"class.ardb::codec::RedisReplyPool", ptr %9, i32 0, i32 2
  %41 = call noundef i64 @_ZNKSt6vectorIN4ardb5codec10RedisReplyESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %40) #3
  %42 = sub i64 %39, %41
  %43 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZNSt5dequeIN4ardb5codec10RedisReplyESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(80) %36, i64 noundef %42) #3
  store ptr %43, ptr %7, align 8, !tbaa !5
  %44 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZN4ardb5codec10RedisReply5ClearEv(ptr noundef nonnull align 8 dereferenceable(72) %44)
  %45 = getelementptr inbounds %"class.ardb::codec::RedisReplyPool", ptr %9, i32 0, i32 1
  %46 = load i32, ptr %45, align 4, !tbaa !9
  %47 = add i32 %46, 1
  store i32 %47, ptr %45, align 4, !tbaa !9
  %48 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %48, ptr %2, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  br label %58

49:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  %50 = getelementptr inbounds %"class.ardb::codec::RedisReplyPool", ptr %9, i32 0, i32 2
  %51 = getelementptr inbounds %"class.ardb::codec::RedisReplyPool", ptr %9, i32 0, i32 1
  %52 = load i32, ptr %51, align 4, !tbaa !9
  %53 = add i32 %52, 1
  store i32 %53, ptr %51, align 4, !tbaa !9
  %54 = zext i32 %52 to i64
  %55 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZNSt6vectorIN4ardb5codec10RedisReplyESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %50, i64 noundef %54) #3
  store ptr %55, ptr %8, align 8, !tbaa !5
  %56 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN4ardb5codec10RedisReply5ClearEv(ptr noundef nonnull align 8 dereferenceable(72) %56)
  %57 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %57, ptr %2, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  br label %58

58:                                               ; preds = %49, %35
  %59 = load ptr, ptr %2, align 8
  ret ptr %59

60:                                               ; preds = %31
  %61 = load ptr, ptr %5, align 8
  %62 = load i32, ptr %6, align 4
  %63 = insertvalue { ptr, i32 } poison, ptr %61, 0
  %64 = insertvalue { ptr, i32 } %63, i32 %62, 1
  resume { ptr, i32 } %64
}

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt5dequeIN4ardb5codec10RedisReplyESaIS2_EE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 8 dereferenceable(72)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(72) ptr @_ZNSt5dequeIN4ardb5codec10RedisReplyESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(80), i64 noundef) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4ardb5codec10RedisReply5ClearEv(ptr noundef nonnull align 8 dereferenceable(72)) #2 align 2

declare void @_ZN4ardb5codec10RedisReplyC1Ev(ptr)

declare void @_ZN4ardb5codec10RedisReplyD1Ev(ptr)

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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, !11, i64 4}
!10 = !{!"_ZTSN4ardb5codec14RedisReplyPoolE", !11, i64 0, !11, i64 4, !12, i64 8, !16, i64 32}
!11 = !{!"int", !7, i64 0}
!12 = !{!"_ZTSSt6vectorIN4ardb5codec10RedisReplyESaIS2_EE", !13, i64 0}
!13 = !{!"_ZTSSt12_Vector_baseIN4ardb5codec10RedisReplyESaIS2_EE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseIN4ardb5codec10RedisReplyESaIS2_EE12_Vector_implE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIN4ardb5codec10RedisReplyESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!16 = !{!"_ZTSSt5dequeIN4ardb5codec10RedisReplyESaIS2_EE", !17, i64 0}
!17 = !{!"_ZTSSt11_Deque_baseIN4ardb5codec10RedisReplyESaIS2_EE", !18, i64 0}
!18 = !{!"_ZTSNSt11_Deque_baseIN4ardb5codec10RedisReplyESaIS2_EE11_Deque_implE", !19, i64 0}
!19 = !{!"_ZTSNSt11_Deque_baseIN4ardb5codec10RedisReplyESaIS2_EE16_Deque_impl_dataE", !6, i64 0, !20, i64 8, !21, i64 16, !21, i64 48}
!20 = !{!"long", !7, i64 0}
!21 = !{!"_ZTSSt15_Deque_iteratorIN4ardb5codec10RedisReplyERS2_PS2_E", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}


; 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"

%"struct.ardb::codec::RedisReply" = type { ptr, i32, %"class.std::__cxx11::basic_string", i64, ptr, ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }

declare i32 @__gxx_personality_v0(...)

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef nonnull align 8 dereferenceable(72) ptr @_ZN4ardb5codec14RedisReplyPool8AllocateEv(ptr noundef nonnull align 8 dereferenceable(112) %0) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"struct.ardb::codec::RedisReply", align 8
  %3 = getelementptr inbounds i8, ptr %0, i64 4
  %4 = load i32, ptr %3, align 4, !tbaa !5
  %5 = zext i32 %4 to i64
  %6 = getelementptr inbounds i8, ptr %0, i64 8
  %7 = tail call noundef i64 @_ZNKSt6vectorIN4ardb5codec10RedisReplyESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #3
  %.not = icmp ugt i64 %7, %5
  %8 = load i32, ptr %3, align 4, !tbaa !5
  br i1 %.not, label %29, label %.preheader

.preheader:                                       ; preds = %1
  %9 = zext i32 %8 to i64
  %10 = tail call noundef i64 @_ZNKSt6vectorIN4ardb5codec10RedisReplyESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #3
  %11 = sub i64 %9, %10
  %12 = getelementptr inbounds i8, ptr %0, i64 32
  %13 = tail call noundef i64 @_ZNKSt5dequeIN4ardb5codec10RedisReplyESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(80) %12) #3
  %.not79 = icmp ult i64 %11, %13
  br i1 %.not79, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader, %14
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %2) #3
  call void @_ZN4ardb5codec10RedisReplyC1Ev(ptr noundef nonnull align 8 dereferenceable(72) %2)
  call void @_ZN4ardb5codec10RedisReply7SetPoolEPNS0_14RedisReplyPoolE(ptr noundef nonnull align 8 dereferenceable(72) %2, ptr noundef nonnull %0)
  invoke void @_ZNSt5dequeIN4ardb5codec10RedisReplyESaIS2_EE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(80) %12, ptr noundef nonnull align 8 dereferenceable(72) %2)
          to label %14 unwind label %20

14:                                               ; preds = %.lr.ph
  call void @_ZN4ardb5codec10RedisReplyD1Ev(ptr noundef nonnull align 8 dereferenceable(72) %2) #3
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %2) #3
  %15 = load i32, ptr %3, align 4, !tbaa !5
  %16 = zext i32 %15 to i64
  %17 = call noundef i64 @_ZNKSt6vectorIN4ardb5codec10RedisReplyESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #3
  %18 = sub i64 %16, %17
  %19 = call noundef i64 @_ZNKSt5dequeIN4ardb5codec10RedisReplyESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(80) %12) #3
  %.not7 = icmp ult i64 %18, %19
  br i1 %.not7, label %._crit_edge, label %.lr.ph, !llvm.loop !21

20:                                               ; preds = %.lr.ph
  %21 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4ardb5codec10RedisReplyD1Ev(ptr noundef nonnull align 8 dereferenceable(72) %2) #3
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %2) #3
  resume { ptr, i32 } %21

._crit_edge:                                      ; preds = %14, %.preheader
  %22 = load i32, ptr %3, align 4, !tbaa !5
  %23 = zext i32 %22 to i64
  %24 = call noundef i64 @_ZNKSt6vectorIN4ardb5codec10RedisReplyESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #3
  %25 = sub i64 %23, %24
  %26 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZNSt5dequeIN4ardb5codec10RedisReplyESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(80) %12, i64 noundef %25) #3
  call void @_ZN4ardb5codec10RedisReply5ClearEv(ptr noundef nonnull align 8 dereferenceable(72) %26)
  %27 = load i32, ptr %3, align 4, !tbaa !5
  %28 = add i32 %27, 1
  store i32 %28, ptr %3, align 4, !tbaa !5
  br label %33

29:                                               ; preds = %1
  %30 = add i32 %8, 1
  store i32 %30, ptr %3, align 4, !tbaa !5
  %31 = zext i32 %8 to i64
  %32 = tail call noundef nonnull align 8 dereferenceable(72) ptr @_ZNSt6vectorIN4ardb5codec10RedisReplyESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %31) #3
  tail call void @_ZN4ardb5codec10RedisReply5ClearEv(ptr noundef nonnull align 8 dereferenceable(72) %32)
  br label %33

33:                                               ; preds = %29, %._crit_edge
  %.0 = phi ptr [ %26, %._crit_edge ], [ %32, %29 ]
  ret ptr %.0
}

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt5dequeIN4ardb5codec10RedisReplyESaIS2_EE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 8 dereferenceable(72)) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4ardb5codec10RedisReply5ClearEv(ptr noundef nonnull align 8 dereferenceable(72)) local_unnamed_addr #2 align 2

declare void @_ZN4ardb5codec10RedisReplyC1Ev(ptr) local_unnamed_addr

declare void @_ZN4ardb5codec10RedisReplyD1Ev(ptr) local_unnamed_addr

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 4}
!6 = !{!"_ZTSN4ardb5codec14RedisReplyPoolE", !7, i64 0, !7, i64 4, !10, i64 8, !15, i64 32}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSSt6vectorIN4ardb5codec10RedisReplyESaIS2_EE", !11, i64 0}
!11 = !{!"_ZTSSt12_Vector_baseIN4ardb5codec10RedisReplyESaIS2_EE", !12, i64 0}
!12 = !{!"_ZTSNSt12_Vector_baseIN4ardb5codec10RedisReplyESaIS2_EE12_Vector_implE", !13, i64 0}
!13 = !{!"_ZTSNSt12_Vector_baseIN4ardb5codec10RedisReplyESaIS2_EE17_Vector_impl_dataE", !14, i64 0, !14, i64 8, !14, i64 16}
!14 = !{!"any pointer", !8, i64 0}
!15 = !{!"_ZTSSt5dequeIN4ardb5codec10RedisReplyESaIS2_EE", !16, i64 0}
!16 = !{!"_ZTSSt11_Deque_baseIN4ardb5codec10RedisReplyESaIS2_EE", !17, i64 0}
!17 = !{!"_ZTSNSt11_Deque_baseIN4ardb5codec10RedisReplyESaIS2_EE11_Deque_implE", !18, i64 0}
!18 = !{!"_ZTSNSt11_Deque_baseIN4ardb5codec10RedisReplyESaIS2_EE16_Deque_impl_dataE", !14, i64 0, !19, i64 8, !20, i64 16, !20, i64 48}
!19 = !{!"long", !8, i64 0}
!20 = !{!"_ZTSSt15_Deque_iteratorIN4ardb5codec10RedisReplyERS2_PS2_E", !14, i64 0, !14, i64 8, !14, i64 16, !14, i64 24}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}


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