; LLVM IR from tangjz/acm-icpc :: 51nod/1152.ll (Z9getStatusv)

; 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"

%struct.HashTable = type { i32, [301 x i32], %"class.std::unordered_map" }
%"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 }
%struct.Edge = type { i32, i32 }
%"class.std::queue" = type { %"class.std::deque" }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl" }
%"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl" = type { %"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl_data" }
%"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator", %"struct.std::_Deque_iterator" }
%"struct.std::_Deque_iterator" = type { ptr, ptr, ptr, ptr }
%"class.std::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"struct.std::pair" = type <{ %"struct.std::_Rb_tree_const_iterator", i8, [7 x i8] }>
%"struct.std::_Rb_tree_const_iterator" = type { ptr }

@HT = external dso_local global %struct.HashTable, align 8
@m = external dso_local global i32, align 4
@seq = external dso_local global [9 x i32], align 16
@low = external dso_local global [9 x i32], align 16
@upp = external dso_local global [9 x i32], align 16
@e = external dso_local global [9 x %struct.Edge], align 16
@trans = external dso_local global [301 x [301 x i32]], align 16
@Q = external dso_local global %"class.std::queue", align 8
@sp = external dso_local global %"class.std::set", align 8
@g = external dso_local global [301 x [301 x i8]], align 16
@.str = external hidden unnamed_addr constant [14 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z7min_repv() #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 void @_Z10num_to_seqi(i32 noundef) #0

; Function Attrs: mustprogress uwtable
define dso_local void @_Z9getStatusv() #2 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca %"struct.std::pair", align 8
  %4 = alloca %struct.Edge, align 4
  %5 = alloca %struct.Edge, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i8, align 1
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca %"struct.std::pair", align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #6
  store i32 0, ptr %1, align 4, !tbaa !5
  br label %22

22:                                               ; preds = %35, %0
  %23 = load i32, ptr %1, align 4, !tbaa !5
  %24 = load i32, ptr @HT, align 8, !tbaa !9
  %25 = icmp slt i32 %23, %24
  br i1 %25, label %27, label %26

26:                                               ; preds = %22
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #6
  br label %38

27:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  %28 = load i32, ptr %1, align 4, !tbaa !5
  %29 = call noundef i32 @_ZNK9HashTable3valEi(ptr noundef nonnull align 8 dereferenceable(1264) @HT, i32 noundef %28)
  store i32 %29, ptr %2, align 4, !tbaa !5
  %30 = call { ptr, i8 } @_ZNSt3setIiSt4lessIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(48) @sp, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %31 = getelementptr inbounds { ptr, i8 }, ptr %3, i32 0, i32 0
  %32 = extractvalue { ptr, i8 } %30, 0
  store ptr %32, ptr %31, align 8
  %33 = getelementptr inbounds { ptr, i8 }, ptr %3, i32 0, i32 1
  %34 = extractvalue { ptr, i8 } %30, 1
  store i8 %34, ptr %33, align 8
  call void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) @Q, ptr noundef nonnull align 4 dereferenceable(4) %2)
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  br label %35

35:                                               ; preds = %27
  %36 = load i32, ptr %1, align 4, !tbaa !5
  %37 = add nsw i32 %36, 1
  store i32 %37, ptr %1, align 4, !tbaa !5
  br label %22, !llvm.loop !18

38:                                               ; preds = %26
  store i32 0, ptr @m, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #6
  %39 = getelementptr inbounds %struct.Edge, ptr %4, i32 0, i32 0
  store i32 3, ptr %39, align 4, !tbaa !20
  %40 = getelementptr inbounds %struct.Edge, ptr %4, i32 0, i32 1
  store i32 6, ptr %40, align 4, !tbaa !22
  %41 = load i32, ptr @m, align 4, !tbaa !5
  %42 = add nsw i32 %41, 1
  store i32 %42, ptr @m, align 4, !tbaa !5
  %43 = sext i32 %41 to i64
  %44 = getelementptr inbounds [9 x %struct.Edge], ptr @e, i64 0, i64 %43
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %44, ptr align 4 %4, i64 8, i1 false), !tbaa.struct !23
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  %45 = getelementptr inbounds %struct.Edge, ptr %5, i32 0, i32 0
  store i32 5, ptr %45, align 4, !tbaa !20
  %46 = getelementptr inbounds %struct.Edge, ptr %5, i32 0, i32 1
  store i32 6, ptr %46, align 4, !tbaa !22
  %47 = load i32, ptr @m, align 4, !tbaa !5
  %48 = add nsw i32 %47, 1
  store i32 %48, ptr @m, align 4, !tbaa !5
  %49 = sext i32 %47 to i64
  %50 = getelementptr inbounds [9 x %struct.Edge], ptr @e, i64 0, i64 %49
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %50, ptr align 4 %5, i64 8, i1 false), !tbaa.struct !23
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  br label %51

51:                                               ; preds = %341, %339, %38
  %52 = call noundef zeroext i1 @_ZNKSt5queueIiSt5dequeIiSaIiEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) @Q)
  %53 = xor i1 %52, true
  br i1 %53, label %54, label %342

54:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  %55 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5queueIiSt5dequeIiSaIiEEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) @Q)
  %56 = load i32, ptr %55, align 4, !tbaa !5
  store i32 %56, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  %57 = load i32, ptr %6, align 4, !tbaa !5
  %58 = call noundef i32 @_ZN9HashTable3posEi(ptr noundef nonnull align 8 dereferenceable(1264) @HT, i32 noundef %57)
  store i32 %58, ptr %7, align 4, !tbaa !5
  call void @_ZNSt5queueIiSt5dequeIiSaIiEEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) @Q)
  %59 = load i32, ptr %6, align 4, !tbaa !5
  %60 = icmp ne i32 %59, 0
  br i1 %60, label %62, label %61

61:                                               ; preds = %54
  store i32 5, ptr %8, align 4
  br label %339, !llvm.loop !24

62:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  store i32 0, ptr %9, align 4, !tbaa !5
  br label %63

