; LLVM IR from specinfo-ua/UAPKI :: library/common/pkix (attribute-helper)

; 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.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.std::allocator.6" = type { i8 }
%struct.CrlOcspRef = type { ptr, ptr, ptr, %struct.asn_struct_ctx_s }
%struct.asn_struct_ctx_s = type { i16, i16, i32, ptr, i64 }
%struct.CRLListID = type { %"struct.CRLListID::crls", %struct.asn_struct_ctx_s }
%"struct.CRLListID::crls" = type { %struct.anon.29, %struct.asn_struct_ctx_s }
%struct.anon.29 = type { ptr, i32, i32, ptr }
%"class.UapkiNS::AttributeHelper::RevocationRefsParser::CrlOcspRef" = type { %"class.std::vector.32", %"class.std::vector.32", %"struct.UapkiNS::Attribute" }
%"class.std::vector.32" = type { %"struct.std::_Vector_base.33" }
%"struct.std::_Vector_base.33" = type { %"struct.std::_Vector_base<UapkiNS::AttributeHelper::RevocationRefsParser::CrlOcspId, std::allocator<UapkiNS::AttributeHelper::RevocationRefsParser::CrlOcspId>>::_Vector_impl" }
%"struct.std::_Vector_base<UapkiNS::AttributeHelper::RevocationRefsParser::CrlOcspId, std::allocator<UapkiNS::AttributeHelper::RevocationRefsParser::CrlOcspId>>::_Vector_impl" = type { %"struct.std::_Vector_base<UapkiNS::AttributeHelper::RevocationRefsParser::CrlOcspId, std::allocator<UapkiNS::AttributeHelper::RevocationRefsParser::CrlOcspId>>::_Vector_impl_data" }
%"struct.std::_Vector_base<UapkiNS::AttributeHelper::RevocationRefsParser::CrlOcspId, std::allocator<UapkiNS::AttributeHelper::RevocationRefsParser::CrlOcspId>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.UapkiNS::Attribute" = type { %"class.std::__cxx11::basic_string", ptr }
%struct.CrlValidatedID = type { %struct.OtherHash, ptr, %struct.asn_struct_ctx_s }
%struct.OtherHash = type { i32, %"union.OtherHash::OtherHash_u", %struct.asn_struct_ctx_s }
%"union.OtherHash::OtherHash_u" = type { %struct.OtherHashAlgAndValue }
%struct.OtherHashAlgAndValue = type { %struct.AlgorithmIdentifier, %struct.OCTET_STRING, %struct.asn_struct_ctx_s }
%struct.AlgorithmIdentifier = type { %struct.ASN__PRIMITIVE_TYPE_s, ptr, %struct.asn_struct_ctx_s }
%struct.ASN__PRIMITIVE_TYPE_s = type { ptr, i32 }
%struct.OCTET_STRING = type { ptr, i32, %struct.asn_struct_ctx_s }
%"struct.UapkiNS::AttributeHelper::RevocationRefsParser::CrlOcspId" = type { ptr, ptr }
%struct.OcspListID = type { %"struct.OcspListID::ocspResponses", %struct.asn_struct_ctx_s }
%"struct.OcspListID::ocspResponses" = type { %struct.anon.31, %struct.asn_struct_ctx_s }
%struct.anon.31 = type { ptr, i32, i32, ptr }
%struct.OcspResponsesID = type { %struct.OcspIdentifier, ptr, %struct.asn_struct_ctx_s }
%struct.OcspIdentifier = type { %struct.ResponderID, %struct.OCTET_STRING, %struct.asn_struct_ctx_s }
%struct.ResponderID = type { i32, %"union.ResponderID::ResponderID_u", %struct.asn_struct_ctx_s }
%"union.ResponderID::ResponderID_u" = type { %struct.Name }
%struct.Name = type { i32, %"union.Name::Name_u", %struct.asn_struct_ctx_s }
%"union.Name::Name_u" = type { %struct.RDNSequence }
%struct.RDNSequence = type { %struct.anon.30, %struct.asn_struct_ctx_s }
%struct.anon.30 = type { ptr, i32, i32, ptr }
%struct.OtherRevRefs = type { %struct.ASN__PRIMITIVE_TYPE_s, %struct.ANY, %struct.asn_struct_ctx_s }
%struct.ANY = type { ptr, i32, %struct.asn_struct_ctx_s }

@.str = external hidden unnamed_addr constant [33 x i8], align 1

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

declare void @stacktrace_add(ptr noundef, i64 noundef, i32 noundef) #1

declare i32 @asn_encode_ba(ptr noundef, ptr noundef, ptr noundef) #1

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2

declare i32 @__gxx_personality_v0(...)

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

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

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

declare ptr @get_OtherHash_desc() #1

declare i32 @asn_oid_to_text(ptr noundef, ptr noundef) #1

; Function Attrs: nounwind
declare void @free(ptr noundef) #4

declare ptr @get_CrlIdentifier_desc() #1

declare ptr @get_OcspIdentifier_desc() #1

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN7UapkiNS15AttributeHelper20RevocationRefsParser10CrlOcspRef5parseERK10CrlOcspRef(ptr noundef nonnull align 8 dereferenceable(88) %0, ptr noundef nonnull align 8 dereferenceable(48) %1) #3 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca i64, align 8
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i64, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca %"class.std::__cxx11::basic_string", align 8
  %15 = alloca %"class.std::allocator.6", align 1
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %18 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  store i32 0, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  store ptr null, ptr %7, align 8, !tbaa !5
  %19 = load ptr, ptr %5, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.CrlOcspRef, ptr %19, i32 0, i32 0
  %21 = load ptr, ptr %20, align 8, !tbaa !11
  %22 = icmp ne ptr %21, null
  br i1 %22, label %23, label %107

23:                                               ; preds = %2
  %24 = load ptr, ptr %5, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.CrlOcspRef, ptr %24, i32 0, i32 0
  %26 = load ptr, ptr %25, align 8, !tbaa !11
  %27 = getelementptr inbounds %struct.CRLListID, ptr %26, i32 0, i32 0
  %28 = getelementptr inbounds %"struct.CRLListID::crls", ptr %27, i32 0, i32 0
  %29 = getelementptr inbounds %struct.anon.29, ptr %28, i32 0, i32 1
  %30 = load i32, ptr %29, align 8, !tbaa !16
  %31 = icmp sgt i32 %30, 0
  br i1 %31, label %32, label %107

32:                                               ; preds = %23
  %33 = getelementptr inbounds %"class.UapkiNS::AttributeHelper::RevocationRefsParser::CrlOcspRef", ptr %18, i32 0, i32 0
  %34 = load ptr, ptr %5, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.CrlOcspRef, ptr %34, i32 0, i32 0
  %36 = load ptr, ptr %35, align 8, !tbaa !11
  %37 = getelementptr inbounds %struct.CRLListID, ptr %36, i32 0, i32 0
  %38 = getelementptr inbounds %"struct.CRLListID::crls", ptr %37, i32 0, i32 0
  %39 = getelementptr inbounds %struct.anon.29, ptr %38, i32 0, i32 1
  %40 = load i32, ptr %39, align 8, !tbaa !16
  %41 = sext i32 %40 to i64
  call void @_ZNSt6vectorIN7UapkiNS15AttributeHelper20RevocationRefsParser9CrlOcspIdESaIS3_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %33, i64 noundef %41)
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  store i64 0, ptr %8, align 8, !tbaa !20
  br label %42

42:                                               ; preds = %101, %32
  %43 = load i64, ptr %8, align 8, !tbaa !20
  %44 = getelementptr inbounds %"class.UapkiNS::AttributeHelper::RevocationRefsParser::CrlOcspRef", ptr %18, i32 0, i32 0
  %45 = call noundef i64 @_ZNKSt6vectorIN7UapkiNS15AttributeHelper20RevocationRefsParser9CrlOcspIdESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %44) #5
  %46 = icmp ult i64 %43, %45
  br i1 %46, label %48, label %47

47:                                               ; preds = %42
  store i32 2, ptr %9, align 4
  br label %104

48:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %49 = load ptr, ptr %5, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.CrlOcspRef, ptr %49, i32 0, i32 0
  %51 = load ptr, ptr %50, align 8, !tbaa !11
  %52 = getelementptr inbounds %struct.CRLListID, ptr %51, i32 0, i32 0
  %53 = getelementptr inbounds %"struct.CRLListID::crls", ptr %52, i32 0, i32 0
  %54 = getelementptr inbounds %struct.anon.29, ptr %53, i32 0, i32 0
  %55 = load ptr, ptr %54, align 8, !tbaa !21
  %56 = load i64, ptr %8, align 8, !tbaa !20
  %57 = getelementptr inbounds ptr, ptr %55, i64 %56
  %58 = load ptr, ptr %57, align 8, !tbaa !5
  store ptr %58, ptr %10, align 8, !tbaa !5
  br label %59

59:                                               ; preds = %48
  %60 = call ptr @get_OtherHash_desc()
  %61 = load ptr, ptr %10, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.CrlValidatedID, ptr %61, i32 0, i32 0
  %63 = getelementptr inbounds %"class.UapkiNS::AttributeHelper::RevocationRefsParser::CrlOcspRef", ptr %18, i32 0, i32 0
  %64 = load i64, ptr %8, align 8, !tbaa !20
  %65 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN7UapkiNS15AttributeHelper20RevocationRefsParser9CrlOcspIdESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %63, i64 noundef %64) #5
  %66 = getelementptr inbounds %"struct.UapkiNS::AttributeHelper::RevocationRefsParser::CrlOcspId", ptr %65, i32 0, i32 0
  %67 = call i32 @asn_encode_ba(ptr noundef %60, ptr noundef %62, ptr noundef %66)
  store i32 %67, ptr %6, align 4, !tbaa !9
  %68 = load i32, ptr %6, align 4, !tbaa !9
  %69 = icmp ne i32 %68, 0
  br i1 %69, label %70, label %72

70:                                               ; preds = %59
  %71 = load i32, ptr %6, align 4, !tbaa !9
  call void @stacktrace_add(ptr noundef @.str, i64 noundef 867, i32 noundef %71)
  store i32 7, ptr %9, align 4
  br label %98

72:                                               ; preds = %59
  br label %73

73:                                               ; preds = %72
  br label %74

74:                                               ; preds = %73
  %75 = load ptr, ptr %10, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.CrlValidatedID, ptr %75, i32 0, i32 1
  %77 = load ptr, ptr %76, align 8, !tbaa !22
  %78 = icmp ne ptr %77, null
  br i1 %78, label %79, label %97

79:                                               ; preds = %74
  br label %80

