; LLVM IR from specinfo-ua/UAPKI :: library/uapki/src/api (crl-info)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.UapkiNS::SmartBA" = type { ptr }

@.str = external hidden unnamed_addr constant [17 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local i32 @uapki_crl_info(ptr noundef %0, ptr noundef %1) #0 personality ptr @__gxx_personality_v0 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i8, align 1
  %8 = alloca %"class.UapkiNS::SmartBA", align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca %"class.UapkiNS::SmartBA", align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  store i32 0, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %7) #6
  %16 = load ptr, ptr %4, align 8, !tbaa !5
  %17 = call noundef zeroext i1 @_ZN12ParsonHelper20jsonObjectGetBooleanEP13json_object_tPKcb(ptr noundef %16, ptr noundef @.str, i1 noundef zeroext true)
  %18 = zext i1 %17 to i8
  store i8 %18, ptr %7, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  call void @_ZN7UapkiNS7SmartBAC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8)
  %19 = load ptr, ptr %4, align 8, !tbaa !5
  %20 = invoke ptr @json_object_get_base64(ptr noundef %19, ptr noundef @.str.1)
          to label %21 unwind label %35

21:                                               ; preds = %2
  %22 = invoke noundef zeroext i1 @_ZN7UapkiNS7SmartBA3setEP12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef %20)
          to label %23 unwind label %35

23:                                               ; preds = %21
  br i1 %22, label %24, label %61

24:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  store ptr null, ptr %11, align 8, !tbaa !5
  br label %25

25:                                               ; preds = %24
  %26 = invoke noundef ptr @_ZNK7UapkiNS7SmartBA3getEv(ptr noundef nonnull align 8 dereferenceable(8) %8)
          to label %27 unwind label %39

27:                                               ; preds = %25
  %28 = invoke noundef i32 @_ZN7UapkiNS3Crl8parseCrlEPK12ByteArray_stPPNS0_7CrlItemE(ptr noundef %26, ptr noundef %11)
          to label %29 unwind label %39

29:                                               ; preds = %27
  store i32 %28, ptr %6, align 4, !tbaa !9
  %30 = load i32, ptr %6, align 4, !tbaa !9
  %31 = icmp ne i32 %30, 0
  br i1 %31, label %32, label %43

32:                                               ; preds = %29
  %33 = load i32, ptr %6, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str.2, i64 noundef 65, i32 noundef %33)
          to label %34 unwind label %39

34:                                               ; preds = %32
  store i32 4, ptr %12, align 4
  br label %58

35:                                               ; preds = %21, %2
  %36 = landingpad { ptr, i32 }
          cleanup
  %37 = extractvalue { ptr, i32 } %36, 0
  store ptr %37, ptr %9, align 8
  %38 = extractvalue { ptr, i32 } %36, 1
  store i32 %38, ptr %10, align 4
  br label %135

39:                                               ; preds = %47, %45, %32, %27, %25
  %40 = landingpad { ptr, i32 }
          cleanup
  %41 = extractvalue { ptr, i32 } %40, 0
  store ptr %41, ptr %9, align 8
  %42 = extractvalue { ptr, i32 } %40, 1
  store i32 %42, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  br label %135

43:                                               ; preds = %29
  br label %44

44:                                               ; preds = %43
  br label %45

45:                                               ; preds = %44
  %46 = invoke noundef zeroext i1 @_ZN7UapkiNS7SmartBA3setEP12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef null)
          to label %47 unwind label %39

47:                                               ; preds = %45
  %48 = load ptr, ptr %5, align 8, !tbaa !5
  %49 = load ptr, ptr %11, align 8, !tbaa !5
  %50 = load i8, ptr %7, align 1, !tbaa !11, !range !13, !noundef !14
  %51 = trunc i8 %50 to i1
  %52 = invoke noundef i32 @_ZL16crl_info_to_jsonP13json_object_tPN7UapkiNS3Crl7CrlItemEb(ptr noundef %48, ptr noundef %49, i1 noundef zeroext %51)
          to label %53 unwind label %39

53:                                               ; preds = %47
  store i32 %52, ptr %6, align 4, !tbaa !9
  %54 = load ptr, ptr %11, align 8, !tbaa !5
  %55 = icmp eq ptr %54, null
  br i1 %55, label %57, label %56

56:                                               ; preds = %53
  call void @_ZN7UapkiNS3Crl7CrlItemD1Ev(ptr noundef nonnull align 8 dereferenceable(268) %54) #6
  call void @_ZdlPvm(ptr noundef %54, i64 noundef 272) #7
  br label %57

57:                                               ; preds = %56, %53
  store i32 0, ptr %12, align 4
  br label %58

58:                                               ; preds = %57, %34
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  %59 = load i32, ptr %12, align 4
  switch i32 %59, label %133 [
    i32 0, label %60
    i32 4, label %131
  ]

60:                                               ; preds = %58
  br label %130

61:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  invoke void @_ZN7UapkiNS7SmartBAC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %13)
          to label %62 unwind label %72

62:                                               ; preds = %61
  %63 = load ptr, ptr %4, align 8, !tbaa !5
  %64 = invoke ptr @json_object_get_base64(ptr noundef %63, ptr noundef @.str.3)
          to label %65 unwind label %76

65:                                               ; preds = %62
  %66 = invoke noundef zeroext i1 @_ZN7UapkiNS7SmartBA3setEP12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef %64)
          to label %67 unwind label %76

67:                                               ; preds = %65
  br i1 %66, label %82, label %68

68:                                               ; preds = %67
  br label %69

69:                                               ; preds = %68
  store i32 4101, ptr %6, align 4, !tbaa !9
  %70 = load i32, ptr %6, align 4, !tbaa !9
  invoke void @stacktrace_create(ptr noundef @.str.2, i64 noundef 75, i32 noundef %70, ptr noundef null)
          to label %71 unwind label %76

71:                                               ; preds = %69
  store i32 4, ptr %12, align 4
  br label %124

72:                                               ; preds = %61
  %73 = landingpad { ptr, i32 }
          cleanup
  %74 = extractvalue { ptr, i32 } %73, 0
  store ptr %74, ptr %9, align 8
  %75 = extractvalue { ptr, i32 } %73, 1
  store i32 %75, ptr %10, align 4
  br label %129

76:                                               ; preds = %69, %65, %62
  %77 = landingpad { ptr, i32 }
          cleanup
  %78 = extractvalue { ptr, i32 } %77, 0
  store ptr %78, ptr %9, align 8
  %79 = extractvalue { ptr, i32 } %77, 1
  store i32 %79, ptr %10, align 4
  br label %128

80:                                               ; No predecessors!
  br label %81

81:                                               ; preds = %80
  br label %82

82:                                               ; preds = %81, %67
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %83 = invoke noundef ptr @_ZN7UapkiNS12get_crlstoreEv()
          to label %84 unwind label %91

84:                                               ; preds = %82
  store ptr %83, ptr %14, align 8, !tbaa !5
  %85 = load ptr, ptr %14, align 8, !tbaa !5
  %86 = icmp ne ptr %85, null
  br i1 %86, label %97, label %87

87:                                               ; preds = %84
  br label %88

88:                                               ; preds = %87
  store i32 4097, ptr %6, align 4, !tbaa !9
  %89 = load i32, ptr %6, align 4, !tbaa !9
  invoke void @stacktrace_create(ptr noundef @.str.2, i64 noundef 80, i32 noundef %89, ptr noundef null)
          to label %90 unwind label %91

90:                                               ; preds = %88
  store i32 4, ptr %12, align 4
  br label %123

91:                                               ; preds = %88, %82
  %92 = landingpad { ptr, i32 }
          cleanup
  %93 = extractvalue { ptr, i32 } %92, 0
  store ptr %93, ptr %9, align 8
  %94 = extractvalue { ptr, i32 } %92, 1
  store i32 %94, ptr %10, align 4
  br label %127

95:                                               ; No predecessors!
  br label %96

96:                                               ; preds = %95
  br label %97

97:                                               ; preds = %96, %84
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  store ptr null, ptr %15, align 8, !tbaa !5
  br label %98

98:                                               ; preds = %97
  %99 = load ptr, ptr %14, align 8, !tbaa !5
  %100 = invoke noundef ptr @_ZNK7UapkiNS7SmartBA3getEv(ptr noundef nonnull align 8 dereferenceable(8) %13)
          to label %101 unwind label %109

101:                                              ; preds = %98
  %102 = invoke noundef i32 @_ZN7UapkiNS3Crl8CrlStore13getCrlByCrlIdEPK12ByteArray_stPPNS0_7CrlItemE(ptr noundef nonnull align 8 dereferenceable(144) %99, ptr noundef %100, ptr noundef %15)
          to label %103 unwind label %109

103:                                              ; preds = %101
  store i32 %102, ptr %6, align 4, !tbaa !9
  %104 = load i32, ptr %6, align 4, !tbaa !9
  %105 = icmp ne i32 %104, 0
  br i1 %105, label %106, label %113

106:                                              ; preds = %103
  %107 = load i32, ptr %6, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str.2, i64 noundef 84, i32 noundef %107)
          to label %108 unwind label %109

108:                                              ; preds = %106
  store i32 4, ptr %12, align 4
  br label %122

109:                                              ; preds = %115, %106, %101, %98
  %110 = landingpad { ptr, i32 }
          cleanup
  %111 = extractvalue { ptr, i32 } %110, 0
  store ptr %111, ptr %9, align 8
  %112 = extractvalue { ptr, i32 } %110, 1
  store i32 %112, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  br label %127

113:                                              ; preds = %103
  br label %114

114:                                              ; preds = %113
  br label %115

115:                                              ; preds = %114
  %116 = load ptr, ptr %5, align 8, !tbaa !5
  %117 = load ptr, ptr %15, align 8, !tbaa !5
  %118 = load i8, ptr %7, align 1, !tbaa !11, !range !13, !noundef !14
  %119 = trunc i8 %118 to i1
  %120 = invoke noundef i32 @_ZL16crl_info_to_jsonP13json_object_tPN7UapkiNS3Crl7CrlItemEb(ptr noundef %116, ptr noundef %117, i1 noundef zeroext %119)
          to label %121 unwind label %109

121:                                              ; preds = %115
  store i32 %120, ptr %6, align 4, !tbaa !9
  store i32 0, ptr %12, align 4
  br label %122

122:                                              ; preds = %121, %108
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  br label %123

123:                                              ; preds = %122, %90
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  br label %124

124:                                              ; preds = %123, %71
  call void @_ZN7UapkiNS7SmartBAD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  %125 = load i32, ptr %12, align 4
  switch i32 %125, label %133 [
    i32 0, label %126
    i32 4, label %131
  ]

126:                                              ; preds = %124
  br label %130

127:                                              ; preds = %109, %91
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  br label %128

128:                                              ; preds = %127, %76
  call void @_ZN7UapkiNS7SmartBAD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #6
  br label %129

129:                                              ; preds = %128, %72
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  br label %135

130:                                              ; preds = %126, %60
  br label %131

131:                                              ; preds = %130, %124, %58
  %132 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %132, ptr %3, align 4
  store i32 1, ptr %12, align 4
  br label %133

133:                                              ; preds = %131, %124, %58
  call void @_ZN7UapkiNS7SmartBAD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  %134 = load i32, ptr %3, align 4
  ret i32 %134

135:                                              ; preds = %129, %39, %35
  call void @_ZN7UapkiNS7SmartBAD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  br label %136

136:                                              ; preds = %135
  %137 = load ptr, ptr %9, align 8
  %138 = load i32, ptr %10, align 4
  %139 = insertvalue { ptr, i32 } poison, ptr %137, 0
  %140 = insertvalue { ptr, i32 } %139, i32 %138, 1
  resume { ptr, i32 } %140
}

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

declare noundef zeroext i1 @_ZN12ParsonHelper20jsonObjectGetBooleanEP13json_object_tPKcb(ptr noundef, ptr noundef, i1 noundef zeroext) #2

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

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

declare ptr @json_object_get_base64(ptr noundef, ptr noundef) #2

declare i32 @__gxx_personality_v0(...)

declare noundef i32 @_ZN7UapkiNS3Crl8parseCrlEPK12ByteArray_stPPNS0_7CrlItemE(ptr noundef, ptr noundef) #2

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

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

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL16crl_info_to_jsonP13json_object_tPN7UapkiNS3Crl7CrlItemEb(ptr noundef, ptr noundef, i1 noundef zeroext) #0

; Function Attrs: nounwind
declare void @_ZN7UapkiNS3Crl7CrlItemD1Ev(ptr noundef nonnull align 8 dereferenceable(268)) unnamed_addr #4

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

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

declare void @stacktrace_create(ptr noundef, i64 noundef, i32 noundef, ptr noundef) #2

declare noundef ptr @_ZN7UapkiNS12get_crlstoreEv() #2

declare noundef i32 @_ZN7UapkiNS3Crl8CrlStore13getCrlByCrlIdEPK12ByteArray_stPPNS0_7CrlItemE(ptr noundef nonnull align 8 dereferenceable(144), ptr noundef, ptr noundef) #2

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

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 = { 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 #4 = { 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 = { 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 #6 = { nounwind }
attributes #7 = { builtin nounwind }

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

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


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.UapkiNS::SmartBA" = type { ptr }

@.str = external hidden unnamed_addr constant [17 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @uapki_crl_info(ptr noundef %0, ptr noundef %1) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.UapkiNS::SmartBA", align 8
  %4 = alloca ptr, align 8
  %5 = alloca %"class.UapkiNS::SmartBA", align 8
  %6 = alloca ptr, align 8
  %7 = tail call noundef zeroext i1 @_ZN12ParsonHelper20jsonObjectGetBooleanEP13json_object_tPKcb(ptr noundef %0, ptr noundef nonnull @.str, i1 noundef zeroext true)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #6
  call void @_ZN7UapkiNS7SmartBAC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3)
  %8 = invoke ptr @json_object_get_base64(ptr noundef %0, ptr noundef nonnull @.str.1)
          to label %9 unwind label %16

9:                                                ; preds = %2
  %10 = call noundef zeroext i1 @_ZN7UapkiNS7SmartBA3setEP12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef %8)
  br i1 %10, label %11, label %29

11:                                               ; preds = %9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  store ptr null, ptr %4, align 8, !tbaa !5
  %12 = call noundef ptr @_ZNK7UapkiNS7SmartBA3getEv(ptr noundef nonnull align 8 dereferenceable(8) %3)
  %13 = invoke noundef i32 @_ZN7UapkiNS3Crl8parseCrlEPK12ByteArray_stPPNS0_7CrlItemE(ptr noundef %12, ptr noundef nonnull %4)
          to label %14 unwind label %18

14:                                               ; preds = %11
  %.not38 = icmp eq i32 %13, 0
  br i1 %.not38, label %20, label %15

15:                                               ; preds = %14
  invoke void @stacktrace_add(ptr noundef nonnull @.str.2, i64 noundef 65, i32 noundef %13)
          to label %28 unwind label %18

16:                                               ; preds = %2
  %17 = landingpad { ptr, i32 }
          cleanup
  br label %56

18:                                               ; preds = %20, %15, %11
  %19 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  br label %56

20:                                               ; preds = %14
  %21 = call noundef zeroext i1 @_ZN7UapkiNS7SmartBA3setEP12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef null)
  %22 = load ptr, ptr %4, align 8, !tbaa !5
  %23 = invoke noundef i32 @_ZL16crl_info_to_jsonP13json_object_tPN7UapkiNS3Crl7CrlItemEb(ptr noundef %1, ptr noundef %22, i1 noundef zeroext %7)
          to label %24 unwind label %18

24:                                               ; preds = %20
  %25 = load ptr, ptr %4, align 8, !tbaa !5
  %26 = icmp eq ptr %25, null
  br i1 %26, label %28, label %27

27:                                               ; preds = %24
  call void @_ZN7UapkiNS3Crl7CrlItemD1Ev(ptr noundef nonnull align 8 dereferenceable(268) %25) #6
  call void @_ZdlPvm(ptr noundef nonnull %25, i64 noundef 272) #7
  br label %28

28:                                               ; preds = %24, %27, %15
  %.027 = phi i32 [ %13, %15 ], [ %23, %27 ], [ %23, %24 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  br label %55

29:                                               ; preds = %9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #6
  call void @_ZN7UapkiNS7SmartBAC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5)
  %30 = invoke ptr @json_object_get_base64(ptr noundef %0, ptr noundef nonnull @.str.3)
          to label %31 unwind label %34

31:                                               ; preds = %29
  %32 = call noundef zeroext i1 @_ZN7UapkiNS7SmartBA3setEP12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef %30)
  br i1 %32, label %36, label %33

33:                                               ; preds = %31
  invoke void @stacktrace_create(ptr noundef nonnull @.str.2, i64 noundef 75, i32 noundef 4101, ptr noundef null)
          to label %53 unwind label %34

34:                                               ; preds = %33, %29
  %35 = landingpad { ptr, i32 }
          cleanup
  br label %54

36:                                               ; preds = %31
  %37 = invoke noundef ptr @_ZN7UapkiNS12get_crlstoreEv()
          to label %38 unwind label %40

38:                                               ; preds = %36
  %.not = icmp eq ptr %37, null
  br i1 %.not, label %39, label %42

39:                                               ; preds = %38
  invoke void @stacktrace_create(ptr noundef nonnull @.str.2, i64 noundef 80, i32 noundef 4097, ptr noundef null)
          to label %53 unwind label %40

40:                                               ; preds = %39, %36
  %41 = landingpad { ptr, i32 }
          cleanup
  br label %54

42:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #6
  store ptr null, ptr %6, align 8, !tbaa !5
  %43 = call noundef ptr @_ZNK7UapkiNS7SmartBA3getEv(ptr noundef nonnull align 8 dereferenceable(8) %5)
  %44 = invoke noundef i32 @_ZN7UapkiNS3Crl8CrlStore13getCrlByCrlIdEPK12ByteArray_stPPNS0_7CrlItemE(ptr noundef nonnull align 8 dereferenceable(144) %37, ptr noundef %43, ptr noundef nonnull %6)
          to label %45 unwind label %47

45:                                               ; preds = %42
  %.not35 = icmp eq i32 %44, 0
  br i1 %.not35, label %49, label %46

46:                                               ; preds = %45
  invoke void @stacktrace_add(ptr noundef nonnull @.str.2, i64 noundef 84, i32 noundef %44)
          to label %52 unwind label %47

47:                                               ; preds = %49, %46, %42
  %48 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  br label %54

49:                                               ; preds = %45
  %50 = load ptr, ptr %6, align 8, !tbaa !5
  %51 = invoke noundef i32 @_ZL16crl_info_to_jsonP13json_object_tPN7UapkiNS3Crl7CrlItemEb(ptr noundef %1, ptr noundef %50, i1 noundef zeroext %7)
          to label %52 unwind label %47

52:                                               ; preds = %49, %46
  %.128 = phi i32 [ %44, %46 ], [ %51, %49 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  br label %53

53:                                               ; preds = %52, %39, %33
  %.330 = phi i32 [ 4101, %33 ], [ %.128, %52 ], [ 4097, %39 ]
  call void @_ZN7UapkiNS7SmartBAD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  br label %55

54:                                               ; preds = %40, %47, %34
  %.pn.pn = phi { ptr, i32 } [ %35, %34 ], [ %48, %47 ], [ %41, %40 ]
  call void @_ZN7UapkiNS7SmartBAD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  br label %56

55:                                               ; preds = %53, %28
  %.0 = phi i32 [ %.027, %28 ], [ %.330, %53 ]
  call void @_ZN7UapkiNS7SmartBAD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  ret i32 %.0

56:                                               ; preds = %54, %18, %16
  %.pn39 = phi { ptr, i32 } [ %19, %18 ], [ %.pn.pn, %54 ], [ %17, %16 ]
  call void @_ZN7UapkiNS7SmartBAD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  resume { ptr, i32 } %.pn39
}

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

declare noundef zeroext i1 @_ZN12ParsonHelper20jsonObjectGetBooleanEP13json_object_tPKcb(ptr noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #2

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

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

declare ptr @json_object_get_base64(ptr noundef, ptr noundef) local_unnamed_addr #2

declare i32 @__gxx_personality_v0(...)

declare noundef i32 @_ZN7UapkiNS3Crl8parseCrlEPK12ByteArray_stPPNS0_7CrlItemE(ptr noundef, ptr noundef) local_unnamed_addr #2

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

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

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL16crl_info_to_jsonP13json_object_tPN7UapkiNS3Crl7CrlItemEb(ptr noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #0

; Function Attrs: nounwind
declare void @_ZN7UapkiNS3Crl7CrlItemD1Ev(ptr noundef nonnull align 8 dereferenceable(268)) unnamed_addr #4

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

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

declare void @stacktrace_create(ptr noundef, i64 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

declare noundef ptr @_ZN7UapkiNS12get_crlstoreEv() local_unnamed_addr #2

declare noundef i32 @_ZN7UapkiNS3Crl8CrlStore13getCrlByCrlIdEPK12ByteArray_stPPNS0_7CrlItemE(ptr noundef nonnull align 8 dereferenceable(144), ptr noundef, ptr noundef) local_unnamed_addr #2

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

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 = { 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 #4 = { 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 = { 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 #6 = { nounwind }
attributes #7 = { builtin nounwind }

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

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


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