; LLVM IR from kazunetakahashi/atcoder :: 2018/0603_AGC025 (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::tuple<long long, long long>, std::allocator<std::tuple<long long, long long>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::tuple<long long, long long>, std::allocator<std::tuple<long long, long long>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::tuple<long long, long long>, std::allocator<std::tuple<long long, long long>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::tuple<long long, long long>, std::allocator<std::tuple<long long, long long>>>::_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" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Tuple_impl.0", %"struct.std::_Head_base.1" }
%"struct.std::_Tuple_impl.0" = type { %"struct.std::_Head_base" }
%"struct.std::_Head_base" = type { i64 }
%"struct.std::_Head_base.1" = type { i64 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.std::stack" = type { %"class.std::deque" }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<std::tuple<long long, long long>, std::allocator<std::tuple<long long, long long>>>::_Deque_impl" }
%"struct.std::_Deque_base<std::tuple<long long, long long>, std::allocator<std::tuple<long long, long long>>>::_Deque_impl" = type { %"struct.std::_Deque_base<std::tuple<long long, long long>, std::allocator<std::tuple<long long, long long>>>::_Deque_impl_data" }
%"struct.std::_Deque_base<std::tuple<long long, long long>, std::allocator<std::tuple<long long, long long>>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator", %"struct.std::_Deque_iterator" }
%"struct.std::_Deque_iterator" = type { ptr, ptr, ptr, ptr }

@N = external dso_local global i64, align 8
@D = external dso_local global [2 x i64], align 16
@M = external dso_local global i64, align 8
@K = external dso_local global i64, align 8
@color = external dso_local global [2 x [610 x [610 x i32]]], align 16
@V = external dso_local global [2 x [610 x [610 x %"class.std::vector"]]], align 16
@W = external dso_local global [2 x %"class.std::vector"], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZplRKSt5tupleIJxxEES2_(ptr dead_on_unwind noalias writable sret(%"class.std::tuple") align 8, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #0

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z5validSt5tupleIJxxEE(ptr noundef) #0

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #2 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca %"class.std::tuple", align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca %"class.std::tuple", align 8
  %11 = alloca ptr, align 8
  %12 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %13 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %14 = alloca %"class.std::tuple", align 8
  %15 = alloca %"class.std::tuple", align 8
  %16 = alloca %"class.std::tuple", align 8
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca %"class.std::stack", align 8
  %20 = alloca %"class.std::tuple", align 8
  %21 = alloca ptr, align 8
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca ptr, align 8
  %26 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %27 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %28 = alloca %"class.std::tuple", align 8
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  %34 = alloca i32, align 4
  %35 = alloca i32, align 4
  %36 = alloca i32, align 4
  %37 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %38 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) @N)
  %39 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %38, ptr noundef nonnull align 8 dereferenceable(8) @D)
  %40 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %39, ptr noundef nonnull align 8 dereferenceable(8) getelementptr inbounds ([2 x i64], ptr @D, i64 0, i64 1))
  %41 = load i64, ptr @N, align 8, !tbaa !5
  %42 = load i64, ptr @N, align 8, !tbaa !5
  %43 = mul nsw i64 %41, %42
  store i64 %43, ptr @K, align 8, !tbaa !5
  %44 = load i64, ptr @N, align 8, !tbaa !5
  %45 = mul nsw i64 2, %44
  store i64 %45, ptr @M, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #8
  store i32 -1, ptr %2, align 4, !tbaa !9
  call void @_ZSt4fillIPiiEvT_S1_RKT0_(ptr noundef @color, ptr noundef getelementptr inbounds (i32, ptr @color, i64 744200), ptr noundef nonnull align 4 dereferenceable(4) %2)
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #8
  store i32 0, ptr %3, align 4, !tbaa !9
  br label %46

46:                                               ; preds = %291, %0
  %47 = load i32, ptr %3, align 4, !tbaa !9
  %48 = icmp slt i32 %47, 2
  br i1 %48, label %50, label %49

49:                                               ; preds = %46
  store i32 2, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #8
  br label %294

50:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #8
  %51 = load i64, ptr @M, align 8, !tbaa !5
  %52 = sub nsw i64 0, %51
  %53 = add nsw i64 %52, 1
  store i64 %53, ptr %5, align 8, !tbaa !5
  br label %54

54:                                               ; preds = %88, %50
  %55 = load i64, ptr %5, align 8, !tbaa !5
  %56 = load i64, ptr @M, align 8, !tbaa !5
  %57 = icmp slt i64 %55, %56
  br i1 %57, label %59, label %58

58:                                               ; preds = %54
  store i32 5, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #8
  br label %91

59:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #8
  %60 = load i64, ptr @M, align 8, !tbaa !5
  %61 = sub nsw i64 0, %60
  %62 = add nsw i64 %61, 1
  store i64 %62, ptr %6, align 8, !tbaa !5
  br label %63

63:                                               ; preds = %84, %59
  %64 = load i64, ptr %6, align 8, !tbaa !5
  %65 = load i64, ptr @M, align 8, !tbaa !5
  %66 = icmp slt i64 %64, %65
  br i1 %66, label %68, label %67

67:                                               ; preds = %63
  store i32 8, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #8
  br label %87

68:                                               ; preds = %63
  %69 = load i64, ptr %5, align 8, !tbaa !5
  %70 = trunc i64 %69 to i32
  %71 = load i64, ptr %6, align 8, !tbaa !5
  %72 = trunc i64 %71 to i32
  %73 = call noundef i64 @_Z5dist2ii(i32 noundef %70, i32 noundef %72)
  %74 = load i32, ptr %3, align 4, !tbaa !9
  %75 = sext i32 %74 to i64
  %76 = getelementptr inbounds [2 x i64], ptr @D, i64 0, i64 %75
  %77 = load i64, ptr %76, align 8, !tbaa !5
  %78 = icmp eq i64 %73, %77
  br i1 %78, label %79, label %83

79:                                               ; preds = %68
  %80 = load i32, ptr %3, align 4, !tbaa !9
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds [2 x %"class.std::vector"], ptr @W, i64 0, i64 %81
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #8
  call void @_ZNSt5tupleIJxxEEC2IRxS2_TnNSt9enable_ifIXclsr4_TCCIXntcl14__is_alloc_argIT_EEEEE29__is_implicitly_constructibleIS4_T0_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #8
  call void @_ZNSt6vectorISt5tupleIJxxEESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %82, ptr noundef nonnull align 8 dereferenceable(16) %7)
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #8
  br label %83

83:                                               ; preds = %79, %68
  br label %84

84:                                               ; preds = %83
  %85 = load i64, ptr %6, align 8, !tbaa !5
  %86 = add nsw i64 %85, 1
  store i64 %86, ptr %6, align 8, !tbaa !5
  br label %63, !llvm.loop !11

87:                                               ; preds = %67
  br label %88

88:                                               ; preds = %87
  %89 = load i64, ptr %5, align 8, !tbaa !5
  %90 = add nsw i64 %89, 1
  store i64 %90, ptr %5, align 8, !tbaa !5
  br label %54, !llvm.loop !13

91:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #8
  store i32 0, ptr %8, align 4, !tbaa !9
  br label %92

92:                                               ; preds = %139, %91
  %93 = load i32, ptr %8, align 4, !tbaa !9
  %94 = sext i32 %93 to i64
  %95 = load i64, ptr @M, align 8, !tbaa !5
  %96 = icmp slt i64 %94, %95
  br i1 %96, label %98, label %97

97:                                               ; preds = %92
  store i32 11, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  br label %142

98:                                               ; preds = %92
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #8
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %99

99:                                               ; preds = %135, %98
  %100 = load i32, ptr %9, align 4, !tbaa !9
  %101 = sext i32 %100 to i64
  %102 = load i64, ptr @M, align 8, !tbaa !5
  %103 = icmp slt i64 %101, %102
  br i1 %103, label %105, label %104

104:                                              ; preds = %99
  store i32 14, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  br label %138

105:                                              ; preds = %99
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #8
  call void @_ZNSt5tupleIJxxEEC2IRiS2_TnNSt9enable_ifIXclsr4_TCCIXntcl14__is_alloc_argIT_EEEEE29__is_implicitly_constructibleIS4_T0_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull align 4 dereferenceable(4) %9) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #8
  %106 = load i32, ptr %3, align 4, !tbaa !9
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds [2 x %"class.std::vector"], ptr @W, i64 0, i64 %107
  store ptr %108, ptr %11, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  %109 = load ptr, ptr %11, align 8, !tbaa !14
  %110 = call ptr @_ZNSt6vectorISt5tupleIJxxEESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %109) #8
  %111 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %12, i32 0, i32 0
  store ptr %110, ptr %111, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  %112 = load ptr, ptr %11, align 8, !tbaa !14
  %113 = call ptr @_ZNSt6vectorISt5tupleIJxxEESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %112) #8
  %114 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %13, i32 0, i32 0
  store ptr %113, ptr %114, align 8
  br label %115

115:                                              ; preds = %132, %105
  %116 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt5tupleIJxxEESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %13) #8
  br i1 %116, label %118, label %117

117:                                              ; preds = %115
  store i32 17, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  br label %134

118:                                              ; preds = %115
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #8
  %119 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt5tupleIJxxEESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %14, ptr align 8 %119, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #8
  call void @_ZplRKSt5tupleIJxxEES2_(ptr dead_on_unwind writable sret(%"class.std::tuple") align 8 %15, ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 8 dereferenceable(16) %14)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %16, ptr align 8 %15, i64 16, i1 false)
  %120 = call noundef zeroext i1 @_Z5validSt5tupleIJxxEE(ptr noundef %16)
  br i1 %120, label %121, label %131

121:                                              ; preds = %118
  %122 = load i32, ptr %3, align 4, !tbaa !9
  %123 = sext i32 %122 to i64
  %124 = getelementptr inbounds [2 x [610 x [610 x %"class.std::vector"]]], ptr @V, i64 0, i64 %123
  %125 = load i32, ptr %8, align 4, !tbaa !9
  %126 = sext i32 %125 to i64
  %127 = getelementptr inbounds [610 x [610 x %"class.std::vector"]], ptr %124, i64 0, i64 %126
  %128 = load i32, ptr %9, align 4, !tbaa !9
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds [610 x %"class.std::vector"], ptr %127, i64 0, i64 %129
  call void @_ZNSt6vectorISt5tupleIJxxEESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %130, ptr noundef nonnull align 8 dereferenceable(16) %15)
  br label %131

131:                                              ; preds = %121, %118
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #8
  br label %132

132:                                              ; preds = %131
  %133 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt5tupleIJxxEESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #8
  br label %115

134:                                              ; preds = %117
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #8
  br label %135

135:                                              ; preds = %134
  %136 = load i32, ptr %9, align 4, !tbaa !9
  %137 = add nsw i32 %136, 1
  store i32 %137, ptr %9, align 4, !tbaa !9
  br label %99, !llvm.loop !16

138:                                              ; preds = %104
  br label %139

139:                                              ; preds = %138
  %140 = load i32, ptr %8, align 4, !tbaa !9
  %141 = add nsw i32 %140, 1
  store i32 %141, ptr %8, align 4, !tbaa !9
  br label %92, !llvm.loop !17

142:                                              ; preds = %97
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #8
  store i32 0, ptr %17, align 4, !tbaa !9
  br label %143

143:                                              ; preds = %287, %142
  %144 = load i32, ptr %17, align 4, !tbaa !9
  %145 = sext i32 %144 to i64
  %146 = load i64, ptr @M, align 8, !tbaa !5
  %147 = icmp slt i64 %145, %146
  br i1 %147, label %149, label %148

148:                                              ; preds = %143
  store i32 19, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  br label %290

149:                                              ; preds = %143
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #8
  store i32 0, ptr %18, align 4, !tbaa !9
  br label %150

150:                                              ; preds = %283, %149
  %151 = load i32, ptr %18, align 4, !tbaa !9
  %152 = sext i32 %151 to i64
  %153 = load i64, ptr @M, align 8, !tbaa !5
  %154 = icmp slt i64 %152, %153
  br i1 %154, label %156, label %155

155:                                              ; preds = %150
  store i32 22, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #8
  br label %286

156:                                              ; preds = %150
  %157 = load i32, ptr %3, align 4, !tbaa !9
  %158 = sext i32 %157 to i64
  %159 = getelementptr inbounds [2 x [610 x [610 x i32]]], ptr @color, i64 0, i64 %158
  %160 = load i32, ptr %17, align 4, !tbaa !9
  %161 = sext i32 %160 to i64
  %162 = getelementptr inbounds [610 x [610 x i32]], ptr %159, i64 0, i64 %161
  %163 = load i32, ptr %18, align 4, !tbaa !9
  %164 = sext i32 %163 to i64
  %165 = getelementptr inbounds [610 x i32], ptr %162, i64 0, i64 %164
  %166 = load i32, ptr %165, align 4, !tbaa !9
  %167 = icmp eq i32 %166, -1
  br i1 %167, label %168, label %282

