; LLVM IR from alibaba/euler :: euler/core/index (common_index_result)

; 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.std::shared_ptr.22" = type { %"class.std::__shared_ptr.23" }
%"class.std::__shared_ptr.23" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.euler::LogMessageFatal" = type { %"class.euler::LogMessage.base", %"class.std::basic_ios" }
%"class.euler::LogMessage.base" = type { %"class.std::__cxx11::basic_ostringstream.base", ptr, i32, i32 }
%"class.std::__cxx11::basic_ostringstream.base" = type { %"class.std::basic_ostream.base", %"class.std::__cxx11::basic_stringbuf" }
%"class.std::basic_ostream.base" = type { ptr }
%"class.std::__cxx11::basic_stringbuf" = type { %"class.std::basic_streambuf", i32, %"class.std::__cxx11::basic_string" }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::allocator" = type { i8 }
%class.anon.25 = type { i8 }
%"class.__gnu_cxx::__normal_iterator.27" = type { ptr }
%"class.std::back_insert_iterator" = type { ptr }
%"class.euler::CommonIndexResult" = type { %"class.euler::IndexResult", %"class.std::vector", %"class.std::shared_ptr" }
%"class.euler::IndexResult" = type { ptr, i32, %"class.std::__cxx11::basic_string" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::pair<unsigned long, float>, std::allocator<std::pair<unsigned long, float>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<unsigned long, float>, std::allocator<std::pair<unsigned long, float>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<unsigned long, float>, std::allocator<std::pair<unsigned long, float>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<unsigned long, float>, std::allocator<std::pair<unsigned long, float>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }

@_ZTIN5euler11IndexResultE = external dso_local constant { ptr, ptr }, align 8
@_ZTIN5euler17CommonIndexResultE = external dso_local constant { ptr, ptr, ptr }, align 8
@.str = external hidden unnamed_addr constant [87 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [7 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5euler17CommonIndexResult12IntersectionESt10shared_ptrINS_11IndexResultEE(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr.22") align 8 %0, ptr noundef nonnull align 8 dereferenceable(88) %1, ptr noundef %2) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca %"class.std::shared_ptr.22", align 8
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca %"class.std::shared_ptr.22", align 8
  %13 = alloca %"class.euler::LogMessageFatal", align 8
  %14 = alloca %"class.euler::LogMessageFatal", align 8
  %15 = alloca ptr, align 8
  %16 = alloca %"class.std::__cxx11::basic_string", align 8
  %17 = alloca %"class.std::allocator", align 1
  %18 = alloca i1, align 1
  %19 = alloca %class.anon.25, align 1
  %20 = alloca %"class.__gnu_cxx::__normal_iterator.27", align 8
  %21 = alloca %"class.__gnu_cxx::__normal_iterator.27", align 8
  %22 = alloca %"class.__gnu_cxx::__normal_iterator.27", align 8
  %23 = alloca %"class.__gnu_cxx::__normal_iterator.27", align 8
  %24 = alloca %"class.std::back_insert_iterator", align 8
  %25 = alloca %class.anon.25, align 1
  %26 = alloca %"class.std::back_insert_iterator", align 8
  store ptr %0, ptr %4, align 8
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %27 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #9
  store ptr null, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #9
  call void @_ZNSt10shared_ptrIN5euler11IndexResultEEC2EDn(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr null) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #9
  %28 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN5euler11IndexResultELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %2) #9
  %29 = load ptr, ptr %28, align 8, !tbaa !9
  %30 = getelementptr inbounds ptr, ptr %29, i64 3
  %31 = load ptr, ptr %30, align 8
  %32 = invoke noundef i32 %31(ptr noundef nonnull align 8 dereferenceable(48) %28)
          to label %33 unwind label %47

33:                                               ; preds = %3
  store i32 %32, ptr %9, align 4, !tbaa !11
  %34 = load i32, ptr %9, align 4, !tbaa !11
  %35 = icmp ne i32 %34, 2
  br i1 %35, label %36, label %74

36:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #9
  %37 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN5euler11IndexResultELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %2) #9
  %38 = load ptr, ptr %37, align 8, !tbaa !9
  %39 = getelementptr inbounds ptr, ptr %38, i64 8
  %40 = load ptr, ptr %39, align 8
  invoke void %40(ptr dead_on_unwind writable sret(%"class.std::shared_ptr.22") align 8 %12, ptr noundef nonnull align 8 dereferenceable(48) %37)
          to label %41 unwind label %51

41:                                               ; preds = %36
  %42 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt10shared_ptrIN5euler11IndexResultEEaSEOS2_(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef nonnull align 8 dereferenceable(16) %12) #9
  call void @_ZNSt12__shared_ptrIN5euler11IndexResultELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #9
  %43 = call noundef ptr @_ZNKSt12__shared_ptrIN5euler11IndexResultELN9__gnu_cxx12_Lock_policyE2EE3getEv(ptr noundef nonnull align 8 dereferenceable(16) %8) #9
  %44 = icmp eq ptr %43, null
  br i1 %44, label %55, label %45

45:                                               ; preds = %41
  %46 = call ptr @__dynamic_cast(ptr %43, ptr @_ZTIN5euler11IndexResultE, ptr @_ZTIN5euler17CommonIndexResultE, i64 0) #9
  br label %56

47:                                               ; preds = %3
  %48 = landingpad { ptr, i32 }
          cleanup
  %49 = extractvalue { ptr, i32 } %48, 0
  store ptr %49, ptr %10, align 8
  %50 = extractvalue { ptr, i32 } %48, 1
  store i32 %50, ptr %11, align 4
  br label %158

51:                                               ; preds = %36
  %52 = landingpad { ptr, i32 }
          cleanup
  %53 = extractvalue { ptr, i32 } %52, 0
  store ptr %53, ptr %10, align 8
  %54 = extractvalue { ptr, i32 } %52, 1
  store i32 %54, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #9
  br label %158

55:                                               ; preds = %41
  br label %56

56:                                               ; preds = %55, %45
  %57 = phi ptr [ %46, %45 ], [ null, %55 ]
  store ptr %57, ptr %7, align 8, !tbaa !5
  %58 = load ptr, ptr %7, align 8, !tbaa !5
  %59 = icmp eq ptr %58, null
  br i1 %59, label %60, label %73

60:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 392, ptr %13) #9
  invoke void @_ZN5euler15LogMessageFatalC1EPKci(ptr noundef nonnull align 8 dereferenceable(128) %13, ptr noundef @.str, i32 noundef 75)
          to label %61 unwind label %64

61:                                               ; preds = %60
  %62 = invoke noundef nonnull align 8 dereferenceable(128) ptr @_ZStlsIN5euler15LogMessageFatalEA52_cEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(128) %13, ptr noundef nonnull align 1 dereferenceable(52) @.str.1)
          to label %63 unwind label %68

63:                                               ; preds = %61
  call void @_ZN5euler15LogMessageFatalD1Ev(ptr noundef nonnull align 8 dereferenceable(128) %13) #9
  call void @llvm.lifetime.end.p0(i64 392, ptr %13) #9
  br label %73

64:                                               ; preds = %60
  %65 = landingpad { ptr, i32 }
          cleanup
  %66 = extractvalue { ptr, i32 } %65, 0
  store ptr %66, ptr %10, align 8
  %67 = extractvalue { ptr, i32 } %65, 1
  store i32 %67, ptr %11, align 4
  br label %72

68:                                               ; preds = %61
  %69 = landingpad { ptr, i32 }
          cleanup
  %70 = extractvalue { ptr, i32 } %69, 0
  store ptr %70, ptr %10, align 8
  %71 = extractvalue { ptr, i32 } %69, 1
  store i32 %71, ptr %11, align 4
  call void @_ZN5euler15LogMessageFatalD1Ev(ptr noundef nonnull align 8 dereferenceable(128) %13) #9
  br label %72

72:                                               ; preds = %68, %64
  call void @llvm.lifetime.end.p0(i64 392, ptr %13) #9
  br label %158

73:                                               ; preds = %63, %56
  br label %98

74:                                               ; preds = %33
  %75 = call noundef ptr @_ZNKSt12__shared_ptrIN5euler11IndexResultELN9__gnu_cxx12_Lock_policyE2EE3getEv(ptr noundef nonnull align 8 dereferenceable(16) %2) #9
  %76 = icmp eq ptr %75, null
  br i1 %76, label %79, label %77

77:                                               ; preds = %74
  %78 = call ptr @__dynamic_cast(ptr %75, ptr @_ZTIN5euler11IndexResultE, ptr @_ZTIN5euler17CommonIndexResultE, i64 0) #9
  br label %80

79:                                               ; preds = %74
  br label %80

80:                                               ; preds = %79, %77
  %81 = phi ptr [ %78, %77 ], [ null, %79 ]
  store ptr %81, ptr %7, align 8, !tbaa !5
  %82 = load ptr, ptr %7, align 8, !tbaa !5
  %83 = icmp eq ptr %82, null
  br i1 %83, label %84, label %97

84:                                               ; preds = %80
  call void @llvm.lifetime.start.p0(i64 392, ptr %14) #9
  invoke void @_ZN5euler15LogMessageFatalC1EPKci(ptr noundef nonnull align 8 dereferenceable(128) %14, ptr noundef @.str, i32 noundef 80)
          to label %85 unwind label %88

85:                                               ; preds = %84
  %86 = invoke noundef nonnull align 8 dereferenceable(128) ptr @_ZStlsIN5euler15LogMessageFatalEA52_cEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(128) %14, ptr noundef nonnull align 1 dereferenceable(52) @.str.1)
          to label %87 unwind label %92

87:                                               ; preds = %85
  call void @_ZN5euler15LogMessageFatalD1Ev(ptr noundef nonnull align 8 dereferenceable(128) %14) #9
  call void @llvm.lifetime.end.p0(i64 392, ptr %14) #9
  br label %97

88:                                               ; preds = %84
  %89 = landingpad { ptr, i32 }
          cleanup
  %90 = extractvalue { ptr, i32 } %89, 0
  store ptr %90, ptr %10, align 8
  %91 = extractvalue { ptr, i32 } %89, 1
  store i32 %91, ptr %11, align 4
  br label %96

92:                                               ; preds = %85
  %93 = landingpad { ptr, i32 }
          cleanup
  %94 = extractvalue { ptr, i32 } %93, 0
  store ptr %94, ptr %10, align 8
  %95 = extractvalue { ptr, i32 } %93, 1
  store i32 %95, ptr %11, align 4
  call void @_ZN5euler15LogMessageFatalD1Ev(ptr noundef nonnull align 8 dereferenceable(128) %14) #9
  br label %96

96:                                               ; preds = %92, %88
  call void @llvm.lifetime.end.p0(i64 392, ptr %14) #9
  br label %158

97:                                               ; preds = %87, %80
  br label %98

98:                                               ; preds = %97, %73
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #9
  %99 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 88) #10
          to label %100 unwind label %137

100:                                              ; preds = %98
  store i1 true, ptr %18, align 1
  call void @llvm.lifetime.start.p0(i64 32, ptr %16) #9
  call void @llvm.lifetime.start.p0(i64 1, ptr %17) #9
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #9
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef @.str.2, ptr noundef nonnull align 1 dereferenceable(1) %17)
          to label %101 unwind label %141

101:                                              ; preds = %100
  invoke void @_ZN5euler17CommonIndexResultC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(88) %99, ptr noundef nonnull align 8 dereferenceable(32) %16)
          to label %102 unwind label %145

102:                                              ; preds = %101
  store i1 false, ptr %18, align 1
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #9
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %16) #9
  store ptr %99, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %19) #9
  %103 = getelementptr inbounds %"class.euler::CommonIndexResult", ptr %27, i32 0, i32 1
  %104 = call ptr @_ZNSt6vectorISt4pairImfESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %103) #9
  %105 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.27", ptr %20, i32 0, i32 0
  store ptr %104, ptr %105, align 8
  %106 = getelementptr inbounds %"class.euler::CommonIndexResult", ptr %27, i32 0, i32 1
  %107 = call ptr @_ZNSt6vectorISt4pairImfESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %106) #9
  %108 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.27", ptr %21, i32 0, i32 0
  store ptr %107, ptr %108, align 8
  %109 = load ptr, ptr %7, align 8, !tbaa !5
  %110 = getelementptr inbounds %"class.euler::CommonIndexResult", ptr %109, i32 0, i32 1
  %111 = call ptr @_ZNSt6vectorISt4pairImfESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %110) #9
  %112 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.27", ptr %22, i32 0, i32 0
  store ptr %111, ptr %112, align 8
  %113 = load ptr, ptr %7, align 8, !tbaa !5
  %114 = getelementptr inbounds %"class.euler::CommonIndexResult", ptr %113, i32 0, i32 1
  %115 = call ptr @_ZNSt6vectorISt4pairImfESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %114) #9
  %116 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.27", ptr %23, i32 0, i32 0
  store ptr %115, ptr %116, align 8
  %117 = load ptr, ptr %15, align 8, !tbaa !5
  %118 = getelementptr inbounds %"class.euler::CommonIndexResult", ptr %117, i32 0, i32 1
  %119 = invoke ptr @_ZSt13back_inserterISt6vectorISt4pairImfESaIS2_EEESt20back_insert_iteratorIT_ERS6_(ptr noundef nonnull align 8 dereferenceable(24) %118)
          to label %120 unwind label %153

120:                                              ; preds = %102
  %121 = getelementptr inbounds %"class.std::back_insert_iterator", ptr %24, i32 0, i32 0
  store ptr %119, ptr %121, align 8
  %122 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.27", ptr %20, i32 0, i32 0
  %123 = load ptr, ptr %122, align 8
  %124 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.27", ptr %21, i32 0, i32 0
  %125 = load ptr, ptr %124, align 8
  %126 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.27", ptr %22, i32 0, i32 0
  %127 = load ptr, ptr %126, align 8
  %128 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.27", ptr %23, i32 0, i32 0
  %129 = load ptr, ptr %128, align 8
  %130 = getelementptr inbounds %"class.std::back_insert_iterator", ptr %24, i32 0, i32 0
  %131 = load ptr, ptr %130, align 8
  %132 = invoke ptr @"_ZSt16set_intersectionIN9__gnu_cxx17__normal_iteratorIPSt4pairImfESt6vectorIS3_SaIS3_EEEES8_St20back_insert_iteratorIS7_EZN5euler17CommonIndexResult12IntersectionESt10shared_ptrINSB_11IndexResultEEE3$_0ET1_T_SI_T0_SJ_SH_T2_"(ptr %123, ptr %125, ptr %127, ptr %129, ptr %131)
          to label %133 unwind label %153

133:                                              ; preds = %120
  %134 = getelementptr inbounds %"class.std::back_insert_iterator", ptr %26, i32 0, i32 0
  store ptr %132, ptr %134, align 8
  %135 = load ptr, ptr %15, align 8, !tbaa !5
  invoke void @_ZNSt10shared_ptrIN5euler11IndexResultEEC2INS0_17CommonIndexResultEvEEPT_(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef %135)
          to label %136 unwind label %153

136:                                              ; preds = %133
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #9
  call void @_ZNSt12__shared_ptrIN5euler11IndexResultELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #9
  ret void

137:                                              ; preds = %98
  %138 = landingpad { ptr, i32 }
          cleanup
  %139 = extractvalue { ptr, i32 } %138, 0
  store ptr %139, ptr %10, align 8
  %140 = extractvalue { ptr, i32 } %138, 1
  store i32 %140, ptr %11, align 4
  br label %157

141:                                              ; preds = %100
  %142 = landingpad { ptr, i32 }
          cleanup
  %143 = extractvalue { ptr, i32 } %142, 0
  store ptr %143, ptr %10, align 8
  %144 = extractvalue { ptr, i32 } %142, 1
  store i32 %144, ptr %11, align 4
  br label %149

145:                                              ; preds = %101
  %146 = landingpad { ptr, i32 }
          cleanup
  %147 = extractvalue { ptr, i32 } %146, 0
  store ptr %147, ptr %10, align 8
  %148 = extractvalue { ptr, i32 } %146, 1
  store i32 %148, ptr %11, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #9
  br label %149

149:                                              ; preds = %145, %141
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %16) #9
  %150 = load i1, ptr %18, align 1
  br i1 %150, label %151, label %152

151:                                              ; preds = %149
  call void @_ZdlPvm(ptr noundef %99, i64 noundef 88) #11
  br label %152

152:                                              ; preds = %151, %149
  br label %157

153:                                              ; preds = %133, %120, %102
  %154 = landingpad { ptr, i32 }
          cleanup
  %155 = extractvalue { ptr, i32 } %154, 0
  store ptr %155, ptr %10, align 8
  %156 = extractvalue { ptr, i32 } %154, 1
  store i32 %156, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #9
  br label %157

157:                                              ; preds = %153, %152, %137
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #9
  br label %158

158:                                              ; preds = %157, %96, %72, %51, %47
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #9
  call void @_ZNSt12__shared_ptrIN5euler11IndexResultELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #9
  br label %159

159:                                              ; preds = %158
  %160 = load ptr, ptr %10, align 8
  %161 = load i32, ptr %11, align 4
  %162 = insertvalue { ptr, i32 } poison, ptr %160, 0
  %163 = insertvalue { ptr, i32 } %162, i32 %161, 1
  resume { ptr, i32 } %163
}

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

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

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

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

; Function Attrs: nounwind willreturn memory(read)
declare ptr @__dynamic_cast(ptr, ptr, ptr, i64) #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(128) ptr @_ZStlsIN5euler15LogMessageFatalEA52_cEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef nonnull align 1 dereferenceable(52)) #5

declare void @_ZN5euler15LogMessageFatalC1EPKci(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef, i32 noundef) unnamed_addr #6

; Function Attrs: nounwind
declare void @_ZN5euler15LogMessageFatalD1Ev(ptr noundef nonnull align 8 dereferenceable(128)) unnamed_addr #7

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden ptr @"_ZSt16set_intersectionIN9__gnu_cxx17__normal_iteratorIPSt4pairImfESt6vectorIS3_SaIS3_EEEES8_St20back_insert_iteratorIS7_EZN5euler17CommonIndexResult12IntersectionESt10shared_ptrINSB_11IndexResultEEE3$_0ET1_T_SI_T0_SJ_SH_T2_"(ptr, ptr, ptr, ptr, ptr) #5

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local ptr @_ZSt13back_inserterISt6vectorISt4pairImfESaIS2_EEESt20back_insert_iteratorIT_ERS6_(ptr noundef nonnull align 8 dereferenceable(24)) #5

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { 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 willreturn memory(read) }
attributes #5 = { 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 #6 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nounwind "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 = { 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 #9 = { nounwind }
attributes #10 = { builtin allocsize(0) }
attributes #11 = { 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 = !{!"vtable pointer", !8, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"_ZTSN5euler15IndexResultTypeE", !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.std::shared_ptr.22" = type { %"class.std::__shared_ptr.23" }
%"class.std::__shared_ptr.23" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.euler::LogMessageFatal" = type { %"class.euler::LogMessage.base", %"class.std::basic_ios" }
%"class.euler::LogMessage.base" = type { %"class.std::__cxx11::basic_ostringstream.base", ptr, i32, i32 }
%"class.std::__cxx11::basic_ostringstream.base" = type { %"class.std::basic_ostream.base", %"class.std::__cxx11::basic_stringbuf" }
%"class.std::basic_ostream.base" = type { ptr }
%"class.std::__cxx11::basic_stringbuf" = type { %"class.std::basic_streambuf", i32, %"class.std::__cxx11::basic_string" }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::allocator" = type { i8 }

@_ZTIN5euler11IndexResultE = external dso_local constant { ptr, ptr }, align 8
@_ZTIN5euler17CommonIndexResultE = external dso_local constant { ptr, ptr, ptr }, align 8
@.str = external hidden unnamed_addr constant [87 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [7 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5euler17CommonIndexResult12IntersectionESt10shared_ptrINS_11IndexResultEE(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr.22") align 8 %0, ptr noundef nonnull align 8 dereferenceable(88) %1, ptr noundef %2) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.std::shared_ptr.22", align 8
  %5 = alloca %"class.std::shared_ptr.22", align 8
  %6 = alloca %"class.euler::LogMessageFatal", align 8
  %7 = alloca %"class.euler::LogMessageFatal", align 8
  %8 = alloca %"class.std::__cxx11::basic_string", align 8
  %9 = alloca %"class.std::allocator", align 1
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #9
  call void @_ZNSt10shared_ptrIN5euler11IndexResultEEC2EDn(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr null) #9
  %10 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN5euler11IndexResultELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %2) #9
  %11 = load ptr, ptr %10, align 8, !tbaa !5
  %12 = getelementptr inbounds i8, ptr %11, i64 24
  %13 = load ptr, ptr %12, align 8
  %14 = invoke noundef i32 %13(ptr noundef nonnull align 8 dereferenceable(48) %10)
          to label %15 unwind label %25

15:                                               ; preds = %3
  %.not = icmp eq i32 %14, 2
  br i1 %.not, label %40, label %16

16:                                               ; preds = %15
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #9
  %17 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN5euler11IndexResultELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %2) #9
  %18 = load ptr, ptr %17, align 8, !tbaa !5
  %19 = getelementptr inbounds i8, ptr %18, i64 64
  %20 = load ptr, ptr %19, align 8
  invoke void %20(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr.22") align 8 %5, ptr noundef nonnull align 8 dereferenceable(48) %17)
          to label %21 unwind label %27

21:                                               ; preds = %16
  %22 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt10shared_ptrIN5euler11IndexResultEEaSEOS2_(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull align 8 dereferenceable(16) %5) #9
  call void @_ZNSt12__shared_ptrIN5euler11IndexResultELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #9
  %23 = call noundef ptr @_ZNKSt12__shared_ptrIN5euler11IndexResultELN9__gnu_cxx12_Lock_policyE2EE3getEv(ptr noundef nonnull align 8 dereferenceable(16) %4) #9
  %24 = icmp eq ptr %23, null
  br i1 %24, label %.thread, label %29

25:                                               ; preds = %3
  %26 = landingpad { ptr, i32 }
          cleanup
  br label %80

27:                                               ; preds = %16
  %28 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #9
  br label %80

29:                                               ; preds = %21
  %30 = call ptr @__dynamic_cast(ptr nonnull %23, ptr nonnull @_ZTIN5euler11IndexResultE, ptr nonnull @_ZTIN5euler17CommonIndexResultE, i64 0) #9
  %31 = icmp eq ptr %30, null
  br i1 %31, label %.thread, label %54

.thread:                                          ; preds = %21, %29
  call void @llvm.lifetime.start.p0(i64 392, ptr nonnull %6) #9
  invoke void @_ZN5euler15LogMessageFatalC1EPKci(ptr noundef nonnull align 8 dereferenceable(128) %6, ptr noundef nonnull @.str, i32 noundef 75)
          to label %32 unwind label %35

32:                                               ; preds = %.thread
  %33 = invoke noundef nonnull align 8 dereferenceable(128) ptr @_ZStlsIN5euler15LogMessageFatalEA52_cEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(128) %6, ptr noundef nonnull align 1 dereferenceable(52) @.str.1)
          to label %34 unwind label %37

34:                                               ; preds = %32
  call void @_ZN5euler15LogMessageFatalD1Ev(ptr noundef nonnull align 8 dereferenceable(128) %6) #9
  call void @llvm.lifetime.end.p0(i64 392, ptr nonnull %6) #9
  br label %54

35:                                               ; preds = %.thread
  %36 = landingpad { ptr, i32 }
          cleanup
  br label %39

37:                                               ; preds = %32
  %38 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN5euler15LogMessageFatalD1Ev(ptr noundef nonnull align 8 dereferenceable(128) %6) #9
  br label %39

39:                                               ; preds = %37, %35
  %.pn29 = phi { ptr, i32 } [ %38, %37 ], [ %36, %35 ]
  call void @llvm.lifetime.end.p0(i64 392, ptr nonnull %6) #9
  br label %80

40:                                               ; preds = %15
  %41 = call noundef ptr @_ZNKSt12__shared_ptrIN5euler11IndexResultELN9__gnu_cxx12_Lock_policyE2EE3getEv(ptr noundef nonnull align 8 dereferenceable(16) %2) #9
  %42 = icmp eq ptr %41, null
  br i1 %42, label %.thread36, label %43

43:                                               ; preds = %40
  %44 = call ptr @__dynamic_cast(ptr nonnull %41, ptr nonnull @_ZTIN5euler11IndexResultE, ptr nonnull @_ZTIN5euler17CommonIndexResultE, i64 0) #9
  %45 = icmp eq ptr %44, null
  br i1 %45, label %.thread36, label %54

.thread36:                                        ; preds = %40, %43
  call void @llvm.lifetime.start.p0(i64 392, ptr nonnull %7) #9
  invoke void @_ZN5euler15LogMessageFatalC1EPKci(ptr noundef nonnull align 8 dereferenceable(128) %7, ptr noundef nonnull @.str, i32 noundef 80)
          to label %46 unwind label %49

46:                                               ; preds = %.thread36
  %47 = invoke noundef nonnull align 8 dereferenceable(128) ptr @_ZStlsIN5euler15LogMessageFatalEA52_cEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(128) %7, ptr noundef nonnull align 1 dereferenceable(52) @.str.1)
          to label %48 unwind label %51

48:                                               ; preds = %46
  call void @_ZN5euler15LogMessageFatalD1Ev(ptr noundef nonnull align 8 dereferenceable(128) %7) #9
  call void @llvm.lifetime.end.p0(i64 392, ptr nonnull %7) #9
  br label %54

49:                                               ; preds = %.thread36
  %50 = landingpad { ptr, i32 }
          cleanup
  br label %53

51:                                               ; preds = %46
  %52 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN5euler15LogMessageFatalD1Ev(ptr noundef nonnull align 8 dereferenceable(128) %7) #9
  br label %53

53:                                               ; preds = %51, %49
  %.pn = phi { ptr, i32 } [ %52, %51 ], [ %50, %49 ]
  call void @llvm.lifetime.end.p0(i64 392, ptr nonnull %7) #9
  br label %80

54:                                               ; preds = %43, %48, %29, %34
  %.0 = phi ptr [ null, %34 ], [ %30, %29 ], [ null, %48 ], [ %44, %43 ]
  %55 = invoke noalias noundef nonnull dereferenceable(88) ptr @_Znwm(i64 noundef 88) #10
          to label %56 unwind label %71

56:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #9
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %9) #9
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #9
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull @.str.2, ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %57 unwind label %73

57:                                               ; preds = %56
  invoke void @_ZN5euler17CommonIndexResultC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(88) %55, ptr noundef nonnull align 8 dereferenceable(32) %8)
          to label %58 unwind label %75

58:                                               ; preds = %57
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #9
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #9
  %59 = getelementptr inbounds i8, ptr %1, i64 48
  %60 = call ptr @_ZNSt6vectorISt4pairImfESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %59) #9
  %61 = call ptr @_ZNSt6vectorISt4pairImfESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %59) #9
  %62 = getelementptr inbounds i8, ptr %.0, i64 48
  %63 = call ptr @_ZNSt6vectorISt4pairImfESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %62) #9
  %64 = call ptr @_ZNSt6vectorISt4pairImfESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %62) #9
  %65 = getelementptr inbounds i8, ptr %55, i64 48
  %66 = invoke ptr @_ZSt13back_inserterISt6vectorISt4pairImfESaIS2_EEESt20back_insert_iteratorIT_ERS6_(ptr noundef nonnull align 8 dereferenceable(24) %65)
          to label %67 unwind label %78

67:                                               ; preds = %58
  %68 = invoke ptr @"_ZSt16set_intersectionIN9__gnu_cxx17__normal_iteratorIPSt4pairImfESt6vectorIS3_SaIS3_EEEES8_St20back_insert_iteratorIS7_EZN5euler17CommonIndexResult12IntersectionESt10shared_ptrINSB_11IndexResultEEE3$_0ET1_T_SI_T0_SJ_SH_T2_"(ptr %60, ptr %61, ptr %63, ptr %64, ptr %66)
          to label %69 unwind label %78

69:                                               ; preds = %67
  invoke void @_ZNSt10shared_ptrIN5euler11IndexResultEEC2INS0_17CommonIndexResultEvEEPT_(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull %55)
          to label %70 unwind label %78

70:                                               ; preds = %69
  call void @_ZNSt12__shared_ptrIN5euler11IndexResultELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #9
  ret void

71:                                               ; preds = %54
  %72 = landingpad { ptr, i32 }
          cleanup
  br label %80

73:                                               ; preds = %56
  %74 = landingpad { ptr, i32 }
          cleanup
  br label %77

75:                                               ; preds = %57
  %76 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #9
  br label %77

77:                                               ; preds = %75, %73
  %.pn31 = phi { ptr, i32 } [ %76, %75 ], [ %74, %73 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #9
  call void @_ZdlPvm(ptr noundef nonnull %55, i64 noundef 88) #11
  br label %80

78:                                               ; preds = %69, %67, %58
  %79 = landingpad { ptr, i32 }
          cleanup
  br label %80

80:                                               ; preds = %71, %78, %77, %53, %39, %27, %25
  %.pn33.pn = phi { ptr, i32 } [ %.pn29, %39 ], [ %28, %27 ], [ %.pn, %53 ], [ %26, %25 ], [ %79, %78 ], [ %.pn31, %77 ], [ %72, %71 ]
  call void @_ZNSt12__shared_ptrIN5euler11IndexResultELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #9
  resume { ptr, i32 } %.pn33.pn
}

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

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

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

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(read)
declare ptr @__dynamic_cast(ptr, ptr, ptr, i64) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(128) ptr @_ZStlsIN5euler15LogMessageFatalEA52_cEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef nonnull align 1 dereferenceable(52)) local_unnamed_addr #5

declare void @_ZN5euler15LogMessageFatalC1EPKci(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef, i32 noundef) unnamed_addr #6

; Function Attrs: nounwind
declare void @_ZN5euler15LogMessageFatalD1Ev(ptr noundef nonnull align 8 dereferenceable(128)) unnamed_addr #7

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden ptr @"_ZSt16set_intersectionIN9__gnu_cxx17__normal_iteratorIPSt4pairImfESt6vectorIS3_SaIS3_EEEES8_St20back_insert_iteratorIS7_EZN5euler17CommonIndexResult12IntersectionESt10shared_ptrINSB_11IndexResultEEE3$_0ET1_T_SI_T0_SJ_SH_T2_"(ptr, ptr, ptr, ptr, ptr) local_unnamed_addr #5

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

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

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { 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 = { mustprogress nofree nounwind willreturn memory(read) }
attributes #5 = { 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 #6 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nounwind "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 = { 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 #9 = { nounwind }
attributes #10 = { builtin allocsize(0) }
attributes #11 = { 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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}


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