; LLVM IR from upupming/algorithm :: acwing/算法竞赛进阶指南/0x27-A-Star/179. 八数码 (main)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::unordered_map" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%struct.P = type { [3 x [3 x i32]], i32, [10 x %"struct.std::pair"], %"class.std::__cxx11::basic_string" }
%"struct.std::pair" = type { i32, i32 }
%"class.std::priority_queue" = type <{ %"class.std::vector", [8 x i8] }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<P, std::allocator<P>>::_Vector_impl" }
%"struct.std::_Vector_base<P, std::allocator<P>>::_Vector_impl" = type { %"struct.std::_Vector_base<P, std::allocator<P>>::_Vector_impl_data" }
%"struct.std::_Vector_base<P, std::allocator<P>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@v = external dso_local global %"class.std::unordered_map", align 8
@_Z1sB5cxx11 = external dso_local global %"class.std::__cxx11::basic_string", align 8
@dx = external dso_local global [4 x i32], align 16
@dy = external dso_local global [4 x i32], align 16
@_Z3dirB5cxx11 = external dso_local global %"class.std::__cxx11::basic_string", align 8
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str.6 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [11 x i8], align 1

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

; 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) #1

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt13unordered_mapI1PiSt4hashIS0_ESt8equal_toIS0_ESaISt4pairIKS0_iEEEixERS6_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(152)) #2 align 2

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z10isSolvableRK1P(ptr noundef nonnull align 8 dereferenceable(152)) #2

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #4 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca %struct.P, align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca %"struct.std::pair", align 4
  %9 = alloca i32, align 4
  %10 = alloca %"struct.std::pair", align 4
  %11 = alloca %"class.std::priority_queue", align 8
  %12 = alloca i32, align 4
  %13 = alloca %struct.P, align 8
  %14 = alloca i32, align 4
  %15 = alloca %"struct.std::pair", align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca %struct.P, align 8
  %20 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 152, ptr %2) #8
  call void @_ZN1PC2Ev(ptr noundef nonnull align 8 dereferenceable(152) %2)
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #8
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %21

21:                                               ; preds = %93, %0
  %22 = load i32, ptr %3, align 4, !tbaa !5
  %23 = icmp slt i32 %22, 3
  br i1 %23, label %25, label %24

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

25:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #8
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %26

26:                                               ; preds = %88, %25
  %27 = load i32, ptr %5, align 4, !tbaa !5
  %28 = icmp slt i32 %27, 3
  br i1 %28, label %30, label %29

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

30:                                               ; preds = %26
  %31 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11)
          to label %32 unwind label %50

32:                                               ; preds = %30
  %33 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef 0)
          to label %34 unwind label %50

34:                                               ; preds = %32
  %35 = load i8, ptr %33, align 1, !tbaa !9
  %36 = sext i8 %35 to i32
  %37 = icmp eq i32 %36, 120
  br i1 %37, label %38, label %58

38:                                               ; preds = %34
  %39 = getelementptr inbounds %struct.P, ptr %2, i32 0, i32 0
  %40 = load i32, ptr %3, align 4, !tbaa !5
  %41 = sext i32 %40 to i64
  %42 = getelementptr inbounds [3 x [3 x i32]], ptr %39, i64 0, i64 %41
  %43 = load i32, ptr %5, align 4, !tbaa !5
  %44 = sext i32 %43 to i64
  %45 = getelementptr inbounds [3 x i32], ptr %42, i64 0, i64 %44
  store i32 9, ptr %45, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #8
  invoke void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %8, ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 4 dereferenceable(4) %5)
          to label %46 unwind label %54

46:                                               ; preds = %38
  %47 = getelementptr inbounds %struct.P, ptr %2, i32 0, i32 2
  %48 = getelementptr inbounds [10 x %"struct.std::pair"], ptr %47, i64 0, i64 9
  %49 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt4pairIiiEaSEOS0_(ptr noundef nonnull align 4 dereferenceable(8) %48, ptr noundef nonnull align 4 dereferenceable(8) %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  br label %87

50:                                               ; preds = %32, %30
  %51 = landingpad { ptr, i32 }
          cleanup
  %52 = extractvalue { ptr, i32 } %51, 0
  store ptr %52, ptr %6, align 8
  %53 = extractvalue { ptr, i32 } %51, 1
  store i32 %53, ptr %7, align 4
  br label %91

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

58:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #8
  %59 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef 0)
          to label %60 unwind label %78

60:                                               ; preds = %58
  %61 = load i8, ptr %59, align 1, !tbaa !9
  %62 = sext i8 %61 to i32
  %63 = sub nsw i32 %62, 48
  store i32 %63, ptr %9, align 4, !tbaa !5
  %64 = load i32, ptr %9, align 4, !tbaa !5
  %65 = getelementptr inbounds %struct.P, ptr %2, i32 0, i32 0
  %66 = load i32, ptr %3, align 4, !tbaa !5
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds [3 x [3 x i32]], ptr %65, i64 0, i64 %67
  %69 = load i32, ptr %5, align 4, !tbaa !5
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds [3 x i32], ptr %68, i64 0, i64 %70
  store i32 %64, ptr %71, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #8
  invoke void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %10, ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 4 dereferenceable(4) %5)
          to label %72 unwind label %82

72:                                               ; preds = %60
  %73 = getelementptr inbounds %struct.P, ptr %2, i32 0, i32 2
  %74 = load i32, ptr %9, align 4, !tbaa !5
  %75 = sext i32 %74 to i64
  %76 = getelementptr inbounds [10 x %"struct.std::pair"], ptr %73, i64 0, i64 %75
  %77 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt4pairIiiEaSEOS0_(ptr noundef nonnull align 4 dereferenceable(8) %76, ptr noundef nonnull align 4 dereferenceable(8) %10) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  br label %87

78:                                               ; preds = %58
  %79 = landingpad { ptr, i32 }
          cleanup
  %80 = extractvalue { ptr, i32 } %79, 0
  store ptr %80, ptr %6, align 8
  %81 = extractvalue { ptr, i32 } %79, 1
  store i32 %81, ptr %7, align 4
  br label %86

82:                                               ; preds = %60
  %83 = landingpad { ptr, i32 }
          cleanup
  %84 = extractvalue { ptr, i32 } %83, 0
  store ptr %84, ptr %6, align 8
  %85 = extractvalue { ptr, i32 } %83, 1
  store i32 %85, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  br label %86

86:                                               ; preds = %82, %78
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  br label %91

87:                                               ; preds = %72, %46
  br label %88

88:                                               ; preds = %87
  %89 = load i32, ptr %5, align 4, !tbaa !5
  %90 = add nsw i32 %89, 1
  store i32 %90, ptr %5, align 4, !tbaa !5
  br label %26, !llvm.loop !10

91:                                               ; preds = %86, %54, %50
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #8
  br label %282

92:                                               ; preds = %29
  br label %93

93:                                               ; preds = %92
  %94 = load i32, ptr %3, align 4, !tbaa !5
  %95 = add nsw i32 %94, 1
  store i32 %95, ptr %3, align 4, !tbaa !5
  br label %21, !llvm.loop !12

96:                                               ; preds = %24
  %97 = invoke noundef i32 @_Z9manhattonR1P(ptr noundef nonnull align 8 dereferenceable(152) %2)
          to label %98 unwind label %111

98:                                               ; preds = %96
  %99 = add nsw i32 0, %97
  %100 = getelementptr inbounds %struct.P, ptr %2, i32 0, i32 1
  store i32 %99, ptr %100, align 4, !tbaa !13
  %101 = getelementptr inbounds %struct.P, ptr %2, i32 0, i32 3
  %102 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %101, ptr noundef @.str.6)
          to label %103 unwind label %111

103:                                              ; preds = %98
  %104 = invoke noundef zeroext i1 @_Z10isSolvableRK1P(ptr noundef nonnull align 8 dereferenceable(152) %2)
          to label %105 unwind label %111

105:                                              ; preds = %103
  br i1 %104, label %115, label %106

106:                                              ; preds = %105
  %107 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.7)
          to label %108 unwind label %111

108:                                              ; preds = %106
  %109 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %107, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %110 unwind label %111

110:                                              ; preds = %108
  store i32 0, ptr %1, align 4
  store i32 1, ptr %4, align 4
  br label %280

111:                                              ; preds = %108, %106, %103, %98, %96
  %112 = landingpad { ptr, i32 }
          cleanup
  %113 = extractvalue { ptr, i32 } %112, 0
  store ptr %113, ptr %6, align 8
  %114 = extractvalue { ptr, i32 } %112, 1
  store i32 %114, ptr %7, align 4
  br label %282

115:                                              ; preds = %105
  call void @llvm.lifetime.start.p0(i64 32, ptr %11) #8
  invoke void @_ZNSt14priority_queueI1PSt6vectorIS0_SaIS0_EESt4lessIS0_EEC2IS3_vEEv(ptr noundef nonnull align 8 dereferenceable(25) %11)
          to label %116 unwind label %131

116:                                              ; preds = %115
  invoke void @_ZNSt14priority_queueI1PSt6vectorIS0_SaIS0_EESt4lessIS0_EE4pushERKS0_(ptr noundef nonnull align 8 dereferenceable(25) %11, ptr noundef nonnull align 8 dereferenceable(152) %2)
          to label %117 unwind label %135

117:                                              ; preds = %116
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #8
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %118

118:                                              ; preds = %271, %269, %117
  %119 = invoke noundef i64 @_ZNKSt14priority_queueI1PSt6vectorIS0_SaIS0_EESt4lessIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(25) %11)
          to label %120 unwind label %139

120:                                              ; preds = %118
  %121 = icmp ne i64 %119, 0
  br i1 %121, label %122, label %275

122:                                              ; preds = %120
  call void @llvm.lifetime.start.p0(i64 152, ptr %13) #8
  %123 = invoke noundef nonnull align 8 dereferenceable(152) ptr @_ZNKSt14priority_queueI1PSt6vectorIS0_SaIS0_EESt4lessIS0_EE3topEv(ptr noundef nonnull align 8 dereferenceable(25) %11)
          to label %124 unwind label %143

124:                                              ; preds = %122
  invoke void @_ZN1PC2ERKS_(ptr noundef nonnull align 8 dereferenceable(152) %13, ptr noundef nonnull align 8 dereferenceable(152) %123)
          to label %125 unwind label %143

125:                                              ; preds = %124
  invoke void @_ZNSt14priority_queueI1PSt6vectorIS0_SaIS0_EESt4lessIS0_EE3popEv(ptr noundef nonnull align 8 dereferenceable(25) %11)
          to label %126 unwind label %147

126:                                              ; preds = %125
  %127 = invoke noundef i64 @_ZNKSt13unordered_mapI1PiSt4hashIS0_ESt8equal_toIS0_ESaISt4pairIKS0_iEEE5countERS6_(ptr noundef nonnull align 8 dereferenceable(56) @v, ptr noundef nonnull align 8 dereferenceable(152) %13)
          to label %128 unwind label %147

128:                                              ; preds = %126
  %129 = icmp ne i64 %127, 0
  br i1 %129, label %130, label %151

130:                                              ; preds = %128
  store i32 8, ptr %4, align 4
  br label %269, !llvm.loop !19

131:                                              ; preds = %115
  %132 = landingpad { ptr, i32 }
          cleanup
  %133 = extractvalue { ptr, i32 } %132, 0
  store ptr %133, ptr %6, align 8
  %134 = extractvalue { ptr, i32 } %132, 1
  store i32 %134, ptr %7, align 4
  br label %279

135:                                              ; preds = %116
  %136 = landingpad { ptr, i32 }
          cleanup
  %137 = extractvalue { ptr, i32 } %136, 0
  store ptr %137, ptr %6, align 8
  %138 = extractvalue { ptr, i32 } %136, 1
  store i32 %138, ptr %7, align 4
  br label %278

139:                                              ; preds = %118
  %140 = landingpad { ptr, i32 }
          cleanup
  %141 = extractvalue { ptr, i32 } %140, 0
  store ptr %141, ptr %6, align 8
  %142 = extractvalue { ptr, i32 } %140, 1
  store i32 %142, ptr %7, align 4
  br label %277

143:                                              ; preds = %124, %122
  %144 = landingpad { ptr, i32 }
          cleanup
  %145 = extractvalue { ptr, i32 } %144, 0
  store ptr %145, ptr %6, align 8
  %146 = extractvalue { ptr, i32 } %144, 1
  store i32 %146, ptr %7, align 4
  br label %274

147:                                              ; preds = %161, %158, %155, %151, %126, %125
  %148 = landingpad { ptr, i32 }
          cleanup
  %149 = extractvalue { ptr, i32 } %148, 0
  store ptr %149, ptr %6, align 8
  %150 = extractvalue { ptr, i32 } %148, 1
  store i32 %150, ptr %7, align 4
  br label %273

151:                                              ; preds = %128
  %152 = invoke noundef i32 @_Z9manhattonR1P(ptr noundef nonnull align 8 dereferenceable(152) %13)
          to label %153 unwind label %147

153:                                              ; preds = %151
  %154 = icmp eq i32 %152, 0
  br i1 %154, label %155, label %161

155:                                              ; preds = %153
  %156 = getelementptr inbounds %struct.P, ptr %13, i32 0, i32 3
  %157 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull align 8 dereferenceable(32) %156)
          to label %158 unwind label %147

158:                                              ; preds = %155
  %159 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %157, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %160 unwind label %147

160:                                              ; preds = %158
  store i32 0, ptr %1, align 4
  store i32 1, ptr %4, align 4
  br label %269

161:                                              ; preds = %153
  %162 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt13unordered_mapI1PiSt4hashIS0_ESt8equal_toIS0_ESaISt4pairIKS0_iEEEixERS6_(ptr noundef nonnull align 8 dereferenceable(56) @v, ptr noundef nonnull align 8 dereferenceable(152) %13)
          to label %163 unwind label %147

163:                                              ; preds = %161
  %164 = load i32, ptr %162, align 4, !tbaa !5
  %165 = add nsw i32 %164, 1
  store i32 %165, ptr %162, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #8
  %166 = getelementptr inbounds %struct.P, ptr %13, i32 0, i32 1
  %167 = load i32, ptr %166, align 4, !tbaa !13
  %168 = invoke noundef i32 @_Z9manhattonR1P(ptr noundef nonnull align 8 dereferenceable(152) %13)
          to label %169 unwind label %177

169:                                              ; preds = %163
  %170 = sub nsw i32 %167, %168
  store i32 %170, ptr %14, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #8
  %171 = getelementptr inbounds %struct.P, ptr %13, i32 0, i32 2
  %172 = getelementptr inbounds [10 x %"struct.std::pair"], ptr %171, i64 0, i64 9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %15, ptr align 8 %172, i64 8, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #8
  store i32 0, ptr %16, align 4, !tbaa !5
  br label %173

173:                                              ; preds = %264, %169
  %174 = load i32, ptr %16, align 4, !tbaa !5
  %175 = icmp slt i32 %174, 4
  br i1 %175, label %181, label %176

176:                                              ; preds = %173
  store i32 10, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  br label %268

177:                                              ; preds = %163
  %178 = landingpad { ptr, i32 }
          cleanup
  %179 = extractvalue { ptr, i32 } %178, 0
  store ptr %179, ptr %6, align 8
  %180 = extractvalue { ptr, i32 } %178, 1
  store i32 %180, ptr %7, align 4
  br label %272

181:                                              ; preds = %173
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #8
  %182 = getelementptr inbounds %"struct.std::pair", ptr %15, i32 0, i32 0
  %183 = load i32, ptr %182, align 4, !tbaa !20
  %184 = load i32, ptr %16, align 4, !tbaa !5
  %185 = sext i32 %184 to i64
  %186 = getelementptr inbounds [4 x i32], ptr @dx, i64 0, i64 %185
  %187 = load i32, ptr %186, align 4, !tbaa !5
  %188 = add nsw i32 %183, %187
  store i32 %188, ptr %17, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #8
  %189 = getelementptr inbounds %"struct.std::pair", ptr %15, i32 0, i32 1
  %190 = load i32, ptr %189, align 4, !tbaa !22
  %191 = load i32, ptr %16, align 4, !tbaa !5
  %192 = sext i32 %191 to i64
  %193 = getelementptr inbounds [4 x i32], ptr @dy, i64 0, i64 %192
  %194 = load i32, ptr %193, align 4, !tbaa !5
  %195 = add nsw i32 %190, %194
  store i32 %195, ptr %18, align 4, !tbaa !5
  %196 = load i32, ptr %17, align 4, !tbaa !5
  %197 = load i32, ptr %18, align 4, !tbaa !5
  %198 = call noundef zeroext i1 @_Z5validii(i32 noundef %196, i32 noundef %197)
  br i1 %198, label %200, label %199

199:                                              ; preds = %181
  store i32 12, ptr %4, align 4
  br label %261

200:                                              ; preds = %181
  call void @llvm.lifetime.start.p0(i64 152, ptr %19) #8
  invoke void @_ZN1PC2ERKS_(ptr noundef nonnull align 8 dereferenceable(152) %19, ptr noundef nonnull align 8 dereferenceable(152) %13)
          to label %201 unwind label %236

201:                                              ; preds = %200
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #8
  %202 = getelementptr inbounds %struct.P, ptr %13, i32 0, i32 0
  %203 = load i32, ptr %17, align 4, !tbaa !5
  %204 = sext i32 %203 to i64
  %205 = getelementptr inbounds [3 x [3 x i32]], ptr %202, i64 0, i64 %204
  %206 = load i32, ptr %18, align 4, !tbaa !5
  %207 = sext i32 %206 to i64
  %208 = getelementptr inbounds [3 x i32], ptr %205, i64 0, i64 %207
  %209 = load i32, ptr %208, align 4, !tbaa !5
  store i32 %209, ptr %20, align 4, !tbaa !5
  %210 = getelementptr inbounds %struct.P, ptr %19, i32 0, i32 2
  %211 = getelementptr inbounds [10 x %"struct.std::pair"], ptr %210, i64 0, i64 9
  %212 = getelementptr inbounds %struct.P, ptr %19, i32 0, i32 2
  %213 = load i32, ptr %20, align 4, !tbaa !5
  %214 = sext i32 %213 to i64
  %215 = getelementptr inbounds [10 x %"struct.std::pair"], ptr %212, i64 0, i64 %214
  call void @_ZSt4swapIiiENSt9enable_ifIXsr6__and_ISt14__is_swappableIT_ES1_IT0_EEE5valueEvE4typeERSt4pairIS2_S4_ESA_(ptr noundef nonnull align 4 dereferenceable(8) %211, ptr noundef nonnull align 4 dereferenceable(8) %215) #8
  %216 = getelementptr inbounds %struct.P, ptr %19, i32 0, i32 0
  %217 = load i32, ptr %17, align 4, !tbaa !5
  %218 = sext i32 %217 to i64
  %219 = getelementptr inbounds [3 x [3 x i32]], ptr %216, i64 0, i64 %218
  %220 = load i32, ptr %18, align 4, !tbaa !5
  %221 = sext i32 %220 to i64
  %222 = getelementptr inbounds [3 x i32], ptr %219, i64 0, i64 %221
  %223 = getelementptr inbounds %struct.P, ptr %19, i32 0, i32 0
  %224 = getelementptr inbounds %"struct.std::pair", ptr %15, i32 0, i32 0
  %225 = load i32, ptr %224, align 4, !tbaa !20
  %226 = sext i32 %225 to i64
  %227 = getelementptr inbounds [3 x [3 x i32]], ptr %223, i64 0, i64 %226
  %228 = getelementptr inbounds %"struct.std::pair", ptr %15, i32 0, i32 1
  %229 = load i32, ptr %228, align 4, !tbaa !22
  %230 = sext i32 %229 to i64
  %231 = getelementptr inbounds [3 x i32], ptr %227, i64 0, i64 %230
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %222, ptr noundef nonnull align 4 dereferenceable(4) %231) #8
  %232 = invoke noundef i64 @_ZNKSt13unordered_mapI1PiSt4hashIS0_ESt8equal_toIS0_ESaISt4pairIKS0_iEEE5countERS6_(ptr noundef nonnull align 8 dereferenceable(56) @v, ptr noundef nonnull align 8 dereferenceable(152) %19)
          to label %233 unwind label %240

233:                                              ; preds = %201
  %234 = icmp ne i64 %232, 0
  br i1 %234, label %235, label %244

235:                                              ; preds = %233
  store i32 12, ptr %4, align 4
  br label %260

236:                                              ; preds = %200
  %237 = landingpad { ptr, i32 }
          cleanup
  %238 = extractvalue { ptr, i32 } %237, 0
  store ptr %238, ptr %6, align 8
  %239 = extractvalue { ptr, i32 } %237, 1
  store i32 %239, ptr %7, align 4
  br label %267

240:                                              ; preds = %258, %254, %247, %244, %201
  %241 = landingpad { ptr, i32 }
          cleanup
  %242 = extractvalue { ptr, i32 } %241, 0
  store ptr %242, ptr %6, align 8
  %243 = extractvalue { ptr, i32 } %241, 1
  store i32 %243, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  call void @_ZN1PD2Ev(ptr noundef nonnull align 8 dereferenceable(152) %19) #8
  br label %267

244:                                              ; preds = %233
  %245 = load i32, ptr %14, align 4, !tbaa !5
  %246 = invoke noundef i32 @_Z9manhattonR1P(ptr noundef nonnull align 8 dereferenceable(152) %19)
          to label %247 unwind label %240

247:                                              ; preds = %244
  %248 = add nsw i32 %245, %246
  %249 = add nsw i32 %248, 1
  %250 = getelementptr inbounds %struct.P, ptr %19, i32 0, i32 1
  store i32 %249, ptr %250, align 4, !tbaa !13
  %251 = load i32, ptr %16, align 4, !tbaa !5
  %252 = sext i32 %251 to i64
  %253 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z3dirB5cxx11, i64 noundef %252)
          to label %254 unwind label %240

254:                                              ; preds = %247
  %255 = load i8, ptr %253, align 1, !tbaa !9
  %256 = getelementptr inbounds %struct.P, ptr %19, i32 0, i32 3
  %257 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %256, i8 noundef signext %255)
          to label %258 unwind label %240

258:                                              ; preds = %254
  invoke void @_ZNSt14priority_queueI1PSt6vectorIS0_SaIS0_EESt4lessIS0_EE4pushERKS0_(ptr noundef nonnull align 8 dereferenceable(25) %11, ptr noundef nonnull align 8 dereferenceable(152) %19)
          to label %259 unwind label %240

259:                                              ; preds = %258
  store i32 0, ptr %4, align 4
  br label %260

260:                                              ; preds = %259, %235
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  call void @_ZN1PD2Ev(ptr noundef nonnull align 8 dereferenceable(152) %19) #8
  call void @llvm.lifetime.end.p0(i64 152, ptr %19) #8
  br label %261

261:                                              ; preds = %260, %199
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  %262 = load i32, ptr %4, align 4
  switch i32 %262, label %288 [
    i32 0, label %263
    i32 12, label %264
  ]

263:                                              ; preds = %261
  br label %264

264:                                              ; preds = %263, %261
  %265 = load i32, ptr %16, align 4, !tbaa !5
  %266 = add nsw i32 %265, 1
  store i32 %266, ptr %16, align 4, !tbaa !5
  br label %173, !llvm.loop !23

267:                                              ; preds = %240, %236
  call void @llvm.lifetime.end.p0(i64 152, 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 %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  br label %272

268:                                              ; preds = %176
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  store i32 0, ptr %4, align 4
  br label %269

269:                                              ; preds = %268, %160, %130
  call void @_ZN1PD2Ev(ptr noundef nonnull align 8 dereferenceable(152) %13) #8
  call void @llvm.lifetime.end.p0(i64 152, ptr %13) #8
  %270 = load i32, ptr %4, align 4
  switch i32 %270, label %276 [
    i32 0, label %271
    i32 8, label %118
  ]

271:                                              ; preds = %269
  br label %118, !llvm.loop !19

272:                                              ; preds = %267, %177
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  br label %273

273:                                              ; preds = %272, %147
  call void @_ZN1PD2Ev(ptr noundef nonnull align 8 dereferenceable(152) %13) #8
  br label %274

274:                                              ; preds = %273, %143
  call void @llvm.lifetime.end.p0(i64 152, ptr %13) #8
  br label %277

275:                                              ; preds = %120
  store i32 0, ptr %1, align 4
  store i32 1, ptr %4, align 4
  br label %276

276:                                              ; preds = %275, %269
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  call void @_ZNSt14priority_queueI1PSt6vectorIS0_SaIS0_EESt4lessIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(25) %11) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #8
  br label %280

277:                                              ; preds = %274, %139
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  br label %278

278:                                              ; preds = %277, %135
  call void @_ZNSt14priority_queueI1PSt6vectorIS0_SaIS0_EESt4lessIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(25) %11) #8
  br label %279

279:                                              ; preds = %278, %131
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #8
  br label %282

280:                                              ; preds = %276, %110
  call void @_ZN1PD2Ev(ptr noundef nonnull align 8 dereferenceable(152) %2) #8
  call void @llvm.lifetime.end.p0(i64 152, ptr %2) #8
  %281 = load i32, ptr %1, align 4
  ret i32 %281

282:                                              ; preds = %279, %111, %91
  call void @_ZN1PD2Ev(ptr noundef nonnull align 8 dereferenceable(152) %2) #8
  call void @llvm.lifetime.end.p0(i64 152, ptr %2) #8
  br label %283

283:                                              ; preds = %282
  %284 = load ptr, ptr %6, align 8
  %285 = load i32, ptr %7, align 4
  %286 = insertvalue { ptr, i32 } poison, ptr %284, 0
  %287 = insertvalue { ptr, i32 } %286, i32 %285, 1
  resume { ptr, i32 } %287

288:                                              ; preds = %261
  unreachable
}

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) #5

; Function Attrs: mustprogress nounwind uwtable
declare noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) #3 align 2

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

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN1PD2Ev(ptr noundef nonnull align 8 dereferenceable(152)) unnamed_addr #7 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt14priority_queueI1PSt6vectorIS0_SaIS0_EESt4lessIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(25)) unnamed_addr #7 align 2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = distinct !{!12, !11}
!13 = !{!14, !6, i64 36}
!14 = !{!"_ZTS1P", !7, i64 0, !6, i64 36, !7, i64 40, !15, i64 120}
!15 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !16, i64 0, !18, i64 8, !7, i64 16}
!16 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !17, i64 0}
!17 = !{!"any pointer", !7, i64 0}
!18 = !{!"long", !7, i64 0}
!19 = distinct !{!19, !11}
!20 = !{!21, !6, i64 0}
!21 = !{!"_ZTSSt4pairIiiE", !6, i64 0, !6, i64 4}
!22 = !{!21, !6, i64 4}
!23 = distinct !{!23, !11}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::unordered_map" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%struct.P = type { [3 x [3 x i32]], i32, [10 x %"struct.std::pair"], %"class.std::__cxx11::basic_string" }
%"struct.std::pair" = type { i32, i32 }
%"class.std::priority_queue" = type <{ %"class.std::vector", [8 x i8] }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<P, std::allocator<P>>::_Vector_impl" }
%"struct.std::_Vector_base<P, std::allocator<P>>::_Vector_impl" = type { %"struct.std::_Vector_base<P, std::allocator<P>>::_Vector_impl_data" }
%"struct.std::_Vector_base<P, std::allocator<P>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@v = external dso_local global %"class.std::unordered_map", align 8
@_Z1sB5cxx11 = external dso_local global %"class.std::__cxx11::basic_string", align 8
@dx = external dso_local local_unnamed_addr global [4 x i32], align 16
@dy = external dso_local local_unnamed_addr global [4 x i32], align 16
@_Z3dirB5cxx11 = external dso_local global %"class.std::__cxx11::basic_string", align 8
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str.6 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [11 x i8], align 1

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

