; LLVM IR from OAID/AutoKernel :: AutoSearch/src/adams2019 (LoopNest)

; 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.__gnu_cxx::__normal_iterator.54" = type { ptr }
%"struct.std::_Rb_tree_const_iterator" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.78" = type { ptr }
%"struct.PerfectHashMap<Halide::Internal::Autoscheduler::FunctionDAG::Node, long>::const_iterator" = type { ptr, ptr }
%"struct.Halide::Internal::Autoscheduler::LoopNest" = type <{ %"class.Halide::Internal::RefCount", [4 x i8], %"class.std::vector.3", %"class.std::vector.8", %class.PerfectHashMap, %"class.std::set", %class.PerfectHashMap.21, ptr, ptr, i8, i8, i8, i8, i32, i32, [4 x i8] }>
%"class.Halide::Internal::RefCount" = type { %"struct.std::atomic" }
%"struct.std::atomic" = type { %"struct.std::__atomic_base" }
%"struct.std::__atomic_base" = type { i32 }
%"class.std::vector.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = type { %"struct.std::_Vector_base<long, std::allocator<long>>::_Vector_impl" }
%"struct.std::_Vector_base<long, std::allocator<long>>::_Vector_impl" = type { %"struct.std::_Vector_base<long, std::allocator<long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<long, std::allocator<long>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = type { %"struct.std::_Vector_base<Halide::Internal::IntrusivePtr<const Halide::Internal::Autoscheduler::LoopNest>, std::allocator<Halide::Internal::IntrusivePtr<const Halide::Internal::Autoscheduler::LoopNest>>>::_Vector_impl" }
%"struct.std::_Vector_base<Halide::Internal::IntrusivePtr<const Halide::Internal::Autoscheduler::LoopNest>, std::allocator<Halide::Internal::IntrusivePtr<const Halide::Internal::Autoscheduler::LoopNest>>>::_Vector_impl" = type { %"struct.std::_Vector_base<Halide::Internal::IntrusivePtr<const Halide::Internal::Autoscheduler::LoopNest>, std::allocator<Halide::Internal::IntrusivePtr<const Halide::Internal::Autoscheduler::LoopNest>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Halide::Internal::IntrusivePtr<const Halide::Internal::Autoscheduler::LoopNest>, std::allocator<Halide::Internal::IntrusivePtr<const Halide::Internal::Autoscheduler::LoopNest>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.PerfectHashMap = type { %"class.std::vector.13", i32, i32 }
%"class.std::vector.13" = type { %"struct.std::_Vector_base.14" }
%"struct.std::_Vector_base.14" = type { %"struct.std::_Vector_base<std::pair<const Halide::Internal::Autoscheduler::FunctionDAG::Node *, long>, std::allocator<std::pair<const Halide::Internal::Autoscheduler::FunctionDAG::Node *, long>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<const Halide::Internal::Autoscheduler::FunctionDAG::Node *, long>, std::allocator<std::pair<const Halide::Internal::Autoscheduler::FunctionDAG::Node *, long>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<const Halide::Internal::Autoscheduler::FunctionDAG::Node *, long>, std::allocator<std::pair<const Halide::Internal::Autoscheduler::FunctionDAG::Node *, long>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<const Halide::Internal::Autoscheduler::FunctionDAG::Node *, long>, std::allocator<std::pair<const Halide::Internal::Autoscheduler::FunctionDAG::Node *, long>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<const Halide::Internal::Autoscheduler::FunctionDAG::Node *, const Halide::Internal::Autoscheduler::FunctionDAG::Node *, std::_Identity<const Halide::Internal::Autoscheduler::FunctionDAG::Node *>, std::less<const Halide::Internal::Autoscheduler::FunctionDAG::Node *>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<const Halide::Internal::Autoscheduler::FunctionDAG::Node *, const Halide::Internal::Autoscheduler::FunctionDAG::Node *, std::_Identity<const Halide::Internal::Autoscheduler::FunctionDAG::Node *>, std::less<const Halide::Internal::Autoscheduler::FunctionDAG::Node *>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%class.PerfectHashMap.21 = type { %"class.std::vector.22", i32, i32 }
%"class.std::vector.22" = type { %"struct.std::_Vector_base.23" }
%"struct.std::_Vector_base.23" = type { %"struct.std::_Vector_base<std::pair<const Halide::Internal::Autoscheduler::FunctionDAG::Node *, Halide::Internal::IntrusivePtr<const Halide::Internal::Autoscheduler::BoundContents>>, std::allocator<std::pair<const Halide::Internal::Autoscheduler::FunctionDAG::Node *, Halide::Internal::IntrusivePtr<const Halide::Internal::Autoscheduler::BoundContents>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<const Halide::Internal::Autoscheduler::FunctionDAG::Node *, Halide::Internal::IntrusivePtr<const Halide::Internal::Autoscheduler::BoundContents>>, std::allocator<std::pair<const Halide::Internal::Autoscheduler::FunctionDAG::Node *, Halide::Internal::IntrusivePtr<const Halide::Internal::Autoscheduler::BoundContents>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<const Halide::Internal::Autoscheduler::FunctionDAG::Node *, Halide::Internal::IntrusivePtr<const Halide::Internal::Autoscheduler::BoundContents>>, std::allocator<std::pair<const Halide::Internal::Autoscheduler::FunctionDAG::Node *, Halide::Internal::IntrusivePtr<const Halide::Internal::Autoscheduler::BoundContents>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<const Halide::Internal::Autoscheduler::FunctionDAG::Node *, Halide::Internal::IntrusivePtr<const Halide::Internal::Autoscheduler::BoundContents>>, std::allocator<std::pair<const Halide::Internal::Autoscheduler::FunctionDAG::Node *, Halide::Internal::IntrusivePtr<const Halide::Internal::Autoscheduler::BoundContents>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.Halide::Internal::Autoscheduler::LoopNest::Sites" = type <{ ptr, ptr, ptr, ptr, ptr, i8, [7 x i8] }>
%"struct.Halide::Internal::Autoscheduler::FunctionDAG::Node" = type { ptr, %"class.Halide::Internal::Function", double, %"class.std::vector.27", %"class.std::vector.32", %"class.std::vector.37", i8, %"class.std::vector.42", %"class.std::vector.47", i32, i32, i32, i32, i8, i8, i8, i8, i8, %"class.std::unique_ptr" }
%"class.Halide::Internal::Function" = type { %"struct.Halide::Internal::FunctionPtr" }
%"struct.Halide::Internal::FunctionPtr" = type <{ %"struct.Halide::Internal::IntrusivePtr", ptr, i32, [4 x i8] }>
%"struct.Halide::Internal::IntrusivePtr" = type { ptr }
%"class.std::vector.27" = type { %"struct.std::_Vector_base.28" }
%"struct.std::_Vector_base.28" = type { %"struct.std::_Vector_base<Halide::Internal::Autoscheduler::FunctionDAG::SymbolicInterval, std::allocator<Halide::Internal::Autoscheduler::FunctionDAG::SymbolicInterval>>::_Vector_impl" }
%"struct.std::_Vector_base<Halide::Internal::Autoscheduler::FunctionDAG::SymbolicInterval, std::allocator<Halide::Internal::Autoscheduler::FunctionDAG::SymbolicInterval>>::_Vector_impl" = type { %"struct.std::_Vector_base<Halide::Internal::Autoscheduler::FunctionDAG::SymbolicInterval, std::allocator<Halide::Internal::Autoscheduler::FunctionDAG::SymbolicInterval>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Halide::Internal::Autoscheduler::FunctionDAG::SymbolicInterval, std::allocator<Halide::Internal::Autoscheduler::FunctionDAG::SymbolicInterval>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.32" = type { %"struct.std::_Vector_base.33" }
%"struct.std::_Vector_base.33" = type { %"struct.std::_Vector_base<Halide::Internal::Autoscheduler::Span, std::allocator<Halide::Internal::Autoscheduler::Span>>::_Vector_impl" }
%"struct.std::_Vector_base<Halide::Internal::Autoscheduler::Span, std::allocator<Halide::Internal::Autoscheduler::Span>>::_Vector_impl" = type { %"struct.std::_Vector_base<Halide::Internal::Autoscheduler::Span, std::allocator<Halide::Internal::Autoscheduler::Span>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Halide::Internal::Autoscheduler::Span, std::allocator<Halide::Internal::Autoscheduler::Span>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.37" = type { %"struct.std::_Vector_base.38" }
%"struct.std::_Vector_base.38" = type { %"struct.std::_Vector_base<Halide::Internal::Autoscheduler::FunctionDAG::Node::RegionComputedInfo, std::allocator<Halide::Internal::Autoscheduler::FunctionDAG::Node::RegionComputedInfo>>::_Vector_impl" }
%"struct.std::_Vector_base<Halide::Internal::Autoscheduler::FunctionDAG::Node::RegionComputedInfo, std::allocator<Halide::Internal::Autoscheduler::FunctionDAG::Node::RegionComputedInfo>>::_Vector_impl" = type { %"struct.std::_Vector_base<Halide::Internal::Autoscheduler::FunctionDAG::Node::RegionComputedInfo, std::allocator<Halide::Internal::Autoscheduler::FunctionDAG::Node::RegionComputedInfo>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Halide::Internal::Autoscheduler::FunctionDAG::Node::RegionComputedInfo, std::allocator<Halide::Internal::Autoscheduler::FunctionDAG::Node::RegionComputedInfo>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.42" = type { %"struct.std::_Vector_base.43" }
%"struct.std::_Vector_base.43" = type { %"struct.std::_Vector_base<Halide::Internal::Autoscheduler::FunctionDAG::Node::Stage, std::allocator<Halide::Internal::Autoscheduler::FunctionDAG::Node::Stage>>::_Vector_impl" }
%"struct.std::_Vector_base<Halide::Internal::Autoscheduler::FunctionDAG::Node::Stage, std::allocator<Halide::Internal::Autoscheduler::FunctionDAG::Node::Stage>>::_Vector_impl" = type { %"struct.std::_Vector_base<Halide::Internal::Autoscheduler::FunctionDAG::Node::Stage, std::allocator<Halide::Internal::Autoscheduler::FunctionDAG::Node::Stage>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Halide::Internal::Autoscheduler::FunctionDAG::Node::Stage, std::allocator<Halide::Internal::Autoscheduler::FunctionDAG::Node::Stage>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.47" = type { %"struct.std::_Vector_base.48" }
%"struct.std::_Vector_base.48" = type { %"struct.std::_Vector_base<Halide::Internal::Autoscheduler::FunctionDAG::Edge *, std::allocator<Halide::Internal::Autoscheduler::FunctionDAG::Edge *>>::_Vector_impl" }
%"struct.std::_Vector_base<Halide::Internal::Autoscheduler::FunctionDAG::Edge *, std::allocator<Halide::Internal::Autoscheduler::FunctionDAG::Edge *>>::_Vector_impl" = type { %"struct.std::_Vector_base<Halide::Internal::Autoscheduler::FunctionDAG::Edge *, std::allocator<Halide::Internal::Autoscheduler::FunctionDAG::Edge *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Halide::Internal::Autoscheduler::FunctionDAG::Edge *, std::allocator<Halide::Internal::Autoscheduler::FunctionDAG::Edge *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.53" }
%"struct.std::_Head_base.53" = 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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, ptr } @_ZNK14PerfectHashMapIN6Halide8Internal13Autoscheduler11FunctionDAG4NodeElLi4E22PerfectHashMapAsserterE5beginEv(ptr noundef nonnull align 8 dereferenceable(32)) #3 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { ptr, ptr } @_ZNK14PerfectHashMapIN6Halide8Internal13Autoscheduler11FunctionDAG4NodeElLi4E22PerfectHashMapAsserterE3endEv(ptr noundef nonnull align 8 dereferenceable(32)) #1 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK6Halide8Internal13Autoscheduler8LoopNest9get_sitesER14PerfectHashMapINS1_11FunctionDAG4Node5StageENS2_5SitesELi4E22PerfectHashMapAsserterEPKS2_SC_(ptr noundef nonnull align 8 dereferenceable(196) %0, ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef %2, ptr noundef %3) #3 align 2 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca %"class.__gnu_cxx::__normal_iterator.54", align 8
  %11 = alloca %"class.__gnu_cxx::__normal_iterator.54", align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %16 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %17 = alloca i32, align 4
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca %"class.__gnu_cxx::__normal_iterator.78", align 8
  %21 = alloca %"class.__gnu_cxx::__normal_iterator.78", align 8
  %22 = alloca ptr, align 8
  %23 = alloca %"struct.PerfectHashMap<Halide::Internal::Autoscheduler::FunctionDAG::Node, long>::const_iterator", align 8
  %24 = alloca %"struct.PerfectHashMap<Halide::Internal::Autoscheduler::FunctionDAG::Node, long>::const_iterator", align 8
  %25 = alloca ptr, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  %26 = load ptr, ptr %5, align 8
  %27 = load ptr, ptr %7, align 8, !tbaa !5
  %28 = icmp ne ptr %27, null
  br i1 %28, label %32, label %29

29:                                               ; preds = %4
  %30 = call noundef zeroext i1 @_ZNK6Halide8Internal13Autoscheduler8LoopNest7is_rootEv(ptr noundef nonnull align 8 dereferenceable(196) %26)
  br i1 %30, label %32, label %31

31:                                               ; preds = %29
  store ptr %26, ptr %7, align 8, !tbaa !5
  br label %32

32:                                               ; preds = %31, %29, %4
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %33 = getelementptr inbounds %"struct.Halide::Internal::Autoscheduler::LoopNest", ptr %26, i32 0, i32 3
  store ptr %33, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %34 = load ptr, ptr %9, align 8, !tbaa !5
  %35 = call ptr @_ZNKSt6vectorIN6Halide8Internal12IntrusivePtrIKNS1_13Autoscheduler8LoopNestEEESaIS6_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %34) #4
  %36 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.54", ptr %10, i32 0, i32 0
  store ptr %35, ptr %36, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  %37 = load ptr, ptr %9, align 8, !tbaa !5
  %38 = call ptr @_ZNKSt6vectorIN6Halide8Internal12IntrusivePtrIKNS1_13Autoscheduler8LoopNestEEESaIS6_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %37) #4
  %39 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.54", ptr %11, i32 0, i32 0
  store ptr %38, ptr %39, align 8
  br label %40

40:                                               ; preds = %49, %32
  %41 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN6Halide8Internal12IntrusivePtrIKNS2_13Autoscheduler8LoopNestEEESt6vectorIS7_SaIS7_EEEEbRKNS_17__normal_iteratorIT_T0_EESI_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11) #4
  br i1 %41, label %43, label %42

42:                                               ; preds = %40
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #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 %51

43:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %44 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN6Halide8Internal12IntrusivePtrIKNS2_13Autoscheduler8LoopNestEEESt6vectorIS7_SaIS7_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #4
  store ptr %44, ptr %12, align 8, !tbaa !5
  %45 = load ptr, ptr %12, align 8, !tbaa !5
  %46 = call noundef ptr @_ZNK6Halide8Internal12IntrusivePtrIKNS0_13Autoscheduler8LoopNestEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %45)
  %47 = load ptr, ptr %6, align 8, !tbaa !5
  %48 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZNK6Halide8Internal13Autoscheduler8LoopNest9get_sitesER14PerfectHashMapINS1_11FunctionDAG4Node5StageENS2_5SitesELi4E22PerfectHashMapAsserterEPKS2_SC_(ptr noundef nonnull align 8 dereferenceable(196) %46, ptr noundef nonnull align 8 dereferenceable(32) %47, ptr noundef %48, ptr noundef %26)
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  br label %49

49:                                               ; preds = %43
  %50 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKN6Halide8Internal12IntrusivePtrIKNS2_13Autoscheduler8LoopNestEEESt6vectorIS7_SaIS7_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #4
  br label %40

51:                                               ; preds = %42
  %52 = load ptr, ptr %8, align 8, !tbaa !5
  %53 = icmp ne ptr %52, null
  br i1 %53, label %54, label %74

54:                                               ; preds = %51
  %55 = getelementptr inbounds %"struct.Halide::Internal::Autoscheduler::LoopNest", ptr %26, i32 0, i32 7
  %56 = load ptr, ptr %55, align 8, !tbaa !9
  %57 = load ptr, ptr %8, align 8, !tbaa !5
  %58 = getelementptr inbounds %"struct.Halide::Internal::Autoscheduler::LoopNest", ptr %57, i32 0, i32 7
  %59 = load ptr, ptr %58, align 8, !tbaa !9
  %60 = icmp ne ptr %56, %59
  br i1 %60, label %61, label %74

61:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %62 = load ptr, ptr %6, align 8, !tbaa !5
  %63 = getelementptr inbounds %"struct.Halide::Internal::Autoscheduler::LoopNest", ptr %26, i32 0, i32 8
  %64 = load ptr, ptr %63, align 8, !tbaa !45
  %65 = call noundef nonnull align 8 dereferenceable(41) ptr @_ZN14PerfectHashMapIN6Halide8Internal13Autoscheduler11FunctionDAG4Node5StageENS2_8LoopNest5SitesELi4E22PerfectHashMapAsserterE13get_or_createEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %62, ptr noundef %64)
  store ptr %65, ptr %13, align 8, !tbaa !5
  %66 = load ptr, ptr %8, align 8, !tbaa !5
  %67 = load ptr, ptr %13, align 8, !tbaa !5
  %68 = getelementptr inbounds %"struct.Halide::Internal::Autoscheduler::LoopNest::Sites", ptr %67, i32 0, i32 0
  store ptr %66, ptr %68, align 8, !tbaa !46
  %69 = load ptr, ptr %13, align 8, !tbaa !5
  %70 = getelementptr inbounds %"struct.Halide::Internal::Autoscheduler::LoopNest::Sites", ptr %69, i32 0, i32 2
  store ptr %26, ptr %70, align 8, !tbaa !48
  %71 = load ptr, ptr %7, align 8, !tbaa !5
  %72 = load ptr, ptr %13, align 8, !tbaa !5
  %73 = getelementptr inbounds %"struct.Halide::Internal::Autoscheduler::LoopNest::Sites", ptr %72, i32 0, i32 4
  store ptr %71, ptr %73, align 8, !tbaa !49
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  br label %74

74:                                               ; preds = %61, %54, %51
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  %75 = getelementptr inbounds %"struct.Halide::Internal::Autoscheduler::LoopNest", ptr %26, i32 0, i32 5
  store ptr %75, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  %76 = load ptr, ptr %14, align 8, !tbaa !5
  %77 = call ptr @_ZNKSt3setIPKN6Halide8Internal13Autoscheduler11FunctionDAG4NodeESt4lessIS6_ESaIS6_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %76) #4
  %78 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %15, i32 0, i32 0
  store ptr %77, ptr %78, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  %79 = load ptr, ptr %14, align 8, !tbaa !5
  %80 = call ptr @_ZNKSt3setIPKN6Halide8Internal13Autoscheduler11FunctionDAG4NodeESt4lessIS6_ESaIS6_EE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %79) #4
  %81 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %16, i32 0, i32 0
  store ptr %80, ptr %81, align 8
  br label %82

82:                                               ; preds = %108, %74
  %83 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIPKN6Halide8Internal13Autoscheduler11FunctionDAG4NodeEES9_(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %16) #4
  br i1 %83, label %85, label %84

84:                                               ; preds = %82
  store i32 4, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  br label %110

85:                                               ; preds = %82
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  %86 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt23_Rb_tree_const_iteratorIPKN6Halide8Internal13Autoscheduler11FunctionDAG4NodeEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #4
  %87 = load ptr, ptr %86, align 8, !tbaa !5
  store ptr %87, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  %88 = load ptr, ptr %18, align 8, !tbaa !5
  %89 = getelementptr inbounds %"struct.Halide::Internal::Autoscheduler::FunctionDAG::Node", ptr %88, i32 0, i32 7
  store ptr %89, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  %90 = load ptr, ptr %19, align 8, !tbaa !5
  %91 = call ptr @_ZNKSt6vectorIN6Halide8Internal13Autoscheduler11FunctionDAG4Node5StageESaIS5_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %90) #4
  %92 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.78", ptr %20, i32 0, i32 0
  store ptr %91, ptr %92, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  %93 = load ptr, ptr %19, align 8, !tbaa !5
  %94 = call ptr @_ZNKSt6vectorIN6Halide8Internal13Autoscheduler11FunctionDAG4Node5StageESaIS5_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %93) #4
  %95 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.78", ptr %21, i32 0, i32 0
  store ptr %94, ptr %95, align 8
  br label %96

96:                                               ; preds = %105, %85
  %97 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN6Halide8Internal13Autoscheduler11FunctionDAG4Node5StageESt6vectorIS6_SaIS6_EEEEbRKNS_17__normal_iteratorIT_T0_EESH_(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull align 8 dereferenceable(8) %21) #4
  br i1 %97, label %99, label %98

98:                                               ; preds = %96
  store i32 6, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  br label %107

99:                                               ; preds = %96
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #4
  %100 = call noundef nonnull align 8 dereferenceable(1368) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN6Halide8Internal13Autoscheduler11FunctionDAG4Node5StageESt6vectorIS6_SaIS6_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %20) #4
  store ptr %100, ptr %22, align 8, !tbaa !5
  %101 = load ptr, ptr %6, align 8, !tbaa !5
  %102 = load ptr, ptr %22, align 8, !tbaa !5
  %103 = call noundef nonnull align 8 dereferenceable(41) ptr @_ZN14PerfectHashMapIN6Halide8Internal13Autoscheduler11FunctionDAG4Node5StageENS2_8LoopNest5SitesELi4E22PerfectHashMapAsserterE13get_or_createEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %101, ptr noundef %102)
  %104 = getelementptr inbounds %"struct.Halide::Internal::Autoscheduler::LoopNest::Sites", ptr %103, i32 0, i32 1
  store ptr %26, ptr %104, align 8, !tbaa !50
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  br label %105

105:                                              ; preds = %99
  %106 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKN6Halide8Internal13Autoscheduler11FunctionDAG4Node5StageESt6vectorIS6_SaIS6_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %20) #4
  br label %96

107:                                              ; preds = %98
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  br label %108

108:                                              ; preds = %107
  %109 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorIPKN6Halide8Internal13Autoscheduler11FunctionDAG4NodeEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #4
  br label %82

110:                                              ; preds = %84
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #4
  %111 = getelementptr inbounds %"struct.Halide::Internal::Autoscheduler::LoopNest", ptr %26, i32 0, i32 4
  %112 = call { ptr, ptr } @_ZNK14PerfectHashMapIN6Halide8Internal13Autoscheduler11FunctionDAG4NodeElLi4E22PerfectHashMapAsserterE5beginEv(ptr noundef nonnull align 8 dereferenceable(32) %111)
  %113 = getelementptr inbounds { ptr, ptr }, ptr %23, i32 0, i32 0
  %114 = extractvalue { ptr, ptr } %112, 0
  store ptr %114, ptr %113, align 8
  %115 = getelementptr inbounds { ptr, ptr }, ptr %23, i32 0, i32 1
  %116 = extractvalue { ptr, ptr } %112, 1
  store ptr %116, ptr %115, align 8
  br label %117

117:                                              ; preds = %145, %110
  call void @llvm.lifetime.start.p0(i64 16, ptr %24) #4
  %118 = getelementptr inbounds %"struct.Halide::Internal::Autoscheduler::LoopNest", ptr %26, i32 0, i32 4
  %119 = call { ptr, ptr } @_ZNK14PerfectHashMapIN6Halide8Internal13Autoscheduler11FunctionDAG4NodeElLi4E22PerfectHashMapAsserterE3endEv(ptr noundef nonnull align 8 dereferenceable(32) %118)
  %120 = getelementptr inbounds { ptr, ptr }, ptr %24, i32 0, i32 0
  %121 = extractvalue { ptr, ptr } %119, 0
  store ptr %121, ptr %120, align 8
  %122 = getelementptr inbounds { ptr, ptr }, ptr %24, i32 0, i32 1
  %123 = extractvalue { ptr, ptr } %119, 1
  store ptr %123, ptr %122, align 8
  %124 = call noundef zeroext i1 @_ZNK14PerfectHashMapIN6Halide8Internal13Autoscheduler11FunctionDAG4NodeElLi4E22PerfectHashMapAsserterE14const_iteratorneERKS7_(ptr noundef nonnull align 8 dereferenceable(16) %23, ptr noundef nonnull align 8 dereferenceable(16) %24)
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #4
  br i1 %124, label %126, label %125

125:                                              ; preds = %117
  store i32 8, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #4
  br label %146

126:                                              ; preds = %117
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #4
  %127 = load ptr, ptr %6, align 8, !tbaa !5
  %128 = call noundef ptr @_ZNK14PerfectHashMapIN6Halide8Internal13Autoscheduler11FunctionDAG4NodeElLi4E22PerfectHashMapAsserterE14const_iterator3keyEv(ptr noundef nonnull align 8 dereferenceable(16) %23)
  %129 = getelementptr inbounds %"struct.Halide::Internal::Autoscheduler::FunctionDAG::Node", ptr %128, i32 0, i32 7
  %130 = call noundef nonnull align 8 dereferenceable(1368) ptr @_ZNKSt6vectorIN6Halide8Internal13Autoscheduler11FunctionDAG4Node5StageESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %129, i64 noundef 0) #4
  %131 = call noundef nonnull align 8 dereferenceable(41) ptr @_ZN14PerfectHashMapIN6Halide8Internal13Autoscheduler11FunctionDAG4Node5StageENS2_8LoopNest5SitesELi4E22PerfectHashMapAsserterE13get_or_createEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %127, ptr noundef %130)
  store ptr %131, ptr %25, align 8, !tbaa !5
  %132 = load ptr, ptr %25, align 8, !tbaa !5
  %133 = getelementptr inbounds %"struct.Halide::Internal::Autoscheduler::LoopNest::Sites", ptr %132, i32 0, i32 5
  store i8 1, ptr %133, align 8, !tbaa !51
  %134 = load ptr, ptr %25, align 8, !tbaa !5
  %135 = getelementptr inbounds %"struct.Halide::Internal::Autoscheduler::LoopNest::Sites", ptr %134, i32 0, i32 3
  store ptr %26, ptr %135, align 8, !tbaa !52
  %136 = load ptr, ptr %25, align 8, !tbaa !5
  %137 = getelementptr inbounds %"struct.Halide::Internal::Autoscheduler::LoopNest::Sites", ptr %136, i32 0, i32 2
  store ptr %26, ptr %137, align 8, !tbaa !48
  %138 = load ptr, ptr %25, align 8, !tbaa !5
  %139 = getelementptr inbounds %"struct.Halide::Internal::Autoscheduler::LoopNest::Sites", ptr %138, i32 0, i32 1
  store ptr %26, ptr %139, align 8, !tbaa !50
  %140 = load ptr, ptr %25, align 8, !tbaa !5
  %141 = getelementptr inbounds %"struct.Halide::Internal::Autoscheduler::LoopNest::Sites", ptr %140, i32 0, i32 0
  store ptr %26, ptr %141, align 8, !tbaa !46
  %142 = load ptr, ptr %7, align 8, !tbaa !5
  %143 = load ptr, ptr %25, align 8, !tbaa !5
  %144 = getelementptr inbounds %"struct.Halide::Internal::Autoscheduler::LoopNest::Sites", ptr %143, i32 0, i32 4
  store ptr %142, ptr %144, align 8, !tbaa !49
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #4
  br label %145

145:                                              ; preds = %126
  call void @_ZN14PerfectHashMapIN6Halide8Internal13Autoscheduler11FunctionDAG4NodeElLi4E22PerfectHashMapAsserterE14const_iteratorppEi(ptr noundef nonnull align 8 dereferenceable(16) %23, i32 noundef 0)
  br label %117, !llvm.loop !53

146:                                              ; preds = %125
  %147 = getelementptr inbounds %"struct.Halide::Internal::Autoscheduler::LoopNest", ptr %26, i32 0, i32 9
  %148 = load i8, ptr %147, align 8, !tbaa !55, !range !56, !noundef !57
  %149 = trunc i8 %148 to i1
  br i1 %149, label %150, label %156

150:                                              ; preds = %146
  %151 = load ptr, ptr %6, align 8, !tbaa !5
  %152 = getelementptr inbounds %"struct.Halide::Internal::Autoscheduler::LoopNest", ptr %26, i32 0, i32 8
  %153 = load ptr, ptr %152, align 8, !tbaa !45
  %154 = call noundef nonnull align 8 dereferenceable(41) ptr @_ZN14PerfectHashMapIN6Halide8Internal13Autoscheduler11FunctionDAG4Node5StageENS2_8LoopNest5SitesELi4E22PerfectHashMapAsserterE13get_or_createEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %151, ptr noundef %153)
  %155 = getelementptr inbounds %"struct.Halide::Internal::Autoscheduler::LoopNest::Sites", ptr %154, i32 0, i32 3
  store ptr %26, ptr %155, align 8, !tbaa !52
  br label %156

156:                                              ; preds = %150, %146
  ret void
}

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(41) ptr @_ZN14PerfectHashMapIN6Halide8Internal13Autoscheduler11FunctionDAG4Node5StageENS2_8LoopNest5SitesELi4E22PerfectHashMapAsserterE13get_or_createEPKS5_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) #3 align 2

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(1368) ptr @_ZNKSt6vectorIN6Halide8Internal13Autoscheduler11FunctionDAG4Node5StageESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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, !6, i64 168}
!10 = !{!"_ZTSN6Halide8Internal13Autoscheduler8LoopNestE", !11, i64 0, !15, i64 8, !19, i64 32, !23, i64 56, !29, i64 88, !38, i64 136, !6, i64 168, !6, i64 176, !44, i64 184, !44, i64 185, !44, i64 186, !14, i64 188, !14, i64 192}
!11 = !{!"_ZTSN6Halide8Internal8RefCountE", !12, i64 0}
!12 = !{!"_ZTSSt6atomicIiE", !13, i64 0}
!13 = !{!"_ZTSSt13__atomic_baseIiE", !14, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{!"_ZTSSt6vectorIlSaIlEE", !16, i64 0}
!16 = !{!"_ZTSSt12_Vector_baseIlSaIlEE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIlSaIlEE12_Vector_implE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIlSaIlEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!19 = !{!"_ZTSSt6vectorIN6Halide8Internal12IntrusivePtrIKNS1_13Autoscheduler8LoopNestEEESaIS6_EE", !20, i64 0}
!20 = !{!"_ZTSSt12_Vector_baseIN6Halide8Internal12IntrusivePtrIKNS1_13Autoscheduler8LoopNestEEESaIS6_EE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIN6Halide8Internal12IntrusivePtrIKNS1_13Autoscheduler8LoopNestEEESaIS6_EE12_Vector_implE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIN6Halide8Internal12IntrusivePtrIKNS1_13Autoscheduler8LoopNestEEESaIS6_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!23 = !{!"_ZTS14PerfectHashMapIN6Halide8Internal13Autoscheduler11FunctionDAG4NodeElLi4E22PerfectHashMapAsserterE", !24, i64 0, !14, i64 24, !28, i64 28}
!24 = !{!"_ZTSSt6vectorISt4pairIPKN6Halide8Internal13Autoscheduler11FunctionDAG4NodeElESaIS8_EE", !25, i64 0}
!25 = !{!"_ZTSSt12_Vector_baseISt4pairIPKN6Halide8Internal13Autoscheduler11FunctionDAG4NodeElESaIS8_EE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseISt4pairIPKN6Halide8Internal13Autoscheduler11FunctionDAG4NodeElESaIS8_EE12_Vector_implE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseISt4pairIPKN6Halide8Internal13Autoscheduler11FunctionDAG4NodeElESaIS8_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!28 = !{!"_ZTSN14PerfectHashMapIN6Halide8Internal13Autoscheduler11FunctionDAG4NodeElLi4E22PerfectHashMapAsserterEUt_E", !7, i64 0}
!29 = !{!"_ZTSSt3setIPKN6Halide8Internal13Autoscheduler11FunctionDAG4NodeESt4lessIS6_ESaIS6_EE", !30, i64 0}
!30 = !{!"_ZTSSt8_Rb_treeIPKN6Halide8Internal13Autoscheduler11FunctionDAG4NodeES6_St9_IdentityIS6_ESt4lessIS6_ESaIS6_EE", !31, i64 0}
!31 = !{!"_ZTSNSt8_Rb_treeIPKN6Halide8Internal13Autoscheduler11FunctionDAG4NodeES6_St9_IdentityIS6_ESt4lessIS6_ESaIS6_EE13_Rb_tree_implISA_Lb1EEE", !32, i64 0, !34, i64 8}
!32 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIPKN6Halide8Internal13Autoscheduler11FunctionDAG4NodeEEE", !33, i64 0}
!33 = !{!"_ZTSSt4lessIPKN6Halide8Internal13Autoscheduler11FunctionDAG4NodeEE"}
!34 = !{!"_ZTSSt15_Rb_tree_header", !35, i64 0, !37, i64 32}
!35 = !{!"_ZTSSt18_Rb_tree_node_base", !36, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!36 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!37 = !{!"long", !7, i64 0}
!38 = !{!"_ZTS14PerfectHashMapIN6Halide8Internal13Autoscheduler11FunctionDAG4NodeENS1_12IntrusivePtrIKNS2_13BoundContentsEEELi4E22PerfectHashMapAsserterE", !39, i64 0, !14, i64 24, !43, i64 28}
!39 = !{!"_ZTSSt6vectorISt4pairIPKN6Halide8Internal13Autoscheduler11FunctionDAG4NodeENS2_12IntrusivePtrIKNS3_13BoundContentsEEEESaISC_EE", !40, i64 0}
!40 = !{!"_ZTSSt12_Vector_baseISt4pairIPKN6Halide8Internal13Autoscheduler11FunctionDAG4NodeENS2_12IntrusivePtrIKNS3_13BoundContentsEEEESaISC_EE", !41, i64 0}
!41 = !{!"_ZTSNSt12_Vector_baseISt4pairIPKN6Halide8Internal13Autoscheduler11FunctionDAG4NodeENS2_12IntrusivePtrIKNS3_13BoundContentsEEEESaISC_EE12_Vector_implE", !42, i64 0}
!42 = !{!"_ZTSNSt12_Vector_baseISt4pairIPKN6Halide8Internal13Autoscheduler11FunctionDAG4NodeENS2_12IntrusivePtrIKNS3_13BoundContentsEEEESaISC_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!43 = !{!"_ZTSN14PerfectHashMapIN6Halide8Internal13Autoscheduler11FunctionDAG4NodeENS1_12IntrusivePtrIKNS2_13BoundContentsEEELi4E22PerfectHashMapAsserterEUt_E", !7, i64 0}
!44 = !{!"bool", !7, i64 0}
!45 = !{!10, !6, i64 176}
!46 = !{!47, !6, i64 0}
!47 = !{!"_ZTSN6Halide8Internal13Autoscheduler8LoopNest5SitesE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !44, i64 40}
!48 = !{!47, !6, i64 16}
!49 = !{!47, !6, i64 32}
!50 = !{!47, !6, i64 8}
!51 = !{!47, !44, i64 40}
!52 = !{!47, !6, i64 24}
!53 = distinct !{!53, !54}
!54 = !{!"llvm.loop.mustprogress"}
!55 = !{!10, !44, i64 184}
!56 = !{i8 0, i8 2}
!57 = !{}


; 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.__gnu_cxx::__normal_iterator.54" = type { ptr }
%"struct.std::_Rb_tree_const_iterator" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.78" = type { ptr }
%"struct.PerfectHashMap<Halide::Internal::Autoscheduler::FunctionDAG::Node, long>::const_iterator" = type { ptr, 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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt23_Rb_tree_const_iteratorIPKN6Halide8Internal13Autoscheduler11FunctionDAG4NodeEEdeEv(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(8) ptr @_ZNSt23_Rb_tree_const_iteratorIPKN6Halide8Internal13Autoscheduler11FunctionDAG4NodeEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK6Halide8Internal12IntrusivePtrIKNS0_13Autoscheduler8LoopNestEEptEv(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(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKN6Halide8Internal12IntrusivePtrIKNS2_13Autoscheduler8LoopNestEEESt6vectorIS7_SaIS7_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, ptr } @_ZNK14PerfectHashMapIN6Halide8Internal13Autoscheduler11FunctionDAG4NodeElLi4E22PerfectHashMapAsserterE5beginEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #3 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { ptr, ptr } @_ZNK14PerfectHashMapIN6Halide8Internal13Autoscheduler11FunctionDAG4NodeElLi4E22PerfectHashMapAsserterE3endEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK6Halide8Internal13Autoscheduler8LoopNest9get_sitesER14PerfectHashMapINS1_11FunctionDAG4Node5StageENS2_5SitesELi4E22PerfectHashMapAsserterEPKS2_SC_(ptr noundef nonnull align 8 dereferenceable(196) %0, ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef %2, ptr noundef %3) local_unnamed_addr #3 align 2 {
  %5 = alloca %"class.__gnu_cxx::__normal_iterator.54", align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator.54", align 8
  %7 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %8 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %9 = alloca %"class.__gnu_cxx::__normal_iterator.78", align 8
  %10 = alloca %"class.__gnu_cxx::__normal_iterator.78", align 8
  %11 = alloca %"struct.PerfectHashMap<Halide::Internal::Autoscheduler::FunctionDAG::Node, long>::const_iterator", align 8
  %12 = alloca %"struct.PerfectHashMap<Halide::Internal::Autoscheduler::FunctionDAG::Node, long>::const_iterator", align 8
  %.not = icmp eq ptr %2, null
  br i1 %.not, label %13, label %15

13:                                               ; preds = %4
  %14 = tail call noundef zeroext i1 @_ZNK6Halide8Internal13Autoscheduler8LoopNest7is_rootEv(ptr noundef nonnull align 8 dereferenceable(196) %0)
  %spec.select = select i1 %14, ptr null, ptr %0
  br label %15

15:                                               ; preds = %13, %4
  %.0 = phi ptr [ %2, %4 ], [ %spec.select, %13 ]
  %16 = getelementptr inbounds i8, ptr %0, i64 32
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #4
  %17 = tail call ptr @_ZNKSt6vectorIN6Halide8Internal12IntrusivePtrIKNS1_13Autoscheduler8LoopNestEEESaIS6_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %16) #4
  store ptr %17, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #4
  %18 = tail call ptr @_ZNKSt6vectorIN6Halide8Internal12IntrusivePtrIKNS1_13Autoscheduler8LoopNestEEESaIS6_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %16) #4
  store ptr %18, ptr %6, align 8
  %19 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN6Halide8Internal12IntrusivePtrIKNS2_13Autoscheduler8LoopNestEEESt6vectorIS7_SaIS7_EEEEbRKNS_17__normal_iteratorIT_T0_EESI_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #4
  br i1 %19, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %15
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  %.not33 = icmp eq ptr %3, null
  br i1 %.not33, label %35, label %24

.lr.ph:                                           ; preds = %15, %.lr.ph
  %20 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN6Halide8Internal12IntrusivePtrIKNS2_13Autoscheduler8LoopNestEEESt6vectorIS7_SaIS7_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #4
  %21 = call noundef ptr @_ZNK6Halide8Internal12IntrusivePtrIKNS0_13Autoscheduler8LoopNestEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %20)
  call void @_ZNK6Halide8Internal13Autoscheduler8LoopNest9get_sitesER14PerfectHashMapINS1_11FunctionDAG4Node5StageENS2_5SitesELi4E22PerfectHashMapAsserterEPKS2_SC_(ptr noundef nonnull align 8 dereferenceable(196) %21, ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef %.0, ptr noundef nonnull %0)
  %22 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKN6Halide8Internal12IntrusivePtrIKNS2_13Autoscheduler8LoopNestEEESt6vectorIS7_SaIS7_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #4
  %23 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN6Halide8Internal12IntrusivePtrIKNS2_13Autoscheduler8LoopNestEEESt6vectorIS7_SaIS7_EEEEbRKNS_17__normal_iteratorIT_T0_EESI_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #4
  br i1 %23, label %.lr.ph, label %._crit_edge

24:                                               ; preds = %._crit_edge
  %25 = getelementptr inbounds i8, ptr %0, i64 168
  %26 = load ptr, ptr %25, align 8, !tbaa !5
  %27 = getelementptr inbounds i8, ptr %3, i64 168
  %28 = load ptr, ptr %27, align 8, !tbaa !5
  %.not34 = icmp eq ptr %26, %28
  br i1 %.not34, label %35, label %29

29:                                               ; preds = %24
  %30 = getelementptr inbounds i8, ptr %0, i64 176
  %31 = load ptr, ptr %30, align 8, !tbaa !44
  %32 = call noundef nonnull align 8 dereferenceable(41) ptr @_ZN14PerfectHashMapIN6Halide8Internal13Autoscheduler11FunctionDAG4Node5StageENS2_8LoopNest5SitesELi4E22PerfectHashMapAsserterE13get_or_createEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef %31)
  store ptr %3, ptr %32, align 8, !tbaa !45
  %33 = getelementptr inbounds i8, ptr %32, i64 16
  store ptr %0, ptr %33, align 8, !tbaa !47
  %34 = getelementptr inbounds i8, ptr %32, i64 32
  store ptr %.0, ptr %34, align 8, !tbaa !48
  br label %35

35:                                               ; preds = %29, %24, %._crit_edge
  %36 = getelementptr inbounds i8, ptr %0, i64 88
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #4
  %37 = call ptr @_ZNKSt3setIPKN6Halide8Internal13Autoscheduler11FunctionDAG4NodeESt4lessIS6_ESaIS6_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %36) #4
  store ptr %37, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #4
  %38 = call ptr @_ZNKSt3setIPKN6Halide8Internal13Autoscheduler11FunctionDAG4NodeESt4lessIS6_ESaIS6_EE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %36) #4
  store ptr %38, ptr %8, align 8
  %39 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIPKN6Halide8Internal13Autoscheduler11FunctionDAG4NodeEES9_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #4
  br i1 %39, label %.lr.ph39, label %._crit_edge40

._crit_edge40:                                    ; preds = %._crit_edge37, %35
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #4
  %40 = getelementptr inbounds i8, ptr %0, i64 56
  %41 = call { ptr, ptr } @_ZNK14PerfectHashMapIN6Halide8Internal13Autoscheduler11FunctionDAG4NodeElLi4E22PerfectHashMapAsserterE5beginEv(ptr noundef nonnull align 8 dereferenceable(32) %40)
  %42 = extractvalue { ptr, ptr } %41, 0
  store ptr %42, ptr %11, align 8
  %43 = getelementptr inbounds i8, ptr %11, i64 8
  %44 = extractvalue { ptr, ptr } %41, 1
  store ptr %44, ptr %43, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #4
  %45 = call { ptr, ptr } @_ZNK14PerfectHashMapIN6Halide8Internal13Autoscheduler11FunctionDAG4NodeElLi4E22PerfectHashMapAsserterE3endEv(ptr noundef nonnull align 8 dereferenceable(32) %40)
  %46 = extractvalue { ptr, ptr } %45, 0
  store ptr %46, ptr %12, align 8
  %47 = getelementptr inbounds i8, ptr %12, i64 8
  %48 = extractvalue { ptr, ptr } %45, 1
  store ptr %48, ptr %47, align 8
  %49 = call noundef zeroext i1 @_ZNK14PerfectHashMapIN6Halide8Internal13Autoscheduler11FunctionDAG4NodeElLi4E22PerfectHashMapAsserterE14const_iteratorneERKS7_(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 8 dereferenceable(16) %12)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #4
  br i1 %49, label %.lr.ph42, label %._crit_edge43

.lr.ph39:                                         ; preds = %35, %._crit_edge37
  %50 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt23_Rb_tree_const_iteratorIPKN6Halide8Internal13Autoscheduler11FunctionDAG4NodeEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #4
  %51 = load ptr, ptr %50, align 8, !tbaa !49
  %52 = getelementptr inbounds i8, ptr %51, i64 120
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #4
  %53 = call ptr @_ZNKSt6vectorIN6Halide8Internal13Autoscheduler11FunctionDAG4Node5StageESaIS5_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %52) #4
  store ptr %53, ptr %9, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #4
  %54 = call ptr @_ZNKSt6vectorIN6Halide8Internal13Autoscheduler11FunctionDAG4Node5StageESaIS5_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %52) #4
  store ptr %54, ptr %10, align 8
  %55 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN6Halide8Internal13Autoscheduler11FunctionDAG4Node5StageESt6vectorIS6_SaIS6_EEEEbRKNS_17__normal_iteratorIT_T0_EESH_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #4
  br i1 %55, label %.lr.ph36, label %._crit_edge37

._crit_edge37:                                    ; preds = %.lr.ph36, %.lr.ph39
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #4
  %56 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorIPKN6Halide8Internal13Autoscheduler11FunctionDAG4NodeEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #4
  %57 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIPKN6Halide8Internal13Autoscheduler11FunctionDAG4NodeEES9_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #4
  br i1 %57, label %.lr.ph39, label %._crit_edge40

.lr.ph36:                                         ; preds = %.lr.ph39, %.lr.ph36
  %58 = call noundef nonnull align 8 dereferenceable(1368) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN6Halide8Internal13Autoscheduler11FunctionDAG4Node5StageESt6vectorIS6_SaIS6_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #4
  %59 = call noundef nonnull align 8 dereferenceable(41) ptr @_ZN14PerfectHashMapIN6Halide8Internal13Autoscheduler11FunctionDAG4Node5StageENS2_8LoopNest5SitesELi4E22PerfectHashMapAsserterE13get_or_createEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull %58)
  %60 = getelementptr inbounds i8, ptr %59, i64 8
  store ptr %0, ptr %60, align 8, !tbaa !50
  %61 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKN6Halide8Internal13Autoscheduler11FunctionDAG4Node5StageESt6vectorIS6_SaIS6_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #4
  %62 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN6Halide8Internal13Autoscheduler11FunctionDAG4Node5StageESt6vectorIS6_SaIS6_EEEEbRKNS_17__normal_iteratorIT_T0_EESH_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #4
  br i1 %62, label %.lr.ph36, label %._crit_edge37

._crit_edge43:                                    ; preds = %.lr.ph42, %._crit_edge40
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #4
  %63 = getelementptr inbounds i8, ptr %0, i64 184
  %64 = load i8, ptr %63, align 8, !tbaa !51, !range !52, !noundef !53
  %65 = trunc nuw i8 %64 to i1
  br i1 %65, label %79, label %84

.lr.ph42:                                         ; preds = %._crit_edge40, %.lr.ph42
  %66 = call noundef ptr @_ZNK14PerfectHashMapIN6Halide8Internal13Autoscheduler11FunctionDAG4NodeElLi4E22PerfectHashMapAsserterE14const_iterator3keyEv(ptr noundef nonnull align 8 dereferenceable(16) %11)
  %67 = getelementptr inbounds i8, ptr %66, i64 120
  %68 = call noundef nonnull align 8 dereferenceable(1368) ptr @_ZNKSt6vectorIN6Halide8Internal13Autoscheduler11FunctionDAG4Node5StageESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %67, i64 noundef 0) #4
  %69 = call noundef nonnull align 8 dereferenceable(41) ptr @_ZN14PerfectHashMapIN6Halide8Internal13Autoscheduler11FunctionDAG4Node5StageENS2_8LoopNest5SitesELi4E22PerfectHashMapAsserterE13get_or_createEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull %68)
  %70 = getelementptr inbounds i8, ptr %69, i64 40
  store i8 1, ptr %70, align 8, !tbaa !54
  %71 = getelementptr inbounds i8, ptr %69, i64 24
  store ptr %0, ptr %71, align 8, !tbaa !55
  %72 = getelementptr inbounds i8, ptr %69, i64 16
  store ptr %0, ptr %72, align 8, !tbaa !47
  %73 = getelementptr inbounds i8, ptr %69, i64 8
  store ptr %0, ptr %73, align 8, !tbaa !50
  store ptr %0, ptr %69, align 8, !tbaa !45
  %74 = getelementptr inbounds i8, ptr %69, i64 32
  store ptr %.0, ptr %74, align 8, !tbaa !48
  call void @_ZN14PerfectHashMapIN6Halide8Internal13Autoscheduler11FunctionDAG4NodeElLi4E22PerfectHashMapAsserterE14const_iteratorppEi(ptr noundef nonnull align 8 dereferenceable(16) %11, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #4
  %75 = call { ptr, ptr } @_ZNK14PerfectHashMapIN6Halide8Internal13Autoscheduler11FunctionDAG4NodeElLi4E22PerfectHashMapAsserterE3endEv(ptr noundef nonnull align 8 dereferenceable(32) %40)
  %76 = extractvalue { ptr, ptr } %75, 0
  store ptr %76, ptr %12, align 8
  %77 = extractvalue { ptr, ptr } %75, 1
  store ptr %77, ptr %47, align 8
  %78 = call noundef zeroext i1 @_ZNK14PerfectHashMapIN6Halide8Internal13Autoscheduler11FunctionDAG4NodeElLi4E22PerfectHashMapAsserterE14const_iteratorneERKS7_(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 8 dereferenceable(16) %12)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #4
  br i1 %78, label %.lr.ph42, label %._crit_edge43, !llvm.loop !56

79:                                               ; preds = %._crit_edge43
  %80 = getelementptr inbounds i8, ptr %0, i64 176
  %81 = load ptr, ptr %80, align 8, !tbaa !44
  %82 = call noundef nonnull align 8 dereferenceable(41) ptr @_ZN14PerfectHashMapIN6Halide8Internal13Autoscheduler11FunctionDAG4Node5StageENS2_8LoopNest5SitesELi4E22PerfectHashMapAsserterE13get_or_createEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef %81)
  %83 = getelementptr inbounds i8, ptr %82, i64 24
  store ptr %0, ptr %83, align 8, !tbaa !55
  br label %84

84:                                               ; preds = %79, %._crit_edge43
  ret void
}

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(41) ptr @_ZN14PerfectHashMapIN6Halide8Internal13Autoscheduler11FunctionDAG4Node5StageENS2_8LoopNest5SitesELi4E22PerfectHashMapAsserterE13get_or_createEPKS5_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) local_unnamed_addr #3 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(1368) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN6Halide8Internal13Autoscheduler11FunctionDAG4Node5StageESt6vectorIS6_SaIS6_EEEdeEv(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(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKN6Halide8Internal13Autoscheduler11FunctionDAG4Node5StageESt6vectorIS6_SaIS6_EEEppEv(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(1368) ptr @_ZNKSt6vectorIN6Halide8Internal13Autoscheduler11FunctionDAG4Node5StageESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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, !17, i64 168}
!6 = !{!"_ZTSN6Halide8Internal13Autoscheduler8LoopNestE", !7, i64 0, !13, i64 8, !18, i64 32, !22, i64 56, !28, i64 88, !37, i64 136, !17, i64 168, !17, i64 176, !43, i64 184, !43, i64 185, !43, i64 186, !10, i64 188, !10, i64 192}
!7 = !{!"_ZTSN6Halide8Internal8RefCountE", !8, i64 0}
!8 = !{!"_ZTSSt6atomicIiE", !9, i64 0}
!9 = !{!"_ZTSSt13__atomic_baseIiE", !10, i64 0}
!10 = !{!"int", !11, i64 0}
!11 = !{!"omnipotent char", !12, i64 0}
!12 = !{!"Simple C++ TBAA"}
!13 = !{!"_ZTSSt6vectorIlSaIlEE", !14, i64 0}
!14 = !{!"_ZTSSt12_Vector_baseIlSaIlEE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIlSaIlEE12_Vector_implE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIlSaIlEE17_Vector_impl_dataE", !17, i64 0, !17, i64 8, !17, i64 16}
!17 = !{!"any pointer", !11, i64 0}
!18 = !{!"_ZTSSt6vectorIN6Halide8Internal12IntrusivePtrIKNS1_13Autoscheduler8LoopNestEEESaIS6_EE", !19, i64 0}
!19 = !{!"_ZTSSt12_Vector_baseIN6Halide8Internal12IntrusivePtrIKNS1_13Autoscheduler8LoopNestEEESaIS6_EE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIN6Halide8Internal12IntrusivePtrIKNS1_13Autoscheduler8LoopNestEEESaIS6_EE12_Vector_implE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIN6Halide8Internal12IntrusivePtrIKNS1_13Autoscheduler8LoopNestEEESaIS6_EE17_Vector_impl_dataE", !17, i64 0, !17, i64 8, !17, i64 16}
!22 = !{!"_ZTS14PerfectHashMapIN6Halide8Internal13Autoscheduler11FunctionDAG4NodeElLi4E22PerfectHashMapAsserterE", !23, i64 0, !10, i64 24, !27, i64 28}
!23 = !{!"_ZTSSt6vectorISt4pairIPKN6Halide8Internal13Autoscheduler11FunctionDAG4NodeElESaIS8_EE", !24, i64 0}
!24 = !{!"_ZTSSt12_Vector_baseISt4pairIPKN6Halide8Internal13Autoscheduler11FunctionDAG4NodeElESaIS8_EE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseISt4pairIPKN6Halide8Internal13Autoscheduler11FunctionDAG4NodeElESaIS8_EE12_Vector_implE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseISt4pairIPKN6Halide8Internal13Autoscheduler11FunctionDAG4NodeElESaIS8_EE17_Vector_impl_dataE", !17, i64 0, !17, i64 8, !17, i64 16}
!27 = !{!"_ZTSN14PerfectHashMapIN6Halide8Internal13Autoscheduler11FunctionDAG4NodeElLi4E22PerfectHashMapAsserterEUt_E", !11, i64 0}
!28 = !{!"_ZTSSt3setIPKN6Halide8Internal13Autoscheduler11FunctionDAG4NodeESt4lessIS6_ESaIS6_EE", !29, i64 0}
!29 = !{!"_ZTSSt8_Rb_treeIPKN6Halide8Internal13Autoscheduler11FunctionDAG4NodeES6_St9_IdentityIS6_ESt4lessIS6_ESaIS6_EE", !30, i64 0}
!30 = !{!"_ZTSNSt8_Rb_treeIPKN6Halide8Internal13Autoscheduler11FunctionDAG4NodeES6_St9_IdentityIS6_ESt4lessIS6_ESaIS6_EE13_Rb_tree_implISA_Lb1EEE", !31, i64 0, !33, i64 8}
!31 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIPKN6Halide8Internal13Autoscheduler11FunctionDAG4NodeEEE", !32, i64 0}
!32 = !{!"_ZTSSt4lessIPKN6Halide8Internal13Autoscheduler11FunctionDAG4NodeEE"}
!33 = !{!"_ZTSSt15_Rb_tree_header", !34, i64 0, !36, i64 32}
!34 = !{!"_ZTSSt18_Rb_tree_node_base", !35, i64 0, !17, i64 8, !17, i64 16, !17, i64 24}
!35 = !{!"_ZTSSt14_Rb_tree_color", !11, i64 0}
!36 = !{!"long", !11, i64 0}
!37 = !{!"_ZTS14PerfectHashMapIN6Halide8Internal13Autoscheduler11FunctionDAG4NodeENS1_12IntrusivePtrIKNS2_13BoundContentsEEELi4E22PerfectHashMapAsserterE", !38, i64 0, !10, i64 24, !42, i64 28}
!38 = !{!"_ZTSSt6vectorISt4pairIPKN6Halide8Internal13Autoscheduler11FunctionDAG4NodeENS2_12IntrusivePtrIKNS3_13BoundContentsEEEESaISC_EE", !39, i64 0}
!39 = !{!"_ZTSSt12_Vector_baseISt4pairIPKN6Halide8Internal13Autoscheduler11FunctionDAG4NodeENS2_12IntrusivePtrIKNS3_13BoundContentsEEEESaISC_EE", !40, i64 0}
!40 = !{!"_ZTSNSt12_Vector_baseISt4pairIPKN6Halide8Internal13Autoscheduler11FunctionDAG4NodeENS2_12IntrusivePtrIKNS3_13BoundContentsEEEESaISC_EE12_Vector_implE", !41, i64 0}
!41 = !{!"_ZTSNSt12_Vector_baseISt4pairIPKN6Halide8Internal13Autoscheduler11FunctionDAG4NodeENS2_12IntrusivePtrIKNS3_13BoundContentsEEEESaISC_EE17_Vector_impl_dataE", !17, i64 0, !17, i64 8, !17, i64 16}
!42 = !{!"_ZTSN14PerfectHashMapIN6Halide8Internal13Autoscheduler11FunctionDAG4NodeENS1_12IntrusivePtrIKNS2_13BoundContentsEEELi4E22PerfectHashMapAsserterEUt_E", !11, i64 0}
!43 = !{!"bool", !11, i64 0}
!44 = !{!6, !17, i64 176}
!45 = !{!46, !17, i64 0}
!46 = !{!"_ZTSN6Halide8Internal13Autoscheduler8LoopNest5SitesE", !17, i64 0, !17, i64 8, !17, i64 16, !17, i64 24, !17, i64 32, !43, i64 40}
!47 = !{!46, !17, i64 16}
!48 = !{!46, !17, i64 32}
!49 = !{!17, !17, i64 0}
!50 = !{!46, !17, i64 8}
!51 = !{!6, !43, i64 184}
!52 = !{i8 0, i8 2}
!53 = !{}
!54 = !{!46, !43, i64 40}
!55 = !{!46, !17, i64 24}
!56 = distinct !{!56, !57}
!57 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass