; LLVM IR from kazunetakahashi/atcoder :: 201411_201509/0320_indeednow_quala (D2)

; 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::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::set<stage>, std::allocator<std::set<stage>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::set<stage>, std::allocator<std::set<stage>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::set<stage>, std::allocator<std::set<stage>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::set<stage>, std::allocator<std::set<stage>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::basic_istream" = type { ptr, i64, %"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 }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%struct.stage = type { i32, %"class.std::vector.0" }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<stage, stage, std::_Identity<stage>, std::less<stage>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<stage, stage, std::_Identity<stage>, std::less<stage>>::_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 }
%"struct.std::pair" = type <{ %"struct.std::_Rb_tree_const_iterator", i8, [7 x i8] }>
%"struct.std::_Rb_tree_const_iterator" = type { ptr }

@H = external dso_local global i32, align 4
@W = external dso_local global i32, align 4
@start = external dso_local global %"class.std::vector", align 8
@goal = external dso_local global %"class.std::vector", align 8
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@_ZL2dx = external hidden constant [4 x i32], align 16
@_ZL2dy = external hidden constant [4 x i32], align 16

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z5alphai(i32 noundef) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z4betai(i32 noundef) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z5zahyoii(i32 noundef, i32 noundef) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z7isvalidii(i32 noundef, i32 noundef) #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z4copy5stage(ptr dead_on_unwind noalias writable sret(%struct.stage) align 8, ptr noundef) #1

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN5stageD2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #4 align 2

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #5 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca %struct.stage, align 8
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca %"class.std::set", align 8
  %7 = alloca %"struct.std::pair", align 8
  %8 = alloca %struct.stage, align 8
  %9 = alloca i32, align 4
  %10 = alloca %"class.std::set", align 8
  %11 = alloca %"struct.std::pair", align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca %"class.std::set", align 8
  %15 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %16 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca %struct.stage, align 8
  %25 = alloca %struct.stage, align 8
  %26 = alloca %"struct.std::pair", align 8
  %27 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %28 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %29 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  store i32 0, ptr %1, align 4
  %30 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @H)
  %31 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %30, ptr noundef nonnull align 4 dereferenceable(4) @W)
  call void @llvm.lifetime.start.p0(i64 32, ptr %2) #7
  call void @_ZN5stageC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2)
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #7
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %32

32:                                               ; preds = %60, %0
  %33 = load i32, ptr %3, align 4, !tbaa !5
  %34 = load i32, ptr @H, align 4, !tbaa !5
  %35 = load i32, ptr @W, align 4, !tbaa !5
  %36 = mul nsw i32 %34, %35
  %37 = icmp slt i32 %33, %36
  br i1 %37, label %39, label %38

38:                                               ; preds = %32
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  br label %63

39:                                               ; preds = %32
  %40 = getelementptr inbounds %struct.stage, ptr %2, i32 0, i32 1
  %41 = load i32, ptr %3, align 4, !tbaa !5
  %42 = sext i32 %41 to i64
  %43 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %40, i64 noundef %42) #7
  %44 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %43)
          to label %45 unwind label %55

45:                                               ; preds = %39
  %46 = getelementptr inbounds %struct.stage, ptr %2, i32 0, i32 1
  %47 = load i32, ptr %3, align 4, !tbaa !5
  %48 = sext i32 %47 to i64
  %49 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %46, i64 noundef %48) #7
  %50 = load i32, ptr %49, align 4, !tbaa !5
  %51 = icmp eq i32 %50, 0
  br i1 %51, label %52, label %59

52:                                               ; preds = %45
  %53 = load i32, ptr %3, align 4, !tbaa !5
  %54 = getelementptr inbounds %struct.stage, ptr %2, i32 0, i32 0
  store i32 %53, ptr %54, align 8, !tbaa !9
  br label %59

55:                                               ; preds = %39
  %56 = landingpad { ptr, i32 }
          cleanup
  %57 = extractvalue { ptr, i32 } %56, 0
  store ptr %57, ptr %4, align 8
  %58 = extractvalue { ptr, i32 } %56, 1
  store i32 %58, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  br label %279

59:                                               ; preds = %52, %45
  br label %60

60:                                               ; preds = %59
  %61 = load i32, ptr %3, align 4, !tbaa !5
  %62 = add nsw i32 %61, 1
  store i32 %62, ptr %3, align 4, !tbaa !5
  br label %32, !llvm.loop !16

63:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 48, ptr %6) #7
  call void @_ZNSt3setI5stageSt4lessIS0_ESaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %6) #7
  %64 = invoke { ptr, i8 } @_ZNSt3setI5stageSt4lessIS0_ESaIS0_EE6insertERKS0_(ptr noundef nonnull align 8 dereferenceable(48) %6, ptr noundef nonnull align 8 dereferenceable(32) %2)
          to label %65 unwind label %79

65:                                               ; preds = %63
  %66 = getelementptr inbounds { ptr, i8 }, ptr %7, i32 0, i32 0
  %67 = extractvalue { ptr, i8 } %64, 0
  store ptr %67, ptr %66, align 8
  %68 = getelementptr inbounds { ptr, i8 }, ptr %7, i32 0, i32 1
  %69 = extractvalue { ptr, i8 } %64, 1
  store i8 %69, ptr %68, align 8
  invoke void @_ZNSt6vectorISt3setI5stageSt4lessIS1_ESaIS1_EESaIS5_EE9push_backERKS5_(ptr noundef nonnull align 8 dereferenceable(24) @start, ptr noundef nonnull align 8 dereferenceable(48) %6)
          to label %70 unwind label %79

70:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 32, ptr %8) #7
  invoke void @_ZN5stageC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8)
          to label %71 unwind label %83

71:                                               ; preds = %70
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  store i32 0, ptr %9, align 4, !tbaa !5
  br label %72

72:                                               ; preds = %108, %71
  %73 = load i32, ptr %9, align 4, !tbaa !5
  %74 = load i32, ptr @H, align 4, !tbaa !5
  %75 = load i32, ptr @W, align 4, !tbaa !5
  %76 = mul nsw i32 %74, %75
  %77 = icmp slt i32 %73, %76
  br i1 %77, label %87, label %78

78:                                               ; preds = %72
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  br label %111

79:                                               ; preds = %65, %63
  %80 = landingpad { ptr, i32 }
          cleanup
  %81 = extractvalue { ptr, i32 } %80, 0
  store ptr %81, ptr %4, align 8
  %82 = extractvalue { ptr, i32 } %80, 1
  store i32 %82, ptr %5, align 4
  br label %278

83:                                               ; preds = %70
  %84 = landingpad { ptr, i32 }
          cleanup
  %85 = extractvalue { ptr, i32 } %84, 0
  store ptr %85, ptr %4, align 8
  %86 = extractvalue { ptr, i32 } %84, 1
  store i32 %86, ptr %5, align 4
  br label %277

87:                                               ; preds = %72
  %88 = load i32, ptr %9, align 4, !tbaa !5
  %89 = add nsw i32 %88, 1
  %90 = load i32, ptr @H, align 4, !tbaa !5
  %91 = load i32, ptr @W, align 4, !tbaa !5
  %92 = mul nsw i32 %90, %91
  %93 = srem i32 %89, %92
  %94 = getelementptr inbounds %struct.stage, ptr %8, i32 0, i32 1
  %95 = load i32, ptr %9, align 4, !tbaa !5
  %96 = sext i32 %95 to i64
  %97 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %94, i64 noundef %96) #7
  store i32 %93, ptr %97, align 4, !tbaa !5
  %98 = getelementptr inbounds %struct.stage, ptr %8, i32 0, i32 1
  %99 = load i32, ptr %9, align 4, !tbaa !5
  %100 = sext i32 %99 to i64
  %101 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %98, i64 noundef %100) #7
  %102 = load i32, ptr %101, align 4, !tbaa !5
  %103 = icmp eq i32 %102, 0
  br i1 %103, label %104, label %107

104:                                              ; preds = %87
  %105 = load i32, ptr %9, align 4, !tbaa !5
  %106 = getelementptr inbounds %struct.stage, ptr %8, i32 0, i32 0
  store i32 %105, ptr %106, align 8, !tbaa !9
  br label %107

107:                                              ; preds = %104, %87
  br label %108

108:                                              ; preds = %107
  %109 = load i32, ptr %9, align 4, !tbaa !5
  %110 = add nsw i32 %109, 1
  store i32 %110, ptr %9, align 4, !tbaa !5
  br label %72, !llvm.loop !18

111:                                              ; preds = %78
  call void @llvm.lifetime.start.p0(i64 48, ptr %10) #7
  call void @_ZNSt3setI5stageSt4lessIS0_ESaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %10) #7
  %112 = invoke { ptr, i8 } @_ZNSt3setI5stageSt4lessIS0_ESaIS0_EE6insertERKS0_(ptr noundef nonnull align 8 dereferenceable(48) %10, ptr noundef nonnull align 8 dereferenceable(32) %8)
          to label %113 unwind label %126

113:                                              ; preds = %111
  %114 = getelementptr inbounds { ptr, i8 }, ptr %11, i32 0, i32 0
  %115 = extractvalue { ptr, i8 } %112, 0
  store ptr %115, ptr %114, align 8
  %116 = getelementptr inbounds { ptr, i8 }, ptr %11, i32 0, i32 1
  %117 = extractvalue { ptr, i8 } %112, 1
  store i8 %117, ptr %116, align 8
  invoke void @_ZNSt6vectorISt3setI5stageSt4lessIS1_ESaIS1_EESaIS5_EE9push_backERKS5_(ptr noundef nonnull align 8 dereferenceable(24) @goal, ptr noundef nonnull align 8 dereferenceable(48) %10)
          to label %118 unwind label %126

118:                                              ; preds = %113
  %119 = invoke noundef zeroext i1 @_ZNK5stageeqERKS_(ptr noundef nonnull align 8 dereferenceable(32) %2, ptr noundef nonnull align 8 dereferenceable(32) %8)
          to label %120 unwind label %126

120:                                              ; preds = %118
  br i1 %119, label %121, label %130

121:                                              ; preds = %120
  %122 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef 0)
          to label %123 unwind label %126

123:                                              ; preds = %121
  %124 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %122, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %125 unwind label %126

125:                                              ; preds = %123
  store i32 0, ptr %1, align 4
  store i32 1, ptr %12, align 4
  br label %272

126:                                              ; preds = %123, %121, %118, %113, %111
  %127 = landingpad { ptr, i32 }
          cleanup
  %128 = extractvalue { ptr, i32 } %127, 0
  store ptr %128, ptr %4, align 8
  %129 = extractvalue { ptr, i32 } %127, 1
  store i32 %129, ptr %5, align 4
  br label %276

130:                                              ; preds = %120
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  store i32 1, ptr %13, align 4, !tbaa !5
  br label %131

131:                                              ; preds = %265, %130
  %132 = load i32, ptr %13, align 4, !tbaa !5
  %133 = icmp sle i32 %132, 24
  br i1 %133, label %135, label %134

134:                                              ; preds = %131
  store i32 8, ptr %12, align 4
  br label %269

135:                                              ; preds = %131
  call void @llvm.lifetime.start.p0(i64 48, ptr %14) #7
  call void @_ZNSt3setI5stageSt4lessIS0_ESaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %14) #7
  invoke void @_ZNSt6vectorISt3setI5stageSt4lessIS1_ESaIS1_EESaIS5_EE9push_backERKS5_(ptr noundef nonnull align 8 dereferenceable(24) @start, ptr noundef nonnull align 8 dereferenceable(48) %14)
          to label %136 unwind label %152

136:                                              ; preds = %135
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  %137 = load i32, ptr %13, align 4, !tbaa !5
  %138 = sub nsw i32 %137, 1
  %139 = sext i32 %138 to i64
  %140 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setI5stageSt4lessIS1_ESaIS1_EESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @start, i64 noundef %139) #7
  %141 = call ptr @_ZNKSt3setI5stageSt4lessIS0_ESaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %140) #7
  %142 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %15, i32 0, i32 0
  store ptr %141, ptr %142, align 8
  br label %143

143:                                              ; preds = %235, %136
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  %144 = load i32, ptr %13, align 4, !tbaa !5
  %145 = sub nsw i32 %144, 1
  %146 = sext i32 %145 to i64
  %147 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setI5stageSt4lessIS1_ESaIS1_EESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @start, i64 noundef %146) #7
  %148 = call ptr @_ZNKSt3setI5stageSt4lessIS0_ESaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %147) #7
  %149 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %16, i32 0, i32 0
  store ptr %148, ptr %149, align 8
  %150 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorI5stageES3_(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  br i1 %150, label %156, label %151

151:                                              ; preds = %143
  store i32 11, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  br label %238

152:                                              ; preds = %254, %251, %135
  %153 = landingpad { ptr, i32 }
          cleanup
  %154 = extractvalue { ptr, i32 } %153, 0
  store ptr %154, ptr %4, align 8
  %155 = extractvalue { ptr, i32 } %153, 1
  store i32 %155, ptr %5, align 4
  br label %268

156:                                              ; preds = %143
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  %157 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt23_Rb_tree_const_iteratorI5stageEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #7
  %158 = getelementptr inbounds %struct.stage, ptr %157, i32 0, i32 0
  %159 = load i32, ptr %158, align 8, !tbaa !9
  store i32 %159, ptr %17, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  %160 = load i32, ptr %17, align 4, !tbaa !5
  %161 = call noundef i32 @_Z5alphai(i32 noundef %160)
  store i32 %161, ptr %18, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  %162 = load i32, ptr %17, align 4, !tbaa !5
  %163 = call noundef i32 @_Z4betai(i32 noundef %162)
  store i32 %163, ptr %19, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  store i32 0, ptr %20, align 4, !tbaa !5
  br label %164

164:                                              ; preds = %231, %156
  %165 = load i32, ptr %20, align 4, !tbaa !5
  %166 = icmp slt i32 %165, 4
  br i1 %166, label %168, label %167

167:                                              ; preds = %164
  store i32 14, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  br label %234

168:                                              ; preds = %164
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #7
  %169 = load i32, ptr %18, align 4, !tbaa !5
  %170 = load i32, ptr %20, align 4, !tbaa !5
  %171 = sext i32 %170 to i64
  %172 = getelementptr inbounds [4 x i32], ptr @_ZL2dx, i64 0, i64 %171
  %173 = load i32, ptr %172, align 4, !tbaa !5
  %174 = add nsw i32 %169, %173
  store i32 %174, ptr %21, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #7
  %175 = load i32, ptr %19, align 4, !tbaa !5
  %176 = load i32, ptr %20, align 4, !tbaa !5
  %177 = sext i32 %176 to i64
  %178 = getelementptr inbounds [4 x i32], ptr @_ZL2dy, i64 0, i64 %177
  %179 = load i32, ptr %178, align 4, !tbaa !5
  %180 = add nsw i32 %175, %179
  store i32 %180, ptr %22, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #7
  %181 = load i32, ptr %21, align 4, !tbaa !5
  %182 = load i32, ptr %22, align 4, !tbaa !5
  %183 = call noundef i32 @_Z5zahyoii(i32 noundef %181, i32 noundef %182)
  store i32 %183, ptr %23, align 4, !tbaa !5
  %184 = load i32, ptr %21, align 4, !tbaa !5
  %185 = load i32, ptr %22, align 4, !tbaa !5
  %186 = call noundef zeroext i1 @_Z7isvalidii(i32 noundef %184, i32 noundef %185)
  br i1 %186, label %187, label %230

187:                                              ; preds = %168
  call void @llvm.lifetime.start.p0(i64 32, ptr %24) #7
  %188 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt23_Rb_tree_const_iteratorI5stageEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #7
  invoke void @_ZN5stageC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %25, ptr noundef nonnull align 8 dereferenceable(32) %188)
          to label %189 unwind label %216

189:                                              ; preds = %187
  invoke void @_Z4copy5stage(ptr dead_on_unwind writable sret(%struct.stage) align 8 %24, ptr noundef %25)
          to label %190 unwind label %220

190:                                              ; preds = %189
  call void @_ZN5stageD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #7
  %191 = getelementptr inbounds %struct.stage, ptr %24, i32 0, i32 1
  %192 = load i32, ptr %17, align 4, !tbaa !5
  %193 = sext i32 %192 to i64
  %194 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %191, i64 noundef %193) #7
  %195 = getelementptr inbounds %struct.stage, ptr %24, i32 0, i32 1
  %196 = load i32, ptr %23, align 4, !tbaa !5
  %197 = sext i32 %196 to i64
  %198 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %195, i64 noundef %197) #7
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %194, ptr noundef nonnull align 4 dereferenceable(4) %198) #7
  %199 = load i32, ptr %23, align 4, !tbaa !5
  %200 = getelementptr inbounds %struct.stage, ptr %24, i32 0, i32 0
  store i32 %199, ptr %200, align 8, !tbaa !9
  %201 = invoke noundef i32 @_ZNK5stage4distEv(ptr noundef nonnull align 8 dereferenceable(32) %24)
          to label %202 unwind label %224

202:                                              ; preds = %190
  %203 = load i32, ptr %13, align 4, !tbaa !5
  %204 = add nsw i32 %201, %203
  %205 = icmp sle i32 %204, 24
  br i1 %205, label %206, label %228

206:                                              ; preds = %202
  %207 = load i32, ptr %13, align 4, !tbaa !5
  %208 = sext i32 %207 to i64
  %209 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setI5stageSt4lessIS1_ESaIS1_EESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @start, i64 noundef %208) #7
  %210 = invoke { ptr, i8 } @_ZNSt3setI5stageSt4lessIS0_ESaIS0_EE6insertERKS0_(ptr noundef nonnull align 8 dereferenceable(48) %209, ptr noundef nonnull align 8 dereferenceable(32) %24)
          to label %211 unwind label %224

211:                                              ; preds = %206
  %212 = getelementptr inbounds { ptr, i8 }, ptr %26, i32 0, i32 0
  %213 = extractvalue { ptr, i8 } %210, 0
  store ptr %213, ptr %212, align 8
  %214 = getelementptr inbounds { ptr, i8 }, ptr %26, i32 0, i32 1
  %215 = extractvalue { ptr, i8 } %210, 1
  store i8 %215, ptr %214, align 8
  br label %228