; 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 #1

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt13unordered_mapI1PiSt4hashIS0_ESt8equal_toIS0_ESaISt4pairIKS0_iEEEixERS6_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(152)) local_unnamed_addr #2 align 2

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z10isSolvableRK1P(ptr noundef nonnull align 8 dereferenceable(152)) local_unnamed_addr #2

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #4 personality ptr @__gxx_personality_v0 {
  %1 = alloca %struct.P, align 8
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca %"struct.std::pair", align 4
  %5 = alloca %"struct.std::pair", align 4
  %6 = alloca %"class.std::priority_queue", align 8
  %7 = alloca %struct.P, align 8
  %8 = alloca %struct.P, align 8
  call void @llvm.lifetime.start.p0(i64 152, ptr nonnull %1) #7
  call void @_ZN1PC2Ev(ptr noundef nonnull align 8 dereferenceable(152) %1)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #7
  %9 = getelementptr inbounds i8, ptr %1, i64 40
  %10 = getelementptr inbounds i8, ptr %1, i64 112
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %13

11:                                               ; preds = %14
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
  %12 = invoke noundef i32 @_Z9manhattonR1P(ptr noundef nonnull align 8 dereferenceable(152) %1)
          to label %50 unwind label %61

13:                                               ; preds = %0, %14
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #7
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %18

14:                                               ; preds = %46
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #7
  %15 = load i32, ptr %2, align 4, !tbaa !5
  %16 = add nsw i32 %15, 1
  store i32 %16, ptr %2, align 4, !tbaa !5
  %17 = icmp slt i32 %15, 2
  br i1 %17, label %13, label %11, !llvm.loop !9

18:                                               ; preds = %13, %46
  %19 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11)
          to label %20 unwind label %31

20:                                               ; preds = %18
  %21 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef 0)
  %22 = load i8, ptr %21, align 1, !tbaa !11
  %23 = icmp eq i8 %22, 120
  br i1 %23, label %24, label %33

24:                                               ; preds = %20
  %25 = load i32, ptr %2, align 4, !tbaa !5
  %26 = sext i32 %25 to i64
  %27 = load i32, ptr %3, align 4, !tbaa !5
  %28 = sext i32 %27 to i64
  %29 = getelementptr inbounds [3 x [3 x i32]], ptr %1, i64 0, i64 %26, i64 %28
  store i32 9, ptr %29, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #7
  call void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %4, ptr noundef nonnull align 4 dereferenceable(4) %2, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %30 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt4pairIiiEaSEOS0_(ptr noundef nonnull align 4 dereferenceable(8) %10, ptr noundef nonnull align 4 dereferenceable(8) %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  br label %46

31:                                               ; preds = %18
  %32 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
  br label %218

33:                                               ; preds = %20
  %34 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef 0)
  %35 = load i8, ptr %34, align 1, !tbaa !11
  %36 = sext i8 %35 to i32
  %37 = add nsw i32 %36, -48
  %38 = load i32, ptr %2, align 4, !tbaa !5
  %39 = sext i32 %38 to i64
  %40 = load i32, ptr %3, align 4, !tbaa !5
  %41 = sext i32 %40 to i64
  %42 = getelementptr inbounds [3 x [3 x i32]], ptr %1, i64 0, i64 %39, i64 %41
  store i32 %37, ptr %42, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #7
  call void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %5, ptr noundef nonnull align 4 dereferenceable(4) %2, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %43 = sext i32 %37 to i64
  %44 = getelementptr inbounds [10 x %"struct.std::pair"], ptr %9, i64 0, i64 %43
  %45 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt4pairIiiEaSEOS0_(ptr noundef nonnull align 4 dereferenceable(8) %44, ptr noundef nonnull align 4 dereferenceable(8) %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  br label %46

46:                                               ; preds = %24, %33
  %47 = load i32, ptr %3, align 4, !tbaa !5
  %48 = add nsw i32 %47, 1
  store i32 %48, ptr %3, align 4, !tbaa !5
  %49 = icmp slt i32 %47, 2
  br i1 %49, label %18, label %14, !llvm.loop !12

50:                                               ; preds = %11
  %51 = getelementptr inbounds i8, ptr %1, i64 36
  store i32 %12, ptr %51, align 4, !tbaa !13
  %52 = getelementptr inbounds i8, ptr %1, i64 120
  %53 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %52, ptr noundef nonnull @.str.6)
          to label %54 unwind label %61

54:                                               ; preds = %50
  %55 = invoke noundef zeroext i1 @_Z10isSolvableRK1P(ptr noundef nonnull align 8 dereferenceable(152) %1)
          to label %56 unwind label %61

56:                                               ; preds = %54
  br i1 %55, label %63, label %57

57:                                               ; preds = %56
  %58 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.7)
          to label %59 unwind label %61

59:                                               ; preds = %57
  %60 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %58, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %217 unwind label %61

61:                                               ; preds = %59, %57, %54, %50, %11
  %62 = landingpad { ptr, i32 }
          cleanup
  br label %218

63:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #7
  call void @_ZNSt14priority_queueI1PSt6vectorIS0_SaIS0_EESt4lessIS0_EEC2IS3_vEEv(ptr noundef nonnull align 8 dereferenceable(25) %6)
  invoke void @_ZNSt14priority_queueI1PSt6vectorIS0_SaIS0_EESt4lessIS0_EE4pushERKS0_(ptr noundef nonnull align 8 dereferenceable(25) %6, ptr noundef nonnull align 8 dereferenceable(152) %1)
          to label %.preheader unwind label %77

.preheader:                                       ; preds = %63
  %64 = call noundef i64 @_ZNKSt14priority_queueI1PSt6vectorIS0_SaIS0_EESt4lessIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(25) %6)
  %.not47 = icmp eq i64 %64, 0
  br i1 %.not47, label %.loopexit44, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader
  %65 = getelementptr inbounds i8, ptr %7, i64 36
  %66 = getelementptr inbounds i8, ptr %7, i64 112
  %.sroa.6.0..sroa_idx = getelementptr inbounds i8, ptr %7, i64 116
  %67 = getelementptr inbounds i8, ptr %8, i64 40
  %68 = getelementptr inbounds i8, ptr %8, i64 112
  %69 = getelementptr inbounds i8, ptr %8, i64 36
  %70 = getelementptr inbounds i8, ptr %8, i64 120
  br label %71

71:                                               ; preds = %.lr.ph, %.loopexit
  call void @llvm.lifetime.start.p0(i64 152, ptr nonnull %7) #7
  %72 = call noundef nonnull align 8 dereferenceable(152) ptr @_ZNKSt14priority_queueI1PSt6vectorIS0_SaIS0_EESt4lessIS0_EE3topEv(ptr noundef nonnull align 8 dereferenceable(25) %6)
  invoke void @_ZN1PC2ERKS_(ptr noundef nonnull align 8 dereferenceable(152) %7, ptr noundef nonnull align 8 dereferenceable(152) %72)
          to label %73 unwind label %79

73:                                               ; preds = %71
  invoke void @_ZNSt14priority_queueI1PSt6vectorIS0_SaIS0_EESt4lessIS0_EE3popEv(ptr noundef nonnull align 8 dereferenceable(25) %6)
          to label %74 unwind label %.loopexit45

74:                                               ; preds = %73
  %75 = invoke noundef i64 @_ZNKSt13unordered_mapI1PiSt4hashIS0_ESt8equal_toIS0_ESaISt4pairIKS0_iEEE5countERS6_(ptr noundef nonnull align 8 dereferenceable(56) @v, ptr noundef nonnull align 8 dereferenceable(152) %7)
          to label %76 unwind label %.loopexit45

76:                                               ; preds = %74
  %.not32 = icmp eq i64 %75, 0
  br i1 %.not32, label %81, label %.loopexit, !llvm.loop !19

77:                                               ; preds = %63
  %78 = landingpad { ptr, i32 }
          cleanup
  br label %216

79:                                               ; preds = %71
  %80 = landingpad { ptr, i32 }
          cleanup
  br label %215

.loopexit45:                                      ; preds = %73, %74, %81, %90
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %214

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

81:                                               ; preds = %76
  %82 = invoke noundef i32 @_Z9manhattonR1P(ptr noundef nonnull align 8 dereferenceable(152) %7)
          to label %83 unwind label %.loopexit45

83:                                               ; preds = %81
  %84 = icmp eq i32 %82, 0
  br i1 %84, label %85, label %90

85:                                               ; preds = %83
  %86 = getelementptr inbounds i8, ptr %7, i64 120
  %87 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull align 8 dereferenceable(32) %86)
          to label %88 unwind label %.loopexit.split-lp

88:                                               ; preds = %85
  %89 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %87, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %.thread unwind label %.loopexit.split-lp

.thread:                                          ; preds = %88
  call void @_ZN1PD2Ev(ptr noundef nonnull align 8 dereferenceable(152) %7) #7
  call void @llvm.lifetime.end.p0(i64 152, ptr nonnull %7) #7
  br label %.loopexit44

90:                                               ; preds = %83
  %91 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt13unordered_mapI1PiSt4hashIS0_ESt8equal_toIS0_ESaISt4pairIKS0_iEEEixERS6_(ptr noundef nonnull align 8 dereferenceable(56) @v, ptr noundef nonnull align 8 dereferenceable(152) %7)
          to label %92 unwind label %.loopexit45

92:                                               ; preds = %90
  %93 = load i32, ptr %91, align 4, !tbaa !5
  %94 = add nsw i32 %93, 1
  store i32 %94, ptr %91, align 4, !tbaa !5
  %95 = load i32, ptr %65, align 4, !tbaa !13
  %96 = invoke noundef i32 @_Z9manhattonR1P(ptr noundef nonnull align 8 dereferenceable(152) %7)
          to label %97 unwind label %108

97:                                               ; preds = %92
  %.sroa.0.0.copyload = load i32, ptr %66, align 8
  %.sroa.6.0.copyload = load i32, ptr %.sroa.6.0..sroa_idx, align 4
  %98 = sext i32 %.sroa.0.0.copyload to i64
  %99 = sext i32 %.sroa.6.0.copyload to i64
  %100 = getelementptr inbounds [3 x [3 x i32]], ptr %8, i64 0, i64 %98, i64 %99
  %101 = add i32 %95, 1
  %102 = sub i32 %101, %96
  %103 = load i32, ptr @dx, align 16, !tbaa !5
  %104 = add nsw i32 %103, %.sroa.0.0.copyload
  %105 = load i32, ptr @dy, align 16, !tbaa !5
  %106 = add nsw i32 %105, %.sroa.6.0.copyload
  %107 = call noundef zeroext i1 @_Z5validii(i32 noundef %104, i32 noundef %106)
  br i1 %107, label %110, label %134

108:                                              ; preds = %92
  %109 = landingpad { ptr, i32 }
          cleanup
  br label %214

110:                                              ; preds = %97
  call void @llvm.lifetime.start.p0(i64 152, ptr nonnull %8) #7
  invoke void @_ZN1PC2ERKS_(ptr noundef nonnull align 8 dereferenceable(152) %8, ptr noundef nonnull align 8 dereferenceable(152) %7)
          to label %111 unwind label %121

111:                                              ; preds = %110
  %112 = sext i32 %104 to i64
  %113 = sext i32 %106 to i64
  %114 = getelementptr inbounds [3 x [3 x i32]], ptr %7, i64 0, i64 %112, i64 %113
  %115 = load i32, ptr %114, align 4, !tbaa !5
  %116 = sext i32 %115 to i64
  %117 = getelementptr inbounds [10 x %"struct.std::pair"], ptr %67, i64 0, i64 %116
  call void @_ZSt4swapIiiENSt9enable_ifIXsr6__and_ISt14__is_swappableIT_ES1_IT0_EEE5valueEvE4typeERSt4pairIS2_S4_ESA_(ptr noundef nonnull align 4 dereferenceable(8) %68, ptr noundef nonnull align 4 dereferenceable(8) %117) #7
  %118 = getelementptr inbounds [3 x [3 x i32]], ptr %8, i64 0, i64 %112, i64 %113
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %118, ptr noundef nonnull align 4 dereferenceable(4) %100) #7
  %119 = invoke noundef i64 @_ZNKSt13unordered_mapI1PiSt4hashIS0_ESt8equal_toIS0_ESaISt4pairIKS0_iEEE5countERS6_(ptr noundef nonnull align 8 dereferenceable(56) @v, ptr noundef nonnull align 8 dereferenceable(152) %8)
          to label %120 unwind label %123

120:                                              ; preds = %111
  %.not33 = icmp eq i64 %119, 0
  br i1 %.not33, label %125, label %133

121:                                              ; preds = %192, %166, %140, %110
  %122 = landingpad { ptr, i32 }
          cleanup
  br label %212

123:                                              ; preds = %210, %205, %203, %193, %184, %179, %177, %167, %158, %153, %151, %141, %132, %127, %125, %111
  %124 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN1PD2Ev(ptr noundef nonnull align 8 dereferenceable(152) %8) #7
  br label %212

125:                                              ; preds = %120
  %126 = invoke noundef i32 @_Z9manhattonR1P(ptr noundef nonnull align 8 dereferenceable(152) %8)
          to label %127 unwind label %123

127:                                              ; preds = %125
  %128 = add i32 %102, %126
  store i32 %128, ptr %69, align 4, !tbaa !13
  %129 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z3dirB5cxx11, i64 noundef 0)
  %130 = load i8, ptr %129, align 1, !tbaa !11
  %131 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %70, i8 noundef signext %130)
          to label %132 unwind label %123

132:                                              ; preds = %127
  invoke void @_ZNSt14priority_queueI1PSt6vectorIS0_SaIS0_EESt4lessIS0_EE4pushERKS0_(ptr noundef nonnull align 8 dereferenceable(25) %6, ptr noundef nonnull align 8 dereferenceable(152) %8)
          to label %133 unwind label %123

133:                                              ; preds = %132, %120
  call void @_ZN1PD2Ev(ptr noundef nonnull align 8 dereferenceable(152) %8) #7
  call void @llvm.lifetime.end.p0(i64 152, ptr nonnull %8) #7
  br label %134

