; 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.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::allocator.6" = type { i8 }
%struct.CompleteCertificateRefs = type { %struct.anon.0, %struct.asn_struct_ctx_s }
%struct.anon.0 = type { ptr, i32, i32, ptr }
%struct.asn_struct_ctx_s = type { i16, i16, i32, ptr, i64 }
%struct.OtherCertID = 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::OtherHash" = type { %"struct.UapkiNS::AlgorithmIdentifier", ptr }
%"struct.UapkiNS::AlgorithmIdentifier" = type { %"class.std::__cxx11::basic_string", ptr }
%struct.IssuerSerial = type { %struct.GeneralNames, %struct.ASN__PRIMITIVE_TYPE_s, ptr, %struct.asn_struct_ctx_s }
%struct.GeneralNames = type { %struct.anon.9, %struct.asn_struct_ctx_s }
%struct.anon.9 = type { ptr, i32, i32, ptr }
%"struct.UapkiNS::AttrCertId" = type { %"struct.UapkiNS::OtherHash", %"struct.UapkiNS::AttrCertId::IssuerSerial" }
%"struct.UapkiNS::AttrCertId::IssuerSerial" = type { ptr, ptr }

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

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

declare ptr @asn_decode_ba_with_alloc(ptr noundef, ptr noundef) #1

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

declare void @asn_free(ptr noundef, ptr noundef) #1

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN7UapkiNS15AttributeHelper21decodeCertificateRefsEPK12ByteArray_stRSt6vectorINS_10AttrCertIdESaIS5_EE(ptr noundef %0, ptr noundef nonnull align 8 dereferenceable(24) %1) #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 ptr, align 8
  %10 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %11 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca %"class.std::__cxx11::basic_string", align 8
  %16 = alloca %"class.std::allocator.6", align 1
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  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
  br label %19

19:                                               ; preds = %2
  %20 = call ptr @get_CompleteCertificateRefs_desc()
  %21 = load ptr, ptr %4, align 8, !tbaa !5
  %22 = call ptr @asn_decode_ba_with_alloc(ptr noundef %20, ptr noundef %21)
  store ptr %22, ptr %7, align 8, !tbaa !5
  %23 = icmp eq ptr null, %22
  br i1 %23, label %24, label %26

24:                                               ; preds = %19
  store i32 2, ptr %6, align 4, !tbaa !9
  %25 = load i32, ptr %6, align 4, !tbaa !9
  call void @stacktrace_add(ptr noundef @.str, i64 noundef 83, i32 noundef %25)
  br label %181

26:                                               ; preds = %19
  br label %27

27:                                               ; preds = %26
  br label %28

28:                                               ; preds = %27
  %29 = load ptr, ptr %7, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.CompleteCertificateRefs, ptr %29, i32 0, i32 0
  %31 = getelementptr inbounds %struct.anon.0, ptr %30, i32 0, i32 1
  %32 = load i32, ptr %31, align 8, !tbaa !11
  %33 = icmp sgt i32 %32, 0
  br i1 %33, label %34, label %180

34:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  store i64 0, ptr %8, align 8, !tbaa !17
  %35 = load ptr, ptr %5, align 8, !tbaa !5
  %36 = load ptr, ptr %7, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.CompleteCertificateRefs, ptr %36, i32 0, i32 0
  %38 = getelementptr inbounds %struct.anon.0, ptr %37, i32 0, i32 1
  %39 = load i32, ptr %38, align 8, !tbaa !11
  %40 = sext i32 %39 to i64
  call void @_ZNSt6vectorIN7UapkiNS10AttrCertIdESaIS1_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %35, i64 noundef %40)
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %41 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %41, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %42 = load ptr, ptr %9, align 8, !tbaa !5
  %43 = call ptr @_ZNSt6vectorIN7UapkiNS10AttrCertIdESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %42) #5
  %44 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %10, i32 0, i32 0
  store ptr %43, ptr %44, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %45 = load ptr, ptr %9, align 8, !tbaa !5
  %46 = call ptr @_ZNSt6vectorIN7UapkiNS10AttrCertIdESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %45) #5
  %47 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %11, i32 0, i32 0
  store ptr %46, ptr %47, align 8
  br label %48

48:                                               ; preds = %172, %34
  %49 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN7UapkiNS10AttrCertIdESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11) #5
  br i1 %49, label %51, label %50

50:                                               ; preds = %48
  store i32 5, ptr %12, align 4
  br label %174

51:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %52 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN7UapkiNS10AttrCertIdESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #5
  store ptr %52, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %53 = load ptr, ptr %7, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.CompleteCertificateRefs, ptr %53, i32 0, i32 0
  %55 = getelementptr inbounds %struct.anon.0, ptr %54, i32 0, i32 0
  %56 = load ptr, ptr %55, align 8, !tbaa !18
  %57 = load i64, ptr %8, align 8, !tbaa !17
  %58 = add i64 %57, 1
  store i64 %58, ptr %8, align 8, !tbaa !17
  %59 = getelementptr inbounds ptr, ptr %56, i64 %57
  %60 = load ptr, ptr %59, align 8, !tbaa !5
  store ptr %60, ptr %14, align 8, !tbaa !5
  %61 = load ptr, ptr %14, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.OtherCertID, ptr %61, i32 0, i32 0
  %63 = getelementptr inbounds %struct.OtherHash, ptr %62, i32 0, i32 0
  %64 = load i32, ptr %63, align 8, !tbaa !19
  switch i32 %64, label %121 [
    i32 1, label %65
    i32 2, label %90
  ]

65:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 32, ptr %15) #5
  %66 = load ptr, ptr @OID_SHA1, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #5
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #5
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef %66, ptr noundef nonnull align 1 dereferenceable(1) %16)
          to label %67 unwind label %83

67:                                               ; preds = %65
  %68 = load ptr, ptr %13, align 8, !tbaa !5
  %69 = getelementptr inbounds %"struct.UapkiNS::OtherHash", ptr %68, i32 0, i32 0
  %70 = getelementptr inbounds %"struct.UapkiNS::AlgorithmIdentifier", ptr %69, i32 0, i32 0
  %71 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %70, ptr noundef nonnull align 8 dereferenceable(32) %15) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #5
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #5
  br label %72

72:                                               ; preds = %67
  %73 = load ptr, ptr %14, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.OtherCertID, ptr %73, i32 0, i32 0
  %75 = getelementptr inbounds %struct.OtherHash, ptr %74, i32 0, i32 1
  %76 = load ptr, ptr %13, align 8, !tbaa !5
  %77 = getelementptr inbounds %"struct.UapkiNS::OtherHash", ptr %76, i32 0, i32 1
  %78 = call i32 @asn_OCTSTRING2ba(ptr noundef %75, ptr noundef %77)
  store i32 %78, ptr %6, align 4, !tbaa !9
  %79 = load i32, ptr %6, align 4, !tbaa !9
  %80 = icmp ne i32 %79, 0
  br i1 %80, label %81, label %87

81:                                               ; preds = %72
  %82 = load i32, ptr %6, align 4, !tbaa !9
  call void @stacktrace_add(ptr noundef @.str, i64 noundef 94, i32 noundef %82)
  store i32 4, ptr %12, align 4
  br label %166

83:                                               ; preds = %65
  %84 = landingpad { ptr, i32 }
          cleanup
  %85 = extractvalue { ptr, i32 } %84, 0
  store ptr %85, ptr %17, align 8
  %86 = extractvalue { ptr, i32 } %84, 1
  store i32 %86, ptr %18, align 4
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #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 %187

87:                                               ; preds = %72
  br label %88

88:                                               ; preds = %87
  br label %89

89:                                               ; preds = %88
  br label %126

90:                                               ; preds = %51
  br label %91

91:                                               ; preds = %90
  %92 = load ptr, ptr %14, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.OtherCertID, ptr %92, i32 0, i32 0
  %94 = getelementptr inbounds %struct.OtherHash, ptr %93, i32 0, i32 1
  %95 = getelementptr inbounds %struct.OtherHashAlgAndValue, ptr %94, i32 0, i32 0
  %96 = load ptr, ptr %13, align 8, !tbaa !5
  %97 = getelementptr inbounds %"struct.UapkiNS::OtherHash", ptr %96, i32 0, i32 0
  %98 = call noundef i32 @_ZN7UapkiNS4Util27algorithmIdentifierFromAsn1ERK19AlgorithmIdentifierRNS_19AlgorithmIdentifierE(ptr noundef nonnull align 8 dereferenceable(48) %95, ptr noundef nonnull align 8 dereferenceable(40) %97)
  store i32 %98, ptr %6, align 4, !tbaa !9
  %99 = load i32, ptr %6, align 4, !tbaa !9
  %100 = icmp ne i32 %99, 0
  br i1 %100, label %101, label %103

101:                                              ; preds = %91
  %102 = load i32, ptr %6, align 4, !tbaa !9
  call void @stacktrace_add(ptr noundef @.str, i64 noundef 97, i32 noundef %102)
  store i32 4, ptr %12, align 4
  br label %166

103:                                              ; preds = %91
  br label %104

104:                                              ; preds = %103
  br label %105

105:                                              ; preds = %104
  br label %106

106:                                              ; preds = %105
  %107 = load ptr, ptr %14, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.OtherCertID, ptr %107, i32 0, i32 0
  %109 = getelementptr inbounds %struct.OtherHash, ptr %108, i32 0, i32 1
  %110 = getelementptr inbounds %struct.OtherHashAlgAndValue, ptr %109, i32 0, i32 1
  %111 = load ptr, ptr %13, align 8, !tbaa !5
  %112 = getelementptr inbounds %"struct.UapkiNS::OtherHash", ptr %111, i32 0, i32 1
  %113 = call i32 @asn_OCTSTRING2ba(ptr noundef %110, ptr noundef %112)
  store i32 %113, ptr %6, align 4, !tbaa !9
  %114 = load i32, ptr %6, align 4, !tbaa !9
  %115 = icmp ne i32 %114, 0
  br i1 %115, label %116, label %118

116:                                              ; preds = %106
  %117 = load i32, ptr %6, align 4, !tbaa !9
  call void @stacktrace_add(ptr noundef @.str, i64 noundef 98, i32 noundef %117)
  store i32 4, ptr %12, align 4
  br label %166

118:                                              ; preds = %106
  br label %119

119:                                              ; preds = %118
  br label %120

120:                                              ; preds = %119
  br label %126

121:                                              ; preds = %51
  br label %122

122:                                              ; preds = %121
  store i32 4145, ptr %6, align 4, !tbaa !9
  %123 = load i32, ptr %6, align 4, !tbaa !9
  call void @stacktrace_create(ptr noundef @.str, i64 noundef 101, i32 noundef %123, ptr noundef null)
  store i32 4, ptr %12, align 4
  br label %166

124:                                              ; No predecessors!
  br label %125

125:                                              ; preds = %124
  br label %126

126:                                              ; preds = %125, %120, %89
  %127 = load ptr, ptr %14, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.OtherCertID, ptr %127, i32 0, i32 1
  %129 = load ptr, ptr %128, align 8, !tbaa !23
  %130 = icmp ne ptr %129, null
  br i1 %130, label %131, label %165

131:                                              ; preds = %126
  br label %132

132:                                              ; preds = %131
  %133 = call ptr @get_GeneralNames_desc()
  %134 = load ptr, ptr %14, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.OtherCertID, ptr %134, i32 0, i32 1
  %136 = load ptr, ptr %135, align 8, !tbaa !23
  %137 = getelementptr inbounds %struct.IssuerSerial, ptr %136, i32 0, i32 0
  %138 = load ptr, ptr %13, align 8, !tbaa !5
  %139 = getelementptr inbounds %"struct.UapkiNS::AttrCertId", ptr %138, i32 0, i32 1
  %140 = getelementptr inbounds %"struct.UapkiNS::AttrCertId::IssuerSerial", ptr %139, i32 0, i32 0
  %141 = call i32 @asn_encode_ba(ptr noundef %133, ptr noundef %137, ptr noundef %140)
  store i32 %141, ptr %6, align 4, !tbaa !9
  %142 = load i32, ptr %6, align 4, !tbaa !9
  %143 = icmp ne i32 %142, 0
  br i1 %143, label %144, label %146

144:                                              ; preds = %132
  %145 = load i32, ptr %6, align 4, !tbaa !9
  call void @stacktrace_add(ptr noundef @.str, i64 noundef 107, i32 noundef %145)
  store i32 4, ptr %12, align 4
  br label %166

146:                                              ; preds = %132
  br label %147

147:                                              ; preds = %146
  br label %148

148:                                              ; preds = %147
  br label %149

149:                                              ; preds = %148
  %150 = load ptr, ptr %14, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct.OtherCertID, ptr %150, i32 0, i32 1
  %152 = load ptr, ptr %151, align 8, !tbaa !23
  %153 = getelementptr inbounds %struct.IssuerSerial, ptr %152, i32 0, i32 1
  %154 = load ptr, ptr %13, align 8, !tbaa !5
  %155 = getelementptr inbounds %"struct.UapkiNS::AttrCertId", ptr %154, i32 0, i32 1
  %156 = getelementptr inbounds %"struct.UapkiNS::AttrCertId::IssuerSerial", ptr %155, i32 0, i32 1
  %157 = call i32 @asn_INTEGER2ba(ptr noundef %153, ptr noundef %156)
  store i32 %157, ptr %6, align 4, !tbaa !9
  %158 = load i32, ptr %6, align 4, !tbaa !9
  %159 = icmp ne i32 %158, 0
  br i1 %159, label %160, label %162

160:                                              ; preds = %149
  %161 = load i32, ptr %6, align 4, !tbaa !9
  call void @stacktrace_add(ptr noundef @.str, i64 noundef 109, i32 noundef %161)
  store i32 4, ptr %12, align 4
  br label %166

162:                                              ; preds = %149
  br label %163

163:                                              ; preds = %162
  br label %164

164:                                              ; preds = %163
  br label %165

165:                                              ; preds = %164, %126
  store i32 0, ptr %12, align 4
  br label %166

166:                                              ; preds = %165, %160, %144, %122, %116, %101, %81
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  %167 = load i32, ptr %12, align 4
  switch i32 %167, label %169 [
    i32 0, label %168
  ]

168:                                              ; preds = %166
  store i32 0, ptr %12, align 4
  br label %169

169:                                              ; preds = %168, %166
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  %170 = load i32, ptr %12, align 4
  switch i32 %170, label %174 [
    i32 0, label %171
  ]

171:                                              ; preds = %169
  br label %172

172:                                              ; preds = %171
  %173 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN7UapkiNS10AttrCertIdESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #5
  br label %48

174:                                              ; preds = %169, %50
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  %175 = load i32, ptr %12, align 4
  switch i32 %175, label %177 [
    i32 5, label %176
  ]

176:                                              ; preds = %174
  store i32 0, ptr %12, align 4
  br label %177

177:                                              ; preds = %176, %174
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  %178 = load i32, ptr %12, align 4
  switch i32 %178, label %185 [
    i32 0, label %179
    i32 4, label %181
  ]

179:                                              ; preds = %177
  br label %180

180:                                              ; preds = %179, %28
  br label %181

181:                                              ; preds = %180, %177, %24
  %182 = call ptr @get_CompleteCertificateRefs_desc()
  %183 = load ptr, ptr %7, align 8, !tbaa !5
  call void @asn_free(ptr noundef %182, ptr noundef %183)
  %184 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %184, ptr %3, align 4
  store i32 1, ptr %12, align 4
  br label %185

185:                                              ; preds = %181, %177
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  %186 = load i32, ptr %3, align 4
  ret i32 %186

187:                                              ; preds = %83
  %188 = load ptr, ptr %17, align 8
  %189 = load i32, ptr %18, align 4
  %190 = insertvalue { ptr, i32 } poison, ptr %188, 0
  %191 = insertvalue { ptr, i32 } %190, i32 %189, 1
  resume { ptr, i32 } %191
}

declare ptr @get_CompleteCertificateRefs_desc() #1

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPN7UapkiNS10AttrCertIdESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #4

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

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

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

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

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

declare noundef i32 @_ZN7UapkiNS4Util27algorithmIdentifierFromAsn1ERK19AlgorithmIdentifierRNS_19AlgorithmIdentifierE(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(40)) #1

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

declare ptr @get_GeneralNames_desc() #1

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

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

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 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 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 = { 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 #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, !10, i64 8}
!12 = !{!"_ZTS23CompleteCertificateRefs", !13, i64 0, !14, i64 24}
!13 = !{!"_ZTSN23CompleteCertificateRefsUt_E", !6, i64 0, !10, i64 8, !10, i64 12, !6, i64 16}
!14 = !{!"_ZTS16asn_struct_ctx_s", !15, i64 0, !15, i64 2, !10, i64 4, !6, i64 8, !16, i64 16}
!15 = !{!"short", !7, i64 0}
!16 = !{!"long", !7, i64 0}
!17 = !{!16, !16, i64 0}
!18 = !{!12, !6, i64 0}
!19 = !{!20, !22, i64 0}
!20 = !{!"_ZTS11OtherCertID", !21, i64 0, !6, i64 144, !14, i64 152}
!21 = !{!"_ZTS9OtherHash", !22, i64 0, !7, i64 8, !14, i64 120}
!22 = !{!"_ZTS12OtherHash_PR", !7, i64 0}
!23 = !{!20, !6, i64 144}


; 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.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::allocator.6" = type { i8 }

@.str = external hidden unnamed_addr constant [33 x i8], align 1
@OID_SHA1 = external local_unnamed_addr global ptr, align 8

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

declare ptr @asn_decode_ba_with_alloc(ptr noundef, ptr noundef) local_unnamed_addr #1

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

declare void @asn_free(ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN7UapkiNS15AttributeHelper21decodeCertificateRefsEPK12ByteArray_stRSt6vectorINS_10AttrCertIdESaIS5_EE(ptr noundef %0, ptr noundef nonnull align 8 dereferenceable(24) %1) local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %4 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %5 = alloca %"class.std::__cxx11::basic_string", align 8
  %6 = alloca %"class.std::allocator.6", align 1
  %7 = tail call ptr @get_CompleteCertificateRefs_desc()
  %8 = tail call ptr @asn_decode_ba_with_alloc(ptr noundef %7, ptr noundef %0)
  %9 = icmp eq ptr %8, null
  br i1 %9, label %10, label %11

10:                                               ; preds = %2
  tail call void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 83, i32 noundef 2)
  br label %64

11:                                               ; preds = %2
  %12 = getelementptr inbounds i8, ptr %8, i64 8
  %13 = load i32, ptr %12, align 8, !tbaa !5
  %14 = icmp sgt i32 %13, 0
  br i1 %14, label %15, label %64

15:                                               ; preds = %11
  %16 = zext nneg i32 %13 to i64
  tail call void @_ZNSt6vectorIN7UapkiNS10AttrCertIdESaIS1_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %16)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #5
  %17 = tail call ptr @_ZNSt6vectorIN7UapkiNS10AttrCertIdESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #5
  store ptr %17, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #5
  %18 = tail call ptr @_ZNSt6vectorIN7UapkiNS10AttrCertIdESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #5
  store ptr %18, ptr %4, align 8
  %19 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN7UapkiNS10AttrCertIdESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #5
  br i1 %19, label %.lr.ph, label %.thread

.lr.ph:                                           ; preds = %15, %61
  %.04672 = phi i64 [ %22, %61 ], [ 0, %15 ]
  %20 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN7UapkiNS10AttrCertIdESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #5
  %21 = load ptr, ptr %8, align 8, !tbaa !15
  %22 = add i64 %.04672, 1
  %23 = getelementptr inbounds ptr, ptr %21, i64 %.04672
  %24 = load ptr, ptr %23, align 8, !tbaa !16
  %25 = load i32, ptr %24, align 8, !tbaa !17
  switch i32 %25, label %45 [
    i32 1, label %26
    i32 2, label %36
  ]

26:                                               ; preds = %.lr.ph
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #5
  %27 = load ptr, ptr @OID_SHA1, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #5
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #5
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef %27, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %28 unwind label %34

28:                                               ; preds = %26
  %29 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %20, ptr noundef nonnull align 8 dereferenceable(32) %5) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #5
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #5
  %30 = getelementptr inbounds i8, ptr %24, i64 8
  %31 = getelementptr inbounds i8, ptr %20, i64 40
  %32 = call i32 @asn_OCTSTRING2ba(ptr noundef nonnull %30, ptr noundef nonnull %31)
  %.not60 = icmp eq i32 %32, 0
  br i1 %.not60, label %46, label %33

33:                                               ; preds = %28
  call void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 94, i32 noundef %32)
  br label %.thread

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

36:                                               ; preds = %.lr.ph
  %37 = getelementptr inbounds i8, ptr %24, i64 8
  %38 = call noundef i32 @_ZN7UapkiNS4Util27algorithmIdentifierFromAsn1ERK19AlgorithmIdentifierRNS_19AlgorithmIdentifierE(ptr noundef nonnull align 8 dereferenceable(48) %37, ptr noundef nonnull align 8 dereferenceable(40) %20)
  %.not = icmp eq i32 %38, 0
  br i1 %.not, label %40, label %39

39:                                               ; preds = %36
  call void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 97, i32 noundef %38)
  br label %.thread

40:                                               ; preds = %36
  %41 = getelementptr inbounds i8, ptr %24, i64 56
  %42 = getelementptr inbounds i8, ptr %20, i64 40
  %43 = call i32 @asn_OCTSTRING2ba(ptr noundef nonnull %41, ptr noundef nonnull %42)
  %.not59 = icmp eq i32 %43, 0
  br i1 %.not59, label %46, label %44

44:                                               ; preds = %40
  call void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 98, i32 noundef %43)
  br label %.thread

45:                                               ; preds = %.lr.ph
  call void @stacktrace_create(ptr noundef nonnull @.str, i64 noundef 101, i32 noundef 4145, ptr noundef null)
  br label %.thread

46:                                               ; preds = %40, %28
  %47 = getelementptr inbounds i8, ptr %24, i64 144
  %48 = load ptr, ptr %47, align 8, !tbaa !21
  %.not61 = icmp eq ptr %48, null
  br i1 %.not61, label %61, label %49

49:                                               ; preds = %46
  %50 = call ptr @get_GeneralNames_desc()
  %51 = load ptr, ptr %47, align 8, !tbaa !21
  %52 = getelementptr inbounds i8, ptr %20, i64 48
  %53 = call i32 @asn_encode_ba(ptr noundef %50, ptr noundef %51, ptr noundef nonnull %52)
  %.not62 = icmp eq i32 %53, 0
  br i1 %.not62, label %55, label %54

54:                                               ; preds = %49
  call void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 107, i32 noundef %53)
  br label %.thread

55:                                               ; preds = %49
  %56 = load ptr, ptr %47, align 8, !tbaa !21
  %57 = getelementptr inbounds i8, ptr %56, i64 48
  %58 = getelementptr inbounds i8, ptr %20, i64 56
  %59 = call i32 @asn_INTEGER2ba(ptr noundef nonnull %57, ptr noundef nonnull %58)
  %.not63 = icmp eq i32 %59, 0
  br i1 %.not63, label %61, label %60

60:                                               ; preds = %55
  call void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 109, i32 noundef %59)
  br label %.thread

61:                                               ; preds = %55, %46
  %62 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN7UapkiNS10AttrCertIdESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #5
  %63 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN7UapkiNS10AttrCertIdESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #5
  br i1 %63, label %.lr.ph, label %.thread

.thread:                                          ; preds = %61, %15, %33, %60, %54, %44, %39, %45
  %.4 = phi i32 [ %32, %33 ], [ %59, %60 ], [ %53, %54 ], [ %43, %44 ], [ %38, %39 ], [ 4145, %45 ], [ 0, %15 ], [ 0, %61 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  br label %64

64:                                               ; preds = %.thread, %11, %10
  %.5 = phi i32 [ 2, %10 ], [ %.4, %.thread ], [ 0, %11 ]
  %65 = call ptr @get_CompleteCertificateRefs_desc()
  call void @asn_free(ptr noundef %65, ptr noundef %8)
  ret i32 %.5
}

declare ptr @get_CompleteCertificateRefs_desc() local_unnamed_addr #1

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPN7UapkiNS10AttrCertIdESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4

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

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

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

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

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

declare noundef i32 @_ZN7UapkiNS4Util27algorithmIdentifierFromAsn1ERK19AlgorithmIdentifierRNS_19AlgorithmIdentifierE(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #1

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

declare ptr @get_GeneralNames_desc() local_unnamed_addr #1

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

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

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 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 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 = { 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 #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, !11, i64 8}
!6 = !{!"_ZTS23CompleteCertificateRefs", !7, i64 0, !12, i64 24}
!7 = !{!"_ZTSN23CompleteCertificateRefsUt_E", !8, i64 0, !11, i64 8, !11, i64 12, !8, i64 16}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"int", !9, i64 0}
!12 = !{!"_ZTS16asn_struct_ctx_s", !13, i64 0, !13, i64 2, !11, i64 4, !8, i64 8, !14, i64 16}
!13 = !{!"short", !9, i64 0}
!14 = !{!"long", !9, i64 0}
!15 = !{!6, !8, i64 0}
!16 = !{!8, !8, i64 0}
!17 = !{!18, !20, i64 0}
!18 = !{!"_ZTS11OtherCertID", !19, i64 0, !8, i64 144, !12, i64 152}
!19 = !{!"_ZTS9OtherHash", !20, i64 0, !9, i64 8, !12, i64 120}
!20 = !{!"_ZTS12OtherHash_PR", !9, i64 0}
!21 = !{!18, !8, i64 144}


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