216:                                              ; preds = %187
  %217 = landingpad { ptr, i32 }
          cleanup
  %218 = extractvalue { ptr, i32 } %217, 0
  store ptr %218, ptr %4, align 8
  %219 = extractvalue { ptr, i32 } %217, 1
  store i32 %219, ptr %5, align 4
  br label %229

220:                                              ; preds = %189
  %221 = landingpad { ptr, i32 }
          cleanup
  %222 = extractvalue { ptr, i32 } %221, 0
  store ptr %222, ptr %4, align 8
  %223 = extractvalue { ptr, i32 } %221, 1
  store i32 %223, ptr %5, align 4
  call void @_ZN5stageD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #7
  br label %229

224:                                              ; preds = %206, %190
  %225 = landingpad { ptr, i32 }
          cleanup
  %226 = extractvalue { ptr, i32 } %225, 0
  store ptr %226, ptr %4, align 8
  %227 = extractvalue { ptr, i32 } %225, 1
  store i32 %227, ptr %5, align 4
  call void @_ZN5stageD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #7
  br label %229

228:                                              ; preds = %211, %202
  call void @_ZN5stageD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %24) #7
  br label %230

229:                                              ; preds = %224, %220, %216
  call void @llvm.lifetime.end.p0(i64 32, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  br label %268

230:                                              ; preds = %228, %168
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  br label %231

231:                                              ; preds = %230
  %232 = load i32, ptr %20, align 4, !tbaa !5
  %233 = add nsw i32 %232, 1
  store i32 %233, ptr %20, align 4, !tbaa !5
  br label %164, !llvm.loop !19

234:                                              ; preds = %167
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  br label %235

235:                                              ; preds = %234
  %236 = call ptr @_ZNSt23_Rb_tree_const_iteratorI5stageEppEi(ptr noundef nonnull align 8 dereferenceable(8) %15, i32 noundef 0) #7
  %237 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %27, i32 0, i32 0
  store ptr %236, ptr %237, align 8
  br label %143, !llvm.loop !20

238:                                              ; preds = %151
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #7
  %239 = load i32, ptr %13, align 4, !tbaa !5
  %240 = sext i32 %239 to i64
  %241 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setI5stageSt4lessIS1_ESaIS1_EESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @start, i64 noundef %240) #7
  %242 = invoke ptr @_ZNSt3setI5stageSt4lessIS0_ESaIS0_EE4findERKS0_(ptr noundef nonnull align 8 dereferenceable(48) %241, ptr noundef nonnull align 8 dereferenceable(32) %8)
          to label %243 unwind label %257

243:                                              ; preds = %238
  %244 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %28, i32 0, i32 0
  store ptr %242, ptr %244, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #7
  %245 = load i32, ptr %13, align 4, !tbaa !5
  %246 = sext i32 %245 to i64
  %247 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setI5stageSt4lessIS1_ESaIS1_EESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @start, i64 noundef %246) #7
  %248 = call ptr @_ZNKSt3setI5stageSt4lessIS0_ESaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %247) #7
  %249 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %29, i32 0, i32 0
  store ptr %248, ptr %249, align 8
  %250 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorI5stageES3_(ptr noundef nonnull align 8 dereferenceable(8) %28, ptr noundef nonnull align 8 dereferenceable(8) %29) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #7
  br i1 %250, label %251, label %261

251:                                              ; preds = %243
  %252 = load i32, ptr %13, align 4, !tbaa !5
  %253 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %252)
          to label %254 unwind label %152

254:                                              ; preds = %251
  %255 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %253, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %256 unwind label %152

256:                                              ; preds = %254
  store i32 0, ptr %1, align 4
  store i32 1, ptr %12, align 4
  br label %262

257:                                              ; preds = %238
  %258 = landingpad { ptr, i32 }
          cleanup
  %259 = extractvalue { ptr, i32 } %258, 0
  store ptr %259, ptr %4, align 8
  %260 = extractvalue { ptr, i32 } %258, 1
  store i32 %260, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #7
  br label %268

261:                                              ; preds = %243
  store i32 0, ptr %12, align 4
  br label %262

262:                                              ; preds = %261, %256
  call void @_ZNSt3setI5stageSt4lessIS0_ESaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %14) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr %14) #7
  %263 = load i32, ptr %12, align 4
  switch i32 %263, label %269 [
    i32 0, label %264
  ]

264:                                              ; preds = %262
  br label %265

265:                                              ; preds = %264
  %266 = load i32, ptr %13, align 4, !tbaa !5
  %267 = add nsw i32 %266, 1
  store i32 %267, ptr %13, align 4, !tbaa !5
  br label %131, !llvm.loop !21

268:                                              ; preds = %257, %229, %152
  call void @_ZNSt3setI5stageSt4lessIS0_ESaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %14) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %276

269:                                              ; preds = %262, %134
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  %270 = load i32, ptr %12, align 4
  switch i32 %270, label %272 [
    i32 8, label %271
  ]

271:                                              ; preds = %269
  store i32 0, ptr %12, align 4
  br label %272

272:                                              ; preds = %271, %269, %125
  call void @_ZNSt3setI5stageSt4lessIS0_ESaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %10) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr %10) #7
  call void @_ZN5stageD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %8) #7
  call void @_ZNSt3setI5stageSt4lessIS0_ESaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %6) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr %6) #7
  call void @_ZN5stageD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %2) #7
  %273 = load i32, ptr %12, align 4
  switch i32 %273, label %285 [
    i32 0, label %274
    i32 1, label %274
  ]

274:                                              ; preds = %272, %272
  %275 = load i32, ptr %1, align 4
  ret i32 %275

276:                                              ; preds = %268, %126
  call void @_ZNSt3setI5stageSt4lessIS0_ESaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %10) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr %10) #7
  call void @_ZN5stageD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #7
  br label %277

277:                                              ; preds = %276, %83
  call void @llvm.lifetime.end.p0(i64 32, ptr %8) #7
  br label %278

278:                                              ; preds = %277, %79
  call void @_ZNSt3setI5stageSt4lessIS0_ESaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %6) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr %6) #7
  br label %279

279:                                              ; preds = %278, %55
  call void @_ZN5stageD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %2) #7
  br label %280