134:                                              ; preds = %97, %133
  %135 = load i32, ptr getelementptr inbounds (i8, ptr @dx, i64 4), align 4, !tbaa !5
  %136 = add nsw i32 %135, %.sroa.0.0.copyload
  %137 = load i32, ptr getelementptr inbounds (i8, ptr @dy, i64 4), align 4, !tbaa !5
  %138 = add nsw i32 %137, %.sroa.6.0.copyload
  %139 = call noundef zeroext i1 @_Z5validii(i32 noundef %136, i32 noundef %138)
  br i1 %139, label %140, label %160

140:                                              ; preds = %134
  call void @llvm.lifetime.start.p0(i64 152, ptr nonnull %8) #7
  invoke void @_ZN1PC2ERKS_(ptr noundef nonnull align 8 dereferenceable(152) %8, ptr noundef nonnull align 8 dereferenceable(152) %7)
          to label %141 unwind label %121

141:                                              ; preds = %140
  %142 = sext i32 %136 to i64
  %143 = sext i32 %138 to i64
  %144 = getelementptr inbounds [3 x [3 x i32]], ptr %7, i64 0, i64 %142, i64 %143
  %145 = load i32, ptr %144, align 4, !tbaa !5
  %146 = sext i32 %145 to i64
  %147 = getelementptr inbounds [10 x %"struct.std::pair"], ptr %67, i64 0, i64 %146
  call void @_ZSt4swapIiiENSt9enable_ifIXsr6__and_ISt14__is_swappableIT_ES1_IT0_EEE5valueEvE4typeERSt4pairIS2_S4_ESA_(ptr noundef nonnull align 4 dereferenceable(8) %68, ptr noundef nonnull align 4 dereferenceable(8) %147) #7
  %148 = getelementptr inbounds [3 x [3 x i32]], ptr %8, i64 0, i64 %142, i64 %143
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %148, ptr noundef nonnull align 4 dereferenceable(4) %100) #7
  %149 = invoke noundef i64 @_ZNKSt13unordered_mapI1PiSt4hashIS0_ESt8equal_toIS0_ESaISt4pairIKS0_iEEE5countERS6_(ptr noundef nonnull align 8 dereferenceable(56) @v, ptr noundef nonnull align 8 dereferenceable(152) %8)
          to label %150 unwind label %123

150:                                              ; preds = %141
  %.not33.1 = icmp eq i64 %149, 0
  br i1 %.not33.1, label %151, label %159

151:                                              ; preds = %150
  %152 = invoke noundef i32 @_Z9manhattonR1P(ptr noundef nonnull align 8 dereferenceable(152) %8)
          to label %153 unwind label %123

153:                                              ; preds = %151
  %154 = add i32 %102, %152
  store i32 %154, ptr %69, align 4, !tbaa !13
  %155 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z3dirB5cxx11, i64 noundef 1)
  %156 = load i8, ptr %155, align 1, !tbaa !11
  %157 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %70, i8 noundef signext %156)
          to label %158 unwind label %123

158:                                              ; preds = %153
  invoke void @_ZNSt14priority_queueI1PSt6vectorIS0_SaIS0_EESt4lessIS0_EE4pushERKS0_(ptr noundef nonnull align 8 dereferenceable(25) %6, ptr noundef nonnull align 8 dereferenceable(152) %8)
          to label %159 unwind label %123

159:                                              ; preds = %158, %150
  call void @_ZN1PD2Ev(ptr noundef nonnull align 8 dereferenceable(152) %8) #7
  call void @llvm.lifetime.end.p0(i64 152, ptr nonnull %8) #7
  br label %160

160:                                              ; preds = %159, %134
  %161 = load i32, ptr getelementptr inbounds (i8, ptr @dx, i64 8), align 8, !tbaa !5
  %162 = add nsw i32 %161, %.sroa.0.0.copyload
  %163 = load i32, ptr getelementptr inbounds (i8, ptr @dy, i64 8), align 8, !tbaa !5
  %164 = add nsw i32 %163, %.sroa.6.0.copyload
  %165 = call noundef zeroext i1 @_Z5validii(i32 noundef %162, i32 noundef %164)
  br i1 %165, label %166, label %186

166:                                              ; preds = %160
  call void @llvm.lifetime.start.p0(i64 152, ptr nonnull %8) #7
  invoke void @_ZN1PC2ERKS_(ptr noundef nonnull align 8 dereferenceable(152) %8, ptr noundef nonnull align 8 dereferenceable(152) %7)
          to label %167 unwind label %121

167:                                              ; preds = %166
  %168 = sext i32 %162 to i64
  %169 = sext i32 %164 to i64
  %170 = getelementptr inbounds [3 x [3 x i32]], ptr %7, i64 0, i64 %168, i64 %169
  %171 = load i32, ptr %170, align 4, !tbaa !5
  %172 = sext i32 %171 to i64
  %173 = getelementptr inbounds [10 x %"struct.std::pair"], ptr %67, i64 0, i64 %172
  call void @_ZSt4swapIiiENSt9enable_ifIXsr6__and_ISt14__is_swappableIT_ES1_IT0_EEE5valueEvE4typeERSt4pairIS2_S4_ESA_(ptr noundef nonnull align 4 dereferenceable(8) %68, ptr noundef nonnull align 4 dereferenceable(8) %173) #7
  %174 = getelementptr inbounds [3 x [3 x i32]], ptr %8, i64 0, i64 %168, i64 %169
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %174, ptr noundef nonnull align 4 dereferenceable(4) %100) #7
  %175 = invoke noundef i64 @_ZNKSt13unordered_mapI1PiSt4hashIS0_ESt8equal_toIS0_ESaISt4pairIKS0_iEEE5countERS6_(ptr noundef nonnull align 8 dereferenceable(56) @v, ptr noundef nonnull align 8 dereferenceable(152) %8)
          to label %176 unwind label %123

176:                                              ; preds = %167
  %.not33.2 = icmp eq i64 %175, 0
  br i1 %.not33.2, label %177, label %185

177:                                              ; preds = %176
  %178 = invoke noundef i32 @_Z9manhattonR1P(ptr noundef nonnull align 8 dereferenceable(152) %8)
          to label %179 unwind label %123

179:                                              ; preds = %177
  %180 = add i32 %102, %178
  store i32 %180, ptr %69, align 4, !tbaa !13
  %181 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z3dirB5cxx11, i64 noundef 2)
  %182 = load i8, ptr %181, align 1, !tbaa !11
  %183 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %70, i8 noundef signext %182)
          to label %184 unwind label %123

184:                                              ; preds = %179
  invoke void @_ZNSt14priority_queueI1PSt6vectorIS0_SaIS0_EESt4lessIS0_EE4pushERKS0_(ptr noundef nonnull align 8 dereferenceable(25) %6, ptr noundef nonnull align 8 dereferenceable(152) %8)
          to label %185 unwind label %123

185:                                              ; preds = %184, %176
  call void @_ZN1PD2Ev(ptr noundef nonnull align 8 dereferenceable(152) %8) #7
  call void @llvm.lifetime.end.p0(i64 152, ptr nonnull %8) #7
  br label %186

186:                                              ; preds = %185, %160
  %187 = load i32, ptr getelementptr inbounds (i8, ptr @dx, i64 12), align 4, !tbaa !5
  %188 = add nsw i32 %187, %.sroa.0.0.copyload
  %189 = load i32, ptr getelementptr inbounds (i8, ptr @dy, i64 12), align 4, !tbaa !5
  %190 = add nsw i32 %189, %.sroa.6.0.copyload
  %191 = call noundef zeroext i1 @_Z5validii(i32 noundef %188, i32 noundef %190)
  br i1 %191, label %192, label %.loopexit

192:                                              ; preds = %186
  call void @llvm.lifetime.start.p0(i64 152, ptr nonnull %8) #7
  invoke void @_ZN1PC2ERKS_(ptr noundef nonnull align 8 dereferenceable(152) %8, ptr noundef nonnull align 8 dereferenceable(152) %7)
          to label %193 unwind label %121

193:                                              ; preds = %192
  %194 = sext i32 %188 to i64
  %195 = sext i32 %190 to i64
  %196 = getelementptr inbounds [3 x [3 x i32]], ptr %7, i64 0, i64 %194, i64 %195
  %197 = load i32, ptr %196, align 4, !tbaa !5
  %198 = sext i32 %197 to i64
  %199 = getelementptr inbounds [10 x %"struct.std::pair"], ptr %67, i64 0, i64 %198
  call void @_ZSt4swapIiiENSt9enable_ifIXsr6__and_ISt14__is_swappableIT_ES1_IT0_EEE5valueEvE4typeERSt4pairIS2_S4_ESA_(ptr noundef nonnull align 4 dereferenceable(8) %68, ptr noundef nonnull align 4 dereferenceable(8) %199) #7
  %200 = getelementptr inbounds [3 x [3 x i32]], ptr %8, i64 0, i64 %194, i64 %195
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %200, ptr noundef nonnull align 4 dereferenceable(4) %100) #7
  %201 = invoke noundef i64 @_ZNKSt13unordered_mapI1PiSt4hashIS0_ESt8equal_toIS0_ESaISt4pairIKS0_iEEE5countERS6_(ptr noundef nonnull align 8 dereferenceable(56) @v, ptr noundef nonnull align 8 dereferenceable(152) %8)
          to label %202 unwind label %123

202:                                              ; preds = %193
  %.not33.3 = icmp eq i64 %201, 0
  br i1 %.not33.3, label %203, label %211

203:                                              ; preds = %202
  %204 = invoke noundef i32 @_Z9manhattonR1P(ptr noundef nonnull align 8 dereferenceable(152) %8)
          to label %205 unwind label %123

205:                                              ; preds = %203
  %206 = add i32 %102, %204
  store i32 %206, ptr %69, align 4, !tbaa !13
  %207 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z3dirB5cxx11, i64 noundef 3)
  %208 = load i8, ptr %207, align 1, !tbaa !11
  %209 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %70, i8 noundef signext %208)
          to label %210 unwind label %123

210:                                              ; preds = %205
  invoke void @_ZNSt14priority_queueI1PSt6vectorIS0_SaIS0_EESt4lessIS0_EE4pushERKS0_(ptr noundef nonnull align 8 dereferenceable(25) %6, ptr noundef nonnull align 8 dereferenceable(152) %8)
          to label %211 unwind label %123

211:                                              ; preds = %210, %202
  call void @_ZN1PD2Ev(ptr noundef nonnull align 8 dereferenceable(152) %8) #7
  call void @llvm.lifetime.end.p0(i64 152, ptr nonnull %8) #7
  br label %.loopexit

212:                                              ; preds = %123, %121
  %.pn = phi { ptr, i32 } [ %124, %123 ], [ %122, %121 ]
  call void @llvm.lifetime.end.p0(i64 152, ptr nonnull %8) #7
  br label %214

.loopexit:                                        ; preds = %186, %211, %76
  call void @_ZN1PD2Ev(ptr noundef nonnull align 8 dereferenceable(152) %7) #7
  call void @llvm.lifetime.end.p0(i64 152, ptr nonnull %7) #7
  %213 = call noundef i64 @_ZNKSt14priority_queueI1PSt6vectorIS0_SaIS0_EESt4lessIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(25) %6)
  %.not = icmp eq i64 %213, 0
  br i1 %.not, label %.loopexit44, label %71

214:                                              ; preds = %.loopexit45, %.loopexit.split-lp, %108, %212
  %.pn36 = phi { ptr, i32 } [ %.pn, %212 ], [ %109, %108 ], [ %lpad.loopexit, %.loopexit45 ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @_ZN1PD2Ev(ptr noundef nonnull align 8 dereferenceable(152) %7) #7
  br label %215

215:                                              ; preds = %214, %79
  %.pn36.pn = phi { ptr, i32 } [ %.pn36, %214 ], [ %80, %79 ]
  call void @llvm.lifetime.end.p0(i64 152, ptr nonnull %7) #7
  br label %216

.loopexit44:                                      ; preds = %.loopexit, %.preheader, %.thread
  call void @_ZNSt14priority_queueI1PSt6vectorIS0_SaIS0_EESt4lessIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(25) %6) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #7
  br label %217

216:                                              ; preds = %215, %77
  %.pn36.pn.pn = phi { ptr, i32 } [ %.pn36.pn, %215 ], [ %78, %77 ]
  call void @_ZNSt14priority_queueI1PSt6vectorIS0_SaIS0_EESt4lessIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(25) %6) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #7
  br label %218

217:                                              ; preds = %59, %.loopexit44
  call void @_ZN1PD2Ev(ptr noundef nonnull align 8 dereferenceable(152) %1) #7
  call void @llvm.lifetime.end.p0(i64 152, ptr nonnull %1) #7
  ret i32 0

218:                                              ; preds = %216, %61, %31
  %.pn41 = phi { ptr, i32 } [ %32, %31 ], [ %.pn36.pn.pn, %216 ], [ %62, %61 ]
  call void @_ZN1PD2Ev(ptr noundef nonnull align 8 dereferenceable(152) %1) #7
  call void @llvm.lifetime.end.p0(i64 152, ptr nonnull %1) #7
  resume { ptr, i32 } %.pn41
}

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #5

; Function Attrs: mustprogress nounwind uwtable
declare noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) local_unnamed_addr #3 align 2

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

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN1PD2Ev(ptr noundef nonnull align 8 dereferenceable(152)) unnamed_addr #6 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt14priority_queueI1PSt6vectorIS0_SaIS0_EESt4lessIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(25)) unnamed_addr #6 align 2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!7, !7, i64 0}
!12 = distinct !{!12, !10}
!13 = !{!14, !6, i64 36}
!14 = !{!"_ZTS1P", !7, i64 0, !6, i64 36, !7, i64 40, !15, i64 120}
!15 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !16, i64 0, !18, i64 8, !7, i64 16}
!16 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !17, i64 0}
!17 = !{!"any pointer", !7, i64 0}
!18 = !{!"long", !7, i64 0}
!19 = distinct !{!19, !10}


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