; LLVM IR from Trusted-eSign/trusted-crypto :: deps/wrapper/src/store (provider_system)

; 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.Handle.8 = type { ptr }
%class.LoggerFunction = type { %class.Handle, ptr }
%class.Handle = type { ptr }
%class.Handle.4 = type { ptr }
%class.Handle.11 = type { ptr }

@logger = external global ptr, align 8
@__FUNCTION__._ZN15Provider_SystemC2E6HandleINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE = external hidden unnamed_addr constant [16 x i8], align 1
@_ZTI6HandleI9ExceptionE = external dso_local constant { ptr, ptr }, align 8
@.str.2 = external hidden unnamed_addr constant [105 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [35 x i8], align 1
@__FUNCTION__._ZN15Provider_System13getCSRFromURIE6HandleINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEES7_ = external hidden unnamed_addr constant [14 x i8], align 1
@__FUNCTION__._ZN15Provider_System13getKeyFromURIE6HandleINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEES7_b = external hidden unnamed_addr constant [14 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [63 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [31 x i8], align 1

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

declare void @_ZN14LoggerFunctionC1EP6LoggerPKc(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef, ptr noundef) unnamed_addr #1

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) #2

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

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #3

declare void @_ZN6Logger5errorEPKcS1_z(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef, ptr noundef, ...) #1

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

declare void @_ZN9ExceptionC1EbPKciiS1_S1_6HandleIS_ES1_z(ptr noundef nonnull align 8 dereferenceable(176), i1 noundef zeroext, ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ...) unnamed_addr #1

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

declare ptr @__cxa_allocate_exception(i64)

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

declare void @__cxa_free_exception(ptr)

declare void @__cxa_throw(ptr, ptr, ptr)

; Function Attrs: nounwind memory(none)
declare i32 @llvm.eh.typeid.for.p0(ptr) #6

declare ptr @__cxa_begin_catch(ptr)

declare void @__cxa_end_catch()

; Function Attrs: noinline noreturn nounwind uwtable
declare hidden void @__clang_call_terminate(ptr noundef) #7

; Function Attrs: nounwind
declare void @_ZN14LoggerFunctionD1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #8

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

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

declare void @_ZN6Logger5writeEN11LoggerLevel12LOGGER_LEVELEPKcS3_z(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, ptr noundef, ptr noundef, ...) #1

declare ptr @BIO_new(ptr noundef) #1

declare ptr @BIO_s_file() #1

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

declare i32 @BIO_free(ptr noundef) #1

; Function Attrs: nounwind willreturn memory(read)
declare i32 @strcmp(ptr noundef, ptr noundef) #9

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN15Provider_System13getKeyFromURIE6HandleINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEES7_b(ptr dead_on_unwind noalias writable sret(%class.Handle.8) align 8 %0, ptr noundef %1, ptr noundef %2, i1 noundef zeroext %3) #4 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i8, align 1
  %9 = alloca %class.LoggerFunction, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca %class.Handle.4, align 8
  %13 = alloca %class.Handle.4, align 8
  %14 = alloca i1, align 1
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca %class.Handle.4, align 8
  %18 = alloca %class.Handle.4, align 8
  %19 = alloca i1, align 1
  %20 = alloca %class.Handle.4, align 8
  %21 = alloca %class.Handle.4, align 8
  %22 = alloca i1, align 1
  %23 = alloca %class.Handle.11, align 8
  %24 = alloca i1, align 1
  %25 = alloca ptr, align 8
  %26 = alloca %class.Handle.4, align 8
  %27 = alloca %class.Handle.4, align 8
  %28 = alloca i1, align 1
  store ptr %0, ptr %5, align 8
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  %29 = zext i1 %3 to i8
  store i8 %29, ptr %8, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #10
  %30 = load ptr, ptr @logger, align 8, !tbaa !5
  call void @_ZN14LoggerFunctionC1EP6LoggerPKc(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef %30, ptr noundef @__FUNCTION__._ZN15Provider_System13getKeyFromURIE6HandleINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEES7_b)
  %31 = load i8, ptr %8, align 1, !tbaa !9, !range !11, !noundef !12
  %32 = trunc i8 %31 to i1
  br i1 %32, label %33, label %73

33:                                               ; preds = %4
  %34 = load ptr, ptr @logger, align 8, !tbaa !5
  invoke void (ptr, ptr, ptr, ...) @_ZN6Logger5errorEPKcS1_z(ptr noundef nonnull align 8 dereferenceable(24) %34, ptr noundef @__FUNCTION__._ZN15Provider_System13getKeyFromURIE6HandleINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEES7_b, ptr noundef @.str.45)
          to label %35 unwind label %43

35:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #10
  %36 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 176) #11
          to label %37 unwind label %47

37:                                               ; preds = %35
  store i1 true, ptr %14, align 1
  invoke void @_ZN6HandleI9ExceptionEC2EPS0_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef null)
          to label %38 unwind label %51

38:                                               ; preds = %37
  invoke void (ptr, i1, ptr, i32, i32, ptr, ptr, ptr, ptr, ...) @_ZN9ExceptionC1EbPKciiS1_S1_6HandleIS_ES1_z(ptr noundef nonnull align 8 dereferenceable(176) %36, i1 noundef zeroext false, ptr noundef @.str.2, i32 noundef 529, i32 noundef 0, ptr noundef @__FUNCTION__._ZN15Provider_SystemC2E6HandleINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE, ptr noundef @__FUNCTION__._ZN15Provider_System13getKeyFromURIE6HandleINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEES7_b, ptr noundef %13, ptr noundef @.str.45)
          to label %39 unwind label %55

39:                                               ; preds = %38
  store i1 false, ptr %14, align 1
  invoke void @_ZN6HandleI9ExceptionEC2EPS0_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef %36)
          to label %40 unwind label %55

40:                                               ; preds = %39
  call void @_ZN6HandleI9ExceptionED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #10
  %41 = call ptr @__cxa_allocate_exception(i64 8) #10
  invoke void @_ZN6HandleI9ExceptionEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(8) %41, ptr noundef nonnull align 8 dereferenceable(8) %12)
          to label %42 unwind label %63

42:                                               ; preds = %40
  invoke void @__cxa_throw(ptr %41, ptr @_ZTI6HandleI9ExceptionE, ptr @_ZN6HandleI9ExceptionED2Ev) #12
          to label %285 unwind label %67

43:                                               ; preds = %33
  %44 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI6HandleI9ExceptionE
  %45 = extractvalue { ptr, i32 } %44, 0
  store ptr %45, ptr %10, align 8
  %46 = extractvalue { ptr, i32 } %44, 1
  store i32 %46, ptr %11, align 4
  br label %226

47:                                               ; preds = %35
  %48 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI6HandleI9ExceptionE
  %49 = extractvalue { ptr, i32 } %48, 0
  store ptr %49, ptr %10, align 8
  %50 = extractvalue { ptr, i32 } %48, 1
  store i32 %50, ptr %11, align 4
  br label %72

51:                                               ; preds = %37
  %52 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI6HandleI9ExceptionE
  %53 = extractvalue { ptr, i32 } %52, 0
  store ptr %53, ptr %10, align 8
  %54 = extractvalue { ptr, i32 } %52, 1
  store i32 %54, ptr %11, align 4
  br label %59

55:                                               ; preds = %39, %38
  %56 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI6HandleI9ExceptionE
  %57 = extractvalue { ptr, i32 } %56, 0
  store ptr %57, ptr %10, align 8
  %58 = extractvalue { ptr, i32 } %56, 1
  store i32 %58, ptr %11, align 4
  call void @_ZN6HandleI9ExceptionED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #10
  br label %59

59:                                               ; preds = %55, %51
  %60 = load i1, ptr %14, align 1
  br i1 %60, label %61, label %62

61:                                               ; preds = %59
  call void @_ZdlPvm(ptr noundef %36, i64 noundef 176) #13
  br label %62

62:                                               ; preds = %61, %59
  br label %72

63:                                               ; preds = %40
  %64 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI6HandleI9ExceptionE
  %65 = extractvalue { ptr, i32 } %64, 0
  store ptr %65, ptr %10, align 8
  %66 = extractvalue { ptr, i32 } %64, 1
  store i32 %66, ptr %11, align 4
  call void @__cxa_free_exception(ptr %41) #10
  br label %71

67:                                               ; preds = %42
  %68 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI6HandleI9ExceptionE
  %69 = extractvalue { ptr, i32 } %68, 0
  store ptr %69, ptr %10, align 8
  %70 = extractvalue { ptr, i32 } %68, 1
  store i32 %70, ptr %11, align 4
  br label %71

71:                                               ; preds = %67, %63
  call void @_ZN6HandleI9ExceptionED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #10
  br label %72

72:                                               ; preds = %71, %62, %47
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #10
  br label %226

73:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #10
  store ptr null, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #10
  store ptr null, ptr %16, align 8, !tbaa !5
  %74 = load ptr, ptr @logger, align 8, !tbaa !5
  invoke void (ptr, i32, ptr, ptr, ...) @_ZN6Logger5writeEN11LoggerLevel12LOGGER_LEVELEPKcS3_z(ptr noundef nonnull align 8 dereferenceable(24) %74, i32 noundef 32, ptr noundef @__FUNCTION__._ZN15Provider_System13getKeyFromURIE6HandleINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEES7_b, ptr noundef @.str.9)
          to label %75 unwind label %108

75:                                               ; preds = %73
  %76 = invoke ptr @BIO_s_file()
          to label %77 unwind label %108

77:                                               ; preds = %75
  %78 = invoke ptr @BIO_new(ptr noundef %76)
          to label %79 unwind label %108

79:                                               ; preds = %77
  store ptr %78, ptr %15, align 8, !tbaa !5
  %80 = load ptr, ptr @logger, align 8, !tbaa !5
  invoke void (ptr, i32, ptr, ptr, ...) @_ZN6Logger5writeEN11LoggerLevel12LOGGER_LEVELEPKcS3_z(ptr noundef nonnull align 8 dereferenceable(24) %80, i32 noundef 32, ptr noundef @__FUNCTION__._ZN15Provider_System13getKeyFromURIE6HandleINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEES7_b, ptr noundef @.str.10)
          to label %81 unwind label %108

81:                                               ; preds = %79
  %82 = load ptr, ptr %15, align 8, !tbaa !5
  %83 = invoke noundef ptr @_ZNK6HandleINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %1)
          to label %84 unwind label %108

84:                                               ; preds = %81
  %85 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %83) #10
  %86 = invoke i64 @BIO_ctrl(ptr noundef %82, i32 noundef 108, i64 noundef 3, ptr noundef %85)
          to label %87 unwind label %108

87:                                               ; preds = %84
  %88 = trunc i64 %86 to i32
  %89 = icmp sgt i32 %88, 0
  br i1 %89, label %90, label %162

90:                                               ; preds = %87
  %91 = load ptr, ptr @logger, align 8, !tbaa !5
  invoke void (ptr, i32, ptr, ptr, ...) @_ZN6Logger5writeEN11LoggerLevel12LOGGER_LEVELEPKcS3_z(ptr noundef nonnull align 8 dereferenceable(24) %91, i32 noundef 32, ptr noundef @__FUNCTION__._ZN15Provider_System13getKeyFromURIE6HandleINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEES7_b, ptr noundef @.str.39)
          to label %92 unwind label %108

92:                                               ; preds = %90
  %93 = load ptr, ptr %15, align 8, !tbaa !5
  %94 = invoke i64 @BIO_ctrl(ptr noundef %93, i32 noundef 128, i64 noundef 0, ptr noundef null)
          to label %95 unwind label %108

95:                                               ; preds = %92
  %96 = trunc i64 %94 to i32
  %97 = invoke noundef ptr @_ZNK6HandleINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %2)
          to label %98 unwind label %108

98:                                               ; preds = %95
  %99 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %97) #10
  %100 = call i32 @strcmp(ptr noundef %99, ptr noundef @.str.15) #14
  %101 = icmp eq i32 %100, 0
  br i1 %101, label %102, label %112

102:                                              ; preds = %98
  %103 = load ptr, ptr @logger, align 8, !tbaa !5
  invoke void (ptr, i32, ptr, ptr, ...) @_ZN6Logger5writeEN11LoggerLevel12LOGGER_LEVELEPKcS3_z(ptr noundef nonnull align 8 dereferenceable(24) %103, i32 noundef 32, ptr noundef @__FUNCTION__._ZN15Provider_System13getKeyFromURIE6HandleINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEES7_b, ptr noundef @.str.46)
          to label %104 unwind label %108

104:                                              ; preds = %102
  %105 = load ptr, ptr %15, align 8, !tbaa !5
  %106 = invoke ptr @PEM_read_bio_PrivateKey(ptr noundef %105, ptr noundef null, ptr noundef null, ptr noundef null)
          to label %107 unwind label %108

107:                                              ; preds = %104
  store ptr %106, ptr %16, align 8, !tbaa !5
  br label %161

108:                                              ; preds = %206, %170, %164, %162, %124, %120, %118, %112, %104, %102, %95, %92, %90, %84, %81, %79, %77, %75, %73
  %109 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI6HandleI9ExceptionE
  %110 = extractvalue { ptr, i32 } %109, 0
  store ptr %110, ptr %10, align 8
  %111 = extractvalue { ptr, i32 } %109, 1
  store i32 %111, ptr %11, align 4
  br label %225

112:                                              ; preds = %98
  %113 = invoke noundef ptr @_ZNK6HandleINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %2)
          to label %114 unwind label %108

114:                                              ; preds = %112
  %115 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %113) #10
  %116 = call i32 @strcmp(ptr noundef %115, ptr noundef @.str.19) #14
  %117 = icmp eq i32 %116, 0
  br i1 %117, label %118, label %124

118:                                              ; preds = %114
  %119 = load ptr, ptr @logger, align 8, !tbaa !5
  invoke void (ptr, i32, ptr, ptr, ...) @_ZN6Logger5writeEN11LoggerLevel12LOGGER_LEVELEPKcS3_z(ptr noundef nonnull align 8 dereferenceable(24) %119, i32 noundef 32, ptr noundef @__FUNCTION__._ZN15Provider_System13getKeyFromURIE6HandleINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEES7_b, ptr noundef @.str.47)
          to label %120 unwind label %108

120:                                              ; preds = %118
  %121 = load ptr, ptr %15, align 8, !tbaa !5
  %122 = invoke ptr @d2i_PKCS8PrivateKey_bio(ptr noundef %121, ptr noundef null, ptr noundef null, ptr noundef null)
          to label %123 unwind label %108

123:                                              ; preds = %120
  store ptr %122, ptr %16, align 8, !tbaa !5
  br label %160

124:                                              ; preds = %114
  %125 = load ptr, ptr @logger, align 8, !tbaa !5
  invoke void (ptr, ptr, ptr, ...) @_ZN6Logger5errorEPKcS1_z(ptr noundef nonnull align 8 dereferenceable(24) %125, ptr noundef @__FUNCTION__._ZN15Provider_System13getKeyFromURIE6HandleINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEES7_b, ptr noundef @.str.40)
          to label %126 unwind label %108

126:                                              ; preds = %124
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #10
  %127 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 176) #11
          to label %128 unwind label %134

128:                                              ; preds = %126
  store i1 true, ptr %19, align 1
  invoke void @_ZN6HandleI9ExceptionEC2EPS0_(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef null)
          to label %129 unwind label %138

129:                                              ; preds = %128
  invoke void (ptr, i1, ptr, i32, i32, ptr, ptr, ptr, ptr, ...) @_ZN9ExceptionC1EbPKciiS1_S1_6HandleIS_ES1_z(ptr noundef nonnull align 8 dereferenceable(176) %127, i1 noundef zeroext false, ptr noundef @.str.2, i32 noundef 550, i32 noundef 0, ptr noundef @__FUNCTION__._ZN15Provider_SystemC2E6HandleINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE, ptr noundef @__FUNCTION__._ZN15Provider_System13getKeyFromURIE6HandleINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEES7_b, ptr noundef %18, ptr noundef @.str.40)
          to label %130 unwind label %142

130:                                              ; preds = %129
  store i1 false, ptr %19, align 1
  invoke void @_ZN6HandleI9ExceptionEC2EPS0_(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef %127)
          to label %131 unwind label %142

131:                                              ; preds = %130
  call void @_ZN6HandleI9ExceptionED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %18) #10
  %132 = call ptr @__cxa_allocate_exception(i64 8) #10
  invoke void @_ZN6HandleI9ExceptionEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(8) %132, ptr noundef nonnull align 8 dereferenceable(8) %17)
          to label %133 unwind label %150

133:                                              ; preds = %131
  invoke void @__cxa_throw(ptr %132, ptr @_ZTI6HandleI9ExceptionE, ptr @_ZN6HandleI9ExceptionED2Ev) #12
          to label %285 unwind label %154

134:                                              ; preds = %126
  %135 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI6HandleI9ExceptionE
  %136 = extractvalue { ptr, i32 } %135, 0
  store ptr %136, ptr %10, align 8
  %137 = extractvalue { ptr, i32 } %135, 1
  store i32 %137, ptr %11, align 4
  br label %159

138:                                              ; preds = %128
  %139 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI6HandleI9ExceptionE
  %140 = extractvalue { ptr, i32 } %139, 0
  store ptr %140, ptr %10, align 8
  %141 = extractvalue { ptr, i32 } %139, 1
  store i32 %141, ptr %11, align 4
  br label %146

142:                                              ; preds = %130, %129
  %143 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI6HandleI9ExceptionE
  %144 = extractvalue { ptr, i32 } %143, 0
  store ptr %144, ptr %10, align 8
  %145 = extractvalue { ptr, i32 } %143, 1
  store i32 %145, ptr %11, align 4
  call void @_ZN6HandleI9ExceptionED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %18) #10
  br label %146

146:                                              ; preds = %142, %138
  %147 = load i1, ptr %19, align 1
  br i1 %147, label %148, label %149

148:                                              ; preds = %146
  call void @_ZdlPvm(ptr noundef %127, i64 noundef 176) #13
  br label %149

149:                                              ; preds = %148, %146
  br label %159

150:                                              ; preds = %131
  %151 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI6HandleI9ExceptionE
  %152 = extractvalue { ptr, i32 } %151, 0
  store ptr %152, ptr %10, align 8
  %153 = extractvalue { ptr, i32 } %151, 1
  store i32 %153, ptr %11, align 4
  call void @__cxa_free_exception(ptr %132) #10
  br label %158

154:                                              ; preds = %133
  %155 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI6HandleI9ExceptionE
  %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 %158

158:                                              ; preds = %154, %150
  call void @_ZN6HandleI9ExceptionED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %17) #10
  br label %159

159:                                              ; preds = %158, %149, %134
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #10
  br label %225

160:                                              ; preds = %123
  br label %161

161:                                              ; preds = %160, %107
  br label %162

162:                                              ; preds = %161, %87
  %163 = load ptr, ptr @logger, align 8, !tbaa !5
  invoke void (ptr, i32, ptr, ptr, ...) @_ZN6Logger5writeEN11LoggerLevel12LOGGER_LEVELEPKcS3_z(ptr noundef nonnull align 8 dereferenceable(24) %163, i32 noundef 32, ptr noundef @__FUNCTION__._ZN15Provider_System13getKeyFromURIE6HandleINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEES7_b, ptr noundef @.str.11)
          to label %164 unwind label %108

164:                                              ; preds = %162
  %165 = load ptr, ptr %15, align 8, !tbaa !5
  %166 = invoke i32 @BIO_free(ptr noundef %165)
          to label %167 unwind label %108

167:                                              ; preds = %164
  %168 = load ptr, ptr %16, align 8, !tbaa !5
  %169 = icmp ne ptr %168, null
  br i1 %169, label %206, label %170

170:                                              ; preds = %167
  %171 = load ptr, ptr @logger, align 8, !tbaa !5
  invoke void (ptr, ptr, ptr, ...) @_ZN6Logger5errorEPKcS1_z(ptr noundef nonnull align 8 dereferenceable(24) %171, ptr noundef @__FUNCTION__._ZN15Provider_System13getKeyFromURIE6HandleINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEES7_b, ptr noundef @.str.48)
          to label %172 unwind label %108

172:                                              ; preds = %170
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #10
  %173 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 176) #11
          to label %174 unwind label %180

174:                                              ; preds = %172
  store i1 true, ptr %22, align 1
  invoke void @_ZN6HandleI9ExceptionEC2EPS0_(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef null)
          to label %175 unwind label %184

175:                                              ; preds = %174
  invoke void (ptr, i1, ptr, i32, i32, ptr, ptr, ptr, ptr, ...) @_ZN9ExceptionC1EbPKciiS1_S1_6HandleIS_ES1_z(ptr noundef nonnull align 8 dereferenceable(176) %173, i1 noundef zeroext false, ptr noundef @.str.2, i32 noundef 558, i32 noundef 0, ptr noundef @__FUNCTION__._ZN15Provider_SystemC2E6HandleINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE, ptr noundef @__FUNCTION__._ZN15Provider_System13getKeyFromURIE6HandleINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEES7_b, ptr noundef %21, ptr noundef @.str.48)
          to label %176 unwind label %188

176:                                              ; preds = %175
  store i1 false, ptr %22, align 1
  invoke void @_ZN6HandleI9ExceptionEC2EPS0_(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef %173)
          to label %177 unwind label %188

177:                                              ; preds = %176
  call void @_ZN6HandleI9ExceptionED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %21) #10
  %178 = call ptr @__cxa_allocate_exception(i64 8) #10
  invoke void @_ZN6HandleI9ExceptionEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(8) %178, ptr noundef nonnull align 8 dereferenceable(8) %20)
          to label %179 unwind label %196

179:                                              ; preds = %177
  invoke void @__cxa_throw(ptr %178, ptr @_ZTI6HandleI9ExceptionE, ptr @_ZN6HandleI9ExceptionED2Ev) #12
          to label %285 unwind label %200

180:                                              ; preds = %172
  %181 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI6HandleI9ExceptionE
  %182 = extractvalue { ptr, i32 } %181, 0
  store ptr %182, ptr %10, align 8
  %183 = extractvalue { ptr, i32 } %181, 1
  store i32 %183, ptr %11, align 4
  br label %205

184:                                              ; preds = %174
  %185 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI6HandleI9ExceptionE
  %186 = extractvalue { ptr, i32 } %185, 0
  store ptr %186, ptr %10, align 8
  %187 = extractvalue { ptr, i32 } %185, 1
  store i32 %187, ptr %11, align 4
  br label %192

188:                                              ; preds = %176, %175
  %189 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI6HandleI9ExceptionE
  %190 = extractvalue { ptr, i32 } %189, 0
  store ptr %190, ptr %10, align 8
  %191 = extractvalue { ptr, i32 } %189, 1
  store i32 %191, ptr %11, align 4
  call void @_ZN6HandleI9ExceptionED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %21) #10
  br label %192

192:                                              ; preds = %188, %184
  %193 = load i1, ptr %22, align 1
  br i1 %193, label %194, label %195

194:                                              ; preds = %192
  call void @_ZdlPvm(ptr noundef %173, i64 noundef 176) #13
  br label %195

195:                                              ; preds = %194, %192
  br label %205

196:                                              ; preds = %177
  %197 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI6HandleI9ExceptionE
  %198 = extractvalue { ptr, i32 } %197, 0
  store ptr %198, ptr %10, align 8
  %199 = extractvalue { ptr, i32 } %197, 1
  store i32 %199, ptr %11, align 4
  call void @__cxa_free_exception(ptr %178) #10
  br label %204

200:                                              ; preds = %179
  %201 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI6HandleI9ExceptionE
  %202 = extractvalue { ptr, i32 } %201, 0
  store ptr %202, ptr %10, align 8
  %203 = extractvalue { ptr, i32 } %201, 1
  store i32 %203, ptr %11, align 4
  br label %204

204:                                              ; preds = %200, %196
  call void @_ZN6HandleI9ExceptionED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %20) #10
  br label %205

205:                                              ; preds = %204, %195, %180
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #10
  br label %225

206:                                              ; preds = %167
  %207 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 16) #11
          to label %208 unwind label %108

208:                                              ; preds = %206
  store i1 true, ptr %24, align 1
  %209 = load ptr, ptr %16, align 8, !tbaa !5
  invoke void @_ZN6HandleI7SObjectEC2EPS0_(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef null)
          to label %210 unwind label %213

210:                                              ; preds = %208
  invoke void @_ZN3KeyC2EP11evp_pkey_st6HandleI7SObjectE(ptr noundef nonnull align 8 dereferenceable(16) %207, ptr noundef %209, ptr noundef %23)
          to label %211 unwind label %217

211:                                              ; preds = %210
  store i1 false, ptr %24, align 1
  invoke void @_ZN6HandleI3KeyEC2EPS0_(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef %207)
          to label %212 unwind label %217

212:                                              ; preds = %211
  call void @_ZN6HandleI7SObjectED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %23) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #10
  call void @_ZN14LoggerFunctionD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #10
  ret void

213:                                              ; preds = %208
  %214 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI6HandleI9ExceptionE
  %215 = extractvalue { ptr, i32 } %214, 0
  store ptr %215, ptr %10, align 8
  %216 = extractvalue { ptr, i32 } %214, 1
  store i32 %216, ptr %11, align 4
  br label %221

217:                                              ; preds = %211, %210
  %218 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI6HandleI9ExceptionE
  %219 = extractvalue { ptr, i32 } %218, 0
  store ptr %219, ptr %10, align 8
  %220 = extractvalue { ptr, i32 } %218, 1
  store i32 %220, ptr %11, align 4
  call void @_ZN6HandleI7SObjectED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %23) #10
  br label %221

221:                                              ; preds = %217, %213
  %222 = load i1, ptr %24, align 1
  br i1 %222, label %223, label %224

223:                                              ; preds = %221
  call void @_ZdlPvm(ptr noundef %207, i64 noundef 16) #13
  br label %224

224:                                              ; preds = %223, %221
  br label %225

225:                                              ; preds = %224, %205, %159, %108
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #10
  br label %226

226:                                              ; preds = %225, %72, %43
  %227 = load i32, ptr %11, align 4
  %228 = call i32 @llvm.eh.typeid.for.p0(ptr @_ZTI6HandleI9ExceptionE) #10
  %229 = icmp eq i32 %227, %228
  br i1 %229, label %230, label %276

230:                                              ; preds = %226
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #10
  %231 = load ptr, ptr %10, align 8
  %232 = call ptr @__cxa_begin_catch(ptr %231) #10
  store ptr %232, ptr %25, align 8
  %233 = load ptr, ptr @logger, align 8, !tbaa !5
  invoke void (ptr, ptr, ptr, ...) @_ZN6Logger5errorEPKcS1_z(ptr noundef nonnull align 8 dereferenceable(24) %233, ptr noundef @__FUNCTION__._ZN15Provider_System13getKeyFromURIE6HandleINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEES7_b, ptr noundef @__FUNCTION__._ZN15Provider_System13getCSRFromURIE6HandleINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEES7_)
          to label %234 unwind label %243

234:                                              ; preds = %230
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #10
  %235 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 176) #11
          to label %236 unwind label %247

236:                                              ; preds = %234
  store i1 true, ptr %28, align 1
  %237 = load ptr, ptr %25, align 8, !tbaa !5
  invoke void @_ZN6HandleI9ExceptionEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(8) %27, ptr noundef nonnull align 8 dereferenceable(8) %237)
          to label %238 unwind label %251

238:                                              ; preds = %236
  invoke void (ptr, i1, ptr, i32, i32, ptr, ptr, ptr, ptr, ...) @_ZN9ExceptionC1EbPKciiS1_S1_6HandleIS_ES1_z(ptr noundef nonnull align 8 dereferenceable(176) %235, i1 noundef zeroext false, ptr noundef @.str.2, i32 noundef 565, i32 noundef 0, ptr noundef @__FUNCTION__._ZN15Provider_SystemC2E6HandleINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE, ptr noundef @__FUNCTION__._ZN15Provider_System13getKeyFromURIE6HandleINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEES7_b, ptr noundef %27, ptr noundef @__FUNCTION__._ZN15Provider_System13getCSRFromURIE6HandleINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEES7_)
          to label %239 unwind label %255

239:                                              ; preds = %238
  store i1 false, ptr %28, align 1
  invoke void @_ZN6HandleI9ExceptionEC2EPS0_(ptr noundef nonnull align 8 dereferenceable(8) %26, ptr noundef %235)
          to label %240 unwind label %255

240:                                              ; preds = %239
  call void @_ZN6HandleI9ExceptionED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %27) #10
  %241 = call ptr @__cxa_allocate_exception(i64 8) #10
  invoke void @_ZN6HandleI9ExceptionEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(8) %241, ptr noundef nonnull align 8 dereferenceable(8) %26)
          to label %242 unwind label %263

242:                                              ; preds = %240
  invoke void @__cxa_throw(ptr %241, ptr @_ZTI6HandleI9ExceptionE, ptr @_ZN6HandleI9ExceptionED2Ev) #12
          to label %285 unwind label %267

243:                                              ; preds = %230
  %244 = landingpad { ptr, i32 }
          cleanup
  %245 = extractvalue { ptr, i32 } %244, 0
  store ptr %245, ptr %10, align 8
  %246 = extractvalue { ptr, i32 } %244, 1
  store i32 %246, ptr %11, align 4
  br label %273

247:                                              ; preds = %234
  %248 = landingpad { ptr, i32 }
          cleanup
  %249 = extractvalue { ptr, i32 } %248, 0
  store ptr %249, ptr %10, align 8
  %250 = extractvalue { ptr, i32 } %248, 1
  store i32 %250, ptr %11, align 4
  br label %272

251:                                              ; preds = %236
  %252 = landingpad { ptr, i32 }
          cleanup
  %253 = extractvalue { ptr, i32 } %252, 0
  store ptr %253, ptr %10, align 8
  %254 = extractvalue { ptr, i32 } %252, 1
  store i32 %254, ptr %11, align 4
  br label %259

255:                                              ; preds = %239, %238
  %256 = landingpad { ptr, i32 }
          cleanup
  %257 = extractvalue { ptr, i32 } %256, 0
  store ptr %257, ptr %10, align 8
  %258 = extractvalue { ptr, i32 } %256, 1
  store i32 %258, ptr %11, align 4
  call void @_ZN6HandleI9ExceptionED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %27) #10
  br label %259

259:                                              ; preds = %255, %251
  %260 = load i1, ptr %28, align 1
  br i1 %260, label %261, label %262

261:                                              ; preds = %259
  call void @_ZdlPvm(ptr noundef %235, i64 noundef 176) #13
  br label %262

262:                                              ; preds = %261, %259
  br label %272

263:                                              ; preds = %240
  %264 = landingpad { ptr, i32 }
          cleanup
  %265 = extractvalue { ptr, i32 } %264, 0
  store ptr %265, ptr %10, align 8
  %266 = extractvalue { ptr, i32 } %264, 1
  store i32 %266, ptr %11, align 4
  call void @__cxa_free_exception(ptr %241) #10
  br label %271

267:                                              ; preds = %242
  %268 = landingpad { ptr, i32 }
          cleanup
  %269 = extractvalue { ptr, i32 } %268, 0
  store ptr %269, ptr %10, align 8
  %270 = extractvalue { ptr, i32 } %268, 1
  store i32 %270, ptr %11, align 4
  br label %271

271:                                              ; preds = %267, %263
  call void @_ZN6HandleI9ExceptionED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %26) #10
  br label %272

272:                                              ; preds = %271, %262, %247
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #10
  br label %273

273:                                              ; preds = %272, %243
  invoke void @__cxa_end_catch()
          to label %274 unwind label %282

274:                                              ; preds = %273
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #10
  br label %276

275:                                              ; No predecessors!
  unreachable

276:                                              ; preds = %274, %226
  call void @_ZN14LoggerFunctionD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #10
  br label %277

277:                                              ; preds = %276
  %278 = load ptr, ptr %10, align 8
  %279 = load i32, ptr %11, align 4
  %280 = insertvalue { ptr, i32 } poison, ptr %278, 0
  %281 = insertvalue { ptr, i32 } %280, i32 %279, 1
  resume { ptr, i32 } %281

282:                                              ; preds = %273
  %283 = landingpad { ptr, i32 }
          catch ptr null
  %284 = extractvalue { ptr, i32 } %283, 0
  call void @__clang_call_terminate(ptr %284) #15
  unreachable

285:                                              ; preds = %242, %179, %133, %42
  unreachable
}

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3KeyC2EP11evp_pkey_st6HandleI7SObjectE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef, ptr noundef) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6HandleI3KeyEC2EPS0_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) unnamed_addr #4 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 = { nobuiltin allocsize(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 = { nobuiltin 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 #4 = { 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 #5 = { 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 #6 = { nounwind memory(none) }
attributes #7 = { noinline noreturn nounwind uwtable "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 #8 = { 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 #9 = { nounwind willreturn memory(read) "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 #10 = { nounwind }
attributes #11 = { builtin allocsize(0) }
attributes #12 = { noreturn }
attributes #13 = { builtin nounwind }
attributes #14 = { nounwind willreturn memory(read) }
attributes #15 = { noreturn 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 = !{!"bool", !7, i64 0}
!11 = !{i8 0, i8 2}
!12 = !{}


; 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.Handle.8 = type { ptr }
%class.LoggerFunction = type { %class.Handle, ptr }
%class.Handle = type { ptr }
%class.Handle.4 = type { ptr }
%class.Handle.11 = type { ptr }

@logger = external local_unnamed_addr global ptr, align 8
@__FUNCTION__._ZN15Provider_SystemC2E6HandleINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE = external hidden unnamed_addr constant [16 x i8], align 1
@_ZTI6HandleI9ExceptionE = external dso_local constant { ptr, ptr }, align 8
@.str.2 = external hidden unnamed_addr constant [105 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [35 x i8], align 1
@__FUNCTION__._ZN15Provider_System13getCSRFromURIE6HandleINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEES7_ = external hidden unnamed_addr constant [14 x i8], align 1
@__FUNCTION__._ZN15Provider_System13getKeyFromURIE6HandleINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEES7_b = external hidden unnamed_addr constant [14 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [63 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [31 x i8], align 1

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

declare void @_ZN14LoggerFunctionC1EP6LoggerPKc(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef, ptr noundef) unnamed_addr #1

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) local_unnamed_addr #2

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

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) local_unnamed_addr #3

declare void @_ZN6Logger5errorEPKcS1_z(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef, ptr noundef, ...) local_unnamed_addr #1

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

declare void @_ZN9ExceptionC1EbPKciiS1_S1_6HandleIS_ES1_z(ptr noundef nonnull align 8 dereferenceable(176), i1 noundef zeroext, ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ...) unnamed_addr #1

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

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

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

declare void @__cxa_throw(ptr, ptr, ptr) local_unnamed_addr

; Function Attrs: nofree nosync nounwind memory(none)
declare i32 @llvm.eh.typeid.for.p0(ptr) #6

declare ptr @__cxa_begin_catch(ptr) local_unnamed_addr

declare void @__cxa_end_catch() local_unnamed_addr

; Function Attrs: noinline noreturn nounwind uwtable
declare hidden void @__clang_call_terminate(ptr noundef) local_unnamed_addr #7

; Function Attrs: nounwind
declare void @_ZN14LoggerFunctionD1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #8

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

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

declare void @_ZN6Logger5writeEN11LoggerLevel12LOGGER_LEVELEPKcS3_z(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, ptr noundef, ptr noundef, ...) local_unnamed_addr #1

declare ptr @BIO_new(ptr noundef) local_unnamed_addr #1

declare ptr @BIO_s_file() local_unnamed_addr #1

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

declare i32 @BIO_free(ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i32 @strcmp(ptr nocapture noundef, ptr nocapture noundef) local_unnamed_addr #9

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN15Provider_System13getKeyFromURIE6HandleINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEES7_b(ptr dead_on_unwind noalias writable sret(%class.Handle.8) align 8 %0, ptr noundef %1, ptr noundef %2, i1 noundef zeroext %3) local_unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %class.LoggerFunction, align 8
  %6 = alloca %class.Handle.4, align 8
  %7 = alloca %class.Handle.4, align 8
  %8 = alloca %class.Handle.4, align 8
  %9 = alloca %class.Handle.4, align 8
  %10 = alloca %class.Handle.4, align 8
  %11 = alloca %class.Handle.4, align 8
  %12 = alloca %class.Handle.11, align 8
  %13 = alloca %class.Handle.4, align 8
  %14 = alloca %class.Handle.4, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #10
  %15 = load ptr, ptr @logger, align 8, !tbaa !5
  call void @_ZN14LoggerFunctionC1EP6LoggerPKc(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef %15, ptr noundef nonnull @__FUNCTION__._ZN15Provider_System13getKeyFromURIE6HandleINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEES7_b)
  %16 = load ptr, ptr @logger, align 8, !tbaa !5
  br i1 %3, label %17, label %37

17:                                               ; preds = %4
  invoke void (ptr, ptr, ptr, ...) @_ZN6Logger5errorEPKcS1_z(ptr noundef nonnull align 8 dereferenceable(24) %16, ptr noundef nonnull @__FUNCTION__._ZN15Provider_System13getKeyFromURIE6HandleINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEES7_b, ptr noundef nonnull @.str.45)
          to label %18 unwind label %26

18:                                               ; preds = %17
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #10
  %19 = invoke noalias noundef nonnull dereferenceable(176) ptr @_Znwm(i64 noundef 176) #11
          to label %20 unwind label %28

20:                                               ; preds = %18
  invoke void @_ZN6HandleI9ExceptionEC2EPS0_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef null)
          to label %21 unwind label %.thread

21:                                               ; preds = %20
  invoke void (ptr, i1, ptr, i32, i32, ptr, ptr, ptr, ptr, ...) @_ZN9ExceptionC1EbPKciiS1_S1_6HandleIS_ES1_z(ptr noundef nonnull align 8 dereferenceable(176) %19, i1 noundef zeroext false, ptr noundef nonnull @.str.2, i32 noundef 529, i32 noundef 0, ptr noundef nonnull @__FUNCTION__._ZN15Provider_SystemC2E6HandleINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE, ptr noundef nonnull @__FUNCTION__._ZN15Provider_System13getKeyFromURIE6HandleINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEES7_b, ptr noundef nonnull %7, ptr noundef nonnull @.str.45)
          to label %23 unwind label %.thread60

.thread60:                                        ; preds = %21
  %22 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI6HandleI9ExceptionE
  call void @_ZN6HandleI9ExceptionED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #10
  br label %33

23:                                               ; preds = %21
  invoke void @_ZN6HandleI9ExceptionEC2EPS0_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull %19)
          to label %24 unwind label %31

24:                                               ; preds = %23
  call void @_ZN6HandleI9ExceptionED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #10
  %25 = call ptr @__cxa_allocate_exception(i64 8) #10
  call void @_ZN6HandleI9ExceptionEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(8) %25, ptr noundef nonnull align 8 dereferenceable(8) %6)
  invoke void @__cxa_throw(ptr nonnull %25, ptr nonnull @_ZTI6HandleI9ExceptionE, ptr nonnull @_ZN6HandleI9ExceptionED2Ev) #12
          to label %159 unwind label %34

26:                                               ; preds = %17
  %27 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI6HandleI9ExceptionE
  br label %131

28:                                               ; preds = %18
  %29 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI6HandleI9ExceptionE
  br label %36

.thread:                                          ; preds = %20
  %30 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI6HandleI9ExceptionE
  br label %33

31:                                               ; preds = %23
  %32 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI6HandleI9ExceptionE
  call void @_ZN6HandleI9ExceptionED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #10
  br label %36

33:                                               ; preds = %.thread60, %.thread
  %.pn4959 = phi { ptr, i32 } [ %30, %.thread ], [ %22, %.thread60 ]
  call void @_ZdlPvm(ptr noundef nonnull %19, i64 noundef 176) #13
  br label %36

34:                                               ; preds = %24
  %35 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI6HandleI9ExceptionE
  call void @_ZN6HandleI9ExceptionED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #10
  br label %36

36:                                               ; preds = %31, %33, %34, %28
  %.pn51 = phi { ptr, i32 } [ %35, %34 ], [ %.pn4959, %33 ], [ %32, %31 ], [ %29, %28 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #10
  br label %131

37:                                               ; preds = %4
  invoke void (ptr, i32, ptr, ptr, ...) @_ZN6Logger5writeEN11LoggerLevel12LOGGER_LEVELEPKcS3_z(ptr noundef nonnull align 8 dereferenceable(24) %16, i32 noundef 32, ptr noundef nonnull @__FUNCTION__._ZN15Provider_System13getKeyFromURIE6HandleINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEES7_b, ptr noundef nonnull @.str.9)
          to label %38 unwind label %66

38:                                               ; preds = %37
  %39 = invoke ptr @BIO_s_file()
          to label %40 unwind label %66

40:                                               ; preds = %38
  %41 = invoke ptr @BIO_new(ptr noundef %39)
          to label %42 unwind label %66

42:                                               ; preds = %40
  %43 = load ptr, ptr @logger, align 8, !tbaa !5
  invoke void (ptr, i32, ptr, ptr, ...) @_ZN6Logger5writeEN11LoggerLevel12LOGGER_LEVELEPKcS3_z(ptr noundef nonnull align 8 dereferenceable(24) %43, i32 noundef 32, ptr noundef nonnull @__FUNCTION__._ZN15Provider_System13getKeyFromURIE6HandleINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEES7_b, ptr noundef nonnull @.str.10)
          to label %44 unwind label %66

44:                                               ; preds = %42
  %45 = invoke noundef ptr @_ZNK6HandleINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %1)
          to label %46 unwind label %66

46:                                               ; preds = %44
  %47 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %45) #10
  %48 = invoke i64 @BIO_ctrl(ptr noundef %41, i32 noundef 108, i64 noundef 3, ptr noundef %47)
          to label %49 unwind label %66

49:                                               ; preds = %46
  %50 = trunc i64 %48 to i32
  %51 = icmp sgt i32 %50, 0
  br i1 %51, label %52, label %96

52:                                               ; preds = %49
  %53 = load ptr, ptr @logger, align 8, !tbaa !5
  invoke void (ptr, i32, ptr, ptr, ...) @_ZN6Logger5writeEN11LoggerLevel12LOGGER_LEVELEPKcS3_z(ptr noundef nonnull align 8 dereferenceable(24) %53, i32 noundef 32, ptr noundef nonnull @__FUNCTION__._ZN15Provider_System13getKeyFromURIE6HandleINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEES7_b, ptr noundef nonnull @.str.39)
          to label %54 unwind label %66

54:                                               ; preds = %52
  %55 = invoke i64 @BIO_ctrl(ptr noundef %41, i32 noundef 128, i64 noundef 0, ptr noundef null)
          to label %56 unwind label %66

56:                                               ; preds = %54
  %57 = invoke noundef ptr @_ZNK6HandleINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %2)
          to label %58 unwind label %66

58:                                               ; preds = %56
  %59 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %57) #10
  %60 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %59, ptr noundef nonnull dereferenceable(1) @.str.15) #14
  %61 = icmp eq i32 %60, 0
  br i1 %61, label %62, label %68

62:                                               ; preds = %58
  %63 = load ptr, ptr @logger, align 8, !tbaa !5
  invoke void (ptr, i32, ptr, ptr, ...) @_ZN6Logger5writeEN11LoggerLevel12LOGGER_LEVELEPKcS3_z(ptr noundef nonnull align 8 dereferenceable(24) %63, i32 noundef 32, ptr noundef nonnull @__FUNCTION__._ZN15Provider_System13getKeyFromURIE6HandleINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEES7_b, ptr noundef nonnull @.str.46)
          to label %64 unwind label %66

64:                                               ; preds = %62
  %65 = invoke ptr @PEM_read_bio_PrivateKey(ptr noundef %41, ptr noundef null, ptr noundef null, ptr noundef null)
          to label %96 unwind label %66

66:                                               ; preds = %120, %101, %98, %96, %78, %76, %75, %68, %64, %62, %56, %54, %52, %46, %44, %42, %40, %38, %37
  %67 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI6HandleI9ExceptionE
  br label %131

68:                                               ; preds = %58
  %69 = invoke noundef ptr @_ZNK6HandleINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %2)
          to label %70 unwind label %66

70:                                               ; preds = %68
  %71 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %69) #10
  %72 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %71, ptr noundef nonnull dereferenceable(1) @.str.19) #14
  %73 = icmp eq i32 %72, 0
  %74 = load ptr, ptr @logger, align 8, !tbaa !5
  br i1 %73, label %75, label %78

75:                                               ; preds = %70
  invoke void (ptr, i32, ptr, ptr, ...) @_ZN6Logger5writeEN11LoggerLevel12LOGGER_LEVELEPKcS3_z(ptr noundef nonnull align 8 dereferenceable(24) %74, i32 noundef 32, ptr noundef nonnull @__FUNCTION__._ZN15Provider_System13getKeyFromURIE6HandleINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEES7_b, ptr noundef nonnull @.str.47)
          to label %76 unwind label %66

76:                                               ; preds = %75
  %77 = invoke ptr @d2i_PKCS8PrivateKey_bio(ptr noundef %41, ptr noundef null, ptr noundef null, ptr noundef null)
          to label %96 unwind label %66

78:                                               ; preds = %70
  invoke void (ptr, ptr, ptr, ...) @_ZN6Logger5errorEPKcS1_z(ptr noundef nonnull align 8 dereferenceable(24) %74, ptr noundef nonnull @__FUNCTION__._ZN15Provider_System13getKeyFromURIE6HandleINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEES7_b, ptr noundef nonnull @.str.40)
          to label %79 unwind label %66

79:                                               ; preds = %78
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #10
  %80 = invoke noalias noundef nonnull dereferenceable(176) ptr @_Znwm(i64 noundef 176) #11
          to label %81 unwind label %87

81:                                               ; preds = %79
  invoke void @_ZN6HandleI9ExceptionEC2EPS0_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef null)
          to label %82 unwind label %.thread62

82:                                               ; preds = %81
  invoke void (ptr, i1, ptr, i32, i32, ptr, ptr, ptr, ptr, ...) @_ZN9ExceptionC1EbPKciiS1_S1_6HandleIS_ES1_z(ptr noundef nonnull align 8 dereferenceable(176) %80, i1 noundef zeroext false, ptr noundef nonnull @.str.2, i32 noundef 550, i32 noundef 0, ptr noundef nonnull @__FUNCTION__._ZN15Provider_SystemC2E6HandleINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE, ptr noundef nonnull @__FUNCTION__._ZN15Provider_System13getKeyFromURIE6HandleINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEES7_b, ptr noundef nonnull %9, ptr noundef nonnull @.str.40)
          to label %84 unwind label %.thread66

.thread66:                                        ; preds = %82
  %83 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI6HandleI9ExceptionE
  call void @_ZN6HandleI9ExceptionED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #10
  br label %92

84:                                               ; preds = %82
  invoke void @_ZN6HandleI9ExceptionEC2EPS0_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull %80)
          to label %85 unwind label %90

85:                                               ; preds = %84
  call void @_ZN6HandleI9ExceptionED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #10
  %86 = call ptr @__cxa_allocate_exception(i64 8) #10
  call void @_ZN6HandleI9ExceptionEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(8) %86, ptr noundef nonnull align 8 dereferenceable(8) %8)
  invoke void @__cxa_throw(ptr nonnull %86, ptr nonnull @_ZTI6HandleI9ExceptionE, ptr nonnull @_ZN6HandleI9ExceptionED2Ev) #12
          to label %159 unwind label %93

87:                                               ; preds = %79
  %88 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI6HandleI9ExceptionE
  br label %95

.thread62:                                        ; preds = %81
  %89 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI6HandleI9ExceptionE
  br label %92

90:                                               ; preds = %84
  %91 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI6HandleI9ExceptionE
  call void @_ZN6HandleI9ExceptionED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #10
  br label %95

92:                                               ; preds = %.thread66, %.thread62
  %.pn65 = phi { ptr, i32 } [ %89, %.thread62 ], [ %83, %.thread66 ]
  call void @_ZdlPvm(ptr noundef nonnull %80, i64 noundef 176) #13
  br label %95

93:                                               ; preds = %85
  %94 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI6HandleI9ExceptionE
  call void @_ZN6HandleI9ExceptionED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #10
  br label %95

95:                                               ; preds = %90, %92, %93, %87
  %.pn40 = phi { ptr, i32 } [ %94, %93 ], [ %.pn65, %92 ], [ %91, %90 ], [ %88, %87 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #10
  br label %131

96:                                               ; preds = %76, %64, %49
  %.024 = phi ptr [ null, %49 ], [ %65, %64 ], [ %77, %76 ]
  %97 = load ptr, ptr @logger, align 8, !tbaa !5
  invoke void (ptr, i32, ptr, ptr, ...) @_ZN6Logger5writeEN11LoggerLevel12LOGGER_LEVELEPKcS3_z(ptr noundef nonnull align 8 dereferenceable(24) %97, i32 noundef 32, ptr noundef nonnull @__FUNCTION__._ZN15Provider_System13getKeyFromURIE6HandleINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEES7_b, ptr noundef nonnull @.str.11)
          to label %98 unwind label %66

98:                                               ; preds = %96
  %99 = invoke i32 @BIO_free(ptr noundef %41)
          to label %100 unwind label %66

100:                                              ; preds = %98
  %.not = icmp eq ptr %.024, null
  br i1 %.not, label %101, label %120

101:                                              ; preds = %100
  %102 = load ptr, ptr @logger, align 8, !tbaa !5
  invoke void (ptr, ptr, ptr, ...) @_ZN6Logger5errorEPKcS1_z(ptr noundef nonnull align 8 dereferenceable(24) %102, ptr noundef nonnull @__FUNCTION__._ZN15Provider_System13getKeyFromURIE6HandleINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEES7_b, ptr noundef nonnull @.str.48)
          to label %103 unwind label %66

103:                                              ; preds = %101
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #10
  %104 = invoke noalias noundef nonnull dereferenceable(176) ptr @_Znwm(i64 noundef 176) #11
          to label %105 unwind label %111

105:                                              ; preds = %103
  invoke void @_ZN6HandleI9ExceptionEC2EPS0_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef null)
          to label %106 unwind label %.thread68

106:                                              ; preds = %105
  invoke void (ptr, i1, ptr, i32, i32, ptr, ptr, ptr, ptr, ...) @_ZN9ExceptionC1EbPKciiS1_S1_6HandleIS_ES1_z(ptr noundef nonnull align 8 dereferenceable(176) %104, i1 noundef zeroext false, ptr noundef nonnull @.str.2, i32 noundef 558, i32 noundef 0, ptr noundef nonnull @__FUNCTION__._ZN15Provider_SystemC2E6HandleINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE, ptr noundef nonnull @__FUNCTION__._ZN15Provider_System13getKeyFromURIE6HandleINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEES7_b, ptr noundef nonnull %11, ptr noundef nonnull @.str.48)
          to label %108 unwind label %.thread72

.thread72:                                        ; preds = %106
  %107 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI6HandleI9ExceptionE
  call void @_ZN6HandleI9ExceptionED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #10
  br label %116

108:                                              ; preds = %106
  invoke void @_ZN6HandleI9ExceptionEC2EPS0_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull %104)
          to label %109 unwind label %114

109:                                              ; preds = %108
  call void @_ZN6HandleI9ExceptionED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #10
  %110 = call ptr @__cxa_allocate_exception(i64 8) #10
  call void @_ZN6HandleI9ExceptionEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(8) %110, ptr noundef nonnull align 8 dereferenceable(8) %10)
  invoke void @__cxa_throw(ptr nonnull %110, ptr nonnull @_ZTI6HandleI9ExceptionE, ptr nonnull @_ZN6HandleI9ExceptionED2Ev) #12
          to label %159 unwind label %117

111:                                              ; preds = %103
  %112 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI6HandleI9ExceptionE
  br label %119

.thread68:                                        ; preds = %105
  %113 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI6HandleI9ExceptionE
  br label %116

114:                                              ; preds = %108
  %115 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI6HandleI9ExceptionE
  call void @_ZN6HandleI9ExceptionED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #10
  br label %119

116:                                              ; preds = %.thread72, %.thread68
  %.pn4271 = phi { ptr, i32 } [ %113, %.thread68 ], [ %107, %.thread72 ]
  call void @_ZdlPvm(ptr noundef nonnull %104, i64 noundef 176) #13
  br label %119

117:                                              ; preds = %109
  %118 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI6HandleI9ExceptionE
  call void @_ZN6HandleI9ExceptionED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #10
  br label %119

119:                                              ; preds = %114, %116, %117, %111
  %.pn44 = phi { ptr, i32 } [ %118, %117 ], [ %.pn4271, %116 ], [ %115, %114 ], [ %112, %111 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #10
  br label %131

120:                                              ; preds = %100
  %121 = invoke noalias noundef nonnull dereferenceable(16) ptr @_Znwm(i64 noundef 16) #11
          to label %122 unwind label %66

122:                                              ; preds = %120
  invoke void @_ZN6HandleI7SObjectEC2EPS0_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef null)
          to label %123 unwind label %.thread74

123:                                              ; preds = %122
  invoke void @_ZN3KeyC2EP11evp_pkey_st6HandleI7SObjectE(ptr noundef nonnull align 8 dereferenceable(16) %121, ptr noundef nonnull %.024, ptr noundef nonnull %12)
          to label %125 unwind label %.thread78

.thread78:                                        ; preds = %123
  %124 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI6HandleI9ExceptionE
  call void @_ZN6HandleI7SObjectED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #10
  br label %130

125:                                              ; preds = %123
  invoke void @_ZN6HandleI3KeyEC2EPS0_(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull %121)
          to label %126 unwind label %128

126:                                              ; preds = %125
  call void @_ZN6HandleI7SObjectED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #10
  call void @_ZN14LoggerFunctionD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #10
  ret void

.thread74:                                        ; preds = %122
  %127 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI6HandleI9ExceptionE
  br label %130

128:                                              ; preds = %125
  %129 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI6HandleI9ExceptionE
  call void @_ZN6HandleI7SObjectED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #10
  br label %131

130:                                              ; preds = %.thread78, %.thread74
  %.pn4677 = phi { ptr, i32 } [ %127, %.thread74 ], [ %124, %.thread78 ]
  call void @_ZdlPvm(ptr noundef nonnull %121, i64 noundef 16) #13
  br label %131

131:                                              ; preds = %128, %66, %95, %119, %130, %36, %26
  %.pn51.pn = phi { ptr, i32 } [ %.pn51, %36 ], [ %27, %26 ], [ %.pn4677, %130 ], [ %129, %128 ], [ %67, %66 ], [ %.pn44, %119 ], [ %.pn40, %95 ]
  %.835 = extractvalue { ptr, i32 } %.pn51.pn, 1
  %132 = call i32 @llvm.eh.typeid.for.p0(ptr nonnull @_ZTI6HandleI9ExceptionE) #10
  %133 = icmp eq i32 %.835, %132
  br i1 %133, label %134, label %155

134:                                              ; preds = %131
  %.8 = extractvalue { ptr, i32 } %.pn51.pn, 0
  %135 = call ptr @__cxa_begin_catch(ptr %.8) #10
  %136 = load ptr, ptr @logger, align 8, !tbaa !5
  invoke void (ptr, ptr, ptr, ...) @_ZN6Logger5errorEPKcS1_z(ptr noundef nonnull align 8 dereferenceable(24) %136, ptr noundef nonnull @__FUNCTION__._ZN15Provider_System13getKeyFromURIE6HandleINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEES7_b, ptr noundef nonnull @__FUNCTION__._ZN15Provider_System13getCSRFromURIE6HandleINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEES7_)
          to label %137 unwind label %143

137:                                              ; preds = %134
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #10
  %138 = invoke noalias noundef nonnull dereferenceable(176) ptr @_Znwm(i64 noundef 176) #11
          to label %139 unwind label %145

139:                                              ; preds = %137
  call void @_ZN6HandleI9ExceptionEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %135)
  invoke void (ptr, i1, ptr, i32, i32, ptr, ptr, ptr, ptr, ...) @_ZN9ExceptionC1EbPKciiS1_S1_6HandleIS_ES1_z(ptr noundef nonnull align 8 dereferenceable(176) %138, i1 noundef zeroext false, ptr noundef nonnull @.str.2, i32 noundef 565, i32 noundef 0, ptr noundef nonnull @__FUNCTION__._ZN15Provider_SystemC2E6HandleINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE, ptr noundef nonnull @__FUNCTION__._ZN15Provider_System13getKeyFromURIE6HandleINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEES7_b, ptr noundef nonnull %14, ptr noundef nonnull @__FUNCTION__._ZN15Provider_System13getCSRFromURIE6HandleINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEES7_)
          to label %140 unwind label %149

140:                                              ; preds = %139
  invoke void @_ZN6HandleI9ExceptionEC2EPS0_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull %138)
          to label %141 unwind label %147

141:                                              ; preds = %140
  call void @_ZN6HandleI9ExceptionED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #10
  %142 = call ptr @__cxa_allocate_exception(i64 8) #10
  call void @_ZN6HandleI9ExceptionEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(8) %142, ptr noundef nonnull align 8 dereferenceable(8) %13)
  invoke void @__cxa_throw(ptr nonnull %142, ptr nonnull @_ZTI6HandleI9ExceptionE, ptr nonnull @_ZN6HandleI9ExceptionED2Ev) #12
          to label %159 unwind label %151

143:                                              ; preds = %134
  %144 = landingpad { ptr, i32 }
          cleanup
  br label %154

145:                                              ; preds = %137
  %146 = landingpad { ptr, i32 }
          cleanup
  br label %153

147:                                              ; preds = %140
  %148 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6HandleI9ExceptionED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #10
  br label %153

149:                                              ; preds = %139
  %150 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6HandleI9ExceptionED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #10
  call void @_ZdlPvm(ptr noundef nonnull %138, i64 noundef 176) #13
  br label %153

151:                                              ; preds = %141
  %152 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6HandleI9ExceptionED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #10
  br label %153

153:                                              ; preds = %147, %149, %151, %145
  %.pn54 = phi { ptr, i32 } [ %152, %151 ], [ %150, %149 ], [ %148, %147 ], [ %146, %145 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #10
  br label %154

154:                                              ; preds = %153, %143
  %.pn54.pn = phi { ptr, i32 } [ %.pn54, %153 ], [ %144, %143 ]
  invoke void @__cxa_end_catch()
          to label %155 unwind label %156

155:                                              ; preds = %154, %131
  %.merged = phi { ptr, i32 } [ %.pn51.pn, %131 ], [ %.pn54.pn, %154 ]
  call void @_ZN14LoggerFunctionD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #10
  resume { ptr, i32 } %.merged

156:                                              ; preds = %154
  %157 = landingpad { ptr, i32 }
          catch ptr null
  %158 = extractvalue { ptr, i32 } %157, 0
  call void @__clang_call_terminate(ptr %158) #15
  unreachable

159:                                              ; preds = %141, %109, %85, %24
  unreachable
}

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3KeyC2EP11evp_pkey_st6HandleI7SObjectE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef, ptr noundef) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6HandleI3KeyEC2EPS0_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) unnamed_addr #4 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 = { nobuiltin allocsize(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 = { nobuiltin 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 #4 = { 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 #5 = { 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 #6 = { nofree nosync nounwind memory(none) }
attributes #7 = { noinline noreturn nounwind uwtable "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 #8 = { 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 #9 = { mustprogress nofree nounwind willreturn memory(argmem: read) "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 #10 = { nounwind }
attributes #11 = { builtin allocsize(0) }
attributes #12 = { noreturn }
attributes #13 = { builtin nounwind }
attributes #14 = { nounwind willreturn memory(read) }
attributes #15 = { noreturn nounwind }

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

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


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,SROAPass,SimplifyCFGPass