; LLVM IR from Trusted-eSign/trusted-crypto :: deps/wrapper/src/pki/algs.ll (ZN19AlgorithmCollection4pushE6HandleI9AlgorithmE)

; 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.0 = type { ptr }
%class.LoggerFunction = type { %class.Handle, ptr }
%class.Handle = type { ptr }
%class.Handle.1 = type { ptr }
%class.Handle.3 = type { ptr }

@logger = external global ptr, align 8
@__FUNCTION__._ZN19AlgorithmCollection4pushE6HandleI9AlgorithmE = external hidden unnamed_addr constant [5 x i8], align 1
@_ZTI6HandleI9ExceptionE = external dso_local constant { ptr, ptr }, align 8
@.str.2 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [92 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [19 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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN9SSLObjectI19stack_st_X509_ALGORE6handleEv(ptr dead_on_unwind noalias writable sret(%class.Handle.0) align 8, ptr noundef nonnull align 8 dereferenceable(16)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6HandleI9AlgorithmEC2EPS0_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) unnamed_addr #2 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: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #6

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN19AlgorithmCollection4pushE6HandleI9AlgorithmE(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef %1) #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %class.LoggerFunction, align 8
  %6 = alloca %class.Handle.1, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca %class.Handle.1, align 8
  %10 = alloca %class.Handle.3, align 8
  %11 = alloca %class.Handle.3, align 8
  %12 = alloca %class.Handle.3, align 8
  %13 = alloca i1, align 1
  %14 = alloca %class.Handle.0, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %15 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %5) #10
  %16 = load ptr, ptr @logger, align 8, !tbaa !5
  call void @_ZN14LoggerFunctionC1EP6LoggerPKc(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef %16, ptr noundef @__FUNCTION__._ZN19AlgorithmCollection4pushE6HandleI9AlgorithmE)
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #10
  invoke void @_ZN6HandleI9AlgorithmEC2EPS0_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef null)
          to label %17 unwind label %23

17:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #10
  %18 = invoke noundef ptr @_ZNK6HandleI9AlgorithmEptEv(ptr noundef nonnull align 8 dereferenceable(8) %1)
          to label %19 unwind label %27

19:                                               ; preds = %17
  invoke void @_ZN9Algorithm9duplicateEv(ptr dead_on_unwind writable sret(%class.Handle.1) align 8 %9, ptr noundef nonnull align 8 dereferenceable(16) %18)
          to label %20 unwind label %27

20:                                               ; preds = %19
  %21 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6HandleI9AlgorithmEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %22 unwind label %31

22:                                               ; preds = %20
  call void @_ZN6HandleI9AlgorithmED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #10
  br label %86

23:                                               ; preds = %2
  %24 = landingpad { ptr, i32 }
          cleanup
  %25 = extractvalue { ptr, i32 } %24, 0
  store ptr %25, ptr %7, align 8
  %26 = extractvalue { ptr, i32 } %24, 1
  store i32 %26, ptr %8, align 4
  br label %121

27:                                               ; preds = %19, %17
  %28 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI6HandleI9ExceptionE
  %29 = extractvalue { ptr, i32 } %28, 0
  store ptr %29, ptr %7, align 8
  %30 = extractvalue { ptr, i32 } %28, 1
  store i32 %30, ptr %8, align 4
  br label %35

31:                                               ; preds = %20
  %32 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI6HandleI9ExceptionE
  %33 = extractvalue { ptr, i32 } %32, 0
  store ptr %33, ptr %7, align 8
  %34 = extractvalue { ptr, i32 } %32, 1
  store i32 %34, ptr %8, align 4
  call void @_ZN6HandleI9AlgorithmED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #10
  br label %35

35:                                               ; preds = %31, %27
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #10
  br label %36

36:                                               ; preds = %35
  %37 = load i32, ptr %8, align 4
  %38 = call i32 @llvm.eh.typeid.for.p0(ptr @_ZTI6HandleI9ExceptionE) #10
  %39 = icmp eq i32 %37, %38
  br i1 %39, label %40, label %120

40:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #10
  %41 = load ptr, ptr %7, align 8
  %42 = call ptr @__cxa_get_exception_ptr(ptr %41) #10
  invoke void @_ZN6HandleI9ExceptionEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %42)
          to label %43 unwind label %127

43:                                               ; preds = %40
  %44 = call ptr @__cxa_begin_catch(ptr %41) #10
  %45 = load ptr, ptr @logger, align 8, !tbaa !5
  invoke void (ptr, ptr, ptr, ...) @_ZN6Logger5errorEPKcS1_z(ptr noundef nonnull align 8 dereferenceable(24) %45, ptr noundef @__FUNCTION__._ZN19AlgorithmCollection4pushE6HandleI9AlgorithmE, ptr noundef @.str.2)
          to label %46 unwind label %54

46:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #10
  %47 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 176) #11
          to label %48 unwind label %58

48:                                               ; preds = %46
  store i1 true, ptr %13, align 1
  invoke void @_ZN6HandleI9ExceptionEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %10)
          to label %49 unwind label %62

49:                                               ; preds = %48
  invoke void (ptr, i1, ptr, i32, i32, ptr, ptr, ptr, ptr, ...) @_ZN9ExceptionC1EbPKciiS1_S1_6HandleIS_ES1_z(ptr noundef nonnull align 8 dereferenceable(176) %47, i1 noundef zeroext false, ptr noundef @.str.3, i32 noundef 31, i32 noundef 0, ptr noundef @.str.4, ptr noundef @__FUNCTION__._ZN19AlgorithmCollection4pushE6HandleI9AlgorithmE, ptr noundef %12, ptr noundef @.str.2)
          to label %50 unwind label %66

50:                                               ; preds = %49
  store i1 false, ptr %13, align 1
  invoke void @_ZN6HandleI9ExceptionEC2EPS0_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef %47)
          to label %51 unwind label %66

51:                                               ; preds = %50
  call void @_ZN6HandleI9ExceptionED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #10
  %52 = call ptr @__cxa_allocate_exception(i64 8) #10
  invoke void @_ZN6HandleI9ExceptionEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(8) %52, ptr noundef nonnull align 8 dereferenceable(8) %11)
          to label %53 unwind label %74

53:                                               ; preds = %51
  invoke void @__cxa_throw(ptr %52, ptr @_ZTI6HandleI9ExceptionE, ptr @_ZN6HandleI9ExceptionED2Ev) #12
          to label %130 unwind label %78

54:                                               ; preds = %43
  %55 = landingpad { ptr, i32 }
          cleanup
  %56 = extractvalue { ptr, i32 } %55, 0
  store ptr %56, ptr %7, align 8
  %57 = extractvalue { ptr, i32 } %55, 1
  store i32 %57, ptr %8, align 4
  br label %84

58:                                               ; preds = %46
  %59 = landingpad { ptr, i32 }
          cleanup
  %60 = extractvalue { ptr, i32 } %59, 0
  store ptr %60, ptr %7, align 8
  %61 = extractvalue { ptr, i32 } %59, 1
  store i32 %61, ptr %8, align 4
  br label %83

62:                                               ; preds = %48
  %63 = landingpad { ptr, i32 }
          cleanup
  %64 = extractvalue { ptr, i32 } %63, 0
  store ptr %64, ptr %7, align 8
  %65 = extractvalue { ptr, i32 } %63, 1
  store i32 %65, ptr %8, align 4
  br label %70

66:                                               ; preds = %50, %49
  %67 = landingpad { ptr, i32 }
          cleanup
  %68 = extractvalue { ptr, i32 } %67, 0
  store ptr %68, ptr %7, align 8
  %69 = extractvalue { ptr, i32 } %67, 1
  store i32 %69, ptr %8, align 4
  call void @_ZN6HandleI9ExceptionED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #10
  br label %70

70:                                               ; preds = %66, %62
  %71 = load i1, ptr %13, align 1
  br i1 %71, label %72, label %73

72:                                               ; preds = %70
  call void @_ZdlPvm(ptr noundef %47, i64 noundef 176) #13
  br label %73

73:                                               ; preds = %72, %70
  br label %83

74:                                               ; preds = %51
  %75 = landingpad { ptr, i32 }
          cleanup
  %76 = extractvalue { ptr, i32 } %75, 0
  store ptr %76, ptr %7, align 8
  %77 = extractvalue { ptr, i32 } %75, 1
  store i32 %77, ptr %8, align 4
  call void @__cxa_free_exception(ptr %52) #10
  br label %82

78:                                               ; preds = %53
  %79 = landingpad { ptr, i32 }
          cleanup
  %80 = extractvalue { ptr, i32 } %79, 0
  store ptr %80, ptr %7, align 8
  %81 = extractvalue { ptr, i32 } %79, 1
  store i32 %81, ptr %8, align 4
  br label %82

82:                                               ; preds = %78, %74
  call void @_ZN6HandleI9ExceptionED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #10
  br label %83

83:                                               ; preds = %82, %73, %58
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #10
  br label %84

84:                                               ; preds = %83, %54
  call void @_ZN6HandleI9ExceptionED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #10
  invoke void @__cxa_end_catch()
          to label %85 unwind label %127

85:                                               ; preds = %84
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #10
  br label %120

86:                                               ; preds = %22
  %87 = invoke noundef zeroext i1 @_ZN9SSLObjectI19stack_st_X509_ALGORE7isEmptyEv(ptr noundef nonnull align 8 dereferenceable(16) %15)
          to label %88 unwind label %93

88:                                               ; preds = %86
  br i1 %87, label %89, label %97

89:                                               ; preds = %88
  %90 = invoke ptr @OPENSSL_sk_new_null()
          to label %91 unwind label %93

91:                                               ; preds = %89
  invoke void @_ZN9SSLObjectI19stack_st_X509_ALGORE7setDataEPS0_(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef %90)
          to label %92 unwind label %93

92:                                               ; preds = %91
  br label %97

93:                                               ; preds = %113, %111, %109, %107, %105, %103, %101, %99, %97, %91, %89, %86
  %94 = landingpad { ptr, i32 }
          cleanup
  %95 = extractvalue { ptr, i32 } %94, 0
  store ptr %95, ptr %7, align 8
  %96 = extractvalue { ptr, i32 } %94, 1
  store i32 %96, ptr %8, align 4
  br label %120

97:                                               ; preds = %92, %88
  %98 = load ptr, ptr @logger, align 8, !tbaa !5
  invoke void (ptr, i32, ptr, ptr, ...) @_ZN6Logger5writeEN11LoggerLevel12LOGGER_LEVELEPKcS3_z(ptr noundef nonnull align 8 dereferenceable(24) %98, i32 noundef 32, ptr noundef @__FUNCTION__._ZN19AlgorithmCollection4pushE6HandleI9AlgorithmE, ptr noundef @.str.5)
          to label %99 unwind label %93

99:                                               ; preds = %97
  %100 = invoke noundef ptr @_ZN9SSLObjectI19stack_st_X509_ALGORE8internalEv(ptr noundef nonnull align 8 dereferenceable(16) %15)
          to label %101 unwind label %93

101:                                              ; preds = %99
  %102 = invoke noundef ptr @_ZL29ossl_check_X509_ALGOR_sk_typeP19stack_st_X509_ALGOR(ptr noundef %100)
          to label %103 unwind label %93

103:                                              ; preds = %101
  %104 = invoke noundef ptr @_ZNK6HandleI9AlgorithmEptEv(ptr noundef nonnull align 8 dereferenceable(8) %6)
          to label %105 unwind label %93

105:                                              ; preds = %103
  %106 = invoke noundef ptr @_ZN9SSLObjectI13X509_algor_stE8internalEv(ptr noundef nonnull align 8 dereferenceable(16) %104)
          to label %107 unwind label %93

107:                                              ; preds = %105
  %108 = invoke noundef ptr @_ZL26ossl_check_X509_ALGOR_typeP13X509_algor_st(ptr noundef %106)
          to label %109 unwind label %93

109:                                              ; preds = %107
  %110 = invoke i32 @OPENSSL_sk_push(ptr noundef %102, ptr noundef %108)
          to label %111 unwind label %93

111:                                              ; preds = %109
  %112 = invoke noundef ptr @_ZNK6HandleI9AlgorithmEptEv(ptr noundef nonnull align 8 dereferenceable(8) %6)
          to label %113 unwind label %93

113:                                              ; preds = %111
  invoke void @_ZN9SSLObjectI19stack_st_X509_ALGORE6handleEv(ptr dead_on_unwind writable sret(%class.Handle.0) align 8 %14, ptr noundef nonnull align 8 dereferenceable(16) %15)
          to label %114 unwind label %93

114:                                              ; preds = %113
  invoke void @_ZN9SSLObjectI13X509_algor_stE9setParentE6HandleI7SObjectE(ptr noundef nonnull align 8 dereferenceable(16) %112, ptr noundef %14)
          to label %115 unwind label %116

115:                                              ; preds = %114
  call void @_ZN6HandleI7SObjectED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #10
  call void @_ZN6HandleI9AlgorithmED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #10
  call void @_ZN14LoggerFunctionD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %5) #10
  ret void

116:                                              ; preds = %114
  %117 = landingpad { ptr, i32 }
          cleanup
  %118 = extractvalue { ptr, i32 } %117, 0
  store ptr %118, ptr %7, align 8
  %119 = extractvalue { ptr, i32 } %117, 1
  store i32 %119, ptr %8, align 4
  call void @_ZN6HandleI7SObjectED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #10
  br label %120

120:                                              ; preds = %116, %93, %85, %36
  call void @_ZN6HandleI9AlgorithmED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #10
  br label %121

121:                                              ; preds = %120, %23
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #10
  call void @_ZN14LoggerFunctionD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %5) #10
  br label %122

122:                                              ; preds = %121
  %123 = load ptr, ptr %7, align 8
  %124 = load i32, ptr %8, align 4
  %125 = insertvalue { ptr, i32 } poison, ptr %123, 0
  %126 = insertvalue { ptr, i32 } %125, i32 %124, 1
  resume { ptr, i32 } %126

127:                                              ; preds = %84, %40
  %128 = landingpad { ptr, i32 }
          catch ptr null
  %129 = extractvalue { ptr, i32 } %128, 0
  call void @__clang_call_terminate(ptr %129) #14
  unreachable

130:                                              ; preds = %53
  unreachable
}

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

declare void @_ZN9Algorithm9duplicateEv(ptr dead_on_unwind writable sret(%class.Handle.1) align 8, ptr noundef nonnull align 8 dereferenceable(16)) #1

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

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

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

declare ptr @__cxa_get_exception_ptr(ptr)

; 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

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

declare ptr @__cxa_begin_catch(ptr)

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

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 uwtable
declare dso_local void @_ZN6HandleI9ExceptionEC2EPS0_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) unnamed_addr #2 align 2

; 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)

declare void @__cxa_free_exception(ptr)

declare void @__cxa_throw(ptr, ptr, ptr)

declare void @__cxa_end_catch()

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

declare ptr @OPENSSL_sk_new_null() #1

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef ptr @_ZL29ossl_check_X509_ALGOR_sk_typeP19stack_st_X509_ALGOR(ptr noundef) #9

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef ptr @_ZL26ossl_check_X509_ALGOR_typeP13X509_algor_st(ptr noundef) #9

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN9SSLObjectI13X509_algor_stE9setParentE6HandleI7SObjectE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) #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 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 = { 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 = { 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 #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 = { 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 #7 = { nounwind memory(none) }
attributes #8 = { 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 #9 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #10 = { nounwind }
attributes #11 = { builtin allocsize(0) }
attributes #12 = { noreturn }
attributes #13 = { builtin nounwind }
attributes #14 = { 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"}


; 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.0 = type { ptr }
%class.LoggerFunction = type { %class.Handle, ptr }
%class.Handle = type { ptr }
%class.Handle.1 = type { ptr }
%class.Handle.3 = type { ptr }

@logger = external local_unnamed_addr global ptr, align 8
@__FUNCTION__._ZN19AlgorithmCollection4pushE6HandleI9AlgorithmE = external hidden unnamed_addr constant [5 x i8], align 1
@_ZTI6HandleI9ExceptionE = external dso_local constant { ptr, ptr }, align 8
@.str.2 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [92 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [19 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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

; 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 allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN9SSLObjectI19stack_st_X509_ALGORE6handleEv(ptr dead_on_unwind noalias writable sret(%class.Handle.0) align 8, ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6HandleI9AlgorithmEC2EPS0_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) unnamed_addr #2 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: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) local_unnamed_addr #6

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN19AlgorithmCollection4pushE6HandleI9AlgorithmE(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef %1) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %class.LoggerFunction, align 8
  %4 = alloca %class.Handle.1, align 8
  %5 = alloca %class.Handle.1, align 8
  %6 = alloca %class.Handle.3, align 8
  %7 = alloca %class.Handle.3, align 8
  %8 = alloca %class.Handle.3, align 8
  %9 = alloca %class.Handle.0, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #10
  %10 = load ptr, ptr @logger, align 8, !tbaa !5
  call void @_ZN14LoggerFunctionC1EP6LoggerPKc(ptr noundef nonnull align 8 dereferenceable(16) %3, ptr noundef %10, ptr noundef nonnull @__FUNCTION__._ZN19AlgorithmCollection4pushE6HandleI9AlgorithmE)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #10
  invoke void @_ZN6HandleI9AlgorithmEC2EPS0_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef null)
          to label %11 unwind label %17

11:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #10
  %12 = invoke noundef ptr @_ZNK6HandleI9AlgorithmEptEv(ptr noundef nonnull align 8 dereferenceable(8) %1)
          to label %13 unwind label %21

13:                                               ; preds = %11
  invoke void @_ZN9Algorithm9duplicateEv(ptr dead_on_unwind nonnull writable sret(%class.Handle.1) align 8 %5, ptr noundef nonnull align 8 dereferenceable(16) %12)
          to label %14 unwind label %21

14:                                               ; preds = %13
  %15 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6HandleI9AlgorithmEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5)
  call void @_ZN6HandleI9AlgorithmED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #10
  %16 = invoke noundef zeroext i1 @_ZN9SSLObjectI19stack_st_X509_ALGORE7isEmptyEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
          to label %50 unwind label %54

17:                                               ; preds = %2
  %18 = landingpad { ptr, i32 }
          cleanup
  %19 = extractvalue { ptr, i32 } %18, 0
  %20 = extractvalue { ptr, i32 } %18, 1
  br label %80

21:                                               ; preds = %13, %11
  %22 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI6HandleI9ExceptionE
  %23 = extractvalue { ptr, i32 } %22, 0
  %24 = extractvalue { ptr, i32 } %22, 1
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #10
  %25 = call i32 @llvm.eh.typeid.for.p0(ptr nonnull @_ZTI6HandleI9ExceptionE) #10
  %26 = icmp eq i32 %24, %25
  br i1 %26, label %27, label %79

27:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #10
  %28 = call ptr @__cxa_get_exception_ptr(ptr %23) #10
  call void @_ZN6HandleI9ExceptionEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %28)
  %29 = call ptr @__cxa_begin_catch(ptr %23) #10
  %30 = load ptr, ptr @logger, align 8, !tbaa !5
  invoke void (ptr, ptr, ptr, ...) @_ZN6Logger5errorEPKcS1_z(ptr noundef nonnull align 8 dereferenceable(24) %30, ptr noundef nonnull @__FUNCTION__._ZN19AlgorithmCollection4pushE6HandleI9AlgorithmE, ptr noundef nonnull @.str.2)
          to label %31 unwind label %37

31:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #10
  %32 = invoke noalias noundef nonnull dereferenceable(176) ptr @_Znwm(i64 noundef 176) #11
          to label %33 unwind label %39

33:                                               ; preds = %31
  call void @_ZN6HandleI9ExceptionEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %6)
  invoke void (ptr, i1, ptr, i32, i32, ptr, ptr, ptr, ptr, ...) @_ZN9ExceptionC1EbPKciiS1_S1_6HandleIS_ES1_z(ptr noundef nonnull align 8 dereferenceable(176) %32, i1 noundef zeroext false, ptr noundef nonnull @.str.3, i32 noundef 31, i32 noundef 0, ptr noundef nonnull @.str.4, ptr noundef nonnull @__FUNCTION__._ZN19AlgorithmCollection4pushE6HandleI9AlgorithmE, ptr noundef nonnull %8, ptr noundef nonnull @.str.2)
          to label %34 unwind label %43

34:                                               ; preds = %33
  invoke void @_ZN6HandleI9ExceptionEC2EPS0_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull %32)
          to label %35 unwind label %41

35:                                               ; preds = %34
  call void @_ZN6HandleI9ExceptionED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #10
  %36 = call ptr @__cxa_allocate_exception(i64 8) #10
  call void @_ZN6HandleI9ExceptionEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(8) %36, ptr noundef nonnull align 8 dereferenceable(8) %7)
  invoke void @__cxa_throw(ptr nonnull %36, ptr nonnull @_ZTI6HandleI9ExceptionE, ptr nonnull @_ZN6HandleI9ExceptionED2Ev) #12
          to label %86 unwind label %45

37:                                               ; preds = %27
  %38 = landingpad { ptr, i32 }
          cleanup
  br label %48

39:                                               ; preds = %31
  %40 = landingpad { ptr, i32 }
          cleanup
  br label %47

41:                                               ; preds = %34
  %42 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6HandleI9ExceptionED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #10
  br label %47

43:                                               ; preds = %33
  %44 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6HandleI9ExceptionED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #10
  call void @_ZdlPvm(ptr noundef nonnull %32, i64 noundef 176) #13
  br label %47

45:                                               ; preds = %35
  %46 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6HandleI9ExceptionED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #10
  br label %47

47:                                               ; preds = %41, %43, %45, %39
  %.pn = phi { ptr, i32 } [ %46, %45 ], [ %44, %43 ], [ %42, %41 ], [ %40, %39 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #10
  br label %48

48:                                               ; preds = %47, %37
  %.pn.pn = phi { ptr, i32 } [ %.pn, %47 ], [ %38, %37 ]
  call void @_ZN6HandleI9ExceptionED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #10
  invoke void @__cxa_end_catch()
          to label %49 unwind label %83

49:                                               ; preds = %48
  %.1 = extractvalue { ptr, i32 } %.pn.pn, 1
  %.17 = extractvalue { ptr, i32 } %.pn.pn, 0
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #10
  br label %79

50:                                               ; preds = %14
  br i1 %16, label %51, label %58

51:                                               ; preds = %50
  %52 = invoke ptr @OPENSSL_sk_new_null()
          to label %53 unwind label %54

53:                                               ; preds = %51
  invoke void @_ZN9SSLObjectI19stack_st_X509_ALGORE7setDataEPS0_(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef %52)
          to label %58 unwind label %54

54:                                               ; preds = %72, %70, %67, %65, %62, %60, %58, %53, %51, %14
  %55 = landingpad { ptr, i32 }
          cleanup
  %56 = extractvalue { ptr, i32 } %55, 0
  %57 = extractvalue { ptr, i32 } %55, 1
  br label %79

58:                                               ; preds = %53, %50
  %59 = load ptr, ptr @logger, align 8, !tbaa !5
  invoke void (ptr, i32, ptr, ptr, ...) @_ZN6Logger5writeEN11LoggerLevel12LOGGER_LEVELEPKcS3_z(ptr noundef nonnull align 8 dereferenceable(24) %59, i32 noundef 32, ptr noundef nonnull @__FUNCTION__._ZN19AlgorithmCollection4pushE6HandleI9AlgorithmE, ptr noundef nonnull @.str.5)
          to label %60 unwind label %54

60:                                               ; preds = %58
  %61 = invoke noundef ptr @_ZN9SSLObjectI19stack_st_X509_ALGORE8internalEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
          to label %62 unwind label %54

62:                                               ; preds = %60
  %63 = call noundef ptr @_ZL29ossl_check_X509_ALGOR_sk_typeP19stack_st_X509_ALGOR(ptr noundef %61)
  %64 = invoke noundef ptr @_ZNK6HandleI9AlgorithmEptEv(ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %65 unwind label %54

65:                                               ; preds = %62
  %66 = invoke noundef ptr @_ZN9SSLObjectI13X509_algor_stE8internalEv(ptr noundef nonnull align 8 dereferenceable(16) %64)
          to label %67 unwind label %54

67:                                               ; preds = %65
  %68 = call noundef ptr @_ZL26ossl_check_X509_ALGOR_typeP13X509_algor_st(ptr noundef %66)
  %69 = invoke i32 @OPENSSL_sk_push(ptr noundef %63, ptr noundef %68)
          to label %70 unwind label %54

70:                                               ; preds = %67
  %71 = invoke noundef ptr @_ZNK6HandleI9AlgorithmEptEv(ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %72 unwind label %54

72:                                               ; preds = %70
  invoke void @_ZN9SSLObjectI19stack_st_X509_ALGORE6handleEv(ptr dead_on_unwind nonnull writable sret(%class.Handle.0) align 8 %9, ptr noundef nonnull align 8 dereferenceable(16) %0)
          to label %73 unwind label %54

73:                                               ; preds = %72
  invoke void @_ZN9SSLObjectI13X509_algor_stE9setParentE6HandleI7SObjectE(ptr noundef nonnull align 8 dereferenceable(16) %71, ptr noundef nonnull %9)
          to label %74 unwind label %75

74:                                               ; preds = %73
  call void @_ZN6HandleI7SObjectED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #10
  call void @_ZN6HandleI9AlgorithmED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #10
  call void @_ZN14LoggerFunctionD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %3) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #10
  ret void

75:                                               ; preds = %73
  %76 = landingpad { ptr, i32 }
          cleanup
  %77 = extractvalue { ptr, i32 } %76, 0
  %78 = extractvalue { ptr, i32 } %76, 1
  call void @_ZN6HandleI7SObjectED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #10
  br label %79

79:                                               ; preds = %75, %54, %49, %21
  %.28 = phi ptr [ %77, %75 ], [ %56, %54 ], [ %.17, %49 ], [ %23, %21 ]
  %.2 = phi i32 [ %78, %75 ], [ %57, %54 ], [ %.1, %49 ], [ %24, %21 ]
  call void @_ZN6HandleI9AlgorithmED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #10
  br label %80

80:                                               ; preds = %79, %17
  %.39 = phi ptr [ %.28, %79 ], [ %19, %17 ]
  %.3 = phi i32 [ %.2, %79 ], [ %20, %17 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #10
  call void @_ZN14LoggerFunctionD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %3) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #10
  %81 = insertvalue { ptr, i32 } poison, ptr %.39, 0
  %82 = insertvalue { ptr, i32 } %81, i32 %.3, 1
  resume { ptr, i32 } %82

83:                                               ; preds = %48
  %84 = landingpad { ptr, i32 }
          catch ptr null
  %85 = extractvalue { ptr, i32 } %84, 0
  call void @__clang_call_terminate(ptr %85) #14
  unreachable

86:                                               ; preds = %35
  unreachable
}

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

declare void @_ZN9Algorithm9duplicateEv(ptr dead_on_unwind writable sret(%class.Handle.1) align 8, ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #1

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

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

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

declare ptr @__cxa_get_exception_ptr(ptr) 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

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

declare ptr @__cxa_begin_catch(ptr) local_unnamed_addr

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

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 uwtable
declare dso_local void @_ZN6HandleI9ExceptionEC2EPS0_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) unnamed_addr #2 align 2

; 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

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

declare void @__cxa_end_catch() local_unnamed_addr

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

declare ptr @OPENSSL_sk_new_null() local_unnamed_addr #1

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef ptr @_ZL29ossl_check_X509_ALGOR_sk_typeP19stack_st_X509_ALGOR(ptr noundef) local_unnamed_addr #9

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef ptr @_ZL26ossl_check_X509_ALGOR_typeP13X509_algor_st(ptr noundef) local_unnamed_addr #9

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN9SSLObjectI13X509_algor_stE9setParentE6HandleI7SObjectE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) local_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 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 = { 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 = { 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 #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 = { 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 #7 = { nofree nosync nounwind memory(none) }
attributes #8 = { 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 #9 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #10 = { nounwind }
attributes #11 = { builtin allocsize(0) }
attributes #12 = { noreturn }
attributes #13 = { builtin nounwind }
attributes #14 = { 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,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,SROAPass,SimplifyCFGPass