280:                                              ; preds = %279
  %281 = load ptr, ptr %4, align 8
  %282 = load i32, ptr %5, align 4
  %283 = insertvalue { ptr, i32 } poison, ptr %281, 0
  %284 = insertvalue { ptr, i32 } %283, i32 %282, 1
  resume { ptr, i32 } %284

285:                                              ; preds = %272
  unreachable
}

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #6

declare i32 @__gxx_personality_v0(...)

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

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

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

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #6

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #2

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK5stage4distEv(ptr noundef nonnull align 8 dereferenceable(32)) #0 align 2

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

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

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

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

!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, !6, i64 0}
!10 = !{!"_ZTS5stage", !6, i64 0, !11, i64 8}
!11 = !{!"_ZTSSt6vectorIiSaIiEE", !12, i64 0}
!12 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !13, i64 0}
!13 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !15, i64 0, !15, i64 8, !15, i64 16}
!15 = !{!"any pointer", !7, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}
!19 = distinct !{!19, !17}
!20 = distinct !{!20, !17}
!21 = distinct !{!21, !17}


; 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::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::set<stage>, std::allocator<std::set<stage>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::set<stage>, std::allocator<std::set<stage>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::set<stage>, std::allocator<std::set<stage>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::set<stage>, std::allocator<std::set<stage>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::basic_istream" = type { ptr, i64, %"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 }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%struct.stage = type { i32, %"class.std::vector.0" }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<stage, stage, std::_Identity<stage>, std::less<stage>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<stage, stage, std::_Identity<stage>, std::less<stage>>::_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 }
%"struct.std::_Rb_tree_const_iterator" = type { ptr }

@H = external dso_local global i32, align 4
@W = external dso_local global i32, align 4
@start = external dso_local global %"class.std::vector", align 8
@goal = external dso_local global %"class.std::vector", align 8
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@_ZL2dx = external hidden local_unnamed_addr constant [4 x i32], align 16
@_ZL2dy = external hidden local_unnamed_addr constant [4 x i32], align 16

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z5alphai(i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z4betai(i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z5zahyoii(i32 noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z7isvalidii(i32 noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z4copy5stage(ptr dead_on_unwind noalias writable sret(%struct.stage) align 8, ptr noundef) local_unnamed_addr #1

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN5stageD2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #4 align 2

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #5 personality ptr @__gxx_personality_v0 {
  %1 = alloca %struct.stage, align 8
  %2 = alloca %"class.std::set", align 8
  %3 = alloca %struct.stage, align 8
  %4 = alloca %"class.std::set", align 8
  %5 = alloca %"class.std::set", align 8
  %6 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %7 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %8 = alloca %struct.stage, align 8
  %9 = alloca %struct.stage, align 8
  %10 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %11 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %12 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @H)
  %13 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 4 dereferenceable(4) @W)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %1) #7
  call void @_ZN5stageC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1)
  %14 = load i32, ptr @H, align 4, !tbaa !5
  %15 = load i32, ptr @W, align 4, !tbaa !5
  %16 = mul nsw i32 %15, %14
  %17 = icmp sgt i32 %16, 0
  br i1 %17, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %0
  %18 = getelementptr inbounds i8, ptr %1, i64 8
  br label %20

._crit_edge:                                      ; preds = %31, %0
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %2) #7
  call void @_ZNSt3setI5stageSt4lessIS0_ESaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %2) #7
  %19 = invoke { ptr, i8 } @_ZNSt3setI5stageSt4lessIS0_ESaIS0_EE6insertERKS0_(ptr noundef nonnull align 8 dereferenceable(48) %2, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %37 unwind label %45

20:                                               ; preds = %.lr.ph, %31
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %31 ]
  %21 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %indvars.iv) #7
  %22 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %21)
          to label %23 unwind label %29

23:                                               ; preds = %20
  %24 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %indvars.iv) #7
  %25 = load i32, ptr %24, align 4, !tbaa !5
  %26 = icmp eq i32 %25, 0
  br i1 %26, label %27, label %31

27:                                               ; preds = %23
  %28 = trunc nuw nsw i64 %indvars.iv to i32
  store i32 %28, ptr %1, align 8, !tbaa !9
  br label %31

29:                                               ; preds = %20
  %30 = landingpad { ptr, i32 }
          cleanup
  br label %202

31:                                               ; preds = %23, %27
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %32 = load i32, ptr @H, align 4, !tbaa !5
  %33 = load i32, ptr @W, align 4, !tbaa !5
  %34 = mul nsw i32 %33, %32
  %35 = sext i32 %34 to i64
  %36 = icmp slt i64 %indvars.iv.next, %35
  br i1 %36, label %20, label %._crit_edge, !llvm.loop !16

37:                                               ; preds = %._crit_edge
  invoke void @_ZNSt6vectorISt3setI5stageSt4lessIS1_ESaIS1_EESaIS5_EE9push_backERKS5_(ptr noundef nonnull align 8 dereferenceable(24) @start, ptr noundef nonnull align 8 dereferenceable(48) %2)
          to label %38 unwind label %45

38:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #7
  invoke void @_ZN5stageC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3)
          to label %.preheader71 unwind label %47

.preheader71:                                     ; preds = %38
  %39 = load i32, ptr @H, align 4, !tbaa !5
  %40 = load i32, ptr @W, align 4, !tbaa !5
  %41 = mul nsw i32 %40, %39
  %42 = icmp sgt i32 %41, 0
  br i1 %42, label %.lr.ph80, label %._crit_edge81

.lr.ph80:                                         ; preds = %.preheader71
  %43 = getelementptr inbounds i8, ptr %3, i64 8
  br label %49

._crit_edge81:                                    ; preds = %59, %.preheader71
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %4) #7
  call void @_ZNSt3setI5stageSt4lessIS0_ESaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %4) #7
  %44 = invoke { ptr, i8 } @_ZNSt3setI5stageSt4lessIS0_ESaIS0_EE6insertERKS0_(ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef nonnull align 8 dereferenceable(32) %3)
          to label %65 unwind label %79

45:                                               ; preds = %37, %._crit_edge
  %46 = landingpad { ptr, i32 }
          cleanup
  br label %201

47:                                               ; preds = %38
  %48 = landingpad { ptr, i32 }
          cleanup
  br label %200

49:                                               ; preds = %.lr.ph80, %59
  %indvars.iv94 = phi i64 [ 0, %.lr.ph80 ], [ %indvars.iv.next95, %59 ]
  %50 = phi i32 [ %41, %.lr.ph80 ], [ %62, %59 ]
  %indvars.iv.next95 = add nuw nsw i64 %indvars.iv94, 1
  %51 = trunc nuw nsw i64 %indvars.iv.next95 to i32
  %52 = srem i32 %51, %50
  %53 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %43, i64 noundef %indvars.iv94) #7
  store i32 %52, ptr %53, align 4, !tbaa !5
  %54 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %43, i64 noundef %indvars.iv94) #7
  %55 = load i32, ptr %54, align 4, !tbaa !5
  %56 = icmp eq i32 %55, 0
  br i1 %56, label %57, label %59

57:                                               ; preds = %49
  %58 = trunc nuw nsw i64 %indvars.iv94 to i32
  store i32 %58, ptr %3, align 8, !tbaa !9
  br label %59

59:                                               ; preds = %49, %57
  %60 = load i32, ptr @H, align 4, !tbaa !5
  %61 = load i32, ptr @W, align 4, !tbaa !5
  %62 = mul nsw i32 %61, %60
  %63 = sext i32 %62 to i64
  %64 = icmp slt i64 %indvars.iv.next95, %63
  br i1 %64, label %49, label %._crit_edge81, !llvm.loop !18

65:                                               ; preds = %._crit_edge81
  invoke void @_ZNSt6vectorISt3setI5stageSt4lessIS1_ESaIS1_EESaIS5_EE9push_backERKS5_(ptr noundef nonnull align 8 dereferenceable(24) @goal, ptr noundef nonnull align 8 dereferenceable(48) %4)
          to label %66 unwind label %79

66:                                               ; preds = %65
  %67 = call noundef zeroext i1 @_ZNK5stageeqERKS_(ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull align 8 dereferenceable(32) %3)
  br i1 %67, label %75, label %.preheader

.preheader:                                       ; preds = %66
  %68 = getelementptr inbounds i8, ptr %8, i64 8
  %.pre = load i32, ptr @_ZL2dx, align 16
  %.pre104 = load i32, ptr @_ZL2dy, align 16
  %69 = load i32, ptr getelementptr inbounds (i8, ptr @_ZL2dx, i64 4), align 4
  %70 = load i32, ptr getelementptr inbounds (i8, ptr @_ZL2dy, i64 4), align 4
  %71 = load i32, ptr getelementptr inbounds (i8, ptr @_ZL2dx, i64 8), align 8
  %72 = load i32, ptr getelementptr inbounds (i8, ptr @_ZL2dy, i64 8), align 8
  %73 = load i32, ptr getelementptr inbounds (i8, ptr @_ZL2dx, i64 12), align 4
  %74 = load i32, ptr getelementptr inbounds (i8, ptr @_ZL2dy, i64 12), align 4
  br label %81

75:                                               ; preds = %66
  %76 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef 0)
          to label %77 unwind label %79

77:                                               ; preds = %75
  %78 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %76, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %.loopexit unwind label %79

79:                                               ; preds = %77, %75, %65, %._crit_edge81
  %80 = landingpad { ptr, i32 }
          cleanup
  br label %199

81:                                               ; preds = %.preheader, %197
  %indvars.iv100 = phi i64 [ 1, %.preheader ], [ %indvars.iv.next101, %197 ]
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %5) #7
  call void @_ZNSt3setI5stageSt4lessIS0_ESaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %5) #7
  invoke void @_ZNSt6vectorISt3setI5stageSt4lessIS1_ESaIS1_EESaIS5_EE9push_backERKS5_(ptr noundef nonnull align 8 dereferenceable(24) @start, ptr noundef nonnull align 8 dereferenceable(48) %5)
          to label %82 unwind label %.loopexit70

82:                                               ; preds = %81
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  %83 = add nsw i64 %indvars.iv100, -1
  %84 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setI5stageSt4lessIS1_ESaIS1_EESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @start, i64 noundef %83) #7
  %85 = call ptr @_ZNKSt3setI5stageSt4lessIS0_ESaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %84) #7
  store ptr %85, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  %86 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setI5stageSt4lessIS1_ESaIS1_EESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @start, i64 noundef %83) #7
  %87 = call ptr @_ZNKSt3setI5stageSt4lessIS0_ESaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %86) #7
  store ptr %87, ptr %7, align 8
  %88 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorI5stageES3_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  br i1 %88, label %.lr.ph84, label %._crit_edge85

.lr.ph84:                                         ; preds = %82
  %89 = sub nuw nsw i64 25, %indvars.iv100
  br label %92

._crit_edge85:                                    ; preds = %180, %82
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #7
  %90 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setI5stageSt4lessIS1_ESaIS1_EESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @start, i64 noundef %indvars.iv100) #7
  %91 = invoke ptr @_ZNSt3setI5stageSt4lessIS0_ESaIS0_EE4findERKS0_(ptr noundef nonnull align 8 dereferenceable(48) %90, ptr noundef nonnull align 8 dereferenceable(32) %3)
          to label %185 unwind label %194

.loopexit70:                                      ; preds = %81
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %198

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

92:                                               ; preds = %.lr.ph84, %180
  %93 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt23_Rb_tree_const_iteratorI5stageEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  %94 = load i32, ptr %93, align 8, !tbaa !9
  %95 = call noundef i32 @_Z5alphai(i32 noundef %94)
  %96 = call noundef i32 @_Z4betai(i32 noundef %94)
  %97 = sext i32 %94 to i64
  %98 = add nsw i32 %.pre, %95
  %99 = add nsw i32 %.pre104, %96
  %100 = call noundef i32 @_Z5zahyoii(i32 noundef %98, i32 noundef %99)
  %101 = call noundef zeroext i1 @_Z7isvalidii(i32 noundef %98, i32 noundef %99)
  br i1 %101, label %102, label %123