80:                                               ; preds = %79
  %81 = call ptr @get_CrlIdentifier_desc()
  %82 = load ptr, ptr %10, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.CrlValidatedID, ptr %82, i32 0, i32 1
  %84 = load ptr, ptr %83, align 8, !tbaa !22
  %85 = getelementptr inbounds %"class.UapkiNS::AttributeHelper::RevocationRefsParser::CrlOcspRef", ptr %18, i32 0, i32 0
  %86 = load i64, ptr %8, align 8, !tbaa !20
  %87 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN7UapkiNS15AttributeHelper20RevocationRefsParser9CrlOcspIdESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %85, i64 noundef %86) #5
  %88 = getelementptr inbounds %"struct.UapkiNS::AttributeHelper::RevocationRefsParser::CrlOcspId", ptr %87, i32 0, i32 1
  %89 = call i32 @asn_encode_ba(ptr noundef %81, ptr noundef %84, ptr noundef %88)
  store i32 %89, ptr %6, align 4, !tbaa !9
  %90 = load i32, ptr %6, align 4, !tbaa !9
  %91 = icmp ne i32 %90, 0
  br i1 %91, label %92, label %94

92:                                               ; preds = %80
  %93 = load i32, ptr %6, align 4, !tbaa !9
  call void @stacktrace_add(ptr noundef @.str, i64 noundef 869, i32 noundef %93)
  store i32 7, ptr %9, align 4
  br label %98

94:                                               ; preds = %80
  br label %95

95:                                               ; preds = %94
  br label %96

96:                                               ; preds = %95
  br label %97

97:                                               ; preds = %96, %74
  store i32 0, ptr %9, align 4
  br label %98

98:                                               ; preds = %97, %92, %70
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  %99 = load i32, ptr %9, align 4
  switch i32 %99, label %104 [
    i32 0, label %100
  ]

100:                                              ; preds = %98
  br label %101

101:                                              ; preds = %100
  %102 = load i64, ptr %8, align 8, !tbaa !20
  %103 = add i64 %102, 1
  store i64 %103, ptr %8, align 8, !tbaa !20
  br label %42, !llvm.loop !26

104:                                              ; preds = %98, %47
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  %105 = load i32, ptr %9, align 4
  switch i32 %105, label %244 [
    i32 2, label %106
    i32 7, label %241
  ]

106:                                              ; preds = %104
  br label %107

107:                                              ; preds = %106, %23, %2
  %108 = load ptr, ptr %5, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.CrlOcspRef, ptr %108, i32 0, i32 1
  %110 = load ptr, ptr %109, align 8, !tbaa !28
  %111 = icmp ne ptr %110, null
  br i1 %111, label %112, label %196

112:                                              ; preds = %107
  %113 = load ptr, ptr %5, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.CrlOcspRef, ptr %113, i32 0, i32 1
  %115 = load ptr, ptr %114, align 8, !tbaa !28
  %116 = getelementptr inbounds %struct.OcspListID, ptr %115, i32 0, i32 0
  %117 = getelementptr inbounds %"struct.OcspListID::ocspResponses", ptr %116, i32 0, i32 0
  %118 = getelementptr inbounds %struct.anon.31, ptr %117, i32 0, i32 1
  %119 = load i32, ptr %118, align 8, !tbaa !29
  %120 = icmp sgt i32 %119, 0
  br i1 %120, label %121, label %196

121:                                              ; preds = %112
  %122 = getelementptr inbounds %"class.UapkiNS::AttributeHelper::RevocationRefsParser::CrlOcspRef", ptr %18, i32 0, i32 1
  %123 = load ptr, ptr %5, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.CrlOcspRef, ptr %123, i32 0, i32 1
  %125 = load ptr, ptr %124, align 8, !tbaa !28
  %126 = getelementptr inbounds %struct.OcspListID, ptr %125, i32 0, i32 0
  %127 = getelementptr inbounds %"struct.OcspListID::ocspResponses", ptr %126, i32 0, i32 0
  %128 = getelementptr inbounds %struct.anon.31, ptr %127, i32 0, i32 1
  %129 = load i32, ptr %128, align 8, !tbaa !29
  %130 = sext i32 %129 to i64
  call void @_ZNSt6vectorIN7UapkiNS15AttributeHelper20RevocationRefsParser9CrlOcspIdESaIS3_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %122, i64 noundef %130)
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  store i64 0, ptr %11, align 8, !tbaa !20
  br label %131

131:                                              ; preds = %190, %121
  %132 = load i64, ptr %11, align 8, !tbaa !20
  %133 = getelementptr inbounds %"class.UapkiNS::AttributeHelper::RevocationRefsParser::CrlOcspRef", ptr %18, i32 0, i32 1
  %134 = call noundef i64 @_ZNKSt6vectorIN7UapkiNS15AttributeHelper20RevocationRefsParser9CrlOcspIdESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %133) #5
  %135 = icmp ult i64 %132, %134
  br i1 %135, label %137, label %136

136:                                              ; preds = %131
  store i32 10, ptr %9, align 4
  br label %193

137:                                              ; preds = %131
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %138 = load ptr, ptr %5, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.CrlOcspRef, ptr %138, i32 0, i32 1
  %140 = load ptr, ptr %139, align 8, !tbaa !28
  %141 = getelementptr inbounds %struct.OcspListID, ptr %140, i32 0, i32 0
  %142 = getelementptr inbounds %"struct.OcspListID::ocspResponses", ptr %141, i32 0, i32 0
  %143 = getelementptr inbounds %struct.anon.31, ptr %142, i32 0, i32 0
  %144 = load ptr, ptr %143, align 8, !tbaa !33
  %145 = load i64, ptr %11, align 8, !tbaa !20
  %146 = getelementptr inbounds ptr, ptr %144, i64 %145
  %147 = load ptr, ptr %146, align 8, !tbaa !5
  store ptr %147, ptr %12, align 8, !tbaa !5
  br label %148

