; LLVM IR from ShahjalalShohag/code-library :: Miscellaneous/Matroid Intersection Color Graphic Matroid.ll (Z7augmentv)

; 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<GroundSetElement, std::allocator<GroundSetElement>>::_Vector_impl" }
%"struct.std::_Vector_base<GroundSetElement, std::allocator<GroundSetElement>>::_Vector_impl" = type { %"struct.std::_Vector_base<GroundSetElement, std::allocator<GroundSetElement>>::_Vector_impl_data" }
%"struct.std::_Vector_base<GroundSetElement, std::allocator<GroundSetElement>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"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 }
%struct.GraphicOracle = type { i32, [4 x i8], %"struct.GraphicOracle::GraphBasis", [106 x %"struct.GraphicOracle::GraphBasis"] }
%"struct.GraphicOracle::GraphBasis" = type <{ %"class.std::vector.0", %"class.std::vector.0", %"class.std::vector.0", i32, [4 x i8] }>
%struct.ColorfulOracle = type { i32, %"class.std::vector.5" }
%"class.std::vector.5" = type { %"struct.std::_Bvector_base" }
%"struct.std::_Bvector_base" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" = type { %"struct.std::_Bit_iterator", %"struct.std::_Bit_iterator", ptr }
%"struct.std::_Bit_iterator" = type { %"struct.std::_Bit_iterator_base.base", [4 x i8] }
%"struct.std::_Bit_iterator_base.base" = type <{ ptr, i32 }>
%"class.std::allocator.2" = type { i8 }
%"class.std::queue" = type { %"class.std::deque" }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl" }
%"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl" = type { %"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl_data" }
%"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator", %"struct.std::_Deque_iterator" }
%"struct.std::_Deque_iterator" = type { ptr, ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%struct.GroundSetElement = type { i32, %"struct.std::pair", i8, i32 }
%"struct.std::pair" = type { i32, i32 }

@elements = external dso_local global %"class.std::vector", align 8
@independent_set = external dso_local global %"class.std::vector.0", align 8
@graphic_oracle = external dso_local global %struct.GraphicOracle, align 8
@colorful_oracle = external dso_local global %struct.ColorfulOracle, align 8

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z7augmentv() #2 personality ptr @__gxx_personality_v0 {
  %1 = alloca i1, align 1
  %2 = alloca %struct.ColorfulOracle, align 8
  %3 = alloca %struct.GraphicOracle, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca %"class.std::vector.0", align 8
  %11 = alloca %"class.std::allocator.2", align 1
  %12 = alloca i32, align 4
  %13 = alloca %"class.std::queue", align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca ptr, align 8
  %19 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %20 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 48, ptr %2) #5
  call void @_ZN14ColorfulOracleC2ERKS_(ptr noundef nonnull align 8 dereferenceable(48) %2, ptr noundef nonnull align 8 dereferenceable(48) @colorful_oracle)
  call void @llvm.lifetime.start.p0(i64 8568, ptr %3) #5
  invoke void @_ZN13GraphicOracleC2ERKS_(ptr noundef nonnull align 8 dereferenceable(8568) %3, ptr noundef nonnull align 8 dereferenceable(8568) @graphic_oracle)
          to label %23 unwind label %37

23:                                               ; preds = %0
  invoke void @_ZN14ColorfulOracle7prepareEv(ptr noundef nonnull align 8 dereferenceable(48) %2)
          to label %24 unwind label %41

24:                                               ; preds = %23
  invoke void @_ZN13GraphicOracle7prepareEv(ptr noundef nonnull align 8 dereferenceable(8568) %3)
          to label %25 unwind label %41

25:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  store i32 -1, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 -2, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 -3, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  %26 = call noundef i64 @_ZNKSt6vectorI16GroundSetElementSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @elements) #5
  %27 = trunc i64 %26 to i32
  store i32 %27, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %10) #5
  %28 = load i32, ptr %9, align 4, !tbaa !5
  %29 = sext i32 %28 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #5
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #5
  invoke void @_ZNSt6vectorIiSaIiEEC2EmRKiRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %29, ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 1 dereferenceable(1) %11)
          to label %30 unwind label %45

30:                                               ; preds = %25
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  store i32 -3, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 80, ptr %13) #5
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEEC2IS2_vEEv(ptr noundef nonnull align 8 dereferenceable(80) %13)
          to label %31 unwind label %49

31:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %32

32:                                               ; preds = %67, %31
  %33 = load i32, ptr %14, align 4, !tbaa !5
  %34 = load i32, ptr %9, align 4, !tbaa !5
  %35 = icmp slt i32 %33, %34
  br i1 %35, label %53, label %36

36:                                               ; preds = %32
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  br label %70

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

41:                                               ; preds = %24, %23
  %42 = landingpad { ptr, i32 }
          cleanup
  %43 = extractvalue { ptr, i32 } %42, 0
  store ptr %43, ptr %4, align 8
  %44 = extractvalue { ptr, i32 } %42, 1
  store i32 %44, ptr %5, align 4
  br label %235

45:                                               ; preds = %25
  %46 = landingpad { ptr, i32 }
          cleanup
  %47 = extractvalue { ptr, i32 } %46, 0
  store ptr %47, ptr %4, align 8
  %48 = extractvalue { ptr, i32 } %46, 1
  store i32 %48, ptr %5, align 4
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #5
  br label %234

49:                                               ; preds = %30
  %50 = landingpad { ptr, i32 }
          cleanup
  %51 = extractvalue { ptr, i32 } %50, 0
  store ptr %51, ptr %4, align 8
  %52 = extractvalue { ptr, i32 } %50, 1
  store i32 %52, ptr %5, align 4
  br label %233

53:                                               ; preds = %32
  %54 = load i32, ptr %14, align 4, !tbaa !5
  %55 = invoke noundef zeroext i1 @_ZN14ColorfulOracle10can_insertEi(ptr noundef nonnull align 8 dereferenceable(48) %2, i32 noundef %54)
          to label %56 unwind label %62

56:                                               ; preds = %53
  br i1 %55, label %57, label %66

57:                                               ; preds = %56
  %58 = load i32, ptr %14, align 4, !tbaa !5
  %59 = sext i32 %58 to i64
  %60 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %59) #5
  store i32 -1, ptr %60, align 4, !tbaa !5
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) %13, ptr noundef nonnull align 4 dereferenceable(4) %14)
          to label %61 unwind label %62

61:                                               ; preds = %57
  br label %66

62:                                               ; preds = %57, %53
  %63 = landingpad { ptr, i32 }
          cleanup
  %64 = extractvalue { ptr, i32 } %63, 0
  store ptr %64, ptr %4, align 8
  %65 = extractvalue { ptr, i32 } %63, 1
  store i32 %65, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  br label %232

66:                                               ; preds = %61, %56
  br label %67

67:                                               ; preds = %66
  %68 = load i32, ptr %14, align 4, !tbaa !5
  %69 = add nsw i32 %68, 1
  store i32 %69, ptr %14, align 4, !tbaa !5
  br label %32, !llvm.loop !9

70:                                               ; preds = %36
  br label %71

71:                                               ; preds = %175, %70
  %72 = invoke noundef i64 @_ZNKSt5queueIiSt5dequeIiSaIiEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(80) %13)
          to label %73 unwind label %92

73:                                               ; preds = %71
  %74 = icmp ne i64 %72, 0
  br i1 %74, label %75, label %177

75:                                               ; preds = %73
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  %76 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5queueIiSt5dequeIiSaIiEEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %13)
          to label %77 unwind label %96

77:                                               ; preds = %75
  %78 = load i32, ptr %76, align 4, !tbaa !5
  store i32 %78, ptr %15, align 4, !tbaa !5
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %13)
          to label %79 unwind label %96

79:                                               ; preds = %77
  %80 = load i32, ptr %15, align 4, !tbaa !5
  %81 = sext i32 %80 to i64
  %82 = call noundef nonnull align 4 dereferenceable(20) ptr @_ZNSt6vectorI16GroundSetElementSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @elements, i64 noundef %81) #5
  %83 = getelementptr inbounds %struct.GroundSetElement, ptr %82, i32 0, i32 2
  %84 = load i8, ptr %83, align 4, !tbaa !11, !range !15, !noundef !16
  %85 = trunc i8 %84 to i1
  br i1 %85, label %86, label %127

86:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  store i32 0, ptr %16, align 4, !tbaa !5
  br label %87

87:                                               ; preds = %123, %86
  %88 = load i32, ptr %16, align 4, !tbaa !5
  %89 = load i32, ptr %9, align 4, !tbaa !5
  %90 = icmp slt i32 %88, %89
  br i1 %90, label %100, label %91

91:                                               ; preds = %87
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  br label %126

92:                                               ; preds = %71
  %93 = landingpad { ptr, i32 }
          cleanup
  %94 = extractvalue { ptr, i32 } %93, 0
  store ptr %94, ptr %4, align 8
  %95 = extractvalue { ptr, i32 } %93, 1
  store i32 %95, ptr %5, align 4
  br label %232

96:                                               ; preds = %127, %77, %75
  %97 = landingpad { ptr, i32 }
          cleanup
  %98 = extractvalue { ptr, i32 } %97, 0
  store ptr %98, ptr %4, align 8
  %99 = extractvalue { ptr, i32 } %97, 1
  store i32 %99, ptr %5, align 4
  br label %176

100:                                              ; preds = %87
  %101 = load i32, ptr %16, align 4, !tbaa !5
  %102 = sext i32 %101 to i64
  %103 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %102) #5
  %104 = load i32, ptr %103, align 4, !tbaa !5
  %105 = icmp ne i32 %104, -2
  br i1 %105, label %106, label %107

106:                                              ; preds = %100
  br label %123

107:                                              ; preds = %100
  %108 = load i32, ptr %16, align 4, !tbaa !5
  %109 = load i32, ptr %15, align 4, !tbaa !5
  %110 = invoke noundef zeroext i1 @_ZN14ColorfulOracle12can_exchangeEii(ptr noundef nonnull align 8 dereferenceable(48) %2, i32 noundef %108, i32 noundef %109)
          to label %111 unwind label %113

