; LLVM IR from UBIC-repo/core :: CertStore/CertStore.ll (ZN9CertStore7addCSCAEP4Certj)

; 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::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::pair" = type <{ i32, i8, [3 x i8] }>
%class.Log = type { i8, i8, ptr, %"class.std::basic_filebuf" }
%"class.std::basic_filebuf" = type { %"class.std::basic_streambuf", %union.pthread_mutex_t, %"class.std::__basic_file", i32, %struct.__mbstate_t, %struct.__mbstate_t, %struct.__mbstate_t, ptr, i64, i8, i8, i8, i8, ptr, ptr, i8, ptr, ptr, i64, ptr, ptr }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.std::__basic_file" = type <{ ptr, i8, [7 x i8] }>
%struct.__mbstate_t = type { i32, %union.anon.17 }
%union.anon.17 = type { i32 }
%class.CertStore = type { %"class.std::map", %"class.std::map", %"class.std::unordered_map" }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<std::vector<unsigned char>, std::pair<const std::vector<unsigned char>, Cert>, std::_Select1st<std::pair<const std::vector<unsigned char>, Cert>>, std::less<std::vector<unsigned char>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::vector<unsigned char>, std::pair<const std::vector<unsigned char>, Cert>, std::_Select1st<std::pair<const std::vector<unsigned char>, Cert>>, std::less<std::vector<unsigned char>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::unordered_map" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }

@.str.6 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [66 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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(96) ptr @_ZNSt3mapISt6vectorIhSaIhEE4CertSt4lessIS2_ESaISt4pairIKS2_S3_EEEixEOS2_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

declare void @_ZN4Cert5getIdEv(ptr dead_on_unwind writable sret(%"class.std::vector") align 8, ptr noundef nonnull align 8 dereferenceable(96)) #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(96) ptr @_ZN4CertaSERKS_(ptr noundef nonnull align 8 dereferenceable(96), ptr noundef nonnull align 8 dereferenceable(96)) #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN9CertStore11persistToFSEPKcSt6vectorIhSaIhEE(ptr noundef nonnull align 8 dereferenceable(152), ptr noundef, ptr noundef) #1 align 2

declare void @_ZN3LogC1Eh(ptr noundef nonnull align 8 dereferenceable(256), i8 noundef zeroext) unnamed_addr #2

declare noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsEPKc(ptr noundef nonnull align 8 dereferenceable(256), ptr noundef) #2

; Function Attrs: nounwind
declare void @_ZN3LogD1Ev(ptr noundef nonnull align 8 dereferenceable(256)) unnamed_addr #5

declare void @_ZN4Cert8setNonceEj(ptr noundef nonnull align 8 dereferenceable(96), i32 noundef) #2

declare noundef i32 @_ZN4Cert8getNonceEv(ptr noundef nonnull align 8 dereferenceable(96)) #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN9CertStore26isCertSignedByUBICrootCertEP4Certbh(ptr noundef nonnull align 8 dereferenceable(152), ptr noundef, i1 noundef zeroext, i8 noundef zeroext) #1 align 2

declare noundef zeroext i8 @_ZN4Cert13getCurrencyIdEv(ptr noundef nonnull align 8 dereferenceable(96)) #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN9CertStore21getCscaCertWithCertIdESt6vectorIhSaIhEE(ptr noundef nonnull align 8 dereferenceable(152), ptr noundef) #1 align 2

declare noundef zeroext i8 @_ZN5Fixes24fixCertificateCurrencyIDESt6vectorIhSaIhEEh(ptr noundef, i8 noundef zeroext) #2

declare noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsESt6vectorIhSaIhEE(ptr noundef nonnull align 8 dereferenceable(256), ptr noundef) #2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN9CertStore7addCSCAEP4Certj(ptr noundef nonnull align 8 dereferenceable(152) %0, ptr noundef %1, i32 noundef %2) #1 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca i1, align 1
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca %"class.std::vector", align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca %"struct.std::pair", align 4
  %13 = alloca i8, align 1
  %14 = alloca %"class.std::vector", align 8
  %15 = alloca %class.Log, align 8
  %16 = alloca %"class.std::vector", align 8
  %17 = alloca i32, align 4
  %18 = alloca %class.Log, align 8
  %19 = alloca %"class.std::vector", align 8
  %20 = alloca %"class.std::vector", align 8
  %21 = alloca %"struct.std::pair", align 4
  %22 = alloca i8, align 1
  %23 = alloca %"class.std::vector", align 8
  %24 = alloca %class.Log, align 8
  %25 = alloca %"class.std::vector", align 8
  %26 = alloca %"class.std::vector", align 8
  %27 = alloca %class.Log, align 8
  %28 = alloca %"class.std::vector", align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store i32 %2, ptr %7, align 4, !tbaa !9
  %29 = load ptr, ptr %5, align 8
  %30 = load ptr, ptr %6, align 8, !tbaa !5
  %31 = call noundef zeroext i1 @_ZN9CertStore26isCertSignedByUBICrootCertEP4Certbh(ptr noundef nonnull align 8 dereferenceable(152) %29, ptr noundef %30, i1 noundef zeroext true, i8 noundef zeroext 0)
  br i1 %31, label %32, label %147

32:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %33 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN4Cert5getIdEv(ptr dead_on_unwind writable sret(%"class.std::vector") align 8 %9, ptr noundef nonnull align 8 dereferenceable(96) %33)
  %34 = invoke noundef ptr @_ZN9CertStore21getCscaCertWithCertIdESt6vectorIhSaIhEE(ptr noundef nonnull align 8 dereferenceable(152) %29, ptr noundef %9)
          to label %35 unwind label %61

35:                                               ; preds = %32
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  store ptr %34, ptr %8, align 8, !tbaa !5
  %36 = load ptr, ptr %8, align 8, !tbaa !5
  %37 = icmp ne ptr %36, null
  br i1 %37, label %38, label %94

38:                                               ; preds = %35
  %39 = load ptr, ptr %8, align 8, !tbaa !5
  %40 = call noundef zeroext i1 @_ZN4Cert11isCertAtiveEv(ptr noundef nonnull align 8 dereferenceable(96) %39)
  br i1 %40, label %78, label %41

41:                                               ; preds = %38
  %42 = load ptr, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #6
  store i8 1, ptr %13, align 1, !tbaa !11
  call void @_ZNSt4pairIjbEC2IRjbTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(5) %12, ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 1 dereferenceable(1) %13)
  %43 = load i64, ptr %12, align 4
  call void @_ZN4Cert16appendStatusListESt4pairIjbE(ptr noundef nonnull align 8 dereferenceable(96) %42, i64 %43)
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #6
  %44 = load ptr, ptr %8, align 8, !tbaa !5
  %45 = load ptr, ptr %6, align 8, !tbaa !5
  %46 = call noundef i32 @_ZN4Cert8getNonceEv(ptr noundef nonnull align 8 dereferenceable(96) %45)
  %47 = add i32 %46, 1
  call void @_ZN4Cert8setNonceEj(ptr noundef nonnull align 8 dereferenceable(96) %44, i32 noundef %47)
  %48 = load ptr, ptr %8, align 8, !tbaa !5
  %49 = getelementptr inbounds %class.CertStore, ptr %29, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 24, ptr %14) #6
  %50 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN4Cert5getIdEv(ptr dead_on_unwind writable sret(%"class.std::vector") align 8 %14, ptr noundef nonnull align 8 dereferenceable(96) %50)
  %51 = invoke noundef nonnull align 8 dereferenceable(96) ptr @_ZNSt3mapISt6vectorIhSaIhEE4CertSt4lessIS2_ESaISt4pairIKS2_S3_EEEixEOS2_(ptr noundef nonnull align 8 dereferenceable(48) %49, ptr noundef nonnull align 8 dereferenceable(24) %14)
          to label %52 unwind label %65

52:                                               ; preds = %41
  %53 = invoke noundef nonnull align 8 dereferenceable(96) ptr @_ZN4CertaSERKS_(ptr noundef nonnull align 8 dereferenceable(96) %51, ptr noundef nonnull align 8 dereferenceable(96) %48)
          to label %54 unwind label %65

54:                                               ; preds = %52
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 256, ptr %15) #6
  call void @_ZN3LogC1Eh(ptr noundef nonnull align 8 dereferenceable(256) %15, i8 noundef zeroext 0)
  %55 = invoke noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsEPKc(ptr noundef nonnull align 8 dereferenceable(256) %15, ptr noundef @.str.27)
          to label %56 unwind label %69

56:                                               ; preds = %54
  %57 = load ptr, ptr %6, align 8, !tbaa !5
  invoke void @_ZN4Cert5getIdEv(ptr dead_on_unwind writable sret(%"class.std::vector") align 8 %16, ptr noundef nonnull align 8 dereferenceable(96) %57)
          to label %58 unwind label %69

58:                                               ; preds = %56
  %59 = invoke noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsESt6vectorIhSaIhEE(ptr noundef nonnull align 8 dereferenceable(256) %55, ptr noundef %16)
          to label %60 unwind label %73

60:                                               ; preds = %58
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #6
  call void @_ZN3LogD1Ev(ptr noundef nonnull align 8 dereferenceable(256) %15) #6
  call void @llvm.lifetime.end.p0(i64 256, ptr %15) #6
  store i1 true, ptr %4, align 1
  store i32 1, ptr %17, align 4
  br label %145

61:                                               ; preds = %32
  %62 = landingpad { ptr, i32 }
          cleanup
  %63 = extractvalue { ptr, i32 } %62, 0
  store ptr %63, ptr %10, align 8
  %64 = extractvalue { ptr, i32 } %62, 1
  store i32 %64, ptr %11, align 4
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  br label %146

65:                                               ; preds = %52, %41
  %66 = landingpad { ptr, i32 }
          cleanup
  %67 = extractvalue { ptr, i32 } %66, 0
  store ptr %67, ptr %10, align 8
  %68 = extractvalue { ptr, i32 } %66, 1
  store i32 %68, ptr %11, align 4
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #6
  br label %146