148:                                              ; preds = %137
  %149 = call ptr @get_OcspIdentifier_desc()
  %150 = load ptr, ptr %12, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct.OcspResponsesID, ptr %150, i32 0, i32 0
  %152 = getelementptr inbounds %"class.UapkiNS::AttributeHelper::RevocationRefsParser::CrlOcspRef", ptr %18, i32 0, i32 1
  %153 = load i64, ptr %11, align 8, !tbaa !20
  %154 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN7UapkiNS15AttributeHelper20RevocationRefsParser9CrlOcspIdESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %152, i64 noundef %153) #5
  %155 = getelementptr inbounds %"struct.UapkiNS::AttributeHelper::RevocationRefsParser::CrlOcspId", ptr %154, i32 0, i32 1
  %156 = call i32 @asn_encode_ba(ptr noundef %149, ptr noundef %151, ptr noundef %155)
  store i32 %156, ptr %6, align 4, !tbaa !9
  %157 = load i32, ptr %6, align 4, !tbaa !9
  %158 = icmp ne i32 %157, 0
  br i1 %158, label %159, label %161

159:                                              ; preds = %148
  %160 = load i32, ptr %6, align 4, !tbaa !9
  call void @stacktrace_add(ptr noundef @.str, i64 noundef 879, i32 noundef %160)
  store i32 7, ptr %9, align 4
  br label %187

161:                                              ; preds = %148
  br label %162

162:                                              ; preds = %161
  br label %163

163:                                              ; preds = %162
  %164 = load ptr, ptr %12, align 8, !tbaa !5
  %165 = getelementptr inbounds %struct.OcspResponsesID, ptr %164, i32 0, i32 1
  %166 = load ptr, ptr %165, align 8, !tbaa !34
  %167 = icmp ne ptr %166, null
  br i1 %167, label %168, label %186

168:                                              ; preds = %163
  br label %169

169:                                              ; preds = %168
  %170 = call ptr @get_OtherHash_desc()
  %171 = load ptr, ptr %12, align 8, !tbaa !5
  %172 = getelementptr inbounds %struct.OcspResponsesID, ptr %171, i32 0, i32 1
  %173 = load ptr, ptr %172, align 8, !tbaa !34
  %174 = getelementptr inbounds %"class.UapkiNS::AttributeHelper::RevocationRefsParser::CrlOcspRef", ptr %18, i32 0, i32 1
  %175 = load i64, ptr %11, align 8, !tbaa !20
  %176 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN7UapkiNS15AttributeHelper20RevocationRefsParser9CrlOcspIdESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %174, i64 noundef %175) #5
  %177 = getelementptr inbounds %"struct.UapkiNS::AttributeHelper::RevocationRefsParser::CrlOcspId", ptr %176, i32 0, i32 0
  %178 = call i32 @asn_encode_ba(ptr noundef %170, ptr noundef %173, ptr noundef %177)
  store i32 %178, ptr %6, align 4, !tbaa !9
  %179 = load i32, ptr %6, align 4, !tbaa !9
  %180 = icmp ne i32 %179, 0
  br i1 %180, label %181, label %183

181:                                              ; preds = %169
  %182 = load i32, ptr %6, align 4, !tbaa !9
  call void @stacktrace_add(ptr noundef @.str, i64 noundef 881, i32 noundef %182)
  store i32 7, ptr %9, align 4
  br label %187

183:                                              ; preds = %169
  br label %184

184:                                              ; preds = %183
  br label %185

185:                                              ; preds = %184
  br label %186

186:                                              ; preds = %185, %163
  store i32 0, ptr %9, align 4
  br label %187

187:                                              ; preds = %186, %181, %159
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  %188 = load i32, ptr %9, align 4
  switch i32 %188, label %193 [
    i32 0, label %189
  ]

189:                                              ; preds = %187
  br label %190

190:                                              ; preds = %189
  %191 = load i64, ptr %11, align 8, !tbaa !20
  %192 = add i64 %191, 1
  store i64 %192, ptr %11, align 8, !tbaa !20
  br label %131, !llvm.loop !40

193:                                              ; preds = %187, %136
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  %194 = load i32, ptr %9, align 4
  switch i32 %194, label %244 [
    i32 10, label %195
    i32 7, label %241
  ]

195:                                              ; preds = %193
  br label %196

196:                                              ; preds = %195, %112, %107
  %197 = load ptr, ptr %5, align 8, !tbaa !5
  %198 = getelementptr inbounds %struct.CrlOcspRef, ptr %197, i32 0, i32 2
  %199 = load ptr, ptr %198, align 8, !tbaa !41
  %200 = icmp ne ptr %199, null
  br i1 %200, label %201, label %240

201:                                              ; preds = %196
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %202 = load ptr, ptr %5, align 8, !tbaa !5
  %203 = getelementptr inbounds %struct.CrlOcspRef, ptr %202, i32 0, i32 2
  %204 = load ptr, ptr %203, align 8, !tbaa !41
  store ptr %204, ptr %13, align 8, !tbaa !5
  br label %205

205:                                              ; preds = %201
  %206 = load ptr, ptr %13, align 8, !tbaa !5
  %207 = getelementptr inbounds %struct.OtherRevRefs, ptr %206, i32 0, i32 0
  %208 = call i32 @asn_oid_to_text(ptr noundef %207, ptr noundef %7)
  store i32 %208, ptr %6, align 4, !tbaa !9
  %209 = load i32, ptr %6, align 4, !tbaa !9
  %210 = icmp ne i32 %209, 0
  br i1 %210, label %211, label %213