168:                                              ; preds = %156
  call void @llvm.lifetime.start.p0(i64 80, ptr %19) #8
  call void @_ZNSt5stackISt5tupleIJxxEESt5dequeIS1_SaIS1_EEEC2IS4_vEEv(ptr noundef nonnull align 8 dereferenceable(80) %19)
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #8
  call void @_ZNSt5tupleIJxxEEC2IRiS2_TnNSt9enable_ifIXclsr4_TCCIXntcl14__is_alloc_argIT_EEEEE29__is_implicitly_constructibleIS4_T0_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef nonnull align 4 dereferenceable(4) %17, ptr noundef nonnull align 4 dereferenceable(4) %18) #8
  invoke void @_ZNSt5stackISt5tupleIJxxEESt5dequeIS1_SaIS1_EEE4pushEOS1_(ptr noundef nonnull align 8 dereferenceable(80) %19, ptr noundef nonnull align 8 dereferenceable(16) %20)
          to label %169 unwind label %213

169:                                              ; preds = %168
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #8
  %170 = load i32, ptr %3, align 4, !tbaa !9
  %171 = sext i32 %170 to i64
  %172 = getelementptr inbounds [2 x [610 x [610 x i32]]], ptr @color, i64 0, i64 %171
  %173 = load i32, ptr %17, align 4, !tbaa !9
  %174 = sext i32 %173 to i64
  %175 = getelementptr inbounds [610 x [610 x i32]], ptr %172, i64 0, i64 %174
  %176 = load i32, ptr %18, align 4, !tbaa !9
  %177 = sext i32 %176 to i64
  %178 = getelementptr inbounds [610 x i32], ptr %175, i64 0, i64 %177
  store i32 0, ptr %178, align 4, !tbaa !9
  br label %179

179:                                              ; preds = %277, %169
  %180 = invoke noundef zeroext i1 @_ZNKSt5stackISt5tupleIJxxEESt5dequeIS1_SaIS1_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %19)
          to label %181 unwind label %217

181:                                              ; preds = %179
  %182 = xor i1 %180, true
  br i1 %182, label %183, label %280

183:                                              ; preds = %181
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #8
  %184 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt5stackISt5tupleIJxxEESt5dequeIS1_SaIS1_EEE3topEv(ptr noundef nonnull align 8 dereferenceable(80) %19)
          to label %185 unwind label %221

185:                                              ; preds = %183
  %186 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm0EJxxEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 8 dereferenceable(16) %184) #8
  %187 = load i64, ptr %186, align 8, !tbaa !5
  %188 = trunc i64 %187 to i32
  store i32 %188, ptr %23, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #8
  %189 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt5stackISt5tupleIJxxEESt5dequeIS1_SaIS1_EEE3topEv(ptr noundef nonnull align 8 dereferenceable(80) %19)
          to label %190 unwind label %225

190:                                              ; preds = %185
  %191 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm1EJxxEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 8 dereferenceable(16) %189) #8
  %192 = load i64, ptr %191, align 8, !tbaa !5
  %193 = trunc i64 %192 to i32
  store i32 %193, ptr %24, align 4, !tbaa !9
  invoke void @_ZNSt5stackISt5tupleIJxxEESt5dequeIS1_SaIS1_EEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %19)
          to label %194 unwind label %225

194:                                              ; preds = %190
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #8
  %195 = load i32, ptr %3, align 4, !tbaa !9
  %196 = sext i32 %195 to i64
  %197 = getelementptr inbounds [2 x [610 x [610 x %"class.std::vector"]]], ptr @V, i64 0, i64 %196
  %198 = load i32, ptr %23, align 4, !tbaa !9
  %199 = sext i32 %198 to i64
  %200 = getelementptr inbounds [610 x [610 x %"class.std::vector"]], ptr %197, i64 0, i64 %199
  %201 = load i32, ptr %24, align 4, !tbaa !9
  %202 = sext i32 %201 to i64
  %203 = getelementptr inbounds [610 x %"class.std::vector"], ptr %200, i64 0, i64 %202
  store ptr %203, ptr %25, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #8
  %204 = load ptr, ptr %25, align 8, !tbaa !14
  %205 = call ptr @_ZNSt6vectorISt5tupleIJxxEESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %204) #8
  %206 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %26, i32 0, i32 0
  store ptr %205, ptr %206, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #8
  %207 = load ptr, ptr %25, align 8, !tbaa !14
  %208 = call ptr @_ZNSt6vectorISt5tupleIJxxEESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %207) #8
  %209 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %27, i32 0, i32 0
  store ptr %208, ptr %209, align 8
  br label %210

210:                                              ; preds = %275, %194
  %211 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt5tupleIJxxEESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %26, ptr noundef nonnull align 8 dereferenceable(8) %27) #8
  br i1 %211, label %229, label %212

212:                                              ; preds = %210
  store i32 27, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #8
  br label %277

213:                                              ; preds = %168
  %214 = landingpad { ptr, i32 }
          cleanup
  %215 = extractvalue { ptr, i32 } %214, 0
  store ptr %215, ptr %21, align 8
  %216 = extractvalue { ptr, i32 } %214, 1
  store i32 %216, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #8
  br label %281

217:                                              ; preds = %179
  %218 = landingpad { ptr, i32 }
          cleanup
  %219 = extractvalue { ptr, i32 } %218, 0
  store ptr %219, ptr %21, align 8
  %220 = extractvalue { ptr, i32 } %218, 1
  store i32 %220, ptr %22, align 4
  br label %281

221:                                              ; preds = %183
  %222 = landingpad { ptr, i32 }
          cleanup
  %223 = extractvalue { ptr, i32 } %222, 0
  store ptr %223, ptr %21, align 8
  %224 = extractvalue { ptr, i32 } %222, 1
  store i32 %224, ptr %22, align 4
  br label %279

225:                                              ; preds = %190, %185
  %226 = landingpad { ptr, i32 }
          cleanup
  %227 = extractvalue { ptr, i32 } %226, 0
  store ptr %227, ptr %21, align 8
  %228 = extractvalue { ptr, i32 } %226, 1
  store i32 %228, ptr %22, align 4
  br label %278

229:                                              ; preds = %210
  call void @llvm.lifetime.start.p0(i64 16, ptr %28) #8
  %230 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt5tupleIJxxEESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %26) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %28, ptr align 8 %230, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #8
  %231 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm0EJxxEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 8 dereferenceable(16) %28) #8
  %232 = load i64, ptr %231, align 8, !tbaa !5
  %233 = trunc i64 %232 to i32
  store i32 %233, ptr %29, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #8
  %234 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm1EJxxEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 8 dereferenceable(16) %28) #8
  %235 = load i64, ptr %234, align 8, !tbaa !5
  %236 = trunc i64 %235 to i32
  store i32 %236, ptr %30, align 4, !tbaa !9
  %237 = load i32, ptr %3, align 4, !tbaa !9
  %238 = sext i32 %237 to i64
  %239 = getelementptr inbounds [2 x [610 x [610 x i32]]], ptr @color, i64 0, i64 %238
  %240 = load i32, ptr %29, align 4, !tbaa !9
  %241 = sext i32 %240 to i64
  %242 = getelementptr inbounds [610 x [610 x i32]], ptr %239, i64 0, i64 %241
  %243 = load i32, ptr %30, align 4, !tbaa !9
  %244 = sext i32 %243 to i64
  %245 = getelementptr inbounds [610 x i32], ptr %242, i64 0, i64 %244
  %246 = load i32, ptr %245, align 4, !tbaa !9
  %247 = icmp eq i32 %246, -1
  br i1 %247, label %248, label %274

248:                                              ; preds = %229
  %249 = load i32, ptr %3, align 4, !tbaa !9
  %250 = sext i32 %249 to i64
  %251 = getelementptr inbounds [2 x [610 x [610 x i32]]], ptr @color, i64 0, i64 %250
  %252 = load i32, ptr %23, align 4, !tbaa !9
  %253 = sext i32 %252 to i64
  %254 = getelementptr inbounds [610 x [610 x i32]], ptr %251, i64 0, i64 %253
  %255 = load i32, ptr %24, align 4, !tbaa !9
  %256 = sext i32 %255 to i64
  %257 = getelementptr inbounds [610 x i32], ptr %254, i64 0, i64 %256
  %258 = load i32, ptr %257, align 4, !tbaa !9
  %259 = sub nsw i32 1, %258
  %260 = load i32, ptr %3, align 4, !tbaa !9
  %261 = sext i32 %260 to i64
  %262 = getelementptr inbounds [2 x [610 x [610 x i32]]], ptr @color, i64 0, i64 %261
  %263 = load i32, ptr %29, align 4, !tbaa !9
  %264 = sext i32 %263 to i64
  %265 = getelementptr inbounds [610 x [610 x i32]], ptr %262, i64 0, i64 %264
  %266 = load i32, ptr %30, align 4, !tbaa !9
  %267 = sext i32 %266 to i64
  %268 = getelementptr inbounds [610 x i32], ptr %265, i64 0, i64 %267
  store i32 %259, ptr %268, align 4, !tbaa !9
  invoke void @_ZNSt5stackISt5tupleIJxxEESt5dequeIS1_SaIS1_EEE4pushERKS1_(ptr noundef nonnull align 8 dereferenceable(80) %19, ptr noundef nonnull align 8 dereferenceable(16) %28)
          to label %269 unwind label %270

269:                                              ; preds = %248
  br label %274

270:                                              ; preds = %248
  %271 = landingpad { ptr, i32 }
          cleanup
  %272 = extractvalue { ptr, i32 } %271, 0
  store ptr %272, ptr %21, align 8
  %273 = extractvalue { ptr, i32 } %271, 1
  store i32 %273, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #8
  br label %278

274:                                              ; preds = %269, %229
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #8
  br label %275

275:                                              ; preds = %274
  %276 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt5tupleIJxxEESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %26) #8
  br label %210

277:                                              ; preds = %212
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #8
  br label %179, !llvm.loop !18

278:                                              ; preds = %270, %225
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #8
  br label %279

279:                                              ; preds = %278, %221
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #8
  br label %281

280:                                              ; preds = %181
  call void @_ZNSt5stackISt5tupleIJxxEESt5dequeIS1_SaIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %19) #8
  call void @llvm.lifetime.end.p0(i64 80, ptr %19) #8
  br label %282

281:                                              ; preds = %279, %217, %213
  call void @_ZNSt5stackISt5tupleIJxxEESt5dequeIS1_SaIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %19) #8
  call void @llvm.lifetime.end.p0(i64 80, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #8
  br label %434

282:                                              ; preds = %280, %156
  br label %283

283:                                              ; preds = %282
  %284 = load i32, ptr %18, align 4, !tbaa !9
  %285 = add nsw i32 %284, 1
  store i32 %285, ptr %18, align 4, !tbaa !9
  br label %150, !llvm.loop !19

286:                                              ; preds = %155
  br label %287

287:                                              ; preds = %286
  %288 = load i32, ptr %17, align 4, !tbaa !9
  %289 = add nsw i32 %288, 1
  store i32 %289, ptr %17, align 4, !tbaa !9
  br label %143, !llvm.loop !20

290:                                              ; preds = %148
  br label %291

291:                                              ; preds = %290
  %292 = load i32, ptr %3, align 4, !tbaa !9
  %293 = add nsw i32 %292, 1
  store i32 %293, ptr %3, align 4, !tbaa !9
  br label %46, !llvm.loop !21

294:                                              ; preds = %49
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #8
  store i32 0, ptr %31, align 4, !tbaa !9
  br label %295

295:                                              ; preds = %426, %294
  %296 = load i32, ptr %31, align 4, !tbaa !9
  %297 = icmp slt i32 %296, 2
  br i1 %297, label %299, label %298

298:                                              ; preds = %295
  store i32 29, ptr %4, align 4
  br label %429

299:                                              ; preds = %295
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #8
  store i32 0, ptr %32, align 4, !tbaa !9
  br label %300

300:                                              ; preds = %420, %299
  %301 = load i32, ptr %32, align 4, !tbaa !9
  %302 = icmp slt i32 %301, 2
  br i1 %302, label %304, label %303

303:                                              ; preds = %300
  store i32 32, ptr %4, align 4
  br label %423

304:                                              ; preds = %300
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #8
  store i32 0, ptr %33, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #8
  store i32 0, ptr %34, align 4, !tbaa !9
  br label %305

305:                                              ; preds = %346, %304
  %306 = load i32, ptr %34, align 4, !tbaa !9
  %307 = sext i32 %306 to i64
  %308 = load i64, ptr @M, align 8, !tbaa !5
  %309 = icmp slt i64 %307, %308
  br i1 %309, label %311, label %310

310:                                              ; preds = %305
  store i32 35, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #8
  br label %349

311:                                              ; preds = %305
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #8
  store i32 0, ptr %35, align 4, !tbaa !9
  br label %312

312:                                              ; preds = %342, %311
  %313 = load i32, ptr %35, align 4, !tbaa !9
  %314 = sext i32 %313 to i64
  %315 = load i64, ptr @M, align 8, !tbaa !5
  %316 = icmp slt i64 %314, %315
  br i1 %316, label %318, label %317

317:                                              ; preds = %312
  store i32 38, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #8
  br label %345

318:                                              ; preds = %312
  %319 = load i32, ptr %34, align 4, !tbaa !9
  %320 = sext i32 %319 to i64
  %321 = getelementptr inbounds [610 x [610 x i32]], ptr @color, i64 0, i64 %320
  %322 = load i32, ptr %35, align 4, !tbaa !9
  %323 = sext i32 %322 to i64
  %324 = getelementptr inbounds [610 x i32], ptr %321, i64 0, i64 %323
  %325 = load i32, ptr %324, align 4, !tbaa !9
  %326 = load i32, ptr %31, align 4, !tbaa !9
  %327 = icmp eq i32 %325, %326
  br i1 %327, label %328, label %341

328:                                              ; preds = %318
  %329 = load i32, ptr %34, align 4, !tbaa !9
  %330 = sext i32 %329 to i64
  %331 = getelementptr inbounds [610 x [610 x i32]], ptr getelementptr inbounds ([2 x [610 x [610 x i32]]], ptr @color, i64 0, i64 1), i64 0, i64 %330
  %332 = load i32, ptr %35, align 4, !tbaa !9
  %333 = sext i32 %332 to i64
  %334 = getelementptr inbounds [610 x i32], ptr %331, i64 0, i64 %333
  %335 = load i32, ptr %334, align 4, !tbaa !9
  %336 = load i32, ptr %32, align 4, !tbaa !9
  %337 = icmp eq i32 %335, %336
  br i1 %337, label %338, label %341

338:                                              ; preds = %328
  %339 = load i32, ptr %33, align 4, !tbaa !9
  %340 = add nsw i32 %339, 1
  store i32 %340, ptr %33, align 4, !tbaa !9
  br label %341

341:                                              ; preds = %338, %328, %318
  br label %342

342:                                              ; preds = %341
  %343 = load i32, ptr %35, align 4, !tbaa !9
  %344 = add nsw i32 %343, 1
  store i32 %344, ptr %35, align 4, !tbaa !9
  br label %312, !llvm.loop !22

345:                                              ; preds = %317
  br label %346

346:                                              ; preds = %345
  %347 = load i32, ptr %34, align 4, !tbaa !9
  %348 = add nsw i32 %347, 1
  store i32 %348, ptr %34, align 4, !tbaa !9
  br label %305, !llvm.loop !23

349:                                              ; preds = %310
  %350 = load i32, ptr %33, align 4, !tbaa !9
  %351 = sext i32 %350 to i64
  %352 = load i64, ptr @K, align 8, !tbaa !5
  %353 = icmp sge i64 %351, %352
  br i1 %353, label %354, label %416

354:                                              ; preds = %349
  %355 = load i64, ptr @K, align 8, !tbaa !5
  %356 = trunc i64 %355 to i32
  store i32 %356, ptr %33, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #8
  store i32 0, ptr %36, align 4, !tbaa !9
  br label %357

357:                                              ; preds = %410, %354
  %358 = load i32, ptr %36, align 4, !tbaa !9
  %359 = sext i32 %358 to i64
  %360 = load i64, ptr @M, align 8, !tbaa !5
  %361 = icmp slt i64 %359, %360
  br i1 %361, label %363, label %362

362:                                              ; preds = %357
  store i32 41, ptr %4, align 4
  br label %413

363:                                              ; preds = %357
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #8
  store i32 0, ptr %37, align 4, !tbaa !9
  br label %364

364:                                              ; preds = %404, %363
  %365 = load i32, ptr %37, align 4, !tbaa !9
  %366 = sext i32 %365 to i64
  %367 = load i64, ptr @M, align 8, !tbaa !5
  %368 = icmp slt i64 %366, %367
  br i1 %368, label %370, label %369

369:                                              ; preds = %364
  store i32 44, ptr %4, align 4
  br label %407

370:                                              ; preds = %364
  %371 = load i32, ptr %36, align 4, !tbaa !9
  %372 = sext i32 %371 to i64
  %373 = getelementptr inbounds [610 x [610 x i32]], ptr @color, i64 0, i64 %372
  %374 = load i32, ptr %37, align 4, !tbaa !9
  %375 = sext i32 %374 to i64
  %376 = getelementptr inbounds [610 x i32], ptr %373, i64 0, i64 %375
  %377 = load i32, ptr %376, align 4, !tbaa !9
  %378 = load i32, ptr %31, align 4, !tbaa !9
  %379 = icmp eq i32 %377, %378
  br i1 %379, label %380, label %403

380:                                              ; preds = %370
  %381 = load i32, ptr %36, align 4, !tbaa !9
  %382 = sext i32 %381 to i64
  %383 = getelementptr inbounds [610 x [610 x i32]], ptr getelementptr inbounds ([2 x [610 x [610 x i32]]], ptr @color, i64 0, i64 1), i64 0, i64 %382
  %384 = load i32, ptr %37, align 4, !tbaa !9
  %385 = sext i32 %384 to i64
  %386 = getelementptr inbounds [610 x i32], ptr %383, i64 0, i64 %385
  %387 = load i32, ptr %386, align 4, !tbaa !9
  %388 = load i32, ptr %32, align 4, !tbaa !9
  %389 = icmp eq i32 %387, %388
  br i1 %389, label %390, label %403

390:                                              ; preds = %380
  %391 = load i32, ptr %36, align 4, !tbaa !9
  %392 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %391)
  %393 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %392, ptr noundef @.str)
  %394 = load i32, ptr %37, align 4, !tbaa !9
  %395 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %393, i32 noundef %394)
  %396 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %395, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %397 = load i32, ptr %33, align 4, !tbaa !9
  %398 = add nsw i32 %397, -1
  store i32 %398, ptr %33, align 4, !tbaa !9
  %399 = load i32, ptr %33, align 4, !tbaa !9
  %400 = icmp eq i32 %399, 0
  br i1 %400, label %401, label %402

401:                                              ; preds = %390
  store i32 0, ptr %1, align 4
  store i32 1, ptr %4, align 4
  br label %407

402:                                              ; preds = %390
  br label %403

403:                                              ; preds = %402, %380, %370
  br label %404

404:                                              ; preds = %403
  %405 = load i32, ptr %37, align 4, !tbaa !9
  %406 = add nsw i32 %405, 1
  store i32 %406, ptr %37, align 4, !tbaa !9
  br label %364, !llvm.loop !24

407:                                              ; preds = %401, %369
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #8
  %408 = load i32, ptr %4, align 4
  switch i32 %408, label %413 [
    i32 44, label %409
  ]

409:                                              ; preds = %407
  br label %410

410:                                              ; preds = %409
  %411 = load i32, ptr %36, align 4, !tbaa !9
  %412 = add nsw i32 %411, 1
  store i32 %412, ptr %36, align 4, !tbaa !9
  br label %357, !llvm.loop !25

413:                                              ; preds = %407, %362
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #8
  %414 = load i32, ptr %4, align 4
  switch i32 %414, label %417 [
    i32 41, label %415
  ]

415:                                              ; preds = %413
  br label %416

416:                                              ; preds = %415, %349
  store i32 0, ptr %4, align 4
  br label %417

417:                                              ; preds = %416, %413
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #8
  %418 = load i32, ptr %4, align 4
  switch i32 %418, label %423 [
    i32 0, label %419
  ]

419:                                              ; preds = %417
  br label %420

420:                                              ; preds = %419
  %421 = load i32, ptr %32, align 4, !tbaa !9
  %422 = add nsw i32 %421, 1
  store i32 %422, ptr %32, align 4, !tbaa !9
  br label %300, !llvm.loop !26

423:                                              ; preds = %417, %303
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #8
  %424 = load i32, ptr %4, align 4
  switch i32 %424, label %429 [
    i32 32, label %425
  ]

425:                                              ; preds = %423
  br label %426

426:                                              ; preds = %425
  %427 = load i32, ptr %31, align 4, !tbaa !9
  %428 = add nsw i32 %427, 1
  store i32 %428, ptr %31, align 4, !tbaa !9
  br label %295, !llvm.loop !27

429:                                              ; preds = %423, %298
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #8
  %430 = load i32, ptr %4, align 4
  switch i32 %430, label %439 [
    i32 29, label %431
    i32 1, label %432
  ]

431:                                              ; preds = %429
  store i32 1, ptr %1, align 4
  br label %432

432:                                              ; preds = %431, %429
  %433 = load i32, ptr %1, align 4
  ret i32 %433

434:                                              ; preds = %281
  %435 = load ptr, ptr %21, align 8
  %436 = load i32, ptr %22, align 4
  %437 = insertvalue { ptr, i32 } poison, ptr %435, 0
  %438 = insertvalue { ptr, i32 } %437, i32 %436, 1
  resume { ptr, i32 } %438

439:                                              ; preds = %429
  unreachable
}

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

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

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

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

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

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

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

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #6

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt5stackISt5tupleIJxxEESt5dequeIS1_SaIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #5 align 2

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

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

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

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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 = { 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 #6 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { 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 = !{!"long long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = !{!15, !15, i64 0}
!15 = !{!"any pointer", !7, i64 0}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !12}
!19 = distinct !{!19, !12}
!20 = distinct !{!20, !12}
!21 = distinct !{!21, !12}
!22 = distinct !{!22, !12}
!23 = distinct !{!23, !12}
!24 = distinct !{!24, !12}
!25 = distinct !{!25, !12}
!26 = distinct !{!26, !12}
!27 = distinct !{!27, !12}


; 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::tuple<long long, long long>, std::allocator<std::tuple<long long, long long>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::tuple<long long, long long>, std::allocator<std::tuple<long long, long long>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::tuple<long long, long long>, std::allocator<std::tuple<long long, long long>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::tuple<long long, long long>, std::allocator<std::tuple<long long, long long>>>::_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" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Tuple_impl.0", %"struct.std::_Head_base.1" }
%"struct.std::_Tuple_impl.0" = type { %"struct.std::_Head_base" }
%"struct.std::_Head_base" = type { i64 }
%"struct.std::_Head_base.1" = type { i64 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.std::stack" = type { %"class.std::deque" }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<std::tuple<long long, long long>, std::allocator<std::tuple<long long, long long>>>::_Deque_impl" }
%"struct.std::_Deque_base<std::tuple<long long, long long>, std::allocator<std::tuple<long long, long long>>>::_Deque_impl" = type { %"struct.std::_Deque_base<std::tuple<long long, long long>, std::allocator<std::tuple<long long, long long>>>::_Deque_impl_data" }
%"struct.std::_Deque_base<std::tuple<long long, long long>, std::allocator<std::tuple<long long, long long>>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator", %"struct.std::_Deque_iterator" }
%"struct.std::_Deque_iterator" = type { ptr, ptr, ptr, ptr }

@N = external dso_local global i64, align 8
@D = external dso_local global [2 x i64], align 16
@M = external dso_local local_unnamed_addr global i64, align 8
@K = external dso_local local_unnamed_addr global i64, align 8
@color = external dso_local global [2 x [610 x [610 x i32]]], align 16
@V = external dso_local global [2 x [610 x [610 x %"class.std::vector"]]], align 16
@W = external dso_local global [2 x %"class.std::vector"], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZplRKSt5tupleIJxxEES2_(ptr dead_on_unwind noalias writable sret(%"class.std::tuple") align 8, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #0

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z5validSt5tupleIJxxEE(ptr noundef) local_unnamed_addr #0

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef range(i32 0, 2) i32 @main() local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i64, align 8
  %3 = alloca i64, align 8
  %4 = alloca %"class.std::tuple", align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca %"class.std::tuple", align 8
  %8 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %9 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %10 = alloca %"class.std::tuple", align 8
  %11 = alloca %"class.std::tuple", align 8
  %12 = alloca %"class.std::tuple", align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca %"class.std::stack", align 8
  %16 = alloca %"class.std::tuple", align 8
  %17 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %18 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %19 = alloca %"class.std::tuple", align 8
  %20 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) @N)
  %21 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef nonnull align 8 dereferenceable(8) @D)
  %22 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %21, ptr noundef nonnull align 8 dereferenceable(8) getelementptr inbounds (i8, ptr @D, i64 8))
  %23 = load i64, ptr @N, align 8, !tbaa !5
  %24 = mul nsw i64 %23, %23
  store i64 %24, ptr @K, align 8, !tbaa !5
  %25 = shl nsw i64 %23, 1
  store i64 %25, ptr @M, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #8
  store i32 -1, ptr %1, align 4, !tbaa !9
  call void @_ZSt4fillIPiiEvT_S1_RKT0_(ptr noundef nonnull @color, ptr noundef nonnull getelementptr inbounds (i8, ptr @color, i64 2976800), ptr noundef nonnull align 4 dereferenceable(4) %1)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #8
  %.pre = load i64, ptr @M, align 8, !tbaa !5
  br label %26

26:                                               ; preds = %0, %._crit_edge148
  %27 = phi i64 [ %.pre, %0 ], [ %105, %._crit_edge148 ]
  %28 = phi i64 [ %.pre, %0 ], [ %106, %._crit_edge148 ]
  %29 = phi i64 [ %.pre, %0 ], [ %107, %._crit_edge148 ]
  %30 = phi i1 [ true, %0 ], [ false, %._crit_edge148 ]
  %indvars.iv182 = phi i64 [ 0, %0 ], [ 1, %._crit_edge148 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #8
  %31 = sub i64 1, %29
  store i64 %31, ptr %2, align 8, !tbaa !5
  %32 = icmp slt i64 %31, %29
  br i1 %32, label %.lr.ph125, label %._crit_edge126

.lr.ph125:                                        ; preds = %26
  %33 = getelementptr inbounds [2 x i64], ptr @D, i64 0, i64 %indvars.iv182
  %34 = getelementptr inbounds [2 x %"class.std::vector"], ptr @W, i64 0, i64 %indvars.iv182
  br label %41

._crit_edge126:                                   ; preds = %._crit_edge, %26
  %35 = phi i64 [ %27, %26 ], [ %49, %._crit_edge ]
  %36 = phi i64 [ %28, %26 ], [ %50, %._crit_edge ]
  %37 = phi i64 [ %29, %26 ], [ %51, %._crit_edge ]
  %38 = phi i64 [ %29, %26 ], [ %52, %._crit_edge ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #8
  store i32 0, ptr %5, align 4, !tbaa !9
  %39 = icmp sgt i64 %38, 0
  br i1 %39, label %.lr.ph134.split.preheader, label %._crit_edge135

.lr.ph134.split.preheader:                        ; preds = %._crit_edge126
  %40 = getelementptr inbounds [2 x %"class.std::vector"], ptr @W, i64 0, i64 %indvars.iv182
  br label %.lr.ph134.split

41:                                               ; preds = %.lr.ph125, %._crit_edge
  %42 = phi i64 [ %27, %.lr.ph125 ], [ %49, %._crit_edge ]
  %43 = phi i64 [ %28, %.lr.ph125 ], [ %50, %._crit_edge ]
  %44 = phi i64 [ %29, %.lr.ph125 ], [ %51, %._crit_edge ]
  %45 = phi i64 [ %29, %.lr.ph125 ], [ %52, %._crit_edge ]
  %46 = phi i64 [ %31, %.lr.ph125 ], [ %54, %._crit_edge ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #8
  %47 = sub i64 1, %45
  store i64 %47, ptr %3, align 8, !tbaa !5
  %48 = icmp slt i64 %47, %45
  br i1 %48, label %.lr.ph, label %._crit_edge

._crit_edge.loopexit:                             ; preds = %63
  %.pre248 = load i64, ptr %2, align 8, !tbaa !5
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %41
  %49 = phi i64 [ %66, %._crit_edge.loopexit ], [ %42, %41 ]
  %50 = phi i64 [ %66, %._crit_edge.loopexit ], [ %43, %41 ]
  %51 = phi i64 [ %66, %._crit_edge.loopexit ], [ %44, %41 ]
  %52 = phi i64 [ %66, %._crit_edge.loopexit ], [ %45, %41 ]
  %53 = phi i64 [ %.pre248, %._crit_edge.loopexit ], [ %46, %41 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #8
  %54 = add nsw i64 %53, 1
  store i64 %54, ptr %2, align 8, !tbaa !5
  %55 = icmp slt i64 %54, %52
  br i1 %55, label %41, label %._crit_edge126, !llvm.loop !11

.lr.ph:                                           ; preds = %41, %63
  %storemerge103123 = phi i64 [ %65, %63 ], [ %47, %41 ]
  %56 = load i64, ptr %2, align 8, !tbaa !5
  %57 = trunc i64 %56 to i32
  %58 = trunc i64 %storemerge103123 to i32
  %59 = call noundef i64 @_Z5dist2ii(i32 noundef %57, i32 noundef %58)
  %60 = load i64, ptr %33, align 8, !tbaa !5
  %61 = icmp eq i64 %59, %60
  br i1 %61, label %62, label %63

62:                                               ; preds = %.lr.ph
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #8
  call void @_ZNSt5tupleIJxxEEC2IRxS2_TnNSt9enable_ifIXclsr4_TCCIXntcl14__is_alloc_argIT_EEEEE29__is_implicitly_constructibleIS4_T0_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3) #8
  call void @_ZNSt6vectorISt5tupleIJxxEESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %34, ptr noundef nonnull align 8 dereferenceable(16) %4)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #8
  br label %63

63:                                               ; preds = %.lr.ph, %62
  %64 = load i64, ptr %3, align 8, !tbaa !5
  %65 = add nsw i64 %64, 1
  store i64 %65, ptr %3, align 8, !tbaa !5
  %66 = load i64, ptr @M, align 8, !tbaa !5
  %67 = icmp slt i64 %65, %66
  br i1 %67, label %.lr.ph, label %._crit_edge.loopexit, !llvm.loop !13

._crit_edge135:                                   ; preds = %._crit_edge132, %._crit_edge126
  %68 = phi i64 [ %35, %._crit_edge126 ], [ %78, %._crit_edge132 ]
  %69 = phi i64 [ %36, %._crit_edge126 ], [ %79, %._crit_edge132 ]
  %70 = phi i64 [ %37, %._crit_edge126 ], [ %80, %._crit_edge132 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #8
  store i32 0, ptr %13, align 4, !tbaa !9
  %71 = icmp sgt i64 %70, 0
  br i1 %71, label %.lr.ph147.split, label %._crit_edge148

.lr.ph134.split:                                  ; preds = %.lr.ph134.split.preheader, %._crit_edge132
  %72 = phi i64 [ %35, %.lr.ph134.split.preheader ], [ %78, %._crit_edge132 ]
  %73 = phi i64 [ %36, %.lr.ph134.split.preheader ], [ %79, %._crit_edge132 ]
  %74 = phi i64 [ %37, %.lr.ph134.split.preheader ], [ %80, %._crit_edge132 ]
  %75 = phi i64 [ %38, %.lr.ph134.split.preheader ], [ %81, %._crit_edge132 ]
  %76 = phi i32 [ 0, %.lr.ph134.split.preheader ], [ %83, %._crit_edge132 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #8
  store i32 0, ptr %6, align 4, !tbaa !9
  %77 = icmp sgt i64 %75, 0
  br i1 %77, label %.lr.ph131, label %._crit_edge132

._crit_edge132.loopexit:                          ; preds = %._crit_edge129
  %.pre249 = load i32, ptr %5, align 4, !tbaa !9
  br label %._crit_edge132

._crit_edge132:                                   ; preds = %._crit_edge132.loopexit, %.lr.ph134.split
  %78 = phi i64 [ %92, %._crit_edge132.loopexit ], [ %72, %.lr.ph134.split ]
  %79 = phi i64 [ %92, %._crit_edge132.loopexit ], [ %73, %.lr.ph134.split ]
  %80 = phi i64 [ %92, %._crit_edge132.loopexit ], [ %74, %.lr.ph134.split ]
  %81 = phi i64 [ %92, %._crit_edge132.loopexit ], [ %75, %.lr.ph134.split ]
  %82 = phi i32 [ %.pre249, %._crit_edge132.loopexit ], [ %76, %.lr.ph134.split ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #8
  %83 = add nsw i32 %82, 1
  store i32 %83, ptr %5, align 4, !tbaa !9
  %84 = sext i32 %83 to i64
  %85 = icmp sgt i64 %81, %84
  br i1 %85, label %.lr.ph134.split, label %._crit_edge135, !llvm.loop !14

.lr.ph131:                                        ; preds = %.lr.ph134.split, %._crit_edge129
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #8
  call void @_ZNSt5tupleIJxxEEC2IRiS2_TnNSt9enable_ifIXclsr4_TCCIXntcl14__is_alloc_argIT_EEEEE29__is_implicitly_constructibleIS4_T0_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %6) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #8
  %86 = call ptr @_ZNSt6vectorISt5tupleIJxxEESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %40) #8
  store ptr %86, ptr %8, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #8
  %87 = call ptr @_ZNSt6vectorISt5tupleIJxxEESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %40) #8
  store ptr %87, ptr %9, align 8
  %88 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt5tupleIJxxEESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9) #8
  br i1 %88, label %.lr.ph128, label %._crit_edge129

._crit_edge129:                                   ; preds = %102, %.lr.ph131
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #8
  %89 = load i32, ptr %6, align 4, !tbaa !9
  %90 = add nsw i32 %89, 1
  store i32 %90, ptr %6, align 4, !tbaa !9
  %91 = sext i32 %90 to i64
  %92 = load i64, ptr @M, align 8, !tbaa !5
  %93 = icmp sgt i64 %92, %91
  br i1 %93, label %.lr.ph131, label %._crit_edge132.loopexit, !llvm.loop !16

.lr.ph128:                                        ; preds = %.lr.ph131, %102
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #8
  %94 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt5tupleIJxxEESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 8 dereferenceable(16) %94, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #8
  call void @_ZplRKSt5tupleIJxxEES2_(ptr dead_on_unwind nonnull writable sret(%"class.std::tuple") align 8 %11, ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 8 dereferenceable(16) %10)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 8 dereferenceable(16) %11, i64 16, i1 false)
  %95 = call noundef zeroext i1 @_Z5validSt5tupleIJxxEE(ptr noundef nonnull %12)
  br i1 %95, label %96, label %102

96:                                               ; preds = %.lr.ph128
  %97 = load i32, ptr %5, align 4, !tbaa !9
  %98 = sext i32 %97 to i64
  %99 = load i32, ptr %6, align 4, !tbaa !9
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds [2 x [610 x [610 x %"class.std::vector"]]], ptr @V, i64 0, i64 %indvars.iv182, i64 %98, i64 %100
  call void @_ZNSt6vectorISt5tupleIJxxEESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %101, ptr noundef nonnull align 8 dereferenceable(16) %11)
  br label %102

102:                                              ; preds = %96, %.lr.ph128
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #8
  %103 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt5tupleIJxxEESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #8
  %104 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt5tupleIJxxEESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9) #8
  br i1 %104, label %.lr.ph128, label %._crit_edge129

._crit_edge148:                                   ; preds = %._crit_edge145, %._crit_edge135
  %105 = phi i64 [ %68, %._crit_edge135 ], [ %114, %._crit_edge145 ]
  %106 = phi i64 [ %69, %._crit_edge135 ], [ %114, %._crit_edge145 ]
  %107 = phi i64 [ %70, %._crit_edge135 ], [ %114, %._crit_edge145 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #8
  br i1 %30, label %26, label %.preheader118.preheader, !llvm.loop !17

.preheader118.preheader:                          ; preds = %._crit_edge148
  %108 = icmp sgt i64 %105, 0
  br i1 %108, label %.preheader116.us.preheader, label %._crit_edge158.split.us.1

.preheader116.us.preheader:                       ; preds = %.preheader118.preheader
  %xtraiter = and i64 %105, 1
  %109 = icmp eq i64 %105, 1
  %unroll_iter = and i64 %105, 9223372036854775806
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br label %.preheader116.us

.lr.ph147.split:                                  ; preds = %._crit_edge135, %._crit_edge145
  %110 = phi i64 [ %114, %._crit_edge145 ], [ %68, %._crit_edge135 ]
  %111 = phi i32 [ %116, %._crit_edge145 ], [ 0, %._crit_edge135 ]
  %112 = phi i64 [ %114, %._crit_edge145 ], [ %69, %._crit_edge135 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #8
  store i32 0, ptr %14, align 4, !tbaa !9
  %113 = icmp sgt i64 %112, 0
  br i1 %113, label %.lr.ph144, label %._crit_edge145

._crit_edge145.loopexit:                          ; preds = %172
  %.pre252 = load i32, ptr %13, align 4, !tbaa !9
  br label %._crit_edge145

._crit_edge145:                                   ; preds = %._crit_edge145.loopexit, %.lr.ph147.split
  %114 = phi i64 [ %173, %._crit_edge145.loopexit ], [ %110, %.lr.ph147.split ]
  %115 = phi i32 [ %.pre252, %._crit_edge145.loopexit ], [ %111, %.lr.ph147.split ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #8
  %116 = add nsw i32 %115, 1
  store i32 %116, ptr %13, align 4, !tbaa !9
  %117 = sext i32 %116 to i64
  %118 = icmp sgt i64 %114, %117
  br i1 %118, label %.lr.ph147.split, label %._crit_edge148, !llvm.loop !18

.lr.ph144:                                        ; preds = %.lr.ph147.split, %172
  %119 = phi i64 [ %173, %172 ], [ %110, %.lr.ph147.split ]
  %120 = phi i64 [ %174, %172 ], [ %112, %.lr.ph147.split ]
  %121 = phi i32 [ %176, %172 ], [ 0, %.lr.ph147.split ]
  %122 = phi i64 [ %177, %172 ], [ 0, %.lr.ph147.split ]
  %123 = load i32, ptr %13, align 4, !tbaa !9
  %124 = sext i32 %123 to i64
  %125 = getelementptr inbounds [2 x [610 x [610 x i32]]], ptr @color, i64 0, i64 %indvars.iv182, i64 %124, i64 %122
  %126 = load i32, ptr %125, align 4, !tbaa !9
  %127 = icmp eq i32 %126, -1
  br i1 %127, label %128, label %172

128:                                              ; preds = %.lr.ph144
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %15) #8
  call void @_ZNSt5stackISt5tupleIJxxEESt5dequeIS1_SaIS1_EEEC2IS4_vEEv(ptr noundef nonnull align 8 dereferenceable(80) %15)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %16) #8
  call void @_ZNSt5tupleIJxxEEC2IRiS2_TnNSt9enable_ifIXclsr4_TCCIXntcl14__is_alloc_argIT_EEEEE29__is_implicitly_constructibleIS4_T0_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef nonnull align 4 dereferenceable(4) %13, ptr noundef nonnull align 4 dereferenceable(4) %14) #8
  invoke void @_ZNSt5stackISt5tupleIJxxEESt5dequeIS1_SaIS1_EEE4pushEOS1_(ptr noundef nonnull align 8 dereferenceable(80) %15, ptr noundef nonnull align 8 dereferenceable(16) %16)
          to label %129 unwind label %150