69:                                               ; preds = %56, %54
  %70 = landingpad { ptr, i32 }
          cleanup
  %71 = extractvalue { ptr, i32 } %70, 0
  store ptr %71, ptr %10, align 8
  %72 = extractvalue { ptr, i32 } %70, 1
  store i32 %72, ptr %11, align 4
  br label %77

73:                                               ; preds = %58
  %74 = landingpad { ptr, i32 }
          cleanup
  %75 = extractvalue { ptr, i32 } %74, 0
  store ptr %75, ptr %10, align 8
  %76 = extractvalue { ptr, i32 } %74, 1
  store i32 %76, ptr %11, align 4
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #6
  br label %77

77:                                               ; preds = %73, %69
  call void @_ZN3LogD1Ev(ptr noundef nonnull align 8 dereferenceable(256) %15) #6
  call void @llvm.lifetime.end.p0(i64 256, ptr %15) #6
  br label %146

78:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 256, ptr %18) #6
  call void @_ZN3LogC1Eh(ptr noundef nonnull align 8 dereferenceable(256) %18, i8 noundef zeroext 3)
  %79 = invoke noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsEPKc(ptr noundef nonnull align 8 dereferenceable(256) %18, ptr noundef @.str.28)
          to label %80 unwind label %85

80:                                               ; preds = %78
  %81 = load ptr, ptr %6, align 8, !tbaa !5
  invoke void @_ZN4Cert5getIdEv(ptr dead_on_unwind writable sret(%"class.std::vector") align 8 %19, ptr noundef nonnull align 8 dereferenceable(96) %81)
          to label %82 unwind label %85

82:                                               ; preds = %80
  %83 = invoke noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsESt6vectorIhSaIhEE(ptr noundef nonnull align 8 dereferenceable(256) %79, ptr noundef %19)
          to label %84 unwind label %89

84:                                               ; preds = %82
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #6
  call void @_ZN3LogD1Ev(ptr noundef nonnull align 8 dereferenceable(256) %18) #6
  call void @llvm.lifetime.end.p0(i64 256, ptr %18) #6
  store i1 false, ptr %4, align 1
  store i32 1, ptr %17, align 4
  br label %145

85:                                               ; preds = %80, %78
  %86 = landingpad { ptr, i32 }
          cleanup
  %87 = extractvalue { ptr, i32 } %86, 0
  store ptr %87, ptr %10, align 8
  %88 = extractvalue { ptr, i32 } %86, 1
  store i32 %88, ptr %11, align 4
  br label %93

89:                                               ; preds = %82
  %90 = landingpad { ptr, i32 }
          cleanup
  %91 = extractvalue { ptr, i32 } %90, 0
  store ptr %91, ptr %10, align 8
  %92 = extractvalue { ptr, i32 } %90, 1
  store i32 %92, ptr %11, align 4
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #6
  br label %93

93:                                               ; preds = %89, %85
  call void @_ZN3LogD1Ev(ptr noundef nonnull align 8 dereferenceable(256) %18) #6
  call void @llvm.lifetime.end.p0(i64 256, ptr %18) #6
  br label %146

94:                                               ; preds = %35
  %95 = load ptr, ptr %6, align 8, !tbaa !5
  %96 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN4Cert5getIdEv(ptr dead_on_unwind writable sret(%"class.std::vector") align 8 %20, ptr noundef nonnull align 8 dereferenceable(96) %96)
  %97 = load ptr, ptr %6, align 8, !tbaa !5
  %98 = invoke noundef zeroext i8 @_ZN4Cert13getCurrencyIdEv(ptr noundef nonnull align 8 dereferenceable(96) %97)
          to label %99 unwind label %124

99:                                               ; preds = %94
  %100 = invoke noundef zeroext i8 @_ZN5Fixes24fixCertificateCurrencyIDESt6vectorIhSaIhEEh(ptr noundef %20, i8 noundef zeroext %98)
          to label %101 unwind label %124

101:                                              ; preds = %99
  invoke void @_ZN4Cert13setCurrencyIdEh(ptr noundef nonnull align 8 dereferenceable(96) %95, i8 noundef zeroext %100)
          to label %102 unwind label %124

102:                                              ; preds = %101
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #6
  %103 = load ptr, ptr %6, align 8, !tbaa !5
  %104 = load ptr, ptr %6, align 8, !tbaa !5
  %105 = call noundef i32 @_ZN4Cert8getNonceEv(ptr noundef nonnull align 8 dereferenceable(96) %104)
  %106 = add i32 %105, 1
  call void @_ZN4Cert8setNonceEj(ptr noundef nonnull align 8 dereferenceable(96) %103, i32 noundef %106)
  %107 = load ptr, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %22) #6
  store i8 1, ptr %22, align 1, !tbaa !11
  call void @_ZNSt4pairIjbEC2IRjbTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(5) %21, ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 1 dereferenceable(1) %22)
  %108 = load i64, ptr %21, align 4
  call void @_ZN4Cert16appendStatusListESt4pairIjbE(ptr noundef nonnull align 8 dereferenceable(96) %107, i64 %108)
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #6
  %109 = load ptr, ptr %6, align 8, !tbaa !5
  %110 = getelementptr inbounds %class.CertStore, ptr %29, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 24, ptr %23) #6
  %111 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN4Cert5getIdEv(ptr dead_on_unwind writable sret(%"class.std::vector") align 8 %23, ptr noundef nonnull align 8 dereferenceable(96) %111)
  %112 = invoke noundef nonnull align 8 dereferenceable(96) ptr @_ZNSt3mapISt6vectorIhSaIhEE4CertSt4lessIS2_ESaISt4pairIKS2_S3_EEEixEOS2_(ptr noundef nonnull align 8 dereferenceable(48) %110, ptr noundef nonnull align 8 dereferenceable(24) %23)
          to label %113 unwind label %128

113:                                              ; preds = %102
  %114 = invoke noundef nonnull align 8 dereferenceable(96) ptr @_ZN4CertaSERKS_(ptr noundef nonnull align 8 dereferenceable(96) %112, ptr noundef nonnull align 8 dereferenceable(96) %109)
          to label %115 unwind label %128

115:                                              ; preds = %113
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %23) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %23) #6
  call void @llvm.lifetime.start.p0(i64 256, ptr %24) #6
  call void @_ZN3LogC1Eh(ptr noundef nonnull align 8 dereferenceable(256) %24, i8 noundef zeroext 0)
  %116 = invoke noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsEPKc(ptr noundef nonnull align 8 dereferenceable(256) %24, ptr noundef @.str.29)
          to label %117 unwind label %132

117:                                              ; preds = %115
  %118 = load ptr, ptr %6, align 8, !tbaa !5
  invoke void @_ZN4Cert5getIdEv(ptr dead_on_unwind writable sret(%"class.std::vector") align 8 %25, ptr noundef nonnull align 8 dereferenceable(96) %118)
          to label %119 unwind label %132

119:                                              ; preds = %117
  %120 = invoke noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsESt6vectorIhSaIhEE(ptr noundef nonnull align 8 dereferenceable(256) %116, ptr noundef %25)
          to label %121 unwind label %136

121:                                              ; preds = %119
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #6
  call void @_ZN3LogD1Ev(ptr noundef nonnull align 8 dereferenceable(256) %24) #6
  call void @llvm.lifetime.end.p0(i64 256, ptr %24) #6
  %122 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN4Cert5getIdEv(ptr dead_on_unwind writable sret(%"class.std::vector") align 8 %26, ptr noundef nonnull align 8 dereferenceable(96) %122)
  invoke void @_ZN9CertStore11persistToFSEPKcSt6vectorIhSaIhEE(ptr noundef nonnull align 8 dereferenceable(152) %29, ptr noundef @.str.6, ptr noundef %26)
          to label %123 unwind label %141

123:                                              ; preds = %121
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %26) #6
  store i1 true, ptr %4, align 1
  store i32 1, ptr %17, align 4
  br label %145

124:                                              ; preds = %101, %99, %94
  %125 = landingpad { ptr, i32 }
          cleanup
  %126 = extractvalue { ptr, i32 } %125, 0
  store ptr %126, ptr %10, align 8
  %127 = extractvalue { ptr, i32 } %125, 1
  store i32 %127, ptr %11, align 4
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #6
  br label %146

128:                                              ; preds = %113, %102
  %129 = landingpad { ptr, i32 }
          cleanup
  %130 = extractvalue { ptr, i32 } %129, 0
  store ptr %130, ptr %10, align 8
  %131 = extractvalue { ptr, i32 } %129, 1
  store i32 %131, ptr %11, align 4
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %23) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %23) #6
  br label %146

132:                                              ; preds = %117, %115
  %133 = landingpad { ptr, i32 }
          cleanup
  %134 = extractvalue { ptr, i32 } %133, 0
  store ptr %134, ptr %10, align 8
  %135 = extractvalue { ptr, i32 } %133, 1
  store i32 %135, ptr %11, align 4
  br label %140

136:                                              ; preds = %119
  %137 = landingpad { ptr, i32 }
          cleanup
  %138 = extractvalue { ptr, i32 } %137, 0
  store ptr %138, ptr %10, align 8
  %139 = extractvalue { ptr, i32 } %137, 1
  store i32 %139, ptr %11, align 4
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #6
  br label %140

140:                                              ; preds = %136, %132
  call void @_ZN3LogD1Ev(ptr noundef nonnull align 8 dereferenceable(256) %24) #6
  call void @llvm.lifetime.end.p0(i64 256, ptr %24) #6
  br label %146

141:                                              ; preds = %121
  %142 = landingpad { ptr, i32 }
          cleanup
  %143 = extractvalue { ptr, i32 } %142, 0
  store ptr %143, ptr %10, align 8
  %144 = extractvalue { ptr, i32 } %142, 1
  store i32 %144, ptr %11, align 4
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %26) #6
  br label %146

145:                                              ; preds = %123, %84, %60
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  br label %163

146:                                              ; preds = %141, %140, %128, %124, %93, %77, %65, %61
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  br label %165

147:                                              ; preds = %3
  call void @llvm.lifetime.start.p0(i64 256, ptr %27) #6
  call void @_ZN3LogC1Eh(ptr noundef nonnull align 8 dereferenceable(256) %27, i8 noundef zeroext 3)
  %148 = invoke noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsEPKc(ptr noundef nonnull align 8 dereferenceable(256) %27, ptr noundef @.str.30)
          to label %149 unwind label %154

149:                                              ; preds = %147
  %150 = load ptr, ptr %6, align 8, !tbaa !5
  invoke void @_ZN4Cert5getIdEv(ptr dead_on_unwind writable sret(%"class.std::vector") align 8 %28, ptr noundef nonnull align 8 dereferenceable(96) %150)
          to label %151 unwind label %154

151:                                              ; preds = %149
  %152 = invoke noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsESt6vectorIhSaIhEE(ptr noundef nonnull align 8 dereferenceable(256) %148, ptr noundef %28)
          to label %153 unwind label %158

153:                                              ; preds = %151
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %28) #6
  call void @_ZN3LogD1Ev(ptr noundef nonnull align 8 dereferenceable(256) %27) #6
  call void @llvm.lifetime.end.p0(i64 256, ptr %27) #6
  store i1 false, ptr %4, align 1
  br label %163

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

158:                                              ; preds = %151
  %159 = landingpad { ptr, i32 }
          cleanup
  %160 = extractvalue { ptr, i32 } %159, 0
  store ptr %160, ptr %10, align 8
  %161 = extractvalue { ptr, i32 } %159, 1
  store i32 %161, ptr %11, align 4
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %28) #6
  br label %162

162:                                              ; preds = %158, %154
  call void @_ZN3LogD1Ev(ptr noundef nonnull align 8 dereferenceable(256) %27) #6
  call void @llvm.lifetime.end.p0(i64 256, ptr %27) #6
  br label %165

163:                                              ; preds = %153, %145
  %164 = load i1, ptr %4, align 1
  ret i1 %164

165:                                              ; preds = %162, %146
  %166 = load ptr, ptr %10, align 8
  %167 = load i32, ptr %11, align 4
  %168 = insertvalue { ptr, i32 } poison, ptr %166, 0
  %169 = insertvalue { ptr, i32 } %168, i32 %167, 1
  resume { ptr, i32 } %169
}

declare noundef zeroext i1 @_ZN4Cert11isCertAtiveEv(ptr noundef nonnull align 8 dereferenceable(96)) #2

declare void @_ZN4Cert16appendStatusListESt4pairIjbE(ptr noundef nonnull align 8 dereferenceable(96), i64) #2

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

declare void @_ZN4Cert13setCurrencyIdEh(ptr noundef nonnull align 8 dereferenceable(96), i8 noundef zeroext) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress 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 "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, 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::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::pair" = type <{ i32, i8, [3 x i8] }>
%class.Log = type { i8, i8, ptr, %"class.std::basic_filebuf" }
%"class.std::basic_filebuf" = type { %"class.std::basic_streambuf", %union.pthread_mutex_t, %"class.std::__basic_file", i32, %struct.__mbstate_t, %struct.__mbstate_t, %struct.__mbstate_t, ptr, i64, i8, i8, i8, i8, ptr, ptr, i8, ptr, ptr, i64, ptr, ptr }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.std::__basic_file" = type <{ ptr, i8, [7 x i8] }>
%struct.__mbstate_t = type { i32, %union.anon.17 }
%union.anon.17 = type { i32 }

@.str.6 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [66 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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(96) ptr @_ZNSt3mapISt6vectorIhSaIhEE4CertSt4lessIS2_ESaISt4pairIKS2_S3_EEEixEOS2_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

declare void @_ZN4Cert5getIdEv(ptr dead_on_unwind writable sret(%"class.std::vector") align 8, ptr noundef nonnull align 8 dereferenceable(96)) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(96) ptr @_ZN4CertaSERKS_(ptr noundef nonnull align 8 dereferenceable(96), ptr noundef nonnull align 8 dereferenceable(96)) local_unnamed_addr #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN9CertStore11persistToFSEPKcSt6vectorIhSaIhEE(ptr noundef nonnull align 8 dereferenceable(152), ptr noundef, ptr noundef) local_unnamed_addr #1 align 2

declare void @_ZN3LogC1Eh(ptr noundef nonnull align 8 dereferenceable(256), i8 noundef zeroext) unnamed_addr #2

declare noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsEPKc(ptr noundef nonnull align 8 dereferenceable(256), ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind
declare void @_ZN3LogD1Ev(ptr noundef nonnull align 8 dereferenceable(256)) unnamed_addr #5

declare void @_ZN4Cert8setNonceEj(ptr noundef nonnull align 8 dereferenceable(96), i32 noundef) local_unnamed_addr #2

declare noundef i32 @_ZN4Cert8getNonceEv(ptr noundef nonnull align 8 dereferenceable(96)) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN9CertStore26isCertSignedByUBICrootCertEP4Certbh(ptr noundef nonnull align 8 dereferenceable(152), ptr noundef, i1 noundef zeroext, i8 noundef zeroext) local_unnamed_addr #1 align 2

declare noundef zeroext i8 @_ZN4Cert13getCurrencyIdEv(ptr noundef nonnull align 8 dereferenceable(96)) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN9CertStore21getCscaCertWithCertIdESt6vectorIhSaIhEE(ptr noundef nonnull align 8 dereferenceable(152), ptr noundef) local_unnamed_addr #1 align 2

declare noundef zeroext i8 @_ZN5Fixes24fixCertificateCurrencyIDESt6vectorIhSaIhEEh(ptr noundef, i8 noundef zeroext) local_unnamed_addr #2

declare noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsESt6vectorIhSaIhEE(ptr noundef nonnull align 8 dereferenceable(256), ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN9CertStore7addCSCAEP4Certj(ptr noundef nonnull align 8 dereferenceable(152) %0, ptr noundef %1, i32 noundef %2) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca i32, align 4
  %5 = alloca %"class.std::vector", align 8
  %6 = alloca %"struct.std::pair", align 8
  %7 = alloca i8, align 1
  %8 = alloca %"class.std::vector", align 8
  %9 = alloca %class.Log, align 8
  %10 = alloca %"class.std::vector", align 8
  %11 = alloca %class.Log, align 8
  %12 = alloca %"class.std::vector", align 8
  %13 = alloca %"class.std::vector", align 8
  %14 = alloca %"struct.std::pair", align 8
  %15 = alloca i8, align 1
  %16 = alloca %"class.std::vector", align 8
  %17 = alloca %class.Log, align 8
  %18 = alloca %"class.std::vector", align 8
  %19 = alloca %"class.std::vector", align 8
  %20 = alloca %class.Log, align 8
  %21 = alloca %"class.std::vector", align 8
  store i32 %2, ptr %4, align 4, !tbaa !5
  %22 = tail call noundef zeroext i1 @_ZN9CertStore26isCertSignedByUBICrootCertEP4Certbh(ptr noundef nonnull align 8 dereferenceable(152) %0, ptr noundef %1, i1 noundef zeroext true, i8 noundef zeroext 0)
  br i1 %22, label %23, label %93

23:                                               ; preds = %3
  call void @_ZN4Cert5getIdEv(ptr dead_on_unwind nonnull writable sret(%"class.std::vector") align 8 %5, ptr noundef nonnull align 8 dereferenceable(96) %1)
  %24 = invoke noundef ptr @_ZN9CertStore21getCscaCertWithCertIdESt6vectorIhSaIhEE(ptr noundef nonnull align 8 dereferenceable(152) %0, ptr noundef nonnull %5)
          to label %25 unwind label %42

25:                                               ; preds = %23
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  %.not = icmp eq ptr %24, null
  br i1 %.not, label %62, label %26

26:                                               ; preds = %25
  %27 = call noundef zeroext i1 @_ZN4Cert11isCertAtiveEv(ptr noundef nonnull align 8 dereferenceable(96) %24)
  br i1 %27, label %51, label %28

28:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #6
  store i8 1, ptr %7, align 1, !tbaa !9
  call void @_ZNSt4pairIjbEC2IRjbTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(5) %6, ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 1 dereferenceable(1) %7)
  %29 = load i64, ptr %6, align 8
  call void @_ZN4Cert16appendStatusListESt4pairIjbE(ptr noundef nonnull align 8 dereferenceable(96) %24, i64 %29)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #6
  %30 = call noundef i32 @_ZN4Cert8getNonceEv(ptr noundef nonnull align 8 dereferenceable(96) %1)
  %31 = add i32 %30, 1
  call void @_ZN4Cert8setNonceEj(ptr noundef nonnull align 8 dereferenceable(96) %24, i32 noundef %31)
  %32 = getelementptr inbounds i8, ptr %0, i64 48
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #6
  call void @_ZN4Cert5getIdEv(ptr dead_on_unwind nonnull writable sret(%"class.std::vector") align 8 %8, ptr noundef nonnull align 8 dereferenceable(96) %1)
  %33 = invoke noundef nonnull align 8 dereferenceable(96) ptr @_ZNSt3mapISt6vectorIhSaIhEE4CertSt4lessIS2_ESaISt4pairIKS2_S3_EEEixEOS2_(ptr noundef nonnull align 8 dereferenceable(48) %32, ptr noundef nonnull align 8 dereferenceable(24) %8)
          to label %34 unwind label %44

34:                                               ; preds = %28
  %35 = invoke noundef nonnull align 8 dereferenceable(96) ptr @_ZN4CertaSERKS_(ptr noundef nonnull align 8 dereferenceable(96) %33, ptr noundef nonnull align 8 dereferenceable(96) %24)
          to label %36 unwind label %44

36:                                               ; preds = %34
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %9) #6
  call void @_ZN3LogC1Eh(ptr noundef nonnull align 8 dereferenceable(256) %9, i8 noundef zeroext 0)
  %37 = invoke noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsEPKc(ptr noundef nonnull align 8 dereferenceable(256) %9, ptr noundef nonnull @.str.27)
          to label %38 unwind label %46

38:                                               ; preds = %36
  invoke void @_ZN4Cert5getIdEv(ptr dead_on_unwind nonnull writable sret(%"class.std::vector") align 8 %10, ptr noundef nonnull align 8 dereferenceable(96) %1)
          to label %39 unwind label %46

39:                                               ; preds = %38
  %40 = invoke noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsESt6vectorIhSaIhEE(ptr noundef nonnull align 8 dereferenceable(256) %37, ptr noundef nonnull %10)
          to label %41 unwind label %48

41:                                               ; preds = %39
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  call void @_ZN3LogD1Ev(ptr noundef nonnull align 8 dereferenceable(256) %9) #6
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %9) #6
  br label %104

42:                                               ; preds = %23
  %43 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  br label %105

44:                                               ; preds = %34, %28
  %45 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #6
  br label %105

46:                                               ; preds = %38, %36
  %47 = landingpad { ptr, i32 }
          cleanup
  br label %50

48:                                               ; preds = %39
  %49 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  br label %50

50:                                               ; preds = %48, %46
  %.pn37 = phi { ptr, i32 } [ %49, %48 ], [ %47, %46 ]
  call void @_ZN3LogD1Ev(ptr noundef nonnull align 8 dereferenceable(256) %9) #6
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %9) #6
  br label %105

51:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %11) #6
  call void @_ZN3LogC1Eh(ptr noundef nonnull align 8 dereferenceable(256) %11, i8 noundef zeroext 3)
  %52 = invoke noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsEPKc(ptr noundef nonnull align 8 dereferenceable(256) %11, ptr noundef nonnull @.str.28)
          to label %53 unwind label %57

53:                                               ; preds = %51
  invoke void @_ZN4Cert5getIdEv(ptr dead_on_unwind nonnull writable sret(%"class.std::vector") align 8 %12, ptr noundef nonnull align 8 dereferenceable(96) %1)
          to label %54 unwind label %57

54:                                               ; preds = %53
  %55 = invoke noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsESt6vectorIhSaIhEE(ptr noundef nonnull align 8 dereferenceable(256) %52, ptr noundef nonnull %12)
          to label %56 unwind label %59

56:                                               ; preds = %54
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #6
  call void @_ZN3LogD1Ev(ptr noundef nonnull align 8 dereferenceable(256) %11) #6
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %11) #6
  br label %104

57:                                               ; preds = %53, %51
  %58 = landingpad { ptr, i32 }
          cleanup
  br label %61

59:                                               ; preds = %54
  %60 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #6
  br label %61

61:                                               ; preds = %59, %57
  %.pn39 = phi { ptr, i32 } [ %60, %59 ], [ %58, %57 ]
  call void @_ZN3LogD1Ev(ptr noundef nonnull align 8 dereferenceable(256) %11) #6
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %11) #6
  br label %105

62:                                               ; preds = %25
  call void @_ZN4Cert5getIdEv(ptr dead_on_unwind nonnull writable sret(%"class.std::vector") align 8 %13, ptr noundef nonnull align 8 dereferenceable(96) %1)
  %63 = invoke noundef zeroext i8 @_ZN4Cert13getCurrencyIdEv(ptr noundef nonnull align 8 dereferenceable(96) %1)
          to label %64 unwind label %82

64:                                               ; preds = %62
  %65 = invoke noundef zeroext i8 @_ZN5Fixes24fixCertificateCurrencyIDESt6vectorIhSaIhEEh(ptr noundef nonnull %13, i8 noundef zeroext %63)
          to label %66 unwind label %82

66:                                               ; preds = %64
  invoke void @_ZN4Cert13setCurrencyIdEh(ptr noundef nonnull align 8 dereferenceable(96) %1, i8 noundef zeroext %65)
          to label %67 unwind label %82

67:                                               ; preds = %66
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  %68 = call noundef i32 @_ZN4Cert8getNonceEv(ptr noundef nonnull align 8 dereferenceable(96) %1)
  %69 = add i32 %68, 1
  call void @_ZN4Cert8setNonceEj(ptr noundef nonnull align 8 dereferenceable(96) %1, i32 noundef %69)
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %15) #6
  store i8 1, ptr %15, align 1, !tbaa !9
  call void @_ZNSt4pairIjbEC2IRjbTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(5) %14, ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 1 dereferenceable(1) %15)
  %70 = load i64, ptr %14, align 8
  call void @_ZN4Cert16appendStatusListESt4pairIjbE(ptr noundef nonnull align 8 dereferenceable(96) %1, i64 %70)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %15) #6
  %71 = getelementptr inbounds i8, ptr %0, i64 48
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %16) #6
  call void @_ZN4Cert5getIdEv(ptr dead_on_unwind nonnull writable sret(%"class.std::vector") align 8 %16, ptr noundef nonnull align 8 dereferenceable(96) %1)
  %72 = invoke noundef nonnull align 8 dereferenceable(96) ptr @_ZNSt3mapISt6vectorIhSaIhEE4CertSt4lessIS2_ESaISt4pairIKS2_S3_EEEixEOS2_(ptr noundef nonnull align 8 dereferenceable(48) %71, ptr noundef nonnull align 8 dereferenceable(24) %16)
          to label %73 unwind label %84

73:                                               ; preds = %67
  %74 = invoke noundef nonnull align 8 dereferenceable(96) ptr @_ZN4CertaSERKS_(ptr noundef nonnull align 8 dereferenceable(96) %72, ptr noundef nonnull align 8 dereferenceable(96) %1)
          to label %75 unwind label %84