111:                                              ; preds = %107
  br i1 %110, label %117, label %112

112:                                              ; preds = %111
  br label %123

113:                                              ; preds = %117, %107
  %114 = landingpad { ptr, i32 }
          cleanup
  %115 = extractvalue { ptr, i32 } %114, 0
  store ptr %115, ptr %4, align 8
  %116 = extractvalue { ptr, i32 } %114, 1
  store i32 %116, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  br label %176

117:                                              ; preds = %111
  %118 = load i32, ptr %15, align 4, !tbaa !5
  %119 = load i32, ptr %16, align 4, !tbaa !5
  %120 = sext i32 %119 to i64
  %121 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %120) #5
  store i32 %118, ptr %121, align 4, !tbaa !5
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) %13, ptr noundef nonnull align 4 dereferenceable(4) %16)
          to label %122 unwind label %113

122:                                              ; preds = %117
  br label %123

123:                                              ; preds = %122, %112, %106
  %124 = load i32, ptr %16, align 4, !tbaa !5
  %125 = add nsw i32 %124, 1
  store i32 %125, ptr %16, align 4, !tbaa !5
  br label %87, !llvm.loop !17

126:                                              ; preds = %91
  br label %172

127:                                              ; preds = %79
  %128 = load i32, ptr %15, align 4, !tbaa !5
  %129 = invoke noundef zeroext i1 @_ZN13GraphicOracle10can_insertEi(ptr noundef nonnull align 8 dereferenceable(8568) %3, i32 noundef %128)
          to label %130 unwind label %96

130:                                              ; preds = %127
  br i1 %129, label %131, label %133

131:                                              ; preds = %130
  %132 = load i32, ptr %15, align 4, !tbaa !5
  store i32 %132, ptr %12, align 4, !tbaa !5
  store i32 6, ptr %17, align 4
  br label %173

133:                                              ; preds = %130
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  store ptr @independent_set, ptr %18, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  %134 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) @independent_set) #5
  %135 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %19, i32 0, i32 0
  store ptr %134, ptr %135, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  %136 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) @independent_set) #5
  %137 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %20, i32 0, i32 0
  store ptr %136, ptr %137, align 8
  br label %138

138:                                              ; preds = %169, %133
  %139 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) %20) #5
  br i1 %139, label %141, label %140

140:                                              ; preds = %138
  store i32 10, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  br label %171

141:                                              ; preds = %138
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  %142 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #5
  %143 = load i32, ptr %142, align 4, !tbaa !5
  store i32 %143, ptr %21, align 4, !tbaa !5
  %144 = load i32, ptr %21, align 4, !tbaa !5
  %145 = sext i32 %144 to i64
  %146 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %145) #5
  %147 = load i32, ptr %146, align 4, !tbaa !5
  %148 = icmp ne i32 %147, -2
  br i1 %148, label %149, label %150

149:                                              ; preds = %141
  store i32 11, ptr %17, align 4
  br label %166

150:                                              ; preds = %141
  %151 = load i32, ptr %15, align 4, !tbaa !5
  %152 = load i32, ptr %21, align 4, !tbaa !5
  %153 = invoke noundef zeroext i1 @_ZN13GraphicOracle12can_exchangeEii(ptr noundef nonnull align 8 dereferenceable(8568) %3, i32 noundef %151, i32 noundef %152)
          to label %154 unwind label %156

154:                                              ; preds = %150
  br i1 %153, label %160, label %155

155:                                              ; preds = %154
  store i32 11, ptr %17, align 4
  br label %166

156:                                              ; preds = %160, %150
  %157 = landingpad { ptr, i32 }
          cleanup
  %158 = extractvalue { ptr, i32 } %157, 0
  store ptr %158, ptr %4, align 8
  %159 = extractvalue { ptr, i32 } %157, 1
  store i32 %159, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  br label %176

160:                                              ; preds = %154
  %161 = load i32, ptr %15, align 4, !tbaa !5
  %162 = load i32, ptr %21, align 4, !tbaa !5
  %163 = sext i32 %162 to i64
  %164 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %163) #5
  store i32 %161, ptr %164, align 4, !tbaa !5
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) %13, ptr noundef nonnull align 4 dereferenceable(4) %21)
          to label %165 unwind label %156

165:                                              ; preds = %160
  store i32 0, ptr %17, align 4
  br label %166

166:                                              ; preds = %165, %155, %149
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  %167 = load i32, ptr %17, align 4
  switch i32 %167, label %242 [
    i32 0, label %168
    i32 11, label %169
  ]

168:                                              ; preds = %166
  br label %169

169:                                              ; preds = %168, %166
  %170 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #5
  br label %138

171:                                              ; preds = %140
  br label %172

172:                                              ; preds = %171, %126
  store i32 0, ptr %17, align 4
  br label %173

173:                                              ; preds = %172, %131
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  %174 = load i32, ptr %17, align 4
  switch i32 %174, label %242 [
    i32 0, label %175
    i32 6, label %177
  ]

175:                                              ; preds = %173
  br label %71, !llvm.loop !20

176:                                              ; preds = %156, %113, %96
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  br label %232

177:                                              ; preds = %173, %73
  %178 = load i32, ptr %12, align 4, !tbaa !5
  %179 = icmp eq i32 %178, -3
  br i1 %179, label %180, label %181

180:                                              ; preds = %177
  store i1 false, ptr %1, align 1
  store i32 1, ptr %17, align 4
  br label %230

181:                                              ; preds = %177
  br label %182

182:                                              ; preds = %197, %181
  %183 = load i32, ptr %12, align 4, !tbaa !5
  %184 = sext i32 %183 to i64
  %185 = call noundef nonnull align 4 dereferenceable(20) ptr @_ZNSt6vectorI16GroundSetElementSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @elements, i64 noundef %184) #5
  %186 = getelementptr inbounds %struct.GroundSetElement, ptr %185, i32 0, i32 2
  %187 = load i8, ptr %186, align 4, !tbaa !11, !range !15, !noundef !16
  %188 = trunc i8 %187 to i1
  %189 = zext i1 %188 to i32
  %190 = xor i32 %189, 1
  %191 = icmp ne i32 %190, 0
  %192 = zext i1 %191 to i8
  store i8 %192, ptr %186, align 4, !tbaa !11
  %193 = load i32, ptr %12, align 4, !tbaa !5
  %194 = sext i32 %193 to i64
  %195 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %194) #5
  %196 = load i32, ptr %195, align 4, !tbaa !5
  store i32 %196, ptr %12, align 4, !tbaa !5
  br label %197

197:                                              ; preds = %182
  %198 = load i32, ptr %12, align 4, !tbaa !5
  %199 = icmp ne i32 %198, -1
  br i1 %199, label %182, label %200, !llvm.loop !21

200:                                              ; preds = %197
  call void @_ZNSt6vectorIiSaIiEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) @independent_set) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #5
  store i32 0, ptr %22, align 4, !tbaa !5
  br label %201

201:                                              ; preds = %226, %200
  %202 = load i32, ptr %22, align 4, !tbaa !5
  %203 = load i32, ptr %9, align 4, !tbaa !5
  %204 = icmp slt i32 %202, %203
  br i1 %204, label %206, label %205

205:                                              ; preds = %201
  store i32 14, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  br label %229

206:                                              ; preds = %201
  %207 = load i32, ptr %22, align 4, !tbaa !5
  %208 = sext i32 %207 to i64
  %209 = call noundef nonnull align 4 dereferenceable(20) ptr @_ZNSt6vectorI16GroundSetElementSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @elements, i64 noundef %208) #5
  %210 = getelementptr inbounds %struct.GroundSetElement, ptr %209, i32 0, i32 2
  %211 = load i8, ptr %210, align 4, !tbaa !11, !range !15, !noundef !16
  %212 = trunc i8 %211 to i1
  br i1 %212, label %213, label %225

213:                                              ; preds = %206
  %214 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @independent_set) #5
  %215 = trunc i64 %214 to i32
  %216 = load i32, ptr %22, align 4, !tbaa !5
  %217 = sext i32 %216 to i64
  %218 = call noundef nonnull align 4 dereferenceable(20) ptr @_ZNSt6vectorI16GroundSetElementSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @elements, i64 noundef %217) #5
  %219 = getelementptr inbounds %struct.GroundSetElement, ptr %218, i32 0, i32 3
  store i32 %215, ptr %219, align 4, !tbaa !22
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) @independent_set, ptr noundef nonnull align 4 dereferenceable(4) %22)
          to label %220 unwind label %221

220:                                              ; preds = %213
  br label %225

221:                                              ; preds = %213
  %222 = landingpad { ptr, i32 }
          cleanup
  %223 = extractvalue { ptr, i32 } %222, 0
  store ptr %223, ptr %4, align 8
  %224 = extractvalue { ptr, i32 } %222, 1
  store i32 %224, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  br label %232

225:                                              ; preds = %220, %206
  br label %226

226:                                              ; preds = %225
  %227 = load i32, ptr %22, align 4, !tbaa !5
  %228 = add nsw i32 %227, 1
  store i32 %228, ptr %22, align 4, !tbaa !5
  br label %201, !llvm.loop !23

229:                                              ; preds = %205
  store i1 true, ptr %1, align 1
  store i32 1, ptr %17, align 4
  br label %230

230:                                              ; preds = %229, %180
  call void @_ZNSt5queueIiSt5dequeIiSaIiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %13) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  call void @_ZN13GraphicOracleD2Ev(ptr noundef nonnull align 8 dereferenceable(8568) %3) #5
  call void @llvm.lifetime.end.p0(i64 8568, ptr %3) #5
  call void @_ZN14ColorfulOracleD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %2) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr %2) #5
  %231 = load i1, ptr %1, align 1
  ret i1 %231

232:                                              ; preds = %221, %176, %92, %62
  call void @_ZNSt5queueIiSt5dequeIiSaIiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %13) #5
  br label %233

233:                                              ; preds = %232, %49
  call void @llvm.lifetime.end.p0(i64 80, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #5
  br label %234

234:                                              ; preds = %233, %45
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  br label %235

235:                                              ; preds = %234, %41
  call void @_ZN13GraphicOracleD2Ev(ptr noundef nonnull align 8 dereferenceable(8568) %3) #5
  br label %236

236:                                              ; preds = %235, %37
  call void @llvm.lifetime.end.p0(i64 8568, ptr %3) #5
  call void @_ZN14ColorfulOracleD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %2) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr %2) #5
  br label %237

237:                                              ; preds = %236
  %238 = load ptr, ptr %4, align 8
  %239 = load i32, ptr %5, align 4
  %240 = insertvalue { ptr, i32 } poison, ptr %238, 0
  %241 = insertvalue { ptr, i32 } %240, i32 %239, 1
  resume { ptr, i32 } %241

242:                                              ; preds = %173, %166
  unreachable
}

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEEC2EmRKiRKS0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #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: mustprogress uwtable
declare dso_local void @_ZNSt5queueIiSt5dequeIiSaIiEEEC2IS2_vEEv(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN14ColorfulOracle10can_insertEi(ptr noundef nonnull align 8 dereferenceable(48), i32 noundef) #2 align 2

; 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: mustprogress uwtable
declare dso_local void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 4 dereferenceable(4)) #2 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN14ColorfulOracle12can_exchangeEii(ptr noundef nonnull align 8 dereferenceable(48), i32 noundef, i32 noundef) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN13GraphicOracle10can_insertEi(ptr noundef nonnull align 8 dereferenceable(8568), i32 noundef) #2 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN13GraphicOracle12can_exchangeEii(ptr noundef nonnull align 8 dereferenceable(8568), i32 noundef, i32 noundef) #2 align 2

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt5queueIiSt5dequeIiSaIiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #1 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 = { 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 #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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #5 = { 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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !14, i64 12}
!12 = !{!"_ZTS16GroundSetElement", !6, i64 0, !13, i64 4, !14, i64 12, !6, i64 16}
!13 = !{!"_ZTSSt4pairIiiE", !6, i64 0, !6, i64 4}
!14 = !{!"bool", !7, i64 0}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = distinct !{!17, !10}
!18 = !{!19, !19, i64 0}
!19 = !{!"any pointer", !7, i64 0}
!20 = distinct !{!20, !10}
!21 = distinct !{!21, !10}
!22 = !{!12, !6, i64 16}
!23 = distinct !{!23, !10}


; 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<GroundSetElement, std::allocator<GroundSetElement>>::_Vector_impl" }
%"struct.std::_Vector_base<GroundSetElement, std::allocator<GroundSetElement>>::_Vector_impl" = type { %"struct.std::_Vector_base<GroundSetElement, std::allocator<GroundSetElement>>::_Vector_impl_data" }
%"struct.std::_Vector_base<GroundSetElement, std::allocator<GroundSetElement>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"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 }
%struct.GraphicOracle = type { i32, [4 x i8], %"struct.GraphicOracle::GraphBasis", [106 x %"struct.GraphicOracle::GraphBasis"] }
%"struct.GraphicOracle::GraphBasis" = type <{ %"class.std::vector.0", %"class.std::vector.0", %"class.std::vector.0", i32, [4 x i8] }>
%struct.ColorfulOracle = type { i32, %"class.std::vector.5" }
%"class.std::vector.5" = type { %"struct.std::_Bvector_base" }
%"struct.std::_Bvector_base" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" = type { %"struct.std::_Bit_iterator", %"struct.std::_Bit_iterator", ptr }
%"struct.std::_Bit_iterator" = type { %"struct.std::_Bit_iterator_base.base", [4 x i8] }
%"struct.std::_Bit_iterator_base.base" = type <{ ptr, i32 }>
%"class.std::allocator.2" = type { i8 }
%"class.std::queue" = type { %"class.std::deque" }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl" }
%"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl" = type { %"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl_data" }
%"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator", %"struct.std::_Deque_iterator" }
%"struct.std::_Deque_iterator" = type { ptr, ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

@elements = external dso_local global %"class.std::vector", align 8
@independent_set = external dso_local global %"class.std::vector.0", align 8
@graphic_oracle = external dso_local global %struct.GraphicOracle, align 8
@colorful_oracle = external dso_local global %struct.ColorfulOracle, align 8

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z7augmentv() local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %1 = alloca %struct.ColorfulOracle, align 8
  %2 = alloca %struct.GraphicOracle, align 8
  %3 = alloca i32, align 4
  %4 = alloca %"class.std::vector.0", align 8
  %5 = alloca %"class.std::allocator.2", align 1
  %6 = alloca %"class.std::queue", align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %10 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %1) #5
  call void @_ZN14ColorfulOracleC2ERKS_(ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef nonnull align 8 dereferenceable(48) @colorful_oracle)
  call void @llvm.lifetime.start.p0(i64 8568, ptr nonnull %2) #5
  invoke void @_ZN13GraphicOracleC2ERKS_(ptr noundef nonnull align 8 dereferenceable(8568) %2, ptr noundef nonnull align 8 dereferenceable(8568) @graphic_oracle)
          to label %13 unwind label %23

