; LLVM IR from scorelab/EtherBeat :: tools/EtherExtractor/src/rlp.ll (ZN3RLPC2ERKSt6vectorIhSaIhEEmm)

; 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.RLP = type { ptr, i64, i64, i64, i64, %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<RLP, std::allocator<RLP>>::_Vector_impl" }
%"struct.std::_Vector_base<RLP, std::allocator<RLP>>::_Vector_impl" = type { %"struct.std::_Vector_base<RLP, std::allocator<RLP>>::_Vector_impl_data" }
%"struct.std::_Vector_base<RLP, std::allocator<RLP>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@_ZTI12BadRLPFormat = external dso_local constant { ptr, ptr, ptr }, align 8

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3RLPC2ERKSt6vectorIhSaIhEEmm(ptr noundef nonnull align 8 dereferenceable(64) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %2, i64 noundef %3) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i8, align 1
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store i64 %2, ptr %7, align 8, !tbaa !9
  store i64 %3, ptr %8, align 8, !tbaa !9
  %14 = load ptr, ptr %5, align 8
  %15 = getelementptr inbounds %class.RLP, ptr %14, i32 0, i32 0
  %16 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %16, ptr %15, align 8, !tbaa !5
  %17 = getelementptr inbounds %class.RLP, ptr %14, i32 0, i32 1
  %18 = load i64, ptr %7, align 8, !tbaa !9
  store i64 %18, ptr %17, align 8, !tbaa !11
  %19 = getelementptr inbounds %class.RLP, ptr %14, i32 0, i32 5
  call void @_ZNSt6vectorI3RLPSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #6
  %20 = load i64, ptr %8, align 8, !tbaa !9
  %21 = icmp eq i64 %20, 0
  br i1 %21, label %22, label %28

22:                                               ; preds = %4
  %23 = call ptr @__cxa_allocate_exception(i64 8) #6
  call void @llvm.memset.p0.i64(ptr align 16 %23, i8 0, i64 8, i1 false)
  call void @_ZN12BadRLPFormatC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %23) #6
  invoke void @__cxa_throw(ptr %23, ptr @_ZTI12BadRLPFormat, ptr @_ZNSt9exceptionD2Ev) #7
          to label %172 unwind label %24

24:                                               ; preds = %22
  %25 = landingpad { ptr, i32 }
          cleanup
  %26 = extractvalue { ptr, i32 } %25, 0
  store ptr %26, ptr %9, align 8
  %27 = extractvalue { ptr, i32 } %25, 1
  store i32 %27, ptr %10, align 4
  br label %166

28:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #6
  %29 = getelementptr inbounds %class.RLP, ptr %14, i32 0, i32 0
  %30 = load ptr, ptr %29, align 8, !tbaa !17
  %31 = getelementptr inbounds %class.RLP, ptr %14, i32 0, i32 1
  %32 = load i64, ptr %31, align 8, !tbaa !11
  %33 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %30, i64 noundef %32) #6
  %34 = load i8, ptr %33, align 1, !tbaa !18
  store i8 %34, ptr %11, align 1, !tbaa !18
  %35 = load i8, ptr %11, align 1, !tbaa !18
  %36 = zext i8 %35 to i32
  %37 = icmp slt i32 %36, 128
  br i1 %37, label %38, label %44

38:                                               ; preds = %28
  %39 = getelementptr inbounds %class.RLP, ptr %14, i32 0, i32 4
  store i64 1, ptr %39, align 8, !tbaa !19
  %40 = getelementptr inbounds %class.RLP, ptr %14, i32 0, i32 3
  store i64 1, ptr %40, align 8, !tbaa !20
  %41 = getelementptr inbounds %class.RLP, ptr %14, i32 0, i32 1
  %42 = load i64, ptr %41, align 8, !tbaa !11
  %43 = getelementptr inbounds %class.RLP, ptr %14, i32 0, i32 2
  store i64 %42, ptr %43, align 8, !tbaa !21
  br label %147

44:                                               ; preds = %28
  %45 = load i8, ptr %11, align 1, !tbaa !18
  %46 = zext i8 %45 to i32
  %47 = icmp sle i32 %46, 183
  br i1 %47, label %48, label %62

48:                                               ; preds = %44
  %49 = load i8, ptr %11, align 1, !tbaa !18
  %50 = zext i8 %49 to i32
  %51 = sub nsw i32 %50, 128
  %52 = sext i32 %51 to i64
  %53 = getelementptr inbounds %class.RLP, ptr %14, i32 0, i32 4
  store i64 %52, ptr %53, align 8, !tbaa !19
  %54 = getelementptr inbounds %class.RLP, ptr %14, i32 0, i32 4
  %55 = load i64, ptr %54, align 8, !tbaa !19
  %56 = add i64 1, %55
  %57 = getelementptr inbounds %class.RLP, ptr %14, i32 0, i32 3
  store i64 %56, ptr %57, align 8, !tbaa !20
  %58 = getelementptr inbounds %class.RLP, ptr %14, i32 0, i32 1
  %59 = load i64, ptr %58, align 8, !tbaa !11
  %60 = add i64 %59, 1
  %61 = getelementptr inbounds %class.RLP, ptr %14, i32 0, i32 2
  store i64 %60, ptr %61, align 8, !tbaa !21
  br label %146

62:                                               ; preds = %44
  %63 = load i8, ptr %11, align 1, !tbaa !18
  %64 = zext i8 %63 to i32
  %65 = icmp slt i32 %64, 192
  br i1 %65, label %66, label %96

66:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %67 = load i8, ptr %11, align 1, !tbaa !18
  %68 = zext i8 %67 to i32
  %69 = sub nsw i32 %68, 183
  %70 = sext i32 %69 to i64
  store i64 %70, ptr %12, align 8, !tbaa !9
  %71 = load i64, ptr %8, align 8, !tbaa !9
  %72 = load i64, ptr %12, align 8, !tbaa !9
  %73 = add i64 1, %72
  %74 = icmp ult i64 %71, %73
  br i1 %74, label %75, label %81

75:                                               ; preds = %66
  %76 = call ptr @__cxa_allocate_exception(i64 8) #6
  call void @llvm.memset.p0.i64(ptr align 16 %76, i8 0, i64 8, i1 false)
  call void @_ZN12BadRLPFormatC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %76) #6
  invoke void @__cxa_throw(ptr %76, ptr @_ZTI12BadRLPFormat, ptr @_ZNSt9exceptionD2Ev) #7
          to label %172 unwind label %77

77:                                               ; preds = %81, %75
  %78 = landingpad { ptr, i32 }
          cleanup
  %79 = extractvalue { ptr, i32 } %78, 0
  store ptr %79, ptr %9, align 8
  %80 = extractvalue { ptr, i32 } %78, 1
  store i32 %80, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  br label %165

81:                                               ; preds = %66
  %82 = load i64, ptr %12, align 8, !tbaa !9
  invoke void @_ZN3RLP15parseDataLengthEm(ptr noundef nonnull align 8 dereferenceable(64) %14, i64 noundef %82)
          to label %83 unwind label %77

83:                                               ; preds = %81
  %84 = load i64, ptr %12, align 8, !tbaa !9
  %85 = add i64 1, %84
  %86 = getelementptr inbounds %class.RLP, ptr %14, i32 0, i32 4
  %87 = load i64, ptr %86, align 8, !tbaa !19
  %88 = add i64 %85, %87
  %89 = getelementptr inbounds %class.RLP, ptr %14, i32 0, i32 3
  store i64 %88, ptr %89, align 8, !tbaa !20
  %90 = getelementptr inbounds %class.RLP, ptr %14, i32 0, i32 1
  %91 = load i64, ptr %90, align 8, !tbaa !11
  %92 = add i64 %91, 1
  %93 = load i64, ptr %12, align 8, !tbaa !9
  %94 = add i64 %92, %93
  %95 = getelementptr inbounds %class.RLP, ptr %14, i32 0, i32 2
  store i64 %94, ptr %95, align 8, !tbaa !21
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  br label %145

96:                                               ; preds = %62
  %97 = load i8, ptr %11, align 1, !tbaa !18
  %98 = zext i8 %97 to i32
  %99 = icmp sle i32 %98, 247
  br i1 %99, label %100, label %114

100:                                              ; preds = %96
  %101 = load i8, ptr %11, align 1, !tbaa !18
  %102 = zext i8 %101 to i32
  %103 = sub nsw i32 %102, 192
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds %class.RLP, ptr %14, i32 0, i32 4
  store i64 %104, ptr %105, align 8, !tbaa !19
  %106 = getelementptr inbounds %class.RLP, ptr %14, i32 0, i32 4
  %107 = load i64, ptr %106, align 8, !tbaa !19
  %108 = add i64 1, %107
  %109 = getelementptr inbounds %class.RLP, ptr %14, i32 0, i32 3
  store i64 %108, ptr %109, align 8, !tbaa !20
  %110 = getelementptr inbounds %class.RLP, ptr %14, i32 0, i32 1
  %111 = load i64, ptr %110, align 8, !tbaa !11
  %112 = add i64 %111, 1
  %113 = getelementptr inbounds %class.RLP, ptr %14, i32 0, i32 2
  store i64 %112, ptr %113, align 8, !tbaa !21
  br label %144

114:                                              ; preds = %96
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %115 = load i8, ptr %11, align 1, !tbaa !18
  %116 = zext i8 %115 to i32
  %117 = sub nsw i32 %116, 247
  %118 = sext i32 %117 to i64
  store i64 %118, ptr %13, align 8, !tbaa !9
  %119 = load i64, ptr %8, align 8, !tbaa !9
  %120 = load i64, ptr %13, align 8, !tbaa !9
  %121 = add i64 1, %120
  %122 = icmp ult i64 %119, %121
  br i1 %122, label %123, label %129

123:                                              ; preds = %114
  %124 = call ptr @__cxa_allocate_exception(i64 8) #6
  call void @llvm.memset.p0.i64(ptr align 16 %124, i8 0, i64 8, i1 false)
  call void @_ZN12BadRLPFormatC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %124) #6
  invoke void @__cxa_throw(ptr %124, ptr @_ZTI12BadRLPFormat, ptr @_ZNSt9exceptionD2Ev) #7
          to label %172 unwind label %125

125:                                              ; preds = %129, %123
  %126 = landingpad { ptr, i32 }
          cleanup
  %127 = extractvalue { ptr, i32 } %126, 0
  store ptr %127, ptr %9, align 8
  %128 = extractvalue { ptr, i32 } %126, 1
  store i32 %128, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  br label %165

129:                                              ; preds = %114
  %130 = load i64, ptr %13, align 8, !tbaa !9
  invoke void @_ZN3RLP15parseDataLengthEm(ptr noundef nonnull align 8 dereferenceable(64) %14, i64 noundef %130)
          to label %131 unwind label %125

131:                                              ; preds = %129
  %132 = load i64, ptr %13, align 8, !tbaa !9
  %133 = add i64 1, %132
  %134 = getelementptr inbounds %class.RLP, ptr %14, i32 0, i32 4
  %135 = load i64, ptr %134, align 8, !tbaa !19
  %136 = add i64 %133, %135
  %137 = getelementptr inbounds %class.RLP, ptr %14, i32 0, i32 3
  store i64 %136, ptr %137, align 8, !tbaa !20
  %138 = getelementptr inbounds %class.RLP, ptr %14, i32 0, i32 1
  %139 = load i64, ptr %138, align 8, !tbaa !11
  %140 = add i64 %139, 1
  %141 = load i64, ptr %13, align 8, !tbaa !9
  %142 = add i64 %140, %141
  %143 = getelementptr inbounds %class.RLP, ptr %14, i32 0, i32 2
  store i64 %142, ptr %143, align 8, !tbaa !21
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  br label %144

144:                                              ; preds = %131, %100
  br label %145

145:                                              ; preds = %144, %83
  br label %146

146:                                              ; preds = %145, %48
  br label %147

147:                                              ; preds = %146, %38
  %148 = getelementptr inbounds %class.RLP, ptr %14, i32 0, i32 3
  %149 = load i64, ptr %148, align 8, !tbaa !20
  %150 = load i64, ptr %8, align 8, !tbaa !9
  %151 = icmp ugt i64 %149, %150
  br i1 %151, label %152, label %158

152:                                              ; preds = %147
  %153 = call ptr @__cxa_allocate_exception(i64 8) #6
  call void @llvm.memset.p0.i64(ptr align 16 %153, i8 0, i64 8, i1 false)
  call void @_ZN12BadRLPFormatC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %153) #6
  invoke void @__cxa_throw(ptr %153, ptr @_ZTI12BadRLPFormat, ptr @_ZNSt9exceptionD2Ev) #7
          to label %172 unwind label %154

154:                                              ; preds = %162, %152
  %155 = landingpad { ptr, i32 }
          cleanup
  %156 = extractvalue { ptr, i32 } %155, 0
  store ptr %156, ptr %9, align 8
  %157 = extractvalue { ptr, i32 } %155, 1
  store i32 %157, ptr %10, align 4
  br label %165

158:                                              ; preds = %147
  %159 = load i8, ptr %11, align 1, !tbaa !18
  %160 = zext i8 %159 to i32
  %161 = icmp sge i32 %160, 192
  br i1 %161, label %162, label %164

162:                                              ; preds = %158
  invoke void @_ZN3RLP10parseItemsEv(ptr noundef nonnull align 8 dereferenceable(64) %14)
          to label %163 unwind label %154

163:                                              ; preds = %162
  br label %164

164:                                              ; preds = %163, %158
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #6
  ret void

165:                                              ; preds = %154, %125, %77
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #6
  br label %166

166:                                              ; preds = %165, %24
  call void @_ZNSt6vectorI3RLPSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #6
  br label %167

167:                                              ; preds = %166
  %168 = load ptr, ptr %9, align 8
  %169 = load i32, ptr %10, align 4
  %170 = insertvalue { ptr, i32 } poison, ptr %168, 0
  %171 = insertvalue { ptr, i32 } %170, i32 %169, 1
  resume { ptr, i32 } %171

172:                                              ; preds = %152, %123, %75, %22
  unreachable
}

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

declare ptr @__cxa_allocate_exception(i64)

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN12BadRLPFormatC2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #3 align 2

; Function Attrs: nounwind
declare void @_ZNSt9exceptionD2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #4

declare void @__cxa_throw(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) #5

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3RLP15parseDataLengthEm(ptr noundef nonnull align 8 dereferenceable(64), i64 noundef) #0 align 2

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

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

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

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 = { 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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { inlinehint 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 = { 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 #5 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { nounwind }
attributes #7 = { noreturn }

!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 8}
!12 = !{!"_ZTS3RLP", !6, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !13, i64 40}
!13 = !{!"_ZTSSt6vectorI3RLPSaIS0_EE", !14, i64 0}
!14 = !{!"_ZTSSt12_Vector_baseI3RLPSaIS0_EE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseI3RLPSaIS0_EE12_Vector_implE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseI3RLPSaIS0_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!17 = !{!12, !6, i64 0}
!18 = !{!7, !7, i64 0}
!19 = !{!12, !10, i64 32}
!20 = !{!12, !10, i64 24}
!21 = !{!12, !10, i64 16}


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

@_ZTI12BadRLPFormat = external dso_local constant { ptr, ptr, ptr }, align 8

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3RLPC2ERKSt6vectorIhSaIhEEmm(ptr noundef nonnull align 8 dereferenceable(64) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %2, i64 noundef %3) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  store ptr %1, ptr %0, align 8, !tbaa !5
  %5 = getelementptr inbounds i8, ptr %0, i64 8
  store i64 %2, ptr %5, align 8, !tbaa !9
  %6 = getelementptr inbounds i8, ptr %0, i64 40
  tail call void @_ZNSt6vectorI3RLPSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #4
  %7 = icmp eq i64 %3, 0
  br i1 %7, label %8, label %12

8:                                                ; preds = %4
  %9 = tail call ptr @__cxa_allocate_exception(i64 8) #4
  store i64 0, ptr %9, align 16
  tail call void @_ZN12BadRLPFormatC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #4
  invoke void @__cxa_throw(ptr nonnull %9, ptr nonnull @_ZTI12BadRLPFormat, ptr nonnull @_ZNSt9exceptionD2Ev) #5
          to label %90 unwind label %10

10:                                               ; preds = %8
  %11 = landingpad { ptr, i32 }
          cleanup
  br label %89

12:                                               ; preds = %4
  %13 = load ptr, ptr %0, align 8, !tbaa !16
  %14 = load i64, ptr %5, align 8, !tbaa !9
  %15 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %14) #4
  %16 = load i8, ptr %15, align 1, !tbaa !17
  %17 = zext i8 %16 to i32
  %18 = icmp sgt i8 %16, -1
  br i1 %18, label %19, label %23

19:                                               ; preds = %12
  %20 = getelementptr inbounds i8, ptr %0, i64 32
  store i64 1, ptr %20, align 8, !tbaa !18
  %21 = getelementptr inbounds i8, ptr %0, i64 24
  store i64 1, ptr %21, align 8, !tbaa !19
  %22 = load i64, ptr %5, align 8, !tbaa !9
  br label %77

23:                                               ; preds = %12
  %24 = icmp ult i8 %16, -72
  br i1 %24, label %25, label %33

25:                                               ; preds = %23
  %26 = add nsw i32 %17, -128
  %27 = zext nneg i32 %26 to i64
  %28 = getelementptr inbounds i8, ptr %0, i64 32
  store i64 %27, ptr %28, align 8, !tbaa !18
  %29 = add nuw nsw i64 %27, 1
  %30 = getelementptr inbounds i8, ptr %0, i64 24
  store i64 %29, ptr %30, align 8, !tbaa !19
  %31 = load i64, ptr %5, align 8, !tbaa !9
  %32 = add i64 %31, 1
  br label %77

33:                                               ; preds = %23
  %34 = icmp ult i8 %16, -64
  br i1 %34, label %35, label %51

35:                                               ; preds = %33
  %36 = add nsw i32 %17, -183
  %37 = zext nneg i32 %36 to i64
  %38 = add nuw nsw i64 %37, 1
  %.not31 = icmp ult i64 %37, %3
  br i1 %.not31, label %43, label %39

39:                                               ; preds = %35
  %40 = tail call ptr @__cxa_allocate_exception(i64 8) #4
  store i64 0, ptr %40, align 16
  tail call void @_ZN12BadRLPFormatC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %40) #4
  invoke void @__cxa_throw(ptr nonnull %40, ptr nonnull @_ZTI12BadRLPFormat, ptr nonnull @_ZNSt9exceptionD2Ev) #5
          to label %90 unwind label %41

41:                                               ; preds = %43, %39
  %42 = landingpad { ptr, i32 }
          cleanup
  br label %89

43:                                               ; preds = %35
  invoke void @_ZN3RLP15parseDataLengthEm(ptr noundef nonnull align 8 dereferenceable(64) %0, i64 noundef %37)
          to label %44 unwind label %41

44:                                               ; preds = %43
  %45 = getelementptr inbounds i8, ptr %0, i64 32
  %46 = load i64, ptr %45, align 8, !tbaa !18
  %47 = add i64 %38, %46
  %48 = getelementptr inbounds i8, ptr %0, i64 24
  store i64 %47, ptr %48, align 8, !tbaa !19
  %49 = load i64, ptr %5, align 8, !tbaa !9
  %50 = add i64 %38, %49
  br label %77

51:                                               ; preds = %33
  %52 = icmp ult i8 %16, -8
  br i1 %52, label %53, label %61

53:                                               ; preds = %51
  %54 = add nsw i32 %17, -192
  %55 = zext nneg i32 %54 to i64
  %56 = getelementptr inbounds i8, ptr %0, i64 32
  store i64 %55, ptr %56, align 8, !tbaa !18
  %57 = add nuw nsw i64 %55, 1
  %58 = getelementptr inbounds i8, ptr %0, i64 24
  store i64 %57, ptr %58, align 8, !tbaa !19
  %59 = load i64, ptr %5, align 8, !tbaa !9
  %60 = add i64 %59, 1
  br label %77

61:                                               ; preds = %51
  %62 = add nsw i32 %17, -247
  %63 = zext nneg i32 %62 to i64
  %64 = add nuw nsw i64 %63, 1
  %.not = icmp ult i64 %63, %3
  br i1 %.not, label %69, label %65

65:                                               ; preds = %61
  %66 = tail call ptr @__cxa_allocate_exception(i64 8) #4
  store i64 0, ptr %66, align 16
  tail call void @_ZN12BadRLPFormatC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %66) #4
  invoke void @__cxa_throw(ptr nonnull %66, ptr nonnull @_ZTI12BadRLPFormat, ptr nonnull @_ZNSt9exceptionD2Ev) #5
          to label %90 unwind label %67

67:                                               ; preds = %69, %65
  %68 = landingpad { ptr, i32 }
          cleanup
  br label %89

69:                                               ; preds = %61
  invoke void @_ZN3RLP15parseDataLengthEm(ptr noundef nonnull align 8 dereferenceable(64) %0, i64 noundef %63)
          to label %70 unwind label %67

70:                                               ; preds = %69
  %71 = getelementptr inbounds i8, ptr %0, i64 32
  %72 = load i64, ptr %71, align 8, !tbaa !18
  %73 = add i64 %64, %72
  %74 = getelementptr inbounds i8, ptr %0, i64 24
  store i64 %73, ptr %74, align 8, !tbaa !19
  %75 = load i64, ptr %5, align 8, !tbaa !9
  %76 = add i64 %64, %75
  br label %77

77:                                               ; preds = %25, %53, %70, %44, %19
  %.sink = phi i64 [ %32, %25 ], [ %60, %53 ], [ %76, %70 ], [ %50, %44 ], [ %22, %19 ]
  %78 = phi i64 [ %29, %25 ], [ %57, %53 ], [ %73, %70 ], [ %47, %44 ], [ 1, %19 ]
  %79 = getelementptr inbounds i8, ptr %0, i64 16
  store i64 %.sink, ptr %79, align 8, !tbaa !20
  %80 = icmp ugt i64 %78, %3
  br i1 %80, label %81, label %85

81:                                               ; preds = %77
  %82 = tail call ptr @__cxa_allocate_exception(i64 8) #4
  store i64 0, ptr %82, align 16
  tail call void @_ZN12BadRLPFormatC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %82) #4
  invoke void @__cxa_throw(ptr nonnull %82, ptr nonnull @_ZTI12BadRLPFormat, ptr nonnull @_ZNSt9exceptionD2Ev) #5
          to label %90 unwind label %83

83:                                               ; preds = %87, %81
  %84 = landingpad { ptr, i32 }
          cleanup
  br label %89

85:                                               ; preds = %77
  %86 = icmp ugt i8 %16, -65
  br i1 %86, label %87, label %88

87:                                               ; preds = %85
  invoke void @_ZN3RLP10parseItemsEv(ptr noundef nonnull align 8 dereferenceable(64) %0)
          to label %88 unwind label %83

88:                                               ; preds = %87, %85
  ret void

89:                                               ; preds = %41, %67, %83, %10
  %.pn33 = phi { ptr, i32 } [ %11, %10 ], [ %84, %83 ], [ %42, %41 ], [ %68, %67 ]
  tail call void @_ZNSt6vectorI3RLPSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #4
  resume { ptr, i32 } %.pn33

90:                                               ; preds = %81, %65, %39, %8
  unreachable
}

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

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN12BadRLPFormatC2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #2 align 2

; Function Attrs: nounwind
declare void @_ZNSt9exceptionD2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #3

declare void @__cxa_throw(ptr, ptr, ptr) local_unnamed_addr

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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 = { 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 = { inlinehint 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 = { 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 #4 = { nounwind }
attributes #5 = { noreturn }

!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 = !{!"_ZTS3RLP", !6, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !12, i64 40}
!11 = !{!"long", !7, i64 0}
!12 = !{!"_ZTSSt6vectorI3RLPSaIS0_EE", !13, i64 0}
!13 = !{!"_ZTSSt12_Vector_baseI3RLPSaIS0_EE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseI3RLPSaIS0_EE12_Vector_implE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseI3RLPSaIS0_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!16 = !{!10, !6, i64 0}
!17 = !{!7, !7, i64 0}
!18 = !{!10, !11, i64 32}
!19 = !{!10, !11, i64 24}
!20 = !{!10, !11, i64 16}


; Effective O3 passes: BDCEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass