; LLVM IR from gulrak/filesystem :: test/filesystem_test.ll (ZN5Catch4listERKSt10shared_ptrINS_6ConfigEE)

; 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.Catch::Option" = type { ptr, [8 x i8] }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZN5Catch13listReportersEv() #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5Catch4listERKSt10shared_ptrINS_6ConfigEE(ptr dead_on_unwind noalias writable sret(%"class.Catch::Option") align 8 %0, ptr noundef nonnull align 8 dereferenceable(16) %1) #2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i1, align 1
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca %"class.std::shared_ptr", align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  store ptr %0, ptr %3, align 8
  store ptr %1, ptr %4, align 8, !tbaa !5
  store i1 false, ptr %5, align 1
  call void @_ZN5Catch6OptionImEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %0)
  %17 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN5Catch24getCurrentMutableContextEv()
          to label %18 unwind label %37

18:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #4
  %19 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZNSt10shared_ptrIKN5Catch7IConfigEEC2INS0_6ConfigEvEERKS_IT_E(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef nonnull align 8 dereferenceable(16) %19) #4
  %20 = load ptr, ptr %17, align 8, !tbaa !9
  %21 = getelementptr inbounds ptr, ptr %20, i64 7
  %22 = load ptr, ptr %21, align 8
  invoke void %22(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(16) %8)
          to label %23 unwind label %41

23:                                               ; preds = %18
  call void @_ZNSt12__shared_ptrIKN5Catch7IConfigELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #4
  %24 = load ptr, ptr %4, align 8, !tbaa !5
  %25 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN5Catch6ConfigELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %24) #4
  %26 = call noundef zeroext i1 @_ZNK5Catch6Config9listTestsEv(ptr noundef nonnull align 8 dereferenceable(337) %25)
  br i1 %26, label %27, label %49

27:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  store i64 0, ptr %10, align 8, !tbaa !11
  %28 = invoke noundef i64 @_ZNK5Catch6OptionImE7valueOrERKm(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(8) %10)
          to label %29 unwind label %45

29:                                               ; preds = %27
  %30 = load ptr, ptr %4, align 8, !tbaa !5
  %31 = call noundef nonnull align 8 dereferenceable(337) ptr @_ZNKSt19__shared_ptr_accessIN5Catch6ConfigELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv(ptr noundef nonnull align 1 dereferenceable(1) %30) #4
  %32 = invoke noundef i64 @_ZN5Catch9listTestsERKNS_6ConfigE(ptr noundef nonnull align 8 dereferenceable(337) %31)
          to label %33 unwind label %45

33:                                               ; preds = %29
  %34 = add i64 %28, %32
  store i64 %34, ptr %9, align 8, !tbaa !11
  %35 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN5Catch6OptionImEaSERKm(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %36 unwind label %45

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

37:                                               ; preds = %2
  %38 = landingpad { ptr, i32 }
          cleanup
  %39 = extractvalue { ptr, i32 } %38, 0
  store ptr %39, ptr %6, align 8
  %40 = extractvalue { ptr, i32 } %38, 1
  store i32 %40, ptr %7, align 4
  br label %105

41:                                               ; preds = %18
  %42 = landingpad { ptr, i32 }
          cleanup
  %43 = extractvalue { ptr, i32 } %42, 0
  store ptr %43, ptr %6, align 8
  %44 = extractvalue { ptr, i32 } %42, 1
  store i32 %44, ptr %7, align 4
  call void @_ZNSt12__shared_ptrIKN5Catch7IConfigELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #4
  br label %105

45:                                               ; preds = %33, %29, %27
  %46 = landingpad { ptr, i32 }
          cleanup
  %47 = extractvalue { ptr, i32 } %46, 0
  store ptr %47, ptr %6, align 8
  %48 = extractvalue { ptr, i32 } %46, 1
  store i32 %48, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  br label %105

49:                                               ; preds = %36, %23
  %50 = load ptr, ptr %4, align 8, !tbaa !5
  %51 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN5Catch6ConfigELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %50) #4
  %52 = call noundef zeroext i1 @_ZNK5Catch6Config17listTestNamesOnlyEv(ptr noundef nonnull align 8 dereferenceable(337) %51)
  br i1 %52, label %53, label %67

53:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  store i64 0, ptr %12, align 8, !tbaa !11
  %54 = invoke noundef i64 @_ZNK5Catch6OptionImE7valueOrERKm(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(8) %12)
          to label %55 unwind label %63

55:                                               ; preds = %53
  %56 = load ptr, ptr %4, align 8, !tbaa !5
  %57 = call noundef nonnull align 8 dereferenceable(337) ptr @_ZNKSt19__shared_ptr_accessIN5Catch6ConfigELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv(ptr noundef nonnull align 1 dereferenceable(1) %56) #4
  %58 = invoke noundef i64 @_ZN5Catch18listTestsNamesOnlyERKNS_6ConfigE(ptr noundef nonnull align 8 dereferenceable(337) %57)
          to label %59 unwind label %63

59:                                               ; preds = %55
  %60 = add i64 %54, %58
  store i64 %60, ptr %11, align 8, !tbaa !11
  %61 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN5Catch6OptionImEaSERKm(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(8) %11)
          to label %62 unwind label %63

62:                                               ; preds = %59
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  br label %67

63:                                               ; preds = %59, %55, %53
  %64 = landingpad { ptr, i32 }
          cleanup
  %65 = extractvalue { ptr, i32 } %64, 0
  store ptr %65, ptr %6, align 8
  %66 = extractvalue { ptr, i32 } %64, 1
  store i32 %66, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  br label %105

67:                                               ; preds = %62, %49
  %68 = load ptr, ptr %4, align 8, !tbaa !5
  %69 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN5Catch6ConfigELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %68) #4
  %70 = call noundef zeroext i1 @_ZNK5Catch6Config8listTagsEv(ptr noundef nonnull align 8 dereferenceable(337) %69)
  br i1 %70, label %71, label %85

71:                                               ; preds = %67
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  store i64 0, ptr %14, align 8, !tbaa !11
  %72 = invoke noundef i64 @_ZNK5Catch6OptionImE7valueOrERKm(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(8) %14)
          to label %73 unwind label %81

73:                                               ; preds = %71
  %74 = load ptr, ptr %4, align 8, !tbaa !5
  %75 = call noundef nonnull align 8 dereferenceable(337) ptr @_ZNKSt19__shared_ptr_accessIN5Catch6ConfigELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv(ptr noundef nonnull align 1 dereferenceable(1) %74) #4
  %76 = invoke noundef i64 @_ZN5Catch8listTagsERKNS_6ConfigE(ptr noundef nonnull align 8 dereferenceable(337) %75)
          to label %77 unwind label %81

77:                                               ; preds = %73
  %78 = add i64 %72, %76
  store i64 %78, ptr %13, align 8, !tbaa !11
  %79 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN5Catch6OptionImEaSERKm(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(8) %13)
          to label %80 unwind label %81

80:                                               ; preds = %77
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  br label %85

81:                                               ; preds = %77, %73, %71
  %82 = landingpad { ptr, i32 }
          cleanup
  %83 = extractvalue { ptr, i32 } %82, 0
  store ptr %83, ptr %6, align 8
  %84 = extractvalue { ptr, i32 } %82, 1
  store i32 %84, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  br label %105

85:                                               ; preds = %80, %67
  %86 = load ptr, ptr %4, align 8, !tbaa !5
  %87 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN5Catch6ConfigELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %86) #4
  %88 = call noundef zeroext i1 @_ZNK5Catch6Config13listReportersEv(ptr noundef nonnull align 8 dereferenceable(337) %87)
  br i1 %88, label %89, label %101

89:                                               ; preds = %85
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  store i64 0, ptr %16, align 8, !tbaa !11
  %90 = invoke noundef i64 @_ZNK5Catch6OptionImE7valueOrERKm(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(8) %16)
          to label %91 unwind label %97

91:                                               ; preds = %89
  %92 = invoke noundef i64 @_ZN5Catch13listReportersEv()
          to label %93 unwind label %97

93:                                               ; preds = %91
  %94 = add i64 %90, %92
  store i64 %94, ptr %15, align 8, !tbaa !11
  %95 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN5Catch6OptionImEaSERKm(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(8) %15)
          to label %96 unwind label %97

96:                                               ; preds = %93
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  br label %101

97:                                               ; preds = %93, %91, %89
  %98 = landingpad { ptr, i32 }
          cleanup
  %99 = extractvalue { ptr, i32 } %98, 0
  store ptr %99, ptr %6, align 8
  %100 = extractvalue { ptr, i32 } %98, 1
  store i32 %100, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  br label %105

101:                                              ; preds = %96, %85
  store i1 true, ptr %5, align 1
  %102 = load i1, ptr %5, align 1
  br i1 %102, label %104, label %103

103:                                              ; preds = %101
  call void @_ZN5Catch6OptionImED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %0) #4
  br label %104

104:                                              ; preds = %103, %101
  ret void

105:                                              ; preds = %97, %81, %63, %45, %41, %37
  call void @_ZN5Catch6OptionImED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %0) #4
  br label %106

106:                                              ; preds = %105
  %107 = load ptr, ptr %6, align 8
  %108 = load i32, ptr %7, align 4
  %109 = insertvalue { ptr, i32 } poison, ptr %107, 0
  %110 = insertvalue { ptr, i32 } %109, i32 %108, 1
  resume { ptr, i32 } %110
}

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN5Catch24getCurrentMutableContextEv() #3

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

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

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

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

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

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

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

!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 = !{!"vtable pointer", !8, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}


; 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.Catch::Option" = type { ptr, [8 x i8] }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZN5Catch13listReportersEv() local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5Catch4listERKSt10shared_ptrINS_6ConfigEE(ptr dead_on_unwind noalias nonnull writable sret(%"class.Catch::Option") align 8 %0, ptr noundef nonnull align 8 dereferenceable(16) %1) local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.std::shared_ptr", align 8
  %4 = alloca i64, align 8
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  tail call void @_ZN5Catch6OptionImEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %0)
  %12 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN5Catch24getCurrentMutableContextEv()
          to label %13 unwind label %27

13:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #4
  call void @_ZNSt10shared_ptrIKN5Catch7IConfigEEC2INS0_6ConfigEvEERKS_IT_E(ptr noundef nonnull align 8 dereferenceable(16) %3, ptr noundef nonnull align 8 dereferenceable(16) %1) #4
  %14 = load ptr, ptr %12, align 8, !tbaa !5
  %15 = getelementptr inbounds i8, ptr %14, i64 56
  %16 = load ptr, ptr %15, align 8
  invoke void %16(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(16) %3)
          to label %17 unwind label %29

17:                                               ; preds = %13
  call void @_ZNSt12__shared_ptrIKN5Catch7IConfigELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %3) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #4
  %18 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN5Catch6ConfigELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %1) #4
  %19 = call noundef zeroext i1 @_ZNK5Catch6Config9listTestsEv(ptr noundef nonnull align 8 dereferenceable(337) %18)
  br i1 %19, label %20, label %33

20:                                               ; preds = %17
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #4
  store i64 0, ptr %5, align 8, !tbaa !8
  %21 = call noundef i64 @_ZNK5Catch6OptionImE7valueOrERKm(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(8) %5)
  %22 = call noundef nonnull align 8 dereferenceable(337) ptr @_ZNKSt19__shared_ptr_accessIN5Catch6ConfigELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv(ptr noundef nonnull align 1 dereferenceable(1) %1) #4
  %23 = invoke noundef i64 @_ZN5Catch9listTestsERKNS_6ConfigE(ptr noundef nonnull align 8 dereferenceable(337) %22)
          to label %24 unwind label %31

24:                                               ; preds = %20
  %25 = add i64 %23, %21
  store i64 %25, ptr %4, align 8, !tbaa !8
  %26 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN5Catch6OptionImEaSERKm(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(8) %4)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #4
  br label %33

27:                                               ; preds = %2
  %28 = landingpad { ptr, i32 }
          cleanup
  br label %69

29:                                               ; preds = %13
  %30 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt12__shared_ptrIKN5Catch7IConfigELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %3) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #4
  br label %69

31:                                               ; preds = %20
  %32 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #4
  br label %69

33:                                               ; preds = %24, %17
  %34 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN5Catch6ConfigELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %1) #4
  %35 = call noundef zeroext i1 @_ZNK5Catch6Config17listTestNamesOnlyEv(ptr noundef nonnull align 8 dereferenceable(337) %34)
  br i1 %35, label %36, label %45

36:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #4
  store i64 0, ptr %7, align 8, !tbaa !8
  %37 = call noundef i64 @_ZNK5Catch6OptionImE7valueOrERKm(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(8) %7)
  %38 = call noundef nonnull align 8 dereferenceable(337) ptr @_ZNKSt19__shared_ptr_accessIN5Catch6ConfigELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv(ptr noundef nonnull align 1 dereferenceable(1) %1) #4
  %39 = invoke noundef i64 @_ZN5Catch18listTestsNamesOnlyERKNS_6ConfigE(ptr noundef nonnull align 8 dereferenceable(337) %38)
          to label %40 unwind label %43

40:                                               ; preds = %36
  %41 = add i64 %39, %37
  store i64 %41, ptr %6, align 8, !tbaa !8
  %42 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN5Catch6OptionImEaSERKm(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(8) %6)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #4
  br label %45

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

45:                                               ; preds = %40, %33
  %46 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN5Catch6ConfigELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %1) #4
  %47 = call noundef zeroext i1 @_ZNK5Catch6Config8listTagsEv(ptr noundef nonnull align 8 dereferenceable(337) %46)
  br i1 %47, label %48, label %57

48:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #4
  store i64 0, ptr %9, align 8, !tbaa !8
  %49 = call noundef i64 @_ZNK5Catch6OptionImE7valueOrERKm(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(8) %9)
  %50 = call noundef nonnull align 8 dereferenceable(337) ptr @_ZNKSt19__shared_ptr_accessIN5Catch6ConfigELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv(ptr noundef nonnull align 1 dereferenceable(1) %1) #4
  %51 = invoke noundef i64 @_ZN5Catch8listTagsERKNS_6ConfigE(ptr noundef nonnull align 8 dereferenceable(337) %50)
          to label %52 unwind label %55

52:                                               ; preds = %48
  %53 = add i64 %51, %49
  store i64 %53, ptr %8, align 8, !tbaa !8
  %54 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN5Catch6OptionImEaSERKm(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(8) %8)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #4
  br label %57

55:                                               ; preds = %48
  %56 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #4
  br label %69

57:                                               ; preds = %52, %45
  %58 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN5Catch6ConfigELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %1) #4
  %59 = call noundef zeroext i1 @_ZNK5Catch6Config13listReportersEv(ptr noundef nonnull align 8 dereferenceable(337) %58)
  br i1 %59, label %60, label %68

60:                                               ; preds = %57
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #4
  store i64 0, ptr %11, align 8, !tbaa !8
  %61 = call noundef i64 @_ZNK5Catch6OptionImE7valueOrERKm(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(8) %11)
  %62 = invoke noundef i64 @_ZN5Catch13listReportersEv()
          to label %63 unwind label %66

63:                                               ; preds = %60
  %64 = add i64 %62, %61
  store i64 %64, ptr %10, align 8, !tbaa !8
  %65 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN5Catch6OptionImEaSERKm(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(8) %10)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #4
  br label %68

66:                                               ; preds = %60
  %67 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #4
  br label %69

68:                                               ; preds = %57, %63
  ret void

69:                                               ; preds = %66, %55, %43, %31, %29, %27
  %.pn = phi { ptr, i32 } [ %67, %66 ], [ %56, %55 ], [ %44, %43 ], [ %32, %31 ], [ %30, %29 ], [ %28, %27 ]
  call void @_ZN5Catch6OptionImED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %0) #4
  resume { ptr, i32 } %.pn
}

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

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

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

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

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

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

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

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

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

!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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"long", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}


; Effective O3 passes: GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass