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

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

@logger = external global ptr, align 8
@__FUNCTION__._ZN5Chain10buildChainE6HandleI11CertificateES0_I21CertificateCollectionE = external hidden unnamed_addr constant [11 x i8], align 1
@_ZTI6HandleI9ExceptionE = external dso_local constant { ptr, ptr }, align 8
@.str = external hidden unnamed_addr constant [29 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [93 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [43 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5Chain10buildChainE6HandleI11CertificateES0_I21CertificateCollectionE(ptr dead_on_unwind noalias writable sret(%class.Handle) align 8 %0, ptr noundef nonnull align 1 dereferenceable(1) %1, ptr noundef %2, ptr noundef %3) #0 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca %class.LoggerFunction, align 8
  %10 = alloca %class.Handle.0, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i1, align 1
  %14 = alloca %class.Handle.0, align 8
  %15 = alloca i32, align 4
  %16 = alloca %class.Handle.0, align 8
  %17 = alloca %class.Handle.0, align 8
  %18 = alloca %class.Handle, align 8
  %19 = alloca %class.Handle.0, align 8
  %20 = alloca %class.Handle.4, align 8
  %21 = alloca %class.Handle.4, align 8
  %22 = alloca i1, align 1
  %23 = alloca %class.Handle.0, align 8
  %24 = alloca %class.Handle.0, align 8
  %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
  store ptr %3, ptr %8, align 8, !tbaa !5
  %29 = load ptr, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #9
  %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__._ZN5Chain10buildChainE6HandleI11CertificateES0_I21CertificateCollectionE)
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #9
  %31 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 16) #10
          to label %32 unwind label %48

32:                                               ; preds = %4
  invoke void @_ZN11CertificateC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %31)
          to label %33 unwind label %52

33:                                               ; preds = %32
  invoke void @_ZN6HandleI11CertificateEC2EPS0_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef %31)
          to label %34 unwind label %48

34:                                               ; preds = %33
  store i1 false, ptr %13, align 1
  %35 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 16) #10
          to label %36 unwind label %56

36:                                               ; preds = %34
  invoke void @_ZN21CertificateCollectionC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %35)
          to label %37 unwind label %60

37:                                               ; preds = %36
  invoke void @_ZN6HandleI21CertificateCollectionEC2EPS0_(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef %35)
          to label %38 unwind label %56

38:                                               ; preds = %37
  %39 = invoke noundef ptr @_ZNK6HandleI21CertificateCollectionEptEv(ptr noundef nonnull align 8 dereferenceable(8) %0)
          to label %40 unwind label %64

40:                                               ; preds = %38
  invoke void @_ZN6HandleI11CertificateEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %2)
          to label %41 unwind label %64

41:                                               ; preds = %40
  invoke void @_ZN21CertificateCollection4pushE6HandleI11CertificateE(ptr noundef nonnull align 8 dereferenceable(16) %39, ptr noundef %14)
          to label %42 unwind label %68

42:                                               ; preds = %41
  call void @_ZN6HandleI11CertificateED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #9
  %43 = invoke noundef ptr @_ZNK6HandleI11CertificateEptEv(ptr noundef nonnull align 8 dereferenceable(8) %2)
          to label %44 unwind label %64

44:                                               ; preds = %42
  %45 = invoke noundef zeroext i1 @_ZN11Certificate12isSelfSignedEv(ptr noundef nonnull align 8 dereferenceable(16) %43)
          to label %46 unwind label %64

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

47:                                               ; preds = %46
  store i1 true, ptr %13, align 1
  store i32 1, ptr %15, align 4
  br label %178

48:                                               ; preds = %33, %4
  %49 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI6HandleI9ExceptionE
  %50 = extractvalue { ptr, i32 } %49, 0
  store ptr %50, ptr %11, align 8
  %51 = extractvalue { ptr, i32 } %49, 1
  store i32 %51, ptr %12, align 4
  br label %184

52:                                               ; preds = %32
  %53 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI6HandleI9ExceptionE
  %54 = extractvalue { ptr, i32 } %53, 0
  store ptr %54, ptr %11, align 8
  %55 = extractvalue { ptr, i32 } %53, 1
  store i32 %55, ptr %12, align 4
  call void @_ZdlPvm(ptr noundef %31, i64 noundef 16) #11
  br label %184

56:                                               ; preds = %37, %34
  %57 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI6HandleI9ExceptionE
  %58 = extractvalue { ptr, i32 } %57, 0
  store ptr %58, ptr %11, align 8
  %59 = extractvalue { ptr, i32 } %57, 1
  store i32 %59, ptr %12, align 4
  br label %183

60:                                               ; preds = %36
  %61 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI6HandleI9ExceptionE
  %62 = extractvalue { ptr, i32 } %61, 0
  store ptr %62, ptr %11, align 8
  %63 = extractvalue { ptr, i32 } %61, 1
  store i32 %63, ptr %12, align 4
  call void @_ZdlPvm(ptr noundef %35, i64 noundef 16) #11
  br label %183

64:                                               ; preds = %44, %42, %40, %38
  %65 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI6HandleI9ExceptionE
  %66 = extractvalue { ptr, i32 } %65, 0
  store ptr %66, ptr %11, align 8
  %67 = extractvalue { ptr, i32 } %65, 1
  store i32 %67, ptr %12, align 4
  br label %182

68:                                               ; preds = %41
  %69 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI6HandleI9ExceptionE
  %70 = extractvalue { ptr, i32 } %69, 0
  store ptr %70, ptr %11, align 8
  %71 = extractvalue { ptr, i32 } %69, 1
  store i32 %71, ptr %12, align 4
  call void @_ZN6HandleI11CertificateED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #9
  br label %182

72:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #9
  invoke void @_ZN6HandleI11CertificateEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %2)
          to label %73 unwind label %92

73:                                               ; preds = %72
  br label %74

74:                                               ; preds = %173, %73
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #9
  invoke void @_ZN6HandleI21CertificateCollectionEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) %3)
          to label %75 unwind label %96

75:                                               ; preds = %74
  invoke void @_ZN6HandleI11CertificateEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) %16)
          to label %76 unwind label %100

76:                                               ; preds = %75
  invoke void @_ZN5Chain9getIssuedE6HandleI21CertificateCollectionES0_I11CertificateE(ptr dead_on_unwind writable sret(%class.Handle.0) align 8 %17, ptr noundef nonnull align 1 dereferenceable(1) %29, ptr noundef %18, ptr noundef %19)
          to label %77 unwind label %104

77:                                               ; preds = %76
  %78 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6HandleI11CertificateEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %17)
          to label %79 unwind label %108

79:                                               ; preds = %77
  %80 = invoke noundef zeroext i1 @_ZNK6HandleI11CertificateE7isEmptyEv(ptr noundef nonnull align 8 dereferenceable(8) %78)
          to label %81 unwind label %108

81:                                               ; preds = %79
  call void @_ZN6HandleI11CertificateED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %17) #9
  call void @_ZN6HandleI11CertificateED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %19) #9
  call void @_ZN6HandleI21CertificateCollectionED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %18) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #9
  br i1 %80, label %82, label %145

82:                                               ; preds = %81
  %83 = load ptr, ptr @logger, align 8, !tbaa !5
  invoke void (ptr, ptr, ptr, ...) @_ZN6Logger5errorEPKcS1_z(ptr noundef nonnull align 8 dereferenceable(24) %83, ptr noundef @__FUNCTION__._ZN5Chain10buildChainE6HandleI11CertificateES0_I21CertificateCollectionE, ptr noundef @.str)
          to label %84 unwind label %115

84:                                               ; preds = %82
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #9
  %85 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 176) #10
          to label %86 unwind label %119

86:                                               ; preds = %84
  store i1 true, ptr %22, align 1
  invoke void @_ZN6HandleI9ExceptionEC2EPS0_(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef null)
          to label %87 unwind label %123

87:                                               ; preds = %86
  invoke void (ptr, i1, ptr, i32, i32, ptr, ptr, ptr, ptr, ...) @_ZN9ExceptionC1EbPKciiS1_S1_6HandleIS_ES1_z(ptr noundef nonnull align 8 dereferenceable(176) %85, i1 noundef zeroext false, ptr noundef @.str.1, i32 noundef 22, i32 noundef 0, ptr noundef @.str.2, ptr noundef @__FUNCTION__._ZN5Chain10buildChainE6HandleI11CertificateES0_I21CertificateCollectionE, ptr noundef %21, ptr noundef @.str)
          to label %88 unwind label %127

88:                                               ; preds = %87
  store i1 false, ptr %22, align 1
  invoke void @_ZN6HandleI9ExceptionEC2EPS0_(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef %85)
          to label %89 unwind label %127

89:                                               ; preds = %88
  call void @_ZN6HandleI9ExceptionED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %21) #9
  %90 = call ptr @__cxa_allocate_exception(i64 8) #9
  invoke void @_ZN6HandleI9ExceptionEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(8) %90, ptr noundef nonnull align 8 dereferenceable(8) %20)
          to label %91 unwind label %135

91:                                               ; preds = %89
  invoke void @__cxa_throw(ptr %90, ptr @_ZTI6HandleI9ExceptionE, ptr @_ZN6HandleI9ExceptionED2Ev) #12
          to label %244 unwind label %139

92:                                               ; preds = %72
  %93 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI6HandleI9ExceptionE
  %94 = extractvalue { ptr, i32 } %93, 0
  store ptr %94, ptr %11, align 8
  %95 = extractvalue { ptr, i32 } %93, 1
  store i32 %95, ptr %12, align 4
  br label %177

96:                                               ; preds = %74
  %97 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI6HandleI9ExceptionE
  %98 = extractvalue { ptr, i32 } %97, 0
  store ptr %98, ptr %11, align 8
  %99 = extractvalue { ptr, i32 } %97, 1
  store i32 %99, ptr %12, align 4
  br label %114

100:                                              ; preds = %75
  %101 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI6HandleI9ExceptionE
  %102 = extractvalue { ptr, i32 } %101, 0
  store ptr %102, ptr %11, align 8
  %103 = extractvalue { ptr, i32 } %101, 1
  store i32 %103, ptr %12, align 4
  br label %113

104:                                              ; preds = %76
  %105 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI6HandleI9ExceptionE
  %106 = extractvalue { ptr, i32 } %105, 0
  store ptr %106, ptr %11, align 8
  %107 = extractvalue { ptr, i32 } %105, 1
  store i32 %107, ptr %12, align 4
  br label %112

108:                                              ; preds = %79, %77
  %109 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI6HandleI9ExceptionE
  %110 = extractvalue { ptr, i32 } %109, 0
  store ptr %110, ptr %11, align 8
  %111 = extractvalue { ptr, i32 } %109, 1
  store i32 %111, ptr %12, align 4
  call void @_ZN6HandleI11CertificateED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %17) #9
  br label %112

112:                                              ; preds = %108, %104
  call void @_ZN6HandleI11CertificateED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %19) #9
  br label %113

113:                                              ; preds = %112, %100
  call void @_ZN6HandleI21CertificateCollectionED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %18) #9
  br label %114

114:                                              ; preds = %113, %96
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #9
  br label %176

115:                                              ; preds = %171, %163, %161, %159, %152, %147, %145, %82
  %116 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI6HandleI9ExceptionE
  %117 = extractvalue { ptr, i32 } %116, 0
  store ptr %117, ptr %11, align 8
  %118 = extractvalue { ptr, i32 } %116, 1
  store i32 %118, ptr %12, align 4
  br label %176

119:                                              ; preds = %84
  %120 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI6HandleI9ExceptionE
  %121 = extractvalue { ptr, i32 } %120, 0
  store ptr %121, ptr %11, align 8
  %122 = extractvalue { ptr, i32 } %120, 1
  store i32 %122, ptr %12, align 4
  br label %144

123:                                              ; preds = %86
  %124 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI6HandleI9ExceptionE
  %125 = extractvalue { ptr, i32 } %124, 0
  store ptr %125, ptr %11, align 8
  %126 = extractvalue { ptr, i32 } %124, 1
  store i32 %126, ptr %12, align 4
  br label %131

127:                                              ; preds = %88, %87
  %128 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI6HandleI9ExceptionE
  %129 = extractvalue { ptr, i32 } %128, 0
  store ptr %129, ptr %11, align 8
  %130 = extractvalue { ptr, i32 } %128, 1
  store i32 %130, ptr %12, align 4
  call void @_ZN6HandleI9ExceptionED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %21) #9
  br label %131

131:                                              ; preds = %127, %123
  %132 = load i1, ptr %22, align 1
  br i1 %132, label %133, label %134

133:                                              ; preds = %131
  call void @_ZdlPvm(ptr noundef %85, i64 noundef 176) #11
  br label %134

134:                                              ; preds = %133, %131
  br label %144

135:                                              ; preds = %89
  %136 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI6HandleI9ExceptionE
  %137 = extractvalue { ptr, i32 } %136, 0
  store ptr %137, ptr %11, align 8
  %138 = extractvalue { ptr, i32 } %136, 1
  store i32 %138, ptr %12, align 4
  call void @__cxa_free_exception(ptr %90) #9
  br label %143

139:                                              ; preds = %91
  %140 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI6HandleI9ExceptionE
  %141 = extractvalue { ptr, i32 } %140, 0
  store ptr %141, ptr %11, align 8
  %142 = extractvalue { ptr, i32 } %140, 1
  store i32 %142, ptr %12, align 4
  br label %143

143:                                              ; preds = %139, %135
  call void @_ZN6HandleI9ExceptionED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %20) #9
  br label %144

144:                                              ; preds = %143, %134, %119
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #9
  br label %176

145:                                              ; preds = %81
  %146 = invoke noundef ptr @_ZNK6HandleI11CertificateEptEv(ptr noundef nonnull align 8 dereferenceable(8) %16)
          to label %147 unwind label %115

147:                                              ; preds = %145
  invoke void @_ZN6HandleI11CertificateEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef nonnull align 8 dereferenceable(8) %10)
          to label %148 unwind label %115

148:                                              ; preds = %147
  %149 = invoke noundef i32 @_ZN11Certificate7compareE6HandleIS_E(ptr noundef nonnull align 8 dereferenceable(16) %146, ptr noundef %23)
          to label %150 unwind label %155

150:                                              ; preds = %148
  %151 = icmp eq i32 %149, 0
  call void @_ZN6HandleI11CertificateED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %23) #9
  br i1 %151, label %152, label %159

152:                                              ; preds = %150
  %153 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6HandleI11CertificateE5emptyEv(ptr noundef nonnull align 8 dereferenceable(8) %10)
          to label %154 unwind label %115

154:                                              ; preds = %152
  br label %170

155:                                              ; preds = %148
  %156 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI6HandleI9ExceptionE
  %157 = extractvalue { ptr, i32 } %156, 0
  store ptr %157, ptr %11, align 8
  %158 = extractvalue { ptr, i32 } %156, 1
  store i32 %158, ptr %12, align 4
  call void @_ZN6HandleI11CertificateED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %23) #9
  br label %176

159:                                              ; preds = %150
  %160 = invoke noundef ptr @_ZNK6HandleI21CertificateCollectionEptEv(ptr noundef nonnull align 8 dereferenceable(8) %0)
          to label %161 unwind label %115

161:                                              ; preds = %159
  invoke void @_ZN6HandleI11CertificateEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(8) %24, ptr noundef nonnull align 8 dereferenceable(8) %10)
          to label %162 unwind label %115

162:                                              ; preds = %161
  invoke void @_ZN21CertificateCollection4pushE6HandleI11CertificateE(ptr noundef nonnull align 8 dereferenceable(16) %160, ptr noundef %24)
          to label %163 unwind label %166

163:                                              ; preds = %162
  call void @_ZN6HandleI11CertificateED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %24) #9
  %164 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6HandleI11CertificateEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %10)
          to label %165 unwind label %115

165:                                              ; preds = %163
  br label %170

166:                                              ; preds = %162
  %167 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI6HandleI9ExceptionE
  %168 = extractvalue { ptr, i32 } %167, 0
  store ptr %168, ptr %11, align 8
  %169 = extractvalue { ptr, i32 } %167, 1
  store i32 %169, ptr %12, align 4
  call void @_ZN6HandleI11CertificateED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %24) #9
  br label %176

170:                                              ; preds = %165, %154
  br label %171

171:                                              ; preds = %170
  %172 = invoke noundef zeroext i1 @_ZNK6HandleI11CertificateE7isEmptyEv(ptr noundef nonnull align 8 dereferenceable(8) %10)
          to label %173 unwind label %115

173:                                              ; preds = %171
  %174 = xor i1 %172, true
  br i1 %174, label %74, label %175, !llvm.loop !9

175:                                              ; preds = %173
  store i1 true, ptr %13, align 1
  store i32 1, ptr %15, align 4
  call void @_ZN6HandleI11CertificateED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %16) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #9
  br label %178

176:                                              ; preds = %166, %155, %144, %115, %114
  call void @_ZN6HandleI11CertificateED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %16) #9
  br label %177

177:                                              ; preds = %176, %92
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #9
  br label %182

178:                                              ; preds = %175, %47
  %179 = load i1, ptr %13, align 1
  br i1 %179, label %181, label %180

180:                                              ; preds = %178
  call void @_ZN6HandleI21CertificateCollectionED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0) #9
  br label %181

181:                                              ; preds = %180, %178
  call void @_ZN6HandleI11CertificateED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #9
  call void @_ZN14LoggerFunctionD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #9
  ret void

182:                                              ; preds = %177, %68, %64
  call void @_ZN6HandleI21CertificateCollectionED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0) #9
  br label %183

183:                                              ; preds = %182, %60, %56
  call void @_ZN6HandleI11CertificateED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #9
  br label %184

184:                                              ; preds = %183, %52, %48
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #9
  br label %185

185:                                              ; preds = %184
  %186 = load i32, ptr %12, align 4
  %187 = call i32 @llvm.eh.typeid.for.p0(ptr @_ZTI6HandleI9ExceptionE) #9
  %188 = icmp eq i32 %186, %187
  br i1 %188, label %189, label %235

189:                                              ; preds = %185
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #9
  %190 = load ptr, ptr %11, align 8
  %191 = call ptr @__cxa_begin_catch(ptr %190) #9
  store ptr %191, ptr %25, align 8
  %192 = load ptr, ptr @logger, align 8, !tbaa !5
  invoke void (ptr, ptr, ptr, ...) @_ZN6Logger5errorEPKcS1_z(ptr noundef nonnull align 8 dereferenceable(24) %192, ptr noundef @__FUNCTION__._ZN5Chain10buildChainE6HandleI11CertificateES0_I21CertificateCollectionE, ptr noundef @.str.3)
          to label %193 unwind label %202

193:                                              ; preds = %189
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #9
  %194 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 176) #10
          to label %195 unwind label %206

195:                                              ; preds = %193
  store i1 true, ptr %28, align 1
  %196 = 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) %196)
          to label %197 unwind label %210

197:                                              ; preds = %195
  invoke void (ptr, i1, ptr, i32, i32, ptr, ptr, ptr, ptr, ...) @_ZN9ExceptionC1EbPKciiS1_S1_6HandleIS_ES1_z(ptr noundef nonnull align 8 dereferenceable(176) %194, i1 noundef zeroext false, ptr noundef @.str.1, i32 noundef 38, i32 noundef 0, ptr noundef @.str.2, ptr noundef @__FUNCTION__._ZN5Chain10buildChainE6HandleI11CertificateES0_I21CertificateCollectionE, ptr noundef %27, ptr noundef @.str.3)
          to label %198 unwind label %214

198:                                              ; preds = %197
  store i1 false, ptr %28, align 1
  invoke void @_ZN6HandleI9ExceptionEC2EPS0_(ptr noundef nonnull align 8 dereferenceable(8) %26, ptr noundef %194)
          to label %199 unwind label %214

199:                                              ; preds = %198
  call void @_ZN6HandleI9ExceptionED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %27) #9
  %200 = call ptr @__cxa_allocate_exception(i64 8) #9
  invoke void @_ZN6HandleI9ExceptionEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(8) %200, ptr noundef nonnull align 8 dereferenceable(8) %26)
          to label %201 unwind label %222

201:                                              ; preds = %199
  invoke void @__cxa_throw(ptr %200, ptr @_ZTI6HandleI9ExceptionE, ptr @_ZN6HandleI9ExceptionED2Ev) #12
          to label %244 unwind label %226

202:                                              ; preds = %189
  %203 = landingpad { ptr, i32 }
          cleanup
  %204 = extractvalue { ptr, i32 } %203, 0
  store ptr %204, ptr %11, align 8
  %205 = extractvalue { ptr, i32 } %203, 1
  store i32 %205, ptr %12, align 4
  br label %232

206:                                              ; preds = %193
  %207 = landingpad { ptr, i32 }
          cleanup
  %208 = extractvalue { ptr, i32 } %207, 0
  store ptr %208, ptr %11, align 8
  %209 = extractvalue { ptr, i32 } %207, 1
  store i32 %209, ptr %12, align 4
  br label %231

210:                                              ; preds = %195
  %211 = landingpad { ptr, i32 }
          cleanup
  %212 = extractvalue { ptr, i32 } %211, 0
  store ptr %212, ptr %11, align 8
  %213 = extractvalue { ptr, i32 } %211, 1
  store i32 %213, ptr %12, align 4
  br label %218

214:                                              ; preds = %198, %197
  %215 = landingpad { ptr, i32 }
          cleanup
  %216 = extractvalue { ptr, i32 } %215, 0
  store ptr %216, ptr %11, align 8
  %217 = extractvalue { ptr, i32 } %215, 1
  store i32 %217, ptr %12, align 4
  call void @_ZN6HandleI9ExceptionED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %27) #9
  br label %218

218:                                              ; preds = %214, %210
  %219 = load i1, ptr %28, align 1
  br i1 %219, label %220, label %221

220:                                              ; preds = %218
  call void @_ZdlPvm(ptr noundef %194, i64 noundef 176) #11
  br label %221

221:                                              ; preds = %220, %218
  br label %231

222:                                              ; preds = %199
  %223 = landingpad { ptr, i32 }
          cleanup
  %224 = extractvalue { ptr, i32 } %223, 0
  store ptr %224, ptr %11, align 8
  %225 = extractvalue { ptr, i32 } %223, 1
  store i32 %225, ptr %12, align 4
  call void @__cxa_free_exception(ptr %200) #9
  br label %230

226:                                              ; preds = %201
  %227 = landingpad { ptr, i32 }
          cleanup
  %228 = extractvalue { ptr, i32 } %227, 0
  store ptr %228, ptr %11, align 8
  %229 = extractvalue { ptr, i32 } %227, 1
  store i32 %229, ptr %12, align 4
  br label %230

230:                                              ; preds = %226, %222
  call void @_ZN6HandleI9ExceptionED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %26) #9
  br label %231

231:                                              ; preds = %230, %221, %206
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #9
  br label %232

232:                                              ; preds = %231, %202
  invoke void @__cxa_end_catch()
          to label %233 unwind label %241

233:                                              ; preds = %232
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #9
  br label %235

234:                                              ; No predecessors!
  unreachable

235:                                              ; preds = %233, %185
  call void @_ZN14LoggerFunctionD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #9
  br label %236

236:                                              ; preds = %235
  %237 = load ptr, ptr %11, align 8
  %238 = load i32, ptr %12, align 4
  %239 = insertvalue { ptr, i32 } poison, ptr %237, 0
  %240 = insertvalue { ptr, i32 } %239, i32 %238, 1
  resume { ptr, i32 } %240

241:                                              ; preds = %232
  %242 = landingpad { ptr, i32 }
          catch ptr null
  %243 = extractvalue { ptr, i32 } %242, 0
  call void @__clang_call_terminate(ptr %243) #13
  unreachable

244:                                              ; preds = %201, %91
  unreachable
}

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

declare void @_ZN21CertificateCollection4pushE6HandleI11CertificateE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) #2

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

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

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

declare noundef zeroext i1 @_ZN11Certificate12isSelfSignedEv(ptr noundef nonnull align 8 dereferenceable(16)) #2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN6HandleI11CertificateEaSERKS1_(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 noundef zeroext i1 @_ZNK6HandleI11CertificateE7isEmptyEv(ptr noundef nonnull align 8 dereferenceable(8)) #5 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6HandleI9ExceptionEC2EPS0_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) unnamed_addr #0 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 #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)

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

declare noundef i32 @_ZN11Certificate7compareE6HandleIS_E(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) #2

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

; 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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { 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 #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 }
attributes #10 = { builtin allocsize(0) }
attributes #11 = { builtin nounwind }
attributes #12 = { noreturn }
attributes #13 = { 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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}


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

@logger = external local_unnamed_addr global ptr, align 8
@__FUNCTION__._ZN5Chain10buildChainE6HandleI11CertificateES0_I21CertificateCollectionE = external hidden unnamed_addr constant [11 x i8], align 1
@_ZTI6HandleI9ExceptionE = external dso_local constant { ptr, ptr }, align 8
@.str = external hidden unnamed_addr constant [29 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [93 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [43 x i8], align 1

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

20:                                               ; preds = %4
  invoke void @_ZN11CertificateC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %19)
          to label %21 unwind label %36

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

22:                                               ; preds = %21
  %23 = invoke noalias noundef nonnull dereferenceable(16) ptr @_Znwm(i64 noundef 16) #10
          to label %24 unwind label %38

24:                                               ; preds = %22
  invoke void @_ZN21CertificateCollectionC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %23)
          to label %25 unwind label %40

25:                                               ; preds = %24
  invoke void @_ZN6HandleI21CertificateCollectionEC2EPS0_(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull %23)
          to label %26 unwind label %38

26:                                               ; preds = %25
  %27 = invoke noundef ptr @_ZNK6HandleI21CertificateCollectionEptEv(ptr noundef nonnull align 8 dereferenceable(8) %0)
          to label %28 unwind label %42

28:                                               ; preds = %26
  call void @_ZN6HandleI11CertificateEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %2)
  invoke void @_ZN21CertificateCollection4pushE6HandleI11CertificateE(ptr noundef nonnull align 8 dereferenceable(16) %27, ptr noundef nonnull %7)
          to label %29 unwind label %44

29:                                               ; preds = %28
  call void @_ZN6HandleI11CertificateED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #9
  %30 = invoke noundef ptr @_ZNK6HandleI11CertificateEptEv(ptr noundef nonnull align 8 dereferenceable(8) %2)
          to label %31 unwind label %42

31:                                               ; preds = %29
  %32 = invoke noundef zeroext i1 @_ZN11Certificate12isSelfSignedEv(ptr noundef nonnull align 8 dereferenceable(16) %30)
          to label %33 unwind label %42

33:                                               ; preds = %31
  br i1 %32, label %93, label %46

34:                                               ; preds = %21, %4
  %35 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI6HandleI9ExceptionE
  br label %96

36:                                               ; preds = %20
  %37 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI6HandleI9ExceptionE
  call void @_ZdlPvm(ptr noundef nonnull %19, i64 noundef 16) #11
  br label %96

38:                                               ; preds = %25, %22
  %39 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI6HandleI9ExceptionE
  br label %95

40:                                               ; preds = %24
  %41 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI6HandleI9ExceptionE
  call void @_ZdlPvm(ptr noundef nonnull %23, i64 noundef 16) #11
  br label %95

42:                                               ; preds = %31, %29, %26
  %43 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI6HandleI9ExceptionE
  br label %94

44:                                               ; preds = %28
  %45 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI6HandleI9ExceptionE
  call void @_ZN6HandleI11CertificateED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #9
  br label %94

46:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #9
  call void @_ZN6HandleI11CertificateEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %2)
  br label %47

47:                                               ; preds = %89, %46
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #9
  call void @_ZN6HandleI21CertificateCollectionEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %3)
  call void @_ZN6HandleI11CertificateEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %8)
  invoke void @_ZN5Chain9getIssuedE6HandleI21CertificateCollectionES0_I11CertificateE(ptr dead_on_unwind nonnull writable sret(%class.Handle.0) align 8 %9, ptr noundef nonnull align 1 dereferenceable(1) %1, ptr noundef nonnull %10, ptr noundef nonnull %11)
          to label %48 unwind label %61

48:                                               ; preds = %47
  %49 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6HandleI11CertificateEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %9)
  %50 = call noundef zeroext i1 @_ZNK6HandleI11CertificateE7isEmptyEv(ptr noundef nonnull align 8 dereferenceable(8) %49)
  call void @_ZN6HandleI11CertificateED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #9
  call void @_ZN6HandleI11CertificateED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #9
  call void @_ZN6HandleI21CertificateCollectionED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #9
  br i1 %50, label %51, label %72

51:                                               ; preds = %48
  %52 = load ptr, ptr @logger, align 8, !tbaa !5
  invoke void (ptr, ptr, ptr, ...) @_ZN6Logger5errorEPKcS1_z(ptr noundef nonnull align 8 dereferenceable(24) %52, ptr noundef nonnull @__FUNCTION__._ZN5Chain10buildChainE6HandleI11CertificateES0_I21CertificateCollectionE, ptr noundef nonnull @.str)
          to label %53 unwind label %.loopexit.split-lp

53:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #9
  %54 = invoke noalias noundef nonnull dereferenceable(176) ptr @_Znwm(i64 noundef 176) #10
          to label %55 unwind label %63

55:                                               ; preds = %53
  invoke void @_ZN6HandleI9ExceptionEC2EPS0_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef null)
          to label %56 unwind label %.thread

56:                                               ; preds = %55
  invoke void (ptr, i1, ptr, i32, i32, ptr, ptr, ptr, ptr, ...) @_ZN9ExceptionC1EbPKciiS1_S1_6HandleIS_ES1_z(ptr noundef nonnull align 8 dereferenceable(176) %54, i1 noundef zeroext false, ptr noundef nonnull @.str.1, i32 noundef 22, i32 noundef 0, ptr noundef nonnull @.str.2, ptr noundef nonnull @__FUNCTION__._ZN5Chain10buildChainE6HandleI11CertificateES0_I21CertificateCollectionE, ptr noundef nonnull %13, ptr noundef nonnull @.str)
          to label %58 unwind label %.thread34

.thread34:                                        ; preds = %56
  %57 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI6HandleI9ExceptionE
  call void @_ZN6HandleI9ExceptionED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #9
  br label %68

58:                                               ; preds = %56
  invoke void @_ZN6HandleI9ExceptionEC2EPS0_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull %54)
          to label %59 unwind label %66

59:                                               ; preds = %58
  call void @_ZN6HandleI9ExceptionED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #9
  %60 = call ptr @__cxa_allocate_exception(i64 8) #9
  call void @_ZN6HandleI9ExceptionEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(8) %60, ptr noundef nonnull align 8 dereferenceable(8) %12)
  invoke void @__cxa_throw(ptr nonnull %60, ptr nonnull @_ZTI6HandleI9ExceptionE, ptr nonnull @_ZN6HandleI9ExceptionED2Ev) #12
          to label %124 unwind label %69

61:                                               ; preds = %47
  %62 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI6HandleI9ExceptionE
  call void @_ZN6HandleI11CertificateED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #9
  call void @_ZN6HandleI21CertificateCollectionED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #9
  br label %92

.loopexit:                                        ; preds = %72, %78, %82
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI6HandleI9ExceptionE
  br label %92

.loopexit.split-lp:                               ; preds = %51
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI6HandleI9ExceptionE
  br label %92

63:                                               ; preds = %53
  %64 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI6HandleI9ExceptionE
  br label %71

.thread:                                          ; preds = %55
  %65 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI6HandleI9ExceptionE
  br label %68

66:                                               ; preds = %58
  %67 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI6HandleI9ExceptionE
  call void @_ZN6HandleI9ExceptionED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #9
  br label %71

68:                                               ; preds = %.thread34, %.thread
  %.pn33 = phi { ptr, i32 } [ %65, %.thread ], [ %57, %.thread34 ]
  call void @_ZdlPvm(ptr noundef nonnull %54, i64 noundef 176) #11
  br label %71

69:                                               ; preds = %59
  %70 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI6HandleI9ExceptionE
  call void @_ZN6HandleI9ExceptionED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #9
  br label %71

71:                                               ; preds = %66, %68, %69, %63
  %.pn22 = phi { ptr, i32 } [ %70, %69 ], [ %.pn33, %68 ], [ %67, %66 ], [ %64, %63 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #9
  br label %92

72:                                               ; preds = %48
  %73 = invoke noundef ptr @_ZNK6HandleI11CertificateEptEv(ptr noundef nonnull align 8 dereferenceable(8) %8)
          to label %74 unwind label %.loopexit

74:                                               ; preds = %72
  call void @_ZN6HandleI11CertificateEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %6)
  %75 = invoke noundef i32 @_ZN11Certificate7compareE6HandleIS_E(ptr noundef nonnull align 8 dereferenceable(16) %73, ptr noundef nonnull %14)
          to label %76 unwind label %80

76:                                               ; preds = %74
  %77 = icmp eq i32 %75, 0
  call void @_ZN6HandleI11CertificateED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #9
  br i1 %77, label %78, label %82

78:                                               ; preds = %76
  %79 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6HandleI11CertificateE5emptyEv(ptr noundef nonnull align 8 dereferenceable(8) %6)
          to label %89 unwind label %.loopexit

80:                                               ; preds = %74
  %81 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI6HandleI9ExceptionE
  call void @_ZN6HandleI11CertificateED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #9
  br label %92

82:                                               ; preds = %76
  %83 = invoke noundef ptr @_ZNK6HandleI21CertificateCollectionEptEv(ptr noundef nonnull align 8 dereferenceable(8) %0)
          to label %84 unwind label %.loopexit

84:                                               ; preds = %82
  call void @_ZN6HandleI11CertificateEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %6)
  invoke void @_ZN21CertificateCollection4pushE6HandleI11CertificateE(ptr noundef nonnull align 8 dereferenceable(16) %83, ptr noundef nonnull %15)
          to label %85 unwind label %87

85:                                               ; preds = %84
  call void @_ZN6HandleI11CertificateED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %15) #9
  %86 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6HandleI11CertificateEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %6)
  br label %89

87:                                               ; preds = %84
  %88 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI6HandleI9ExceptionE
  call void @_ZN6HandleI11CertificateED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %15) #9
  br label %92

89:                                               ; preds = %85, %78
  %90 = call noundef zeroext i1 @_ZNK6HandleI11CertificateE7isEmptyEv(ptr noundef nonnull align 8 dereferenceable(8) %6)
  br i1 %90, label %91, label %47, !llvm.loop !9

91:                                               ; preds = %89
  call void @_ZN6HandleI11CertificateED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #9
  br label %93

92:                                               ; preds = %.loopexit, %.loopexit.split-lp, %87, %80, %71, %61
  %.pn22.pn = phi { ptr, i32 } [ %.pn22, %71 ], [ %88, %87 ], [ %81, %80 ], [ %62, %61 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @_ZN6HandleI11CertificateED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #9
  br label %94

93:                                               ; preds = %91, %33
  call void @_ZN6HandleI11CertificateED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #9
  call void @_ZN14LoggerFunctionD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #9
  ret void

94:                                               ; preds = %92, %44, %42
  %.pn22.pn.pn = phi { ptr, i32 } [ %.pn22.pn, %92 ], [ %43, %42 ], [ %45, %44 ]
  call void @_ZN6HandleI21CertificateCollectionED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0) #9
  br label %95

95:                                               ; preds = %94, %40, %38
  %.pn22.pn.pn.pn = phi { ptr, i32 } [ %.pn22.pn.pn, %94 ], [ %39, %38 ], [ %41, %40 ]
  call void @_ZN6HandleI11CertificateED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #9
  br label %96

96:                                               ; preds = %95, %36, %34
  %.pn22.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn22.pn.pn.pn, %95 ], [ %35, %34 ], [ %37, %36 ]
  %.517 = extractvalue { ptr, i32 } %.pn22.pn.pn.pn.pn, 1
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #9
  %97 = call i32 @llvm.eh.typeid.for.p0(ptr nonnull @_ZTI6HandleI9ExceptionE) #9
  %98 = icmp eq i32 %.517, %97
  br i1 %98, label %99, label %120

99:                                               ; preds = %96
  %.5 = extractvalue { ptr, i32 } %.pn22.pn.pn.pn.pn, 0
  %100 = call ptr @__cxa_begin_catch(ptr %.5) #9
  %101 = load ptr, ptr @logger, align 8, !tbaa !5
  invoke void (ptr, ptr, ptr, ...) @_ZN6Logger5errorEPKcS1_z(ptr noundef nonnull align 8 dereferenceable(24) %101, ptr noundef nonnull @__FUNCTION__._ZN5Chain10buildChainE6HandleI11CertificateES0_I21CertificateCollectionE, ptr noundef nonnull @.str.3)
          to label %102 unwind label %108

102:                                              ; preds = %99
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #9
  %103 = invoke noalias noundef nonnull dereferenceable(176) ptr @_Znwm(i64 noundef 176) #10
          to label %104 unwind label %110

104:                                              ; preds = %102
  call void @_ZN6HandleI9ExceptionEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %100)
  invoke void (ptr, i1, ptr, i32, i32, ptr, ptr, ptr, ptr, ...) @_ZN9ExceptionC1EbPKciiS1_S1_6HandleIS_ES1_z(ptr noundef nonnull align 8 dereferenceable(176) %103, i1 noundef zeroext false, ptr noundef nonnull @.str.1, i32 noundef 38, i32 noundef 0, ptr noundef nonnull @.str.2, ptr noundef nonnull @__FUNCTION__._ZN5Chain10buildChainE6HandleI11CertificateES0_I21CertificateCollectionE, ptr noundef nonnull %17, ptr noundef nonnull @.str.3)
          to label %105 unwind label %114

105:                                              ; preds = %104
  invoke void @_ZN6HandleI9ExceptionEC2EPS0_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull %103)
          to label %106 unwind label %112

106:                                              ; preds = %105
  call void @_ZN6HandleI9ExceptionED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %17) #9
  %107 = call ptr @__cxa_allocate_exception(i64 8) #9
  call void @_ZN6HandleI9ExceptionEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(8) %107, ptr noundef nonnull align 8 dereferenceable(8) %16)
  invoke void @__cxa_throw(ptr nonnull %107, ptr nonnull @_ZTI6HandleI9ExceptionE, ptr nonnull @_ZN6HandleI9ExceptionED2Ev) #12
          to label %124 unwind label %116

108:                                              ; preds = %99
  %109 = landingpad { ptr, i32 }
          cleanup
  br label %119

110:                                              ; preds = %102
  %111 = landingpad { ptr, i32 }
          cleanup
  br label %118

112:                                              ; preds = %105
  %113 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6HandleI9ExceptionED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %17) #9
  br label %118

114:                                              ; preds = %104
  %115 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6HandleI9ExceptionED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %17) #9
  call void @_ZdlPvm(ptr noundef nonnull %103, i64 noundef 176) #11
  br label %118

116:                                              ; preds = %106
  %117 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6HandleI9ExceptionED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %16) #9
  br label %118

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

119:                                              ; preds = %118, %108
  %.pn28.pn = phi { ptr, i32 } [ %.pn28, %118 ], [ %109, %108 ]
  invoke void @__cxa_end_catch()
          to label %120 unwind label %121

120:                                              ; preds = %119, %96
  %.merged = phi { ptr, i32 } [ %.pn22.pn.pn.pn.pn, %96 ], [ %.pn28.pn, %119 ]
  call void @_ZN14LoggerFunctionD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #9
  resume { ptr, i32 } %.merged

121:                                              ; preds = %119
  %122 = landingpad { ptr, i32 }
          catch ptr null
  %123 = extractvalue { ptr, i32 } %122, 0
  call void @__clang_call_terminate(ptr %123) #13
  unreachable

124:                                              ; preds = %106, %59
  unreachable
}

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

declare void @_ZN21CertificateCollection4pushE6HandleI11CertificateE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) local_unnamed_addr #2

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

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

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

declare noundef zeroext i1 @_ZN11Certificate12isSelfSignedEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN6HandleI11CertificateEaSERKS1_(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 noundef zeroext i1 @_ZNK6HandleI11CertificateE7isEmptyEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6HandleI9ExceptionEC2EPS0_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) unnamed_addr #0 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 #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

; 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

declare noundef i32 @_ZN11Certificate7compareE6HandleIS_E(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) local_unnamed_addr #2

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

; 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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { 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 #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 = { nounwind }
attributes #10 = { builtin allocsize(0) }
attributes #11 = { builtin nounwind }
attributes #12 = { noreturn }
attributes #13 = { 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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}


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