; LLVM IR from yinqiwen/ardb :: src/common/channel/codec (redis_reply_codec)

; 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.std::_Deque_iterator" = type { ptr, ptr, ptr, ptr }
%"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] }

@.str = external hidden unnamed_addr constant [6 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [94 x i8], align 1
@__FUNCTION__._ZN4ardb5codec17RedisReplyEncoder6EncodeERNS_6BufferERNS0_10RedisReplyE = external hidden unnamed_addr constant [7 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [36 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN4ardb5codec17RedisReplyEncoder6EncodeERNS_6BufferERNS0_10RedisReplyE(ptr noundef nonnull align 8 dereferenceable(33) %0, ptr noundef nonnull align 8 dereferenceable(72) %1) #0 align 2 {
  %3 = alloca i1, align 1
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca [128 x i8], align 16
  %8 = alloca [128 x i8], align 16
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca double, align 8
  %12 = alloca %"struct.std::_Deque_iterator", align 8
  %13 = alloca %"struct.std::_Deque_iterator", align 8
  %14 = alloca i32, align 4
  %15 = alloca %"struct.std::_Deque_iterator", align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %16 = load ptr, ptr %5, align 8, !tbaa !5
  %17 = getelementptr inbounds %"struct.ardb::codec::RedisReply", ptr %16, i32 0, i32 1
  %18 = load i32, ptr %17, align 8, !tbaa !9
  switch i32 %18, label %153 [
    i32 4, label %19
    i32 1, label %22
    i32 6, label %47
    i32 3, label %69
    i32 1001, label %75
    i32 2, label %101
    i32 5, label %147
  ]

19:                                               ; preds = %2
  %20 = load ptr, ptr %4, align 8, !tbaa !5
  %21 = call noundef i32 (ptr, ptr, ...) @_ZN4ardb6Buffer6PrintfEPKcz(ptr noundef nonnull align 8 dereferenceable(33) %20, ptr noundef @.str)
  br label %164

22:                                               ; preds = %2
  %23 = load ptr, ptr %4, align 8, !tbaa !5
  %24 = load ptr, ptr %5, align 8, !tbaa !5
  %25 = getelementptr inbounds %"struct.ardb::codec::RedisReply", ptr %24, i32 0, i32 2
  %26 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %25) #6
  %27 = call noundef i32 (ptr, ptr, ...) @_ZN4ardb6Buffer6PrintfEPKcz(ptr noundef nonnull align 8 dereferenceable(33) %23, ptr noundef @.str.1, i64 noundef %26)
  %28 = load ptr, ptr %5, align 8, !tbaa !5
  %29 = getelementptr inbounds %"struct.ardb::codec::RedisReply", ptr %28, i32 0, i32 2
  %30 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %29) #6
  %31 = icmp ugt i64 %30, 0
  br i1 %31, label %32, label %43

32:                                               ; preds = %22
  %33 = load ptr, ptr %4, align 8, !tbaa !5
  %34 = load ptr, ptr %5, align 8, !tbaa !5
  %35 = getelementptr inbounds %"struct.ardb::codec::RedisReply", ptr %34, i32 0, i32 2
  %36 = call noundef ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4dataEv(ptr noundef nonnull align 8 dereferenceable(32) %35) #6
  %37 = load ptr, ptr %5, align 8, !tbaa !5
  %38 = getelementptr inbounds %"struct.ardb::codec::RedisReply", ptr %37, i32 0, i32 2
  %39 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %38) #6
  %40 = call noundef i32 @_ZN4ardb6Buffer5WriteEPKvm(ptr noundef nonnull align 8 dereferenceable(33) %33, ptr noundef %36, i64 noundef %39)
  %41 = load ptr, ptr %4, align 8, !tbaa !5
  %42 = call noundef i32 (ptr, ptr, ...) @_ZN4ardb6Buffer6PrintfEPKcz(ptr noundef nonnull align 8 dereferenceable(33) %41, ptr noundef @.str.2)
  br label %46

43:                                               ; preds = %22
  %44 = load ptr, ptr %4, align 8, !tbaa !5
  %45 = call noundef i32 (ptr, ptr, ...) @_ZN4ardb6Buffer6PrintfEPKcz(ptr noundef nonnull align 8 dereferenceable(33) %44, ptr noundef @.str.2)
  br label %46

46:                                               ; preds = %43, %32
  br label %164

47:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  %48 = load ptr, ptr %5, align 8, !tbaa !5
  %49 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZN4ardb5codec10RedisReply5ErrorB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(72) %48)
  store ptr %49, ptr %6, align 8, !tbaa !5
  %50 = load ptr, ptr %6, align 8, !tbaa !5
  %51 = call noundef zeroext i1 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(32) %50) #6
  br i1 %51, label %63, label %52

52:                                               ; preds = %47
  %53 = load ptr, ptr %6, align 8, !tbaa !5
  %54 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %53, i64 noundef 0) #6
  %55 = load i8, ptr %54, align 1, !tbaa !15
  %56 = sext i8 %55 to i32
  %57 = icmp eq i32 %56, 45
  br i1 %57, label %58, label %63

58:                                               ; preds = %52
  %59 = load ptr, ptr %4, align 8, !tbaa !5
  %60 = load ptr, ptr %6, align 8, !tbaa !5
  %61 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %60) #6
  %62 = call noundef i32 (ptr, ptr, ...) @_ZN4ardb6Buffer6PrintfEPKcz(ptr noundef nonnull align 8 dereferenceable(33) %59, ptr noundef @.str.3, ptr noundef %61)
  br label %68

63:                                               ; preds = %52, %47
  %64 = load ptr, ptr %4, align 8, !tbaa !5
  %65 = load ptr, ptr %6, align 8, !tbaa !5
  %66 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %65) #6
  %67 = call noundef i32 (ptr, ptr, ...) @_ZN4ardb6Buffer6PrintfEPKcz(ptr noundef nonnull align 8 dereferenceable(33) %64, ptr noundef @.str.4, ptr noundef %66)
  br label %68

68:                                               ; preds = %63, %58
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  br label %164

69:                                               ; preds = %2
  %70 = load ptr, ptr %4, align 8, !tbaa !5
  %71 = load ptr, ptr %5, align 8, !tbaa !5
  %72 = getelementptr inbounds %"struct.ardb::codec::RedisReply", ptr %71, i32 0, i32 3
  %73 = load i64, ptr %72, align 8, !tbaa !16
  %74 = call noundef i32 (ptr, ptr, ...) @_ZN4ardb6Buffer6PrintfEPKcz(ptr noundef nonnull align 8 dereferenceable(33) %70, ptr noundef @.str.5, i64 noundef %73)
  br label %164

75:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 128, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 128, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %76 = load ptr, ptr %5, align 8, !tbaa !5
  %77 = call noundef double @_ZN4ardb5codec10RedisReply9GetDoubleEv(ptr noundef nonnull align 8 dereferenceable(72) %76)
  store double %77, ptr %11, align 8, !tbaa !17
  %78 = load double, ptr %11, align 8, !tbaa !17
  %79 = call noundef zeroext i1 @_ZSt5isinfd(double noundef %78)
  br i1 %79, label %80, label %87

80:                                               ; preds = %75
  %81 = load ptr, ptr %4, align 8, !tbaa !5
  %82 = load double, ptr %11, align 8, !tbaa !17
  %83 = fcmp ogt double %82, 0.000000e+00
  %84 = zext i1 %83 to i64
  %85 = select i1 %83, ptr @.str.6, ptr @.str.7
  %86 = call noundef i32 (ptr, ptr, ...) @_ZN4ardb6Buffer6PrintfEPKcz(ptr noundef nonnull align 8 dereferenceable(33) %81, ptr noundef %85)
  br label %100

87:                                               ; preds = %75
  %88 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
  %89 = load double, ptr %11, align 8, !tbaa !17
  %90 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %88, i64 noundef 128, ptr noundef @.str.8, double noundef %89) #6
  store i32 %90, ptr %9, align 4, !tbaa !19
  %91 = getelementptr inbounds [128 x i8], ptr %8, i64 0, i64 0
  %92 = load i32, ptr %9, align 4, !tbaa !19
  %93 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
  %94 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %91, i64 noundef 128, ptr noundef @.str.9, i32 noundef %92, ptr noundef %93) #6
  store i32 %94, ptr %10, align 4, !tbaa !19
  %95 = load ptr, ptr %4, align 8, !tbaa !5
  %96 = getelementptr inbounds [128 x i8], ptr %8, i64 0, i64 0
  %97 = load i32, ptr %10, align 4, !tbaa !19
  %98 = sext i32 %97 to i64
  %99 = call noundef i32 @_ZN4ardb6Buffer5WriteEPKvm(ptr noundef nonnull align 8 dereferenceable(33) %95, ptr noundef %96, i64 noundef %98)
  br label %100

100:                                              ; preds = %87, %80
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 128, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 128, ptr %7) #6
  br label %164

101:                                              ; preds = %2
  %102 = load ptr, ptr %5, align 8, !tbaa !5
  %103 = getelementptr inbounds %"struct.ardb::codec::RedisReply", ptr %102, i32 0, i32 3
  %104 = load i64, ptr %103, align 8, !tbaa !16
  %105 = icmp slt i64 %104, 0
  br i1 %105, label %106, label %114

106:                                              ; preds = %101
  %107 = load ptr, ptr %5, align 8, !tbaa !5
  %108 = getelementptr inbounds %"struct.ardb::codec::RedisReply", ptr %107, i32 0, i32 4
  %109 = load ptr, ptr %108, align 8, !tbaa !20
  %110 = icmp eq ptr null, %109
  br i1 %110, label %111, label %114

111:                                              ; preds = %106
  %112 = load ptr, ptr %4, align 8, !tbaa !5
  %113 = call noundef i32 (ptr, ptr, ...) @_ZN4ardb6Buffer6PrintfEPKcz(ptr noundef nonnull align 8 dereferenceable(33) %112, ptr noundef @.str.10)
  br label %164

114:                                              ; preds = %106, %101
  %115 = load ptr, ptr %5, align 8, !tbaa !5
  %116 = getelementptr inbounds %"struct.ardb::codec::RedisReply", ptr %115, i32 0, i32 4
  %117 = load ptr, ptr %116, align 8, !tbaa !20
  %118 = icmp eq ptr null, %117
  br i1 %118, label %119, label %122

119:                                              ; preds = %114
  %120 = load ptr, ptr %4, align 8, !tbaa !5
  %121 = call noundef i32 (ptr, ptr, ...) @_ZN4ardb6Buffer6PrintfEPKcz(ptr noundef nonnull align 8 dereferenceable(33) %120, ptr noundef @.str.11)
  br label %164

122:                                              ; preds = %114
  %123 = load ptr, ptr %4, align 8, !tbaa !5
  %124 = load ptr, ptr %5, align 8, !tbaa !5
  %125 = getelementptr inbounds %"struct.ardb::codec::RedisReply", ptr %124, i32 0, i32 4
  %126 = load ptr, ptr %125, align 8, !tbaa !20
  %127 = call noundef i64 @_ZNKSt5dequeIPN4ardb5codec10RedisReplyESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(80) %126) #6
  %128 = call noundef i32 (ptr, ptr, ...) @_ZN4ardb6Buffer6PrintfEPKcz(ptr noundef nonnull align 8 dereferenceable(33) %123, ptr noundef @.str.12, i64 noundef %127)
  call void @llvm.lifetime.start.p0(i64 32, ptr %12) #6
  %129 = load ptr, ptr %5, align 8, !tbaa !5
  %130 = getelementptr inbounds %"struct.ardb::codec::RedisReply", ptr %129, i32 0, i32 4
  %131 = load ptr, ptr %130, align 8, !tbaa !20
  call void @_ZNSt5dequeIPN4ardb5codec10RedisReplyESaIS3_EE5beginEv(ptr dead_on_unwind writable sret(%"struct.std::_Deque_iterator") align 8 %12, ptr noundef nonnull align 8 dereferenceable(80) %131) #6
  br label %132

132:                                              ; preds = %143, %122
  call void @llvm.lifetime.start.p0(i64 32, ptr %13) #6
  %133 = load ptr, ptr %5, align 8, !tbaa !5
  %134 = getelementptr inbounds %"struct.ardb::codec::RedisReply", ptr %133, i32 0, i32 4
  %135 = load ptr, ptr %134, align 8, !tbaa !20
  call void @_ZNSt5dequeIPN4ardb5codec10RedisReplyESaIS3_EE3endEv(ptr dead_on_unwind writable sret(%"struct.std::_Deque_iterator") align 8 %13, ptr noundef nonnull align 8 dereferenceable(80) %135) #6
  %136 = call noundef zeroext i1 @_ZStneRKSt15_Deque_iteratorIPN4ardb5codec10RedisReplyERS3_PS3_ES8_(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef nonnull align 8 dereferenceable(32) %13) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #6
  br i1 %136, label %137, label %144

137:                                              ; preds = %132
  %138 = load ptr, ptr %4, align 8, !tbaa !5
  %139 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt15_Deque_iteratorIPN4ardb5codec10RedisReplyERS3_PS3_EdeEv(ptr noundef nonnull align 8 dereferenceable(32) %12) #6
  %140 = load ptr, ptr %139, align 8, !tbaa !5
  %141 = call noundef zeroext i1 @_ZN4ardb5codec17RedisReplyEncoder6EncodeERNS_6BufferERNS0_10RedisReplyE(ptr noundef nonnull align 8 dereferenceable(33) %138, ptr noundef nonnull align 8 dereferenceable(72) %140)
  br i1 %141, label %143, label %142

142:                                              ; preds = %137
  store i1 false, ptr %3, align 1
  store i32 1, ptr %14, align 4
  br label %145

143:                                              ; preds = %137
  call void @llvm.lifetime.start.p0(i64 32, ptr %15) #6
  call void @_ZNSt15_Deque_iteratorIPN4ardb5codec10RedisReplyERS3_PS3_EppEi(ptr dead_on_unwind writable sret(%"struct.std::_Deque_iterator") align 8 %15, ptr noundef nonnull align 8 dereferenceable(32) %12, i32 noundef 0) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #6
  br label %132, !llvm.loop !21

144:                                              ; preds = %132
  store i32 2, ptr %14, align 4
  br label %145

145:                                              ; preds = %144, %142
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #6
  %146 = load i32, ptr %14, align 4
  switch i32 %146, label %167 [
    i32 1, label %165
    i32 2, label %164
  ]

147:                                              ; preds = %2
  %148 = load ptr, ptr %4, align 8, !tbaa !5
  %149 = load ptr, ptr %5, align 8, !tbaa !5
  %150 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZN4ardb5codec10RedisReply6StatusB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(72) %149)
  %151 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %150) #6
  %152 = call noundef i32 (ptr, ptr, ...) @_ZN4ardb6Buffer6PrintfEPKcz(ptr noundef nonnull align 8 dereferenceable(33) %148, ptr noundef @.str.13, ptr noundef %151)
  br label %164

153:                                              ; preds = %2
  br label %154

154:                                              ; preds = %153
  %155 = call noundef ptr @_ZN4ardb10ArdbLogger13GetLogCheckerEv()
  %156 = call noundef zeroext i1 %155(i32 noundef 2)
  br i1 %156, label %157, label %162

157:                                              ; preds = %154
  %158 = call noundef ptr @_ZN4ardb10ArdbLogger13GetLogHandlerEv()
  %159 = load ptr, ptr %5, align 8, !tbaa !5
  %160 = getelementptr inbounds %"struct.ardb::codec::RedisReply", ptr %159, i32 0, i32 1
  %161 = load i32, ptr %160, align 8, !tbaa !9
  call void (i32, ptr, ptr, i32, ptr, ...) %158(i32 noundef 2, ptr noundef @.str.14, ptr noundef @__FUNCTION__._ZN4ardb5codec17RedisReplyEncoder6EncodeERNS_6BufferERNS0_10RedisReplyE, i32 noundef 133, ptr noundef @.str.15, i32 noundef %161)
  br label %162

162:                                              ; preds = %157, %154
  br label %163

163:                                              ; preds = %162
  store i1 false, ptr %3, align 1
  br label %165

164:                                              ; preds = %147, %145, %119, %111, %100, %69, %68, %46, %19
  store i1 true, ptr %3, align 1
  br label %165

165:                                              ; preds = %164, %163, %145
  %166 = load i1, ptr %3, align 1
  ret i1 %166

167:                                              ; preds = %145
  unreachable
}

declare noundef i32 @_ZN4ardb6Buffer6PrintfEPKcz(ptr noundef nonnull align 8 dereferenceable(33), ptr noundef, ...) #1

; Function Attrs: mustprogress nounwind uwtable
declare noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32)) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZN4ardb6Buffer5WriteEPKvm(ptr noundef nonnull align 8 dereferenceable(33), ptr noundef, i64 noundef) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare noundef ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4dataEv(ptr noundef nonnull align 8 dereferenceable(32)) #2 align 2

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

declare noundef nonnull align 8 dereferenceable(32) ptr @_ZN4ardb5codec10RedisReply5ErrorB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(72)) #1

; Function Attrs: mustprogress nounwind uwtable
declare noundef zeroext i1 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(32)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32)) #2 align 2

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

declare noundef double @_ZN4ardb5codec10RedisReply9GetDoubleEv(ptr noundef nonnull align 8 dereferenceable(72)) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZSt5isinfd(double noundef) #2

; Function Attrs: nounwind
declare i32 @snprintf(ptr noundef, i64 noundef, ptr noundef, ...) #5

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt5dequeIPN4ardb5codec10RedisReplyESaIS3_EE5beginEv(ptr dead_on_unwind noalias writable sret(%"struct.std::_Deque_iterator") align 8, ptr noundef nonnull align 8 dereferenceable(80)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZStneRKSt15_Deque_iteratorIPN4ardb5codec10RedisReplyERS3_PS3_ES8_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt5dequeIPN4ardb5codec10RedisReplyESaIS3_EE3endEv(ptr dead_on_unwind noalias writable sret(%"struct.std::_Deque_iterator") align 8, ptr noundef nonnull align 8 dereferenceable(80)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt15_Deque_iteratorIPN4ardb5codec10RedisReplyERS3_PS3_EdeEv(ptr noundef nonnull align 8 dereferenceable(32)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15_Deque_iteratorIPN4ardb5codec10RedisReplyERS3_PS3_EppEi(ptr dead_on_unwind noalias writable sret(%"struct.std::_Deque_iterator") align 8, ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) #2 align 2

declare noundef nonnull align 8 dereferenceable(32) ptr @_ZN4ardb5codec10RedisReply6StatusB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(72)) #1

declare noundef ptr @_ZN4ardb10ArdbLogger13GetLogCheckerEv() #1

declare noundef ptr @_ZN4ardb10ArdbLogger13GetLogHandlerEv() #1

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 = { "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 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 #3 = { inlinehint 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { 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 #6 = { 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 8}
!10 = !{!"_ZTSN4ardb5codec10RedisReplyE", !11, i64 8, !12, i64 16, !14, i64 48, !6, i64 56, !6, i64 64}
!11 = !{!"int", !7, i64 0}
!12 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !13, i64 0, !14, i64 8, !7, i64 16}
!13 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!7, !7, i64 0}
!16 = !{!10, !14, i64 48}
!17 = !{!18, !18, i64 0}
!18 = !{!"double", !7, i64 0}
!19 = !{!11, !11, i64 0}
!20 = !{!10, !6, i64 56}
!21 = distinct !{!21, !22}
!22 = !{!"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.std::_Deque_iterator" = type { ptr, ptr, ptr, ptr }

@.str = external hidden unnamed_addr constant [6 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [94 x i8], align 1
@__FUNCTION__._ZN4ardb5codec17RedisReplyEncoder6EncodeERNS_6BufferERNS0_10RedisReplyE = external hidden unnamed_addr constant [7 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [36 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN4ardb5codec17RedisReplyEncoder6EncodeERNS_6BufferERNS0_10RedisReplyE(ptr noundef nonnull align 8 dereferenceable(33) %0, ptr noundef nonnull align 8 dereferenceable(72) %1) local_unnamed_addr #0 align 2 {
  %3 = alloca [128 x i8], align 16
  %4 = alloca [128 x i8], align 16
  %5 = alloca %"struct.std::_Deque_iterator", align 8
  %6 = alloca %"struct.std::_Deque_iterator", align 8
  %7 = alloca %"struct.std::_Deque_iterator", align 8
  %8 = getelementptr inbounds i8, ptr %1, i64 8
  %9 = load i32, ptr %8, align 8, !tbaa !5
  switch i32 %9, label %82 [
    i32 4, label %10
    i32 1, label %12
    i32 6, label %24
    i32 3, label %37
    i32 1001, label %41
    i32 2, label %54
    i32 5, label %78
  ]

10:                                               ; preds = %2
  %11 = tail call noundef i32 (ptr, ptr, ...) @_ZN4ardb6Buffer6PrintfEPKcz(ptr noundef nonnull align 8 dereferenceable(33) %0, ptr noundef nonnull @.str)
  br label %88

12:                                               ; preds = %2
  %13 = getelementptr inbounds i8, ptr %1, i64 16
  %14 = tail call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %13) #6
  %15 = tail call noundef i32 (ptr, ptr, ...) @_ZN4ardb6Buffer6PrintfEPKcz(ptr noundef nonnull align 8 dereferenceable(33) %0, ptr noundef nonnull @.str.1, i64 noundef %14)
  %16 = tail call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %13) #6
  %.not = icmp eq i64 %16, 0
  br i1 %.not, label %22, label %17

17:                                               ; preds = %12
  %18 = tail call noundef ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4dataEv(ptr noundef nonnull align 8 dereferenceable(32) %13) #6
  %19 = tail call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %13) #6
  %20 = tail call noundef i32 @_ZN4ardb6Buffer5WriteEPKvm(ptr noundef nonnull align 8 dereferenceable(33) %0, ptr noundef %18, i64 noundef %19)
  %21 = tail call noundef i32 (ptr, ptr, ...) @_ZN4ardb6Buffer6PrintfEPKcz(ptr noundef nonnull align 8 dereferenceable(33) %0, ptr noundef nonnull @.str.2)
  br label %88

22:                                               ; preds = %12
  %23 = tail call noundef i32 (ptr, ptr, ...) @_ZN4ardb6Buffer6PrintfEPKcz(ptr noundef nonnull align 8 dereferenceable(33) %0, ptr noundef nonnull @.str.2)
  br label %88

24:                                               ; preds = %2
  %25 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZN4ardb5codec10RedisReply5ErrorB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(72) %1)
  %26 = tail call noundef zeroext i1 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(32) %25) #6
  br i1 %26, label %34, label %27

27:                                               ; preds = %24
  %28 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %25, i64 noundef 0) #6
  %29 = load i8, ptr %28, align 1, !tbaa !14
  %30 = icmp eq i8 %29, 45
  br i1 %30, label %31, label %34

31:                                               ; preds = %27
  %32 = tail call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %25) #6
  %33 = tail call noundef i32 (ptr, ptr, ...) @_ZN4ardb6Buffer6PrintfEPKcz(ptr noundef nonnull align 8 dereferenceable(33) %0, ptr noundef nonnull @.str.3, ptr noundef %32)
  br label %88

34:                                               ; preds = %27, %24
  %35 = tail call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %25) #6
  %36 = tail call noundef i32 (ptr, ptr, ...) @_ZN4ardb6Buffer6PrintfEPKcz(ptr noundef nonnull align 8 dereferenceable(33) %0, ptr noundef nonnull @.str.4, ptr noundef %35)
  br label %88

37:                                               ; preds = %2
  %38 = getelementptr inbounds i8, ptr %1, i64 48
  %39 = load i64, ptr %38, align 8, !tbaa !15
  %40 = tail call noundef i32 (ptr, ptr, ...) @_ZN4ardb6Buffer6PrintfEPKcz(ptr noundef nonnull align 8 dereferenceable(33) %0, ptr noundef nonnull @.str.5, i64 noundef %39)
  br label %88

41:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %4) #6
  %42 = tail call noundef double @_ZN4ardb5codec10RedisReply9GetDoubleEv(ptr noundef nonnull align 8 dereferenceable(72) %1)
  %43 = tail call noundef zeroext i1 @_ZSt5isinfd(double noundef %42)
  br i1 %43, label %44, label %48

44:                                               ; preds = %41
  %45 = fcmp ogt double %42, 0.000000e+00
  %46 = select i1 %45, ptr @.str.6, ptr @.str.7
  %47 = tail call noundef i32 (ptr, ptr, ...) @_ZN4ardb6Buffer6PrintfEPKcz(ptr noundef nonnull align 8 dereferenceable(33) %0, ptr noundef nonnull %46)
  br label %53

48:                                               ; preds = %41
  %49 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %3, i64 noundef 128, ptr noundef nonnull @.str.8, double noundef %42) #6
  %50 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %4, i64 noundef 128, ptr noundef nonnull @.str.9, i32 noundef %49, ptr noundef nonnull %3) #6
  %51 = sext i32 %50 to i64
  %52 = call noundef i32 @_ZN4ardb6Buffer5WriteEPKvm(ptr noundef nonnull align 8 dereferenceable(33) %0, ptr noundef nonnull %4, i64 noundef %51)
  br label %53

53:                                               ; preds = %48, %44
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %3) #6
  br label %88

54:                                               ; preds = %2
  %55 = getelementptr inbounds i8, ptr %1, i64 48
  %56 = load i64, ptr %55, align 8, !tbaa !15
  %57 = icmp slt i64 %56, 0
  %58 = getelementptr inbounds i8, ptr %1, i64 56
  %59 = load ptr, ptr %58, align 8
  %60 = icmp eq ptr %59, null
  %or.cond = select i1 %57, i1 %60, i1 false
  br i1 %or.cond, label %61, label %63

61:                                               ; preds = %54
  %62 = tail call noundef i32 (ptr, ptr, ...) @_ZN4ardb6Buffer6PrintfEPKcz(ptr noundef nonnull align 8 dereferenceable(33) %0, ptr noundef nonnull @.str.10)
  br label %88

63:                                               ; preds = %54
  br i1 %60, label %64, label %66

64:                                               ; preds = %63
  %65 = tail call noundef i32 (ptr, ptr, ...) @_ZN4ardb6Buffer6PrintfEPKcz(ptr noundef nonnull align 8 dereferenceable(33) %0, ptr noundef nonnull @.str.11)
  br label %88

66:                                               ; preds = %63
  %67 = tail call noundef i64 @_ZNKSt5dequeIPN4ardb5codec10RedisReplyESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(80) %59) #6
  %68 = tail call noundef i32 (ptr, ptr, ...) @_ZN4ardb6Buffer6PrintfEPKcz(ptr noundef nonnull align 8 dereferenceable(33) %0, ptr noundef nonnull @.str.12, i64 noundef %67)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #6
  %69 = load ptr, ptr %58, align 8, !tbaa !16
  call void @_ZNSt5dequeIPN4ardb5codec10RedisReplyESaIS3_EE5beginEv(ptr dead_on_unwind nonnull writable sret(%"struct.std::_Deque_iterator") align 8 %5, ptr noundef nonnull align 8 dereferenceable(80) %69) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #6
  %70 = load ptr, ptr %58, align 8, !tbaa !16
  call void @_ZNSt5dequeIPN4ardb5codec10RedisReplyESaIS3_EE3endEv(ptr dead_on_unwind nonnull writable sret(%"struct.std::_Deque_iterator") align 8 %6, ptr noundef nonnull align 8 dereferenceable(80) %70) #6
  %71 = call noundef zeroext i1 @_ZStneRKSt15_Deque_iteratorIPN4ardb5codec10RedisReplyERS3_PS3_ES8_(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull align 8 dereferenceable(32) %6) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #6
  br i1 %71, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %66, %75
  %72 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt15_Deque_iteratorIPN4ardb5codec10RedisReplyERS3_PS3_EdeEv(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  %73 = load ptr, ptr %72, align 8, !tbaa !17
  %74 = call noundef zeroext i1 @_ZN4ardb5codec17RedisReplyEncoder6EncodeERNS_6BufferERNS0_10RedisReplyE(ptr noundef nonnull align 8 dereferenceable(33) %0, ptr noundef nonnull align 8 dereferenceable(72) %73)
  br i1 %74, label %75, label %.thread

.thread:                                          ; preds = %.lr.ph
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #6
  br label %88

75:                                               ; preds = %.lr.ph
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #6
  call void @_ZNSt15_Deque_iteratorIPN4ardb5codec10RedisReplyERS3_PS3_EppEi(ptr dead_on_unwind nonnull writable sret(%"struct.std::_Deque_iterator") align 8 %7, ptr noundef nonnull align 8 dereferenceable(32) %5, i32 noundef 0) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #6
  %76 = load ptr, ptr %58, align 8, !tbaa !16
  call void @_ZNSt5dequeIPN4ardb5codec10RedisReplyESaIS3_EE3endEv(ptr dead_on_unwind nonnull writable sret(%"struct.std::_Deque_iterator") align 8 %6, ptr noundef nonnull align 8 dereferenceable(80) %76) #6
  %77 = call noundef zeroext i1 @_ZStneRKSt15_Deque_iteratorIPN4ardb5codec10RedisReplyERS3_PS3_ES8_(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull align 8 dereferenceable(32) %6) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #6
  br i1 %77, label %.lr.ph, label %._crit_edge, !llvm.loop !18

._crit_edge:                                      ; preds = %75, %66
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #6
  br label %88

78:                                               ; preds = %2
  %79 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZN4ardb5codec10RedisReply6StatusB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(72) %1)
  %80 = tail call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %79) #6
  %81 = tail call noundef i32 (ptr, ptr, ...) @_ZN4ardb6Buffer6PrintfEPKcz(ptr noundef nonnull align 8 dereferenceable(33) %0, ptr noundef nonnull @.str.13, ptr noundef %80)
  br label %88

82:                                               ; preds = %2
  %83 = tail call noundef ptr @_ZN4ardb10ArdbLogger13GetLogCheckerEv()
  %84 = tail call noundef zeroext i1 %83(i32 noundef 2)
  br i1 %84, label %85, label %88

85:                                               ; preds = %82
  %86 = tail call noundef ptr @_ZN4ardb10ArdbLogger13GetLogHandlerEv()
  %87 = load i32, ptr %8, align 8, !tbaa !5
  tail call void (i32, ptr, ptr, i32, ptr, ...) %86(i32 noundef 2, ptr noundef nonnull @.str.14, ptr noundef nonnull @__FUNCTION__._ZN4ardb5codec17RedisReplyEncoder6EncodeERNS_6BufferERNS0_10RedisReplyE, i32 noundef 133, ptr noundef nonnull @.str.15, i32 noundef %87)
  br label %88

88:                                               ; preds = %10, %37, %53, %61, %64, %78, %22, %17, %34, %31, %._crit_edge, %.thread, %85, %82
  %.1 = phi i1 [ false, %82 ], [ false, %85 ], [ false, %.thread ], [ true, %._crit_edge ], [ true, %31 ], [ true, %34 ], [ true, %17 ], [ true, %22 ], [ true, %78 ], [ true, %64 ], [ true, %61 ], [ true, %53 ], [ true, %37 ], [ true, %10 ]
  ret i1 %.1
}

declare noundef i32 @_ZN4ardb6Buffer6PrintfEPKcz(ptr noundef nonnull align 8 dereferenceable(33), ptr noundef, ...) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZN4ardb6Buffer5WriteEPKvm(ptr noundef nonnull align 8 dereferenceable(33), ptr noundef, i64 noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare noundef ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4dataEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2 align 2

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

declare noundef nonnull align 8 dereferenceable(32) ptr @_ZN4ardb5codec10RedisReply5ErrorB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(72)) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare noundef zeroext i1 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2 align 2

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

declare noundef double @_ZN4ardb5codec10RedisReply9GetDoubleEv(ptr noundef nonnull align 8 dereferenceable(72)) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZSt5isinfd(double noundef) local_unnamed_addr #2

; Function Attrs: nofree nounwind
declare noundef i32 @snprintf(ptr noalias nocapture noundef writeonly, i64 noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #5

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt5dequeIPN4ardb5codec10RedisReplyESaIS3_EE5beginEv(ptr dead_on_unwind noalias writable sret(%"struct.std::_Deque_iterator") align 8, ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZStneRKSt15_Deque_iteratorIPN4ardb5codec10RedisReplyERS3_PS3_ES8_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt5dequeIPN4ardb5codec10RedisReplyESaIS3_EE3endEv(ptr dead_on_unwind noalias writable sret(%"struct.std::_Deque_iterator") align 8, ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt15_Deque_iteratorIPN4ardb5codec10RedisReplyERS3_PS3_EdeEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15_Deque_iteratorIPN4ardb5codec10RedisReplyERS3_PS3_EppEi(ptr dead_on_unwind noalias writable sret(%"struct.std::_Deque_iterator") align 8, ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) local_unnamed_addr #2 align 2

declare noundef nonnull align 8 dereferenceable(32) ptr @_ZN4ardb5codec10RedisReply6StatusB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(72)) local_unnamed_addr #1

declare noundef ptr @_ZN4ardb10ArdbLogger13GetLogCheckerEv() local_unnamed_addr #1

declare noundef ptr @_ZN4ardb10ArdbLogger13GetLogHandlerEv() local_unnamed_addr #1

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 = { "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 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 #3 = { inlinehint 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { nofree 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 #6 = { 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 8}
!6 = !{!"_ZTSN4ardb5codec10RedisReplyE", !7, i64 8, !10, i64 16, !13, i64 48, !12, i64 56, !12, i64 64}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !11, i64 0, !13, i64 8, !8, i64 16}
!11 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !12, i64 0}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!"long", !8, i64 0}
!14 = !{!8, !8, i64 0}
!15 = !{!6, !13, i64 48}
!16 = !{!6, !12, i64 56}
!17 = !{!12, !12, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}


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