75:                                               ; preds = %73
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %16) #6
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %17) #6
  call void @_ZN3LogC1Eh(ptr noundef nonnull align 8 dereferenceable(256) %17, i8 noundef zeroext 0)
  %76 = invoke noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsEPKc(ptr noundef nonnull align 8 dereferenceable(256) %17, ptr noundef nonnull @.str.29)
          to label %77 unwind label %86

77:                                               ; preds = %75
  invoke void @_ZN4Cert5getIdEv(ptr dead_on_unwind nonnull writable sret(%"class.std::vector") align 8 %18, ptr noundef nonnull align 8 dereferenceable(96) %1)
          to label %78 unwind label %86

78:                                               ; preds = %77
  %79 = invoke noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsESt6vectorIhSaIhEE(ptr noundef nonnull align 8 dereferenceable(256) %76, ptr noundef nonnull %18)
          to label %80 unwind label %88

80:                                               ; preds = %78
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #6
  call void @_ZN3LogD1Ev(ptr noundef nonnull align 8 dereferenceable(256) %17) #6
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %17) #6
  call void @_ZN4Cert5getIdEv(ptr dead_on_unwind nonnull writable sret(%"class.std::vector") align 8 %19, ptr noundef nonnull align 8 dereferenceable(96) %1)
  invoke void @_ZN9CertStore11persistToFSEPKcSt6vectorIhSaIhEE(ptr noundef nonnull align 8 dereferenceable(152) %0, ptr noundef nonnull @.str.6, ptr noundef nonnull %19)
          to label %81 unwind label %91

81:                                               ; preds = %80
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #6
  br label %104

82:                                               ; preds = %66, %64, %62
  %83 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  br label %105

84:                                               ; preds = %73, %67
  %85 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %16) #6
  br label %105

86:                                               ; preds = %77, %75
  %87 = landingpad { ptr, i32 }
          cleanup
  br label %90

88:                                               ; preds = %78
  %89 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #6
  br label %90

90:                                               ; preds = %88, %86
  %.pn35 = phi { ptr, i32 } [ %89, %88 ], [ %87, %86 ]
  call void @_ZN3LogD1Ev(ptr noundef nonnull align 8 dereferenceable(256) %17) #6
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %17) #6
  br label %105

91:                                               ; preds = %80
  %92 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #6
  br label %105

93:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %20) #6
  call void @_ZN3LogC1Eh(ptr noundef nonnull align 8 dereferenceable(256) %20, i8 noundef zeroext 3)
  %94 = invoke noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsEPKc(ptr noundef nonnull align 8 dereferenceable(256) %20, ptr noundef nonnull @.str.30)
          to label %95 unwind label %99

95:                                               ; preds = %93
  invoke void @_ZN4Cert5getIdEv(ptr dead_on_unwind nonnull writable sret(%"class.std::vector") align 8 %21, ptr noundef nonnull align 8 dereferenceable(96) %1)
          to label %96 unwind label %99

96:                                               ; preds = %95
  %97 = invoke noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsESt6vectorIhSaIhEE(ptr noundef nonnull align 8 dereferenceable(256) %94, ptr noundef nonnull %21)
          to label %98 unwind label %101

98:                                               ; preds = %96
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #6
  call void @_ZN3LogD1Ev(ptr noundef nonnull align 8 dereferenceable(256) %20) #6
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %20) #6
  br label %104

99:                                               ; preds = %95, %93
  %100 = landingpad { ptr, i32 }
          cleanup
  br label %103

101:                                              ; preds = %96
  %102 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #6
  br label %103

103:                                              ; preds = %101, %99
  %.pn = phi { ptr, i32 } [ %102, %101 ], [ %100, %99 ]
  call void @_ZN3LogD1Ev(ptr noundef nonnull align 8 dereferenceable(256) %20) #6
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %20) #6
  br label %105

104:                                              ; preds = %41, %56, %81, %98
  %.132 = phi i1 [ false, %98 ], [ false, %56 ], [ true, %41 ], [ true, %81 ]
  ret i1 %.132

105:                                              ; preds = %42, %44, %50, %61, %82, %84, %90, %91, %103
  %.pn39.pn.pn = phi { ptr, i32 } [ %.pn, %103 ], [ %.pn39, %61 ], [ %.pn37, %50 ], [ %45, %44 ], [ %92, %91 ], [ %.pn35, %90 ], [ %85, %84 ], [ %83, %82 ], [ %43, %42 ]
  resume { ptr, i32 } %.pn39.pn.pn
}

declare noundef zeroext i1 @_ZN4Cert11isCertAtiveEv(ptr noundef nonnull align 8 dereferenceable(96)) local_unnamed_addr #2

declare void @_ZN4Cert16appendStatusListESt4pairIjbE(ptr noundef nonnull align 8 dereferenceable(96), i64) local_unnamed_addr #2

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

declare void @_ZN4Cert13setCurrencyIdEh(ptr noundef nonnull align 8 dereferenceable(96), i8 noundef zeroext) local_unnamed_addr #2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress 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 "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"bool", !7, i64 0}


; Effective O3 passes: GlobalOptPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass,TailCallElimPass