; LLVM IR from specinfo-ua/UAPKI :: library/uapki/src/api (add-cert)

; 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.UapkiNS::VectorBA" = type { %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<ByteArray_st *, std::allocator<ByteArray_st *>>::_Vector_impl" }
%"struct.std::_Vector_base<ByteArray_st *, std::allocator<ByteArray_st *>>::_Vector_impl" = type { %"struct.std::_Vector_base<ByteArray_st *, std::allocator<ByteArray_st *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<ByteArray_st *, std::allocator<ByteArray_st *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

@.str = external hidden unnamed_addr constant [13 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local i32 @uapki_add_cert(ptr noundef %0, ptr noundef %1) #0 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 ptr, align 8
  %9 = alloca i8, align 1
  %10 = alloca i8, align 1
  %11 = alloca i8, align 1
  %12 = alloca i8, align 1
  %13 = alloca %"class.UapkiNS::VectorBA", align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %21 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %22 = alloca ptr, align 8
  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
  %23 = call noundef ptr @_ZN7UapkiNS10get_configEv()
  store ptr %23, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %24 = call noundef ptr @_ZN7UapkiNS12get_cerstoreEv()
  store ptr %24, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #5
  %25 = load ptr, ptr %4, align 8, !tbaa !5
  %26 = call noundef zeroext i1 @_ZN12ParsonHelper18jsonObjectHasValueEP13json_object_tPKci(ptr noundef %25, ptr noundef @.str, i32 noundef 5)
  %27 = zext i1 %26 to i8
  store i8 %27, ptr %9, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #5
  %28 = load ptr, ptr %4, align 8, !tbaa !5
  %29 = call noundef zeroext i1 @_ZN12ParsonHelper18jsonObjectHasValueEP13json_object_tPKci(ptr noundef %28, ptr noundef @.str.1, i32 noundef 2)
  %30 = zext i1 %29 to i8
  store i8 %30, ptr %10, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #5
  %31 = load ptr, ptr %4, align 8, !tbaa !5
  %32 = call noundef zeroext i1 @_ZN12ParsonHelper20jsonObjectGetBooleanEP13json_object_tPKcb(ptr noundef %31, ptr noundef @.str.2, i1 noundef zeroext false)
  %33 = zext i1 %32 to i8
  store i8 %33, ptr %11, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #5
  %34 = load ptr, ptr %4, align 8, !tbaa !5
  %35 = call noundef zeroext i1 @_ZN12ParsonHelper20jsonObjectGetBooleanEP13json_object_tPKcb(ptr noundef %34, ptr noundef @.str.3, i1 noundef zeroext false)
  %36 = zext i1 %35 to i8
  store i8 %36, ptr %12, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 24, ptr %13) #5
  call void @_ZN7UapkiNS8VectorBAC2Em(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef 0)
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  store ptr null, ptr %14, align 8, !tbaa !5
  %37 = load ptr, ptr %7, align 8, !tbaa !5
  %38 = icmp ne ptr %37, null
  br i1 %38, label %39, label %42

39:                                               ; preds = %2
  %40 = load ptr, ptr %8, align 8, !tbaa !5
  %41 = icmp ne ptr %40, null
  br i1 %41, label %43, label %42

42:                                               ; preds = %39, %2
  store i32 4097, ptr %3, align 4
  store i32 1, ptr %15, align 4
  br label %189

43:                                               ; preds = %39
  %44 = load ptr, ptr %7, align 8, !tbaa !5
  %45 = invoke noundef zeroext i1 @_ZNK7UapkiNS13LibraryConfig13isInitializedEv(ptr noundef nonnull align 8 dereferenceable(97) %44)
          to label %46 unwind label %48

46:                                               ; preds = %43
  br i1 %45, label %52, label %47

47:                                               ; preds = %46
  store i32 4105, ptr %3, align 4
  store i32 1, ptr %15, align 4
  br label %189

48:                                               ; preds = %104, %95, %88, %83, %80, %72, %66, %43
  %49 = landingpad { ptr, i32 }
          cleanup
  %50 = extractvalue { ptr, i32 } %49, 0
  store ptr %50, ptr %16, align 8
  %51 = extractvalue { ptr, i32 } %49, 1
  store i32 %51, ptr %17, align 4
  br label %191

52:                                               ; preds = %46
  %53 = load i8, ptr %9, align 1, !tbaa !11, !range !13, !noundef !14
  %54 = trunc i8 %53 to i1
  br i1 %54, label %55, label %58

55:                                               ; preds = %52
  %56 = load i8, ptr %10, align 1, !tbaa !11, !range !13, !noundef !14
  %57 = trunc i8 %56 to i1
  br i1 %57, label %64, label %58

58:                                               ; preds = %55, %52
  %59 = load i8, ptr %9, align 1, !tbaa !11, !range !13, !noundef !14
  %60 = trunc i8 %59 to i1
  br i1 %60, label %65, label %61

61:                                               ; preds = %58
  %62 = load i8, ptr %10, align 1, !tbaa !11, !range !13, !noundef !14
  %63 = trunc i8 %62 to i1
  br i1 %63, label %65, label %64

64:                                               ; preds = %61, %55
  store i32 4101, ptr %3, align 4
  store i32 1, ptr %15, align 4
  br label %189

65:                                               ; preds = %61, %58
  br label %66

66:                                               ; preds = %65
  %67 = load ptr, ptr %4, align 8, !tbaa !5
  %68 = invoke noundef i32 @_ZL15parse_add_certsP13json_object_tRN7UapkiNS8VectorBAE(ptr noundef %67, ptr noundef nonnull align 8 dereferenceable(24) %13)
          to label %69 unwind label %48

69:                                               ; preds = %66
  store i32 %68, ptr %6, align 4, !tbaa !9
  %70 = load i32, ptr %6, align 4, !tbaa !9
  %71 = icmp ne i32 %70, 0
  br i1 %71, label %72, label %75

72:                                               ; preds = %69
  %73 = load i32, ptr %6, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str.4, i64 noundef 135, i32 noundef %73)
          to label %74 unwind label %48

74:                                               ; preds = %72
  br label %187

75:                                               ; preds = %69
  br label %76

76:                                               ; preds = %75
  br label %77

77:                                               ; preds = %76
  %78 = call noundef zeroext i1 @_ZNKSt6vectorIP12ByteArray_stSaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #5
  br i1 %78, label %79, label %80

79:                                               ; preds = %77
  store i32 4101, ptr %3, align 4
  store i32 1, ptr %15, align 4
  br label %189

80:                                               ; preds = %77
  %81 = load ptr, ptr %5, align 8, !tbaa !5
  %82 = invoke ptr @json_value_init_array()
          to label %83 unwind label %48

83:                                               ; preds = %80
  %84 = invoke i32 @json_object_set_value(ptr noundef %81, ptr noundef @.str.5, ptr noundef %82)
          to label %85 unwind label %48

85:                                               ; preds = %83
  %86 = icmp ne i32 %84, 0
  br i1 %86, label %87, label %88

87:                                               ; preds = %85
  store i32 4113, ptr %6, align 4, !tbaa !9
  br label %187

88:                                               ; preds = %85
  %89 = load ptr, ptr %5, align 8, !tbaa !5
  %90 = invoke ptr @json_object_get_array(ptr noundef %89, ptr noundef @.str.5)
          to label %91 unwind label %48

91:                                               ; preds = %88
  store ptr %90, ptr %14, align 8, !tbaa !5
  %92 = load i8, ptr %12, align 1, !tbaa !11, !range !13, !noundef !14
  %93 = trunc i8 %92 to i1
  br i1 %93, label %110, label %94

94:                                               ; preds = %91
  br label %95