129:                                              ; preds = %128
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #8
  %130 = load i32, ptr %13, align 4, !tbaa !9
  %131 = sext i32 %130 to i64
  %132 = load i32, ptr %14, align 4, !tbaa !9
  %133 = sext i32 %132 to i64
  %134 = getelementptr inbounds [2 x [610 x [610 x i32]]], ptr @color, i64 0, i64 %indvars.iv182, i64 %131, i64 %133
  store i32 0, ptr %134, align 4, !tbaa !9
  %135 = call noundef zeroext i1 @_ZNKSt5stackISt5tupleIJxxEESt5dequeIS1_SaIS1_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %15)
  br i1 %135, label %._crit_edge142, label %.lr.ph141

.lr.ph141:                                        ; preds = %129, %._crit_edge139
  %136 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt5stackISt5tupleIJxxEESt5dequeIS1_SaIS1_EEE3topEv(ptr noundef nonnull align 8 dereferenceable(80) %15)
  %137 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm0EJxxEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 8 dereferenceable(16) %136) #8
  %138 = load i64, ptr %137, align 8, !tbaa !5
  %139 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt5stackISt5tupleIJxxEESt5dequeIS1_SaIS1_EEE3topEv(ptr noundef nonnull align 8 dereferenceable(80) %15)
  %140 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm1EJxxEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 8 dereferenceable(16) %139) #8
  %141 = load i64, ptr %140, align 8, !tbaa !5
  call void @_ZNSt5stackISt5tupleIJxxEESt5dequeIS1_SaIS1_EEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %15)
  %sext = shl i64 %138, 32
  %142 = ashr exact i64 %sext, 32
  %sext98 = shl i64 %141, 32
  %143 = ashr exact i64 %sext98, 32
  %144 = getelementptr inbounds [2 x [610 x [610 x %"class.std::vector"]]], ptr @V, i64 0, i64 %indvars.iv182, i64 %142, i64 %143
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #8
  %145 = call ptr @_ZNSt6vectorISt5tupleIJxxEESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %144) #8
  store ptr %145, ptr %17, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #8
  %146 = call ptr @_ZNSt6vectorISt5tupleIJxxEESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %144) #8
  store ptr %146, ptr %18, align 8
  %147 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt5tupleIJxxEESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %18) #8
  br i1 %147, label %.lr.ph138, label %._crit_edge139

.lr.ph138:                                        ; preds = %.lr.ph141
  %148 = getelementptr inbounds [2 x [610 x [610 x i32]]], ptr @color, i64 0, i64 %indvars.iv182, i64 %142, i64 %143
  br label %152

._crit_edge139:                                   ; preds = %168, %.lr.ph141
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #8
  %149 = call noundef zeroext i1 @_ZNKSt5stackISt5tupleIJxxEESt5dequeIS1_SaIS1_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %15)
  br i1 %149, label %._crit_edge142, label %.lr.ph141, !llvm.loop !19

150:                                              ; preds = %128
  %151 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #8
  br label %171

152:                                              ; preds = %.lr.ph138, %168
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %19) #8
  %153 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt5tupleIJxxEESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %19, ptr noundef nonnull align 8 dereferenceable(16) %153, i64 16, i1 false)
  %154 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm0EJxxEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 8 dereferenceable(16) %19) #8
  %155 = load i64, ptr %154, align 8, !tbaa !5
  %156 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm1EJxxEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 8 dereferenceable(16) %19) #8
  %157 = load i64, ptr %156, align 8, !tbaa !5
  %sext99 = shl i64 %155, 32
  %158 = ashr exact i64 %sext99, 32
  %sext100 = shl i64 %157, 32
  %159 = ashr exact i64 %sext100, 32
  %160 = getelementptr inbounds [2 x [610 x [610 x i32]]], ptr @color, i64 0, i64 %indvars.iv182, i64 %158, i64 %159
  %161 = load i32, ptr %160, align 4, !tbaa !9
  %162 = icmp eq i32 %161, -1
  br i1 %162, label %163, label %168

163:                                              ; preds = %152
  %164 = load i32, ptr %148, align 4, !tbaa !9
  %165 = sub nsw i32 1, %164
  store i32 %165, ptr %160, align 4, !tbaa !9
  invoke void @_ZNSt5stackISt5tupleIJxxEESt5dequeIS1_SaIS1_EEE4pushERKS1_(ptr noundef nonnull align 8 dereferenceable(80) %15, ptr noundef nonnull align 8 dereferenceable(16) %19)
          to label %168 unwind label %166

166:                                              ; preds = %163
  %167 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #8
  br label %171

168:                                              ; preds = %163, %152
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #8
  %169 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt5tupleIJxxEESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #8
  %170 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt5tupleIJxxEESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %18) #8
  br i1 %170, label %152, label %._crit_edge139

._crit_edge142:                                   ; preds = %._crit_edge139, %129
  call void @_ZNSt5stackISt5tupleIJxxEESt5dequeIS1_SaIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %15) #8
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %15) #8
  %.pre250 = load i32, ptr %14, align 4, !tbaa !9
  %.pre251 = load i64, ptr @M, align 8, !tbaa !5
  br label %172

171:                                              ; preds = %166, %150
  %.pn = phi { ptr, i32 } [ %167, %166 ], [ %151, %150 ]
  call void @_ZNSt5stackISt5tupleIJxxEESt5dequeIS1_SaIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %15) #8
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %15) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #8
  resume { ptr, i32 } %.pn

172:                                              ; preds = %.lr.ph144, %._crit_edge142
  %173 = phi i64 [ %119, %.lr.ph144 ], [ %.pre251, %._crit_edge142 ]
  %174 = phi i64 [ %120, %.lr.ph144 ], [ %.pre251, %._crit_edge142 ]
  %175 = phi i32 [ %121, %.lr.ph144 ], [ %.pre250, %._crit_edge142 ]
  %176 = add nsw i32 %175, 1
  store i32 %176, ptr %14, align 4, !tbaa !9
  %177 = sext i32 %176 to i64
  %178 = icmp sgt i64 %174, %177
  br i1 %178, label %.lr.ph144, label %._crit_edge145.loopexit, !llvm.loop !20

.preheader116.us:                                 ; preds = %.preheader116.us.preheader, %._crit_edge155.us
  %indvars.iv188 = phi i64 [ %indvars.iv.next189, %._crit_edge155.us ], [ 0, %.preheader116.us.preheader ]
  %.067156.us = phi i32 [ %.2.us.lcssa, %._crit_edge155.us ], [ 0, %.preheader116.us.preheader ]
  br i1 %109, label %._crit_edge155.us.unr-lcssa, label %.preheader116.us.new

.preheader116.us.new:                             ; preds = %.preheader116.us, %196
  %indvars.iv185 = phi i64 [ %indvars.iv.next186.1340, %196 ], [ 0, %.preheader116.us ]
  %.1152.us = phi i32 [ %.2.us.1339, %196 ], [ %.067156.us, %.preheader116.us ]
  %niter = phi i64 [ %niter.next.1, %196 ], [ 0, %.preheader116.us ]
  %179 = getelementptr inbounds [610 x [610 x i32]], ptr @color, i64 0, i64 %indvars.iv188, i64 %indvars.iv185
  %180 = load i32, ptr %179, align 8, !tbaa !9
  %181 = icmp eq i32 %180, 0
  br i1 %181, label %182, label %187

182:                                              ; preds = %.preheader116.us.new
  %183 = getelementptr inbounds [610 x [610 x i32]], ptr getelementptr inbounds (i8, ptr @color, i64 1488400), i64 0, i64 %indvars.iv188, i64 %indvars.iv185
  %184 = load i32, ptr %183, align 8, !tbaa !9
  %185 = icmp eq i32 %184, 0
  %186 = zext i1 %185 to i32
  %spec.select.us = add nsw i32 %.1152.us, %186
  br label %187

187:                                              ; preds = %182, %.preheader116.us.new
  %.2.us = phi i32 [ %.1152.us, %.preheader116.us.new ], [ %spec.select.us, %182 ]
  %indvars.iv.next186 = or disjoint i64 %indvars.iv185, 1
  %188 = getelementptr inbounds [610 x [610 x i32]], ptr @color, i64 0, i64 %indvars.iv188, i64 %indvars.iv.next186
  %189 = load i32, ptr %188, align 4, !tbaa !9
  %190 = icmp eq i32 %189, 0
  br i1 %190, label %191, label %196

191:                                              ; preds = %187
  %192 = getelementptr inbounds [610 x [610 x i32]], ptr getelementptr inbounds (i8, ptr @color, i64 1488400), i64 0, i64 %indvars.iv188, i64 %indvars.iv.next186
  %193 = load i32, ptr %192, align 4, !tbaa !9
  %194 = icmp eq i32 %193, 0
  %195 = zext i1 %194 to i32
  %spec.select.us.1338 = add nsw i32 %.2.us, %195
  br label %196

196:                                              ; preds = %191, %187
  %.2.us.1339 = phi i32 [ %.2.us, %187 ], [ %spec.select.us.1338, %191 ]
  %indvars.iv.next186.1340 = add nuw nsw i64 %indvars.iv185, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge155.us.unr-lcssa, label %.preheader116.us.new, !llvm.loop !21

._crit_edge155.us.unr-lcssa:                      ; preds = %196, %.preheader116.us
  %.2.us.lcssa.ph = phi i32 [ poison, %.preheader116.us ], [ %.2.us.1339, %196 ]
  %indvars.iv185.unr = phi i64 [ 0, %.preheader116.us ], [ %indvars.iv.next186.1340, %196 ]
  %.1152.us.unr = phi i32 [ %.067156.us, %.preheader116.us ], [ %.2.us.1339, %196 ]
  br i1 %lcmp.mod.not, label %._crit_edge155.us, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge155.us.unr-lcssa
  %197 = getelementptr inbounds [610 x [610 x i32]], ptr @color, i64 0, i64 %indvars.iv188, i64 %indvars.iv185.unr
  %198 = load i32, ptr %197, align 4, !tbaa !9
  %199 = icmp eq i32 %198, 0
  br i1 %199, label %200, label %._crit_edge155.us

200:                                              ; preds = %.epil.preheader
  %201 = getelementptr inbounds [610 x [610 x i32]], ptr getelementptr inbounds (i8, ptr @color, i64 1488400), i64 0, i64 %indvars.iv188, i64 %indvars.iv185.unr
  %202 = load i32, ptr %201, align 4, !tbaa !9
  %203 = icmp eq i32 %202, 0
  %204 = zext i1 %203 to i32
  %spec.select.us.epil = add nsw i32 %.1152.us.unr, %204
  br label %._crit_edge155.us

._crit_edge155.us:                                ; preds = %.epil.preheader, %200, %._crit_edge155.us.unr-lcssa
  %.2.us.lcssa = phi i32 [ %.2.us.lcssa.ph, %._crit_edge155.us.unr-lcssa ], [ %.1152.us.unr, %.epil.preheader ], [ %spec.select.us.epil, %200 ]
  %indvars.iv.next189 = add nuw nsw i64 %indvars.iv188, 1
  %exitcond191.not = icmp eq i64 %indvars.iv.next189, %105
  br i1 %exitcond191.not, label %._crit_edge158.split.us, label %.preheader116.us, !llvm.loop !22

._crit_edge158.split.us:                          ; preds = %._crit_edge155.us
  %205 = sext i32 %.2.us.lcssa to i64
  %206 = load i64, ptr @K, align 8, !tbaa !5
  %.not = icmp sgt i64 %206, %205
  br i1 %.not, label %.thread107, label %207

207:                                              ; preds = %._crit_edge158.split.us
  br i1 %108, label %.preheader.preheader, label %._crit_edge158.split.us.1

.preheader.preheader:                             ; preds = %207
  %208 = trunc i64 %206 to i32
  br label %.preheader

.preheader:                                       ; preds = %.preheader.preheader, %._crit_edge164
  %209 = phi i64 [ %105, %.preheader.preheader ], [ %231, %._crit_edge164 ]
  %indvars.iv198 = phi i64 [ 0, %.preheader.preheader ], [ %indvars.iv.next199, %._crit_edge164 ]
  %.3165 = phi i32 [ %208, %.preheader.preheader ], [ %.4.lcssa, %._crit_edge164 ]
  %.not94160 = icmp sgt i64 %209, 0
  br i1 %.not94160, label %.lr.ph163.preheader, label %._crit_edge164

.lr.ph163.preheader:                              ; preds = %.preheader
  %210 = trunc nuw nsw i64 %indvars.iv198 to i32
  br label %.lr.ph163

.lr.ph163:                                        ; preds = %.lr.ph163.preheader, %228
  %211 = phi i64 [ %209, %.lr.ph163.preheader ], [ %229, %228 ]
  %212 = phi i64 [ %209, %.lr.ph163.preheader ], [ %230, %228 ]
  %indvars.iv195 = phi i64 [ 0, %.lr.ph163.preheader ], [ %indvars.iv.next196, %228 ]
  %.4161 = phi i32 [ %.3165, %.lr.ph163.preheader ], [ %.5, %228 ]
  %213 = getelementptr inbounds [610 x [610 x i32]], ptr @color, i64 0, i64 %indvars.iv198, i64 %indvars.iv195
  %214 = load i32, ptr %213, align 4, !tbaa !9
  %215 = icmp eq i32 %214, 0
  br i1 %215, label %216, label %228

216:                                              ; preds = %.lr.ph163
  %217 = getelementptr inbounds [610 x [610 x i32]], ptr getelementptr inbounds (i8, ptr @color, i64 1488400), i64 0, i64 %indvars.iv198, i64 %indvars.iv195
  %218 = load i32, ptr %217, align 4, !tbaa !9
  %219 = icmp eq i32 %218, 0
  br i1 %219, label %220, label %228

220:                                              ; preds = %216
  %221 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %210)
  %222 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %221, ptr noundef nonnull @.str)
  %223 = trunc nuw nsw i64 %indvars.iv195 to i32
  %224 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %222, i32 noundef %223)
  %225 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %224, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %226 = add nsw i32 %.4161, -1
  %227 = icmp eq i32 %226, 0
  br i1 %227, label %.loopexit, label %._crit_edge253

._crit_edge253:                                   ; preds = %220
  %.pre254 = load i64, ptr @M, align 8, !tbaa !5
  br label %228

228:                                              ; preds = %._crit_edge253, %.lr.ph163, %216
  %229 = phi i64 [ %.pre254, %._crit_edge253 ], [ %211, %216 ], [ %211, %.lr.ph163 ]
  %230 = phi i64 [ %.pre254, %._crit_edge253 ], [ %212, %216 ], [ %212, %.lr.ph163 ]
  %.5 = phi i32 [ %226, %._crit_edge253 ], [ %.4161, %216 ], [ %.4161, %.lr.ph163 ]
  %indvars.iv.next196 = add nuw nsw i64 %indvars.iv195, 1
  %.not94 = icmp sgt i64 %230, %indvars.iv.next196
  br i1 %.not94, label %.lr.ph163, label %._crit_edge164, !llvm.loop !23

._crit_edge164:                                   ; preds = %228, %.preheader
  %231 = phi i64 [ %209, %.preheader ], [ %229, %228 ]
  %.4.lcssa = phi i32 [ %.3165, %.preheader ], [ %.5, %228 ]
  %indvars.iv.next199 = add nuw nsw i64 %indvars.iv198, 1
  %232 = icmp sgt i64 %231, %indvars.iv.next199
  br i1 %232, label %.preheader, label %.thread107, !llvm.loop !24

.thread107:                                       ; preds = %._crit_edge164, %._crit_edge158.split.us
  %233 = phi i64 [ %105, %._crit_edge158.split.us ], [ %231, %._crit_edge164 ]
  %234 = icmp sgt i64 %233, 0
  br i1 %234, label %.preheader116.us.1.preheader, label %._crit_edge158.split.us.1

.preheader116.us.1.preheader:                     ; preds = %.thread107
  %xtraiter342 = and i64 %233, 1
  %235 = icmp eq i64 %233, 1
  %unroll_iter345 = and i64 %233, 9223372036854775806
  %lcmp.mod343.not = icmp eq i64 %xtraiter342, 0
  br label %.preheader116.us.1

.preheader116.us.1:                               ; preds = %.preheader116.us.1.preheader, %._crit_edge155.us.1
  %indvars.iv188.1 = phi i64 [ %indvars.iv.next189.1, %._crit_edge155.us.1 ], [ 0, %.preheader116.us.1.preheader ]
  %.067156.us.1 = phi i32 [ %.2.us.1.lcssa, %._crit_edge155.us.1 ], [ 0, %.preheader116.us.1.preheader ]
  br i1 %235, label %._crit_edge155.us.1.unr-lcssa, label %.preheader116.us.1.new

.preheader116.us.1.new:                           ; preds = %.preheader116.us.1, %253
  %indvars.iv185.1 = phi i64 [ %indvars.iv.next186.1.1351, %253 ], [ 0, %.preheader116.us.1 ]
  %.1152.us.1 = phi i32 [ %.2.us.1.1350, %253 ], [ %.067156.us.1, %.preheader116.us.1 ]
  %niter346 = phi i64 [ %niter346.next.1, %253 ], [ 0, %.preheader116.us.1 ]
  %236 = getelementptr inbounds [610 x [610 x i32]], ptr @color, i64 0, i64 %indvars.iv188.1, i64 %indvars.iv185.1
  %237 = load i32, ptr %236, align 8, !tbaa !9
  %238 = icmp eq i32 %237, 0
  br i1 %238, label %239, label %244

239:                                              ; preds = %.preheader116.us.1.new
  %240 = getelementptr inbounds [610 x [610 x i32]], ptr getelementptr inbounds (i8, ptr @color, i64 1488400), i64 0, i64 %indvars.iv188.1, i64 %indvars.iv185.1
  %241 = load i32, ptr %240, align 8, !tbaa !9
  %242 = icmp eq i32 %241, 1
  %243 = zext i1 %242 to i32
  %spec.select.us.1 = add nsw i32 %.1152.us.1, %243
  br label %244

244:                                              ; preds = %239, %.preheader116.us.1.new
  %.2.us.1 = phi i32 [ %.1152.us.1, %.preheader116.us.1.new ], [ %spec.select.us.1, %239 ]
  %indvars.iv.next186.1 = or disjoint i64 %indvars.iv185.1, 1
  %245 = getelementptr inbounds [610 x [610 x i32]], ptr @color, i64 0, i64 %indvars.iv188.1, i64 %indvars.iv.next186.1
  %246 = load i32, ptr %245, align 4, !tbaa !9
  %247 = icmp eq i32 %246, 0
  br i1 %247, label %248, label %253

248:                                              ; preds = %244
  %249 = getelementptr inbounds [610 x [610 x i32]], ptr getelementptr inbounds (i8, ptr @color, i64 1488400), i64 0, i64 %indvars.iv188.1, i64 %indvars.iv.next186.1
  %250 = load i32, ptr %249, align 4, !tbaa !9
  %251 = icmp eq i32 %250, 1
  %252 = zext i1 %251 to i32
  %spec.select.us.1.1349 = add nsw i32 %.2.us.1, %252
  br label %253

253:                                              ; preds = %248, %244
  %.2.us.1.1350 = phi i32 [ %.2.us.1, %244 ], [ %spec.select.us.1.1349, %248 ]
  %indvars.iv.next186.1.1351 = add nuw nsw i64 %indvars.iv185.1, 2
  %niter346.next.1 = add i64 %niter346, 2
  %niter346.ncmp.1 = icmp eq i64 %niter346.next.1, %unroll_iter345
  br i1 %niter346.ncmp.1, label %._crit_edge155.us.1.unr-lcssa, label %.preheader116.us.1.new, !llvm.loop !21

._crit_edge155.us.1.unr-lcssa:                    ; preds = %253, %.preheader116.us.1
  %.2.us.1.lcssa.ph = phi i32 [ poison, %.preheader116.us.1 ], [ %.2.us.1.1350, %253 ]
  %indvars.iv185.1.unr = phi i64 [ 0, %.preheader116.us.1 ], [ %indvars.iv.next186.1.1351, %253 ]
  %.1152.us.1.unr = phi i32 [ %.067156.us.1, %.preheader116.us.1 ], [ %.2.us.1.1350, %253 ]
  br i1 %lcmp.mod343.not, label %._crit_edge155.us.1, label %.epil.preheader341

.epil.preheader341:                               ; preds = %._crit_edge155.us.1.unr-lcssa
  %254 = getelementptr inbounds [610 x [610 x i32]], ptr @color, i64 0, i64 %indvars.iv188.1, i64 %indvars.iv185.1.unr
  %255 = load i32, ptr %254, align 4, !tbaa !9
  %256 = icmp eq i32 %255, 0
  br i1 %256, label %257, label %._crit_edge155.us.1

257:                                              ; preds = %.epil.preheader341
  %258 = getelementptr inbounds [610 x [610 x i32]], ptr getelementptr inbounds (i8, ptr @color, i64 1488400), i64 0, i64 %indvars.iv188.1, i64 %indvars.iv185.1.unr
  %259 = load i32, ptr %258, align 4, !tbaa !9
  %260 = icmp eq i32 %259, 1
  %261 = zext i1 %260 to i32
  %spec.select.us.1.epil = add nsw i32 %.1152.us.1.unr, %261
  br label %._crit_edge155.us.1

._crit_edge155.us.1:                              ; preds = %.epil.preheader341, %257, %._crit_edge155.us.1.unr-lcssa
  %.2.us.1.lcssa = phi i32 [ %.2.us.1.lcssa.ph, %._crit_edge155.us.1.unr-lcssa ], [ %.1152.us.1.unr, %.epil.preheader341 ], [ %spec.select.us.1.epil, %257 ]
  %indvars.iv.next189.1 = add nuw nsw i64 %indvars.iv188.1, 1
  %exitcond191.1.not = icmp eq i64 %indvars.iv.next189.1, %233
  br i1 %exitcond191.1.not, label %._crit_edge158.split.us.1.loopexit, label %.preheader116.us.1, !llvm.loop !22

._crit_edge158.split.us.1.loopexit:               ; preds = %._crit_edge155.us.1
  %262 = sext i32 %.2.us.1.lcssa to i64
  br label %._crit_edge158.split.us.1

._crit_edge158.split.us.1:                        ; preds = %._crit_edge158.split.us.1.loopexit, %207, %.preheader118.preheader, %.thread107
  %263 = phi i1 [ false, %.thread107 ], [ false, %.preheader118.preheader ], [ false, %207 ], [ %234, %._crit_edge158.split.us.1.loopexit ]
  %264 = phi i64 [ %233, %.thread107 ], [ %105, %.preheader118.preheader ], [ %105, %207 ], [ %233, %._crit_edge158.split.us.1.loopexit ]
  %.067.lcssa.1 = phi i64 [ 0, %.thread107 ], [ 0, %.preheader118.preheader ], [ 0, %207 ], [ %262, %._crit_edge158.split.us.1.loopexit ]
  %265 = load i64, ptr @K, align 8, !tbaa !5
  %.not.1 = icmp sle i64 %265, %.067.lcssa.1
  %brmerge.not = and i1 %.not.1, %263
  br i1 %brmerge.not, label %.preheader.preheader.1, label %.thread107.1

.preheader.preheader.1:                           ; preds = %._crit_edge158.split.us.1
  %266 = trunc i64 %265 to i32
  br label %.preheader.1

.preheader.1:                                     ; preds = %._crit_edge164.1, %.preheader.preheader.1
  %267 = phi i64 [ %264, %.preheader.preheader.1 ], [ %289, %._crit_edge164.1 ]
  %indvars.iv198.1 = phi i64 [ 0, %.preheader.preheader.1 ], [ %indvars.iv.next199.1, %._crit_edge164.1 ]
  %.3165.1 = phi i32 [ %266, %.preheader.preheader.1 ], [ %.4.lcssa.1, %._crit_edge164.1 ]
  %.not94160.1 = icmp sgt i64 %267, 0
  br i1 %.not94160.1, label %.lr.ph163.preheader.1, label %._crit_edge164.1

.lr.ph163.preheader.1:                            ; preds = %.preheader.1
  %268 = trunc nuw nsw i64 %indvars.iv198.1 to i32
  br label %.lr.ph163.1

.lr.ph163.1:                                      ; preds = %286, %.lr.ph163.preheader.1
  %269 = phi i64 [ %267, %.lr.ph163.preheader.1 ], [ %287, %286 ]
  %270 = phi i64 [ %267, %.lr.ph163.preheader.1 ], [ %288, %286 ]
  %indvars.iv195.1 = phi i64 [ 0, %.lr.ph163.preheader.1 ], [ %indvars.iv.next196.1, %286 ]
  %.4161.1 = phi i32 [ %.3165.1, %.lr.ph163.preheader.1 ], [ %.5.1, %286 ]
  %271 = getelementptr inbounds [610 x [610 x i32]], ptr @color, i64 0, i64 %indvars.iv198.1, i64 %indvars.iv195.1
  %272 = load i32, ptr %271, align 4, !tbaa !9
  %273 = icmp eq i32 %272, 0
  br i1 %273, label %274, label %286

274:                                              ; preds = %.lr.ph163.1
  %275 = getelementptr inbounds [610 x [610 x i32]], ptr getelementptr inbounds (i8, ptr @color, i64 1488400), i64 0, i64 %indvars.iv198.1, i64 %indvars.iv195.1
  %276 = load i32, ptr %275, align 4, !tbaa !9
  %277 = icmp eq i32 %276, 1
  br i1 %277, label %278, label %286

278:                                              ; preds = %274
  %279 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %268)
  %280 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %279, ptr noundef nonnull @.str)
  %281 = trunc nuw nsw i64 %indvars.iv195.1 to i32
  %282 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %280, i32 noundef %281)
  %283 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %282, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %284 = add nsw i32 %.4161.1, -1
  %285 = icmp eq i32 %284, 0
  br i1 %285, label %.loopexit, label %._crit_edge255

._crit_edge255:                                   ; preds = %278
  %.pre256 = load i64, ptr @M, align 8, !tbaa !5
  br label %286

286:                                              ; preds = %._crit_edge255, %274, %.lr.ph163.1
  %287 = phi i64 [ %.pre256, %._crit_edge255 ], [ %269, %274 ], [ %269, %.lr.ph163.1 ]
  %288 = phi i64 [ %.pre256, %._crit_edge255 ], [ %270, %274 ], [ %270, %.lr.ph163.1 ]
  %.5.1 = phi i32 [ %284, %._crit_edge255 ], [ %.4161.1, %274 ], [ %.4161.1, %.lr.ph163.1 ]
  %indvars.iv.next196.1 = add nuw nsw i64 %indvars.iv195.1, 1
  %.not94.1 = icmp sgt i64 %288, %indvars.iv.next196.1
  br i1 %.not94.1, label %.lr.ph163.1, label %._crit_edge164.1, !llvm.loop !23

._crit_edge164.1:                                 ; preds = %286, %.preheader.1
  %289 = phi i64 [ %267, %.preheader.1 ], [ %287, %286 ]
  %.4.lcssa.1 = phi i32 [ %.3165.1, %.preheader.1 ], [ %.5.1, %286 ]
  %indvars.iv.next199.1 = add nuw nsw i64 %indvars.iv198.1, 1
  %290 = icmp sgt i64 %289, %indvars.iv.next199.1
  br i1 %290, label %.preheader.1, label %.thread107.1, !llvm.loop !24

.thread107.1:                                     ; preds = %._crit_edge164.1, %._crit_edge158.split.us.1
  %291 = phi i64 [ %264, %._crit_edge158.split.us.1 ], [ %289, %._crit_edge164.1 ]
  %292 = icmp sgt i64 %291, 0
  br i1 %292, label %.preheader116.us.1206.preheader, label %._crit_edge158.split.us.1.1

.preheader116.us.1206.preheader:                  ; preds = %.thread107.1
  %xtraiter353 = and i64 %291, 1
  %293 = icmp eq i64 %291, 1
  %unroll_iter356 = and i64 %291, 9223372036854775806
  %lcmp.mod354.not = icmp eq i64 %xtraiter353, 0
  br label %.preheader116.us.1206

.preheader116.us.1206:                            ; preds = %.preheader116.us.1206.preheader, %._crit_edge155.us.1216
  %indvars.iv188.1204 = phi i64 [ %indvars.iv.next189.1214, %._crit_edge155.us.1216 ], [ 0, %.preheader116.us.1206.preheader ]
  %.067156.us.1205 = phi i32 [ %.2.us.1210.lcssa, %._crit_edge155.us.1216 ], [ 0, %.preheader116.us.1206.preheader ]
  br i1 %293, label %._crit_edge155.us.1216.unr-lcssa, label %.preheader116.us.1206.new

.preheader116.us.1206.new:                        ; preds = %.preheader116.us.1206, %311
  %indvars.iv185.1207 = phi i64 [ %indvars.iv.next186.1211.1, %311 ], [ 0, %.preheader116.us.1206 ]
  %.1152.us.1208 = phi i32 [ %.2.us.1210.1, %311 ], [ %.067156.us.1205, %.preheader116.us.1206 ]
  %niter357 = phi i64 [ %niter357.next.1, %311 ], [ 0, %.preheader116.us.1206 ]
  %294 = getelementptr inbounds [610 x [610 x i32]], ptr @color, i64 0, i64 %indvars.iv188.1204, i64 %indvars.iv185.1207
  %295 = load i32, ptr %294, align 8, !tbaa !9
  %296 = icmp eq i32 %295, 1
  br i1 %296, label %297, label %302

297:                                              ; preds = %.preheader116.us.1206.new
  %298 = getelementptr inbounds [610 x [610 x i32]], ptr getelementptr inbounds (i8, ptr @color, i64 1488400), i64 0, i64 %indvars.iv188.1204, i64 %indvars.iv185.1207
  %299 = load i32, ptr %298, align 8, !tbaa !9
  %300 = icmp eq i32 %299, 0
  %301 = zext i1 %300 to i32
  %spec.select.us.1209 = add nsw i32 %.1152.us.1208, %301
  br label %302

302:                                              ; preds = %297, %.preheader116.us.1206.new
  %.2.us.1210 = phi i32 [ %.1152.us.1208, %.preheader116.us.1206.new ], [ %spec.select.us.1209, %297 ]
  %indvars.iv.next186.1211 = or disjoint i64 %indvars.iv185.1207, 1
  %303 = getelementptr inbounds [610 x [610 x i32]], ptr @color, i64 0, i64 %indvars.iv188.1204, i64 %indvars.iv.next186.1211
  %304 = load i32, ptr %303, align 4, !tbaa !9
  %305 = icmp eq i32 %304, 1
  br i1 %305, label %306, label %311

306:                                              ; preds = %302
  %307 = getelementptr inbounds [610 x [610 x i32]], ptr getelementptr inbounds (i8, ptr @color, i64 1488400), i64 0, i64 %indvars.iv188.1204, i64 %indvars.iv.next186.1211
  %308 = load i32, ptr %307, align 4, !tbaa !9
  %309 = icmp eq i32 %308, 0
  %310 = zext i1 %309 to i32
  %spec.select.us.1209.1 = add nsw i32 %.2.us.1210, %310
  br label %311

311:                                              ; preds = %306, %302
  %.2.us.1210.1 = phi i32 [ %.2.us.1210, %302 ], [ %spec.select.us.1209.1, %306 ]
  %indvars.iv.next186.1211.1 = add nuw nsw i64 %indvars.iv185.1207, 2
  %niter357.next.1 = add i64 %niter357, 2
  %niter357.ncmp.1 = icmp eq i64 %niter357.next.1, %unroll_iter356
  br i1 %niter357.ncmp.1, label %._crit_edge155.us.1216.unr-lcssa, label %.preheader116.us.1206.new, !llvm.loop !21

._crit_edge155.us.1216.unr-lcssa:                 ; preds = %311, %.preheader116.us.1206
  %.2.us.1210.lcssa.ph = phi i32 [ poison, %.preheader116.us.1206 ], [ %.2.us.1210.1, %311 ]
  %indvars.iv185.1207.unr = phi i64 [ 0, %.preheader116.us.1206 ], [ %indvars.iv.next186.1211.1, %311 ]
  %.1152.us.1208.unr = phi i32 [ %.067156.us.1205, %.preheader116.us.1206 ], [ %.2.us.1210.1, %311 ]
  br i1 %lcmp.mod354.not, label %._crit_edge155.us.1216, label %.epil.preheader352

.epil.preheader352:                               ; preds = %._crit_edge155.us.1216.unr-lcssa
  %312 = getelementptr inbounds [610 x [610 x i32]], ptr @color, i64 0, i64 %indvars.iv188.1204, i64 %indvars.iv185.1207.unr
  %313 = load i32, ptr %312, align 4, !tbaa !9
  %314 = icmp eq i32 %313, 1
  br i1 %314, label %315, label %._crit_edge155.us.1216

315:                                              ; preds = %.epil.preheader352
  %316 = getelementptr inbounds [610 x [610 x i32]], ptr getelementptr inbounds (i8, ptr @color, i64 1488400), i64 0, i64 %indvars.iv188.1204, i64 %indvars.iv185.1207.unr
  %317 = load i32, ptr %316, align 4, !tbaa !9
  %318 = icmp eq i32 %317, 0
  %319 = zext i1 %318 to i32
  %spec.select.us.1209.epil = add nsw i32 %.1152.us.1208.unr, %319
  br label %._crit_edge155.us.1216

._crit_edge155.us.1216:                           ; preds = %.epil.preheader352, %315, %._crit_edge155.us.1216.unr-lcssa
  %.2.us.1210.lcssa = phi i32 [ %.2.us.1210.lcssa.ph, %._crit_edge155.us.1216.unr-lcssa ], [ %.1152.us.1208.unr, %.epil.preheader352 ], [ %spec.select.us.1209.epil, %315 ]
  %indvars.iv.next189.1214 = add nuw nsw i64 %indvars.iv188.1204, 1
  %exitcond191.1215.not = icmp eq i64 %indvars.iv.next189.1214, %291
  br i1 %exitcond191.1215.not, label %._crit_edge158.split.us.1221, label %.preheader116.us.1206, !llvm.loop !22

._crit_edge158.split.us.1221:                     ; preds = %._crit_edge155.us.1216
  %320 = sext i32 %.2.us.1210.lcssa to i64
  %321 = load i64, ptr @K, align 8, !tbaa !5
  %.not.1220 = icmp sgt i64 %321, %320
  br i1 %.not.1220, label %.thread107.1243, label %322

322:                                              ; preds = %._crit_edge158.split.us.1221
  br i1 %292, label %.preheader.preheader.1225, label %._crit_edge158.split.us.1.1

.preheader.preheader.1225:                        ; preds = %322
  %323 = trunc i64 %321 to i32
  br label %.preheader.1229

.preheader.1229:                                  ; preds = %._crit_edge164.1241, %.preheader.preheader.1225
  %324 = phi i64 [ %291, %.preheader.preheader.1225 ], [ %346, %._crit_edge164.1241 ]
  %indvars.iv198.1226 = phi i64 [ 0, %.preheader.preheader.1225 ], [ %indvars.iv.next199.1240, %._crit_edge164.1241 ]
  %.3165.1227 = phi i32 [ %323, %.preheader.preheader.1225 ], [ %.4.lcssa.1239, %._crit_edge164.1241 ]
  %.not94160.1228 = icmp sgt i64 %324, 0
  br i1 %.not94160.1228, label %.lr.ph163.preheader.1230, label %._crit_edge164.1241

.lr.ph163.preheader.1230:                         ; preds = %.preheader.1229
  %325 = trunc nuw nsw i64 %indvars.iv198.1226 to i32
  br label %.lr.ph163.1233

.lr.ph163.1233:                                   ; preds = %343, %.lr.ph163.preheader.1230
  %326 = phi i64 [ %324, %.lr.ph163.preheader.1230 ], [ %344, %343 ]
  %327 = phi i64 [ %324, %.lr.ph163.preheader.1230 ], [ %345, %343 ]
  %indvars.iv195.1231 = phi i64 [ 0, %.lr.ph163.preheader.1230 ], [ %indvars.iv.next196.1235, %343 ]
  %.4161.1232 = phi i32 [ %.3165.1227, %.lr.ph163.preheader.1230 ], [ %.5.1234, %343 ]
  %328 = getelementptr inbounds [610 x [610 x i32]], ptr @color, i64 0, i64 %indvars.iv198.1226, i64 %indvars.iv195.1231
  %329 = load i32, ptr %328, align 4, !tbaa !9
  %330 = icmp eq i32 %329, 1
  br i1 %330, label %331, label %343

331:                                              ; preds = %.lr.ph163.1233
  %332 = getelementptr inbounds [610 x [610 x i32]], ptr getelementptr inbounds (i8, ptr @color, i64 1488400), i64 0, i64 %indvars.iv198.1226, i64 %indvars.iv195.1231
  %333 = load i32, ptr %332, align 4, !tbaa !9
  %334 = icmp eq i32 %333, 0
  br i1 %334, label %335, label %343

335:                                              ; preds = %331
  %336 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %325)
  %337 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %336, ptr noundef nonnull @.str)
  %338 = trunc nuw nsw i64 %indvars.iv195.1231 to i32
  %339 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %337, i32 noundef %338)
  %340 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %339, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %341 = add nsw i32 %.4161.1232, -1
  %342 = icmp eq i32 %341, 0
  br i1 %342, label %.loopexit, label %._crit_edge257

._crit_edge257:                                   ; preds = %335
  %.pre258 = load i64, ptr @M, align 8, !tbaa !5
  br label %343

343:                                              ; preds = %._crit_edge257, %331, %.lr.ph163.1233
  %344 = phi i64 [ %.pre258, %._crit_edge257 ], [ %326, %331 ], [ %326, %.lr.ph163.1233 ]
  %345 = phi i64 [ %.pre258, %._crit_edge257 ], [ %327, %331 ], [ %327, %.lr.ph163.1233 ]
  %.5.1234 = phi i32 [ %341, %._crit_edge257 ], [ %.4161.1232, %331 ], [ %.4161.1232, %.lr.ph163.1233 ]
  %indvars.iv.next196.1235 = add nuw nsw i64 %indvars.iv195.1231, 1
  %.not94.1236 = icmp sgt i64 %345, %indvars.iv.next196.1235
  br i1 %.not94.1236, label %.lr.ph163.1233, label %._crit_edge164.1241, !llvm.loop !23

._crit_edge164.1241:                              ; preds = %343, %.preheader.1229
  %346 = phi i64 [ %324, %.preheader.1229 ], [ %344, %343 ]
  %.4.lcssa.1239 = phi i32 [ %.3165.1227, %.preheader.1229 ], [ %.5.1234, %343 ]
  %indvars.iv.next199.1240 = add nuw nsw i64 %indvars.iv198.1226, 1
  %347 = icmp sgt i64 %346, %indvars.iv.next199.1240
  br i1 %347, label %.preheader.1229, label %.thread107.1243, !llvm.loop !24

.thread107.1243:                                  ; preds = %._crit_edge164.1241, %._crit_edge158.split.us.1221
  %348 = phi i64 [ %291, %._crit_edge158.split.us.1221 ], [ %346, %._crit_edge164.1241 ]
  %349 = icmp slt i64 %348, 1
  br i1 %349, label %._crit_edge158.split.us.1.1, label %.preheader116.us.1.1.preheader

.preheader116.us.1.1.preheader:                   ; preds = %.thread107.1243
  %xtraiter359 = and i64 %348, 1
  %350 = icmp eq i64 %348, 1
  %unroll_iter362 = and i64 %348, 9223372036854775806
  %lcmp.mod360.not = icmp eq i64 %xtraiter359, 0
  br label %.preheader116.us.1.1

.preheader116.us.1.1:                             ; preds = %.preheader116.us.1.1.preheader, %._crit_edge155.us.1.1
  %indvars.iv188.1.1 = phi i64 [ %indvars.iv.next189.1.1, %._crit_edge155.us.1.1 ], [ 0, %.preheader116.us.1.1.preheader ]
  %.067156.us.1.1 = phi i32 [ %.2.us.1.1.lcssa, %._crit_edge155.us.1.1 ], [ 0, %.preheader116.us.1.1.preheader ]
  br i1 %350, label %._crit_edge155.us.1.1.unr-lcssa, label %.preheader116.us.1.1.new

.preheader116.us.1.1.new:                         ; preds = %.preheader116.us.1.1, %368
  %indvars.iv185.1.1 = phi i64 [ %indvars.iv.next186.1.1.1, %368 ], [ 0, %.preheader116.us.1.1 ]
  %.1152.us.1.1 = phi i32 [ %.2.us.1.1.1, %368 ], [ %.067156.us.1.1, %.preheader116.us.1.1 ]
  %niter363 = phi i64 [ %niter363.next.1, %368 ], [ 0, %.preheader116.us.1.1 ]
  %351 = getelementptr inbounds [610 x [610 x i32]], ptr @color, i64 0, i64 %indvars.iv188.1.1, i64 %indvars.iv185.1.1
  %352 = load i32, ptr %351, align 8, !tbaa !9
  %353 = icmp eq i32 %352, 1
  br i1 %353, label %354, label %359

354:                                              ; preds = %.preheader116.us.1.1.new
  %355 = getelementptr inbounds [610 x [610 x i32]], ptr getelementptr inbounds (i8, ptr @color, i64 1488400), i64 0, i64 %indvars.iv188.1.1, i64 %indvars.iv185.1.1
  %356 = load i32, ptr %355, align 8, !tbaa !9
  %357 = icmp eq i32 %356, 1
  %358 = zext i1 %357 to i32
  %spec.select.us.1.1 = add nsw i32 %.1152.us.1.1, %358
  br label %359

359:                                              ; preds = %354, %.preheader116.us.1.1.new
  %.2.us.1.1 = phi i32 [ %.1152.us.1.1, %.preheader116.us.1.1.new ], [ %spec.select.us.1.1, %354 ]
  %indvars.iv.next186.1.1 = or disjoint i64 %indvars.iv185.1.1, 1
  %360 = getelementptr inbounds [610 x [610 x i32]], ptr @color, i64 0, i64 %indvars.iv188.1.1, i64 %indvars.iv.next186.1.1
  %361 = load i32, ptr %360, align 4, !tbaa !9
  %362 = icmp eq i32 %361, 1
  br i1 %362, label %363, label %368

363:                                              ; preds = %359
  %364 = getelementptr inbounds [610 x [610 x i32]], ptr getelementptr inbounds (i8, ptr @color, i64 1488400), i64 0, i64 %indvars.iv188.1.1, i64 %indvars.iv.next186.1.1
  %365 = load i32, ptr %364, align 4, !tbaa !9
  %366 = icmp eq i32 %365, 1
  %367 = zext i1 %366 to i32
  %spec.select.us.1.1.1 = add nsw i32 %.2.us.1.1, %367
  br label %368

368:                                              ; preds = %363, %359
  %.2.us.1.1.1 = phi i32 [ %.2.us.1.1, %359 ], [ %spec.select.us.1.1.1, %363 ]
  %indvars.iv.next186.1.1.1 = add nuw nsw i64 %indvars.iv185.1.1, 2
  %niter363.next.1 = add i64 %niter363, 2
  %niter363.ncmp.1 = icmp eq i64 %niter363.next.1, %unroll_iter362
  br i1 %niter363.ncmp.1, label %._crit_edge155.us.1.1.unr-lcssa, label %.preheader116.us.1.1.new, !llvm.loop !21

._crit_edge155.us.1.1.unr-lcssa:                  ; preds = %368, %.preheader116.us.1.1
  %.2.us.1.1.lcssa.ph = phi i32 [ poison, %.preheader116.us.1.1 ], [ %.2.us.1.1.1, %368 ]
  %indvars.iv185.1.1.unr = phi i64 [ 0, %.preheader116.us.1.1 ], [ %indvars.iv.next186.1.1.1, %368 ]
  %.1152.us.1.1.unr = phi i32 [ %.067156.us.1.1, %.preheader116.us.1.1 ], [ %.2.us.1.1.1, %368 ]
  br i1 %lcmp.mod360.not, label %._crit_edge155.us.1.1, label %.epil.preheader358

.epil.preheader358:                               ; preds = %._crit_edge155.us.1.1.unr-lcssa
  %369 = getelementptr inbounds [610 x [610 x i32]], ptr @color, i64 0, i64 %indvars.iv188.1.1, i64 %indvars.iv185.1.1.unr
  %370 = load i32, ptr %369, align 4, !tbaa !9
  %371 = icmp eq i32 %370, 1
  br i1 %371, label %372, label %._crit_edge155.us.1.1

372:                                              ; preds = %.epil.preheader358
  %373 = getelementptr inbounds [610 x [610 x i32]], ptr getelementptr inbounds (i8, ptr @color, i64 1488400), i64 0, i64 %indvars.iv188.1.1, i64 %indvars.iv185.1.1.unr
  %374 = load i32, ptr %373, align 4, !tbaa !9
  %375 = icmp eq i32 %374, 1
  %376 = zext i1 %375 to i32
  %spec.select.us.1.1.epil = add nsw i32 %.1152.us.1.1.unr, %376
  br label %._crit_edge155.us.1.1

._crit_edge155.us.1.1:                            ; preds = %.epil.preheader358, %372, %._crit_edge155.us.1.1.unr-lcssa
  %.2.us.1.1.lcssa = phi i32 [ %.2.us.1.1.lcssa.ph, %._crit_edge155.us.1.1.unr-lcssa ], [ %.1152.us.1.1.unr, %.epil.preheader358 ], [ %spec.select.us.1.1.epil, %372 ]
  %indvars.iv.next189.1.1 = add nuw nsw i64 %indvars.iv188.1.1, 1
  %exitcond191.1.1.not = icmp eq i64 %indvars.iv.next189.1.1, %348
  br i1 %exitcond191.1.1.not, label %._crit_edge158.split.us.loopexit.1.1, label %.preheader116.us.1.1, !llvm.loop !22

._crit_edge158.split.us.loopexit.1.1:             ; preds = %._crit_edge155.us.1.1
  %377 = sext i32 %.2.us.1.1.lcssa to i64
  br label %._crit_edge158.split.us.1.1

._crit_edge158.split.us.1.1:                      ; preds = %322, %.thread107.1, %._crit_edge158.split.us.loopexit.1.1, %.thread107.1243
  %.not289 = phi i1 [ true, %.thread107.1243 ], [ %349, %._crit_edge158.split.us.loopexit.1.1 ], [ true, %.thread107.1 ], [ true, %322 ]
  %378 = phi i64 [ %348, %.thread107.1243 ], [ %348, %._crit_edge158.split.us.loopexit.1.1 ], [ %291, %.thread107.1 ], [ %291, %322 ]
  %.067.lcssa.1.1 = phi i64 [ 0, %.thread107.1243 ], [ %377, %._crit_edge158.split.us.loopexit.1.1 ], [ 0, %.thread107.1 ], [ 0, %322 ]
  %379 = load i64, ptr @K, align 8, !tbaa !5
  %.not.1.1 = icmp sgt i64 %379, %.067.lcssa.1.1
  %brmerge290 = or i1 %.not.1.1, %.not289
  br i1 %brmerge290, label %.loopexit, label %.preheader.preheader.1.1

.preheader.preheader.1.1:                         ; preds = %._crit_edge158.split.us.1.1
  %380 = trunc i64 %379 to i32
  br label %.preheader.1.1

.preheader.1.1:                                   ; preds = %._crit_edge164.1.1, %.preheader.preheader.1.1
  %381 = phi i64 [ %378, %.preheader.preheader.1.1 ], [ %403, %._crit_edge164.1.1 ]
  %indvars.iv198.1.1 = phi i64 [ 0, %.preheader.preheader.1.1 ], [ %indvars.iv.next199.1.1, %._crit_edge164.1.1 ]
  %.3165.1.1 = phi i32 [ %380, %.preheader.preheader.1.1 ], [ %.4.lcssa.1.1, %._crit_edge164.1.1 ]
  %.not94160.1.1 = icmp sgt i64 %381, 0
  br i1 %.not94160.1.1, label %.lr.ph163.preheader.1.1, label %._crit_edge164.1.1

.lr.ph163.preheader.1.1:                          ; preds = %.preheader.1.1
  %382 = trunc nuw nsw i64 %indvars.iv198.1.1 to i32
  br label %.lr.ph163.1.1

.lr.ph163.1.1:                                    ; preds = %400, %.lr.ph163.preheader.1.1
  %383 = phi i64 [ %381, %.lr.ph163.preheader.1.1 ], [ %401, %400 ]
  %384 = phi i64 [ %381, %.lr.ph163.preheader.1.1 ], [ %402, %400 ]
  %indvars.iv195.1.1 = phi i64 [ 0, %.lr.ph163.preheader.1.1 ], [ %indvars.iv.next196.1.1, %400 ]
  %.4161.1.1 = phi i32 [ %.3165.1.1, %.lr.ph163.preheader.1.1 ], [ %.5.1.1, %400 ]
  %385 = getelementptr inbounds [610 x [610 x i32]], ptr @color, i64 0, i64 %indvars.iv198.1.1, i64 %indvars.iv195.1.1
  %386 = load i32, ptr %385, align 4, !tbaa !9
  %387 = icmp eq i32 %386, 1
  br i1 %387, label %388, label %400

388:                                              ; preds = %.lr.ph163.1.1
  %389 = getelementptr inbounds [610 x [610 x i32]], ptr getelementptr inbounds (i8, ptr @color, i64 1488400), i64 0, i64 %indvars.iv198.1.1, i64 %indvars.iv195.1.1
  %390 = load i32, ptr %389, align 4, !tbaa !9
  %391 = icmp eq i32 %390, 1
  br i1 %391, label %392, label %400

392:                                              ; preds = %388
  %393 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %382)
  %394 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %393, ptr noundef nonnull @.str)
  %395 = trunc nuw nsw i64 %indvars.iv195.1.1 to i32
  %396 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %394, i32 noundef %395)
  %397 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %396, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %398 = add nsw i32 %.4161.1.1, -1
  %399 = icmp eq i32 %398, 0
  br i1 %399, label %.loopexit, label %._crit_edge259

._crit_edge259:                                   ; preds = %392
  %.pre260 = load i64, ptr @M, align 8, !tbaa !5
  br label %400

400:                                              ; preds = %._crit_edge259, %388, %.lr.ph163.1.1
  %401 = phi i64 [ %.pre260, %._crit_edge259 ], [ %383, %388 ], [ %383, %.lr.ph163.1.1 ]
  %402 = phi i64 [ %.pre260, %._crit_edge259 ], [ %384, %388 ], [ %384, %.lr.ph163.1.1 ]
  %.5.1.1 = phi i32 [ %398, %._crit_edge259 ], [ %.4161.1.1, %388 ], [ %.4161.1.1, %.lr.ph163.1.1 ]
  %indvars.iv.next196.1.1 = add nuw nsw i64 %indvars.iv195.1.1, 1
  %.not94.1.1 = icmp sgt i64 %402, %indvars.iv.next196.1.1
  br i1 %.not94.1.1, label %.lr.ph163.1.1, label %._crit_edge164.1.1, !llvm.loop !23

._crit_edge164.1.1:                               ; preds = %400, %.preheader.1.1
  %403 = phi i64 [ %381, %.preheader.1.1 ], [ %401, %400 ]
  %.4.lcssa.1.1 = phi i32 [ %.3165.1.1, %.preheader.1.1 ], [ %.5.1.1, %400 ]
  %indvars.iv.next199.1.1 = add nuw nsw i64 %indvars.iv198.1.1, 1
  %404 = icmp sgt i64 %403, %indvars.iv.next199.1.1
  br i1 %404, label %.preheader.1.1, label %.loopexit, !llvm.loop !24

.loopexit:                                        ; preds = %220, %278, %335, %._crit_edge164.1.1, %392, %._crit_edge158.split.us.1.1
  %spec.select104 = phi i32 [ 1, %._crit_edge158.split.us.1.1 ], [ 0, %392 ], [ 1, %._crit_edge164.1.1 ], [ 0, %335 ], [ 0, %278 ], [ 0, %220 ]
  ret i32 %spec.select104
}

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorISt5tupleIJxxEESaIS1_EE3endEv(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_cxxneIPSt5tupleIJxxEESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #6

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt5stackISt5tupleIJxxEESt5dequeIS1_SaIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #5 align 2

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

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

; 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 #3 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)) #4

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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 = { 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 #6 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { 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 = !{!"long long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12, !15}
!15 = !{!"llvm.loop.unswitch.partial.disable"}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !12, !15}
!19 = distinct !{!19, !12}
!20 = distinct !{!20, !12}
!21 = distinct !{!21, !12}
!22 = distinct !{!22, !12}
!23 = distinct !{!23, !12}
!24 = distinct !{!24, !12, !15}


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