102:                                              ; preds = %92
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #7
  %103 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt23_Rb_tree_const_iteratorI5stageEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  invoke void @_ZN5stageC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef nonnull align 8 dereferenceable(32) %103)
          to label %104 unwind label %115

104:                                              ; preds = %102
  invoke void @_Z4copy5stage(ptr dead_on_unwind nonnull writable sret(%struct.stage) align 8 %8, ptr noundef nonnull %9)
          to label %105 unwind label %117

105:                                              ; preds = %104
  call void @_ZN5stageD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #7
  %106 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %68, i64 noundef %97) #7
  %107 = sext i32 %100 to i64
  %108 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %68, i64 noundef %107) #7
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %106, ptr noundef nonnull align 4 dereferenceable(4) %108) #7
  store i32 %100, ptr %8, align 8, !tbaa !9
  %109 = call noundef i32 @_ZNK5stage4distEv(ptr noundef nonnull align 8 dereferenceable(32) %8)
  %110 = sext i32 %109 to i64
  %111 = icmp sgt i64 %89, %110
  br i1 %111, label %112, label %121

112:                                              ; preds = %105
  %113 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setI5stageSt4lessIS1_ESaIS1_EESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @start, i64 noundef %indvars.iv100) #7
  %114 = invoke { ptr, i8 } @_ZNSt3setI5stageSt4lessIS0_ESaIS0_EE6insertERKS0_(ptr noundef nonnull align 8 dereferenceable(48) %113, ptr noundef nonnull align 8 dereferenceable(32) %8)
          to label %121 unwind label %119

115:                                              ; preds = %166, %147, %128, %102
  %116 = landingpad { ptr, i32 }
          cleanup
  br label %122

117:                                              ; preds = %168, %149, %130, %104
  %118 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN5stageD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #7
  br label %122

119:                                              ; preds = %176, %157, %138, %112
  %120 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN5stageD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #7
  br label %122

121:                                              ; preds = %112, %105
  call void @_ZN5stageD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #7
  br label %123

122:                                              ; preds = %119, %117, %115
  %.pn = phi { ptr, i32 } [ %120, %119 ], [ %118, %117 ], [ %116, %115 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  br label %198

123:                                              ; preds = %121, %92
  %124 = add nsw i32 %69, %95
  %125 = add nsw i32 %70, %96
  %126 = call noundef i32 @_Z5zahyoii(i32 noundef %124, i32 noundef %125)
  %127 = call noundef zeroext i1 @_Z7isvalidii(i32 noundef %124, i32 noundef %125)
  br i1 %127, label %128, label %142

128:                                              ; preds = %123
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #7
  %129 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt23_Rb_tree_const_iteratorI5stageEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  invoke void @_ZN5stageC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef nonnull align 8 dereferenceable(32) %129)
          to label %130 unwind label %115

130:                                              ; preds = %128
  invoke void @_Z4copy5stage(ptr dead_on_unwind nonnull writable sret(%struct.stage) align 8 %8, ptr noundef nonnull %9)
          to label %131 unwind label %117

131:                                              ; preds = %130
  call void @_ZN5stageD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #7
  %132 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %68, i64 noundef %97) #7
  %133 = sext i32 %126 to i64
  %134 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %68, i64 noundef %133) #7
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %132, ptr noundef nonnull align 4 dereferenceable(4) %134) #7
  store i32 %126, ptr %8, align 8, !tbaa !9
  %135 = call noundef i32 @_ZNK5stage4distEv(ptr noundef nonnull align 8 dereferenceable(32) %8)
  %136 = sext i32 %135 to i64
  %137 = icmp sgt i64 %89, %136
  br i1 %137, label %138, label %141

138:                                              ; preds = %131
  %139 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setI5stageSt4lessIS1_ESaIS1_EESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @start, i64 noundef %indvars.iv100) #7
  %140 = invoke { ptr, i8 } @_ZNSt3setI5stageSt4lessIS0_ESaIS0_EE6insertERKS0_(ptr noundef nonnull align 8 dereferenceable(48) %139, ptr noundef nonnull align 8 dereferenceable(32) %8)
          to label %141 unwind label %119

141:                                              ; preds = %138, %131
  call void @_ZN5stageD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #7
  br label %142

142:                                              ; preds = %141, %123
  %143 = add nsw i32 %71, %95
  %144 = add nsw i32 %72, %96
  %145 = call noundef i32 @_Z5zahyoii(i32 noundef %143, i32 noundef %144)
  %146 = call noundef zeroext i1 @_Z7isvalidii(i32 noundef %143, i32 noundef %144)
  br i1 %146, label %147, label %161

147:                                              ; preds = %142
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #7
  %148 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt23_Rb_tree_const_iteratorI5stageEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  invoke void @_ZN5stageC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef nonnull align 8 dereferenceable(32) %148)
          to label %149 unwind label %115

149:                                              ; preds = %147
  invoke void @_Z4copy5stage(ptr dead_on_unwind nonnull writable sret(%struct.stage) align 8 %8, ptr noundef nonnull %9)
          to label %150 unwind label %117

150:                                              ; preds = %149
  call void @_ZN5stageD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #7
  %151 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %68, i64 noundef %97) #7
  %152 = sext i32 %145 to i64
  %153 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %68, i64 noundef %152) #7
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %151, ptr noundef nonnull align 4 dereferenceable(4) %153) #7
  store i32 %145, ptr %8, align 8, !tbaa !9
  %154 = call noundef i32 @_ZNK5stage4distEv(ptr noundef nonnull align 8 dereferenceable(32) %8)
  %155 = sext i32 %154 to i64
  %156 = icmp sgt i64 %89, %155
  br i1 %156, label %157, label %160

157:                                              ; preds = %150
  %158 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setI5stageSt4lessIS1_ESaIS1_EESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @start, i64 noundef %indvars.iv100) #7
  %159 = invoke { ptr, i8 } @_ZNSt3setI5stageSt4lessIS0_ESaIS0_EE6insertERKS0_(ptr noundef nonnull align 8 dereferenceable(48) %158, ptr noundef nonnull align 8 dereferenceable(32) %8)
          to label %160 unwind label %119

160:                                              ; preds = %157, %150
  call void @_ZN5stageD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #7
  br label %161

161:                                              ; preds = %160, %142
  %162 = add nsw i32 %73, %95
  %163 = add nsw i32 %74, %96
  %164 = call noundef i32 @_Z5zahyoii(i32 noundef %162, i32 noundef %163)
  %165 = call noundef zeroext i1 @_Z7isvalidii(i32 noundef %162, i32 noundef %163)
  br i1 %165, label %166, label %180

166:                                              ; preds = %161
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #7
  %167 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt23_Rb_tree_const_iteratorI5stageEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  invoke void @_ZN5stageC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef nonnull align 8 dereferenceable(32) %167)
          to label %168 unwind label %115

168:                                              ; preds = %166
  invoke void @_Z4copy5stage(ptr dead_on_unwind nonnull writable sret(%struct.stage) align 8 %8, ptr noundef nonnull %9)
          to label %169 unwind label %117

169:                                              ; preds = %168
  call void @_ZN5stageD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #7
  %170 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %68, i64 noundef %97) #7
  %171 = sext i32 %164 to i64
  %172 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %68, i64 noundef %171) #7
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %170, ptr noundef nonnull align 4 dereferenceable(4) %172) #7
  store i32 %164, ptr %8, align 8, !tbaa !9
  %173 = call noundef i32 @_ZNK5stage4distEv(ptr noundef nonnull align 8 dereferenceable(32) %8)
  %174 = sext i32 %173 to i64
  %175 = icmp sgt i64 %89, %174
  br i1 %175, label %176, label %179

176:                                              ; preds = %169
  %177 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setI5stageSt4lessIS1_ESaIS1_EESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @start, i64 noundef %indvars.iv100) #7
  %178 = invoke { ptr, i8 } @_ZNSt3setI5stageSt4lessIS0_ESaIS0_EE6insertERKS0_(ptr noundef nonnull align 8 dereferenceable(48) %177, ptr noundef nonnull align 8 dereferenceable(32) %8)
          to label %179 unwind label %119

179:                                              ; preds = %176, %169
  call void @_ZN5stageD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #7
  br label %180

180:                                              ; preds = %179, %161
  %181 = call ptr @_ZNSt23_Rb_tree_const_iteratorI5stageEppEi(ptr noundef nonnull align 8 dereferenceable(8) %6, i32 noundef 0) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  %182 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setI5stageSt4lessIS1_ESaIS1_EESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @start, i64 noundef %83) #7
  %183 = call ptr @_ZNKSt3setI5stageSt4lessIS0_ESaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %182) #7
  store ptr %183, ptr %7, align 8
  %184 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorI5stageES3_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  br i1 %184, label %92, label %._crit_edge85, !llvm.loop !19

185:                                              ; preds = %._crit_edge85
  store ptr %91, ptr %10, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #7
  %186 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setI5stageSt4lessIS1_ESaIS1_EESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @start, i64 noundef %indvars.iv100) #7
  %187 = call ptr @_ZNKSt3setI5stageSt4lessIS0_ESaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %186) #7
  store ptr %187, ptr %11, align 8
  %188 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorI5stageES3_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #7
  br i1 %188, label %189, label %197

189:                                              ; preds = %185
  %190 = trunc nuw nsw i64 %indvars.iv100 to i32
  %191 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %190)
          to label %192 unwind label %.loopexit.split-lp

192:                                              ; preds = %189
  %193 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %191, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %196 unwind label %.loopexit.split-lp

194:                                              ; preds = %._crit_edge85
  %195 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #7
  br label %198

196:                                              ; preds = %192
  call void @_ZNSt3setI5stageSt4lessIS0_ESaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %5) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %5) #7
  br label %.loopexit

197:                                              ; preds = %185
  call void @_ZNSt3setI5stageSt4lessIS0_ESaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %5) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %5) #7
  %indvars.iv.next101 = add nuw nsw i64 %indvars.iv100, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next101, 25
  br i1 %exitcond.not, label %.loopexit, label %81, !llvm.loop !20

198:                                              ; preds = %.loopexit70, %.loopexit.split-lp, %194, %122
  %.pn.pn = phi { ptr, i32 } [ %.pn, %122 ], [ %195, %194 ], [ %lpad.loopexit, %.loopexit70 ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @_ZNSt3setI5stageSt4lessIS0_ESaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %5) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %5) #7
  br label %199

.loopexit:                                        ; preds = %197, %196, %77
  call void @_ZNSt3setI5stageSt4lessIS0_ESaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %4) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %4) #7
  call void @_ZN5stageD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #7
  call void @_ZNSt3setI5stageSt4lessIS0_ESaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %2) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %2) #7
  call void @_ZN5stageD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %1) #7
  ret i32 0

199:                                              ; preds = %198, %79
  %.pn64 = phi { ptr, i32 } [ %80, %79 ], [ %.pn.pn, %198 ]
  call void @_ZNSt3setI5stageSt4lessIS0_ESaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %4) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %4) #7
  call void @_ZN5stageD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #7
  br label %200

200:                                              ; preds = %199, %47
  %.pn64.pn = phi { ptr, i32 } [ %.pn64, %199 ], [ %48, %47 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #7
  br label %201

201:                                              ; preds = %200, %45
  %.pn64.pn.pn = phi { ptr, i32 } [ %.pn64.pn, %200 ], [ %46, %45 ]
  call void @_ZNSt3setI5stageSt4lessIS0_ESaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %2) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %2) #7
  br label %202

202:                                              ; preds = %201, %29
  %.pn68 = phi { ptr, i32 } [ %30, %29 ], [ %.pn64.pn.pn, %201 ]
  call void @_ZN5stageD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %1) #7
  resume { ptr, i32 } %.pn68
}

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #6

declare i32 @__gxx_personality_v0(...)

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

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

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

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #6

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #2

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK5stage4distEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #0 align 2

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

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

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

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

!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, !6, i64 0}
!10 = !{!"_ZTS5stage", !6, i64 0, !11, i64 8}
!11 = !{!"_ZTSSt6vectorIiSaIiEE", !12, i64 0}
!12 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !13, i64 0}
!13 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !15, i64 0, !15, i64 8, !15, i64 16}
!15 = !{!"any pointer", !7, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}
!19 = distinct !{!19, !17}
!20 = distinct !{!20, !17}


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