95:                                               ; preds = %94
  %96 = load ptr, ptr %8, align 8, !tbaa !5
  %97 = load i8, ptr %11, align 1, !tbaa !11, !range !13, !noundef !14
  %98 = trunc i8 %97 to i1
  %99 = load ptr, ptr %14, align 8, !tbaa !5
  %100 = invoke noundef i32 @_ZL18add_certs_to_storeRN7UapkiNS4Cert8CerStoreEbbRKNS_8VectorBAEP12json_array_t(ptr noundef nonnull align 8 dereferenceable(96) %96, i1 noundef zeroext false, i1 noundef zeroext %98, ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef %99)
          to label %101 unwind label %48

101:                                              ; preds = %95
  store i32 %100, ptr %6, align 4, !tbaa !9
  %102 = load i32, ptr %6, align 4, !tbaa !9
  %103 = icmp ne i32 %102, 0
  br i1 %103, label %104, label %107

104:                                              ; preds = %101
  %105 = load i32, ptr %6, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str.4, i64 noundef 148, i32 noundef %105)
          to label %106 unwind label %48

106:                                              ; preds = %104
  br label %187

107:                                              ; preds = %101
  br label %108

108:                                              ; preds = %107
  br label %109

109:                                              ; preds = %108
  br label %186

110:                                              ; preds = %91
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %111 = invoke noundef ptr @_ZN11CmProviders13openedStorageEv()
          to label %112 unwind label %116

112:                                              ; preds = %110
  store ptr %111, ptr %18, align 8, !tbaa !5
  %113 = load ptr, ptr %18, align 8, !tbaa !5
  %114 = icmp ne ptr %113, null
  br i1 %114, label %120, label %115

115:                                              ; preds = %112
  store i32 4121, ptr %3, align 4
  store i32 1, ptr %15, align 4
  br label %182

116:                                              ; preds = %176, %167, %110
  %117 = landingpad { ptr, i32 }
          cleanup
  %118 = extractvalue { ptr, i32 } %117, 0
  store ptr %118, ptr %16, align 8
  %119 = extractvalue { ptr, i32 } %117, 1
  store i32 %119, ptr %17, align 4
  br label %185

120:                                              ; preds = %112
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  store ptr %13, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  %121 = load ptr, ptr %19, align 8, !tbaa !5
  %122 = call ptr @_ZNSt6vectorIP12ByteArray_stSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %121) #5
  %123 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %20, i32 0, i32 0
  store ptr %122, ptr %123, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  %124 = load ptr, ptr %19, align 8, !tbaa !5
  %125 = call ptr @_ZNSt6vectorIP12ByteArray_stSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %124) #5
  %126 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %21, i32 0, i32 0
  store ptr %125, ptr %126, align 8
  br label %127

127:                                              ; preds = %162, %120
  %128 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPP12ByteArray_stSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull align 8 dereferenceable(8) %21) #5
  br i1 %128, label %130, label %129

129:                                              ; preds = %127
  store i32 7, ptr %15, align 4
  br label %164

130:                                              ; preds = %127
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  %131 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP12ByteArray_stSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %20) #5
  store ptr %131, ptr %22, align 8, !tbaa !5
  %132 = load ptr, ptr %18, align 8, !tbaa !5
  %133 = load ptr, ptr %22, align 8, !tbaa !5
  %134 = load ptr, ptr %133, align 8, !tbaa !5
  %135 = invoke noundef i32 @_ZN14CmStorageProxy21sessionAddCertificateEPK12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(168) %132, ptr noundef %134)
          to label %136 unwind label %151

136:                                              ; preds = %130
  store i32 %135, ptr %6, align 4, !tbaa !9
  %137 = load i32, ptr %6, align 4, !tbaa !9
  %138 = icmp eq i32 %137, 4118
  br i1 %138, label %139, label %158

139:                                              ; preds = %136
  br label %140

140:                                              ; preds = %139
  %141 = load ptr, ptr %18, align 8, !tbaa !5
  %142 = load ptr, ptr %22, align 8, !tbaa !5
  %143 = load ptr, ptr %142, align 8, !tbaa !5
  %144 = invoke noundef i32 @_ZN14CmStorageProxy17keyAddCertificateEPK12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(168) %141, ptr noundef %143)
          to label %145 unwind label %151

