; LLVM IR from specinfo-ua/UAPKI :: library/cm-pkcs12/src/storage (file-storage)

; 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::SmartBA" = type { ptr }
%"class.std::vector.13" = type { %"struct.std::_Vector_base.14" }
%"struct.std::_Vector_base.14" = type { %"struct.std::_Vector_base<const ByteArray_st *, std::allocator<const ByteArray_st *>>::_Vector_impl" }
%"struct.std::_Vector_base<const ByteArray_st *, std::allocator<const ByteArray_st *>>::_Vector_impl" = type { %"struct.std::_Vector_base<const ByteArray_st *, std::allocator<const ByteArray_st *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<const ByteArray_st *, std::allocator<const ByteArray_st *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.FileStorage = type { ptr, %"class.std::__cxx11::basic_string", i8, i8, %"class.std::__cxx11::basic_string", i8, %"class.std::vector", ptr, %struct.FileStorageParam }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<StoreBag *, std::allocator<StoreBag *>>::_Vector_impl" }
%"struct.std::_Vector_base<StoreBag *, std::allocator<StoreBag *>>::_Vector_impl" = type { %"struct.std::_Vector_base<StoreBag *, std::allocator<StoreBag *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<StoreBag *, std::allocator<StoreBag *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.FileStorageParam = type { ptr, ptr, ptr, i64 }

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

declare i32 @__gxx_personality_v0(...)

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

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

declare zeroext i1 @oid_is_equal(ptr noundef, ptr noundef) #1

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN11FileStorage23encodeAuthenticatedSafeEPKcPP12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(152) %0, ptr noundef %1, ptr noundef %2) #3 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca %"class.UapkiNS::SmartBA", align 8
  %12 = alloca %"class.UapkiNS::SmartBA", align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca %"class.std::vector.13", align 8
  %16 = alloca i64, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  %19 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 0, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %20 = call noalias ptr @calloc(i64 noundef 1, i64 noundef 48) #6
  store ptr %20, ptr %9, align 8, !tbaa !5
  %21 = load ptr, ptr %9, align 8, !tbaa !5
  %22 = icmp ne ptr %21, null
  br i1 %22, label %24, label %23

23:                                               ; preds = %3
  store i32 1025, ptr %4, align 4
  store i32 1, ptr %10, align 4
  br label %172

24:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  call void @_ZN7UapkiNS7SmartBAC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11)
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  invoke void @_ZN7UapkiNS7SmartBAC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %12)
          to label %25 unwind label %32

25:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 24, ptr %15) #5
  call void @_ZNSt6vectorIPK12ByteArray_stSaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  store i64 0, ptr %16, align 8, !tbaa !11
  br label %26

26:                                               ; preds = %80, %25
  %27 = load i64, ptr %16, align 8, !tbaa !11
  %28 = getelementptr inbounds %class.FileStorage, ptr %19, i32 0, i32 6
  %29 = call noundef i64 @_ZNKSt6vectorIP8StoreBagSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %28) #5
  %30 = icmp ult i64 %27, %29
  br i1 %30, label %36, label %31

31:                                               ; preds = %26
  store i32 2, ptr %10, align 4
  br label %84

32:                                               ; preds = %24
  %33 = landingpad { ptr, i32 }
          cleanup
  %34 = extractvalue { ptr, i32 } %33, 0
  store ptr %34, ptr %13, align 8
  %35 = extractvalue { ptr, i32 } %33, 1
  store i32 %35, ptr %14, align 4
  br label %171

36:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  %37 = getelementptr inbounds %class.FileStorage, ptr %19, i32 0, i32 6
  %38 = load i64, ptr %16, align 8, !tbaa !11
  %39 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP8StoreBagSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %37, i64 noundef %38) #5
  %40 = load ptr, ptr %39, align 8, !tbaa !5
  store ptr %40, ptr %17, align 8, !tbaa !5
  %41 = load ptr, ptr @OID_PKCS12_P8_SHROUDED_KEY_BAG, align 8, !tbaa !5
  %42 = load ptr, ptr %17, align 8, !tbaa !5
  %43 = invoke noundef ptr @_ZNK8StoreBag5bagIdEv(ptr noundef nonnull align 8 dereferenceable(120) %42)
          to label %44 unwind label %60

44:                                               ; preds = %36
  %45 = invoke zeroext i1 @oid_is_equal(ptr noundef %41, ptr noundef %43)
          to label %46 unwind label %60

46:                                               ; preds = %44
  br i1 %45, label %47, label %67

47:                                               ; preds = %46
  br label %48

48:                                               ; preds = %47
  %49 = load ptr, ptr %9, align 8, !tbaa !5
  %50 = load ptr, ptr %17, align 8, !tbaa !5
  %51 = invoke noundef ptr @_ZNK8StoreBag10encodedBagEv(ptr noundef nonnull align 8 dereferenceable(120) %50)
          to label %52 unwind label %60

52:                                               ; preds = %48
  %53 = invoke i32 @pkcs12_add_p7data_single_safecontent(ptr noundef %49, ptr noundef %51)
          to label %54 unwind label %60

54:                                               ; preds = %52
  store i32 %53, ptr %8, align 4, !tbaa !9
  %55 = load i32, ptr %8, align 4, !tbaa !9
  %56 = icmp ne i32 %55, 0
  br i1 %56, label %57, label %64

57:                                               ; preds = %54
  %58 = load i32, ptr %8, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str, i64 noundef 653, i32 noundef %58)
          to label %59 unwind label %60

59:                                               ; preds = %57
  store i32 7, ptr %10, align 4
  br label %77

60:                                               ; preds = %57, %52, %48, %44, %36
  %61 = landingpad { ptr, i32 }
          cleanup
  %62 = extractvalue { ptr, i32 } %61, 0
  store ptr %62, ptr %13, align 8
  %63 = extractvalue { ptr, i32 } %61, 1
  store i32 %63, ptr %14, align 4
  br label %83

64:                                               ; preds = %54
  br label %65

65:                                               ; preds = %64
  br label %66

66:                                               ; preds = %65
  br label %76

67:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %68 = load ptr, ptr %17, align 8, !tbaa !5
  %69 = invoke noundef ptr @_ZNK8StoreBag10encodedBagEv(ptr noundef nonnull align 8 dereferenceable(120) %68)
          to label %70 unwind label %72

70:                                               ; preds = %67
  store ptr %69, ptr %18, align 8, !tbaa !5
  invoke void @_ZNSt6vectorIPK12ByteArray_stSaIS2_EE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %15, ptr noundef nonnull align 8 dereferenceable(8) %18)
          to label %71 unwind label %72

71:                                               ; preds = %70
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  br label %76

72:                                               ; preds = %70, %67
  %73 = landingpad { ptr, i32 }
          cleanup
  %74 = extractvalue { ptr, i32 } %73, 0
  store ptr %74, ptr %13, align 8
  %75 = extractvalue { ptr, i32 } %73, 1
  store i32 %75, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  br label %83

76:                                               ; preds = %71, %66
  store i32 0, ptr %10, align 4
  br label %77

77:                                               ; preds = %76, %59
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  %78 = load i32, ptr %10, align 4
  switch i32 %78, label %84 [
    i32 0, label %79
  ]

79:                                               ; preds = %77
  br label %80

80:                                               ; preds = %79
  %81 = load i64, ptr %16, align 8, !tbaa !11
  %82 = add i64 %81, 1
  store i64 %82, ptr %16, align 8, !tbaa !11
  br label %26, !llvm.loop !13

83:                                               ; preds = %72, %60
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  br label %170

84:                                               ; preds = %77, %31
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  %85 = load i32, ptr %10, align 4
  switch i32 %85, label %169 [
    i32 2, label %86
    i32 7, label %163
  ]

86:                                               ; preds = %84
  %87 = call noundef zeroext i1 @_ZNKSt6vectorIPK12ByteArray_stSaIS2_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %15) #5
  br i1 %87, label %147, label %88

88:                                               ; preds = %86
  br label %89

89:                                               ; preds = %88
  %90 = call noundef ptr @_ZNSt6vectorIPK12ByteArray_stSaIS2_EE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %15) #5
  %91 = call noundef i64 @_ZNKSt6vectorIPK12ByteArray_stSaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %15) #5
  %92 = invoke noundef ptr @_ZN7UapkiNS7SmartBAadEv(ptr noundef nonnull align 8 dereferenceable(8) %11)
          to label %93 unwind label %101

93:                                               ; preds = %89
  %94 = invoke i32 @pkcs12_write_safecontents(ptr noundef %90, i64 noundef %91, ptr noundef %92)
          to label %95 unwind label %101

95:                                               ; preds = %93
  store i32 %94, ptr %8, align 4, !tbaa !9
  %96 = load i32, ptr %8, align 4, !tbaa !9
  %97 = icmp ne i32 %96, 0
  br i1 %97, label %98, label %105

98:                                               ; preds = %95
  %99 = load i32, ptr %8, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str, i64 noundef 661, i32 noundef %99)
          to label %100 unwind label %101

100:                                              ; preds = %98
  br label %163

101:                                              ; preds = %165, %163, %157, %150, %148, %141, %136, %133, %127, %122, %110, %108, %98, %93, %89
  %102 = landingpad { ptr, i32 }
          cleanup
  %103 = extractvalue { ptr, i32 } %102, 0
  store ptr %103, ptr %13, align 8
  %104 = extractvalue { ptr, i32 } %102, 1
  store i32 %104, ptr %14, align 4
  br label %170

105:                                              ; preds = %95
  br label %106

106:                                              ; preds = %105
  br label %107

107:                                              ; preds = %106
  br label %108

108:                                              ; preds = %107
  %109 = invoke noundef ptr @_ZNK7UapkiNS7SmartBA3getEv(ptr noundef nonnull align 8 dereferenceable(8) %11)
          to label %110 unwind label %101

110:                                              ; preds = %108
  %111 = load ptr, ptr %6, align 8, !tbaa !5
  %112 = getelementptr inbounds %class.FileStorage, ptr %19, i32 0, i32 8
  %113 = getelementptr inbounds %struct.FileStorageParam, ptr %112, i32 0, i32 3
  %114 = load i64, ptr %113, align 8, !tbaa !15
  %115 = getelementptr inbounds %class.FileStorage, ptr %19, i32 0, i32 8
  %116 = getelementptr inbounds %struct.FileStorageParam, ptr %115, i32 0, i32 1
  %117 = load ptr, ptr %116, align 8, !tbaa !25
  %118 = getelementptr inbounds %class.FileStorage, ptr %19, i32 0, i32 8
  %119 = getelementptr inbounds %struct.FileStorageParam, ptr %118, i32 0, i32 0
  %120 = load ptr, ptr %119, align 8, !tbaa !26
  %121 = invoke noundef ptr @_ZN7UapkiNS7SmartBAadEv(ptr noundef nonnull align 8 dereferenceable(8) %12)
          to label %122 unwind label %101

122:                                              ; preds = %110
  %123 = invoke i32 @pkcs8_pbes2_encrypt(ptr noundef %109, ptr noundef %111, i64 noundef %114, ptr noundef %117, ptr noundef %120, ptr noundef %121)
          to label %124 unwind label %101

124:                                              ; preds = %122
  store i32 %123, ptr %8, align 4, !tbaa !9
  %125 = load i32, ptr %8, align 4, !tbaa !9
  %126 = icmp ne i32 %125, 0
  br i1 %126, label %127, label %130

127:                                              ; preds = %124
  %128 = load i32, ptr %8, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str, i64 noundef 664, i32 noundef %128)
          to label %129 unwind label %101

129:                                              ; preds = %127
  br label %163

130:                                              ; preds = %124
  br label %131

131:                                              ; preds = %130
  br label %132

132:                                              ; preds = %131
  br label %133

133:                                              ; preds = %132
  %134 = load ptr, ptr %9, align 8, !tbaa !5
  %135 = invoke noundef ptr @_ZNK7UapkiNS7SmartBA3getEv(ptr noundef nonnull align 8 dereferenceable(8) %12)
          to label %136 unwind label %101

136:                                              ; preds = %133
  %137 = invoke i32 @pkcs12_add_p7encrypteddata(ptr noundef %134, ptr noundef %135)
          to label %138 unwind label %101

138:                                              ; preds = %136
  store i32 %137, ptr %8, align 4, !tbaa !9
  %139 = load i32, ptr %8, align 4, !tbaa !9
  %140 = icmp ne i32 %139, 0
  br i1 %140, label %141, label %144

141:                                              ; preds = %138
  %142 = load i32, ptr %8, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str, i64 noundef 666, i32 noundef %142)
          to label %143 unwind label %101

143:                                              ; preds = %141
  br label %163

144:                                              ; preds = %138
  br label %145

145:                                              ; preds = %144
  br label %146

146:                                              ; preds = %145
  br label %147

147:                                              ; preds = %146, %86
  br label %148

148:                                              ; preds = %147
  %149 = invoke ptr @get_AuthenticatedSafe_desc()
          to label %150 unwind label %101

150:                                              ; preds = %148
  %151 = load ptr, ptr %9, align 8, !tbaa !5
  %152 = load ptr, ptr %7, align 8, !tbaa !5
  %153 = invoke i32 @asn_encode_ba(ptr noundef %149, ptr noundef %151, ptr noundef %152)
          to label %154 unwind label %101

154:                                              ; preds = %150
  store i32 %153, ptr %8, align 4, !tbaa !9
  %155 = load i32, ptr %8, align 4, !tbaa !9
  %156 = icmp ne i32 %155, 0
  br i1 %156, label %157, label %160

157:                                              ; preds = %154
  %158 = load i32, ptr %8, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str, i64 noundef 669, i32 noundef %158)
          to label %159 unwind label %101

159:                                              ; preds = %157
  br label %163

160:                                              ; preds = %154
  br label %161

161:                                              ; preds = %160
  br label %162

162:                                              ; preds = %161
  br label %163

163:                                              ; preds = %162, %159, %143, %129, %100, %84
  %164 = invoke ptr @get_AuthenticatedSafe_desc()
          to label %165 unwind label %101

165:                                              ; preds = %163
  %166 = load ptr, ptr %9, align 8, !tbaa !5
  invoke void @asn_free(ptr noundef %164, ptr noundef %166)
          to label %167 unwind label %101

167:                                              ; preds = %165
  %168 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %168, ptr %4, align 4
  store i32 1, ptr %10, align 4
  br label %169

169:                                              ; preds = %167, %84
  call void @_ZNSt6vectorIPK12ByteArray_stSaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #5
  call void @_ZN7UapkiNS7SmartBAD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @_ZN7UapkiNS7SmartBAD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  br label %172

170:                                              ; preds = %101, %83
  call void @_ZNSt6vectorIPK12ByteArray_stSaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #5
  call void @_ZN7UapkiNS7SmartBAD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #5
  br label %171

171:                                              ; preds = %170, %32
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @_ZN7UapkiNS7SmartBAD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  br label %174

172:                                              ; preds = %169, %23
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  %173 = load i32, ptr %4, align 4
  ret i32 %173

174:                                              ; preds = %171
  %175 = load ptr, ptr %13, align 8
  %176 = load i32, ptr %14, align 4
  %177 = insertvalue { ptr, i32 } poison, ptr %175, 0
  %178 = insertvalue { ptr, i32 } %177, i32 %176, 1
  resume { ptr, i32 } %178
}

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

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

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

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

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

declare ptr @get_AuthenticatedSafe_desc() #1

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

; Function Attrs: nounwind allocsize(0,1)
declare noalias ptr @calloc(i64 noundef, i64 noundef) #4

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

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

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

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

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

declare i32 @pkcs12_write_safecontents(ptr noundef, i64 noundef, ptr noundef) #1

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

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

declare i32 @pkcs8_pbes2_encrypt(ptr noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef) #1

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

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

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

!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 = !{!"long", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!16, !12, i64 144}
!16 = !{!"_ZTS11FileStorage", !6, i64 0, !17, i64 8, !19, i64 40, !19, i64 41, !17, i64 48, !19, i64 80, !20, i64 88, !6, i64 112, !24, i64 120}
!17 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !18, i64 0, !12, i64 8, !7, i64 16}
!18 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!19 = !{!"bool", !7, i64 0}
!20 = !{!"_ZTSSt6vectorIP8StoreBagSaIS1_EE", !21, i64 0}
!21 = !{!"_ZTSSt12_Vector_baseIP8StoreBagSaIS1_EE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIP8StoreBagSaIS1_EE12_Vector_implE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIP8StoreBagSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!24 = !{!"_ZTS16FileStorageParam", !6, i64 0, !6, i64 8, !6, i64 16, !12, i64 24}
!25 = !{!16, !6, i64 128}
!26 = !{!16, !6, i64 120}


; 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::SmartBA" = type { ptr }
%"class.std::vector.13" = type { %"struct.std::_Vector_base.14" }
%"struct.std::_Vector_base.14" = type { %"struct.std::_Vector_base<const ByteArray_st *, std::allocator<const ByteArray_st *>>::_Vector_impl" }
%"struct.std::_Vector_base<const ByteArray_st *, std::allocator<const ByteArray_st *>>::_Vector_impl" = type { %"struct.std::_Vector_base<const ByteArray_st *, std::allocator<const ByteArray_st *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<const ByteArray_st *, std::allocator<const ByteArray_st *>>::_Vector_impl_data" = type { ptr, ptr, ptr }

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

declare i32 @__gxx_personality_v0(...)

; 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 zeroext i1 @oid_is_equal(ptr noundef, ptr noundef) local_unnamed_addr #1

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN11FileStorage23encodeAuthenticatedSafeEPKcPP12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(152) %0, ptr noundef %1, ptr noundef %2) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.UapkiNS::SmartBA", align 8
  %5 = alloca %"class.UapkiNS::SmartBA", align 8
  %6 = alloca %"class.std::vector.13", align 8
  %7 = alloca ptr, align 8
  %8 = tail call noalias dereferenceable_or_null(48) ptr @calloc(i64 noundef 1, i64 noundef 48) #5
  %.not = icmp eq ptr %8, null
  br i1 %.not, label %70, label %9

9:                                                ; preds = %3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  call void @_ZN7UapkiNS7SmartBAC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %4)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #6
  call void @_ZN7UapkiNS7SmartBAC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #6
  call void @_ZNSt6vectorIPK12ByteArray_stSaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  %10 = getelementptr inbounds i8, ptr %0, i64 88
  %11 = call noundef i64 @_ZNKSt6vectorIP8StoreBagSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  %.not62 = icmp eq i64 %11, 0
  br i1 %.not62, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %9, %28
  %.02961 = phi i64 [ %29, %28 ], [ 0, %9 ]
  %12 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP8StoreBagSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %.02961) #6
  %13 = load ptr, ptr %12, align 8, !tbaa !5
  %14 = load ptr, ptr @OID_PKCS12_P8_SHROUDED_KEY_BAG, align 8, !tbaa !5
  %15 = call noundef ptr @_ZNK8StoreBag5bagIdEv(ptr noundef nonnull align 8 dereferenceable(120) %13)
  %16 = invoke zeroext i1 @oid_is_equal(ptr noundef %14, ptr noundef %15)
          to label %17 unwind label %.loopexit

17:                                               ; preds = %.lr.ph
  br i1 %16, label %18, label %23

18:                                               ; preds = %17
  %19 = call noundef ptr @_ZNK8StoreBag10encodedBagEv(ptr noundef nonnull align 8 dereferenceable(120) %13)
  %20 = invoke i32 @pkcs12_add_p7data_single_safecontent(ptr noundef nonnull %8, ptr noundef %19)
          to label %21 unwind label %.loopexit

21:                                               ; preds = %18
  %.not46 = icmp eq i32 %20, 0
  br i1 %.not46, label %28, label %22

22:                                               ; preds = %21
  invoke void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 653, i32 noundef %20)
          to label %65 unwind label %.loopexit.split-lp

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

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

23:                                               ; preds = %17
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  %24 = call noundef ptr @_ZNK8StoreBag10encodedBagEv(ptr noundef nonnull align 8 dereferenceable(120) %13)
  store ptr %24, ptr %7, align 8, !tbaa !5
  invoke void @_ZNSt6vectorIPK12ByteArray_stSaIS2_EE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %25 unwind label %26

25:                                               ; preds = %23
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  br label %28

26:                                               ; preds = %23
  %27 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  br label %69

28:                                               ; preds = %21, %25
  %29 = add nuw i64 %.02961, 1
  %30 = call noundef i64 @_ZNKSt6vectorIP8StoreBagSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  %31 = icmp ult i64 %29, %30
  br i1 %31, label %.lr.ph, label %._crit_edge, !llvm.loop !9

._crit_edge:                                      ; preds = %28, %9
  %32 = call noundef zeroext i1 @_ZNKSt6vectorIPK12ByteArray_stSaIS2_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  br i1 %32, label %59, label %33

33:                                               ; preds = %._crit_edge
  %34 = call noundef ptr @_ZNSt6vectorIPK12ByteArray_stSaIS2_EE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  %35 = call noundef i64 @_ZNKSt6vectorIPK12ByteArray_stSaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  %36 = call noundef ptr @_ZN7UapkiNS7SmartBAadEv(ptr noundef nonnull align 8 dereferenceable(8) %4)
  %37 = invoke i32 @pkcs12_write_safecontents(ptr noundef %34, i64 noundef %35, ptr noundef %36)
          to label %38 unwind label %40

38:                                               ; preds = %33
  %.not48 = icmp eq i32 %37, 0
  br i1 %.not48, label %42, label %39

39:                                               ; preds = %38
  invoke void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 661, i32 noundef %37)
          to label %65 unwind label %40

40:                                               ; preds = %67, %65, %64, %61, %59, %58, %54, %53, %42, %39, %33
  %41 = landingpad { ptr, i32 }
          cleanup
  br label %69

42:                                               ; preds = %38
  %43 = call noundef ptr @_ZNK7UapkiNS7SmartBA3getEv(ptr noundef nonnull align 8 dereferenceable(8) %4)
  %44 = getelementptr inbounds i8, ptr %0, i64 120
  %45 = getelementptr inbounds i8, ptr %0, i64 144
  %46 = load i64, ptr %45, align 8, !tbaa !11
  %47 = getelementptr inbounds i8, ptr %0, i64 128
  %48 = load ptr, ptr %47, align 8, !tbaa !22
  %49 = load ptr, ptr %44, align 8, !tbaa !23
  %50 = call noundef ptr @_ZN7UapkiNS7SmartBAadEv(ptr noundef nonnull align 8 dereferenceable(8) %5)
  %51 = invoke i32 @pkcs8_pbes2_encrypt(ptr noundef %43, ptr noundef %1, i64 noundef %46, ptr noundef %48, ptr noundef %49, ptr noundef %50)
          to label %52 unwind label %40

52:                                               ; preds = %42
  %.not49 = icmp eq i32 %51, 0
  br i1 %.not49, label %54, label %53

53:                                               ; preds = %52
  invoke void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 664, i32 noundef %51)
          to label %65 unwind label %40

54:                                               ; preds = %52
  %55 = call noundef ptr @_ZNK7UapkiNS7SmartBA3getEv(ptr noundef nonnull align 8 dereferenceable(8) %5)
  %56 = invoke i32 @pkcs12_add_p7encrypteddata(ptr noundef nonnull %8, ptr noundef %55)
          to label %57 unwind label %40

57:                                               ; preds = %54
  %.not50 = icmp eq i32 %56, 0
  br i1 %.not50, label %59, label %58

58:                                               ; preds = %57
  invoke void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 666, i32 noundef %56)
          to label %65 unwind label %40

59:                                               ; preds = %._crit_edge, %57
  %60 = invoke ptr @get_AuthenticatedSafe_desc()
          to label %61 unwind label %40

61:                                               ; preds = %59
  %62 = invoke i32 @asn_encode_ba(ptr noundef %60, ptr noundef nonnull %8, ptr noundef %2)
          to label %63 unwind label %40

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

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

65:                                               ; preds = %22, %63, %64, %58, %53, %39
  %.4 = phi i32 [ %62, %64 ], [ 0, %63 ], [ %37, %39 ], [ %51, %53 ], [ %56, %58 ], [ %20, %22 ]
  %66 = invoke ptr @get_AuthenticatedSafe_desc()
          to label %67 unwind label %40

67:                                               ; preds = %65
  invoke void @asn_free(ptr noundef %66, ptr noundef nonnull %8)
          to label %68 unwind label %40

68:                                               ; preds = %67
  call void @_ZNSt6vectorIPK12ByteArray_stSaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #6
  call void @_ZN7UapkiNS7SmartBAD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  call void @_ZN7UapkiNS7SmartBAD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  br label %70

69:                                               ; preds = %.loopexit, %.loopexit.split-lp, %26, %40
  %.pn52 = phi { ptr, i32 } [ %41, %40 ], [ %27, %26 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @_ZNSt6vectorIPK12ByteArray_stSaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #6
  call void @_ZN7UapkiNS7SmartBAD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  call void @_ZN7UapkiNS7SmartBAD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  resume { ptr, i32 } %.pn52

70:                                               ; preds = %3, %68
  %.1 = phi i32 [ %.4, %68 ], [ 1025, %3 ]
  ret i32 %.1
}

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

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

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

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

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

declare ptr @get_AuthenticatedSafe_desc() local_unnamed_addr #1

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

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @calloc(i64 noundef, i64 noundef) local_unnamed_addr #4

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

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

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

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

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

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

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

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

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind allocsize(0,1) }
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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !15, i64 144}
!12 = !{!"_ZTS11FileStorage", !6, i64 0, !13, i64 8, !16, i64 40, !16, i64 41, !13, i64 48, !16, i64 80, !17, i64 88, !6, i64 112, !21, i64 120}
!13 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !14, i64 0, !15, i64 8, !7, i64 16}
!14 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!15 = !{!"long", !7, i64 0}
!16 = !{!"bool", !7, i64 0}
!17 = !{!"_ZTSSt6vectorIP8StoreBagSaIS1_EE", !18, i64 0}
!18 = !{!"_ZTSSt12_Vector_baseIP8StoreBagSaIS1_EE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIP8StoreBagSaIS1_EE12_Vector_implE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIP8StoreBagSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!21 = !{!"_ZTS16FileStorageParam", !6, i64 0, !6, i64 8, !6, i64 16, !15, i64 24}
!22 = !{!12, !6, i64 128}
!23 = !{!12, !6, i64 120}


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