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

; 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::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"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::locale" = type { ptr }
%"struct.(anonymous namespace)::Flags" = type { i32, %"class.std::vector", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", i32, i8, %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" = type { ptr, ptr, 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::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<int, std::pair<const int, (anonymous namespace)::PipelineSample>, std::_Select1st<std::pair<const int, (anonymous namespace)::PipelineSample>>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, std::pair<const int, (anonymous namespace)::PipelineSample>, std::_Select1st<std::pair<const int, (anonymous namespace)::PipelineSample>>, std::less<int>>::_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.std::vector.6" = type { %"struct.std::_Vector_base.7" }
%"struct.std::_Vector_base.7" = type { %"struct.std::_Vector_base<std::unique_ptr<Halide::DefaultCostModel>, std::allocator<std::unique_ptr<Halide::DefaultCostModel>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::unique_ptr<Halide::DefaultCostModel>, std::allocator<std::unique_ptr<Halide::DefaultCostModel>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::unique_ptr<Halide::DefaultCostModel>, std::allocator<std::unique_ptr<Halide::DefaultCostModel>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::unique_ptr<Halide::DefaultCostModel>, std::allocator<std::unique_ptr<Halide::DefaultCostModel>>>::_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.12" }
%"struct.std::_Head_base.12" = type { ptr }
%"class.std::mersenne_twister_engine" = type { [624 x i64], i64 }
%"struct.std::_Rb_tree_iterator" = type { ptr }
%"struct.std::pair" = type { i32, %"struct.(anonymous namespace)::PipelineSample" }
%"struct.(anonymous namespace)::PipelineSample" = type { i32, i32, %"class.Halide::Runtime::Buffer", %"class.std::map.13", i64, float, i64 }
%"class.Halide::Runtime::Buffer" = type { %struct.halide_buffer_t, [4 x %struct.halide_dimension_t], ptr, ptr }
%struct.halide_buffer_t = type { i64, ptr, ptr, i64, %struct.halide_type_t, i32, ptr, ptr }
%struct.halide_type_t = type { i8, i8, i16 }
%struct.halide_dimension_t = type { i32, i32, i32, i32 }
%"class.std::map.13" = type { %"class.std::_Rb_tree.14" }
%"class.std::_Rb_tree.14" = type { %"struct.std::_Rb_tree<unsigned long, std::pair<const unsigned long, (anonymous namespace)::Sample>, std::_Select1st<std::pair<const unsigned long, (anonymous namespace)::Sample>>, std::less<unsigned long>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<unsigned long, std::pair<const unsigned long, (anonymous namespace)::Sample>, std::_Select1st<std::pair<const unsigned long, (anonymous namespace)::Sample>>, std::less<unsigned long>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::pair.19" = type <{ %"struct.std::_Rb_tree_iterator", i8, [7 x i8] }>
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%struct.Inversion = type <{ i32, [4 x i8], %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", float, float, float, float, float, [4 x i8] }>
%"struct.std::_Rb_tree_iterator.22" = type { ptr }
%"class.Halide::Runtime::Buffer.25" = type { %struct.halide_buffer_t, [4 x %struct.halide_dimension_t], ptr, ptr }
%"struct.std::pair.23" = type { i64, %"struct.(anonymous namespace)::Sample" }
%"struct.(anonymous namespace)::Sample" = type { %"class.std::vector", [1 x double], %"class.std::__cxx11::basic_string", i32, %"class.Halide::Runtime::Buffer" }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [16 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [97 x i8], align 1
@__PRETTY_FUNCTION__.main = external hidden unnamed_addr constant [23 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [28 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr noundef %1) #0 personality ptr @__gxx_personality_v0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca %"struct.(anonymous namespace)::Flags", align 8
  %7 = alloca %"class.std::map", align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca %"class.std::vector.6", align 8
  %11 = alloca i32, align 4
  %12 = alloca %"class.std::unique_ptr", align 8
  %13 = alloca i64, align 8
  %14 = alloca %"class.std::mersenne_twister_engine", align 8
  %15 = alloca %"class.std::map", align 8
  %16 = alloca i64, align 8
  %17 = alloca ptr, align 8
  %18 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %19 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %20 = alloca %"struct.std::pair", align 8
  %21 = alloca %"struct.std::pair.19", align 8
  %22 = alloca ptr, align 8
  %23 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %24 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %25 = alloca %"struct.std::pair", align 8
  %26 = alloca ptr, align 8
  %27 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %28 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %29 = alloca i32, align 4
  %30 = alloca float, align 4
  %31 = alloca [1 x float], align 4
  %32 = alloca [1 x float], align 4
  %33 = alloca [1 x float], align 4
  %34 = alloca [1 x float], align 4
  %35 = alloca [1 x float], align 4
  %36 = alloca [1 x float], align 4
  %37 = alloca i32, align 4
  %38 = alloca i32, align 4
  %39 = alloca float, align 4
  %40 = alloca i64, align 8
  %41 = alloca i64, align 8
  %42 = alloca %struct.Inversion, align 8
  %43 = alloca i32, align 4
  %44 = alloca i32, align 4
  %45 = alloca ptr, align 8
  %46 = alloca ptr, align 8
  %47 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %48 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %49 = alloca ptr, align 8
  %50 = alloca i64, align 8
  %51 = alloca i64, align 8
  %52 = alloca i64, align 8
  %53 = alloca i64, align 8
  %54 = alloca %"class.Halide::Runtime::Buffer", align 8
  %55 = alloca i64, align 8
  %56 = alloca %"struct.std::_Rb_tree_iterator.22", align 8
  %57 = alloca i64, align 8
  %58 = alloca ptr, align 8
  %59 = alloca %"class.Halide::Runtime::Buffer", align 8
  %60 = alloca %"struct.std::_Rb_tree_iterator.22", align 8
  %61 = alloca float, align 4
  %62 = alloca %"class.Halide::Runtime::Buffer.25", align 8
  %63 = alloca %"struct.std::_Rb_tree_iterator.22", align 8
  %64 = alloca i64, align 8
  %65 = alloca ptr, align 8
  %66 = alloca float, align 4
  %67 = alloca %"struct.std::_Rb_tree_iterator.22", align 8
  %68 = alloca i32, align 4
  %69 = alloca i32, align 4
  %70 = alloca ptr, align 8
  %71 = alloca %"struct.std::_Rb_tree_iterator.22", align 8
  %72 = alloca %"struct.std::_Rb_tree_iterator.22", align 8
  %73 = alloca ptr, align 8
  %74 = alloca ptr, align 8
  %75 = alloca float, align 4
  %76 = alloca float, align 4
  %77 = alloca i32, align 4
  %78 = alloca i32, align 4
  %79 = alloca float, align 4
  %80 = alloca i32, align 4
  %81 = alloca float, align 4
  %82 = alloca i32, align 4
  %83 = alloca %"class.std::__cxx11::basic_string", align 8
  %84 = alloca i32, align 4
  %85 = alloca %"class.std::__cxx11::basic_string", align 8
  %86 = alloca %"class.std::__cxx11::basic_string", align 8
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 168, ptr %6) #11
  %87 = load i32, ptr %4, align 4, !tbaa !5
  %88 = load ptr, ptr %5, align 8, !tbaa !9
  call void @_ZN12_GLOBAL__N_15FlagsC2EiPPc(ptr noundef nonnull align 8 dereferenceable(168) %6, i32 noundef %87, ptr noundef %88)
  call void @llvm.lifetime.start.p0(i64 48, ptr %7) #11
  invoke void @_ZN12_GLOBAL__N_112load_samplesERKNS_5FlagsE(ptr dead_on_unwind writable sret(%"class.std::map") align 8 %7, ptr noundef nonnull align 8 dereferenceable(168) %6)
          to label %89 unwind label %94

89:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 24, ptr %10) #11
  call void @_ZNSt6vectorISt10unique_ptrIN6Halide16DefaultCostModelESt14default_deleteIS2_EESaIS5_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #11
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #11
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %90

90:                                               ; preds = %107, %89
  %91 = load i32, ptr %11, align 4, !tbaa !5
  %92 = icmp slt i32 %91, 1
  br i1 %92, label %98, label %93

93:                                               ; preds = %90
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #11
  br label %119

94:                                               ; preds = %2
  %95 = landingpad { ptr, i32 }
          cleanup
  %96 = extractvalue { ptr, i32 } %95, 0
  store ptr %96, ptr %8, align 8
  %97 = extractvalue { ptr, i32 } %95, 1
  store i32 %97, ptr %9, align 4
  br label %1047

98:                                               ; preds = %90
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #11
  %99 = getelementptr inbounds %"struct.(anonymous namespace)::Flags", ptr %6, i32 0, i32 2
  %100 = getelementptr inbounds %"struct.(anonymous namespace)::Flags", ptr %6, i32 0, i32 3
  %101 = getelementptr inbounds %"struct.(anonymous namespace)::Flags", ptr %6, i32 0, i32 5
  %102 = load i8, ptr %101, align 4, !tbaa !11, !range !21, !noundef !22
  %103 = trunc i8 %102 to i1
  invoke void @_ZN6Halide23make_default_cost_modelERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_b(ptr dead_on_unwind writable sret(%"class.std::unique_ptr") align 8 %12, ptr noundef nonnull align 8 dereferenceable(32) %99, ptr noundef nonnull align 8 dereferenceable(32) %100, i1 noundef zeroext %103)
          to label %104 unwind label %110

104:                                              ; preds = %98
  %105 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorISt10unique_ptrIN6Halide16DefaultCostModelESt14default_deleteIS2_EESaIS5_EE12emplace_backIJS5_EEERS5_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 8 dereferenceable(8) %12)
          to label %106 unwind label %114

106:                                              ; preds = %104
  call void @_ZNSt10unique_ptrIN6Halide16DefaultCostModelESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #11
  br label %107

107:                                              ; preds = %106
  %108 = load i32, ptr %11, align 4, !tbaa !5
  %109 = add nsw i32 %108, 1
  store i32 %109, ptr %11, align 4, !tbaa !5
  br label %90, !llvm.loop !23

110:                                              ; preds = %98
  %111 = landingpad { ptr, i32 }
          cleanup
  %112 = extractvalue { ptr, i32 } %111, 0
  store ptr %112, ptr %8, align 8
  %113 = extractvalue { ptr, i32 } %111, 1
  store i32 %113, ptr %9, align 4
  br label %118

114:                                              ; preds = %104
  %115 = landingpad { ptr, i32 }
          cleanup
  %116 = extractvalue { ptr, i32 } %115, 0
  store ptr %116, ptr %8, align 8
  %117 = extractvalue { ptr, i32 } %115, 1
  store i32 %117, ptr %9, align 4
  call void @_ZNSt10unique_ptrIN6Halide16DefaultCostModelESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #11
  br label %118

118:                                              ; preds = %114, %110
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #11
  br label %1046

119:                                              ; preds = %93
  %120 = load ptr, ptr @_ZSt4cout, align 8, !tbaa !25
  %121 = getelementptr i8, ptr %120, i64 -24
  %122 = load i64, ptr %121, align 8
  %123 = getelementptr inbounds i8, ptr @_ZSt4cout, i64 %122
  %124 = invoke noundef i32 @_ZNSt8ios_base4setfESt13_Ios_FmtflagsS0_(ptr noundef nonnull align 8 dereferenceable(216) %123, i32 noundef 4, i32 noundef 260)
          to label %125 unwind label %161

125:                                              ; preds = %119
  %126 = load ptr, ptr @_ZSt4cout, align 8, !tbaa !25
  %127 = getelementptr i8, ptr %126, i64 -24
  %128 = load i64, ptr %127, align 8
  %129 = getelementptr inbounds i8, ptr @_ZSt4cout, i64 %128
  %130 = invoke noundef i64 @_ZNSt8ios_base9precisionEl(ptr noundef nonnull align 8 dereferenceable(216) %129, i64 noundef 4)
          to label %131 unwind label %161

131:                                              ; preds = %125
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #11
  %132 = call i64 @time(ptr noundef null) #11
  store i64 %132, ptr %13, align 8, !tbaa !27
  call void @llvm.lifetime.start.p0(i64 5000, ptr %14) #11
  %133 = load i64, ptr %13, align 8, !tbaa !27
  %134 = trunc i64 %133 to i32
  %135 = zext i32 %134 to i64
  invoke void @_ZNSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEC2Em(ptr noundef nonnull align 8 dereferenceable(5000) %14, i64 noundef %135)
          to label %136 unwind label %165

136:                                              ; preds = %131
  %137 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
          to label %138 unwind label %165

138:                                              ; preds = %136
  %139 = call noundef i64 @_ZNKSt3mapIiN12_GLOBAL__N_114PipelineSampleESt4lessIiESaISt4pairIKiS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %7) #11
  %140 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %137, i64 noundef %139)
          to label %141 unwind label %165

141:                                              ; preds = %138
  %142 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %140, ptr noundef @.str.2)
          to label %143 unwind label %165

143:                                              ; preds = %141
  %144 = load i64, ptr %13, align 8, !tbaa !27
  %145 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEl(ptr noundef nonnull align 8 dereferenceable(8) %142, i64 noundef %144)
          to label %146 unwind label %165

146:                                              ; preds = %143
  %147 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %145, ptr noundef @.str.3)
          to label %148 unwind label %165

148:                                              ; preds = %146
  call void @llvm.lifetime.start.p0(i64 48, ptr %15) #11
  call void @_ZNSt3mapIiN12_GLOBAL__N_114PipelineSampleESt4lessIiESaISt4pairIKiS1_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %15) #11
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #11
  store i64 0, ptr %16, align 8, !tbaa !27
  %149 = call noundef i64 @_ZNKSt3mapIiN12_GLOBAL__N_114PipelineSampleESt4lessIiESaISt4pairIKiS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %7) #11
  %150 = icmp ugt i64 %149, 16
  br i1 %150, label %151, label %229

151:                                              ; preds = %148
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #11
  store ptr %7, ptr %17, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #11
  %152 = load ptr, ptr %17, align 8, !tbaa !9
  %153 = call ptr @_ZNSt3mapIiN12_GLOBAL__N_114PipelineSampleESt4lessIiESaISt4pairIKiS1_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %152) #11
  %154 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %18, i32 0, i32 0
  store ptr %153, ptr %154, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #11
  %155 = load ptr, ptr %17, align 8, !tbaa !9
  %156 = call ptr @_ZNSt3mapIiN12_GLOBAL__N_114PipelineSampleESt4lessIiESaISt4pairIKiS1_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %155) #11
  %157 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %19, i32 0, i32 0
  store ptr %156, ptr %157, align 8
  br label %158

158:                                              ; preds = %198, %151
  %159 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiN12_GLOBAL__N_114PipelineSampleEEES7_(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) %19) #11
  br i1 %159, label %169, label %160

160:                                              ; preds = %158
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #11
  br label %201

161:                                              ; preds = %125, %119
  %162 = landingpad { ptr, i32 }
          cleanup
  %163 = extractvalue { ptr, i32 } %162, 0
  store ptr %163, ptr %8, align 8
  %164 = extractvalue { ptr, i32 } %162, 1
  store i32 %164, ptr %9, align 4
  br label %1046

165:                                              ; preds = %146, %143, %141, %138, %136, %131
  %166 = landingpad { ptr, i32 }
          cleanup
  %167 = extractvalue { ptr, i32 } %166, 0
  store ptr %167, ptr %8, align 8
  %168 = extractvalue { ptr, i32 } %166, 1
  store i32 %168, ptr %9, align 4
  br label %1045

169:                                              ; preds = %158
  call void @llvm.lifetime.start.p0(i64 224, ptr %20) #11
  %170 = call noundef nonnull align 8 dereferenceable(224) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiN12_GLOBAL__N_114PipelineSampleEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %18) #11
  invoke void @_ZNSt4pairIKiN12_GLOBAL__N_114PipelineSampleEEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(224) %20, ptr noundef nonnull align 8 dereferenceable(224) %170)
          to label %171 unwind label %189

171:                                              ; preds = %169
  %172 = getelementptr inbounds %"struct.std::pair", ptr %20, i32 0, i32 1
  %173 = getelementptr inbounds %"struct.(anonymous namespace)::PipelineSample", ptr %172, i32 0, i32 3
  %174 = call noundef i64 @_ZNKSt3mapImN12_GLOBAL__N_16SampleESt4lessImESaISt4pairIKmS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %173) #11
  %175 = load i64, ptr %16, align 8, !tbaa !27
  %176 = add i64 %175, %174
  store i64 %176, ptr %16, align 8, !tbaa !27
  %177 = getelementptr inbounds %"struct.std::pair", ptr %20, i32 0, i32 1
  %178 = getelementptr inbounds %"struct.(anonymous namespace)::PipelineSample", ptr %177, i32 0, i32 6
  %179 = load i64, ptr %178, align 8, !tbaa !28
  %180 = and i64 %179, 7
  %181 = icmp eq i64 %180, 0
  br i1 %181, label %182, label %197

182:                                              ; preds = %171
  %183 = invoke { ptr, i8 } @_ZNSt3mapIiN12_GLOBAL__N_114PipelineSampleESt4lessIiESaISt4pairIKiS1_EEE6insertIRS6_EENSt9enable_ifIXsr16is_constructibleIS6_T_EE5valueES4_ISt17_Rb_tree_iteratorIS6_EbEE4typeEOSC_(ptr noundef nonnull align 8 dereferenceable(48) %15, ptr noundef nonnull align 8 dereferenceable(224) %20)
          to label %184 unwind label %193

184:                                              ; preds = %182
  %185 = getelementptr inbounds { ptr, i8 }, ptr %21, i32 0, i32 0
  %186 = extractvalue { ptr, i8 } %183, 0
  store ptr %186, ptr %185, align 8
  %187 = getelementptr inbounds { ptr, i8 }, ptr %21, i32 0, i32 1
  %188 = extractvalue { ptr, i8 } %183, 1
  store i8 %188, ptr %187, align 8
  br label %197

189:                                              ; preds = %169
  %190 = landingpad { ptr, i32 }
          cleanup
  %191 = extractvalue { ptr, i32 } %190, 0
  store ptr %191, ptr %8, align 8
  %192 = extractvalue { ptr, i32 } %190, 1
  store i32 %192, ptr %9, align 4
  br label %200

193:                                              ; preds = %182
  %194 = landingpad { ptr, i32 }
          cleanup
  %195 = extractvalue { ptr, i32 } %194, 0
  store ptr %195, ptr %8, align 8
  %196 = extractvalue { ptr, i32 } %194, 1
  store i32 %196, ptr %9, align 4
  call void @_ZNSt4pairIKiN12_GLOBAL__N_114PipelineSampleEED2Ev(ptr noundef nonnull align 8 dereferenceable(224) %20) #11
  br label %200

197:                                              ; preds = %184, %171
  call void @_ZNSt4pairIKiN12_GLOBAL__N_114PipelineSampleEED2Ev(ptr noundef nonnull align 8 dereferenceable(224) %20) #11
  call void @llvm.lifetime.end.p0(i64 224, ptr %20) #11
  br label %198

198:                                              ; preds = %197
  %199 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKiN12_GLOBAL__N_114PipelineSampleEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %18) #11
  br label %158

200:                                              ; preds = %193, %189
  call void @llvm.lifetime.end.p0(i64 224, ptr %20) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #11
  br label %1044

201:                                              ; preds = %160
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #11
  store ptr %15, ptr %22, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #11
  %202 = load ptr, ptr %22, align 8, !tbaa !9
  %203 = call ptr @_ZNSt3mapIiN12_GLOBAL__N_114PipelineSampleESt4lessIiESaISt4pairIKiS1_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %202) #11
  %204 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %23, i32 0, i32 0
  store ptr %203, ptr %204, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #11
  %205 = load ptr, ptr %22, align 8, !tbaa !9
  %206 = call ptr @_ZNSt3mapIiN12_GLOBAL__N_114PipelineSampleESt4lessIiESaISt4pairIKiS1_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %205) #11
  %207 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %24, i32 0, i32 0
  store ptr %206, ptr %207, align 8
  br label %208

208:                                              ; preds = %217, %201
  %209 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiN12_GLOBAL__N_114PipelineSampleEEES7_(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef nonnull align 8 dereferenceable(8) %24) #11
  br i1 %209, label %211, label %210

210:                                              ; preds = %208
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #11
  br label %228

211:                                              ; preds = %208
  call void @llvm.lifetime.start.p0(i64 224, ptr %25) #11
  %212 = call noundef nonnull align 8 dereferenceable(224) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiN12_GLOBAL__N_114PipelineSampleEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %23) #11
  invoke void @_ZNSt4pairIKiN12_GLOBAL__N_114PipelineSampleEEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(224) %25, ptr noundef nonnull align 8 dereferenceable(224) %212)
          to label %213 unwind label %219

213:                                              ; preds = %211
  %214 = getelementptr inbounds %"struct.std::pair", ptr %25, i32 0, i32 0
  %215 = invoke noundef i64 @_ZNSt3mapIiN12_GLOBAL__N_114PipelineSampleESt4lessIiESaISt4pairIKiS1_EEE5eraseERS5_(ptr noundef nonnull align 8 dereferenceable(48) %7, ptr noundef nonnull align 4 dereferenceable(4) %214)
          to label %216 unwind label %223

216:                                              ; preds = %213
  call void @_ZNSt4pairIKiN12_GLOBAL__N_114PipelineSampleEED2Ev(ptr noundef nonnull align 8 dereferenceable(224) %25) #11
  call void @llvm.lifetime.end.p0(i64 224, ptr %25) #11
  br label %217

217:                                              ; preds = %216
  %218 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKiN12_GLOBAL__N_114PipelineSampleEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %23) #11
  br label %208

219:                                              ; preds = %211
  %220 = landingpad { ptr, i32 }
          cleanup
  %221 = extractvalue { ptr, i32 } %220, 0
  store ptr %221, ptr %8, align 8
  %222 = extractvalue { ptr, i32 } %220, 1
  store i32 %222, ptr %9, align 4
  br label %227

223:                                              ; preds = %213
  %224 = landingpad { ptr, i32 }
          cleanup
  %225 = extractvalue { ptr, i32 } %224, 0
  store ptr %225, ptr %8, align 8
  %226 = extractvalue { ptr, i32 } %224, 1
  store i32 %226, ptr %9, align 4
  call void @_ZNSt4pairIKiN12_GLOBAL__N_114PipelineSampleEED2Ev(ptr noundef nonnull align 8 dereferenceable(224) %25) #11
  br label %227

227:                                              ; preds = %223, %219
  call void @llvm.lifetime.end.p0(i64 224, ptr %25) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #11
  br label %1044

228:                                              ; preds = %210
  br label %229

229:                                              ; preds = %228, %148
  %230 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.4)
          to label %231 unwind label %247

231:                                              ; preds = %229
  %232 = load i64, ptr %16, align 8, !tbaa !27
  %233 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %230, i64 noundef %232)
          to label %234 unwind label %247

234:                                              ; preds = %231
  %235 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %233, ptr noundef @.str.3)
          to label %236 unwind label %247

236:                                              ; preds = %234
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #11
  %237 = getelementptr inbounds %"struct.(anonymous namespace)::Flags", ptr %6, i32 0, i32 1
  store ptr %237, ptr %26, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #11
  %238 = load ptr, ptr %26, align 8, !tbaa !9
  %239 = call ptr @_ZNSt6vectorIfSaIfEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %238) #11
  %240 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %27, i32 0, i32 0
  store ptr %239, ptr %240, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #11
  %241 = load ptr, ptr %26, align 8, !tbaa !9
  %242 = call ptr @_ZNSt6vectorIfSaIfEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %241) #11
  %243 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %28, i32 0, i32 0
  store ptr %242, ptr %243, align 8
  br label %244

244:                                              ; preds = %1037, %236
  %245 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPfSt6vectorIfSaIfEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %27, ptr noundef nonnull align 8 dereferenceable(8) %28) #11
  br i1 %245, label %251, label %246

246:                                              ; preds = %244
  store i32 9, ptr %29, align 4
  br label %1039

247:                                              ; preds = %234, %231, %229
  %248 = landingpad { ptr, i32 }
          cleanup
  %249 = extractvalue { ptr, i32 } %248, 0
  store ptr %249, ptr %8, align 8
  %250 = extractvalue { ptr, i32 } %248, 1
  store i32 %250, ptr %9, align 4
  br label %1044

251:                                              ; preds = %244
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #11
  %252 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPfSt6vectorIfSaIfEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %27) #11
  %253 = load float, ptr %252, align 4, !tbaa !45
  store float %253, ptr %30, align 4, !tbaa !45
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #11
  call void @llvm.memset.p0.i64(ptr align 4 %31, i8 0, i64 4, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #11
  call void @llvm.memset.p0.i64(ptr align 4 %32, i8 0, i64 4, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #11
  call void @llvm.memset.p0.i64(ptr align 4 %33, i8 0, i64 4, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #11
  call void @llvm.memset.p0.i64(ptr align 4 %34, i8 0, i64 4, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #11
  call void @llvm.memset.p0.i64(ptr align 4 %35, i8 0, i64 4, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #11
  call void @llvm.memset.p0.i64(ptr align 4 %36, i8 0, i64 4, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #11
  store i32 0, ptr %37, align 4, !tbaa !5
  br label %254

254:                                              ; preds = %1023, %251
  %255 = load i32, ptr %37, align 4, !tbaa !5
  %256 = getelementptr inbounds %"struct.(anonymous namespace)::Flags", ptr %6, i32 0, i32 0
  %257 = load i32, ptr %256, align 8, !tbaa !46
  %258 = icmp slt i32 %255, %257
  br i1 %258, label %260, label %259

259:                                              ; preds = %254
  store i32 11, ptr %29, align 4
  br label %1028

260:                                              ; preds = %254
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #11
  store i32 0, ptr %38, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #11
  store float 0.000000e+00, ptr %39, align 4, !tbaa !45
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #11
  store i64 0, ptr %40, align 8, !tbaa !27
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #11
  store i64 0, ptr %41, align 8, !tbaa !27
  call void @llvm.lifetime.start.p0(i64 96, ptr %42) #11
  call void @_ZZ4mainEN9InversionC2Ev(ptr noundef nonnull align 8 dereferenceable(92) %42) #11
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #11
  store i32 0, ptr %43, align 4, !tbaa !5
  br label %261

261:                                              ; preds = %774, %260
  %262 = load i32, ptr %43, align 4, !tbaa !5
  %263 = icmp slt i32 %262, 1
  br i1 %263, label %265, label %264

264:                                              ; preds = %261
  store i32 14, ptr %29, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #11
  br label %777

265:                                              ; preds = %261
  call void @llvm.lifetime.start.p0(i64 4, ptr %44) #11
  store i32 0, ptr %44, align 4, !tbaa !5
  br label %266

266:                                              ; preds = %768, %265
  %267 = load i32, ptr %44, align 4, !tbaa !5
  %268 = icmp slt i32 %267, 2
  br i1 %268, label %270, label %269

269:                                              ; preds = %266
  store i32 17, ptr %29, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #11
  br label %771

270:                                              ; preds = %266
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #11
  %271 = load i32, ptr %43, align 4, !tbaa !5
  %272 = sext i32 %271 to i64
  %273 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorISt10unique_ptrIN6Halide16DefaultCostModelESt14default_deleteIS2_EESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %272) #11
  store ptr %273, ptr %45, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %46) #11
  %274 = load i32, ptr %44, align 4, !tbaa !5
  %275 = icmp ne i32 %274, 0
  br i1 %275, label %276, label %277

276:                                              ; preds = %270
  br label %278

277:                                              ; preds = %270
  br label %278

278:                                              ; preds = %277, %276
  %279 = phi ptr [ %7, %276 ], [ %15, %277 ]
  store ptr %279, ptr %46, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %47) #11
  %280 = load ptr, ptr %46, align 8, !tbaa !9
  %281 = call ptr @_ZNSt3mapIiN12_GLOBAL__N_114PipelineSampleESt4lessIiESaISt4pairIKiS1_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %280) #11
  %282 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %47, i32 0, i32 0
  store ptr %281, ptr %282, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %48) #11
  %283 = load ptr, ptr %46, align 8, !tbaa !9
  %284 = call ptr @_ZNSt3mapIiN12_GLOBAL__N_114PipelineSampleESt4lessIiESaISt4pairIKiS1_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %283) #11
  %285 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %48, i32 0, i32 0
  store ptr %284, ptr %285, align 8
  br label %286

286:                                              ; preds = %759, %278
  %287 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiN12_GLOBAL__N_114PipelineSampleEEES7_(ptr noundef nonnull align 8 dereferenceable(8) %47, ptr noundef nonnull align 8 dereferenceable(8) %48) #11
  br i1 %287, label %289, label %288

288:                                              ; preds = %286
  store i32 20, ptr %29, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #11
  br label %767

289:                                              ; preds = %286
  call void @llvm.lifetime.start.p0(i64 8, ptr %49) #11
  %290 = call noundef nonnull align 8 dereferenceable(224) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiN12_GLOBAL__N_114PipelineSampleEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %47) #11
  store ptr %290, ptr %49, align 8, !tbaa !9
  %291 = load ptr, ptr %49, align 8, !tbaa !9
  %292 = getelementptr inbounds %"struct.std::pair", ptr %291, i32 0, i32 1
  %293 = getelementptr inbounds %"struct.(anonymous namespace)::PipelineSample", ptr %292, i32 0, i32 3
  %294 = call noundef i64 @_ZNKSt3mapImN12_GLOBAL__N_16SampleESt4lessImESaISt4pairIKmS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %293) #11
  %295 = icmp ult i64 %294, 8
  br i1 %295, label %296, label %297

296:                                              ; preds = %289
  store i32 21, ptr %29, align 4
  br label %756

297:                                              ; preds = %289
  %298 = load ptr, ptr %45, align 8, !tbaa !9
  %299 = call noundef ptr @_ZNKSt10unique_ptrIN6Halide16DefaultCostModelESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %298) #11
  %300 = load ptr, ptr %299, align 8, !tbaa !25
  %301 = getelementptr inbounds ptr, ptr %300, i64 5
  %302 = load ptr, ptr %301, align 8
  invoke void %302(ptr noundef nonnull align 8 dereferenceable(2284) %299)
          to label %303 unwind label %336

303:                                              ; preds = %297
  %304 = load ptr, ptr %45, align 8, !tbaa !9
  %305 = call noundef ptr @_ZNKSt10unique_ptrIN6Halide16DefaultCostModelESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %304) #11
  %306 = load ptr, ptr %49, align 8, !tbaa !9
  %307 = getelementptr inbounds %"struct.std::pair", ptr %306, i32 0, i32 1
  %308 = getelementptr inbounds %"struct.(anonymous namespace)::PipelineSample", ptr %307, i32 0, i32 2
  %309 = getelementptr inbounds %"struct.(anonymous namespace)::Flags", ptr %6, i32 0, i32 4
  %310 = load i32, ptr %309, align 8, !tbaa !47
  invoke void @_ZN6Halide16DefaultCostModel21set_pipeline_featuresERKNS_7Runtime6BufferIfLi4EEEi(ptr noundef nonnull align 8 dereferenceable(2284) %305, ptr noundef nonnull align 8 dereferenceable(136) %308, i32 noundef %310)
          to label %311 unwind label %336

311:                                              ; preds = %303
  call void @llvm.lifetime.start.p0(i64 8, ptr %50) #11
  call void @llvm.lifetime.start.p0(i64 8, ptr %51) #11
  store i64 1024, ptr %51, align 8, !tbaa !27
  call void @llvm.lifetime.start.p0(i64 8, ptr %52) #11
  %312 = load ptr, ptr %49, align 8, !tbaa !9
  %313 = getelementptr inbounds %"struct.std::pair", ptr %312, i32 0, i32 1
  %314 = getelementptr inbounds %"struct.(anonymous namespace)::PipelineSample", ptr %313, i32 0, i32 3
  %315 = call noundef i64 @_ZNKSt3mapImN12_GLOBAL__N_16SampleESt4lessImESaISt4pairIKmS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %314) #11
  store i64 %315, ptr %52, align 8, !tbaa !27
  %316 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minImERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %51, ptr noundef nonnull align 8 dereferenceable(8) %52)
          to label %317 unwind label %340

317:                                              ; preds = %311
  %318 = load i64, ptr %316, align 8, !tbaa !27
  call void @llvm.lifetime.end.p0(i64 8, ptr %52) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %51) #11
  store i64 %318, ptr %50, align 8, !tbaa !27
  call void @llvm.lifetime.start.p0(i64 8, ptr %53) #11
  store i64 0, ptr %53, align 8, !tbaa !27
  call void @llvm.lifetime.start.p0(i64 136, ptr %54) #11
  %319 = load i64, ptr %50, align 8, !tbaa !27
  %320 = trunc i64 %319 to i32
  invoke void @_ZN6Halide7Runtime6BufferIfLi4EEC2Ei(ptr noundef nonnull align 8 dereferenceable(136) %54, i32 noundef %320)
          to label %321 unwind label %344

321:                                              ; preds = %317
  call void @llvm.lifetime.start.p0(i64 8, ptr %55) #11
  store i64 0, ptr %55, align 8, !tbaa !27
  %322 = load ptr, ptr %49, align 8, !tbaa !9
  %323 = getelementptr inbounds %"struct.std::pair", ptr %322, i32 0, i32 1
  %324 = getelementptr inbounds %"struct.(anonymous namespace)::PipelineSample", ptr %323, i32 0, i32 3
  %325 = call noundef i64 @_ZNKSt3mapImN12_GLOBAL__N_16SampleESt4lessImESaISt4pairIKmS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %324) #11
  %326 = icmp ugt i64 %325, 1024
  br i1 %326, label %327, label %352

327:                                              ; preds = %321
  %328 = invoke noundef i64 @_ZNSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEclEv(ptr noundef nonnull align 8 dereferenceable(5000) %14)
          to label %329 unwind label %348

329:                                              ; preds = %327
  %330 = load ptr, ptr %49, align 8, !tbaa !9
  %331 = getelementptr inbounds %"struct.std::pair", ptr %330, i32 0, i32 1
  %332 = getelementptr inbounds %"struct.(anonymous namespace)::PipelineSample", ptr %331, i32 0, i32 3
  %333 = call noundef i64 @_ZNKSt3mapImN12_GLOBAL__N_16SampleESt4lessImESaISt4pairIKmS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %332) #11
  %334 = sub i64 %333, 1024
  %335 = urem i64 %328, %334
  store i64 %335, ptr %55, align 8, !tbaa !27
  br label %352

336:                                              ; preds = %303, %297
  %337 = landingpad { ptr, i32 }
          cleanup
  %338 = extractvalue { ptr, i32 } %337, 0
  store ptr %338, ptr %8, align 8
  %339 = extractvalue { ptr, i32 } %337, 1
  store i32 %339, ptr %9, align 4
  br label %766

340:                                              ; preds = %311
  %341 = landingpad { ptr, i32 }
          cleanup
  %342 = extractvalue { ptr, i32 } %341, 0
  store ptr %342, ptr %8, align 8
  %343 = extractvalue { ptr, i32 } %341, 1
  store i32 %343, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %52) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %51) #11
  br label %765

344:                                              ; preds = %317
  %345 = landingpad { ptr, i32 }
          cleanup
  %346 = extractvalue { ptr, i32 } %345, 0
  store ptr %346, ptr %8, align 8
  %347 = extractvalue { ptr, i32 } %345, 1
  store i32 %347, ptr %9, align 4
  br label %764

348:                                              ; preds = %327
  %349 = landingpad { ptr, i32 }
          cleanup
  %350 = extractvalue { ptr, i32 } %349, 0
  store ptr %350, ptr %8, align 8
  %351 = extractvalue { ptr, i32 } %349, 1
  store i32 %351, ptr %9, align 4
  br label %763

352:                                              ; preds = %329, %321
  call void @llvm.lifetime.start.p0(i64 8, ptr %56) #11
  %353 = load ptr, ptr %49, align 8, !tbaa !9
  %354 = getelementptr inbounds %"struct.std::pair", ptr %353, i32 0, i32 1
  %355 = getelementptr inbounds %"struct.(anonymous namespace)::PipelineSample", ptr %354, i32 0, i32 3
  %356 = call ptr @_ZNSt3mapImN12_GLOBAL__N_16SampleESt4lessImESaISt4pairIKmS1_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %355) #11
  %357 = getelementptr inbounds %"struct.std::_Rb_tree_iterator.22", ptr %56, i32 0, i32 0
  store ptr %356, ptr %357, align 8
  %358 = load i64, ptr %55, align 8, !tbaa !27
  invoke void @_ZSt7advanceISt17_Rb_tree_iteratorISt4pairIKmN12_GLOBAL__N_16SampleEEEmEvRT_T0_(ptr noundef nonnull align 8 dereferenceable(8) %56, i64 noundef %358)
          to label %359 unwind label %365

359:                                              ; preds = %352
  call void @llvm.lifetime.start.p0(i64 8, ptr %57) #11
  store i64 0, ptr %57, align 8, !tbaa !27
  br label %360

360:                                              ; preds = %420, %359
  %361 = load i64, ptr %57, align 8, !tbaa !27
  %362 = load i64, ptr %50, align 8, !tbaa !27
  %363 = icmp ult i64 %361, %362
  br i1 %363, label %369, label %364

364:                                              ; preds = %360
  store i32 22, ptr %29, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %57) #11
  br label %424

365:                                              ; preds = %352
  %366 = landingpad { ptr, i32 }
          cleanup
  %367 = extractvalue { ptr, i32 } %366, 0
  store ptr %367, ptr %8, align 8
  %368 = extractvalue { ptr, i32 } %366, 1
  store i32 %368, ptr %9, align 4
  br label %762

369:                                              ; preds = %360
  call void @llvm.lifetime.start.p0(i64 8, ptr %58) #11
  %370 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKmN12_GLOBAL__N_16SampleEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %56) #11
  %371 = getelementptr inbounds %"struct.std::pair.23", ptr %370, i32 0, i32 1
  store ptr %371, ptr %58, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 136, ptr %59) #11
  invoke void @_ZN6Halide7Runtime6BufferIfLi4EEC2Ev(ptr noundef nonnull align 8 dereferenceable(136) %59)
          to label %372 unwind label %406

372:                                              ; preds = %369
  %373 = load ptr, ptr %45, align 8, !tbaa !9
  %374 = call noundef ptr @_ZNKSt10unique_ptrIN6Halide16DefaultCostModelESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %373) #11
  %375 = load ptr, ptr %49, align 8, !tbaa !9
  %376 = getelementptr inbounds %"struct.std::pair", ptr %375, i32 0, i32 1
  %377 = getelementptr inbounds %"struct.(anonymous namespace)::PipelineSample", ptr %376, i32 0, i32 1
  %378 = load i32, ptr %377, align 4, !tbaa !48
  %379 = load ptr, ptr %58, align 8, !tbaa !9
  %380 = getelementptr inbounds %"struct.(anonymous namespace)::Sample", ptr %379, i32 0, i32 1
  %381 = load i32, ptr %43, align 4, !tbaa !5
  %382 = sext i32 %381 to i64
  %383 = getelementptr inbounds [1 x double], ptr %380, i64 0, i64 %382
  invoke void @_ZN6Halide16DefaultCostModel7enqueueEiPNS_7Runtime6BufferIfLi4EEEPd(ptr noundef nonnull align 8 dereferenceable(2284) %374, i32 noundef %378, ptr noundef %59, ptr noundef %383)
          to label %384 unwind label %410

384:                                              ; preds = %372
  %385 = load ptr, ptr %58, align 8, !tbaa !9
  %386 = getelementptr inbounds %"struct.(anonymous namespace)::Sample", ptr %385, i32 0, i32 0
  %387 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %386, i64 noundef 0) #11
  %388 = load float, ptr %387, align 4, !tbaa !45
  %389 = load i64, ptr %57, align 8, !tbaa !27
  %390 = trunc i64 %389 to i32
  %391 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6Halide7Runtime6BufferIfLi4EEclIJEvEERfiDpT_(ptr noundef nonnull align 8 dereferenceable(136) %54, i32 noundef %390)
          to label %392 unwind label %410

392:                                              ; preds = %384
  store float %388, ptr %391, align 4, !tbaa !45
  %393 = load i64, ptr %57, align 8, !tbaa !27
  %394 = trunc i64 %393 to i32
  %395 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6Halide7Runtime6BufferIfLi4EEclIJEvEERfiDpT_(ptr noundef nonnull align 8 dereferenceable(136) %54, i32 noundef %394)
          to label %396 unwind label %410

396:                                              ; preds = %392
  %397 = load float, ptr %395, align 4, !tbaa !45
  %398 = load i64, ptr %53, align 8, !tbaa !27
  %399 = trunc i64 %398 to i32
  %400 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6Halide7Runtime6BufferIfLi4EEclIJEvEERfiDpT_(ptr noundef nonnull align 8 dereferenceable(136) %54, i32 noundef %399)
          to label %401 unwind label %410

401:                                              ; preds = %396
  %402 = load float, ptr %400, align 4, !tbaa !45
  %403 = fcmp olt float %397, %402
  br i1 %403, label %404, label %414

404:                                              ; preds = %401
  %405 = load i64, ptr %57, align 8, !tbaa !27
  store i64 %405, ptr %53, align 8, !tbaa !27
  br label %414

406:                                              ; preds = %369
  %407 = landingpad { ptr, i32 }
          cleanup
  %408 = extractvalue { ptr, i32 } %407, 0
  store ptr %408, ptr %8, align 8
  %409 = extractvalue { ptr, i32 } %407, 1
  store i32 %409, ptr %9, align 4
  br label %423

410:                                              ; preds = %414, %396, %392, %384, %372
  %411 = landingpad { ptr, i32 }
          cleanup
  %412 = extractvalue { ptr, i32 } %411, 0
  store ptr %412, ptr %8, align 8
  %413 = extractvalue { ptr, i32 } %411, 1
  store i32 %413, ptr %9, align 4
  call void @_ZN6Halide7Runtime6BufferIfLi4EED2Ev(ptr noundef nonnull align 8 dereferenceable(136) %59) #11
  br label %423

414:                                              ; preds = %404, %401
  %415 = load ptr, ptr %58, align 8, !tbaa !9
  %416 = getelementptr inbounds %"struct.(anonymous namespace)::Sample", ptr %415, i32 0, i32 4
  invoke void @_ZN6Halide7Runtime6BufferIfLi4EE9copy_fromIfLi4EEEvRKNS1_IT_XT0_EEE(ptr noundef nonnull align 8 dereferenceable(136) %59, ptr noundef nonnull align 8 dereferenceable(136) %416)
          to label %417 unwind label %410

417:                                              ; preds = %414
  %418 = call ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKmN12_GLOBAL__N_16SampleEEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %56, i32 noundef 0) #11
  %419 = getelementptr inbounds %"struct.std::_Rb_tree_iterator.22", ptr %60, i32 0, i32 0
  store ptr %418, ptr %419, align 8
  call void @_ZN6Halide7Runtime6BufferIfLi4EED2Ev(ptr noundef nonnull align 8 dereferenceable(136) %59) #11
  call void @llvm.lifetime.end.p0(i64 136, ptr %59) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %58) #11
  br label %420

420:                                              ; preds = %417
  %421 = load i64, ptr %57, align 8, !tbaa !27
  %422 = add i64 %421, 1
  store i64 %422, ptr %57, align 8, !tbaa !27
  br label %360, !llvm.loop !49

423:                                              ; preds = %410, %406
  call void @llvm.lifetime.end.p0(i64 136, ptr %59) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %58) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %57) #11
  br label %762

424:                                              ; preds = %364
  call void @llvm.lifetime.start.p0(i64 4, ptr %61) #11
  store float 0.000000e+00, ptr %61, align 4, !tbaa !45
  %425 = load i32, ptr %44, align 4, !tbaa !5
  %426 = icmp ne i32 %425, 0
  br i1 %426, label %427, label %518

427:                                              ; preds = %424
  %428 = load ptr, ptr %45, align 8, !tbaa !9
  %429 = call noundef ptr @_ZNKSt10unique_ptrIN6Halide16DefaultCostModelESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %428) #11
  call void @llvm.lifetime.start.p0(i64 136, ptr %62) #11
  invoke void @_ZN6Halide7Runtime6BufferIKfLi4EEC2IfLi4EEERKNS1_IT_XT0_EEE(ptr noundef nonnull align 8 dereferenceable(136) %62, ptr noundef nonnull align 8 dereferenceable(136) %54)
          to label %430 unwind label %440

430:                                              ; preds = %427
  %431 = load float, ptr %30, align 4, !tbaa !45
  %432 = invoke noundef float @_ZN6Halide16DefaultCostModel8backpropERKNS_7Runtime6BufferIKfLi4EEEf(ptr noundef nonnull align 8 dereferenceable(2284) %429, ptr noundef nonnull align 8 dereferenceable(136) %62, float noundef %431)
          to label %433 unwind label %444

433:                                              ; preds = %430
  store float %432, ptr %61, align 4, !tbaa !45
  call void @_ZN6Halide7Runtime6BufferIKfLi4EED2Ev(ptr noundef nonnull align 8 dereferenceable(136) %62) #11
  call void @llvm.lifetime.end.p0(i64 136, ptr %62) #11
  %434 = load float, ptr %61, align 4, !tbaa !45
  %435 = invoke noundef zeroext i1 @_ZSt5isnanf(float noundef %434)
          to label %436 unwind label %449

436:                                              ; preds = %433
  %437 = xor i1 %435, true
  br i1 %437, label %438, label %439

438:                                              ; preds = %436
  br label %454

439:                                              ; preds = %436
  call void @__assert_fail(ptr noundef @.str.5, ptr noundef @.str.6, i32 noundef 470, ptr noundef @__PRETTY_FUNCTION__.main) #12
  unreachable

440:                                              ; preds = %427
  %441 = landingpad { ptr, i32 }
          cleanup
  %442 = extractvalue { ptr, i32 } %441, 0
  store ptr %442, ptr %8, align 8
  %443 = extractvalue { ptr, i32 } %441, 1
  store i32 %443, ptr %9, align 4
  br label %448

444:                                              ; preds = %430
  %445 = landingpad { ptr, i32 }
          cleanup
  %446 = extractvalue { ptr, i32 } %445, 0
  store ptr %446, ptr %8, align 8
  %447 = extractvalue { ptr, i32 } %445, 1
  store i32 %447, ptr %9, align 4
  call void @_ZN6Halide7Runtime6BufferIKfLi4EED2Ev(ptr noundef nonnull align 8 dereferenceable(136) %62) #11
  br label %448

448:                                              ; preds = %444, %440
  call void @llvm.lifetime.end.p0(i64 136, ptr %62) #11
  br label %761

449:                                              ; preds = %518, %433
  %450 = landingpad { ptr, i32 }
          cleanup
  %451 = extractvalue { ptr, i32 } %450, 0
  store ptr %451, ptr %8, align 8
  %452 = extractvalue { ptr, i32 } %450, 1
  store i32 %452, ptr %9, align 4
  br label %761

453:                                              ; No predecessors!
  br label %454

454:                                              ; preds = %453, %438
  %455 = load float, ptr %61, align 4, !tbaa !45
  %456 = load i32, ptr %43, align 4, !tbaa !5
  %457 = sext i32 %456 to i64
  %458 = getelementptr inbounds [1 x float], ptr %31, i64 0, i64 %457
  %459 = load float, ptr %458, align 4, !tbaa !45
  %460 = fadd float %459, %455
  store float %460, ptr %458, align 4, !tbaa !45
  %461 = load i32, ptr %43, align 4, !tbaa !5
  %462 = sext i32 %461 to i64
  %463 = getelementptr inbounds [1 x float], ptr %32, i64 0, i64 %462
  %464 = load float, ptr %463, align 4, !tbaa !45
  %465 = fadd float %464, 1.000000e+00
  store float %465, ptr %463, align 4, !tbaa !45
  call void @llvm.lifetime.start.p0(i64 8, ptr %63) #11
  %466 = load ptr, ptr %49, align 8, !tbaa !9
  %467 = getelementptr inbounds %"struct.std::pair", ptr %466, i32 0, i32 1
  %468 = getelementptr inbounds %"struct.(anonymous namespace)::PipelineSample", ptr %467, i32 0, i32 3
  %469 = call ptr @_ZNSt3mapImN12_GLOBAL__N_16SampleESt4lessImESaISt4pairIKmS1_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %468) #11
  %470 = getelementptr inbounds %"struct.std::_Rb_tree_iterator.22", ptr %63, i32 0, i32 0
  store ptr %469, ptr %470, align 8
  %471 = load i64, ptr %55, align 8, !tbaa !27
  invoke void @_ZSt7advanceISt17_Rb_tree_iteratorISt4pairIKmN12_GLOBAL__N_16SampleEEEmEvRT_T0_(ptr noundef nonnull align 8 dereferenceable(8) %63, i64 noundef %471)
          to label %472 unwind label %478

472:                                              ; preds = %454
  call void @llvm.lifetime.start.p0(i64 8, ptr %64) #11
  store i64 0, ptr %64, align 8, !tbaa !27
  br label %473

473:                                              ; preds = %514, %472
  %474 = load i64, ptr %64, align 8, !tbaa !27
  %475 = load i64, ptr %50, align 8, !tbaa !27
  %476 = icmp ult i64 %474, %475
  br i1 %476, label %482, label %477

477:                                              ; preds = %473
  store i32 25, ptr %29, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %64) #11
  br label %517

478:                                              ; preds = %454
  %479 = landingpad { ptr, i32 }
          cleanup
  %480 = extractvalue { ptr, i32 } %479, 0
  store ptr %480, ptr %8, align 8
  %481 = extractvalue { ptr, i32 } %479, 1
  store i32 %481, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %63) #11
  br label %761

482:                                              ; preds = %473
  call void @llvm.lifetime.start.p0(i64 8, ptr %65) #11
  %483 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKmN12_GLOBAL__N_16SampleEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %63) #11
  %484 = getelementptr inbounds %"struct.std::pair.23", ptr %483, i32 0, i32 1
  store ptr %484, ptr %65, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %66) #11
  %485 = load ptr, ptr %65, align 8, !tbaa !9
  %486 = getelementptr inbounds %"struct.(anonymous namespace)::Sample", ptr %485, i32 0, i32 0
  %487 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %486, i64 noundef 0) #11
  %488 = load float, ptr %487, align 4, !tbaa !45
  %489 = fpext float %488 to double
  %490 = load ptr, ptr %65, align 8, !tbaa !9
  %491 = getelementptr inbounds %"struct.(anonymous namespace)::Sample", ptr %490, i32 0, i32 1
  %492 = load i32, ptr %43, align 4, !tbaa !5
  %493 = sext i32 %492 to i64
  %494 = getelementptr inbounds [1 x double], ptr %491, i64 0, i64 %493
  %495 = load double, ptr %494, align 8, !tbaa !50
  %496 = fadd double %495, 0x3DDB7CDFE0000000
  %497 = fdiv double %489, %496
  %498 = fptrunc double %497 to float
  store float %498, ptr %66, align 4, !tbaa !45
  %499 = load float, ptr %66, align 4, !tbaa !45
  %500 = load float, ptr %39, align 4, !tbaa !45
  %501 = fcmp ogt float %499, %500
  br i1 %501, label %502, label %511

502:                                              ; preds = %482
  %503 = load float, ptr %66, align 4, !tbaa !45
  store float %503, ptr %39, align 4, !tbaa !45
  %504 = load ptr, ptr %49, align 8, !tbaa !9
  %505 = getelementptr inbounds %"struct.std::pair", ptr %504, i32 0, i32 0
  %506 = load i32, ptr %505, align 8, !tbaa !52
  %507 = sext i32 %506 to i64
  store i64 %507, ptr %40, align 8, !tbaa !27
  %508 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKmN12_GLOBAL__N_16SampleEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %63) #11
  %509 = getelementptr inbounds %"struct.std::pair.23", ptr %508, i32 0, i32 0
  %510 = load i64, ptr %509, align 8, !tbaa !53
  store i64 %510, ptr %41, align 8, !tbaa !27
  br label %511

511:                                              ; preds = %502, %482
  %512 = call ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKmN12_GLOBAL__N_16SampleEEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %63, i32 noundef 0) #11
  %513 = getelementptr inbounds %"struct.std::_Rb_tree_iterator.22", ptr %67, i32 0, i32 0
  store ptr %512, ptr %513, align 8
  call void @llvm.lifetime.end.p0(i64 4, ptr %66) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %65) #11
  br label %514

514:                                              ; preds = %511
  %515 = load i64, ptr %64, align 8, !tbaa !27
  %516 = add i64 %515, 1
  store i64 %516, ptr %64, align 8, !tbaa !27
  br label %473, !llvm.loop !56

517:                                              ; preds = %477
  call void @llvm.lifetime.end.p0(i64 8, ptr %63) #11
  br label %525

518:                                              ; preds = %424
  %519 = load ptr, ptr %45, align 8, !tbaa !9
  %520 = call noundef ptr @_ZNKSt10unique_ptrIN6Halide16DefaultCostModelESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %519) #11
  %521 = load ptr, ptr %520, align 8, !tbaa !25
  %522 = getelementptr inbounds ptr, ptr %521, i64 4
  %523 = load ptr, ptr %522, align 8
  invoke void %523(ptr noundef nonnull align 8 dereferenceable(2284) %520)
          to label %524 unwind label %449

524:                                              ; preds = %518
  br label %525

525:                                              ; preds = %524, %517
  call void @llvm.lifetime.start.p0(i64 4, ptr %68) #11
  store i32 0, ptr %68, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %69) #11
  store i32 0, ptr %69, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %70) #11
  %526 = load ptr, ptr %49, align 8, !tbaa !9
  %527 = getelementptr inbounds %"struct.std::pair", ptr %526, i32 0, i32 1
  %528 = getelementptr inbounds %"struct.(anonymous namespace)::PipelineSample", ptr %527, i32 0, i32 3
  store ptr %528, ptr %70, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %71) #11
  %529 = load ptr, ptr %70, align 8, !tbaa !9
  %530 = call ptr @_ZNSt3mapImN12_GLOBAL__N_16SampleESt4lessImESaISt4pairIKmS1_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %529) #11
  %531 = getelementptr inbounds %"struct.std::_Rb_tree_iterator.22", ptr %71, i32 0, i32 0
  store ptr %530, ptr %531, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %72) #11
  %532 = load ptr, ptr %70, align 8, !tbaa !9
  %533 = call ptr @_ZNSt3mapImN12_GLOBAL__N_16SampleESt4lessImESaISt4pairIKmS1_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %532) #11
  %534 = getelementptr inbounds %"struct.std::_Rb_tree_iterator.22", ptr %72, i32 0, i32 0
  store ptr %533, ptr %534, align 8
  br label %535

535:                                              ; preds = %715, %525
  %536 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKmN12_GLOBAL__N_16SampleEEES7_(ptr noundef nonnull align 8 dereferenceable(8) %71, ptr noundef nonnull align 8 dereferenceable(8) %72) #11
  br i1 %536, label %538, label %537

537:                                              ; preds = %535
  store i32 28, ptr %29, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %72) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %71) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %70) #11
  br label %718

538:                                              ; preds = %535
  call void @llvm.lifetime.start.p0(i64 8, ptr %73) #11
  %539 = call noundef nonnull align 8 dereferenceable(216) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKmN12_GLOBAL__N_16SampleEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %71) #11
  store ptr %539, ptr %73, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %74) #11
  %540 = load ptr, ptr %49, align 8, !tbaa !9
  %541 = getelementptr inbounds %"struct.std::pair", ptr %540, i32 0, i32 1
  %542 = getelementptr inbounds %"struct.(anonymous namespace)::PipelineSample", ptr %541, i32 0, i32 3
  %543 = load ptr, ptr %49, align 8, !tbaa !9
  %544 = getelementptr inbounds %"struct.std::pair", ptr %543, i32 0, i32 1
  %545 = getelementptr inbounds %"struct.(anonymous namespace)::PipelineSample", ptr %544, i32 0, i32 4
  %546 = invoke noundef nonnull align 8 dereferenceable(208) ptr @_ZNSt3mapImN12_GLOBAL__N_16SampleESt4lessImESaISt4pairIKmS1_EEEixERS5_(ptr noundef nonnull align 8 dereferenceable(48) %542, ptr noundef nonnull align 8 dereferenceable(8) %545)
          to label %547 unwind label %557

547:                                              ; preds = %538
  store ptr %546, ptr %74, align 8, !tbaa !9
  %548 = load ptr, ptr %73, align 8, !tbaa !9
  %549 = getelementptr inbounds %"struct.std::pair.23", ptr %548, i32 0, i32 1
  %550 = getelementptr inbounds %"struct.(anonymous namespace)::Sample", ptr %549, i32 0, i32 1
  %551 = load i32, ptr %43, align 4, !tbaa !5
  %552 = sext i32 %551 to i64
  %553 = getelementptr inbounds [1 x double], ptr %550, i64 0, i64 %552
  %554 = load double, ptr %553, align 8, !tbaa !50
  %555 = fcmp oeq double %554, 0.000000e+00
  br i1 %555, label %556, label %561

556:                                              ; preds = %547
  store i32 29, ptr %29, align 4
  br label %709

557:                                              ; preds = %538
  %558 = landingpad { ptr, i32 }
          cleanup
  %559 = extractvalue { ptr, i32 } %558, 0
  store ptr %559, ptr %8, align 8
  %560 = extractvalue { ptr, i32 } %558, 1
  store i32 %560, ptr %9, align 4
  br label %717

561:                                              ; preds = %547
  %562 = load ptr, ptr %73, align 8, !tbaa !9
  %563 = getelementptr inbounds %"struct.std::pair.23", ptr %562, i32 0, i32 1
  %564 = getelementptr inbounds %"struct.(anonymous namespace)::Sample", ptr %563, i32 0, i32 0
  %565 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %564, i64 noundef 0) #11
  %566 = load float, ptr %565, align 4, !tbaa !45
  %567 = load ptr, ptr %74, align 8, !tbaa !9
  %568 = getelementptr inbounds %"struct.(anonymous namespace)::Sample", ptr %567, i32 0, i32 0
  %569 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %568, i64 noundef 0) #11
  %570 = load float, ptr %569, align 4, !tbaa !45
  %571 = fcmp oge float %566, %570
  br i1 %571, label %572, label %573

572:                                              ; preds = %561
  br label %575

573:                                              ; preds = %561
  call void @__assert_fail(ptr noundef @.str.7, ptr noundef @.str.6, i32 noundef 495, ptr noundef @__PRETTY_FUNCTION__.main) #12
  unreachable

574:                                              ; No predecessors!
  br label %575

575:                                              ; preds = %574, %572
  call void @llvm.lifetime.start.p0(i64 4, ptr %75) #11
  %576 = load ptr, ptr %73, align 8, !tbaa !9
  %577 = getelementptr inbounds %"struct.std::pair.23", ptr %576, i32 0, i32 1
  %578 = getelementptr inbounds %"struct.(anonymous namespace)::Sample", ptr %577, i32 0, i32 0
  %579 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %578, i64 noundef 0) #11
  %580 = load float, ptr %579, align 4, !tbaa !45
  %581 = load ptr, ptr %74, align 8, !tbaa !9
  %582 = getelementptr inbounds %"struct.(anonymous namespace)::Sample", ptr %581, i32 0, i32 0
  %583 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %582, i64 noundef 0) #11
  %584 = load float, ptr %583, align 4, !tbaa !45
  %585 = fdiv float %580, %584
  store float %585, ptr %75, align 4, !tbaa !45
  %586 = load float, ptr %75, align 4, !tbaa !45
  %587 = fcmp ole float %586, 0x3FF4CCCCC0000000
  br i1 %587, label %588, label %589

588:                                              ; preds = %575
  store i32 29, ptr %29, align 4
  br label %708

589:                                              ; preds = %575
  %590 = load ptr, ptr %73, align 8, !tbaa !9
  %591 = getelementptr inbounds %"struct.std::pair.23", ptr %590, i32 0, i32 1
  %592 = getelementptr inbounds %"struct.(anonymous namespace)::Sample", ptr %591, i32 0, i32 1
  %593 = load i32, ptr %43, align 4, !tbaa !5
  %594 = sext i32 %593 to i64
  %595 = getelementptr inbounds [1 x double], ptr %592, i64 0, i64 %594
  %596 = load double, ptr %595, align 8, !tbaa !50
  %597 = load ptr, ptr %74, align 8, !tbaa !9
  %598 = getelementptr inbounds %"struct.(anonymous namespace)::Sample", ptr %597, i32 0, i32 1
  %599 = load i32, ptr %43, align 4, !tbaa !5
  %600 = sext i32 %599 to i64
  %601 = getelementptr inbounds [1 x double], ptr %598, i64 0, i64 %600
  %602 = load double, ptr %601, align 8, !tbaa !50
  %603 = fcmp oge double %596, %602
  br i1 %603, label %604, label %607

604:                                              ; preds = %589
  %605 = load i32, ptr %68, align 4, !tbaa !5
  %606 = add nsw i32 %605, 1
  store i32 %606, ptr %68, align 4, !tbaa !5
  br label %707

607:                                              ; preds = %589
  %608 = load i32, ptr %44, align 4, !tbaa !5
  %609 = icmp ne i32 %608, 0
  br i1 %609, label %610, label %704

610:                                              ; preds = %607
  call void @llvm.lifetime.start.p0(i64 4, ptr %76) #11
  %611 = load ptr, ptr %73, align 8, !tbaa !9
  %612 = getelementptr inbounds %"struct.std::pair.23", ptr %611, i32 0, i32 1
  %613 = getelementptr inbounds %"struct.(anonymous namespace)::Sample", ptr %612, i32 0, i32 0
  %614 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %613, i64 noundef 0) #11
  %615 = load float, ptr %614, align 4, !tbaa !45
  %616 = load ptr, ptr %74, align 8, !tbaa !9
  %617 = getelementptr inbounds %"struct.(anonymous namespace)::Sample", ptr %616, i32 0, i32 0
  %618 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %617, i64 noundef 0) #11
  %619 = load float, ptr %618, align 4, !tbaa !45
  %620 = fsub float %615, %619
  %621 = fpext float %620 to double
  %622 = load ptr, ptr %74, align 8, !tbaa !9
  %623 = getelementptr inbounds %"struct.(anonymous namespace)::Sample", ptr %622, i32 0, i32 1
  %624 = load i32, ptr %43, align 4, !tbaa !5
  %625 = sext i32 %624 to i64
  %626 = getelementptr inbounds [1 x double], ptr %623, i64 0, i64 %625
  %627 = load double, ptr %626, align 8, !tbaa !50
  %628 = load ptr, ptr %73, align 8, !tbaa !9
  %629 = getelementptr inbounds %"struct.std::pair.23", ptr %628, i32 0, i32 1
  %630 = getelementptr inbounds %"struct.(anonymous namespace)::Sample", ptr %629, i32 0, i32 1
  %631 = load i32, ptr %43, align 4, !tbaa !5
  %632 = sext i32 %631 to i64
  %633 = getelementptr inbounds [1 x double], ptr %630, i64 0, i64 %632
  %634 = load double, ptr %633, align 8, !tbaa !50
  %635 = fsub double %627, %634
  %636 = fmul double %621, %635
  %637 = fptrunc double %636 to float
  store float %637, ptr %76, align 4, !tbaa !45
  %638 = load ptr, ptr %74, align 8, !tbaa !9
  %639 = getelementptr inbounds %"struct.(anonymous namespace)::Sample", ptr %638, i32 0, i32 0
  %640 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %639, i64 noundef 0) #11
  %641 = load float, ptr %640, align 4, !tbaa !45
  %642 = load ptr, ptr %74, align 8, !tbaa !9
  %643 = getelementptr inbounds %"struct.(anonymous namespace)::Sample", ptr %642, i32 0, i32 0
  %644 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %643, i64 noundef 0) #11
  %645 = load float, ptr %644, align 4, !tbaa !45
  %646 = fmul float %641, %645
  %647 = load float, ptr %76, align 4, !tbaa !45
  %648 = fdiv float %647, %646
  store float %648, ptr %76, align 4, !tbaa !45
  %649 = load float, ptr %76, align 4, !tbaa !45
  %650 = getelementptr inbounds %struct.Inversion, ptr %42, i32 0, i32 8
  %651 = load float, ptr %650, align 8, !tbaa !57
  %652 = fcmp ogt float %649, %651
  br i1 %652, label %653, label %703

653:                                              ; preds = %610
  %654 = load ptr, ptr %49, align 8, !tbaa !9
  %655 = getelementptr inbounds %"struct.std::pair", ptr %654, i32 0, i32 0
  %656 = load i32, ptr %655, align 8, !tbaa !52
  %657 = getelementptr inbounds %struct.Inversion, ptr %42, i32 0, i32 0
  store i32 %656, ptr %657, align 8, !tbaa !59
  %658 = load float, ptr %76, align 4, !tbaa !45
  %659 = getelementptr inbounds %struct.Inversion, ptr %42, i32 0, i32 8
  store float %658, ptr %659, align 8, !tbaa !57
  %660 = load ptr, ptr %74, align 8, !tbaa !9
  %661 = getelementptr inbounds %"struct.(anonymous namespace)::Sample", ptr %660, i32 0, i32 0
  %662 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %661, i64 noundef 0) #11
  %663 = load float, ptr %662, align 4, !tbaa !45
  %664 = getelementptr inbounds %struct.Inversion, ptr %42, i32 0, i32 6
  store float %663, ptr %664, align 8, !tbaa !60
  %665 = load ptr, ptr %73, align 8, !tbaa !9
  %666 = getelementptr inbounds %"struct.std::pair.23", ptr %665, i32 0, i32 1
  %667 = getelementptr inbounds %"struct.(anonymous namespace)::Sample", ptr %666, i32 0, i32 0
  %668 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %667, i64 noundef 0) #11
  %669 = load float, ptr %668, align 4, !tbaa !45
  %670 = getelementptr inbounds %struct.Inversion, ptr %42, i32 0, i32 7
  store float %669, ptr %670, align 4, !tbaa !61
  %671 = load ptr, ptr %74, align 8, !tbaa !9
  %672 = getelementptr inbounds %"struct.(anonymous namespace)::Sample", ptr %671, i32 0, i32 1
  %673 = load i32, ptr %43, align 4, !tbaa !5
  %674 = sext i32 %673 to i64
  %675 = getelementptr inbounds [1 x double], ptr %672, i64 0, i64 %674
  %676 = load double, ptr %675, align 8, !tbaa !50
  %677 = fptrunc double %676 to float
  %678 = getelementptr inbounds %struct.Inversion, ptr %42, i32 0, i32 4
  store float %677, ptr %678, align 8, !tbaa !62
  %679 = load ptr, ptr %73, align 8, !tbaa !9
  %680 = getelementptr inbounds %"struct.std::pair.23", ptr %679, i32 0, i32 1
  %681 = getelementptr inbounds %"struct.(anonymous namespace)::Sample", ptr %680, i32 0, i32 1
  %682 = load i32, ptr %43, align 4, !tbaa !5
  %683 = sext i32 %682 to i64
  %684 = getelementptr inbounds [1 x double], ptr %681, i64 0, i64 %683
  %685 = load double, ptr %684, align 8, !tbaa !50
  %686 = fptrunc double %685 to float
  %687 = getelementptr inbounds %struct.Inversion, ptr %42, i32 0, i32 5
  store float %686, ptr %687, align 4, !tbaa !63
  %688 = load ptr, ptr %74, align 8, !tbaa !9
  %689 = getelementptr inbounds %"struct.(anonymous namespace)::Sample", ptr %688, i32 0, i32 2
  %690 = getelementptr inbounds %struct.Inversion, ptr %42, i32 0, i32 2
  %691 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %690, ptr noundef nonnull align 8 dereferenceable(32) %689)
          to label %692 unwind label %699

692:                                              ; preds = %653
  %693 = load ptr, ptr %73, align 8, !tbaa !9
  %694 = getelementptr inbounds %"struct.std::pair.23", ptr %693, i32 0, i32 1
  %695 = getelementptr inbounds %"struct.(anonymous namespace)::Sample", ptr %694, i32 0, i32 2
  %696 = getelementptr inbounds %struct.Inversion, ptr %42, i32 0, i32 3
  %697 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %696, ptr noundef nonnull align 8 dereferenceable(32) %695)
          to label %698 unwind label %699

698:                                              ; preds = %692
  br label %703

699:                                              ; preds = %692, %653
  %700 = landingpad { ptr, i32 }
          cleanup
  %701 = extractvalue { ptr, i32 } %700, 0
  store ptr %701, ptr %8, align 8
  %702 = extractvalue { ptr, i32 } %700, 1
  store i32 %702, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %76) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %75) #11
  br label %717

703:                                              ; preds = %698, %610
  call void @llvm.lifetime.end.p0(i64 4, ptr %76) #11
  br label %704

704:                                              ; preds = %703, %607
  %705 = load i32, ptr %69, align 4, !tbaa !5
  %706 = add nsw i32 %705, 1
  store i32 %706, ptr %69, align 4, !tbaa !5
  br label %707

707:                                              ; preds = %704, %604
  store i32 0, ptr %29, align 4
  br label %708

708:                                              ; preds = %707, %588
  call void @llvm.lifetime.end.p0(i64 4, ptr %75) #11
  br label %709

709:                                              ; preds = %708, %556
  call void @llvm.lifetime.end.p0(i64 8, ptr %74) #11
  %710 = load i32, ptr %29, align 4
  switch i32 %710, label %712 [
    i32 0, label %711
  ]

711:                                              ; preds = %709
  store i32 0, ptr %29, align 4
  br label %712

712:                                              ; preds = %711, %709
  call void @llvm.lifetime.end.p0(i64 8, ptr %73) #11
  %713 = load i32, ptr %29, align 4
  switch i32 %713, label %1053 [
    i32 0, label %714
    i32 29, label %715
  ]

714:                                              ; preds = %712
  br label %715

715:                                              ; preds = %714, %712
  %716 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKmN12_GLOBAL__N_16SampleEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %71) #11
  br label %535

717:                                              ; preds = %699, %557
  call void @llvm.lifetime.end.p0(i64 8, ptr %74) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %73) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %72) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %71) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %70) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %69) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %68) #11
  br label %761

718:                                              ; preds = %537
  %719 = load i32, ptr %44, align 4, !tbaa !5
  %720 = icmp ne i32 %719, 0
  br i1 %720, label %721, label %738

721:                                              ; preds = %718
  %722 = load i32, ptr %68, align 4, !tbaa !5
  %723 = sitofp i32 %722 to float
  %724 = load i32, ptr %43, align 4, !tbaa !5
  %725 = sext i32 %724 to i64
  %726 = getelementptr inbounds [1 x float], ptr %33, i64 0, i64 %725
  %727 = load float, ptr %726, align 4, !tbaa !45
  %728 = fadd float %727, %723
  store float %728, ptr %726, align 4, !tbaa !45
  %729 = load i32, ptr %68, align 4, !tbaa !5
  %730 = load i32, ptr %69, align 4, !tbaa !5
  %731 = add nsw i32 %729, %730
  %732 = sitofp i32 %731 to float
  %733 = load i32, ptr %43, align 4, !tbaa !5
  %734 = sext i32 %733 to i64
  %735 = getelementptr inbounds [1 x float], ptr %34, i64 0, i64 %734
  %736 = load float, ptr %735, align 4, !tbaa !45
  %737 = fadd float %736, %732
  store float %737, ptr %735, align 4, !tbaa !45
  br label %755

738:                                              ; preds = %718
  %739 = load i32, ptr %68, align 4, !tbaa !5
  %740 = sitofp i32 %739 to float
  %741 = load i32, ptr %43, align 4, !tbaa !5
  %742 = sext i32 %741 to i64
  %743 = getelementptr inbounds [1 x float], ptr %35, i64 0, i64 %742
  %744 = load float, ptr %743, align 4, !tbaa !45
  %745 = fadd float %744, %740
  store float %745, ptr %743, align 4, !tbaa !45
  %746 = load i32, ptr %68, align 4, !tbaa !5
  %747 = load i32, ptr %69, align 4, !tbaa !5
  %748 = add nsw i32 %746, %747
  %749 = sitofp i32 %748 to float
  %750 = load i32, ptr %43, align 4, !tbaa !5
  %751 = sext i32 %750 to i64
  %752 = getelementptr inbounds [1 x float], ptr %36, i64 0, i64 %751
  %753 = load float, ptr %752, align 4, !tbaa !45
  %754 = fadd float %753, %749
  store float %754, ptr %752, align 4, !tbaa !45
  br label %755

755:                                              ; preds = %738, %721
  call void @llvm.lifetime.end.p0(i64 4, ptr %69) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %68) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %61) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %56) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %55) #11
  call void @_ZN6Halide7Runtime6BufferIfLi4EED2Ev(ptr noundef nonnull align 8 dereferenceable(136) %54) #11
  call void @llvm.lifetime.end.p0(i64 136, ptr %54) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %53) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %50) #11
  store i32 0, ptr %29, align 4
  br label %756

756:                                              ; preds = %755, %296
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #11
  %757 = load i32, ptr %29, align 4
  switch i32 %757, label %1053 [
    i32 0, label %758
    i32 21, label %759
  ]

758:                                              ; preds = %756
  br label %759

759:                                              ; preds = %758, %756
  %760 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKiN12_GLOBAL__N_114PipelineSampleEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %47) #11
  br label %286

761:                                              ; preds = %717, %478, %449, %448
  call void @llvm.lifetime.end.p0(i64 4, ptr %61) #11
  br label %762

762:                                              ; preds = %761, %423, %365
  call void @llvm.lifetime.end.p0(i64 8, ptr %56) #11
  br label %763

763:                                              ; preds = %762, %348
  call void @llvm.lifetime.end.p0(i64 8, ptr %55) #11
  call void @_ZN6Halide7Runtime6BufferIfLi4EED2Ev(ptr noundef nonnull align 8 dereferenceable(136) %54) #11
  br label %764

764:                                              ; preds = %763, %344
  call void @llvm.lifetime.end.p0(i64 136, ptr %54) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %53) #11
  br label %765

765:                                              ; preds = %764, %340
  call void @llvm.lifetime.end.p0(i64 8, ptr %50) #11
  br label %766

766:                                              ; preds = %765, %336
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #11
  br label %1027

767:                                              ; preds = %288
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #11
  br label %768

768:                                              ; preds = %767
  %769 = load i32, ptr %44, align 4, !tbaa !5
  %770 = add nsw i32 %769, 1
  store i32 %770, ptr %44, align 4, !tbaa !5
  br label %266, !llvm.loop !64

771:                                              ; preds = %269
  %772 = load i32, ptr %38, align 4, !tbaa !5
  %773 = add nsw i32 %772, 1
  store i32 %773, ptr %38, align 4, !tbaa !5
  br label %774

774:                                              ; preds = %771
  %775 = load i32, ptr %43, align 4, !tbaa !5
  %776 = add nsw i32 %775, 1
  store i32 %776, ptr %43, align 4, !tbaa !5
  br label %261, !llvm.loop !65

777:                                              ; preds = %264
  %778 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.8)
          to label %779 unwind label %784

779:                                              ; preds = %777
  call void @llvm.lifetime.start.p0(i64 4, ptr %77) #11
  store i32 0, ptr %77, align 4, !tbaa !5
  br label %780

780:                                              ; preds = %812, %779
  %781 = load i32, ptr %77, align 4, !tbaa !5
  %782 = icmp slt i32 %781, 1
  br i1 %782, label %788, label %783

783:                                              ; preds = %780
  store i32 30, ptr %29, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %77) #11
  br label %819

784:                                              ; preds = %819, %777
  %785 = landingpad { ptr, i32 }
          cleanup
  %786 = extractvalue { ptr, i32 } %785, 0
  store ptr %786, ptr %8, align 8
  %787 = extractvalue { ptr, i32 } %785, 1
  store i32 %787, ptr %9, align 4
  br label %1027

788:                                              ; preds = %780
  %789 = load i32, ptr %77, align 4, !tbaa !5
  %790 = sext i32 %789 to i64
  %791 = getelementptr inbounds [1 x float], ptr %31, i64 0, i64 %790
  %792 = load float, ptr %791, align 4, !tbaa !45
  %793 = load i32, ptr %77, align 4, !tbaa !5
  %794 = sext i32 %793 to i64
  %795 = getelementptr inbounds [1 x float], ptr %32, i64 0, i64 %794
  %796 = load float, ptr %795, align 4, !tbaa !45
  %797 = fdiv float %792, %796
  %798 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, float noundef %797)
          to label %799 unwind label %815

799:                                              ; preds = %788
  %800 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %798, ptr noundef @.str.9)
          to label %801 unwind label %815

801:                                              ; preds = %799
  %802 = load i32, ptr %77, align 4, !tbaa !5
  %803 = sext i32 %802 to i64
  %804 = getelementptr inbounds [1 x float], ptr %31, i64 0, i64 %803
  %805 = load float, ptr %804, align 4, !tbaa !45
  %806 = fmul float %805, 0x3FECCCCCC0000000
  store float %806, ptr %804, align 4, !tbaa !45
  %807 = load i32, ptr %77, align 4, !tbaa !5
  %808 = sext i32 %807 to i64
  %809 = getelementptr inbounds [1 x float], ptr %32, i64 0, i64 %808
  %810 = load float, ptr %809, align 4, !tbaa !45
  %811 = fmul float %810, 0x3FECCCCCC0000000
  store float %811, ptr %809, align 4, !tbaa !45
  br label %812

812:                                              ; preds = %801
  %813 = load i32, ptr %77, align 4, !tbaa !5
  %814 = add nsw i32 %813, 1
  store i32 %814, ptr %77, align 4, !tbaa !5
  br label %780, !llvm.loop !66

815:                                              ; preds = %799, %788
  %816 = landingpad { ptr, i32 }
          cleanup
  %817 = extractvalue { ptr, i32 } %816, 0
  store ptr %817, ptr %8, align 8
  %818 = extractvalue { ptr, i32 } %816, 1
  store i32 %818, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %77) #11
  br label %1027

819:                                              ; preds = %783
  %820 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.10)
          to label %821 unwind label %784

821:                                              ; preds = %819
  call void @llvm.lifetime.start.p0(i64 4, ptr %78) #11
  store i32 0, ptr %78, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %79) #11
  store float 0.000000e+00, ptr %79, align 4, !tbaa !45
  call void @llvm.lifetime.start.p0(i64 4, ptr %80) #11
  store i32 0, ptr %80, align 4, !tbaa !5
  br label %822

822:                                              ; preds = %886, %821
  %823 = load i32, ptr %80, align 4, !tbaa !5
  %824 = icmp slt i32 %823, 1
  br i1 %824, label %826, label %825

825:                                              ; preds = %822
  store i32 33, ptr %29, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %80) #11
  br label %889

826:                                              ; preds = %822
  call void @llvm.lifetime.start.p0(i64 4, ptr %81) #11
  %827 = load i32, ptr %80, align 4, !tbaa !5
  %828 = sext i32 %827 to i64
  %829 = getelementptr inbounds [1 x float], ptr %33, i64 0, i64 %828
  %830 = load float, ptr %829, align 4, !tbaa !45
  %831 = load i32, ptr %80, align 4, !tbaa !5
  %832 = sext i32 %831 to i64
  %833 = getelementptr inbounds [1 x float], ptr %34, i64 0, i64 %832
  %834 = load float, ptr %833, align 4, !tbaa !45
  %835 = fdiv float %830, %834
  store float %835, ptr %81, align 4, !tbaa !45
  %836 = load float, ptr %81, align 4, !tbaa !45
  %837 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, float noundef %836)
          to label %838 unwind label %866

838:                                              ; preds = %826
  %839 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %837, ptr noundef @.str.9)
          to label %840 unwind label %866

840:                                              ; preds = %838
  %841 = load i32, ptr %80, align 4, !tbaa !5
  %842 = sext i32 %841 to i64
  %843 = getelementptr inbounds [1 x float], ptr %33, i64 0, i64 %842
  %844 = load float, ptr %843, align 4, !tbaa !45
  %845 = fmul float %844, 0x3FECCCCCC0000000
  store float %845, ptr %843, align 4, !tbaa !45
  %846 = load i32, ptr %80, align 4, !tbaa !5
  %847 = sext i32 %846 to i64
  %848 = getelementptr inbounds [1 x float], ptr %34, i64 0, i64 %847
  %849 = load float, ptr %848, align 4, !tbaa !45
  %850 = fmul float %849, 0x3FECCCCCC0000000
  store float %850, ptr %848, align 4, !tbaa !45
  %851 = load i32, ptr %80, align 4, !tbaa !5
  %852 = sext i32 %851 to i64
  %853 = getelementptr inbounds [1 x float], ptr %35, i64 0, i64 %852
  %854 = load float, ptr %853, align 4, !tbaa !45
  %855 = load i32, ptr %80, align 4, !tbaa !5
  %856 = sext i32 %855 to i64
  %857 = getelementptr inbounds [1 x float], ptr %36, i64 0, i64 %856
  %858 = load float, ptr %857, align 4, !tbaa !45
  %859 = fdiv float %854, %858
  store float %859, ptr %81, align 4, !tbaa !45
  %860 = load float, ptr %81, align 4, !tbaa !45
  %861 = load float, ptr %79, align 4, !tbaa !45
  %862 = fcmp olt float %860, %861
  br i1 %862, label %863, label %870

863:                                              ; preds = %840
  %864 = load i32, ptr %80, align 4, !tbaa !5
  store i32 %864, ptr %78, align 4, !tbaa !5
  %865 = load float, ptr %81, align 4, !tbaa !45
  store float %865, ptr %79, align 4, !tbaa !45
  br label %870

866:                                              ; preds = %873, %870, %838, %826
  %867 = landingpad { ptr, i32 }
          cleanup
  %868 = extractvalue { ptr, i32 } %867, 0
  store ptr %868, ptr %8, align 8
  %869 = extractvalue { ptr, i32 } %867, 1
  store i32 %869, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %81) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %80) #11
  br label %1026

870:                                              ; preds = %863, %840
  %871 = load float, ptr %81, align 4, !tbaa !45
  %872 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, float noundef %871)
          to label %873 unwind label %866

873:                                              ; preds = %870
  %874 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %872, ptr noundef @.str.9)
          to label %875 unwind label %866

875:                                              ; preds = %873
  %876 = load i32, ptr %80, align 4, !tbaa !5
  %877 = sext i32 %876 to i64
  %878 = getelementptr inbounds [1 x float], ptr %35, i64 0, i64 %877
  %879 = load float, ptr %878, align 4, !tbaa !45
  %880 = fmul float %879, 0x3FECCCCCC0000000
  store float %880, ptr %878, align 4, !tbaa !45
  %881 = load i32, ptr %80, align 4, !tbaa !5
  %882 = sext i32 %881 to i64
  %883 = getelementptr inbounds [1 x float], ptr %36, i64 0, i64 %882
  %884 = load float, ptr %883, align 4, !tbaa !45
  %885 = fmul float %884, 0x3FECCCCCC0000000
  store float %885, ptr %883, align 4, !tbaa !45
  call void @llvm.lifetime.end.p0(i64 4, ptr %81) #11
  br label %886

886:                                              ; preds = %875
  %887 = load i32, ptr %80, align 4, !tbaa !5
  %888 = add nsw i32 %887, 1
  store i32 %888, ptr %80, align 4, !tbaa !5
  br label %822, !llvm.loop !67

889:                                              ; preds = %825
  call void @llvm.lifetime.start.p0(i64 4, ptr %82) #11
  %890 = load i64, ptr %40, align 8, !tbaa !27
  %891 = trunc i64 %890 to i32
  store i32 %891, ptr %82, align 4, !tbaa !5
  %892 = invoke noundef i64 @_ZNKSt3mapIiN12_GLOBAL__N_114PipelineSampleESt4lessIiESaISt4pairIKiS1_EEE5countERS5_(ptr noundef nonnull align 8 dereferenceable(48) %7, ptr noundef nonnull align 4 dereferenceable(4) %82)
          to label %893 unwind label %916

893:                                              ; preds = %889
  %894 = icmp ne i64 %892, 0
  call void @llvm.lifetime.end.p0(i64 4, ptr %82) #11
  br i1 %894, label %895, label %933

895:                                              ; preds = %893
  %896 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.11)
          to label %897 unwind label %920

897:                                              ; preds = %895
  %898 = load float, ptr %39, align 4, !tbaa !45
  %899 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %896, float noundef %898)
          to label %900 unwind label %920

900:                                              ; preds = %897
  %901 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %899, ptr noundef @.str.9)
          to label %902 unwind label %920

902:                                              ; preds = %900
  call void @llvm.lifetime.start.p0(i64 32, ptr %83) #11
  call void @llvm.lifetime.start.p0(i64 4, ptr %84) #11
  %903 = load i64, ptr %40, align 8, !tbaa !27
  %904 = trunc i64 %903 to i32
  store i32 %904, ptr %84, align 4, !tbaa !5
  %905 = invoke noundef nonnull align 8 dereferenceable(216) ptr @_ZNSt3mapIiN12_GLOBAL__N_114PipelineSampleESt4lessIiESaISt4pairIKiS1_EEEixEOi(ptr noundef nonnull align 8 dereferenceable(48) %7, ptr noundef nonnull align 4 dereferenceable(4) %84)
          to label %906 unwind label %924

906:                                              ; preds = %902
  %907 = getelementptr inbounds %"struct.(anonymous namespace)::PipelineSample", ptr %905, i32 0, i32 3
  %908 = invoke noundef nonnull align 8 dereferenceable(208) ptr @_ZNSt3mapImN12_GLOBAL__N_16SampleESt4lessImESaISt4pairIKmS1_EEEixERS5_(ptr noundef nonnull align 8 dereferenceable(48) %907, ptr noundef nonnull align 8 dereferenceable(8) %41)
          to label %909 unwind label %924

909:                                              ; preds = %906
  %910 = getelementptr inbounds %"struct.(anonymous namespace)::Sample", ptr %908, i32 0, i32 2
  invoke void @_ZN12_GLOBAL__N_14leafERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %83, ptr noundef nonnull align 8 dereferenceable(32) %910)
          to label %911 unwind label %924

911:                                              ; preds = %909
  %912 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) %901, ptr noundef nonnull align 8 dereferenceable(32) %83)
          to label %913 unwind label %928

913:                                              ; preds = %911
  %914 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %912, ptr noundef @.str.3)
          to label %915 unwind label %928

915:                                              ; preds = %913
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %83) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %84) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr %83) #11
  br label %936

916:                                              ; preds = %889
  %917 = landingpad { ptr, i32 }
          cleanup
  %918 = extractvalue { ptr, i32 } %917, 0
  store ptr %918, ptr %8, align 8
  %919 = extractvalue { ptr, i32 } %917, 1
  store i32 %919, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %82) #11
  br label %1026

920:                                              ; preds = %1016, %1005, %981, %940, %933, %900, %897, %895
  %921 = landingpad { ptr, i32 }
          cleanup
  %922 = extractvalue { ptr, i32 } %921, 0
  store ptr %922, ptr %8, align 8
  %923 = extractvalue { ptr, i32 } %921, 1
  store i32 %923, ptr %9, align 4
  br label %1026

924:                                              ; preds = %909, %906, %902
  %925 = landingpad { ptr, i32 }
          cleanup
  %926 = extractvalue { ptr, i32 } %925, 0
  store ptr %926, ptr %8, align 8
  %927 = extractvalue { ptr, i32 } %925, 1
  store i32 %927, ptr %9, align 4
  br label %932

928:                                              ; preds = %913, %911
  %929 = landingpad { ptr, i32 }
          cleanup
  %930 = extractvalue { ptr, i32 } %929, 0
  store ptr %930, ptr %8, align 8
  %931 = extractvalue { ptr, i32 } %929, 1
  store i32 %931, ptr %9, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %83) #11
  br label %932

932:                                              ; preds = %928, %924
  call void @llvm.lifetime.end.p0(i64 4, ptr %84) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr %83) #11
  br label %1026

933:                                              ; preds = %893
  %934 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.3)
          to label %935 unwind label %920

935:                                              ; preds = %933
  br label %936

936:                                              ; preds = %935, %915
  %937 = getelementptr inbounds %struct.Inversion, ptr %42, i32 0, i32 8
  %938 = load float, ptr %937, align 8, !tbaa !57
  %939 = fcmp ogt float %938, 0.000000e+00
  br i1 %939, label %940, label %1005

940:                                              ; preds = %936
  %941 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.12)
          to label %942 unwind label %920

942:                                              ; preds = %940
  call void @llvm.lifetime.start.p0(i64 32, ptr %85) #11
  %943 = getelementptr inbounds %struct.Inversion, ptr %42, i32 0, i32 2
  invoke void @_ZN12_GLOBAL__N_14leafERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %85, ptr noundef nonnull align 8 dereferenceable(32) %943)
          to label %944 unwind label %985

944:                                              ; preds = %942
  %945 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) %941, ptr noundef nonnull align 8 dereferenceable(32) %85)
          to label %946 unwind label %989

946:                                              ; preds = %944
  %947 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %945, ptr noundef @.str.13)
          to label %948 unwind label %989

948:                                              ; preds = %946
  %949 = getelementptr inbounds %struct.Inversion, ptr %42, i32 0, i32 4
  %950 = load float, ptr %949, align 8, !tbaa !62
  %951 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %947, float noundef %950)
          to label %952 unwind label %989

952:                                              ; preds = %948
  %953 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %951, ptr noundef @.str.14)
          to label %954 unwind label %989

954:                                              ; preds = %952
  %955 = getelementptr inbounds %struct.Inversion, ptr %42, i32 0, i32 6
  %956 = load float, ptr %955, align 8, !tbaa !60
  %957 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %953, float noundef %956)
          to label %958 unwind label %989

958:                                              ; preds = %954
  %959 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %957, ptr noundef @.str.3)
          to label %960 unwind label %989

960:                                              ; preds = %958
  call void @llvm.lifetime.start.p0(i64 32, ptr %86) #11
  %961 = getelementptr inbounds %struct.Inversion, ptr %42, i32 0, i32 3
  invoke void @_ZN12_GLOBAL__N_14leafERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %86, ptr noundef nonnull align 8 dereferenceable(32) %961)
          to label %962 unwind label %993

962:                                              ; preds = %960
  %963 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) %959, ptr noundef nonnull align 8 dereferenceable(32) %86)
          to label %964 unwind label %997

964:                                              ; preds = %962
  %965 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %963, ptr noundef @.str.13)
          to label %966 unwind label %997

966:                                              ; preds = %964
  %967 = getelementptr inbounds %struct.Inversion, ptr %42, i32 0, i32 5
  %968 = load float, ptr %967, align 4, !tbaa !63
  %969 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %965, float noundef %968)
          to label %970 unwind label %997

970:                                              ; preds = %966
  %971 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %969, ptr noundef @.str.14)
          to label %972 unwind label %997

972:                                              ; preds = %970
  %973 = getelementptr inbounds %struct.Inversion, ptr %42, i32 0, i32 7
  %974 = load float, ptr %973, align 4, !tbaa !61
  %975 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %971, float noundef %974)
          to label %976 unwind label %997

976:                                              ; preds = %972
  %977 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %975, ptr noundef @.str.3)
          to label %978 unwind label %997

978:                                              ; preds = %976
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %86) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr %86) #11
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %85) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr %85) #11
  %979 = call noundef i64 @_ZNKSt3mapIiN12_GLOBAL__N_114PipelineSampleESt4lessIiESaISt4pairIKiS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %7) #11
  %980 = icmp ugt i64 %979, 50000
  br i1 %980, label %981, label %1004

981:                                              ; preds = %978
  %982 = getelementptr inbounds %struct.Inversion, ptr %42, i32 0, i32 0
  %983 = invoke noundef i64 @_ZNSt3mapIiN12_GLOBAL__N_114PipelineSampleESt4lessIiESaISt4pairIKiS1_EEE5eraseERS5_(ptr noundef nonnull align 8 dereferenceable(48) %7, ptr noundef nonnull align 4 dereferenceable(4) %982)
          to label %984 unwind label %920

984:                                              ; preds = %981
  br label %1004

985:                                              ; preds = %942
  %986 = landingpad { ptr, i32 }
          cleanup
  %987 = extractvalue { ptr, i32 } %986, 0
  store ptr %987, ptr %8, align 8
  %988 = extractvalue { ptr, i32 } %986, 1
  store i32 %988, ptr %9, align 4
  br label %1003

989:                                              ; preds = %958, %954, %952, %948, %946, %944
  %990 = landingpad { ptr, i32 }
          cleanup
  %991 = extractvalue { ptr, i32 } %990, 0
  store ptr %991, ptr %8, align 8
  %992 = extractvalue { ptr, i32 } %990, 1
  store i32 %992, ptr %9, align 4
  br label %1002

993:                                              ; preds = %960
  %994 = landingpad { ptr, i32 }
          cleanup
  %995 = extractvalue { ptr, i32 } %994, 0
  store ptr %995, ptr %8, align 8
  %996 = extractvalue { ptr, i32 } %994, 1
  store i32 %996, ptr %9, align 4
  br label %1001

997:                                              ; preds = %976, %972, %970, %966, %964, %962
  %998 = landingpad { ptr, i32 }
          cleanup
  %999 = extractvalue { ptr, i32 } %998, 0
  store ptr %999, ptr %8, align 8
  %1000 = extractvalue { ptr, i32 } %998, 1
  store i32 %1000, ptr %9, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %86) #11
  br label %1001

1001:                                             ; preds = %997, %993
  call void @llvm.lifetime.end.p0(i64 32, ptr %86) #11
  br label %1002

1002:                                             ; preds = %1001, %989
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %85) #11
  br label %1003

1003:                                             ; preds = %1002, %985
  call void @llvm.lifetime.end.p0(i64 32, ptr %85) #11
  br label %1026

1004:                                             ; preds = %984, %978
  br label %1005

1005:                                             ; preds = %1004, %936
  %1006 = load i32, ptr %78, align 4, !tbaa !5
  %1007 = sext i32 %1006 to i64
  %1008 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorISt10unique_ptrIN6Halide16DefaultCostModelESt14default_deleteIS2_EESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %1007) #11
  %1009 = call noundef ptr @_ZNKSt10unique_ptrIN6Halide16DefaultCostModelESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %1008) #11
  invoke void @_ZN6Halide16DefaultCostModel12save_weightsEv(ptr noundef nonnull align 8 dereferenceable(2284) %1009)
          to label %1010 unwind label %920

1010:                                             ; preds = %1005
  %1011 = load i32, ptr %78, align 4, !tbaa !5
  %1012 = sext i32 %1011 to i64
  %1013 = getelementptr inbounds [1 x float], ptr %31, i64 0, i64 %1012
  %1014 = load float, ptr %1013, align 4, !tbaa !45
  %1015 = fcmp olt float %1014, 0x3EE4F8B580000000
  br i1 %1015, label %1016, label %1019

1016:                                             ; preds = %1010
  %1017 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.15)
          to label %1018 unwind label %920

1018:                                             ; preds = %1016
  store i32 0, ptr %3, align 4
  store i32 1, ptr %29, align 4
  br label %1020

1019:                                             ; preds = %1010
  store i32 0, ptr %29, align 4
  br label %1020

1020:                                             ; preds = %1019, %1018
  call void @llvm.lifetime.end.p0(i64 4, ptr %79) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %78) #11
  call void @_ZZ4mainEN9InversionD2Ev(ptr noundef nonnull align 8 dereferenceable(92) %42) #11
  call void @llvm.lifetime.end.p0(i64 96, ptr %42) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #11
  %1021 = load i32, ptr %29, align 4
  switch i32 %1021, label %1028 [
    i32 0, label %1022
  ]

1022:                                             ; preds = %1020
  br label %1023

1023:                                             ; preds = %1022
  %1024 = load i32, ptr %37, align 4, !tbaa !5
  %1025 = add nsw i32 %1024, 1
  store i32 %1025, ptr %37, align 4, !tbaa !5
  br label %254, !llvm.loop !68

1026:                                             ; preds = %1003, %932, %920, %916, %866
  call void @llvm.lifetime.end.p0(i64 4, ptr %79) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %78) #11
  br label %1027

1027:                                             ; preds = %1026, %815, %784, %766
  call void @_ZZ4mainEN9InversionD2Ev(ptr noundef nonnull align 8 dereferenceable(92) %42) #11
  call void @llvm.lifetime.end.p0(i64 96, ptr %42) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #11
  br label %1044

1028:                                             ; preds = %1020, %259
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #11
  %1029 = load i32, ptr %29, align 4
  switch i32 %1029, label %1031 [
    i32 11, label %1030
  ]

1030:                                             ; preds = %1028
  store i32 0, ptr %29, align 4
  br label %1031

1031:                                             ; preds = %1030, %1028
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #11
  %1032 = load i32, ptr %29, align 4
  switch i32 %1032, label %1034 [
    i32 0, label %1033
  ]

1033:                                             ; preds = %1031
  store i32 0, ptr %29, align 4
  br label %1034

1034:                                             ; preds = %1033, %1031
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #11
  %1035 = load i32, ptr %29, align 4
  switch i32 %1035, label %1039 [
    i32 0, label %1036
  ]

1036:                                             ; preds = %1034
  br label %1037

1037:                                             ; preds = %1036
  %1038 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPfSt6vectorIfSaIfEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %27) #11
  br label %244

1039:                                             ; preds = %1034, %246
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #11
  %1040 = load i32, ptr %29, align 4
  switch i32 %1040, label %1042 [
    i32 9, label %1041
  ]

1041:                                             ; preds = %1039
  store i32 0, ptr %3, align 4
  store i32 1, ptr %29, align 4
  br label %1042

1042:                                             ; preds = %1041, %1039
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #11
  call void @_ZNSt3mapIiN12_GLOBAL__N_114PipelineSampleESt4lessIiESaISt4pairIKiS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %15) #11
  call void @llvm.lifetime.end.p0(i64 48, ptr %15) #11
  call void @llvm.lifetime.end.p0(i64 5000, ptr %14) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #11
  call void @_ZNSt6vectorISt10unique_ptrIN6Halide16DefaultCostModelESt14default_deleteIS2_EESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #11
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #11
  call void @_ZNSt3mapIiN12_GLOBAL__N_114PipelineSampleESt4lessIiESaISt4pairIKiS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %7) #11
  call void @llvm.lifetime.end.p0(i64 48, ptr %7) #11
  call void @_ZN12_GLOBAL__N_15FlagsD2Ev(ptr noundef nonnull align 8 dereferenceable(168) %6) #11
  call void @llvm.lifetime.end.p0(i64 168, ptr %6) #11
  %1043 = load i32, ptr %3, align 4
  ret i32 %1043

1044:                                             ; preds = %1027, %247, %227, %200
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #11
  call void @_ZNSt3mapIiN12_GLOBAL__N_114PipelineSampleESt4lessIiESaISt4pairIKiS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %15) #11
  call void @llvm.lifetime.end.p0(i64 48, ptr %15) #11
  br label %1045

1045:                                             ; preds = %1044, %165
  call void @llvm.lifetime.end.p0(i64 5000, ptr %14) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #11
  br label %1046

1046:                                             ; preds = %1045, %161, %118
  call void @_ZNSt6vectorISt10unique_ptrIN6Halide16DefaultCostModelESt14default_deleteIS2_EESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #11
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #11
  call void @_ZNSt3mapIiN12_GLOBAL__N_114PipelineSampleESt4lessIiESaISt4pairIKiS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %7) #11
  br label %1047

1047:                                             ; preds = %1046, %94
  call void @llvm.lifetime.end.p0(i64 48, ptr %7) #11
  call void @_ZN12_GLOBAL__N_15FlagsD2Ev(ptr noundef nonnull align 8 dereferenceable(168) %6) #11
  call void @llvm.lifetime.end.p0(i64 168, ptr %6) #11
  br label %1048

1048:                                             ; preds = %1047
  %1049 = load ptr, ptr %8, align 8
  %1050 = load i32, ptr %9, align 4
  %1051 = insertvalue { ptr, i32 } poison, ptr %1049, 0
  %1052 = insertvalue { ptr, i32 } %1051, i32 %1050, 1
  resume { ptr, i32 } %1052

1053:                                             ; preds = %756, %712
  unreachable
}

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN12_GLOBAL__N_15FlagsC2EiPPc(ptr noundef nonnull align 8 dereferenceable(168), i32 noundef, ptr noundef) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN12_GLOBAL__N_112load_samplesERKNS_5FlagsE(ptr dead_on_unwind noalias writable sret(%"class.std::map") align 8, ptr noundef nonnull align 8 dereferenceable(168)) #2

declare i32 @__gxx_personality_v0(...)

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

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

declare void @_ZN6Halide23make_default_cost_modelERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_b(ptr dead_on_unwind writable sret(%"class.std::unique_ptr") align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32), i1 noundef zeroext) #4

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNSt8ios_base4setfESt13_Ios_FmtflagsS0_(ptr noundef nonnull align 8 dereferenceable(216), i32 noundef, i32 noundef) #2 align 2

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

; Function Attrs: nounwind
declare i64 @time(ptr noundef) #5

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #6

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i64 @_ZNKSt3mapIiN12_GLOBAL__N_114PipelineSampleESt4lessIiESaISt4pairIKiS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48)) #3 align 2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEl(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) #2 align 2

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZNSt4pairIKiN12_GLOBAL__N_114PipelineSampleEEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(224), ptr noundef nonnull align 8 dereferenceable(224)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i64 @_ZNKSt3mapImN12_GLOBAL__N_16SampleESt4lessImESaISt4pairIKmS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48)) #3 align 2

; Function Attrs: mustprogress uwtable
declare hidden { ptr, i8 } @_ZNSt3mapIiN12_GLOBAL__N_114PipelineSampleESt4lessIiESaISt4pairIKiS1_EEE6insertIRS6_EENSt9enable_ifIXsr16is_constructibleIS6_T_EE5valueES4_ISt17_Rb_tree_iteratorIS6_EbEE4typeEOSC_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(224)) #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden void @_ZNSt4pairIKiN12_GLOBAL__N_114PipelineSampleEED2Ev(ptr noundef nonnull align 8 dereferenceable(224)) unnamed_addr #7 align 2

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

; Function Attrs: mustprogress uwtable
declare hidden noundef i64 @_ZNSt3mapIiN12_GLOBAL__N_114PipelineSampleESt4lessIiESaISt4pairIKiS1_EEE5eraseERS5_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) #2 align 2

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

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

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #8

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden void @_ZZ4mainEN9InversionC2Ev(ptr noundef nonnull align 8 dereferenceable(92)) unnamed_addr #7 align 2

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

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

declare void @_ZN6Halide16DefaultCostModel21set_pipeline_featuresERKNS_7Runtime6BufferIfLi4EEEi(ptr noundef nonnull align 8 dereferenceable(2284), ptr noundef nonnull align 8 dereferenceable(136), i32 noundef) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minImERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #7

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @_ZSt7advanceISt17_Rb_tree_iteratorISt4pairIKmN12_GLOBAL__N_16SampleEEEmEvRT_T0_(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) #6

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

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

declare void @_ZN6Halide16DefaultCostModel7enqueueEiPNS_7Runtime6BufferIfLi4EEEPd(ptr noundef nonnull align 8 dereferenceable(2284), i32 noundef, ptr noundef, ptr noundef) #4

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN6Halide7Runtime6BufferIfLi4EEclIJEvEERfiDpT_(ptr noundef nonnull align 8 dereferenceable(136), i32 noundef) #9 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKmN12_GLOBAL__N_16SampleEEEppEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #3 align 2

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

declare noundef float @_ZN6Halide16DefaultCostModel8backpropERKNS_7Runtime6BufferIKfLi4EEEf(ptr noundef nonnull align 8 dereferenceable(2284), ptr noundef nonnull align 8 dereferenceable(136), float noundef) #4

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZSt5isnanf(float noundef) #3

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #10

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden noundef nonnull align 8 dereferenceable(208) ptr @_ZNSt3mapImN12_GLOBAL__N_16SampleESt4lessImESaISt4pairIKmS1_EEEixERS5_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2

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

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8), float noundef) #2 align 2

; Function Attrs: mustprogress uwtable
declare hidden noundef i64 @_ZNKSt3mapIiN12_GLOBAL__N_114PipelineSampleESt4lessIiESaISt4pairIKiS1_EEE5countERS5_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(32)) #6

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN12_GLOBAL__N_14leafERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(32)) #2

; Function Attrs: mustprogress uwtable
declare hidden noundef nonnull align 8 dereferenceable(216) ptr @_ZNSt3mapIiN12_GLOBAL__N_114PipelineSampleESt4lessIiESaISt4pairIKiS1_EEEixEOi(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) #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

declare void @_ZN6Halide16DefaultCostModel12save_weightsEv(ptr noundef nonnull align 8 dereferenceable(2284)) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden void @_ZZ4mainEN9InversionD2Ev(ptr noundef nonnull align 8 dereferenceable(92)) unnamed_addr #7 align 2

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden void @_ZN12_GLOBAL__N_15FlagsD2Ev(ptr noundef nonnull align 8 dereferenceable(168)) unnamed_addr #7 align 2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !20, i64 100}
!12 = !{!"_ZTSN12_GLOBAL__N_15FlagsE", !6, i64 0, !13, i64 8, !17, i64 32, !17, i64 64, !6, i64 96, !20, i64 100, !17, i64 104, !17, i64 136}
!13 = !{!"_ZTSSt6vectorIfSaIfEE", !14, i64 0}
!14 = !{!"_ZTSSt12_Vector_baseIfSaIfEE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE12_Vector_implE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE17_Vector_impl_dataE", !10, i64 0, !10, i64 8, !10, i64 16}
!17 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !18, i64 0, !19, i64 8, !7, i64 16}
!18 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !10, i64 0}
!19 = !{!"long", !7, i64 0}
!20 = !{!"bool", !7, i64 0}
!21 = !{i8 0, i8 2}
!22 = !{}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = !{!26, !26, i64 0}
!26 = !{!"vtable pointer", !8, i64 0}
!27 = !{!19, !19, i64 0}
!28 = !{!29, !19, i64 216}
!29 = !{!"_ZTSSt4pairIKiN12_GLOBAL__N_114PipelineSampleEE", !6, i64 0, !30, i64 8}
!30 = !{!"_ZTSN12_GLOBAL__N_114PipelineSampleE", !6, i64 0, !6, i64 4, !31, i64 8, !36, i64 144, !19, i64 192, !44, i64 200, !19, i64 208}
!31 = !{!"_ZTSN6Halide7Runtime6BufferIfLi4EEE", !32, i64 0, !7, i64 56, !10, i64 120, !10, i64 128}
!32 = !{!"_ZTS15halide_buffer_t", !19, i64 0, !10, i64 8, !10, i64 16, !19, i64 24, !33, i64 32, !6, i64 36, !10, i64 40, !10, i64 48}
!33 = !{!"_ZTS13halide_type_t", !34, i64 0, !7, i64 1, !35, i64 2}
!34 = !{!"_ZTS18halide_type_code_t", !7, i64 0}
!35 = !{!"short", !7, i64 0}
!36 = !{!"_ZTSSt3mapImN12_GLOBAL__N_16SampleESt4lessImESaISt4pairIKmS1_EEE", !37, i64 0}
!37 = !{!"_ZTSSt8_Rb_treeImSt4pairIKmN12_GLOBAL__N_16SampleEESt10_Select1stIS4_ESt4lessImESaIS4_EE", !38, i64 0}
!38 = !{!"_ZTSNSt8_Rb_treeImSt4pairIKmN12_GLOBAL__N_16SampleEESt10_Select1stIS4_ESt4lessImESaIS4_EE13_Rb_tree_implIS8_Lb1EEE", !39, i64 0, !41, i64 8}
!39 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessImEE", !40, i64 0}
!40 = !{!"_ZTSSt4lessImE"}
!41 = !{!"_ZTSSt15_Rb_tree_header", !42, i64 0, !19, i64 32}
!42 = !{!"_ZTSSt18_Rb_tree_node_base", !43, i64 0, !10, i64 8, !10, i64 16, !10, i64 24}
!43 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!44 = !{!"float", !7, i64 0}
!45 = !{!44, !44, i64 0}
!46 = !{!12, !6, i64 0}
!47 = !{!12, !6, i64 96}
!48 = !{!29, !6, i64 12}
!49 = distinct !{!49, !24}
!50 = !{!51, !51, i64 0}
!51 = !{!"double", !7, i64 0}
!52 = !{!29, !6, i64 0}
!53 = !{!54, !19, i64 0}
!54 = !{!"_ZTSSt4pairIKmN12_GLOBAL__N_16SampleEE", !19, i64 0, !55, i64 8}
!55 = !{!"_ZTSN12_GLOBAL__N_16SampleE", !13, i64 0, !7, i64 24, !17, i64 32, !6, i64 64, !31, i64 72}
!56 = distinct !{!56, !24}
!57 = !{!58, !44, i64 88}
!58 = !{!"_ZTSZ4mainE9Inversion", !6, i64 0, !17, i64 8, !17, i64 40, !44, i64 72, !44, i64 76, !44, i64 80, !44, i64 84, !44, i64 88}
!59 = !{!58, !6, i64 0}
!60 = !{!58, !44, i64 80}
!61 = !{!58, !44, i64 84}
!62 = !{!58, !44, i64 72}
!63 = !{!58, !44, i64 76}
!64 = distinct !{!64, !24}
!65 = distinct !{!65, !24}
!66 = distinct !{!66, !24}
!67 = distinct !{!67, !24}
!68 = distinct !{!68, !24}


; 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::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"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::locale" = type { ptr }
%"struct.(anonymous namespace)::Flags" = type { i32, %"class.std::vector", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", i32, i8, %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" = type { ptr, ptr, 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::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<int, std::pair<const int, (anonymous namespace)::PipelineSample>, std::_Select1st<std::pair<const int, (anonymous namespace)::PipelineSample>>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, std::pair<const int, (anonymous namespace)::PipelineSample>, std::_Select1st<std::pair<const int, (anonymous namespace)::PipelineSample>>, std::less<int>>::_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.std::vector.6" = type { %"struct.std::_Vector_base.7" }
%"struct.std::_Vector_base.7" = type { %"struct.std::_Vector_base<std::unique_ptr<Halide::DefaultCostModel>, std::allocator<std::unique_ptr<Halide::DefaultCostModel>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::unique_ptr<Halide::DefaultCostModel>, std::allocator<std::unique_ptr<Halide::DefaultCostModel>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::unique_ptr<Halide::DefaultCostModel>, std::allocator<std::unique_ptr<Halide::DefaultCostModel>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::unique_ptr<Halide::DefaultCostModel>, std::allocator<std::unique_ptr<Halide::DefaultCostModel>>>::_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.12" }
%"struct.std::_Head_base.12" = type { ptr }
%"class.std::mersenne_twister_engine" = type { [624 x i64], i64 }
%"struct.std::_Rb_tree_iterator" = type { ptr }
%"struct.std::pair" = type { i32, %"struct.(anonymous namespace)::PipelineSample" }
%"struct.(anonymous namespace)::PipelineSample" = type { i32, i32, %"class.Halide::Runtime::Buffer", %"class.std::map.13", i64, float, i64 }
%"class.Halide::Runtime::Buffer" = type { %struct.halide_buffer_t, [4 x %struct.halide_dimension_t], ptr, ptr }
%struct.halide_buffer_t = type { i64, ptr, ptr, i64, %struct.halide_type_t, i32, ptr, ptr }
%struct.halide_type_t = type { i8, i8, i16 }
%struct.halide_dimension_t = type { i32, i32, i32, i32 }
%"class.std::map.13" = type { %"class.std::_Rb_tree.14" }
%"class.std::_Rb_tree.14" = type { %"struct.std::_Rb_tree<unsigned long, std::pair<const unsigned long, (anonymous namespace)::Sample>, std::_Select1st<std::pair<const unsigned long, (anonymous namespace)::Sample>>, std::less<unsigned long>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<unsigned long, std::pair<const unsigned long, (anonymous namespace)::Sample>, std::_Select1st<std::pair<const unsigned long, (anonymous namespace)::Sample>>, std::less<unsigned long>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%struct.Inversion = type <{ i32, [4 x i8], %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", float, float, float, float, float, [4 x i8] }>
%"struct.std::_Rb_tree_iterator.22" = type { ptr }
%"class.Halide::Runtime::Buffer.25" = type { %struct.halide_buffer_t, [4 x %struct.halide_dimension_t], ptr, ptr }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [16 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [97 x i8], align 1
@__PRETTY_FUNCTION__.main = external hidden unnamed_addr constant [23 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [28 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr noundef %1) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"struct.(anonymous namespace)::Flags", align 8
  %4 = alloca %"class.std::map", align 8
  %5 = alloca %"class.std::vector.6", align 8
  %6 = alloca %"class.std::unique_ptr", align 8
  %7 = alloca %"class.std::mersenne_twister_engine", align 8
  %8 = alloca %"class.std::map", align 8
  %9 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %10 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %11 = alloca %"struct.std::pair", align 8
  %12 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %13 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %14 = alloca %"struct.std::pair", align 8
  %15 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %16 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %17 = alloca i64, align 8
  %18 = alloca %struct.Inversion, align 8
  %19 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %20 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %21 = alloca i64, align 8
  %22 = alloca i64, align 8
  %23 = alloca %"class.Halide::Runtime::Buffer", align 8
  %24 = alloca %"struct.std::_Rb_tree_iterator.22", align 8
  %25 = alloca %"class.Halide::Runtime::Buffer", align 8
  %26 = alloca %"class.Halide::Runtime::Buffer.25", align 8
  %27 = alloca %"struct.std::_Rb_tree_iterator.22", align 8
  %28 = alloca %"struct.std::_Rb_tree_iterator.22", align 8
  %29 = alloca %"struct.std::_Rb_tree_iterator.22", align 8
  %30 = alloca i32, align 4
  %31 = alloca %"class.std::__cxx11::basic_string", align 8
  %32 = alloca i32, align 4
  %33 = alloca %"class.std::__cxx11::basic_string", align 8
  %34 = alloca %"class.std::__cxx11::basic_string", align 8
  call void @llvm.lifetime.start.p0(i64 168, ptr nonnull %3) #10
  call void @_ZN12_GLOBAL__N_15FlagsC2EiPPc(ptr noundef nonnull align 8 dereferenceable(168) %3, i32 noundef %0, ptr noundef %1)
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %4) #10
  invoke void @_ZN12_GLOBAL__N_112load_samplesERKNS_5FlagsE(ptr dead_on_unwind nonnull writable sret(%"class.std::map") align 8 %4, ptr noundef nonnull align 8 dereferenceable(168) %3)
          to label %.critedge unwind label %40

.critedge:                                        ; preds = %2
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #10
  call void @_ZNSt6vectorISt10unique_ptrIN6Halide16DefaultCostModelESt14default_deleteIS2_EESaIS5_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #10
  %35 = getelementptr inbounds i8, ptr %3, i64 32
  %36 = getelementptr inbounds i8, ptr %3, i64 64
  %37 = getelementptr inbounds i8, ptr %3, i64 100
  %38 = load i8, ptr %37, align 4, !tbaa !5, !range !19, !noundef !20
  %39 = trunc nuw i8 %38 to i1
  invoke void @_ZN6Halide23make_default_cost_modelERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_b(ptr dead_on_unwind nonnull writable sret(%"class.std::unique_ptr") align 8 %6, ptr noundef nonnull align 8 dereferenceable(32) %35, ptr noundef nonnull align 8 dereferenceable(32) %36, i1 noundef zeroext %39)
          to label %42 unwind label %50

40:                                               ; preds = %2
  %41 = landingpad { ptr, i32 }
          cleanup
  br label %501

42:                                               ; preds = %.critedge
  %43 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorISt10unique_ptrIN6Halide16DefaultCostModelESt14default_deleteIS2_EESaIS5_EE12emplace_backIJS5_EEERS5_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(8) %6)
          to label %44 unwind label %52

44:                                               ; preds = %42
  call void @_ZNSt10unique_ptrIN6Halide16DefaultCostModelESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #10
  %45 = load ptr, ptr @_ZSt4cout, align 8, !tbaa !21
  %46 = getelementptr i8, ptr %45, i64 -24
  %47 = load i64, ptr %46, align 8
  %48 = getelementptr inbounds i8, ptr @_ZSt4cout, i64 %47
  %49 = invoke noundef i32 @_ZNSt8ios_base4setfESt13_Ios_FmtflagsS0_(ptr noundef nonnull align 8 dereferenceable(216) %48, i32 noundef 4, i32 noundef 260)
          to label %55 unwind label %86

50:                                               ; preds = %.critedge
  %51 = landingpad { ptr, i32 }
          cleanup
  br label %54

52:                                               ; preds = %42
  %53 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt10unique_ptrIN6Halide16DefaultCostModelESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #10
  br label %54

54:                                               ; preds = %52, %50
  %.pn265 = phi { ptr, i32 } [ %53, %52 ], [ %51, %50 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #10
  br label %500

55:                                               ; preds = %44
  %56 = load ptr, ptr @_ZSt4cout, align 8, !tbaa !21
  %57 = getelementptr i8, ptr %56, i64 -24
  %58 = load i64, ptr %57, align 8
  %59 = getelementptr inbounds i8, ptr @_ZSt4cout, i64 %58
  %60 = call noundef i64 @_ZNSt8ios_base9precisionEl(ptr noundef nonnull align 8 dereferenceable(216) %59, i64 noundef 4)
  %61 = call i64 @time(ptr noundef null) #10
  call void @llvm.lifetime.start.p0(i64 5000, ptr nonnull %7) #10
  %62 = and i64 %61, 4294967295
  invoke void @_ZNSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEC2Em(ptr noundef nonnull align 8 dereferenceable(5000) %7, i64 noundef %62)
          to label %63 unwind label %88

63:                                               ; preds = %55
  %64 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str)
          to label %65 unwind label %88

65:                                               ; preds = %63
  %66 = call noundef i64 @_ZNKSt3mapIiN12_GLOBAL__N_114PipelineSampleESt4lessIiESaISt4pairIKiS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %4) #10
  %67 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %64, i64 noundef %66)
          to label %68 unwind label %88

68:                                               ; preds = %65
  %69 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %67, ptr noundef nonnull @.str.2)
          to label %70 unwind label %88

70:                                               ; preds = %68
  %71 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEl(ptr noundef nonnull align 8 dereferenceable(8) %69, i64 noundef %61)
          to label %72 unwind label %88

72:                                               ; preds = %70
  %73 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %71, ptr noundef nonnull @.str.3)
          to label %74 unwind label %88

74:                                               ; preds = %72
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %8) #10
  call void @_ZNSt3mapIiN12_GLOBAL__N_114PipelineSampleESt4lessIiESaISt4pairIKiS1_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %8) #10
  %75 = call noundef i64 @_ZNKSt3mapIiN12_GLOBAL__N_114PipelineSampleESt4lessIiESaISt4pairIKiS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %4) #10
  %76 = icmp ugt i64 %75, 16
  br i1 %76, label %77, label %119

77:                                               ; preds = %74
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #10
  %78 = call ptr @_ZNSt3mapIiN12_GLOBAL__N_114PipelineSampleESt4lessIiESaISt4pairIKiS1_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %4) #10
  store ptr %78, ptr %9, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #10
  %79 = call ptr @_ZNSt3mapIiN12_GLOBAL__N_114PipelineSampleESt4lessIiESaISt4pairIKiS1_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %4) #10
  store ptr %79, ptr %10, align 8
  %80 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiN12_GLOBAL__N_114PipelineSampleEEES7_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #10
  br i1 %80, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %77
  %81 = getelementptr inbounds i8, ptr %11, i64 152
  %82 = getelementptr inbounds i8, ptr %11, i64 216
  br label %90

._crit_edge:                                      ; preds = %104, %77
  %.0204.lcssa = phi i64 [ 0, %77 ], [ %94, %104 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #10
  %83 = call ptr @_ZNSt3mapIiN12_GLOBAL__N_114PipelineSampleESt4lessIiESaISt4pairIKiS1_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %8) #10
  store ptr %83, ptr %12, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #10
  %84 = call ptr @_ZNSt3mapIiN12_GLOBAL__N_114PipelineSampleESt4lessIiESaISt4pairIKiS1_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %8) #10
  store ptr %84, ptr %13, align 8
  %85 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiN12_GLOBAL__N_114PipelineSampleEEES7_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %13) #10
  br i1 %85, label %.lr.ph649, label %._crit_edge650

86:                                               ; preds = %44
  %87 = landingpad { ptr, i32 }
          cleanup
  br label %500

88:                                               ; preds = %72, %70, %68, %65, %63, %55
  %89 = landingpad { ptr, i32 }
          cleanup
  br label %499

90:                                               ; preds = %.lr.ph, %104
  %.0204647 = phi i64 [ 0, %.lr.ph ], [ %94, %104 ]
  call void @llvm.lifetime.start.p0(i64 224, ptr nonnull %11) #10
  %91 = call noundef nonnull align 8 dereferenceable(224) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiN12_GLOBAL__N_114PipelineSampleEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #10
  invoke void @_ZNSt4pairIKiN12_GLOBAL__N_114PipelineSampleEEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(224) %11, ptr noundef nonnull align 8 dereferenceable(224) %91)
          to label %92 unwind label %100

92:                                               ; preds = %90
  %93 = call noundef i64 @_ZNKSt3mapImN12_GLOBAL__N_16SampleESt4lessImESaISt4pairIKmS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %81) #10
  %94 = add i64 %93, %.0204647
  %95 = load i64, ptr %82, align 8, !tbaa !23
  %96 = and i64 %95, 7
  %97 = icmp eq i64 %96, 0
  br i1 %97, label %98, label %104

98:                                               ; preds = %92
  %99 = invoke { ptr, i8 } @_ZNSt3mapIiN12_GLOBAL__N_114PipelineSampleESt4lessIiESaISt4pairIKiS1_EEE6insertIRS6_EENSt9enable_ifIXsr16is_constructibleIS6_T_EE5valueES4_ISt17_Rb_tree_iteratorIS6_EbEE4typeEOSC_(ptr noundef nonnull align 8 dereferenceable(48) %8, ptr noundef nonnull align 8 dereferenceable(224) %11)
          to label %104 unwind label %102

100:                                              ; preds = %90
  %101 = landingpad { ptr, i32 }
          cleanup
  br label %107

102:                                              ; preds = %98
  %103 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt4pairIKiN12_GLOBAL__N_114PipelineSampleEED2Ev(ptr noundef nonnull align 8 dereferenceable(224) %11) #10
  br label %107

104:                                              ; preds = %98, %92
  call void @_ZNSt4pairIKiN12_GLOBAL__N_114PipelineSampleEED2Ev(ptr noundef nonnull align 8 dereferenceable(224) %11) #10
  call void @llvm.lifetime.end.p0(i64 224, ptr nonnull %11) #10
  %105 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKiN12_GLOBAL__N_114PipelineSampleEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #10
  %106 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiN12_GLOBAL__N_114PipelineSampleEEES7_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #10
  br i1 %106, label %90, label %._crit_edge

107:                                              ; preds = %102, %100
  %.pn261 = phi { ptr, i32 } [ %103, %102 ], [ %101, %100 ]
  call void @llvm.lifetime.end.p0(i64 224, ptr nonnull %11) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #10
  br label %498

._crit_edge650:                                   ; preds = %111, %._crit_edge
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #10
  br label %119

.lr.ph649:                                        ; preds = %._crit_edge, %111
  call void @llvm.lifetime.start.p0(i64 224, ptr nonnull %14) #10
  %108 = call noundef nonnull align 8 dereferenceable(224) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiN12_GLOBAL__N_114PipelineSampleEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #10
  invoke void @_ZNSt4pairIKiN12_GLOBAL__N_114PipelineSampleEEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(224) %14, ptr noundef nonnull align 8 dereferenceable(224) %108)
          to label %109 unwind label %114

109:                                              ; preds = %.lr.ph649
  %110 = invoke noundef i64 @_ZNSt3mapIiN12_GLOBAL__N_114PipelineSampleESt4lessIiESaISt4pairIKiS1_EEE5eraseERS5_(ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef nonnull align 4 dereferenceable(4) %14)
          to label %111 unwind label %116

111:                                              ; preds = %109
  call void @_ZNSt4pairIKiN12_GLOBAL__N_114PipelineSampleEED2Ev(ptr noundef nonnull align 8 dereferenceable(224) %14) #10
  call void @llvm.lifetime.end.p0(i64 224, ptr nonnull %14) #10
  %112 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKiN12_GLOBAL__N_114PipelineSampleEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #10
  %113 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiN12_GLOBAL__N_114PipelineSampleEEES7_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %13) #10
  br i1 %113, label %.lr.ph649, label %._crit_edge650

114:                                              ; preds = %.lr.ph649
  %115 = landingpad { ptr, i32 }
          cleanup
  br label %118

116:                                              ; preds = %109
  %117 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt4pairIKiN12_GLOBAL__N_114PipelineSampleEED2Ev(ptr noundef nonnull align 8 dereferenceable(224) %14) #10
  br label %118

118:                                              ; preds = %116, %114
  %.pn259 = phi { ptr, i32 } [ %117, %116 ], [ %115, %114 ]
  call void @llvm.lifetime.end.p0(i64 224, ptr nonnull %14) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #10
  br label %498

119:                                              ; preds = %._crit_edge650, %74
  %.1205 = phi i64 [ %.0204.lcssa, %._crit_edge650 ], [ 0, %74 ]
  %120 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.4)
          to label %121 unwind label %138

121:                                              ; preds = %119
  %122 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %120, i64 noundef %.1205)
          to label %123 unwind label %138

123:                                              ; preds = %121
  %124 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %122, ptr noundef nonnull @.str.3)
          to label %125 unwind label %138

125:                                              ; preds = %123
  %126 = getelementptr inbounds i8, ptr %3, i64 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #10
  %127 = call ptr @_ZNSt6vectorIfSaIfEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %126) #10
  store ptr %127, ptr %15, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #10
  %128 = call ptr @_ZNSt6vectorIfSaIfEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %126) #10
  store ptr %128, ptr %16, align 8
  %129 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPfSt6vectorIfSaIfEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %16) #10
  br i1 %129, label %.lr.ph721, label %.critedge276

.lr.ph721:                                        ; preds = %125
  %130 = getelementptr inbounds i8, ptr %3, i64 96
  %131 = getelementptr inbounds i8, ptr %18, i64 88
  %132 = getelementptr inbounds i8, ptr %18, i64 80
  %133 = getelementptr inbounds i8, ptr %18, i64 84
  %134 = getelementptr inbounds i8, ptr %18, i64 72
  %135 = getelementptr inbounds i8, ptr %18, i64 76
  %136 = getelementptr inbounds i8, ptr %18, i64 8
  %137 = getelementptr inbounds i8, ptr %18, i64 40
  br label %140

138:                                              ; preds = %123, %121, %119
  %139 = landingpad { ptr, i32 }
          cleanup
  br label %498

140:                                              ; preds = %.lr.ph721, %.critedge274
  %141 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPfSt6vectorIfSaIfEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #10
  %142 = load float, ptr %141, align 4, !tbaa !40
  %143 = load i32, ptr %3, align 8, !tbaa !41
  %.not243710 = icmp sgt i32 %143, 0
  br i1 %.not243710, label %.lr.ph719, label %.critedge274

.lr.ph719:                                        ; preds = %140, %490
  %.0211717 = phi i32 [ %491, %490 ], [ 0, %140 ]
  %144 = phi <2 x float> [ %401, %490 ], [ zeroinitializer, %140 ]
  %145 = phi <2 x float> [ %391, %490 ], [ zeroinitializer, %140 ]
  %146 = phi <2 x float> [ %380, %490 ], [ zeroinitializer, %140 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #10
  store i64 0, ptr %17, align 8, !tbaa !42
  call void @llvm.lifetime.start.p0(i64 96, ptr nonnull %18) #10
  call void @_ZZ4mainEN9InversionC2Ev(ptr noundef nonnull align 8 dereferenceable(92) %18) #10
  br label %148

.loopexit:                                        ; preds = %._crit_edge679
  %147 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.8)
          to label %373 unwind label %371

148:                                              ; preds = %.lr.ph719, %._crit_edge679
  %.1215696 = phi float [ 0.000000e+00, %.lr.ph719 ], [ %.2216.lcssa, %._crit_edge679 ]
  %.1226695 = phi i32 [ 0, %.lr.ph719 ], [ %.2227.lcssa, %._crit_edge679 ]
  %.not246 = phi i1 [ true, %.lr.ph719 ], [ false, %._crit_edge679 ]
  %149 = phi <2 x float> [ %144, %.lr.ph719 ], [ %156, %._crit_edge679 ]
  %150 = phi <2 x float> [ %145, %.lr.ph719 ], [ %157, %._crit_edge679 ]
  %151 = phi <2 x float> [ %146, %.lr.ph719 ], [ %158, %._crit_edge679 ]
  %152 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorISt10unique_ptrIN6Halide16DefaultCostModelESt14default_deleteIS2_EESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef 0) #10
  %. = select i1 %.not246, ptr %8, ptr %4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #10
  %153 = call ptr @_ZNSt3mapIiN12_GLOBAL__N_114PipelineSampleESt4lessIiESaISt4pairIKiS1_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %.) #10
  store ptr %153, ptr %19, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %20) #10
  %154 = call ptr @_ZNSt3mapIiN12_GLOBAL__N_114PipelineSampleESt4lessIiESaISt4pairIKiS1_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %.) #10
  store ptr %154, ptr %20, align 8
  %155 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiN12_GLOBAL__N_114PipelineSampleEEES7_(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) %20) #10
  br i1 %155, label %.lr.ph678, label %._crit_edge679

._crit_edge679:                                   ; preds = %361, %148
  %.2227.lcssa = phi i32 [ %.1226695, %148 ], [ %.6231, %361 ]
  %.2216.lcssa = phi float [ %.1215696, %148 ], [ %.6220, %361 ]
  %156 = phi <2 x float> [ %149, %148 ], [ %362, %361 ]
  %157 = phi <2 x float> [ %150, %148 ], [ %363, %361 ]
  %158 = phi <2 x float> [ %151, %148 ], [ %364, %361 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #10
  br i1 %.not246, label %148, label %.loopexit, !llvm.loop !43

.lr.ph678:                                        ; preds = %148, %361
  %.2216676 = phi float [ %.6220, %361 ], [ %.1215696, %148 ]
  %.2227675 = phi i32 [ %.6231, %361 ], [ %.1226695, %148 ]
  %159 = phi <2 x float> [ %362, %361 ], [ %149, %148 ]
  %160 = phi <2 x float> [ %363, %361 ], [ %150, %148 ]
  %161 = phi <2 x float> [ %364, %361 ], [ %151, %148 ]
  %162 = call noundef nonnull align 8 dereferenceable(224) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiN12_GLOBAL__N_114PipelineSampleEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #10
  %163 = getelementptr inbounds i8, ptr %162, i64 152
  %164 = call noundef i64 @_ZNKSt3mapImN12_GLOBAL__N_16SampleESt4lessImESaISt4pairIKmS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %163) #10
  %165 = icmp ult i64 %164, 8
  br i1 %165, label %361, label %166

166:                                              ; preds = %.lr.ph678
  %167 = call noundef ptr @_ZNKSt10unique_ptrIN6Halide16DefaultCostModelESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %152) #10
  %168 = load ptr, ptr %167, align 8, !tbaa !21
  %169 = getelementptr inbounds i8, ptr %168, i64 40
  %170 = load ptr, ptr %169, align 8
  invoke void %170(ptr noundef nonnull align 8 dereferenceable(2284) %167)
          to label %171 unwind label %189

171:                                              ; preds = %166
  %172 = call noundef ptr @_ZNKSt10unique_ptrIN6Halide16DefaultCostModelESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %152) #10
  %173 = getelementptr inbounds i8, ptr %162, i64 16
  %174 = load i32, ptr %130, align 8, !tbaa !45
  invoke void @_ZN6Halide16DefaultCostModel21set_pipeline_featuresERKNS_7Runtime6BufferIfLi4EEEi(ptr noundef nonnull align 8 dereferenceable(2284) %172, ptr noundef nonnull align 8 dereferenceable(136) %173, i32 noundef %174)
          to label %175 unwind label %189

175:                                              ; preds = %171
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %21) #10
  store i64 1024, ptr %21, align 8, !tbaa !42
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %22) #10
  %176 = call noundef i64 @_ZNKSt3mapImN12_GLOBAL__N_16SampleESt4lessImESaISt4pairIKmS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %163) #10
  store i64 %176, ptr %22, align 8, !tbaa !42
  %177 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minImERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull align 8 dereferenceable(8) %22)
  %178 = load i64, ptr %177, align 8, !tbaa !42
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #10
  call void @llvm.lifetime.start.p0(i64 136, ptr nonnull %23) #10
  %179 = trunc i64 %178 to i32
  invoke void @_ZN6Halide7Runtime6BufferIfLi4EEC2Ei(ptr noundef nonnull align 8 dereferenceable(136) %23, i32 noundef %179)
          to label %180 unwind label %191

180:                                              ; preds = %175
  %181 = call noundef i64 @_ZNKSt3mapImN12_GLOBAL__N_16SampleESt4lessImESaISt4pairIKmS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %163) #10
  %182 = icmp ugt i64 %181, 1024
  br i1 %182, label %183, label %195

183:                                              ; preds = %180
  %184 = invoke noundef i64 @_ZNSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEclEv(ptr noundef nonnull align 8 dereferenceable(5000) %7)
          to label %185 unwind label %193

185:                                              ; preds = %183
  %186 = call noundef i64 @_ZNKSt3mapImN12_GLOBAL__N_16SampleESt4lessImESaISt4pairIKmS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %163) #10
  %187 = add i64 %186, -1024
  %188 = urem i64 %184, %187
  br label %195

189:                                              ; preds = %171, %166
  %190 = landingpad { ptr, i32 }
          cleanup
  br label %370

191:                                              ; preds = %175
  %192 = landingpad { ptr, i32 }
          cleanup
  br label %369

193:                                              ; preds = %183
  %194 = landingpad { ptr, i32 }
          cleanup
  br label %368

195:                                              ; preds = %185, %180
  %.0222 = phi i64 [ %188, %185 ], [ 0, %180 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %24) #10
  %196 = call ptr @_ZNSt3mapImN12_GLOBAL__N_16SampleESt4lessImESaISt4pairIKmS1_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %163) #10
  store ptr %196, ptr %24, align 8
  invoke void @_ZSt7advanceISt17_Rb_tree_iteratorISt4pairIKmN12_GLOBAL__N_16SampleEEEmEvRT_T0_(ptr noundef nonnull align 8 dereferenceable(8) %24, i64 noundef %.0222)
          to label %.preheader295 unwind label %199

.preheader295:                                    ; preds = %195
  %.not722 = icmp eq i64 %178, 0
  br i1 %.not722, label %._crit_edge654, label %.lr.ph653

.lr.ph653:                                        ; preds = %.preheader295
  %197 = getelementptr inbounds i8, ptr %162, i64 12
  br label %201

._crit_edge654:                                   ; preds = %226, %.preheader295
  %198 = call noundef ptr @_ZNKSt10unique_ptrIN6Halide16DefaultCostModelESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %152) #10
  br i1 %.not246, label %268, label %231

199:                                              ; preds = %195
  %200 = landingpad { ptr, i32 }
          cleanup
  br label %367

201:                                              ; preds = %.lr.ph653, %226
  %.0221652 = phi i64 [ 0, %.lr.ph653 ], [ %229, %226 ]
  %.0223651 = phi i64 [ 0, %.lr.ph653 ], [ %.1224, %226 ]
  %202 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKmN12_GLOBAL__N_16SampleEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %24) #10
  %203 = getelementptr inbounds i8, ptr %202, i64 8
  call void @llvm.lifetime.start.p0(i64 136, ptr nonnull %25) #10
  invoke void @_ZN6Halide7Runtime6BufferIfLi4EEC2Ev(ptr noundef nonnull align 8 dereferenceable(136) %25)
          to label %204 unwind label %222

204:                                              ; preds = %201
  %205 = call noundef ptr @_ZNKSt10unique_ptrIN6Halide16DefaultCostModelESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %152) #10
  %206 = load i32, ptr %197, align 4, !tbaa !46
  %207 = getelementptr inbounds i8, ptr %202, i64 32
  invoke void @_ZN6Halide16DefaultCostModel7enqueueEiPNS_7Runtime6BufferIfLi4EEEPd(ptr noundef nonnull align 8 dereferenceable(2284) %205, i32 noundef %206, ptr noundef nonnull %25, ptr noundef nonnull %207)
          to label %208 unwind label %224

208:                                              ; preds = %204
  %209 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %203, i64 noundef 0) #10
  %210 = load float, ptr %209, align 4, !tbaa !40
  %211 = trunc i64 %.0221652 to i32
  %212 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6Halide7Runtime6BufferIfLi4EEclIJEvEERfiDpT_(ptr noundef nonnull align 8 dereferenceable(136) %23, i32 noundef %211)
          to label %213 unwind label %224

213:                                              ; preds = %208
  store float %210, ptr %212, align 4, !tbaa !40
  %214 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6Halide7Runtime6BufferIfLi4EEclIJEvEERfiDpT_(ptr noundef nonnull align 8 dereferenceable(136) %23, i32 noundef %211)
          to label %215 unwind label %224

215:                                              ; preds = %213
  %216 = load float, ptr %214, align 4, !tbaa !40
  %217 = trunc i64 %.0223651 to i32
  %218 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6Halide7Runtime6BufferIfLi4EEclIJEvEERfiDpT_(ptr noundef nonnull align 8 dereferenceable(136) %23, i32 noundef %217)
          to label %219 unwind label %224

219:                                              ; preds = %215
  %220 = load float, ptr %218, align 4, !tbaa !40
  %221 = getelementptr inbounds i8, ptr %202, i64 80
  invoke void @_ZN6Halide7Runtime6BufferIfLi4EE9copy_fromIfLi4EEEvRKNS1_IT_XT0_EEE(ptr noundef nonnull align 8 dereferenceable(136) %25, ptr noundef nonnull align 8 dereferenceable(136) %221)
          to label %226 unwind label %224

222:                                              ; preds = %201
  %223 = landingpad { ptr, i32 }
          cleanup
  br label %230

224:                                              ; preds = %219, %215, %213, %208, %204
  %225 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6Halide7Runtime6BufferIfLi4EED2Ev(ptr noundef nonnull align 8 dereferenceable(136) %25) #10
  br label %230

226:                                              ; preds = %219
  %227 = fcmp olt float %216, %220
  %.1224 = select i1 %227, i64 %.0221652, i64 %.0223651
  %228 = call ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKmN12_GLOBAL__N_16SampleEEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %24, i32 noundef 0) #10
  call void @_ZN6Halide7Runtime6BufferIfLi4EED2Ev(ptr noundef nonnull align 8 dereferenceable(136) %25) #10
  call void @llvm.lifetime.end.p0(i64 136, ptr nonnull %25) #10
  %229 = add nuw i64 %.0221652, 1
  %exitcond.not = icmp eq i64 %229, %178
  br i1 %exitcond.not, label %._crit_edge654, label %201, !llvm.loop !47

230:                                              ; preds = %224, %222
  %.pn252 = phi { ptr, i32 } [ %225, %224 ], [ %223, %222 ]
  call void @llvm.lifetime.end.p0(i64 136, ptr nonnull %25) #10
  br label %367

231:                                              ; preds = %._crit_edge654
  call void @llvm.lifetime.start.p0(i64 136, ptr nonnull %26) #10
  invoke void @_ZN6Halide7Runtime6BufferIKfLi4EEC2IfLi4EEERKNS1_IT_XT0_EEE(ptr noundef nonnull align 8 dereferenceable(136) %26, ptr noundef nonnull align 8 dereferenceable(136) %23)
          to label %232 unwind label %237

232:                                              ; preds = %231
  %233 = invoke noundef float @_ZN6Halide16DefaultCostModel8backpropERKNS_7Runtime6BufferIKfLi4EEEf(ptr noundef nonnull align 8 dereferenceable(2284) %198, ptr noundef nonnull align 8 dereferenceable(136) %26, float noundef %142)
          to label %234 unwind label %239

234:                                              ; preds = %232
  call void @_ZN6Halide7Runtime6BufferIKfLi4EED2Ev(ptr noundef nonnull align 8 dereferenceable(136) %26) #10
  call void @llvm.lifetime.end.p0(i64 136, ptr nonnull %26) #10
  %235 = call noundef zeroext i1 @_ZSt5isnanf(float noundef %233)
  br i1 %235, label %236, label %244

236:                                              ; preds = %234
  call void @__assert_fail(ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.6, i32 noundef 470, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #11
  unreachable

237:                                              ; preds = %231
  %238 = landingpad { ptr, i32 }
          cleanup
  br label %241

239:                                              ; preds = %232
  %240 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6Halide7Runtime6BufferIKfLi4EED2Ev(ptr noundef nonnull align 8 dereferenceable(136) %26) #10
  br label %241

241:                                              ; preds = %239, %237
  %.pn247 = phi { ptr, i32 } [ %240, %239 ], [ %238, %237 ]
  call void @llvm.lifetime.end.p0(i64 136, ptr nonnull %26) #10
  br label %367

242:                                              ; preds = %268
  %243 = landingpad { ptr, i32 }
          cleanup
  br label %367

244:                                              ; preds = %234
  %245 = insertelement <2 x float> <float poison, float 1.000000e+00>, float %233, i64 0
  %246 = fadd <2 x float> %161, %245
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %27) #10
  %247 = call ptr @_ZNSt3mapImN12_GLOBAL__N_16SampleESt4lessImESaISt4pairIKmS1_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %163) #10
  store ptr %247, ptr %27, align 8
  invoke void @_ZSt7advanceISt17_Rb_tree_iteratorISt4pairIKmN12_GLOBAL__N_16SampleEEEmEvRT_T0_(ptr noundef nonnull align 8 dereferenceable(8) %27, i64 noundef %.0222)
          to label %.preheader unwind label %248

.preheader:                                       ; preds = %244
  br i1 %.not722, label %._crit_edge659, label %.lr.ph658

._crit_edge659:                                   ; preds = %265, %.preheader
  %.3228.lcssa = phi i32 [ %.2227675, %.preheader ], [ %.4229, %265 ]
  %.3217.lcssa = phi float [ %.2216676, %.preheader ], [ %.4218, %265 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %27) #10
  br label %272

248:                                              ; preds = %244
  %249 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %27) #10
  br label %367

.lr.ph658:                                        ; preds = %.preheader, %265
  %.0212657 = phi i64 [ %267, %265 ], [ 0, %.preheader ]
  %.3217656 = phi float [ %.4218, %265 ], [ %.2216676, %.preheader ]
  %.3228655 = phi i32 [ %.4229, %265 ], [ %.2227675, %.preheader ]
  %250 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKmN12_GLOBAL__N_16SampleEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %27) #10
  %251 = getelementptr inbounds i8, ptr %250, i64 8
  %252 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %251, i64 noundef 0) #10
  %253 = load float, ptr %252, align 4, !tbaa !40
  %254 = fpext float %253 to double
  %255 = getelementptr inbounds i8, ptr %250, i64 32
  %256 = load double, ptr %255, align 8, !tbaa !48
  %257 = fadd double %256, 0x3DDB7CDFE0000000
  %258 = fdiv double %254, %257
  %259 = fptrunc double %258 to float
  %260 = fcmp olt float %.3217656, %259
  br i1 %260, label %261, label %265

261:                                              ; preds = %.lr.ph658
  %262 = load i32, ptr %162, align 8, !tbaa !50
  %263 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKmN12_GLOBAL__N_16SampleEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %27) #10
  %264 = load i64, ptr %263, align 8, !tbaa !51
  store i64 %264, ptr %17, align 8, !tbaa !42
  br label %265

265:                                              ; preds = %261, %.lr.ph658
  %.4229 = phi i32 [ %262, %261 ], [ %.3228655, %.lr.ph658 ]
  %.4218 = phi float [ %259, %261 ], [ %.3217656, %.lr.ph658 ]
  %266 = call ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKmN12_GLOBAL__N_16SampleEEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %27, i32 noundef 0) #10
  %267 = add nuw i64 %.0212657, 1
  %exitcond725.not = icmp eq i64 %267, %178
  br i1 %exitcond725.not, label %._crit_edge659, label %.lr.ph658, !llvm.loop !54

268:                                              ; preds = %._crit_edge654
  %269 = load ptr, ptr %198, align 8, !tbaa !21
  %270 = getelementptr inbounds i8, ptr %269, i64 32
  %271 = load ptr, ptr %270, align 8
  invoke void %271(ptr noundef nonnull align 8 dereferenceable(2284) %198)
          to label %272 unwind label %242

272:                                              ; preds = %268, %._crit_edge659
  %.5230 = phi i32 [ %.2227675, %268 ], [ %.3228.lcssa, %._crit_edge659 ]
  %.5219 = phi float [ %.2216676, %268 ], [ %.3217.lcssa, %._crit_edge659 ]
  %273 = phi <2 x float> [ %161, %268 ], [ %246, %._crit_edge659 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %28) #10
  %274 = call ptr @_ZNSt3mapImN12_GLOBAL__N_16SampleESt4lessImESaISt4pairIKmS1_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %163) #10
  store ptr %274, ptr %28, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %29) #10
  %275 = call ptr @_ZNSt3mapImN12_GLOBAL__N_16SampleESt4lessImESaISt4pairIKmS1_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %163) #10
  store ptr %275, ptr %29, align 8
  %276 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKmN12_GLOBAL__N_16SampleEEES7_(ptr noundef nonnull align 8 dereferenceable(8) %28, ptr noundef nonnull align 8 dereferenceable(8) %29) #10
  br i1 %276, label %.lr.ph665, label %._crit_edge666

.lr.ph665:                                        ; preds = %272
  %277 = getelementptr inbounds i8, ptr %162, i64 200
  br label %286

._crit_edge666:                                   ; preds = %357, %272
  %.0200.lcssa = phi i32 [ 0, %272 ], [ %.3203, %357 ]
  %.0196.lcssa = phi i32 [ 0, %272 ], [ %.3199, %357 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %29) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %28) #10
  %278 = add nsw i32 %.0196.lcssa, %.0200.lcssa
  %279 = insertelement <2 x i32> poison, i32 %.0200.lcssa, i64 0
  %280 = insertelement <2 x i32> %279, i32 %278, i64 1
  %281 = sitofp <2 x i32> %280 to <2 x float>
  %282 = fadd <2 x float> %159, %281
  %283 = fadd <2 x float> %160, %281
  %284 = select i1 %.not246, <2 x float> %282, <2 x float> %159
  %285 = select i1 %.not246, <2 x float> %160, <2 x float> %283
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %24) #10
  call void @_ZN6Halide7Runtime6BufferIfLi4EED2Ev(ptr noundef nonnull align 8 dereferenceable(136) %23) #10
  call void @llvm.lifetime.end.p0(i64 136, ptr nonnull %23) #10
  br label %361

286:                                              ; preds = %.lr.ph665, %357
  %.0196663 = phi i32 [ 0, %.lr.ph665 ], [ %.3199, %357 ]
  %.0200662 = phi i32 [ 0, %.lr.ph665 ], [ %.3203, %357 ]
  %287 = call noundef nonnull align 8 dereferenceable(216) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKmN12_GLOBAL__N_16SampleEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %28) #10
  %288 = invoke noundef nonnull align 8 dereferenceable(208) ptr @_ZNSt3mapImN12_GLOBAL__N_16SampleESt4lessImESaISt4pairIKmS1_EEEixERS5_(ptr noundef nonnull align 8 dereferenceable(48) %163, ptr noundef nonnull align 8 dereferenceable(8) %277)
          to label %289 unwind label %294

289:                                              ; preds = %286
  %290 = getelementptr inbounds i8, ptr %287, i64 8
  %291 = getelementptr inbounds i8, ptr %287, i64 32
  %292 = load double, ptr %291, align 8, !tbaa !48
  %293 = fcmp oeq double %292, 0.000000e+00
  br i1 %293, label %357, label %296

294:                                              ; preds = %286
  %295 = landingpad { ptr, i32 }
          cleanup
  br label %360

296:                                              ; preds = %289
  %297 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %290, i64 noundef 0) #10
  %298 = load float, ptr %297, align 4, !tbaa !40
  %299 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %288, i64 noundef 0) #10
  %300 = load float, ptr %299, align 4, !tbaa !40
  %301 = fcmp ult float %298, %300
  br i1 %301, label %302, label %303

302:                                              ; preds = %296
  call void @__assert_fail(ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.6, i32 noundef 495, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #11
  unreachable

303:                                              ; preds = %296
  %304 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %290, i64 noundef 0) #10
  %305 = load float, ptr %304, align 4, !tbaa !40
  %306 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %288, i64 noundef 0) #10
  %307 = load float, ptr %306, align 4, !tbaa !40
  %308 = fdiv float %305, %307
  %309 = fcmp ugt float %308, 0x3FF4CCCCC0000000
  br i1 %309, label %310, label %357

310:                                              ; preds = %303
  %311 = load double, ptr %291, align 8, !tbaa !48
  %312 = getelementptr inbounds i8, ptr %288, i64 24
  %313 = load double, ptr %312, align 8, !tbaa !48
  %314 = fcmp ult double %311, %313
  br i1 %314, label %317, label %315

315:                                              ; preds = %310
  %316 = add nsw i32 %.0200662, 1
  br label %357

317:                                              ; preds = %310
  br i1 %.not246, label %355, label %318

318:                                              ; preds = %317
  %319 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %290, i64 noundef 0) #10
  %320 = load float, ptr %319, align 4, !tbaa !40
  %321 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %288, i64 noundef 0) #10
  %322 = load float, ptr %321, align 4, !tbaa !40
  %323 = fsub float %320, %322
  %324 = fpext float %323 to double
  %325 = load double, ptr %312, align 8, !tbaa !48
  %326 = load double, ptr %291, align 8, !tbaa !48
  %327 = fsub double %325, %326
  %328 = fmul double %327, %324
  %329 = fptrunc double %328 to float
  %330 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %288, i64 noundef 0) #10
  %331 = load float, ptr %330, align 4, !tbaa !40
  %332 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %288, i64 noundef 0) #10
  %333 = load float, ptr %332, align 4, !tbaa !40
  %334 = fmul float %331, %333
  %335 = fdiv float %329, %334
  %336 = load float, ptr %131, align 8, !tbaa !55
  %337 = fcmp ogt float %335, %336
  br i1 %337, label %338, label %355

338:                                              ; preds = %318
  %339 = load i32, ptr %162, align 8, !tbaa !50
  store i32 %339, ptr %18, align 8, !tbaa !57
  store float %335, ptr %131, align 8, !tbaa !55
  %340 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %288, i64 noundef 0) #10
  %341 = load float, ptr %340, align 4, !tbaa !40
  store float %341, ptr %132, align 8, !tbaa !58
  %342 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %290, i64 noundef 0) #10
  %343 = load float, ptr %342, align 4, !tbaa !40
  store float %343, ptr %133, align 4, !tbaa !59
  %344 = load <2 x double>, ptr %312, align 8
  %345 = load double, ptr %291, align 8, !tbaa !48
  %346 = insertelement <2 x double> %344, double %345, i64 1
  %347 = fptrunc <2 x double> %346 to <2 x float>
  store <2 x float> %347, ptr %134, align 8, !tbaa !40
  %348 = getelementptr inbounds i8, ptr %288, i64 32
  %349 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %136, ptr noundef nonnull align 8 dereferenceable(32) %348)
          to label %350 unwind label %353

350:                                              ; preds = %338
  %351 = getelementptr inbounds i8, ptr %287, i64 40
  %352 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %137, ptr noundef nonnull align 8 dereferenceable(32) %351)
          to label %355 unwind label %353

353:                                              ; preds = %350, %338
  %354 = landingpad { ptr, i32 }
          cleanup
  br label %360

355:                                              ; preds = %318, %350, %317
  %356 = add nsw i32 %.0196663, 1
  br label %357

357:                                              ; preds = %303, %355, %315, %289
  %.3203 = phi i32 [ %.0200662, %289 ], [ %.0200662, %303 ], [ %316, %315 ], [ %.0200662, %355 ]
  %.3199 = phi i32 [ %.0196663, %289 ], [ %.0196663, %303 ], [ %.0196663, %315 ], [ %356, %355 ]
  %358 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKmN12_GLOBAL__N_16SampleEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %28) #10
  %359 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKmN12_GLOBAL__N_16SampleEEES7_(ptr noundef nonnull align 8 dereferenceable(8) %28, ptr noundef nonnull align 8 dereferenceable(8) %29) #10
  br i1 %359, label %286, label %._crit_edge666

360:                                              ; preds = %353, %294
  %.pn249 = phi { ptr, i32 } [ %354, %353 ], [ %295, %294 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %29) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %28) #10
  br label %367

361:                                              ; preds = %.lr.ph678, %._crit_edge666
  %.6231 = phi i32 [ %.2227675, %.lr.ph678 ], [ %.5230, %._crit_edge666 ]
  %.6220 = phi float [ %.2216676, %.lr.ph678 ], [ %.5219, %._crit_edge666 ]
  %362 = phi <2 x float> [ %159, %.lr.ph678 ], [ %284, %._crit_edge666 ]
  %363 = phi <2 x float> [ %160, %.lr.ph678 ], [ %285, %._crit_edge666 ]
  %364 = phi <2 x float> [ %161, %.lr.ph678 ], [ %273, %._crit_edge666 ]
  %365 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKiN12_GLOBAL__N_114PipelineSampleEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #10
  %366 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiN12_GLOBAL__N_114PipelineSampleEEES7_(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) %20) #10
  br i1 %366, label %.lr.ph678, label %._crit_edge679

367:                                              ; preds = %241, %242, %248, %360, %230, %199
  %.pn252.pn = phi { ptr, i32 } [ %.pn252, %230 ], [ %200, %199 ], [ %.pn249, %360 ], [ %249, %248 ], [ %.pn247, %241 ], [ %243, %242 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %24) #10
  br label %368

368:                                              ; preds = %367, %193
  %.pn252.pn.pn = phi { ptr, i32 } [ %.pn252.pn, %367 ], [ %194, %193 ]
  call void @_ZN6Halide7Runtime6BufferIfLi4EED2Ev(ptr noundef nonnull align 8 dereferenceable(136) %23) #10
  br label %369

369:                                              ; preds = %368, %191
  %.pn252.pn.pn.pn = phi { ptr, i32 } [ %.pn252.pn.pn, %368 ], [ %192, %191 ]
  call void @llvm.lifetime.end.p0(i64 136, ptr nonnull %23) #10
  br label %370

370:                                              ; preds = %369, %189
  %.pn252.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn252.pn.pn.pn, %369 ], [ %190, %189 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #10
  br label %493

371:                                              ; preds = %.critedge270, %.loopexit
  %372 = landingpad { ptr, i32 }
          cleanup
  br label %493

373:                                              ; preds = %.loopexit
  %374 = extractelement <2 x float> %158, i64 0
  %375 = extractelement <2 x float> %158, i64 1
  %376 = fdiv float %374, %375
  %377 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, float noundef %376)
          to label %378 unwind label %382

378:                                              ; preds = %373
  %379 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %377, ptr noundef nonnull @.str.9)
          to label %.critedge270 unwind label %382

.critedge270:                                     ; preds = %378
  %380 = fmul <2 x float> %158, <float 0x3FECCCCCC0000000, float 0x3FECCCCCC0000000>
  %381 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.10)
          to label %.preheader297 unwind label %371

382:                                              ; preds = %378, %373
  %383 = landingpad { ptr, i32 }
          cleanup
  br label %493

.preheader297:                                    ; preds = %.critedge270
  %384 = extractelement <2 x float> %157, i64 0
  %385 = extractelement <2 x float> %157, i64 1
  %386 = fdiv float %384, %385
  %387 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, float noundef %386)
          to label %388 unwind label %396

388:                                              ; preds = %.preheader297
  %389 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %387, ptr noundef nonnull @.str.9)
          to label %390 unwind label %396

390:                                              ; preds = %388
  %391 = fmul <2 x float> %157, <float 0x3FECCCCCC0000000, float 0x3FECCCCCC0000000>
  %392 = extractelement <2 x float> %156, i64 0
  %393 = extractelement <2 x float> %156, i64 1
  %394 = fdiv float %392, %393
  %395 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, float noundef %394)
          to label %398 unwind label %396

396:                                              ; preds = %398, %390, %388, %.preheader297
  %397 = landingpad { ptr, i32 }
          cleanup
  br label %493

398:                                              ; preds = %390
  %399 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %395, ptr noundef nonnull @.str.9)
          to label %400 unwind label %396

400:                                              ; preds = %398
  %401 = fmul <2 x float> %156, <float 0x3FECCCCCC0000000, float 0x3FECCCCCC0000000>
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %30) #10
  store i32 %.2227.lcssa, ptr %30, align 4, !tbaa !60
  %402 = invoke noundef i64 @_ZNKSt3mapIiN12_GLOBAL__N_114PipelineSampleESt4lessIiESaISt4pairIKiS1_EEE5countERS5_(ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef nonnull align 4 dereferenceable(4) %30)
          to label %403 unwind label %422

403:                                              ; preds = %400
  %.not = icmp eq i64 %402, 0
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %30) #10
  br i1 %.not, label %429, label %404

404:                                              ; preds = %403
  %405 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.11)
          to label %406 unwind label %.loopexit298

406:                                              ; preds = %404
  %407 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %405, float noundef %.2216.lcssa)
          to label %408 unwind label %.loopexit298

408:                                              ; preds = %406
  %409 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %407, ptr noundef nonnull @.str.9)
          to label %410 unwind label %.loopexit298

410:                                              ; preds = %408
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %31) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %32) #10
  store i32 %.2227.lcssa, ptr %32, align 4, !tbaa !60
  %411 = invoke noundef nonnull align 8 dereferenceable(216) ptr @_ZNSt3mapIiN12_GLOBAL__N_114PipelineSampleESt4lessIiESaISt4pairIKiS1_EEEixEOi(ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef nonnull align 4 dereferenceable(4) %32)
          to label %412 unwind label %424

412:                                              ; preds = %410
  %413 = getelementptr inbounds i8, ptr %411, i64 144
  %414 = invoke noundef nonnull align 8 dereferenceable(208) ptr @_ZNSt3mapImN12_GLOBAL__N_16SampleESt4lessImESaISt4pairIKmS1_EEEixERS5_(ptr noundef nonnull align 8 dereferenceable(48) %413, ptr noundef nonnull align 8 dereferenceable(8) %17)
          to label %415 unwind label %424

415:                                              ; preds = %412
  %416 = getelementptr inbounds i8, ptr %414, i64 32
  invoke void @_ZN12_GLOBAL__N_14leafERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %31, ptr noundef nonnull align 8 dereferenceable(32) %416)
          to label %417 unwind label %424

417:                                              ; preds = %415
  %418 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) %409, ptr noundef nonnull align 8 dereferenceable(32) %31)
          to label %419 unwind label %426

419:                                              ; preds = %417
  %420 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %418, ptr noundef nonnull @.str.3)
          to label %421 unwind label %426

421:                                              ; preds = %419
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %31) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %32) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %31) #10
  br label %431

422:                                              ; preds = %400
  %423 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %30) #10
  br label %493

.loopexit298:                                     ; preds = %404, %406, %408, %429, %434, %469, %482
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %493

.loopexit.split-lp:                               ; preds = %488
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %493

424:                                              ; preds = %415, %412, %410
  %425 = landingpad { ptr, i32 }
          cleanup
  br label %428

426:                                              ; preds = %419, %417
  %427 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %31) #10
  br label %428

428:                                              ; preds = %426, %424
  %.pn = phi { ptr, i32 } [ %427, %426 ], [ %425, %424 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %32) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %31) #10
  br label %493

429:                                              ; preds = %403
  %430 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.3)
          to label %431 unwind label %.loopexit298

431:                                              ; preds = %429, %421
  %432 = load float, ptr %131, align 8, !tbaa !55
  %433 = fcmp ogt float %432, 0.000000e+00
  br i1 %433, label %434, label %482

434:                                              ; preds = %431
  %435 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.12)
          to label %436 unwind label %.loopexit298

436:                                              ; preds = %434
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %33) #10
  invoke void @_ZN12_GLOBAL__N_14leafERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %33, ptr noundef nonnull align 8 dereferenceable(32) %136)
          to label %437 unwind label %471

437:                                              ; preds = %436
  %438 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) %435, ptr noundef nonnull align 8 dereferenceable(32) %33)
          to label %439 unwind label %473

439:                                              ; preds = %437
  %440 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %438, ptr noundef nonnull @.str.13)
          to label %441 unwind label %473

441:                                              ; preds = %439
  %442 = load float, ptr %134, align 8, !tbaa !61
  %443 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %440, float noundef %442)
          to label %444 unwind label %473

444:                                              ; preds = %441
  %445 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %443, ptr noundef nonnull @.str.14)
          to label %446 unwind label %473

446:                                              ; preds = %444
  %447 = load float, ptr %132, align 8, !tbaa !58
  %448 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %445, float noundef %447)
          to label %449 unwind label %473

449:                                              ; preds = %446
  %450 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %448, ptr noundef nonnull @.str.3)
          to label %451 unwind label %473

451:                                              ; preds = %449
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %34) #10
  invoke void @_ZN12_GLOBAL__N_14leafERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %34, ptr noundef nonnull align 8 dereferenceable(32) %137)
          to label %452 unwind label %475

452:                                              ; preds = %451
  %453 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) %450, ptr noundef nonnull align 8 dereferenceable(32) %34)
          to label %454 unwind label %477

454:                                              ; preds = %452
  %455 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %453, ptr noundef nonnull @.str.13)
          to label %456 unwind label %477

456:                                              ; preds = %454
  %457 = load float, ptr %135, align 4, !tbaa !62
  %458 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %455, float noundef %457)
          to label %459 unwind label %477

459:                                              ; preds = %456
  %460 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %458, ptr noundef nonnull @.str.14)
          to label %461 unwind label %477

461:                                              ; preds = %459
  %462 = load float, ptr %133, align 4, !tbaa !59
  %463 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %460, float noundef %462)
          to label %464 unwind label %477

464:                                              ; preds = %461
  %465 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %463, ptr noundef nonnull @.str.3)
          to label %466 unwind label %477

466:                                              ; preds = %464
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %34) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %34) #10
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %33) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %33) #10
  %467 = call noundef i64 @_ZNKSt3mapIiN12_GLOBAL__N_114PipelineSampleESt4lessIiESaISt4pairIKiS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %4) #10
  %468 = icmp ugt i64 %467, 50000
  br i1 %468, label %469, label %482

469:                                              ; preds = %466
  %470 = invoke noundef i64 @_ZNSt3mapIiN12_GLOBAL__N_114PipelineSampleESt4lessIiESaISt4pairIKiS1_EEE5eraseERS5_(ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef nonnull align 4 dereferenceable(4) %18)
          to label %482 unwind label %.loopexit298

471:                                              ; preds = %436
  %472 = landingpad { ptr, i32 }
          cleanup
  br label %481

473:                                              ; preds = %449, %446, %444, %441, %439, %437
  %474 = landingpad { ptr, i32 }
          cleanup
  br label %480

475:                                              ; preds = %451
  %476 = landingpad { ptr, i32 }
          cleanup
  br label %479

477:                                              ; preds = %464, %461, %459, %456, %454, %452
  %478 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %34) #10
  br label %479

479:                                              ; preds = %477, %475
  %.pn239 = phi { ptr, i32 } [ %478, %477 ], [ %476, %475 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %34) #10
  br label %480

480:                                              ; preds = %479, %473
  %.pn239.pn = phi { ptr, i32 } [ %.pn239, %479 ], [ %474, %473 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %33) #10
  br label %481

481:                                              ; preds = %480, %471
  %.pn239.pn.pn = phi { ptr, i32 } [ %.pn239.pn, %480 ], [ %472, %471 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %33) #10
  br label %493

482:                                              ; preds = %466, %469, %431
  %483 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorISt10unique_ptrIN6Halide16DefaultCostModelESt14default_deleteIS2_EESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef 0) #10
  %484 = call noundef ptr @_ZNKSt10unique_ptrIN6Halide16DefaultCostModelESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %483) #10
  invoke void @_ZN6Halide16DefaultCostModel12save_weightsEv(ptr noundef nonnull align 8 dereferenceable(2284) %484)
          to label %485 unwind label %.loopexit298

485:                                              ; preds = %482
  %486 = extractelement <2 x float> %380, i64 0
  %487 = fcmp uge float %486, 0x3EE4F8B580000000
  br i1 %487, label %490, label %488

488:                                              ; preds = %485
  %489 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.15)
          to label %496 unwind label %.loopexit.split-lp

490:                                              ; preds = %485
  call void @_ZZ4mainEN9InversionD2Ev(ptr noundef nonnull align 8 dereferenceable(92) %18) #10
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %18) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #10
  %491 = add nuw nsw i32 %.0211717, 1
  %492 = load i32, ptr %3, align 8, !tbaa !41
  %.not243 = icmp slt i32 %491, %492
  br i1 %.not243, label %.lr.ph719, label %.critedge274, !llvm.loop !63

493:                                              ; preds = %.loopexit298, %.loopexit.split-lp, %396, %422, %428, %481, %382, %371, %370
  %.pn252.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn252.pn.pn.pn.pn, %370 ], [ %383, %382 ], [ %372, %371 ], [ %397, %396 ], [ %.pn239.pn.pn, %481 ], [ %.pn, %428 ], [ %423, %422 ], [ %lpad.loopexit, %.loopexit298 ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @_ZZ4mainEN9InversionD2Ev(ptr noundef nonnull align 8 dereferenceable(92) %18) #10
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %18) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #10
  br label %498

.critedge274:                                     ; preds = %490, %140
  %494 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPfSt6vectorIfSaIfEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #10
  %495 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPfSt6vectorIfSaIfEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %16) #10
  br i1 %495, label %140, label %.critedge276

496:                                              ; preds = %488
  call void @_ZZ4mainEN9InversionD2Ev(ptr noundef nonnull align 8 dereferenceable(92) %18) #10
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %18) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #10
  br label %497

.critedge276:                                     ; preds = %.critedge274, %125
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #10
  br label %497

497:                                              ; preds = %496, %.critedge276
  call void @_ZNSt3mapIiN12_GLOBAL__N_114PipelineSampleESt4lessIiESaISt4pairIKiS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %8) #10
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %8) #10
  call void @llvm.lifetime.end.p0(i64 5000, ptr nonnull %7) #10
  call void @_ZNSt6vectorISt10unique_ptrIN6Halide16DefaultCostModelESt14default_deleteIS2_EESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #10
  call void @_ZNSt3mapIiN12_GLOBAL__N_114PipelineSampleESt4lessIiESaISt4pairIKiS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %4) #10
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %4) #10
  call void @_ZN12_GLOBAL__N_15FlagsD2Ev(ptr noundef nonnull align 8 dereferenceable(168) %3) #10
  call void @llvm.lifetime.end.p0(i64 168, ptr nonnull %3) #10
  ret i32 0

498:                                              ; preds = %493, %138, %118, %107
  %.pn261.pn = phi { ptr, i32 } [ %.pn261, %107 ], [ %.pn259, %118 ], [ %.pn252.pn.pn.pn.pn.pn, %493 ], [ %139, %138 ]
  call void @_ZNSt3mapIiN12_GLOBAL__N_114PipelineSampleESt4lessIiESaISt4pairIKiS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %8) #10
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %8) #10
  br label %499

499:                                              ; preds = %498, %88
  %.pn261.pn.pn = phi { ptr, i32 } [ %.pn261.pn, %498 ], [ %89, %88 ]
  call void @llvm.lifetime.end.p0(i64 5000, ptr nonnull %7) #10
  br label %500

500:                                              ; preds = %499, %86, %54
  %.pn265.pn = phi { ptr, i32 } [ %.pn265, %54 ], [ %.pn261.pn.pn, %499 ], [ %87, %86 ]
  call void @_ZNSt6vectorISt10unique_ptrIN6Halide16DefaultCostModelESt14default_deleteIS2_EESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #10
  call void @_ZNSt3mapIiN12_GLOBAL__N_114PipelineSampleESt4lessIiESaISt4pairIKiS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %4) #10
  br label %501

501:                                              ; preds = %500, %40
  %.pn265.pn.pn = phi { ptr, i32 } [ %.pn265.pn, %500 ], [ %41, %40 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %4) #10
  call void @_ZN12_GLOBAL__N_15FlagsD2Ev(ptr noundef nonnull align 8 dereferenceable(168) %3) #10
  call void @llvm.lifetime.end.p0(i64 168, ptr nonnull %3) #10
  resume { ptr, i32 } %.pn265.pn.pn
}

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN12_GLOBAL__N_15FlagsC2EiPPc(ptr noundef nonnull align 8 dereferenceable(168), i32 noundef, ptr noundef) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN12_GLOBAL__N_112load_samplesERKNS_5FlagsE(ptr dead_on_unwind noalias writable sret(%"class.std::map") align 8, ptr noundef nonnull align 8 dereferenceable(168)) local_unnamed_addr #2

declare i32 @__gxx_personality_v0(...)

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

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

declare void @_ZN6Halide23make_default_cost_modelERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_b(ptr dead_on_unwind writable sret(%"class.std::unique_ptr") align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32), i1 noundef zeroext) local_unnamed_addr #4

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNSt8ios_base4setfESt13_Ios_FmtflagsS0_(ptr noundef nonnull align 8 dereferenceable(216), i32 noundef, i32 noundef) local_unnamed_addr #2 align 2

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

; Function Attrs: nounwind
declare i64 @time(ptr noundef) local_unnamed_addr #5

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #6

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i64 @_ZNKSt3mapIiN12_GLOBAL__N_114PipelineSampleESt4lessIiESaISt4pairIKiS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #3 align 2

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZNSt4pairIKiN12_GLOBAL__N_114PipelineSampleEEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(224), ptr noundef nonnull align 8 dereferenceable(224)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i64 @_ZNKSt3mapImN12_GLOBAL__N_16SampleESt4lessImESaISt4pairIKmS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare hidden { ptr, i8 } @_ZNSt3mapIiN12_GLOBAL__N_114PipelineSampleESt4lessIiESaISt4pairIKiS1_EEE6insertIRS6_EENSt9enable_ifIXsr16is_constructibleIS6_T_EE5valueES4_ISt17_Rb_tree_iteratorIS6_EbEE4typeEOSC_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(224)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden void @_ZNSt4pairIKiN12_GLOBAL__N_114PipelineSampleEED2Ev(ptr noundef nonnull align 8 dereferenceable(224)) unnamed_addr #7 align 2

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

; Function Attrs: mustprogress uwtable
declare hidden noundef i64 @_ZNSt3mapIiN12_GLOBAL__N_114PipelineSampleESt4lessIiESaISt4pairIKiS1_EEE5eraseERS5_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2 align 2

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden void @_ZZ4mainEN9InversionC2Ev(ptr noundef nonnull align 8 dereferenceable(92)) unnamed_addr #7 align 2

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

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

declare void @_ZN6Halide16DefaultCostModel21set_pipeline_featuresERKNS_7Runtime6BufferIfLi4EEEi(ptr noundef nonnull align 8 dereferenceable(2284), ptr noundef nonnull align 8 dereferenceable(136), i32 noundef) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minImERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #7

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @_ZSt7advanceISt17_Rb_tree_iteratorISt4pairIKmN12_GLOBAL__N_16SampleEEEmEvRT_T0_(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) local_unnamed_addr #6

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

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

declare void @_ZN6Halide16DefaultCostModel7enqueueEiPNS_7Runtime6BufferIfLi4EEEPd(ptr noundef nonnull align 8 dereferenceable(2284), i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN6Halide7Runtime6BufferIfLi4EEclIJEvEERfiDpT_(ptr noundef nonnull align 8 dereferenceable(136), i32 noundef) local_unnamed_addr #8 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6Halide7Runtime6BufferIfLi4EE9copy_fromIfLi4EEEvRKNS1_IT_XT0_EEE(ptr noundef nonnull align 8 dereferenceable(136), ptr noundef nonnull align 8 dereferenceable(136)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKmN12_GLOBAL__N_16SampleEEEppEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #3 align 2

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

declare noundef float @_ZN6Halide16DefaultCostModel8backpropERKNS_7Runtime6BufferIKfLi4EEEf(ptr noundef nonnull align 8 dereferenceable(2284), ptr noundef nonnull align 8 dereferenceable(136), float noundef) local_unnamed_addr #4

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZSt5isnanf(float noundef) local_unnamed_addr #3

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #9

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden noundef nonnull align 8 dereferenceable(208) ptr @_ZNSt3mapImN12_GLOBAL__N_16SampleESt4lessImESaISt4pairIKmS1_EEEixERS5_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 align 2

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

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8), float noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare hidden noundef i64 @_ZNKSt3mapIiN12_GLOBAL__N_114PipelineSampleESt4lessIiESaISt4pairIKiS1_EEE5countERS5_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #6

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN12_GLOBAL__N_14leafERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare hidden noundef nonnull align 8 dereferenceable(216) ptr @_ZNSt3mapIiN12_GLOBAL__N_114PipelineSampleESt4lessIiESaISt4pairIKiS1_EEEixEOi(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) local_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

declare void @_ZN6Halide16DefaultCostModel12save_weightsEv(ptr noundef nonnull align 8 dereferenceable(2284)) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden void @_ZZ4mainEN9InversionD2Ev(ptr noundef nonnull align 8 dereferenceable(92)) unnamed_addr #7 align 2

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden void @_ZN12_GLOBAL__N_15FlagsD2Ev(ptr noundef nonnull align 8 dereferenceable(168)) unnamed_addr #7 align 2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !18, i64 100}
!6 = !{!"_ZTSN12_GLOBAL__N_15FlagsE", !7, i64 0, !10, i64 8, !15, i64 32, !15, i64 64, !7, i64 96, !18, i64 100, !15, i64 104, !15, i64 136}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSSt6vectorIfSaIfEE", !11, i64 0}
!11 = !{!"_ZTSSt12_Vector_baseIfSaIfEE", !12, i64 0}
!12 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE12_Vector_implE", !13, i64 0}
!13 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE17_Vector_impl_dataE", !14, i64 0, !14, i64 8, !14, i64 16}
!14 = !{!"any pointer", !8, i64 0}
!15 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !16, i64 0, !17, i64 8, !8, i64 16}
!16 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !14, i64 0}
!17 = !{!"long", !8, i64 0}
!18 = !{!"bool", !8, i64 0}
!19 = !{i8 0, i8 2}
!20 = !{}
!21 = !{!22, !22, i64 0}
!22 = !{!"vtable pointer", !9, i64 0}
!23 = !{!24, !17, i64 216}
!24 = !{!"_ZTSSt4pairIKiN12_GLOBAL__N_114PipelineSampleEE", !7, i64 0, !25, i64 8}
!25 = !{!"_ZTSN12_GLOBAL__N_114PipelineSampleE", !7, i64 0, !7, i64 4, !26, i64 8, !31, i64 144, !17, i64 192, !39, i64 200, !17, i64 208}
!26 = !{!"_ZTSN6Halide7Runtime6BufferIfLi4EEE", !27, i64 0, !8, i64 56, !14, i64 120, !14, i64 128}
!27 = !{!"_ZTS15halide_buffer_t", !17, i64 0, !14, i64 8, !14, i64 16, !17, i64 24, !28, i64 32, !7, i64 36, !14, i64 40, !14, i64 48}
!28 = !{!"_ZTS13halide_type_t", !29, i64 0, !8, i64 1, !30, i64 2}
!29 = !{!"_ZTS18halide_type_code_t", !8, i64 0}
!30 = !{!"short", !8, i64 0}
!31 = !{!"_ZTSSt3mapImN12_GLOBAL__N_16SampleESt4lessImESaISt4pairIKmS1_EEE", !32, i64 0}
!32 = !{!"_ZTSSt8_Rb_treeImSt4pairIKmN12_GLOBAL__N_16SampleEESt10_Select1stIS4_ESt4lessImESaIS4_EE", !33, i64 0}
!33 = !{!"_ZTSNSt8_Rb_treeImSt4pairIKmN12_GLOBAL__N_16SampleEESt10_Select1stIS4_ESt4lessImESaIS4_EE13_Rb_tree_implIS8_Lb1EEE", !34, i64 0, !36, i64 8}
!34 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessImEE", !35, i64 0}
!35 = !{!"_ZTSSt4lessImE"}
!36 = !{!"_ZTSSt15_Rb_tree_header", !37, i64 0, !17, i64 32}
!37 = !{!"_ZTSSt18_Rb_tree_node_base", !38, i64 0, !14, i64 8, !14, i64 16, !14, i64 24}
!38 = !{!"_ZTSSt14_Rb_tree_color", !8, i64 0}
!39 = !{!"float", !8, i64 0}
!40 = !{!39, !39, i64 0}
!41 = !{!6, !7, i64 0}
!42 = !{!17, !17, i64 0}
!43 = distinct !{!43, !44}
!44 = !{!"llvm.loop.mustprogress"}
!45 = !{!6, !7, i64 96}
!46 = !{!24, !7, i64 12}
!47 = distinct !{!47, !44}
!48 = !{!49, !49, i64 0}
!49 = !{!"double", !8, i64 0}
!50 = !{!24, !7, i64 0}
!51 = !{!52, !17, i64 0}
!52 = !{!"_ZTSSt4pairIKmN12_GLOBAL__N_16SampleEE", !17, i64 0, !53, i64 8}
!53 = !{!"_ZTSN12_GLOBAL__N_16SampleE", !10, i64 0, !8, i64 24, !15, i64 32, !7, i64 64, !26, i64 72}
!54 = distinct !{!54, !44}
!55 = !{!56, !39, i64 88}
!56 = !{!"_ZTSZ4mainE9Inversion", !7, i64 0, !15, i64 8, !15, i64 40, !39, i64 72, !39, i64 76, !39, i64 80, !39, i64 84, !39, i64 88}
!57 = !{!56, !7, i64 0}
!58 = !{!56, !39, i64 80}
!59 = !{!56, !39, i64 84}
!60 = !{!7, !7, i64 0}
!61 = !{!56, !39, i64 72}
!62 = !{!56, !39, i64 76}
!63 = distinct !{!63, !44}


; Effective O3 passes: ADCEPass,AggressiveInstCombinePass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,VectorCombinePass