145:                                              ; preds = %140
  store i32 %144, ptr %6, align 4, !tbaa !9
  %146 = load i32, ptr %6, align 4, !tbaa !9
  %147 = icmp ne i32 %146, 0
  br i1 %147, label %148, label %155

148:                                              ; preds = %145
  %149 = load i32, ptr %6, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str.4, i64 noundef 157, i32 noundef %149)
          to label %150 unwind label %151

150:                                              ; preds = %148
  store i32 4, ptr %15, align 4
  br label %159

151:                                              ; preds = %148, %140, %130
  %152 = landingpad { ptr, i32 }
          cleanup
  %153 = extractvalue { ptr, i32 } %152, 0
  store ptr %153, ptr %16, align 8
  %154 = extractvalue { ptr, i32 } %152, 1
  store i32 %154, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  br label %185

155:                                              ; preds = %145
  br label %156

156:                                              ; preds = %155
  br label %157

157:                                              ; preds = %156
  br label %158

158:                                              ; preds = %157, %136
  store i32 0, ptr %15, align 4
  br label %159

159:                                              ; preds = %158, %150
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  %160 = load i32, ptr %15, align 4
  switch i32 %160, label %164 [
    i32 0, label %161
  ]

161:                                              ; preds = %159
  br label %162

162:                                              ; preds = %161
  %163 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPP12ByteArray_stSt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %20) #5
  br label %127

164:                                              ; preds = %159, %129
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  %165 = load i32, ptr %15, align 4
  switch i32 %165, label %182 [
    i32 7, label %166
  ]

166:                                              ; preds = %164
  br label %167

167:                                              ; preds = %166
  %168 = load ptr, ptr %8, align 8, !tbaa !5
  %169 = load i8, ptr %11, align 1, !tbaa !11, !range !13, !noundef !14
  %170 = trunc i8 %169 to i1
  %171 = load ptr, ptr %14, align 8, !tbaa !5
  %172 = invoke noundef i32 @_ZL18add_certs_to_storeRN7UapkiNS4Cert8CerStoreEbbRKNS_8VectorBAEP12json_array_t(ptr noundef nonnull align 8 dereferenceable(96) %168, i1 noundef zeroext false, i1 noundef zeroext %170, ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef %171)
          to label %173 unwind label %116

173:                                              ; preds = %167
  store i32 %172, ptr %6, align 4, !tbaa !9
  %174 = load i32, ptr %6, align 4, !tbaa !9
  %175 = icmp ne i32 %174, 0
  br i1 %175, label %176, label %179

176:                                              ; preds = %173
  %177 = load i32, ptr %6, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str.4, i64 noundef 167, i32 noundef %177)
          to label %178 unwind label %116

178:                                              ; preds = %176
  store i32 4, ptr %15, align 4
  br label %182

179:                                              ; preds = %173
  br label %180

180:                                              ; preds = %179
  br label %181

181:                                              ; preds = %180
  store i32 0, ptr %15, align 4
  br label %182

182:                                              ; preds = %181, %178, %164, %115
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  %183 = load i32, ptr %15, align 4
  switch i32 %183, label %189 [
    i32 0, label %184
    i32 4, label %187
  ]

184:                                              ; preds = %182
  br label %186

185:                                              ; preds = %151, %116
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  br label %191

186:                                              ; preds = %184, %109
  br label %187

187:                                              ; preds = %186, %182, %106, %87, %74
  %188 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %188, ptr %3, align 4
  store i32 1, ptr %15, align 4
  br label %189

189:                                              ; preds = %187, %182, %79, %64, %47, %42
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @_ZN7UapkiNS8VectorBAD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 1, 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
  %190 = load i32, ptr %3, align 4
  ret i32 %190

191:                                              ; preds = %185, %48
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @_ZN7UapkiNS8VectorBAD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 1, 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 %192

192:                                              ; preds = %191
  %193 = load ptr, ptr %16, align 8
  %194 = load i32, ptr %17, align 4
  %195 = insertvalue { ptr, i32 } poison, ptr %193, 0
  %196 = insertvalue { ptr, i32 } %195, i32 %194, 1
  resume { ptr, i32 } %196
}

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

declare noundef ptr @_ZN7UapkiNS10get_configEv() #2

declare noundef ptr @_ZN7UapkiNS12get_cerstoreEv() #2

declare noundef zeroext i1 @_ZN12ParsonHelper18jsonObjectHasValueEP13json_object_tPKci(ptr noundef, ptr noundef, i32 noundef) #2

declare noundef zeroext i1 @_ZN12ParsonHelper20jsonObjectGetBooleanEP13json_object_tPKcb(ptr noundef, ptr noundef, i1 noundef zeroext) #2

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL15parse_add_certsP13json_object_tRN7UapkiNS8VectorBAE(ptr noundef, ptr noundef nonnull align 8 dereferenceable(24)) #0

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

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

declare i32 @json_object_set_value(ptr noundef, ptr noundef, ptr noundef) #2

declare ptr @json_value_init_array() #2

declare ptr @json_object_get_array(ptr noundef, ptr noundef) #2

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL18add_certs_to_storeRN7UapkiNS4Cert8CerStoreEbbRKNS_8VectorBAEP12json_array_t(ptr noundef nonnull align 8 dereferenceable(96), i1 noundef zeroext, i1 noundef zeroext, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef) #0

declare noundef ptr @_ZN11CmProviders13openedStorageEv() #2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIP12ByteArray_stSaIS1_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_cxxneIPP12ByteArray_stSt6vectorIS2_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(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP12ByteArray_stSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #3 align 2

declare noundef i32 @_ZN14CmStorageProxy21sessionAddCertificateEPK12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(168), ptr noundef) #2

declare noundef i32 @_ZN14CmStorageProxy17keyAddCertificateEPK12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(168), ptr noundef) #2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7UapkiNS8VectorBAD2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{i8 0, i8 2}
!14 = !{}


; 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.UapkiNS::VectorBA" = type { %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<ByteArray_st *, std::allocator<ByteArray_st *>>::_Vector_impl" }
%"struct.std::_Vector_base<ByteArray_st *, std::allocator<ByteArray_st *>>::_Vector_impl" = type { %"struct.std::_Vector_base<ByteArray_st *, std::allocator<ByteArray_st *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<ByteArray_st *, std::allocator<ByteArray_st *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

@.str = external hidden unnamed_addr constant [13 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @uapki_add_cert(ptr noundef %0, ptr noundef %1) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.UapkiNS::VectorBA", align 8
  %4 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %5 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %6 = tail call noundef ptr @_ZN7UapkiNS10get_configEv()
  %7 = tail call noundef ptr @_ZN7UapkiNS12get_cerstoreEv()
  %8 = tail call noundef zeroext i1 @_ZN12ParsonHelper18jsonObjectHasValueEP13json_object_tPKci(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 5)
  %9 = tail call noundef zeroext i1 @_ZN12ParsonHelper18jsonObjectHasValueEP13json_object_tPKci(ptr noundef %0, ptr noundef nonnull @.str.1, i32 noundef 2)
  %10 = tail call noundef zeroext i1 @_ZN12ParsonHelper20jsonObjectGetBooleanEP13json_object_tPKcb(ptr noundef %0, ptr noundef nonnull @.str.2, i1 noundef zeroext false)
  %11 = tail call noundef zeroext i1 @_ZN12ParsonHelper20jsonObjectGetBooleanEP13json_object_tPKcb(ptr noundef %0, ptr noundef nonnull @.str.3, i1 noundef zeroext false)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #5
  call void @_ZN7UapkiNS8VectorBAC2Em(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 0)
  %12 = icmp ne ptr %6, null
  %13 = icmp ne ptr %7, null
  %or.cond = and i1 %12, %13
  br i1 %or.cond, label %14, label %64

14:                                               ; preds = %2
  %15 = call noundef zeroext i1 @_ZNK7UapkiNS13LibraryConfig13isInitializedEv(ptr noundef nonnull align 8 dereferenceable(97) %6)
  br i1 %15, label %18, label %64

16:                                               ; preds = %36, %33, %30, %27, %25, %22, %19
  %17 = landingpad { ptr, i32 }
          cleanup
  br label %65

18:                                               ; preds = %14
  %or.cond76 = xor i1 %8, %9
  br i1 %or.cond76, label %19, label %64

19:                                               ; preds = %18
  %20 = invoke noundef i32 @_ZL15parse_add_certsP13json_object_tRN7UapkiNS8VectorBAE(ptr noundef %0, ptr noundef nonnull align 8 dereferenceable(24) %3)
          to label %21 unwind label %16

21:                                               ; preds = %19
  %.not = icmp eq i32 %20, 0
  br i1 %.not, label %23, label %22

22:                                               ; preds = %21
  invoke void @stacktrace_add(ptr noundef nonnull @.str.4, i64 noundef 135, i32 noundef %20)
          to label %64 unwind label %16

23:                                               ; preds = %21
  %24 = call noundef zeroext i1 @_ZNKSt6vectorIP12ByteArray_stSaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  br i1 %24, label %64, label %25

25:                                               ; preds = %23
  %26 = invoke ptr @json_value_init_array()
          to label %27 unwind label %16

27:                                               ; preds = %25
  %28 = invoke i32 @json_object_set_value(ptr noundef %1, ptr noundef nonnull @.str.5, ptr noundef %26)
          to label %29 unwind label %16

29:                                               ; preds = %27
  %.not65 = icmp eq i32 %28, 0
  br i1 %.not65, label %30, label %64

30:                                               ; preds = %29
  %31 = invoke ptr @json_object_get_array(ptr noundef %1, ptr noundef nonnull @.str.5)
          to label %32 unwind label %16

32:                                               ; preds = %30
  br i1 %11, label %37, label %33

33:                                               ; preds = %32
  %34 = invoke noundef i32 @_ZL18add_certs_to_storeRN7UapkiNS4Cert8CerStoreEbbRKNS_8VectorBAEP12json_array_t(ptr noundef nonnull align 8 dereferenceable(96) %7, i1 noundef zeroext false, i1 noundef zeroext %10, ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef %31)
          to label %35 unwind label %16

35:                                               ; preds = %33
  %.not66 = icmp eq i32 %34, 0
  br i1 %.not66, label %64, label %36

36:                                               ; preds = %35
  invoke void @stacktrace_add(ptr noundef nonnull @.str.4, i64 noundef 148, i32 noundef %34)
          to label %64 unwind label %16

37:                                               ; preds = %32
  %38 = invoke noundef ptr @_ZN11CmProviders13openedStorageEv()
          to label %39 unwind label %40

39:                                               ; preds = %37
  %.not67 = icmp eq ptr %38, null
  br i1 %.not67, label %64, label %42

40:                                               ; preds = %63, %._crit_edge, %37
  %41 = landingpad { ptr, i32 }
          cleanup
  br label %65

42:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #5
  %43 = call ptr @_ZNSt6vectorIP12ByteArray_stSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  store ptr %43, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  %44 = call ptr @_ZNSt6vectorIP12ByteArray_stSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  store ptr %44, ptr %5, align 8
  %45 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPP12ByteArray_stSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  br i1 %45, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %42, %57
  %46 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP12ByteArray_stSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #5
  %47 = load ptr, ptr %46, align 8, !tbaa !5
  %48 = invoke noundef i32 @_ZN14CmStorageProxy21sessionAddCertificateEPK12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(168) %38, ptr noundef %47)
          to label %49 unwind label %.loopexit

49:                                               ; preds = %.lr.ph
  %50 = icmp eq i32 %48, 4118
  br i1 %50, label %51, label %57

51:                                               ; preds = %49
  %52 = load ptr, ptr %46, align 8, !tbaa !5
  %53 = invoke noundef i32 @_ZN14CmStorageProxy17keyAddCertificateEPK12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(168) %38, ptr noundef %52)
          to label %54 unwind label %.loopexit

54:                                               ; preds = %51
  %.not68 = icmp eq i32 %53, 0
  br i1 %.not68, label %57, label %55

55:                                               ; preds = %54
  invoke void @stacktrace_add(ptr noundef nonnull @.str.4, i64 noundef 157, i32 noundef %53)
          to label %60 unwind label %.loopexit.split-lp

.loopexit:                                        ; preds = %.lr.ph, %51
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %56

.loopexit.split-lp:                               ; preds = %55
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %56

56:                                               ; preds = %.loopexit.split-lp, %.loopexit
  %lpad.phi = phi { ptr, i32 } [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  br label %65

57:                                               ; preds = %54, %49
  %58 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPP12ByteArray_stSt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #5
  %59 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPP12ByteArray_stSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  br i1 %59, label %.lr.ph, label %._crit_edge

60:                                               ; preds = %55
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  br label %64

._crit_edge:                                      ; preds = %57, %42
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  %61 = invoke noundef i32 @_ZL18add_certs_to_storeRN7UapkiNS4Cert8CerStoreEbbRKNS_8VectorBAEP12json_array_t(ptr noundef nonnull align 8 dereferenceable(96) %7, i1 noundef zeroext false, i1 noundef zeroext %10, ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef %31)
          to label %62 unwind label %40

62:                                               ; preds = %._crit_edge
  %.not69 = icmp eq i32 %61, 0
  br i1 %.not69, label %64, label %63

63:                                               ; preds = %62
  invoke void @stacktrace_add(ptr noundef nonnull @.str.4, i64 noundef 167, i32 noundef %61)
          to label %64 unwind label %40

64:                                               ; preds = %62, %63, %60, %39, %22, %36, %35, %29, %23, %18, %14, %2
  %.1 = phi i32 [ 4097, %2 ], [ 4105, %14 ], [ 4101, %18 ], [ 4101, %23 ], [ %20, %22 ], [ %34, %36 ], [ 0, %35 ], [ 4113, %29 ], [ 4121, %39 ], [ 0, %62 ], [ %61, %63 ], [ %53, %60 ]
  call void @_ZN7UapkiNS8VectorBAD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #5
  ret i32 %.1

65:                                               ; preds = %40, %56, %16
  %.pn71 = phi { ptr, i32 } [ %17, %16 ], [ %41, %40 ], [ %lpad.phi, %56 ]
  call void @_ZN7UapkiNS8VectorBAD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #5
  resume { ptr, i32 } %.pn71
}

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

declare noundef ptr @_ZN7UapkiNS10get_configEv() local_unnamed_addr #2

declare noundef ptr @_ZN7UapkiNS12get_cerstoreEv() local_unnamed_addr #2

declare noundef zeroext i1 @_ZN12ParsonHelper18jsonObjectHasValueEP13json_object_tPKci(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

declare noundef zeroext i1 @_ZN12ParsonHelper20jsonObjectGetBooleanEP13json_object_tPKcb(ptr noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #2

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL15parse_add_certsP13json_object_tRN7UapkiNS8VectorBAE(ptr noundef, ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0

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

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

declare i32 @json_object_set_value(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare ptr @json_value_init_array() local_unnamed_addr #2

declare ptr @json_object_get_array(ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL18add_certs_to_storeRN7UapkiNS4Cert8CerStoreEbbRKNS_8VectorBAEP12json_array_t(ptr noundef nonnull align 8 dereferenceable(96), i1 noundef zeroext, i1 noundef zeroext, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef) local_unnamed_addr #0

declare noundef ptr @_ZN11CmProviders13openedStorageEv() local_unnamed_addr #2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIP12ByteArray_stSaIS1_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_cxxneIPP12ByteArray_stSt6vectorIS2_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(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP12ByteArray_stSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3 align 2

declare noundef i32 @_ZN14CmStorageProxy21sessionAddCertificateEPK12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(168), ptr noundef) local_unnamed_addr #2

declare noundef i32 @_ZN14CmStorageProxy17keyAddCertificateEPK12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(168), ptr noundef) local_unnamed_addr #2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7UapkiNS8VectorBAD2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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"}


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