211:                                              ; preds = %205
  %212 = load i32, ptr %6, align 4, !tbaa !9
  call void @stacktrace_add(ptr noundef @.str, i64 noundef 889, i32 noundef %212)
  store i32 7, ptr %9, align 4
  br label %233

213:                                              ; preds = %205
  br label %214

214:                                              ; preds = %213
  br label %215

215:                                              ; preds = %214
  call void @llvm.lifetime.start.p0(i64 32, ptr %14) #5
  %216 = load ptr, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #5
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #5
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef %216, ptr noundef nonnull align 1 dereferenceable(1) %15)
          to label %217 unwind label %236

217:                                              ; preds = %215
  %218 = getelementptr inbounds %"class.UapkiNS::AttributeHelper::RevocationRefsParser::CrlOcspRef", ptr %18, i32 0, i32 2
  %219 = getelementptr inbounds %"struct.UapkiNS::Attribute", ptr %218, i32 0, i32 0
  %220 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %219, ptr noundef nonnull align 8 dereferenceable(32) %14) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #5
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #5
  %221 = load ptr, ptr %13, align 8, !tbaa !5
  %222 = getelementptr inbounds %struct.OtherRevRefs, ptr %221, i32 0, i32 1
  %223 = getelementptr inbounds %struct.ANY, ptr %222, i32 0, i32 0
  %224 = load ptr, ptr %223, align 8, !tbaa !42
  %225 = load ptr, ptr %13, align 8, !tbaa !5
  %226 = getelementptr inbounds %struct.OtherRevRefs, ptr %225, i32 0, i32 1
  %227 = getelementptr inbounds %struct.ANY, ptr %226, i32 0, i32 1
  %228 = load i32, ptr %227, align 8, !tbaa !46
  %229 = sext i32 %228 to i64
  %230 = call ptr @ba_alloc_from_uint8(ptr noundef %224, i64 noundef %229)
  %231 = getelementptr inbounds %"class.UapkiNS::AttributeHelper::RevocationRefsParser::CrlOcspRef", ptr %18, i32 0, i32 2
  %232 = getelementptr inbounds %"struct.UapkiNS::Attribute", ptr %231, i32 0, i32 1
  store ptr %230, ptr %232, align 8, !tbaa !47
  store i32 0, ptr %9, align 4
  br label %233

233:                                              ; preds = %217, %211
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  %234 = load i32, ptr %9, align 4
  switch i32 %234, label %244 [
    i32 0, label %235
    i32 7, label %241
  ]

235:                                              ; preds = %233
  br label %240

236:                                              ; preds = %215
  %237 = landingpad { ptr, i32 }
          cleanup
  %238 = extractvalue { ptr, i32 } %237, 0
  store ptr %238, ptr %16, align 8
  %239 = extractvalue { ptr, i32 } %237, 1
  store i32 %239, ptr %17, align 4
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  br label %246

240:                                              ; preds = %235, %196
  br label %241

241:                                              ; preds = %240, %233, %193, %104
  %242 = load ptr, ptr %7, align 8, !tbaa !5
  call void @free(ptr noundef %242) #5
  %243 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %243, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %244

244:                                              ; preds = %241, %233, %193, %104
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  %245 = load i32, ptr %3, align 4
  ret i32 %245

246:                                              ; preds = %236
  %247 = load ptr, ptr %16, align 8
  %248 = load i32, ptr %17, align 4
  %249 = insertvalue { ptr, i32 } poison, ptr %247, 0
  %250 = insertvalue { ptr, i32 } %249, i32 %248, 1
  resume { ptr, i32 } %250
}

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

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

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

declare ptr @ba_alloc_from_uint8(ptr noundef, i64 noundef) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 = { 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 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"_ZTS10CrlOcspRef", !6, i64 0, !6, i64 8, !6, i64 16, !13, i64 24}
!13 = !{!"_ZTS16asn_struct_ctx_s", !14, i64 0, !14, i64 2, !10, i64 4, !6, i64 8, !15, i64 16}
!14 = !{!"short", !7, i64 0}
!15 = !{!"long", !7, i64 0}
!16 = !{!17, !10, i64 8}
!17 = !{!"_ZTS9CRLListID", !18, i64 0, !13, i64 48}
!18 = !{!"_ZTSN9CRLListID4crlsE", !19, i64 0, !13, i64 24}
!19 = !{!"_ZTSN9CRLListID4crlsUt_E", !6, i64 0, !10, i64 8, !10, i64 12, !6, i64 16}
!20 = !{!15, !15, i64 0}
!21 = !{!17, !6, i64 0}
!22 = !{!23, !6, i64 144}
!23 = !{!"_ZTS14CrlValidatedID", !24, i64 0, !6, i64 144, !13, i64 152}
!24 = !{!"_ZTS9OtherHash", !25, i64 0, !7, i64 8, !13, i64 120}
!25 = !{!"_ZTS12OtherHash_PR", !7, i64 0}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}
!28 = !{!12, !6, i64 8}
!29 = !{!30, !10, i64 8}
!30 = !{!"_ZTS10OcspListID", !31, i64 0, !13, i64 48}
!31 = !{!"_ZTSN10OcspListID13ocspResponsesE", !32, i64 0, !13, i64 24}
!32 = !{!"_ZTSN10OcspListID13ocspResponsesUt_E", !6, i64 0, !10, i64 8, !10, i64 12, !6, i64 16}
!33 = !{!30, !6, i64 0}
!34 = !{!35, !6, i64 176}
!35 = !{!"_ZTS15OcspResponsesID", !36, i64 0, !6, i64 176, !13, i64 184}
!36 = !{!"_ZTS14OcspIdentifier", !37, i64 0, !39, i64 112, !13, i64 152}
!37 = !{!"_ZTS11ResponderID", !38, i64 0, !7, i64 8, !13, i64 88}
!38 = !{!"_ZTS14ResponderID_PR", !7, i64 0}
!39 = !{!"_ZTS12OCTET_STRING", !6, i64 0, !10, i64 8, !13, i64 16}
!40 = distinct !{!40, !27}
!41 = !{!12, !6, i64 16}
!42 = !{!43, !6, i64 16}
!43 = !{!"_ZTS12OtherRevRefs", !44, i64 0, !45, i64 16, !13, i64 56}
!44 = !{!"_ZTS21ASN__PRIMITIVE_TYPE_s", !6, i64 0, !10, i64 8}
!45 = !{!"_ZTS3ANY", !6, i64 0, !10, i64 8, !13, i64 16}
!46 = !{!43, !10, i64 24}
!47 = !{!48, !6, i64 80}
!48 = !{!"_ZTSN7UapkiNS15AttributeHelper20RevocationRefsParser10CrlOcspRefE", !49, i64 0, !49, i64 24, !53, i64 48}
!49 = !{!"_ZTSSt6vectorIN7UapkiNS15AttributeHelper20RevocationRefsParser9CrlOcspIdESaIS3_EE", !50, i64 0}
!50 = !{!"_ZTSSt12_Vector_baseIN7UapkiNS15AttributeHelper20RevocationRefsParser9CrlOcspIdESaIS3_EE", !51, i64 0}
!51 = !{!"_ZTSNSt12_Vector_baseIN7UapkiNS15AttributeHelper20RevocationRefsParser9CrlOcspIdESaIS3_EE12_Vector_implE", !52, i64 0}
!52 = !{!"_ZTSNSt12_Vector_baseIN7UapkiNS15AttributeHelper20RevocationRefsParser9CrlOcspIdESaIS3_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!53 = !{!"_ZTSN7UapkiNS9AttributeE", !54, i64 0, !6, i64 32}
!54 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !55, i64 0, !15, i64 8, !7, i64 16}
!55 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"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.std::allocator.6" = type { i8 }

@.str = external hidden unnamed_addr constant [33 x i8], align 1

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

declare void @stacktrace_add(ptr noundef, i64 noundef, i32 noundef) local_unnamed_addr #1

declare i32 @asn_encode_ba(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; 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 nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2

declare i32 @__gxx_personality_v0(...)

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

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

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

declare ptr @get_OtherHash_desc() local_unnamed_addr #1

declare i32 @asn_oid_to_text(ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #4

declare ptr @get_CrlIdentifier_desc() local_unnamed_addr #1

declare ptr @get_OcspIdentifier_desc() local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN7UapkiNS15AttributeHelper20RevocationRefsParser10CrlOcspRef5parseERK10CrlOcspRef(ptr noundef nonnull align 8 dereferenceable(88) %0, ptr nocapture noundef nonnull readonly align 8 dereferenceable(48) %1) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca %"class.std::__cxx11::basic_string", align 8
  %5 = alloca %"class.std::allocator.6", align 1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #5
  store ptr null, ptr %3, align 8, !tbaa !5
  %6 = load ptr, ptr %1, align 8, !tbaa !9
  %.not = icmp eq ptr %6, null
  br i1 %.not, label %.loopexit106, label %7

7:                                                ; preds = %2
  %8 = getelementptr inbounds i8, ptr %6, i64 8
  %9 = load i32, ptr %8, align 8, !tbaa !15
  %10 = icmp sgt i32 %9, 0
  br i1 %10, label %11, label %.loopexit106

11:                                               ; preds = %7
  %12 = zext nneg i32 %9 to i64
  tail call void @_ZNSt6vectorIN7UapkiNS15AttributeHelper20RevocationRefsParser9CrlOcspIdESaIS3_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %12)
  %13 = tail call noundef i64 @_ZNKSt6vectorIN7UapkiNS15AttributeHelper20RevocationRefsParser9CrlOcspIdESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  %.not115 = icmp eq i64 %13, 0
  br i1 %.not115, label %.loopexit106, label %.lr.ph

.lr.ph:                                           ; preds = %11, %32
  %.050112 = phi i64 [ %33, %32 ], [ 0, %11 ]
  %14 = load ptr, ptr %1, align 8, !tbaa !9
  %15 = load ptr, ptr %14, align 8, !tbaa !19
  %16 = getelementptr inbounds ptr, ptr %15, i64 %.050112
  %17 = load ptr, ptr %16, align 8, !tbaa !5
  %18 = tail call ptr @get_OtherHash_desc()
  %19 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN7UapkiNS15AttributeHelper20RevocationRefsParser9CrlOcspIdESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %.050112) #5
  %20 = tail call i32 @asn_encode_ba(ptr noundef %18, ptr noundef %17, ptr noundef nonnull %19)
  %.not71 = icmp eq i32 %20, 0
  br i1 %.not71, label %22, label %21

21:                                               ; preds = %.lr.ph
  tail call void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 867, i32 noundef %20)
  br label %.thread89

22:                                               ; preds = %.lr.ph
  %23 = getelementptr inbounds i8, ptr %17, i64 144
  %24 = load ptr, ptr %23, align 8, !tbaa !20
  %.not72 = icmp eq ptr %24, null
  br i1 %.not72, label %32, label %25

25:                                               ; preds = %22
  %26 = tail call ptr @get_CrlIdentifier_desc()
  %27 = load ptr, ptr %23, align 8, !tbaa !20
  %28 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN7UapkiNS15AttributeHelper20RevocationRefsParser9CrlOcspIdESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %.050112) #5
  %29 = getelementptr inbounds i8, ptr %28, i64 8
  %30 = tail call i32 @asn_encode_ba(ptr noundef %26, ptr noundef %27, ptr noundef nonnull %29)
  %.not73 = icmp eq i32 %30, 0
  br i1 %.not73, label %32, label %31

31:                                               ; preds = %25
  tail call void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 869, i32 noundef %30)
  br label %.thread89

32:                                               ; preds = %25, %22
  %33 = add nuw i64 %.050112, 1
  %34 = tail call noundef i64 @_ZNKSt6vectorIN7UapkiNS15AttributeHelper20RevocationRefsParser9CrlOcspIdESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  %35 = icmp ult i64 %33, %34
  br i1 %35, label %.lr.ph, label %.loopexit106, !llvm.loop !24

.loopexit106:                                     ; preds = %32, %11, %7, %2
  %36 = getelementptr inbounds i8, ptr %1, i64 8
  %37 = load ptr, ptr %36, align 8, !tbaa !26
  %.not74 = icmp eq ptr %37, null
  br i1 %.not74, label %.loopexit, label %38

38:                                               ; preds = %.loopexit106
  %39 = getelementptr inbounds i8, ptr %37, i64 8
  %40 = load i32, ptr %39, align 8, !tbaa !27
  %41 = icmp sgt i32 %40, 0
  br i1 %41, label %42, label %.loopexit

42:                                               ; preds = %38
  %43 = getelementptr inbounds i8, ptr %0, i64 24
  %44 = zext nneg i32 %40 to i64
  tail call void @_ZNSt6vectorIN7UapkiNS15AttributeHelper20RevocationRefsParser9CrlOcspIdESaIS3_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %43, i64 noundef %44)
  %45 = tail call noundef i64 @_ZNKSt6vectorIN7UapkiNS15AttributeHelper20RevocationRefsParser9CrlOcspIdESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %43) #5
  %.not116 = icmp eq i64 %45, 0
  br i1 %.not116, label %.loopexit, label %.lr.ph114

.lr.ph114:                                        ; preds = %42, %64
  %.056113 = phi i64 [ %65, %64 ], [ 0, %42 ]
  %46 = load ptr, ptr %36, align 8, !tbaa !26
  %47 = load ptr, ptr %46, align 8, !tbaa !31
  %48 = getelementptr inbounds ptr, ptr %47, i64 %.056113
  %49 = load ptr, ptr %48, align 8, !tbaa !5
  %50 = tail call ptr @get_OcspIdentifier_desc()
  %51 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN7UapkiNS15AttributeHelper20RevocationRefsParser9CrlOcspIdESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %43, i64 noundef %.056113) #5
  %52 = getelementptr inbounds i8, ptr %51, i64 8
  %53 = tail call i32 @asn_encode_ba(ptr noundef %50, ptr noundef %49, ptr noundef nonnull %52)
  %.not75 = icmp eq i32 %53, 0
  br i1 %.not75, label %55, label %54

54:                                               ; preds = %.lr.ph114
  tail call void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 879, i32 noundef %53)
  br label %.thread89

55:                                               ; preds = %.lr.ph114
  %56 = getelementptr inbounds i8, ptr %49, i64 176
  %57 = load ptr, ptr %56, align 8, !tbaa !32
  %.not76 = icmp eq ptr %57, null
  br i1 %.not76, label %64, label %58

58:                                               ; preds = %55
  %59 = tail call ptr @get_OtherHash_desc()
  %60 = load ptr, ptr %56, align 8, !tbaa !32
  %61 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN7UapkiNS15AttributeHelper20RevocationRefsParser9CrlOcspIdESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %43, i64 noundef %.056113) #5
  %62 = tail call i32 @asn_encode_ba(ptr noundef %59, ptr noundef %60, ptr noundef nonnull %61)
  %.not77 = icmp eq i32 %62, 0
  br i1 %.not77, label %64, label %63

63:                                               ; preds = %58
  tail call void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 881, i32 noundef %62)
  br label %.thread89

64:                                               ; preds = %58, %55
  %65 = add nuw i64 %.056113, 1
  %66 = tail call noundef i64 @_ZNKSt6vectorIN7UapkiNS15AttributeHelper20RevocationRefsParser9CrlOcspIdESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %43) #5
  %67 = icmp ult i64 %65, %66
  br i1 %67, label %.lr.ph114, label %.loopexit, !llvm.loop !38

.loopexit:                                        ; preds = %64, %42, %38, %.loopexit106
  %68 = getelementptr inbounds i8, ptr %1, i64 16
  %69 = load ptr, ptr %68, align 8, !tbaa !39
  %.not78 = icmp eq ptr %69, null
  br i1 %.not78, label %.thread89, label %70

70:                                               ; preds = %.loopexit
  %71 = call i32 @asn_oid_to_text(ptr noundef nonnull %69, ptr noundef nonnull %3)
  %.not79 = icmp eq i32 %71, 0
  br i1 %.not79, label %73, label %72

72:                                               ; preds = %70
  call void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 889, i32 noundef %71)
  br label %.thread89

73:                                               ; preds = %70
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #5
  %74 = load ptr, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #5
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #5
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef %74, ptr noundef nonnull align 1 dereferenceable(1) %5)
          to label %75 unwind label %85

75:                                               ; preds = %73
  %76 = getelementptr inbounds i8, ptr %0, i64 48
  %77 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %76, ptr noundef nonnull align 8 dereferenceable(32) %4) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #5
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #5
  %78 = getelementptr inbounds i8, ptr %69, i64 16
  %79 = load ptr, ptr %78, align 8, !tbaa !40
  %80 = getelementptr inbounds i8, ptr %69, i64 24
  %81 = load i32, ptr %80, align 8, !tbaa !44
  %82 = sext i32 %81 to i64
  %83 = call ptr @ba_alloc_from_uint8(ptr noundef %79, i64 noundef %82)
  %84 = getelementptr inbounds i8, ptr %0, i64 80
  store ptr %83, ptr %84, align 8, !tbaa !45
  br label %.thread89

85:                                               ; preds = %73
  %86 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  resume { ptr, i32 } %86

.thread89:                                        ; preds = %63, %54, %31, %21, %72, %75, %.loopexit
  %.10 = phi i32 [ 0, %.loopexit ], [ 0, %75 ], [ %71, %72 ], [ %30, %31 ], [ %20, %21 ], [ %62, %63 ], [ %53, %54 ]
  %87 = load ptr, ptr %3, align 8, !tbaa !5
  call void @free(ptr noundef %87) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  ret i32 %.10
}

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

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

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

declare ptr @ba_alloc_from_uint8(ptr noundef, i64 noundef) local_unnamed_addr #1

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }

!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, !6, i64 0}
!10 = !{!"_ZTS10CrlOcspRef", !6, i64 0, !6, i64 8, !6, i64 16, !11, i64 24}
!11 = !{!"_ZTS16asn_struct_ctx_s", !12, i64 0, !12, i64 2, !13, i64 4, !6, i64 8, !14, i64 16}
!12 = !{!"short", !7, i64 0}
!13 = !{!"int", !7, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!16, !13, i64 8}
!16 = !{!"_ZTS9CRLListID", !17, i64 0, !11, i64 48}
!17 = !{!"_ZTSN9CRLListID4crlsE", !18, i64 0, !11, i64 24}
!18 = !{!"_ZTSN9CRLListID4crlsUt_E", !6, i64 0, !13, i64 8, !13, i64 12, !6, i64 16}
!19 = !{!16, !6, i64 0}
!20 = !{!21, !6, i64 144}
!21 = !{!"_ZTS14CrlValidatedID", !22, i64 0, !6, i64 144, !11, i64 152}
!22 = !{!"_ZTS9OtherHash", !23, i64 0, !7, i64 8, !11, i64 120}
!23 = !{!"_ZTS12OtherHash_PR", !7, i64 0}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}
!26 = !{!10, !6, i64 8}
!27 = !{!28, !13, i64 8}
!28 = !{!"_ZTS10OcspListID", !29, i64 0, !11, i64 48}
!29 = !{!"_ZTSN10OcspListID13ocspResponsesE", !30, i64 0, !11, i64 24}
!30 = !{!"_ZTSN10OcspListID13ocspResponsesUt_E", !6, i64 0, !13, i64 8, !13, i64 12, !6, i64 16}
!31 = !{!28, !6, i64 0}
!32 = !{!33, !6, i64 176}
!33 = !{!"_ZTS15OcspResponsesID", !34, i64 0, !6, i64 176, !11, i64 184}
!34 = !{!"_ZTS14OcspIdentifier", !35, i64 0, !37, i64 112, !11, i64 152}
!35 = !{!"_ZTS11ResponderID", !36, i64 0, !7, i64 8, !11, i64 88}
!36 = !{!"_ZTS14ResponderID_PR", !7, i64 0}
!37 = !{!"_ZTS12OCTET_STRING", !6, i64 0, !13, i64 8, !11, i64 16}
!38 = distinct !{!38, !25}
!39 = !{!10, !6, i64 16}
!40 = !{!41, !6, i64 16}
!41 = !{!"_ZTS12OtherRevRefs", !42, i64 0, !43, i64 16, !11, i64 56}
!42 = !{!"_ZTS21ASN__PRIMITIVE_TYPE_s", !6, i64 0, !13, i64 8}
!43 = !{!"_ZTS3ANY", !6, i64 0, !13, i64 8, !11, i64 16}
!44 = !{!41, !13, i64 24}
!45 = !{!46, !6, i64 80}
!46 = !{!"_ZTSN7UapkiNS15AttributeHelper20RevocationRefsParser10CrlOcspRefE", !47, i64 0, !47, i64 24, !51, i64 48}
!47 = !{!"_ZTSSt6vectorIN7UapkiNS15AttributeHelper20RevocationRefsParser9CrlOcspIdESaIS3_EE", !48, i64 0}
!48 = !{!"_ZTSSt12_Vector_baseIN7UapkiNS15AttributeHelper20RevocationRefsParser9CrlOcspIdESaIS3_EE", !49, i64 0}
!49 = !{!"_ZTSNSt12_Vector_baseIN7UapkiNS15AttributeHelper20RevocationRefsParser9CrlOcspIdESaIS3_EE12_Vector_implE", !50, i64 0}
!50 = !{!"_ZTSNSt12_Vector_baseIN7UapkiNS15AttributeHelper20RevocationRefsParser9CrlOcspIdESaIS3_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!51 = !{!"_ZTSN7UapkiNS9AttributeE", !52, i64 0, !6, i64 32}
!52 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !53, i64 0, !14, i64 8, !7, i64 16}
!53 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}


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