63:                                               ; preds = %335, %62
  %64 = load i32, ptr %9, align 4, !tbaa !5
  %65 = load i32, ptr @m, align 4, !tbaa !5
  %66 = shl i32 1, %65
  %67 = icmp slt i32 %64, %66
  br i1 %67, label %69, label %68

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

69:                                               ; preds = %63
  %70 = load i32, ptr %6, align 4, !tbaa !5
  call void @_Z10num_to_seqi(i32 noundef %70)
  store i32 7, ptr getelementptr inbounds ([9 x i32], ptr @seq, i64 0, i64 6), align 8, !tbaa !5
  store i32 6, ptr getelementptr inbounds ([9 x i32], ptr @upp, i64 0, i64 7), align 4, !tbaa !5
  store i32 6, ptr getelementptr inbounds ([9 x i32], ptr @low, i64 0, i64 7), align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #6
  store i8 1, ptr %10, align 1, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %71

71:                                               ; preds = %271, %69
  %72 = load i32, ptr %11, align 4, !tbaa !5
  %73 = load i32, ptr @m, align 4, !tbaa !5
  %74 = icmp slt i32 %72, %73
  br i1 %74, label %75, label %78

75:                                               ; preds = %71
  %76 = load i8, ptr %10, align 1, !tbaa !25, !range !27, !noundef !28
  %77 = trunc i8 %76 to i1
  br label %78

78:                                               ; preds = %75, %71
  %79 = phi i1 [ false, %71 ], [ %77, %75 ]
  br i1 %79, label %81, label %80

80:                                               ; preds = %78
  store i32 10, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  br label %274

81:                                               ; preds = %78
  %82 = load i32, ptr %9, align 4, !tbaa !5
  %83 = xor i32 %82, -1
  %84 = load i32, ptr %11, align 4, !tbaa !5
  %85 = shl i32 1, %84
  %86 = and i32 %83, %85
  %87 = icmp ne i32 %86, 0
  br i1 %87, label %88, label %89

88:                                               ; preds = %81
  br label %271

89:                                               ; preds = %81
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  %90 = load i32, ptr %11, align 4, !tbaa !5
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds [9 x %struct.Edge], ptr @e, i64 0, i64 %91
  %93 = getelementptr inbounds %struct.Edge, ptr %92, i32 0, i32 0
  %94 = load i32, ptr %93, align 8, !tbaa !20
  store i32 %94, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  %95 = load i32, ptr %11, align 4, !tbaa !5
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds [9 x %struct.Edge], ptr @e, i64 0, i64 %96
  %98 = getelementptr inbounds %struct.Edge, ptr %97, i32 0, i32 1
  %99 = load i32, ptr %98, align 4, !tbaa !22
  store i32 %99, ptr %13, align 4, !tbaa !5
  %100 = load i32, ptr %12, align 4, !tbaa !5
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds [9 x i32], ptr @seq, i64 0, i64 %101
  %103 = load i32, ptr %102, align 4, !tbaa !5
  %104 = icmp ne i32 %103, 0
  br i1 %104, label %105, label %111

105:                                              ; preds = %89
  %106 = load i32, ptr %13, align 4, !tbaa !5
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds [9 x i32], ptr @seq, i64 0, i64 %107
  %109 = load i32, ptr %108, align 4, !tbaa !5
  %110 = icmp ne i32 %109, 0
  br label %111

111:                                              ; preds = %105, %89
  %112 = phi i1 [ false, %89 ], [ %110, %105 ]
  %113 = zext i1 %112 to i32
  %114 = load i8, ptr %10, align 1, !tbaa !25, !range !27, !noundef !28
  %115 = trunc i8 %114 to i1
  %116 = zext i1 %115 to i32
  %117 = and i32 %116, %113
  %118 = icmp ne i32 %117, 0
  %119 = zext i1 %118 to i8
  store i8 %119, ptr %10, align 1, !tbaa !25
  %120 = load i8, ptr %10, align 1, !tbaa !25, !range !27, !noundef !28
  %121 = trunc i8 %120 to i1
  br i1 %121, label %123, label %122

122:                                              ; preds = %111
  store i32 12, ptr %8, align 4
  br label %268

123:                                              ; preds = %111
  %124 = load i32, ptr %12, align 4, !tbaa !5
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds [9 x i32], ptr @seq, i64 0, i64 %125
  %127 = load i32, ptr %126, align 4, !tbaa !5
  %128 = load i32, ptr %13, align 4, !tbaa !5
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds [9 x i32], ptr @seq, i64 0, i64 %129
  %131 = load i32, ptr %130, align 4, !tbaa !5
  %132 = icmp eq i32 %127, %131
  br i1 %132, label %133, label %172

133:                                              ; preds = %123
  %134 = load i32, ptr %13, align 4, !tbaa !5
  %135 = sext i32 %134 to i64
  %136 = getelementptr inbounds [9 x i32], ptr @seq, i64 0, i64 %135
  store i32 0, ptr %136, align 4, !tbaa !5
  %137 = load i32, ptr %12, align 4, !tbaa !5
  %138 = sext i32 %137 to i64
  %139 = getelementptr inbounds [9 x i32], ptr @seq, i64 0, i64 %138
  store i32 0, ptr %139, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %140

140:                                              ; preds = %168, %133
  %141 = load i32, ptr %14, align 4, !tbaa !5
  %142 = icmp slt i32 %141, 7
  br i1 %142, label %144, label %143

143:                                              ; preds = %140
  store i32 13, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  br label %171

144:                                              ; preds = %140
  %145 = load i32, ptr %14, align 4, !tbaa !5
  %146 = load i32, ptr %12, align 4, !tbaa !5
  %147 = icmp eq i32 %145, %146
  br i1 %147, label %159, label %148

148:                                              ; preds = %144
  %149 = load i32, ptr %14, align 4, !tbaa !5
  %150 = load i32, ptr %13, align 4, !tbaa !5
  %151 = icmp eq i32 %149, %150
  br i1 %151, label %159, label %152

152:                                              ; preds = %148
  %153 = load i32, ptr %14, align 4, !tbaa !5
  %154 = sext i32 %153 to i64
  %155 = getelementptr inbounds [9 x i32], ptr @seq, i64 0, i64 %154
  %156 = load i32, ptr %155, align 4, !tbaa !5
  %157 = icmp ne i32 %156, 0
  %158 = xor i1 %157, true
  br label %159

159:                                              ; preds = %152, %148, %144
  %160 = phi i1 [ true, %148 ], [ true, %144 ], [ %158, %152 ]
  %161 = zext i1 %160 to i32
  %162 = load i8, ptr %10, align 1, !tbaa !25, !range !27, !noundef !28
  %163 = trunc i8 %162 to i1
  %164 = zext i1 %163 to i32
  %165 = and i32 %164, %161
  %166 = icmp ne i32 %165, 0
  %167 = zext i1 %166 to i8
  store i8 %167, ptr %10, align 1, !tbaa !25
  br label %168

168:                                              ; preds = %159
  %169 = load i32, ptr %14, align 4, !tbaa !5
  %170 = add nsw i32 %169, 1
  store i32 %170, ptr %14, align 4, !tbaa !5
  br label %140, !llvm.loop !29

171:                                              ; preds = %143
  store i32 12, ptr %8, align 4
  br label %268

172:                                              ; preds = %123
  %173 = load i32, ptr %12, align 4, !tbaa !5
  %174 = sext i32 %173 to i64
  %175 = getelementptr inbounds [9 x i32], ptr @seq, i64 0, i64 %174
  %176 = load i32, ptr %175, align 4, !tbaa !5
  %177 = load i32, ptr %13, align 4, !tbaa !5
  %178 = sext i32 %177 to i64
  %179 = getelementptr inbounds [9 x i32], ptr @seq, i64 0, i64 %178
  %180 = load i32, ptr %179, align 4, !tbaa !5
  %181 = icmp sgt i32 %176, %180
  br i1 %181, label %182, label %183

182:                                              ; preds = %172
  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) %12, ptr noundef nonnull align 4 dereferenceable(4) %13) #6
  br label %183

183:                                              ; preds = %182, %172
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  %184 = load i32, ptr %12, align 4, !tbaa !5
  %185 = sext i32 %184 to i64
  %186 = getelementptr inbounds [9 x i32], ptr @seq, i64 0, i64 %185
  %187 = load i32, ptr %186, align 4, !tbaa !5
  store i32 %187, ptr %15, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  %188 = load i32, ptr %12, align 4, !tbaa !5
  %189 = sext i32 %188 to i64
  %190 = getelementptr inbounds [9 x i32], ptr @seq, i64 0, i64 %189
  %191 = load i32, ptr %190, align 4, !tbaa !5
  %192 = sext i32 %191 to i64
  %193 = getelementptr inbounds [9 x i32], ptr @low, i64 0, i64 %192
  %194 = load i32, ptr %193, align 4, !tbaa !5
  %195 = load i32, ptr %12, align 4, !tbaa !5
  %196 = icmp ne i32 %194, %195
  br i1 %196, label %197, label %205

197:                                              ; preds = %183
  %198 = load i32, ptr %12, align 4, !tbaa !5
  %199 = sext i32 %198 to i64
  %200 = getelementptr inbounds [9 x i32], ptr @seq, i64 0, i64 %199
  %201 = load i32, ptr %200, align 4, !tbaa !5
  %202 = sext i32 %201 to i64
  %203 = getelementptr inbounds [9 x i32], ptr @low, i64 0, i64 %202
  %204 = load i32, ptr %203, align 4, !tbaa !5
  br label %213

205:                                              ; preds = %183
  %206 = load i32, ptr %12, align 4, !tbaa !5
  %207 = sext i32 %206 to i64
  %208 = getelementptr inbounds [9 x i32], ptr @seq, i64 0, i64 %207
  %209 = load i32, ptr %208, align 4, !tbaa !5
  %210 = sext i32 %209 to i64
  %211 = getelementptr inbounds [9 x i32], ptr @upp, i64 0, i64 %210
  %212 = load i32, ptr %211, align 4, !tbaa !5
  br label %213

213:                                              ; preds = %205, %197
  %214 = phi i32 [ %204, %197 ], [ %212, %205 ]
  store i32 %214, ptr %16, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  %215 = load i32, ptr %13, align 4, !tbaa !5
  %216 = sext i32 %215 to i64
  %217 = getelementptr inbounds [9 x i32], ptr @seq, i64 0, i64 %216
  %218 = load i32, ptr %217, align 4, !tbaa !5
  %219 = sext i32 %218 to i64
  %220 = getelementptr inbounds [9 x i32], ptr @low, i64 0, i64 %219
  %221 = load i32, ptr %220, align 4, !tbaa !5
  %222 = load i32, ptr %13, align 4, !tbaa !5
  %223 = icmp ne i32 %221, %222
  br i1 %223, label %224, label %232

224:                                              ; preds = %213
  %225 = load i32, ptr %13, align 4, !tbaa !5
  %226 = sext i32 %225 to i64
  %227 = getelementptr inbounds [9 x i32], ptr @seq, i64 0, i64 %226
  %228 = load i32, ptr %227, align 4, !tbaa !5
  %229 = sext i32 %228 to i64
  %230 = getelementptr inbounds [9 x i32], ptr @low, i64 0, i64 %229
  %231 = load i32, ptr %230, align 4, !tbaa !5
  br label %240

232:                                              ; preds = %213
  %233 = load i32, ptr %13, align 4, !tbaa !5
  %234 = sext i32 %233 to i64
  %235 = getelementptr inbounds [9 x i32], ptr @seq, i64 0, i64 %234
  %236 = load i32, ptr %235, align 4, !tbaa !5
  %237 = sext i32 %236 to i64
  %238 = getelementptr inbounds [9 x i32], ptr @upp, i64 0, i64 %237
  %239 = load i32, ptr %238, align 4, !tbaa !5
  br label %240

240:                                              ; preds = %232, %224
  %241 = phi i32 [ %231, %224 ], [ %239, %232 ]
  store i32 %241, ptr %17, align 4, !tbaa !5
  %242 = load i32, ptr %16, align 4, !tbaa !5
  %243 = load i32, ptr %17, align 4, !tbaa !5
  %244 = icmp sgt i32 %242, %243
  br i1 %244, label %245, label %246

245:                                              ; preds = %240
  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) %16, ptr noundef nonnull align 4 dereferenceable(4) %17) #6
  br label %246

246:                                              ; preds = %245, %240
  %247 = load i32, ptr %13, align 4, !tbaa !5
  %248 = sext i32 %247 to i64
  %249 = getelementptr inbounds [9 x i32], ptr @seq, i64 0, i64 %248
  store i32 0, ptr %249, align 4, !tbaa !5
  %250 = load i32, ptr %12, align 4, !tbaa !5
  %251 = sext i32 %250 to i64
  %252 = getelementptr inbounds [9 x i32], ptr @seq, i64 0, i64 %251
  store i32 0, ptr %252, align 4, !tbaa !5
  %253 = load i32, ptr %15, align 4, !tbaa !5
  %254 = load i32, ptr %17, align 4, !tbaa !5
  %255 = sext i32 %254 to i64
  %256 = getelementptr inbounds [9 x i32], ptr @seq, i64 0, i64 %255
  store i32 %253, ptr %256, align 4, !tbaa !5
  %257 = load i32, ptr %16, align 4, !tbaa !5
  %258 = sext i32 %257 to i64
  %259 = getelementptr inbounds [9 x i32], ptr @seq, i64 0, i64 %258
  store i32 %253, ptr %259, align 4, !tbaa !5
  %260 = load i32, ptr %16, align 4, !tbaa !5
  %261 = load i32, ptr %15, align 4, !tbaa !5
  %262 = sext i32 %261 to i64
  %263 = getelementptr inbounds [9 x i32], ptr @low, i64 0, i64 %262
  store i32 %260, ptr %263, align 4, !tbaa !5
  %264 = load i32, ptr %17, align 4, !tbaa !5
  %265 = load i32, ptr %15, align 4, !tbaa !5
  %266 = sext i32 %265 to i64
  %267 = getelementptr inbounds [9 x i32], ptr @upp, i64 0, i64 %266
  store i32 %264, ptr %267, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  store i32 0, ptr %8, align 4
  br label %268

268:                                              ; preds = %246, %171, %122
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  %269 = load i32, ptr %8, align 4
  switch i32 %269, label %345 [
    i32 0, label %270
    i32 12, label %271
  ]

270:                                              ; preds = %268
  br label %271

271:                                              ; preds = %270, %268, %88
  %272 = load i32, ptr %11, align 4, !tbaa !5
  %273 = add nsw i32 %272, 1
  store i32 %273, ptr %11, align 4, !tbaa !5
  br label %71, !llvm.loop !30

274:                                              ; preds = %80
  %275 = load i32, ptr getelementptr inbounds ([9 x i32], ptr @seq, i64 0, i64 3), align 4, !tbaa !5
  %276 = icmp ne i32 %275, 0
  %277 = xor i1 %276, true
  %278 = zext i1 %277 to i32
  %279 = load i8, ptr %10, align 1, !tbaa !25, !range !27, !noundef !28
  %280 = trunc i8 %279 to i1
  %281 = zext i1 %280 to i32
  %282 = and i32 %281, %278
  %283 = icmp ne i32 %282, 0
  %284 = zext i1 %283 to i8
  store i8 %284, ptr %10, align 1, !tbaa !25
  %285 = load i8, ptr %10, align 1, !tbaa !25, !range !27, !noundef !28
  %286 = trunc i8 %285 to i1
  br i1 %286, label %288, label %287

287:                                              ; preds = %274
  store i32 9, ptr %8, align 4
  br label %332

288:                                              ; preds = %274
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  store i32 3, ptr %18, align 4, !tbaa !5
  br label %289

289:                                              ; preds = %302, %288
  %290 = load i32, ptr %18, align 4, !tbaa !5
  %291 = icmp slt i32 %290, 6
  br i1 %291, label %293, label %292

292:                                              ; preds = %289
  store i32 16, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  br label %305

293:                                              ; preds = %289
  %294 = load i32, ptr %18, align 4, !tbaa !5
  %295 = add nsw i32 %294, 1
  %296 = sext i32 %295 to i64
  %297 = getelementptr inbounds [9 x i32], ptr @seq, i64 0, i64 %296
  %298 = load i32, ptr %297, align 4, !tbaa !5
  %299 = load i32, ptr %18, align 4, !tbaa !5
  %300 = sext i32 %299 to i64
  %301 = getelementptr inbounds [9 x i32], ptr @seq, i64 0, i64 %300
  store i32 %298, ptr %301, align 4, !tbaa !5
  br label %302

302:                                              ; preds = %293
  %303 = load i32, ptr %18, align 4, !tbaa !5
  %304 = add nsw i32 %303, 1
  store i32 %304, ptr %18, align 4, !tbaa !5
  br label %289, !llvm.loop !31

305:                                              ; preds = %292
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  %306 = call noundef i32 @_Z7min_repv()
  store i32 %306, ptr %19, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  %307 = load i32, ptr %19, align 4, !tbaa !5
  %308 = call noundef i32 @_ZN9HashTable3posEi(ptr noundef nonnull align 8 dereferenceable(1264) @HT, i32 noundef %307)
  store i32 %308, ptr %20, align 4, !tbaa !5
  %309 = load i32, ptr %7, align 4, !tbaa !5
  %310 = sext i32 %309 to i64
  %311 = getelementptr inbounds [301 x [301 x i32]], ptr @trans, i64 0, i64 %310
  %312 = load i32, ptr %20, align 4, !tbaa !5
  %313 = sext i32 %312 to i64
  %314 = getelementptr inbounds [301 x i32], ptr %311, i64 0, i64 %313
  %315 = load i32, ptr %314, align 4, !tbaa !5
  %316 = add nsw i32 %315, 1
  store i32 %316, ptr %314, align 4, !tbaa !5
  %317 = load i32, ptr %7, align 4, !tbaa !5
  %318 = sext i32 %317 to i64
  %319 = getelementptr inbounds [301 x [301 x i8]], ptr @g, i64 0, i64 %318
  %320 = load i32, ptr %20, align 4, !tbaa !5
  %321 = sext i32 %320 to i64
  %322 = getelementptr inbounds [301 x i8], ptr %319, i64 0, i64 %321
  store i8 1, ptr %322, align 1, !tbaa !25
  %323 = call noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(48) @sp, ptr noundef nonnull align 4 dereferenceable(4) %19)
  %324 = icmp ne i64 %323, 0
  br i1 %324, label %331, label %325

325:                                              ; preds = %305
  %326 = call { ptr, i8 } @_ZNSt3setIiSt4lessIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(48) @sp, ptr noundef nonnull align 4 dereferenceable(4) %19)
  %327 = getelementptr inbounds { ptr, i8 }, ptr %21, i32 0, i32 0
  %328 = extractvalue { ptr, i8 } %326, 0
  store ptr %328, ptr %327, align 8
  %329 = getelementptr inbounds { ptr, i8 }, ptr %21, i32 0, i32 1
  %330 = extractvalue { ptr, i8 } %326, 1
  store i8 %330, ptr %329, align 8
  call void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) @Q, ptr noundef nonnull align 4 dereferenceable(4) %19)
  br label %331

331:                                              ; preds = %325, %305
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  store i32 0, ptr %8, align 4
  br label %332

332:                                              ; preds = %331, %287
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #6
  %333 = load i32, ptr %8, align 4
  switch i32 %333, label %345 [
    i32 0, label %334
    i32 9, label %335
  ]

334:                                              ; preds = %332
  br label %335

335:                                              ; preds = %334, %332
  %336 = load i32, ptr %9, align 4, !tbaa !5
  %337 = add nsw i32 %336, 1
  store i32 %337, ptr %9, align 4, !tbaa !5
  br label %63, !llvm.loop !32

338:                                              ; preds = %68
  store i32 0, ptr %8, align 4
  br label %339

339:                                              ; preds = %338, %61
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  %340 = load i32, ptr %8, align 4
  switch i32 %340, label %345 [
    i32 0, label %341
    i32 5, label %51
  ]

341:                                              ; preds = %339
  br label %51, !llvm.loop !24

342:                                              ; preds = %51
  %343 = load i32, ptr @HT, align 8, !tbaa !9
  %344 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %343)
  ret void

345:                                              ; preds = %339, %332, %268
  unreachable
}

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

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

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

; Function Attrs: 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) #3

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

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

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

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

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

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

declare i32 @printf(ptr noundef, ...) #5

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"_ZTS9HashTable", !6, i64 0, !7, i64 4, !11, i64 1208}
!11 = !{!"_ZTSSt13unordered_mapIiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEE", !12, i64 0}
!12 = !{!"_ZTSSt10_HashtableIiSt4pairIKiiESaIS2_ENSt8__detail10_Select1stESt8equal_toIiESt4hashIiENS4_18_Mod_range_hashingENS4_20_Default_ranged_hashENS4_20_Prime_rehash_policyENS4_17_Hashtable_traitsILb0ELb0ELb1EEEE", !13, i64 0, !14, i64 8, !15, i64 16, !14, i64 24, !16, i64 32, !13, i64 48}
!13 = !{!"any pointer", !7, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !13, i64 0}
!16 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !17, i64 0, !14, i64 8}
!17 = !{!"float", !7, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!21, !6, i64 0}
!21 = !{!"_ZTS4Edge", !6, i64 0, !6, i64 4}
!22 = !{!21, !6, i64 4}
!23 = !{i64 0, i64 4, !5, i64 4, i64 4, !5}
!24 = distinct !{!24, !19}
!25 = !{!26, !26, i64 0}
!26 = !{!"bool", !7, i64 0}
!27 = !{i8 0, i8 2}
!28 = !{}
!29 = distinct !{!29, !19}
!30 = distinct !{!30, !19}
!31 = distinct !{!31, !19}
!32 = distinct !{!32, !19}


; 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"

%struct.HashTable = type { i32, [301 x i32], %"class.std::unordered_map" }
%"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 }
%struct.Edge = type { i32, i32 }
%"class.std::queue" = type { %"class.std::deque" }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl" }
%"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl" = type { %"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl_data" }
%"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator", %"struct.std::_Deque_iterator" }
%"struct.std::_Deque_iterator" = type { ptr, ptr, ptr, ptr }
%"class.std::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }

@HT = external dso_local global %struct.HashTable, align 8
@m = external dso_local local_unnamed_addr global i32, align 4
@seq = external dso_local local_unnamed_addr global [9 x i32], align 16
@low = external dso_local local_unnamed_addr global [9 x i32], align 16
@upp = external dso_local local_unnamed_addr global [9 x i32], align 16
@e = external dso_local local_unnamed_addr global [9 x %struct.Edge], align 16
@trans = external dso_local local_unnamed_addr global [301 x [301 x i32]], align 16
@Q = external dso_local global %"class.std::queue", align 8
@sp = external dso_local global %"class.std::set", align 8
@g = external dso_local local_unnamed_addr global [301 x [301 x i8]], align 16
@.str = external hidden unnamed_addr constant [14 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z7min_repv() 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 void @_Z10num_to_seqi(i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
define dso_local void @_Z9getStatusv() local_unnamed_addr #2 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = load i32, ptr @HT, align 8, !tbaa !5
  %8 = icmp sgt i32 %7, 0
  br i1 %8, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %0
  store i32 2, ptr @m, align 4, !tbaa !17
  store <4 x i32> <i32 3, i32 6, i32 5, i32 6>, ptr @e, align 16, !tbaa !17
  %9 = call noundef zeroext i1 @_ZNKSt5queueIiSt5dequeIiSaIiEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) @Q)
  br i1 %9, label %._crit_edge76, label %.lr.ph75

.lr.ph:                                           ; preds = %0, %.lr.ph
  %.063 = phi i32 [ %12, %.lr.ph ], [ 0, %0 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #6
  %10 = call noundef i32 @_ZNK9HashTable3valEi(ptr noundef nonnull align 8 dereferenceable(1264) @HT, i32 noundef %.063)
  store i32 %10, ptr %1, align 4, !tbaa !17
  %11 = call { ptr, i8 } @_ZNSt3setIiSt4lessIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(48) @sp, ptr noundef nonnull align 4 dereferenceable(4) %1)
  call void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) @Q, ptr noundef nonnull align 4 dereferenceable(4) %1)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #6
  %12 = add nuw nsw i32 %.063, 1
  %13 = load i32, ptr @HT, align 8, !tbaa !5
  %14 = icmp slt i32 %12, %13
  br i1 %14, label %.lr.ph, label %._crit_edge, !llvm.loop !18

.lr.ph75:                                         ; preds = %._crit_edge, %.loopexit
  %15 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5queueIiSt5dequeIiSaIiEEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) @Q)
  %16 = load i32, ptr %15, align 4, !tbaa !17
  %17 = call noundef i32 @_ZN9HashTable3posEi(ptr noundef nonnull align 8 dereferenceable(1264) @HT, i32 noundef %16)
  call void @_ZNSt5queueIiSt5dequeIiSaIiEEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) @Q)
  %.not = icmp eq i32 %16, 0
  %18 = load i32, ptr @m, align 4
  %.not77 = icmp eq i32 %18, 31
  %or.cond96 = select i1 %.not, i1 true, i1 %.not77
  br i1 %or.cond96, label %.loopexit, label %.lr.ph73, !llvm.loop !20

.lr.ph73:                                         ; preds = %.lr.ph75
  %19 = sext i32 %17 to i64
  br label %20

20:                                               ; preds = %.lr.ph73, %148
  %.04172 = phi i32 [ 0, %.lr.ph73 ], [ %150, %148 ]
  call void @_Z10num_to_seqi(i32 noundef %16)
  store i32 7, ptr getelementptr inbounds (i8, ptr @seq, i64 24), align 8, !tbaa !17
  store i32 6, ptr getelementptr inbounds (i8, ptr @upp, i64 28), align 4, !tbaa !17
  store i32 6, ptr getelementptr inbounds (i8, ptr @low, i64 28), align 4, !tbaa !17
  %21 = load i32, ptr @m, align 4, !tbaa !17
  %22 = icmp sgt i32 %21, 0
  br i1 %22, label %.lr.ph69, label %._crit_edge70

._crit_edge70:                                    ; preds = %139, %20
  %23 = phi i32 [ %21, %20 ], [ %140, %139 ]
  %.043.lcssa = phi i8 [ 1, %20 ], [ %.3, %139 ]
  %24 = load i32, ptr getelementptr inbounds (i8, ptr @seq, i64 12), align 4, !tbaa !17
  %.not51 = icmp ne i32 %24, 0
  %25 = and i8 %.043.lcssa, 1
  %.not5253 = icmp eq i8 %25, 0
  %.not52 = select i1 %.not51, i1 true, i1 %.not5253
  br i1 %.not52, label %148, label %.preheader.preheader

.preheader.preheader:                             ; preds = %._crit_edge70
  call void @llvm.memmove.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) getelementptr inbounds (i8, ptr @seq, i64 12), ptr noundef nonnull align 16 dereferenceable(12) getelementptr inbounds (i8, ptr @seq, i64 16), i64 12, i1 false), !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #6
  %26 = call noundef i32 @_Z7min_repv()
  store i32 %26, ptr %6, align 4, !tbaa !17
  %27 = call noundef i32 @_ZN9HashTable3posEi(ptr noundef nonnull align 8 dereferenceable(1264) @HT, i32 noundef %26)
  %28 = sext i32 %27 to i64
  %29 = getelementptr inbounds [301 x [301 x i32]], ptr @trans, i64 0, i64 %19, i64 %28
  %30 = load i32, ptr %29, align 4, !tbaa !17
  %31 = add nsw i32 %30, 1
  store i32 %31, ptr %29, align 4, !tbaa !17
  %32 = getelementptr inbounds [301 x [301 x i8]], ptr @g, i64 0, i64 %19, i64 %28
  store i8 1, ptr %32, align 1, !tbaa !21
  %33 = call noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(48) @sp, ptr noundef nonnull align 4 dereferenceable(4) %6)
  %.not54 = icmp eq i64 %33, 0
  br i1 %.not54, label %145, label %147

.lr.ph69:                                         ; preds = %20, %139
  %.pre8789 = phi i32 [ %.pre8790, %139 ], [ %21, %20 ]
  %34 = phi i32 [ %140, %139 ], [ %21, %20 ]
  %indvars.iv = phi i64 [ %indvars.iv.next, %139 ], [ 0, %20 ]
  %.04367 = phi i8 [ %.3, %139 ], [ 1, %20 ]
  %35 = trunc nuw nsw i64 %indvars.iv to i32
  %36 = shl nuw i32 1, %35
  %37 = and i32 %36, %.04172
  %.not55.not = icmp eq i32 %37, 0
  br i1 %.not55.not, label %139, label %38

38:                                               ; preds = %.lr.ph69
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #6
  %39 = getelementptr inbounds [9 x %struct.Edge], ptr @e, i64 0, i64 %indvars.iv
  %40 = load i32, ptr %39, align 8, !tbaa !23
  store i32 %40, ptr %2, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #6
  %41 = getelementptr inbounds i8, ptr %39, i64 4
  %42 = load i32, ptr %41, align 4, !tbaa !25
  store i32 %42, ptr %3, align 4, !tbaa !17
  %43 = sext i32 %40 to i64
  %44 = getelementptr inbounds [9 x i32], ptr @seq, i64 0, i64 %43
  %45 = load i32, ptr %44, align 4, !tbaa !17
  %.not56 = icmp eq i32 %45, 0
  br i1 %.not56, label %.thread, label %46

46:                                               ; preds = %38
  %47 = sext i32 %42 to i64
  %48 = getelementptr inbounds [9 x i32], ptr @seq, i64 0, i64 %47
  %49 = load i32, ptr %48, align 4, !tbaa !17
  %.not61 = icmp eq i32 %49, 0
  br i1 %.not61, label %.thread, label %50

50:                                               ; preds = %46
  %51 = icmp eq i32 %45, %49
  br i1 %51, label %52, label %101

52:                                               ; preds = %50
  store i32 0, ptr %48, align 4, !tbaa !17
  store i32 0, ptr %44, align 4, !tbaa !17
  %53 = icmp eq i32 %40, 0
  %54 = icmp eq i32 %42, 0
  %or.cond = select i1 %53, i1 true, i1 %54
  br i1 %or.cond, label %57, label %55

55:                                               ; preds = %52
  %56 = load i32, ptr @seq, align 16, !tbaa !17
  %.not59 = icmp eq i32 %56, 0
  br label %57

57:                                               ; preds = %55, %52
  %58 = phi i1 [ true, %52 ], [ %.not59, %55 ]
  %59 = icmp eq i32 %40, 1
  %60 = icmp eq i32 %42, 1
  %or.cond.1 = select i1 %59, i1 true, i1 %60
  br i1 %or.cond.1, label %63, label %61

61:                                               ; preds = %57
  %62 = load i32, ptr getelementptr inbounds (i8, ptr @seq, i64 4), align 4, !tbaa !17
  %.not59.1 = icmp eq i32 %62, 0
  br label %63

63:                                               ; preds = %61, %57
  %64 = phi i1 [ true, %57 ], [ %.not59.1, %61 ]
  %65 = icmp eq i32 %40, 2
  %66 = icmp eq i32 %42, 2
  %or.cond.2 = select i1 %65, i1 true, i1 %66
  br i1 %or.cond.2, label %69, label %67

67:                                               ; preds = %63
  %68 = load i32, ptr getelementptr inbounds (i8, ptr @seq, i64 8), align 8, !tbaa !17
  %.not59.2 = icmp eq i32 %68, 0
  br label %69

69:                                               ; preds = %67, %63
  %70 = phi i1 [ true, %63 ], [ %.not59.2, %67 ]
  %71 = icmp eq i32 %40, 3
  %72 = icmp eq i32 %42, 3
  %or.cond.3 = select i1 %71, i1 true, i1 %72
  br i1 %or.cond.3, label %75, label %73

73:                                               ; preds = %69
  %74 = load i32, ptr getelementptr inbounds (i8, ptr @seq, i64 12), align 4, !tbaa !17
  %.not59.3 = icmp eq i32 %74, 0
  br label %75

75:                                               ; preds = %73, %69
  %76 = phi i1 [ true, %69 ], [ %.not59.3, %73 ]
  %77 = icmp eq i32 %40, 4
  %78 = icmp eq i32 %42, 4
  %or.cond.4 = select i1 %77, i1 true, i1 %78
  br i1 %or.cond.4, label %81, label %79

79:                                               ; preds = %75
  %80 = load i32, ptr getelementptr inbounds (i8, ptr @seq, i64 16), align 16, !tbaa !17
  %.not59.4 = icmp eq i32 %80, 0
  br label %81

81:                                               ; preds = %79, %75
  %82 = phi i1 [ true, %75 ], [ %.not59.4, %79 ]
  %83 = icmp eq i32 %40, 5
  %84 = icmp eq i32 %42, 5
  %or.cond.5 = select i1 %83, i1 true, i1 %84
  br i1 %or.cond.5, label %87, label %85

85:                                               ; preds = %81
  %86 = load i32, ptr getelementptr inbounds (i8, ptr @seq, i64 20), align 4, !tbaa !17
  %.not59.5 = icmp eq i32 %86, 0
  br label %87

87:                                               ; preds = %85, %81
  %88 = phi i1 [ true, %81 ], [ %.not59.5, %85 ]
  %89 = icmp eq i32 %40, 6
  %90 = icmp eq i32 %42, 6
  %or.cond.6 = select i1 %89, i1 true, i1 %90
  br i1 %or.cond.6, label %.thread.loopexit, label %91

91:                                               ; preds = %87
  %92 = load i32, ptr getelementptr inbounds (i8, ptr @seq, i64 24), align 8, !tbaa !17
  %.not59.6 = icmp eq i32 %92, 0
  br label %.thread.loopexit

.thread.loopexit:                                 ; preds = %91, %87
  %93 = phi i1 [ true, %87 ], [ %.not59.6, %91 ]
  %94 = select i1 %93, i1 %88, i1 false
  %95 = select i1 %94, i1 %82, i1 false
  %96 = select i1 %95, i1 %76, i1 false
  %97 = select i1 %96, i1 %70, i1 false
  %98 = select i1 %97, i1 %64, i1 false
  %99 = select i1 %98, i1 %58, i1 false
  %100 = zext i1 %99 to i8
  br label %.thread

101:                                              ; preds = %50
  %102 = icmp sgt i32 %45, %49
  br i1 %102, label %103, label %104

103:                                              ; preds = %101
  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) %2, ptr noundef nonnull align 4 dereferenceable(4) %3) #6
  %.pre = load i32, ptr %2, align 4, !tbaa !17
  %.phi.trans.insert = sext i32 %.pre to i64
  %.phi.trans.insert81 = getelementptr inbounds [9 x i32], ptr @seq, i64 0, i64 %.phi.trans.insert
  %.pre82 = load i32, ptr %.phi.trans.insert81, align 4, !tbaa !17
  br label %104

104:                                              ; preds = %103, %101
  %.pre-phi = phi i64 [ %.phi.trans.insert, %103 ], [ %43, %101 ]
  %105 = phi i32 [ %.pre82, %103 ], [ %45, %101 ]
  %106 = phi i32 [ %.pre, %103 ], [ %40, %101 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #6
  %107 = sext i32 %105 to i64
  %108 = getelementptr inbounds [9 x i32], ptr @low, i64 0, i64 %107
  %109 = load i32, ptr %108, align 4, !tbaa !17
  %.not57 = icmp eq i32 %109, %106
  br i1 %.not57, label %110, label %113

110:                                              ; preds = %104
  %111 = getelementptr inbounds [9 x i32], ptr @upp, i64 0, i64 %107
  %112 = load i32, ptr %111, align 4, !tbaa !17
  br label %113

113:                                              ; preds = %104, %110
  %114 = phi i32 [ %112, %110 ], [ %109, %104 ]
  store i32 %114, ptr %4, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #6
  %115 = load i32, ptr %3, align 4, !tbaa !17
  %116 = sext i32 %115 to i64
  %117 = getelementptr inbounds [9 x i32], ptr @seq, i64 0, i64 %116
  %118 = load i32, ptr %117, align 4, !tbaa !17
  %119 = sext i32 %118 to i64
  %120 = getelementptr inbounds [9 x i32], ptr @low, i64 0, i64 %119
  %121 = load i32, ptr %120, align 4, !tbaa !17
  %.not58 = icmp eq i32 %121, %115
  br i1 %.not58, label %122, label %125

122:                                              ; preds = %113
  %123 = getelementptr inbounds [9 x i32], ptr @upp, i64 0, i64 %119
  %124 = load i32, ptr %123, align 4, !tbaa !17
  br label %125

125:                                              ; preds = %113, %122
  %126 = phi i32 [ %124, %122 ], [ %121, %113 ]
  store i32 %126, ptr %5, align 4, !tbaa !17
  %127 = icmp sgt i32 %114, %126
  br i1 %127, label %128, label %129

128:                                              ; preds = %125
  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) %4, ptr noundef nonnull align 4 dereferenceable(4) %5) #6
  %.pre83 = load i32, ptr %3, align 4, !tbaa !17
  %.pre84 = load i32, ptr %2, align 4, !tbaa !17
  %.pre85 = load i32, ptr %5, align 4, !tbaa !17
  %.pre86 = load i32, ptr %4, align 4, !tbaa !17
  %.pre92 = sext i32 %.pre83 to i64
  %.pre94 = sext i32 %.pre84 to i64
  br label %129

129:                                              ; preds = %128, %125
  %.pre-phi95 = phi i64 [ %.pre94, %128 ], [ %.pre-phi, %125 ]
  %.pre-phi93 = phi i64 [ %.pre92, %128 ], [ %116, %125 ]
  %130 = phi i32 [ %.pre86, %128 ], [ %114, %125 ]
  %131 = phi i32 [ %.pre85, %128 ], [ %126, %125 ]
  %132 = getelementptr inbounds [9 x i32], ptr @seq, i64 0, i64 %.pre-phi93
  store i32 0, ptr %132, align 4, !tbaa !17
  %133 = getelementptr inbounds [9 x i32], ptr @seq, i64 0, i64 %.pre-phi95
  store i32 0, ptr %133, align 4, !tbaa !17
  %134 = sext i32 %131 to i64
  %135 = getelementptr inbounds [9 x i32], ptr @seq, i64 0, i64 %134
  store i32 %105, ptr %135, align 4, !tbaa !17
  %136 = sext i32 %130 to i64
  %137 = getelementptr inbounds [9 x i32], ptr @seq, i64 0, i64 %136
  store i32 %105, ptr %137, align 4, !tbaa !17
  store i32 %130, ptr %108, align 4, !tbaa !17
  %138 = getelementptr inbounds [9 x i32], ptr @upp, i64 0, i64 %107
  store i32 %131, ptr %138, align 4, !tbaa !17
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #6
  %.pre87.pre = load i32, ptr @m, align 4, !tbaa !17
  br label %.thread

.thread:                                          ; preds = %.thread.loopexit, %38, %46, %129
  %.pre87 = phi i32 [ %.pre87.pre, %129 ], [ %.pre8789, %46 ], [ %.pre8789, %38 ], [ %.pre8789, %.thread.loopexit ]
  %.2 = phi i8 [ 1, %129 ], [ 0, %46 ], [ 0, %38 ], [ %100, %.thread.loopexit ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #6
  br label %139

139:                                              ; preds = %.thread, %.lr.ph69
  %.pre8790 = phi i32 [ %.pre8789, %.lr.ph69 ], [ %.pre87, %.thread ]
  %140 = phi i32 [ %34, %.lr.ph69 ], [ %.pre87, %.thread ]
  %.3 = phi i8 [ %.04367, %.lr.ph69 ], [ %.2, %.thread ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %141 = sext i32 %140 to i64
  %142 = icmp slt i64 %indvars.iv.next, %141
  %143 = trunc nuw i8 %.3 to i1
  %144 = select i1 %142, i1 %143, i1 false
  br i1 %144, label %.lr.ph69, label %._crit_edge70, !llvm.loop !26

145:                                              ; preds = %.preheader.preheader
  %146 = call { ptr, i8 } @_ZNSt3setIiSt4lessIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(48) @sp, ptr noundef nonnull align 4 dereferenceable(4) %6)
  call void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) @Q, ptr noundef nonnull align 4 dereferenceable(4) %6)
  br label %147

147:                                              ; preds = %145, %.preheader.preheader
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #6
  %.pre88 = load i32, ptr @m, align 4, !tbaa !17
  br label %148

148:                                              ; preds = %._crit_edge70, %147
  %149 = phi i32 [ %23, %._crit_edge70 ], [ %.pre88, %147 ]
  %150 = add nuw nsw i32 %.04172, 1
  %151 = shl nuw i32 1, %149
  %152 = icmp slt i32 %150, %151
  br i1 %152, label %20, label %.loopexit, !llvm.loop !27

.loopexit:                                        ; preds = %148, %.lr.ph75
  %153 = call noundef zeroext i1 @_ZNKSt5queueIiSt5dequeIiSaIiEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) @Q)
  br i1 %153, label %._crit_edge76, label %.lr.ph75

._crit_edge76:                                    ; preds = %.loopexit, %._crit_edge
  %154 = load i32, ptr @HT, align 8, !tbaa !5
  %155 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %154)
  ret void
}

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

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

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

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

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

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

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

; Function Attrs: 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 #3

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

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #4

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

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


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