13:                                               ; preds = %0
  invoke void @_ZN14ColorfulOracle7prepareEv(ptr noundef nonnull align 8 dereferenceable(48) %1)
          to label %14 unwind label %25

14:                                               ; preds = %13
  invoke void @_ZN13GraphicOracle7prepareEv(ptr noundef nonnull align 8 dereferenceable(8568) %2)
          to label %15 unwind label %25

15:                                               ; preds = %14
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #5
  store i32 -2, ptr %3, align 4, !tbaa !5
  %16 = call noundef i64 @_ZNKSt6vectorI16GroundSetElementSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @elements) #5
  %17 = trunc i64 %16 to i32
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #5
  %sext = shl i64 %16, 32
  %18 = ashr exact i64 %sext, 32
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #5
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #5
  invoke void @_ZNSt6vectorIiSaIiEEC2EmRKiRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %18, ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 1 dereferenceable(1) %5)
          to label %19 unwind label %27

19:                                               ; preds = %15
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #5
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %6) #5
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEEC2IS2_vEEv(ptr noundef nonnull align 8 dereferenceable(80) %6)
          to label %20 unwind label %29

20:                                               ; preds = %19
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #5
  store i32 0, ptr %7, align 4, !tbaa !5
  %21 = icmp sgt i32 %17, 0
  br i1 %21, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %39, %20
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #5
  %22 = call noundef i64 @_ZNKSt5queueIiSt5dequeIiSaIiEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(80) %6)
  %.not57 = icmp eq i64 %22, 0
  br i1 %.not57, label %.thread.thread, label %.lr.ph59

23:                                               ; preds = %0
  %24 = landingpad { ptr, i32 }
          cleanup
  br label %129

25:                                               ; preds = %14, %13
  %26 = landingpad { ptr, i32 }
          cleanup
  br label %128

27:                                               ; preds = %15
  %28 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #5
  br label %127

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

.lr.ph:                                           ; preds = %20, %39
  %storemerge49 = phi i32 [ %41, %39 ], [ 0, %20 ]
  %31 = invoke noundef zeroext i1 @_ZN14ColorfulOracle10can_insertEi(ptr noundef nonnull align 8 dereferenceable(48) %1, i32 noundef %storemerge49)
          to label %32 unwind label %37

32:                                               ; preds = %.lr.ph
  br i1 %31, label %33, label %39

33:                                               ; preds = %32
  %34 = load i32, ptr %7, align 4, !tbaa !5
  %35 = sext i32 %34 to i64
  %36 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %35) #5
  store i32 -1, ptr %36, align 4, !tbaa !5
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) %6, ptr noundef nonnull align 4 dereferenceable(4) %7)
          to label %39 unwind label %37

37:                                               ; preds = %33, %.lr.ph
  %38 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #5
  br label %125

39:                                               ; preds = %32, %33
  %40 = load i32, ptr %7, align 4, !tbaa !5
  %41 = add nsw i32 %40, 1
  store i32 %41, ptr %7, align 4, !tbaa !5
  %42 = icmp slt i32 %41, %17
  br i1 %42, label %.lr.ph, label %._crit_edge, !llvm.loop !9

.lr.ph59:                                         ; preds = %._crit_edge, %95
  %43 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5queueIiSt5dequeIiSaIiEEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %6)
  %44 = load i32, ptr %43, align 4, !tbaa !5
  call void @_ZNSt5queueIiSt5dequeIiSaIiEEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %6)
  %45 = sext i32 %44 to i64
  %46 = call noundef nonnull align 4 dereferenceable(20) ptr @_ZNSt6vectorI16GroundSetElementSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @elements, i64 noundef %45) #5
  %47 = getelementptr inbounds i8, ptr %46, i64 12
  %48 = load i8, ptr %47, align 4, !tbaa !11, !range !15, !noundef !16
  %49 = trunc nuw i8 %48 to i1
  br i1 %49, label %50, label %70

50:                                               ; preds = %.lr.ph59
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #5
  store i32 0, ptr %8, align 4, !tbaa !5
  br i1 %21, label %.lr.ph55, label %._crit_edge56

._crit_edge56:                                    ; preds = %66, %50
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #5
  br label %95

51:                                               ; preds = %70
  %52 = landingpad { ptr, i32 }
          cleanup
  br label %125

.lr.ph55:                                         ; preds = %50, %66
  %storemerge3553 = phi i32 [ %68, %66 ], [ 0, %50 ]
  %53 = sext i32 %storemerge3553 to i64
  %54 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %53) #5
  %55 = load i32, ptr %54, align 4, !tbaa !5
  %.not38 = icmp eq i32 %55, -2
  br i1 %.not38, label %56, label %66

56:                                               ; preds = %.lr.ph55
  %57 = load i32, ptr %8, align 4, !tbaa !5
  %58 = invoke noundef zeroext i1 @_ZN14ColorfulOracle12can_exchangeEii(ptr noundef nonnull align 8 dereferenceable(48) %1, i32 noundef %57, i32 noundef %44)
          to label %59 unwind label %60

59:                                               ; preds = %56
  br i1 %58, label %62, label %66

60:                                               ; preds = %62, %56
  %61 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #5
  br label %125

62:                                               ; preds = %59
  %63 = load i32, ptr %8, align 4, !tbaa !5
  %64 = sext i32 %63 to i64
  %65 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %64) #5
  store i32 %44, ptr %65, align 4, !tbaa !5
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) %6, ptr noundef nonnull align 4 dereferenceable(4) %8)
          to label %66 unwind label %60

66:                                               ; preds = %62, %59, %.lr.ph55
  %67 = load i32, ptr %8, align 4, !tbaa !5
  %68 = add nsw i32 %67, 1
  store i32 %68, ptr %8, align 4, !tbaa !5
  %69 = icmp slt i32 %68, %17
  br i1 %69, label %.lr.ph55, label %._crit_edge56, !llvm.loop !17

70:                                               ; preds = %.lr.ph59
  %71 = invoke noundef zeroext i1 @_ZN13GraphicOracle10can_insertEi(ptr noundef nonnull align 8 dereferenceable(8568) %2, i32 noundef %44)
          to label %72 unwind label %51

72:                                               ; preds = %70
  br i1 %71, label %.thread, label %73

73:                                               ; preds = %72
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #5
  %74 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) @independent_set) #5
  store ptr %74, ptr %9, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #5
  %75 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) @independent_set) #5
  store ptr %75, ptr %10, align 8
  %76 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #5
  br i1 %76, label %.lr.ph51, label %._crit_edge52

._crit_edge52:                                    ; preds = %92, %73
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  br label %95

.lr.ph51:                                         ; preds = %73, %92
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #5
  %77 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #5
  %78 = load i32, ptr %77, align 4, !tbaa !5
  store i32 %78, ptr %11, align 4, !tbaa !5
  %79 = sext i32 %78 to i64
  %80 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %79) #5
  %81 = load i32, ptr %80, align 4, !tbaa !5
  %.not34 = icmp eq i32 %81, -2
  br i1 %.not34, label %82, label %92

82:                                               ; preds = %.lr.ph51
  %83 = load i32, ptr %11, align 4, !tbaa !5
  %84 = invoke noundef zeroext i1 @_ZN13GraphicOracle12can_exchangeEii(ptr noundef nonnull align 8 dereferenceable(8568) %2, i32 noundef %44, i32 noundef %83)
          to label %85 unwind label %86

85:                                               ; preds = %82
  br i1 %84, label %88, label %92

86:                                               ; preds = %88, %82
  %87 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  br label %125

88:                                               ; preds = %85
  %89 = load i32, ptr %11, align 4, !tbaa !5
  %90 = sext i32 %89 to i64
  %91 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %90) #5
  store i32 %44, ptr %91, align 4, !tbaa !5
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) %6, ptr noundef nonnull align 4 dereferenceable(4) %11)
          to label %92 unwind label %86

92:                                               ; preds = %88, %85, %.lr.ph51
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #5
  %93 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #5
  %94 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #5
  br i1 %94, label %.lr.ph51, label %._crit_edge52

95:                                               ; preds = %._crit_edge56, %._crit_edge52
  %96 = call noundef i64 @_ZNKSt5queueIiSt5dequeIiSaIiEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(80) %6)
  %.not = icmp eq i64 %96, 0
  br i1 %.not, label %.thread.thread, label %.lr.ph59

.thread:                                          ; preds = %72
  %97 = icmp ne i32 %44, -3
  br i1 %97, label %.preheader, label %.thread.thread

.preheader:                                       ; preds = %.thread, %.preheader
  %.323 = phi i32 [ %104, %.preheader ], [ %44, %.thread ]
  %98 = sext i32 %.323 to i64
  %99 = call noundef nonnull align 4 dereferenceable(20) ptr @_ZNSt6vectorI16GroundSetElementSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @elements, i64 noundef %98) #5
  %100 = getelementptr inbounds i8, ptr %99, i64 12
  %101 = load i8, ptr %100, align 4, !tbaa !11, !range !15, !noundef !16
  %102 = xor i8 %101, 1
  store i8 %102, ptr %100, align 4, !tbaa !11
  %103 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %98) #5
  %104 = load i32, ptr %103, align 4, !tbaa !5
  %.not36 = icmp eq i32 %104, -1
  br i1 %.not36, label %105, label %.preheader, !llvm.loop !18

105:                                              ; preds = %.preheader
  call void @_ZNSt6vectorIiSaIiEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) @independent_set) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #5
  store i32 0, ptr %12, align 4, !tbaa !5
  br i1 %21, label %.lr.ph64, label %._crit_edge65

._crit_edge65:                                    ; preds = %120, %105
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #5
  br label %.thread.thread

.lr.ph64:                                         ; preds = %105, %120
  %storemerge3762 = phi i32 [ %122, %120 ], [ 0, %105 ]
  %106 = sext i32 %storemerge3762 to i64
  %107 = call noundef nonnull align 4 dereferenceable(20) ptr @_ZNSt6vectorI16GroundSetElementSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @elements, i64 noundef %106) #5
  %108 = getelementptr inbounds i8, ptr %107, i64 12
  %109 = load i8, ptr %108, align 4, !tbaa !11, !range !15, !noundef !16
  %110 = trunc nuw i8 %109 to i1
  br i1 %110, label %111, label %120

111:                                              ; preds = %.lr.ph64
  %112 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @independent_set) #5
  %113 = trunc i64 %112 to i32
  %114 = load i32, ptr %12, align 4, !tbaa !5
  %115 = sext i32 %114 to i64
  %116 = call noundef nonnull align 4 dereferenceable(20) ptr @_ZNSt6vectorI16GroundSetElementSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @elements, i64 noundef %115) #5
  %117 = getelementptr inbounds i8, ptr %116, i64 16
  store i32 %113, ptr %117, align 4, !tbaa !19
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) @independent_set, ptr noundef nonnull align 4 dereferenceable(4) %12)
          to label %120 unwind label %118

118:                                              ; preds = %111
  %119 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #5
  br label %125

120:                                              ; preds = %.lr.ph64, %111
  %121 = load i32, ptr %12, align 4, !tbaa !5
  %122 = add nsw i32 %121, 1
  store i32 %122, ptr %12, align 4, !tbaa !5
  %123 = icmp slt i32 %122, %17
  br i1 %123, label %.lr.ph64, label %._crit_edge65, !llvm.loop !20

.thread.thread:                                   ; preds = %95, %._crit_edge, %.thread, %._crit_edge65
  %124 = phi i1 [ false, %.thread ], [ %97, %._crit_edge65 ], [ false, %._crit_edge ], [ false, %95 ]
  call void @_ZNSt5queueIiSt5dequeIiSaIiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %6) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %6) #5
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #5
  call void @_ZN13GraphicOracleD2Ev(ptr noundef nonnull align 8 dereferenceable(8568) %2) #5
  call void @llvm.lifetime.end.p0(i64 8568, ptr nonnull %2) #5
  call void @_ZN14ColorfulOracleD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %1) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %1) #5
  ret i1 %124

125:                                              ; preds = %51, %60, %86, %118, %37
  %.pn40 = phi { ptr, i32 } [ %38, %37 ], [ %119, %118 ], [ %61, %60 ], [ %87, %86 ], [ %52, %51 ]
  call void @_ZNSt5queueIiSt5dequeIiSaIiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %6) #5
  br label %126

126:                                              ; preds = %125, %29
  %.pn40.pn = phi { ptr, i32 } [ %.pn40, %125 ], [ %30, %29 ]
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %6) #5
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  br label %127

127:                                              ; preds = %126, %27
  %.pn40.pn.pn = phi { ptr, i32 } [ %.pn40.pn, %126 ], [ %28, %27 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #5
  br label %128

128:                                              ; preds = %127, %25
  %.pn40.pn.pn.pn = phi { ptr, i32 } [ %.pn40.pn.pn, %127 ], [ %26, %25 ]
  call void @_ZN13GraphicOracleD2Ev(ptr noundef nonnull align 8 dereferenceable(8568) %2) #5
  br label %129

129:                                              ; preds = %128, %23
  %.pn40.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn40.pn.pn.pn, %128 ], [ %24, %23 ]
  call void @llvm.lifetime.end.p0(i64 8568, ptr nonnull %2) #5
  call void @_ZN14ColorfulOracleD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %1) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %1) #5
  resume { ptr, i32 } %.pn40.pn.pn.pn.pn
}

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEEC2EmRKiRKS0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) 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: mustprogress uwtable
declare dso_local void @_ZNSt5queueIiSt5dequeIiSaIiEEEC2IS2_vEEv(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN14ColorfulOracle10can_insertEi(ptr noundef nonnull align 8 dereferenceable(48), i32 noundef) local_unnamed_addr #2 align 2

; 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 uwtable
declare dso_local void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN14ColorfulOracle12can_exchangeEii(ptr noundef nonnull align 8 dereferenceable(48), i32 noundef, i32 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN13GraphicOracle10can_insertEi(ptr noundef nonnull align 8 dereferenceable(8568), i32 noundef) local_unnamed_addr #2 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN13GraphicOracle12can_exchangeEii(ptr noundef nonnull align 8 dereferenceable(8568), i32 noundef, i32 noundef) local_unnamed_addr #2 align 2

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt5queueIiSt5dequeIiSaIiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #1 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 = { 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 #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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #5 = { 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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !14, i64 12}
!12 = !{!"_ZTS16GroundSetElement", !6, i64 0, !13, i64 4, !14, i64 12, !6, i64 16}
!13 = !{!"_ZTSSt4pairIiiE", !6, i64 0, !6, i64 4}
!14 = !{!"bool", !7, i64 0}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !10}
!19 = !{!12, !6, i64 16}
!20 = distinct !{!20, !10}


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