; LLVM IR from bqi343/cp-notebook :: Contests/Other Solutions/UCF HSPT/2016/UCF HSPT 16 - mazes.ll (Z5solvev)

; 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::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Deque_impl" }
%"struct.std::_Deque_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Deque_impl" = type { %"struct.std::_Deque_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Deque_impl_data" }
%"struct.std::_Deque_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator", %"struct.std::_Deque_iterator" }
%"struct.std::_Deque_iterator" = type { ptr, ptr, ptr, ptr }
%"struct.std::pair" = type { i32, i32 }

@xdir = external dso_local global [4 x i32], align 16
@ydir = external dso_local global [4 x i32], align 16
@dist = external dso_local global [300 x [300 x i32]], align 16
@g = external dso_local global [300 x [300 x i8]], align 16
@r = external dso_local global i32, align 4
@c = external dso_local global i32, align 4
@ans = external dso_local global i32, align 4

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5solvev() #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca %"class.std::deque", align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca %"struct.std::pair", align 4
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca %"struct.std::pair", align 4
  %11 = alloca i32, align 4
  %12 = alloca %"struct.std::pair", align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  store i32 0, ptr @ans, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #4
  store i32 0, ptr %1, align 4, !tbaa !5
  br label %17

17:                                               ; preds = %39, %0
  %18 = load i32, ptr %1, align 4, !tbaa !5
  %19 = load i32, ptr @r, align 4, !tbaa !5
  %20 = icmp slt i32 %18, %19
  br i1 %20, label %22, label %21

21:                                               ; preds = %17
  store i32 2, ptr %2, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #4
  br label %42

22:                                               ; preds = %17
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #4
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %23

23:                                               ; preds = %35, %22
  %24 = load i32, ptr %3, align 4, !tbaa !5
  %25 = load i32, ptr @c, align 4, !tbaa !5
  %26 = icmp slt i32 %24, %25
  br i1 %26, label %28, label %27

27:                                               ; preds = %23
  store i32 5, ptr %2, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #4
  br label %38

28:                                               ; preds = %23
  %29 = load i32, ptr %1, align 4, !tbaa !5
  %30 = sext i32 %29 to i64
  %31 = getelementptr inbounds [300 x [300 x i32]], ptr @dist, i64 0, i64 %30
  %32 = load i32, ptr %3, align 4, !tbaa !5
  %33 = sext i32 %32 to i64
  %34 = getelementptr inbounds [300 x i32], ptr %31, i64 0, i64 %33
  store i32 1000000007, ptr %34, align 4, !tbaa !5
  br label %35

35:                                               ; preds = %28
  %36 = load i32, ptr %3, align 4, !tbaa !5
  %37 = add nsw i32 %36, 1
  store i32 %37, ptr %3, align 4, !tbaa !5
  br label %23, !llvm.loop !9

38:                                               ; preds = %27
  br label %39

39:                                               ; preds = %38
  %40 = load i32, ptr %1, align 4, !tbaa !5
  %41 = add nsw i32 %40, 1
  store i32 %41, ptr %1, align 4, !tbaa !5
  br label %17, !llvm.loop !11

42:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 80, ptr %4) #4
  call void @_ZNSt5dequeISt4pairIiiESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(80) %4)
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %43

43:                                               ; preds = %82, %42
  %44 = load i32, ptr %5, align 4, !tbaa !5
  %45 = load i32, ptr @r, align 4, !tbaa !5
  %46 = icmp slt i32 %44, %45
  br i1 %46, label %48, label %47

47:                                               ; preds = %43
  store i32 8, ptr %2, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  br label %85

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

49:                                               ; preds = %78, %48
  %50 = load i32, ptr %6, align 4, !tbaa !5
  %51 = load i32, ptr @c, align 4, !tbaa !5
  %52 = icmp slt i32 %50, %51
  br i1 %52, label %54, label %53

53:                                               ; preds = %49
  store i32 11, ptr %2, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  br label %81

54:                                               ; preds = %49
  %55 = load i32, ptr %5, align 4, !tbaa !5
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds [300 x [300 x i8]], ptr @g, i64 0, i64 %56
  %58 = load i32, ptr %6, align 4, !tbaa !5
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds [300 x i8], ptr %57, i64 0, i64 %59
  %61 = load i8, ptr %60, align 1, !tbaa !12
  %62 = sext i8 %61 to i32
  %63 = icmp eq i32 %62, 83
  br i1 %63, label %64, label %77

64:                                               ; preds = %54
  %65 = load i32, ptr %5, align 4, !tbaa !5
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds [300 x [300 x i32]], ptr @dist, i64 0, i64 %66
  %68 = load i32, ptr %6, align 4, !tbaa !5
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds [300 x i32], ptr %67, i64 0, i64 %69
  store i32 0, ptr %70, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  invoke void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %7, ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %6)
          to label %71 unwind label %73

71:                                               ; preds = %64
  invoke void @_ZNSt5dequeISt4pairIiiESaIS1_EE10push_frontEOS1_(ptr noundef nonnull align 8 dereferenceable(80) %4, ptr noundef nonnull align 4 dereferenceable(8) %7)
          to label %72 unwind label %73

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

73:                                               ; preds = %71, %64
  %74 = landingpad { ptr, i32 }
          cleanup
  %75 = extractvalue { ptr, i32 } %74, 0
  store ptr %75, ptr %8, align 8
  %76 = extractvalue { ptr, i32 } %74, 1
  store i32 %76, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  br label %279

77:                                               ; preds = %72, %54
  br label %78

78:                                               ; preds = %77
  %79 = load i32, ptr %6, align 4, !tbaa !5
  %80 = add nsw i32 %79, 1
  store i32 %80, ptr %6, align 4, !tbaa !5
  br label %49, !llvm.loop !13

81:                                               ; preds = %53
  br label %82

82:                                               ; preds = %81
  %83 = load i32, ptr %5, align 4, !tbaa !5
  %84 = add nsw i32 %83, 1
  store i32 %84, ptr %5, align 4, !tbaa !5
  br label %43, !llvm.loop !14

85:                                               ; preds = %47
  br label %86

86:                                               ; preds = %239, %85
  %87 = call noundef i64 @_ZNKSt5dequeISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(80) %4) #4
  %88 = icmp ne i64 %87, 0
  br i1 %88, label %89, label %240

89:                                               ; preds = %86
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %90 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt5dequeISt4pairIiiESaIS1_EE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %4) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %10, ptr align 4 %90, i64 8, i1 false)
  call void @_ZNSt5dequeISt4pairIiiESaIS1_EE9pop_frontEv(ptr noundef nonnull align 8 dereferenceable(80) %4) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %91

91:                                               ; preds = %235, %89
  %92 = load i32, ptr %11, align 4, !tbaa !5
  %93 = icmp slt i32 %92, 4
  br i1 %93, label %95, label %94

94:                                               ; preds = %91
  store i32 16, ptr %2, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  br label %239

95:                                               ; preds = %91
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  %96 = getelementptr inbounds %"struct.std::pair", ptr %10, i32 0, i32 0
  %97 = load i32, ptr %96, align 4, !tbaa !15
  %98 = load i32, ptr %11, align 4, !tbaa !5
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds [4 x i32], ptr @xdir, i64 0, i64 %99
  %101 = load i32, ptr %100, align 4, !tbaa !5
  %102 = add nsw i32 %97, %101
  store i32 %102, ptr %13, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  %103 = getelementptr inbounds %"struct.std::pair", ptr %10, i32 0, i32 1
  %104 = load i32, ptr %103, align 4, !tbaa !17
  %105 = load i32, ptr %11, align 4, !tbaa !5
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds [4 x i32], ptr @ydir, i64 0, i64 %106
  %108 = load i32, ptr %107, align 4, !tbaa !5
  %109 = add nsw i32 %104, %108
  store i32 %109, ptr %14, align 4, !tbaa !5
  invoke void @_ZNSt4pairIiiEC2IiiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 4 dereferenceable(8) %12, ptr noundef nonnull align 4 dereferenceable(4) %13, ptr noundef nonnull align 4 dereferenceable(4) %14)
          to label %110 unwind label %129

110:                                              ; preds = %95
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  %111 = getelementptr inbounds %"struct.std::pair", ptr %12, i32 0, i32 0
  %112 = load i32, ptr %111, align 4, !tbaa !15
  %113 = icmp slt i32 %112, 0
  br i1 %113, label %128, label %114

114:                                              ; preds = %110
  %115 = getelementptr inbounds %"struct.std::pair", ptr %12, i32 0, i32 0
  %116 = load i32, ptr %115, align 4, !tbaa !15
  %117 = load i32, ptr @r, align 4, !tbaa !5
  %118 = icmp sge i32 %116, %117
  br i1 %118, label %128, label %119

119:                                              ; preds = %114
  %120 = getelementptr inbounds %"struct.std::pair", ptr %12, i32 0, i32 1
  %121 = load i32, ptr %120, align 4, !tbaa !17
  %122 = icmp slt i32 %121, 0
  br i1 %122, label %128, label %123

123:                                              ; preds = %119
  %124 = getelementptr inbounds %"struct.std::pair", ptr %12, i32 0, i32 1
  %125 = load i32, ptr %124, align 4, !tbaa !17
  %126 = load i32, ptr @c, align 4, !tbaa !5
  %127 = icmp sge i32 %125, %126
  br i1 %127, label %128, label %133

128:                                              ; preds = %123, %119, %114, %110
  store i32 18, ptr %2, align 4
  br label %232

129:                                              ; preds = %95
  %130 = landingpad { ptr, i32 }
          cleanup
  %131 = extractvalue { ptr, i32 } %130, 0
  store ptr %131, ptr %8, align 8
  %132 = extractvalue { ptr, i32 } %130, 1
  store i32 %132, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  br label %238

133:                                              ; preds = %123
  %134 = getelementptr inbounds %"struct.std::pair", ptr %12, i32 0, i32 0
  %135 = load i32, ptr %134, align 4, !tbaa !15
  %136 = sext i32 %135 to i64
  %137 = getelementptr inbounds [300 x [300 x i8]], ptr @g, i64 0, i64 %136
  %138 = getelementptr inbounds %"struct.std::pair", ptr %12, i32 0, i32 1
  %139 = load i32, ptr %138, align 4, !tbaa !17
  %140 = sext i32 %139 to i64
  %141 = getelementptr inbounds [300 x i8], ptr %137, i64 0, i64 %140
  %142 = load i8, ptr %141, align 1, !tbaa !12
  %143 = sext i8 %142 to i32
  %144 = icmp ne i32 %143, 35
  br i1 %144, label %145, label %189

145:                                              ; preds = %133
  %146 = getelementptr inbounds %"struct.std::pair", ptr %10, i32 0, i32 0
  %147 = load i32, ptr %146, align 4, !tbaa !15
  %148 = sext i32 %147 to i64
  %149 = getelementptr inbounds [300 x [300 x i32]], ptr @dist, i64 0, i64 %148
  %150 = getelementptr inbounds %"struct.std::pair", ptr %10, i32 0, i32 1
  %151 = load i32, ptr %150, align 4, !tbaa !17
  %152 = sext i32 %151 to i64
  %153 = getelementptr inbounds [300 x i32], ptr %149, i64 0, i64 %152
  %154 = load i32, ptr %153, align 4, !tbaa !5
  %155 = getelementptr inbounds %"struct.std::pair", ptr %12, i32 0, i32 0
  %156 = load i32, ptr %155, align 4, !tbaa !15
  %157 = sext i32 %156 to i64
  %158 = getelementptr inbounds [300 x [300 x i32]], ptr @dist, i64 0, i64 %157
  %159 = getelementptr inbounds %"struct.std::pair", ptr %12, i32 0, i32 1
  %160 = load i32, ptr %159, align 4, !tbaa !17
  %161 = sext i32 %160 to i64
  %162 = getelementptr inbounds [300 x i32], ptr %158, i64 0, i64 %161
  %163 = load i32, ptr %162, align 4, !tbaa !5
  %164 = icmp slt i32 %154, %163
  br i1 %164, label %165, label %188

165:                                              ; preds = %145
  %166 = getelementptr inbounds %"struct.std::pair", ptr %10, i32 0, i32 0
  %167 = load i32, ptr %166, align 4, !tbaa !15
  %168 = sext i32 %167 to i64
  %169 = getelementptr inbounds [300 x [300 x i32]], ptr @dist, i64 0, i64 %168
  %170 = getelementptr inbounds %"struct.std::pair", ptr %10, i32 0, i32 1
  %171 = load i32, ptr %170, align 4, !tbaa !17
  %172 = sext i32 %171 to i64
  %173 = getelementptr inbounds [300 x i32], ptr %169, i64 0, i64 %172
  %174 = load i32, ptr %173, align 4, !tbaa !5
  %175 = getelementptr inbounds %"struct.std::pair", ptr %12, i32 0, i32 0
  %176 = load i32, ptr %175, align 4, !tbaa !15
  %177 = sext i32 %176 to i64
  %178 = getelementptr inbounds [300 x [300 x i32]], ptr @dist, i64 0, i64 %177
  %179 = getelementptr inbounds %"struct.std::pair", ptr %12, i32 0, i32 1
  %180 = load i32, ptr %179, align 4, !tbaa !17
  %181 = sext i32 %180 to i64
  %182 = getelementptr inbounds [300 x i32], ptr %178, i64 0, i64 %181
  store i32 %174, ptr %182, align 4, !tbaa !5
  invoke void @_ZNSt5dequeISt4pairIiiESaIS1_EE10push_frontERKS1_(ptr noundef nonnull align 8 dereferenceable(80) %4, ptr noundef nonnull align 4 dereferenceable(8) %12)
          to label %183 unwind label %184

183:                                              ; preds = %165
  br label %188

184:                                              ; preds = %210, %165
  %185 = landingpad { ptr, i32 }
          cleanup
  %186 = extractvalue { ptr, i32 } %185, 0
  store ptr %186, ptr %8, align 8
  %187 = extractvalue { ptr, i32 } %185, 1
  store i32 %187, ptr %9, align 4
  br label %238

188:                                              ; preds = %183, %145
  br label %231

189:                                              ; preds = %133
  %190 = getelementptr inbounds %"struct.std::pair", ptr %10, i32 0, i32 0
  %191 = load i32, ptr %190, align 4, !tbaa !15
  %192 = sext i32 %191 to i64
  %193 = getelementptr inbounds [300 x [300 x i32]], ptr @dist, i64 0, i64 %192
  %194 = getelementptr inbounds %"struct.std::pair", ptr %10, i32 0, i32 1
  %195 = load i32, ptr %194, align 4, !tbaa !17
  %196 = sext i32 %195 to i64
  %197 = getelementptr inbounds [300 x i32], ptr %193, i64 0, i64 %196
  %198 = load i32, ptr %197, align 4, !tbaa !5
  %199 = add nsw i32 %198, 1
  %200 = getelementptr inbounds %"struct.std::pair", ptr %12, i32 0, i32 0
  %201 = load i32, ptr %200, align 4, !tbaa !15
  %202 = sext i32 %201 to i64
  %203 = getelementptr inbounds [300 x [300 x i32]], ptr @dist, i64 0, i64 %202
  %204 = getelementptr inbounds %"struct.std::pair", ptr %12, i32 0, i32 1
  %205 = load i32, ptr %204, align 4, !tbaa !17
  %206 = sext i32 %205 to i64
  %207 = getelementptr inbounds [300 x i32], ptr %203, i64 0, i64 %206
  %208 = load i32, ptr %207, align 4, !tbaa !5
  %209 = icmp slt i32 %199, %208
  br i1 %209, label %210, label %230

210:                                              ; preds = %189
  %211 = getelementptr inbounds %"struct.std::pair", ptr %10, i32 0, i32 0
  %212 = load i32, ptr %211, align 4, !tbaa !15
  %213 = sext i32 %212 to i64
  %214 = getelementptr inbounds [300 x [300 x i32]], ptr @dist, i64 0, i64 %213
  %215 = getelementptr inbounds %"struct.std::pair", ptr %10, i32 0, i32 1
  %216 = load i32, ptr %215, align 4, !tbaa !17
  %217 = sext i32 %216 to i64
  %218 = getelementptr inbounds [300 x i32], ptr %214, i64 0, i64 %217
  %219 = load i32, ptr %218, align 4, !tbaa !5
  %220 = add nsw i32 %219, 1
  %221 = getelementptr inbounds %"struct.std::pair", ptr %12, i32 0, i32 0
  %222 = load i32, ptr %221, align 4, !tbaa !15
  %223 = sext i32 %222 to i64
  %224 = getelementptr inbounds [300 x [300 x i32]], ptr @dist, i64 0, i64 %223
  %225 = getelementptr inbounds %"struct.std::pair", ptr %12, i32 0, i32 1
  %226 = load i32, ptr %225, align 4, !tbaa !17
  %227 = sext i32 %226 to i64
  %228 = getelementptr inbounds [300 x i32], ptr %224, i64 0, i64 %227
  store i32 %220, ptr %228, align 4, !tbaa !5
  invoke void @_ZNSt5dequeISt4pairIiiESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(80) %4, ptr noundef nonnull align 4 dereferenceable(8) %12)
          to label %229 unwind label %184

229:                                              ; preds = %210
  br label %230

230:                                              ; preds = %229, %189
  br label %231

231:                                              ; preds = %230, %188
  store i32 0, ptr %2, align 4
  br label %232

232:                                              ; preds = %231, %128
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  %233 = load i32, ptr %2, align 4
  switch i32 %233, label %285 [
    i32 0, label %234
    i32 18, label %235
  ]

234:                                              ; preds = %232
  br label %235

235:                                              ; preds = %234, %232
  %236 = load i32, ptr %11, align 4, !tbaa !5
  %237 = add nsw i32 %236, 1
  store i32 %237, ptr %11, align 4, !tbaa !5
  br label %91, !llvm.loop !18

238:                                              ; preds = %184, %129
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  br label %279

239:                                              ; preds = %94
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  br label %86, !llvm.loop !19

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

241:                                              ; preds = %275, %240
  %242 = load i32, ptr %15, align 4, !tbaa !5
  %243 = load i32, ptr @r, align 4, !tbaa !5
  %244 = icmp slt i32 %242, %243
  br i1 %244, label %246, label %245

245:                                              ; preds = %241
  store i32 19, ptr %2, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  br label %278

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

247:                                              ; preds = %271, %246
  %248 = load i32, ptr %16, align 4, !tbaa !5
  %249 = load i32, ptr @c, align 4, !tbaa !5
  %250 = icmp slt i32 %248, %249
  br i1 %250, label %252, label %251

251:                                              ; preds = %247
  store i32 22, ptr %2, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  br label %274

252:                                              ; preds = %247
  %253 = load i32, ptr %15, align 4, !tbaa !5
  %254 = sext i32 %253 to i64
  %255 = getelementptr inbounds [300 x [300 x i8]], ptr @g, i64 0, i64 %254
  %256 = load i32, ptr %16, align 4, !tbaa !5
  %257 = sext i32 %256 to i64
  %258 = getelementptr inbounds [300 x i8], ptr %255, i64 0, i64 %257
  %259 = load i8, ptr %258, align 1, !tbaa !12
  %260 = sext i8 %259 to i32
  %261 = icmp eq i32 %260, 69
  br i1 %261, label %262, label %270

262:                                              ; preds = %252
  %263 = load i32, ptr %15, align 4, !tbaa !5
  %264 = sext i32 %263 to i64
  %265 = getelementptr inbounds [300 x [300 x i32]], ptr @dist, i64 0, i64 %264
  %266 = load i32, ptr %16, align 4, !tbaa !5
  %267 = sext i32 %266 to i64
  %268 = getelementptr inbounds [300 x i32], ptr %265, i64 0, i64 %267
  %269 = load i32, ptr %268, align 4, !tbaa !5
  store i32 %269, ptr @ans, align 4, !tbaa !5
  br label %270

270:                                              ; preds = %262, %252
  br label %271

271:                                              ; preds = %270
  %272 = load i32, ptr %16, align 4, !tbaa !5
  %273 = add nsw i32 %272, 1
  store i32 %273, ptr %16, align 4, !tbaa !5
  br label %247, !llvm.loop !20

274:                                              ; preds = %251
  br label %275

275:                                              ; preds = %274
  %276 = load i32, ptr %15, align 4, !tbaa !5
  %277 = add nsw i32 %276, 1
  store i32 %277, ptr %15, align 4, !tbaa !5
  br label %241, !llvm.loop !21

278:                                              ; preds = %245
  call void @_ZNSt5dequeISt4pairIiiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %4) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr %4) #4
  ret void

279:                                              ; preds = %238, %73
  call void @_ZNSt5dequeISt4pairIiiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %4) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr %4) #4
  br label %280

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

285:                                              ; preds = %232
  unreachable
}

; 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 uwtable
declare dso_local void @_ZNSt5dequeISt4pairIiiESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #0 align 2

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 = distinct !{!11, !10}
!12 = !{!7, !7, i64 0}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}
!15 = !{!16, !6, i64 0}
!16 = !{!"_ZTSSt4pairIiiE", !6, i64 0, !6, i64 4}
!17 = !{!16, !6, i64 4}
!18 = distinct !{!18, !10}
!19 = distinct !{!19, !10}
!20 = distinct !{!20, !10}
!21 = distinct !{!21, !10}


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

%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Deque_impl" }
%"struct.std::_Deque_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Deque_impl" = type { %"struct.std::_Deque_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Deque_impl_data" }
%"struct.std::_Deque_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator", %"struct.std::_Deque_iterator" }
%"struct.std::_Deque_iterator" = type { ptr, ptr, ptr, ptr }
%"struct.std::pair" = type { i32, i32 }

@xdir = external dso_local local_unnamed_addr global [4 x i32], align 16
@ydir = external dso_local local_unnamed_addr global [4 x i32], align 16
@dist = external dso_local local_unnamed_addr global [300 x [300 x i32]], align 16
@g = external dso_local local_unnamed_addr global [300 x [300 x i8]], align 16
@r = external dso_local local_unnamed_addr global i32, align 4
@c = external dso_local local_unnamed_addr global i32, align 4
@ans = external dso_local local_unnamed_addr global i32, align 4

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5solvev() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.std::deque", 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 i32, align 4
  %7 = alloca i32, align 4
  store i32 0, ptr @ans, align 4, !tbaa !5
  %8 = load i32, ptr @r, align 4, !tbaa !5
  %9 = icmp sgt i32 %8, 0
  br i1 %9, label %.preheader49.lr.ph, label %._crit_edge52

.preheader49.lr.ph:                               ; preds = %0
  %10 = load i32, ptr @c, align 4, !tbaa !5
  %11 = icmp sgt i32 %10, 0
  br i1 %11, label %.preheader49.us.preheader, label %._crit_edge52

.preheader49.us.preheader:                        ; preds = %.preheader49.lr.ph
  %wide.trip.count72 = zext nneg i32 %8 to i64
  %wide.trip.count = zext nneg i32 %10 to i64
  %min.iters.check = icmp ult i32 %10, 8
  %n.vec = and i64 %wide.trip.count, 2147483640
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  br label %.preheader49.us

.preheader49.us:                                  ; preds = %.preheader49.us.preheader, %._crit_edge.us
  %indvars.iv69 = phi i64 [ 0, %.preheader49.us.preheader ], [ %indvars.iv.next70, %._crit_edge.us ]
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.body

vector.body:                                      ; preds = %.preheader49.us, %vector.body
  %index = phi i64 [ %index.next, %vector.body ], [ 0, %.preheader49.us ]
  %12 = getelementptr inbounds [300 x [300 x i32]], ptr @dist, i64 0, i64 %indvars.iv69, i64 %index
  %13 = getelementptr inbounds i8, ptr %12, i64 16
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %12, align 16, !tbaa !5
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %13, align 16, !tbaa !5
  %index.next = add nuw i64 %index, 8
  %14 = icmp eq i64 %index.next, %n.vec
  br i1 %14, label %middle.block, label %vector.body, !llvm.loop !9

middle.block:                                     ; preds = %vector.body
  br i1 %cmp.n, label %._crit_edge.us, label %scalar.ph.preheader

scalar.ph.preheader:                              ; preds = %middle.block, %.preheader49.us
  %indvars.iv.ph = phi i64 [ 0, %.preheader49.us ], [ %n.vec, %middle.block ]
  br label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %scalar.ph ], [ %indvars.iv.ph, %scalar.ph.preheader ]
  %15 = getelementptr inbounds [300 x [300 x i32]], ptr @dist, i64 0, i64 %indvars.iv69, i64 %indvars.iv
  store i32 1000000007, ptr %15, align 4, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge.us, label %scalar.ph, !llvm.loop !13

._crit_edge.us:                                   ; preds = %scalar.ph, %middle.block
  %indvars.iv.next70 = add nuw nsw i64 %indvars.iv69, 1
  %exitcond73.not = icmp eq i64 %indvars.iv.next70, %wide.trip.count72
  br i1 %exitcond73.not, label %._crit_edge52, label %.preheader49.us, !llvm.loop !14

._crit_edge52:                                    ; preds = %._crit_edge.us, %.preheader49.lr.ph, %0
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %1) #3
  call void @_ZNSt5dequeISt4pairIiiESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(80) %1)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #3
  store i32 0, ptr %2, align 4, !tbaa !5
  %16 = load i32, ptr @r, align 4, !tbaa !5
  %17 = icmp sgt i32 %16, 0
  %18 = load i32, ptr @c, align 4
  %19 = icmp sgt i32 %18, 0
  %or.cond = select i1 %17, i1 %19, i1 false
  br i1 %or.cond, label %.lr.ph55.split, label %._crit_edge56

._crit_edge56:                                    ; preds = %._crit_edge, %._crit_edge52
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #3
  %20 = call noundef i64 @_ZNKSt5dequeISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(80) %1) #3
  %.not58 = icmp eq i64 %20, 0
  br i1 %.not58, label %.preheader48, label %.lr.ph60

.lr.ph60:                                         ; preds = %._crit_edge56
  %21 = getelementptr inbounds i8, ptr %5, i64 4
  br label %75

.lr.ph55.split:                                   ; preds = %._crit_edge52, %._crit_edge
  %22 = phi i32 [ %27, %._crit_edge ], [ %16, %._crit_edge52 ]
  %23 = phi i32 [ %31, %._crit_edge ], [ 0, %._crit_edge52 ]
  %24 = phi i32 [ %29, %._crit_edge ], [ %18, %._crit_edge52 ]
  %25 = phi i32 [ %30, %._crit_edge ], [ %18, %._crit_edge52 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #3
  store i32 0, ptr %3, align 4, !tbaa !5
  %26 = icmp sgt i32 %25, 0
  br i1 %26, label %.lr.ph, label %._crit_edge

._crit_edge.loopexit:                             ; preds = %45
  %.pre89 = load i32, ptr %2, align 4, !tbaa !5
  %.pre90 = load i32, ptr @r, align 4, !tbaa !5
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.lr.ph55.split
  %27 = phi i32 [ %.pre90, %._crit_edge.loopexit ], [ %22, %.lr.ph55.split ]
  %28 = phi i32 [ %.pre89, %._crit_edge.loopexit ], [ %23, %.lr.ph55.split ]
  %29 = phi i32 [ %46, %._crit_edge.loopexit ], [ %24, %.lr.ph55.split ]
  %30 = phi i32 [ %46, %._crit_edge.loopexit ], [ %25, %.lr.ph55.split ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #3
  %31 = add nsw i32 %28, 1
  store i32 %31, ptr %2, align 4, !tbaa !5
  %32 = icmp slt i32 %31, %27
  br i1 %32, label %.lr.ph55.split, label %._crit_edge56, !llvm.loop !15

.lr.ph:                                           ; preds = %.lr.ph55.split, %45
  %33 = phi i32 [ %46, %45 ], [ %24, %.lr.ph55.split ]
  %storemerge4253 = phi i32 [ %48, %45 ], [ 0, %.lr.ph55.split ]
  %34 = load i32, ptr %2, align 4, !tbaa !5
  %35 = sext i32 %34 to i64
  %36 = sext i32 %storemerge4253 to i64
  %37 = getelementptr inbounds [300 x [300 x i8]], ptr @g, i64 0, i64 %35, i64 %36
  %38 = load i8, ptr %37, align 1, !tbaa !17
  %39 = icmp eq i8 %38, 83
  br i1 %39, label %40, label %45

40:                                               ; preds = %.lr.ph
  %41 = getelementptr inbounds [300 x [300 x i32]], ptr @dist, i64 0, i64 %35, i64 %36
  store i32 0, ptr %41, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #3
  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)
  invoke void @_ZNSt5dequeISt4pairIiiESaIS1_EE10push_frontEOS1_(ptr noundef nonnull align 8 dereferenceable(80) %1, ptr noundef nonnull align 4 dereferenceable(8) %4)
          to label %42 unwind label %43

42:                                               ; preds = %40
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #3
  %.pre = load i32, ptr %3, align 4, !tbaa !5
  %.pre88 = load i32, ptr @c, align 4, !tbaa !5
  br label %45

43:                                               ; preds = %40
  %44 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #3
  br label %202

45:                                               ; preds = %.lr.ph, %42
  %46 = phi i32 [ %33, %.lr.ph ], [ %.pre88, %42 ]
  %47 = phi i32 [ %storemerge4253, %.lr.ph ], [ %.pre, %42 ]
  %48 = add nsw i32 %47, 1
  store i32 %48, ptr %3, align 4, !tbaa !5
  %49 = icmp slt i32 %48, %46
  br i1 %49, label %.lr.ph, label %._crit_edge.loopexit, !llvm.loop !18

.preheader48:                                     ; preds = %.loopexit, %._crit_edge56
  %50 = load i32, ptr @r, align 4, !tbaa !5
  %51 = icmp sgt i32 %50, 0
  br i1 %51, label %.preheader.lr.ph, label %._crit_edge65

.preheader.lr.ph:                                 ; preds = %.preheader48
  %52 = load i32, ptr @c, align 4, !tbaa !5
  %53 = icmp sgt i32 %52, 0
  br i1 %53, label %.preheader.us.preheader, label %._crit_edge65

.preheader.us.preheader:                          ; preds = %.preheader.lr.ph
  %wide.trip.count86 = zext nneg i32 %50 to i64
  %wide.trip.count81 = zext nneg i32 %52 to i64
  %xtraiter = and i64 %wide.trip.count81, 1
  %54 = icmp eq i32 %52, 1
  %unroll_iter = and i64 %wide.trip.count81, 2147483646
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br label %.preheader.us

.preheader.us:                                    ; preds = %.preheader.us.preheader, %._crit_edge63.us
  %indvars.iv83 = phi i64 [ 0, %.preheader.us.preheader ], [ %indvars.iv.next84, %._crit_edge63.us ]
  br i1 %54, label %._crit_edge63.us.unr-lcssa, label %.preheader.us.new

.preheader.us.new:                                ; preds = %.preheader.us, %68
  %indvars.iv78 = phi i64 [ %indvars.iv.next79.1, %68 ], [ 0, %.preheader.us ]
  %niter = phi i64 [ %niter.next.1, %68 ], [ 0, %.preheader.us ]
  %55 = getelementptr inbounds [300 x [300 x i8]], ptr @g, i64 0, i64 %indvars.iv83, i64 %indvars.iv78
  %56 = load i8, ptr %55, align 2, !tbaa !17
  %57 = icmp eq i8 %56, 69
  br i1 %57, label %58, label %61

58:                                               ; preds = %.preheader.us.new
  %59 = getelementptr inbounds [300 x [300 x i32]], ptr @dist, i64 0, i64 %indvars.iv83, i64 %indvars.iv78
  %60 = load i32, ptr %59, align 8, !tbaa !5
  store i32 %60, ptr @ans, align 4, !tbaa !5
  br label %61

61:                                               ; preds = %58, %.preheader.us.new
  %indvars.iv.next79 = or disjoint i64 %indvars.iv78, 1
  %62 = getelementptr inbounds [300 x [300 x i8]], ptr @g, i64 0, i64 %indvars.iv83, i64 %indvars.iv.next79
  %63 = load i8, ptr %62, align 1, !tbaa !17
  %64 = icmp eq i8 %63, 69
  br i1 %64, label %65, label %68

65:                                               ; preds = %61
  %66 = getelementptr inbounds [300 x [300 x i32]], ptr @dist, i64 0, i64 %indvars.iv83, i64 %indvars.iv.next79
  %67 = load i32, ptr %66, align 4, !tbaa !5
  store i32 %67, ptr @ans, align 4, !tbaa !5
  br label %68

68:                                               ; preds = %65, %61
  %indvars.iv.next79.1 = add nuw nsw i64 %indvars.iv78, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge63.us.unr-lcssa, label %.preheader.us.new, !llvm.loop !19

._crit_edge63.us.unr-lcssa:                       ; preds = %68, %.preheader.us
  %indvars.iv78.unr = phi i64 [ 0, %.preheader.us ], [ %indvars.iv.next79.1, %68 ]
  br i1 %lcmp.mod.not, label %._crit_edge63.us, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge63.us.unr-lcssa
  %69 = getelementptr inbounds [300 x [300 x i8]], ptr @g, i64 0, i64 %indvars.iv83, i64 %indvars.iv78.unr
  %70 = load i8, ptr %69, align 1, !tbaa !17
  %71 = icmp eq i8 %70, 69
  br i1 %71, label %72, label %._crit_edge63.us

72:                                               ; preds = %.epil.preheader
  %73 = getelementptr inbounds [300 x [300 x i32]], ptr @dist, i64 0, i64 %indvars.iv83, i64 %indvars.iv78.unr
  %74 = load i32, ptr %73, align 4, !tbaa !5
  store i32 %74, ptr @ans, align 4, !tbaa !5
  br label %._crit_edge63.us

._crit_edge63.us:                                 ; preds = %.epil.preheader, %72, %._crit_edge63.us.unr-lcssa
  %indvars.iv.next84 = add nuw nsw i64 %indvars.iv83, 1
  %exitcond87.not = icmp eq i64 %indvars.iv.next84, %wide.trip.count86
  br i1 %exitcond87.not, label %._crit_edge65, label %.preheader.us, !llvm.loop !20

75:                                               ; preds = %.lr.ph60, %.loopexit
  %76 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt5dequeISt4pairIiiESaIS1_EE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %1) #3
  %.sroa.0.0.copyload = load i32, ptr %76, align 4
  %.sroa.9.0..sroa_idx = getelementptr inbounds i8, ptr %76, i64 4
  %.sroa.9.0.copyload = load i32, ptr %.sroa.9.0..sroa_idx, align 4
  call void @_ZNSt5dequeISt4pairIiiESaIS1_EE9pop_frontEv(ptr noundef nonnull align 8 dereferenceable(80) %1) #3
  %77 = sext i32 %.sroa.0.0.copyload to i64
  %78 = sext i32 %.sroa.9.0.copyload to i64
  %79 = getelementptr inbounds [300 x [300 x i32]], ptr @dist, i64 0, i64 %77, i64 %78
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #3
  %80 = load i32, ptr @xdir, align 16, !tbaa !5
  %81 = add nsw i32 %80, %.sroa.0.0.copyload
  store i32 %81, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #3
  %82 = load i32, ptr @ydir, align 16, !tbaa !5
  %83 = add nsw i32 %82, %.sroa.9.0.copyload
  store i32 %83, ptr %7, align 4, !tbaa !5
  call void @_ZNSt4pairIiiEC2IiiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 4 dereferenceable(8) %5, ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 4 dereferenceable(4) %7)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #3
  %84 = load i32, ptr %5, align 4, !tbaa !21
  %85 = icmp slt i32 %84, 0
  br i1 %85, label %111, label %86

86:                                               ; preds = %75
  %87 = load i32, ptr @r, align 4, !tbaa !5
  %88 = icmp slt i32 %84, %87
  %89 = load i32, ptr %21, align 4
  %90 = icmp sgt i32 %89, -1
  %or.cond.not47 = select i1 %88, i1 %90, i1 false
  %91 = load i32, ptr @c, align 4
  %.not40 = icmp slt i32 %89, %91
  %or.cond44 = select i1 %or.cond.not47, i1 %.not40, i1 false
  br i1 %or.cond44, label %92, label %111

92:                                               ; preds = %86
  %93 = zext nneg i32 %84 to i64
  %94 = zext nneg i32 %89 to i64
  %95 = getelementptr inbounds [300 x [300 x i8]], ptr @g, i64 0, i64 %93, i64 %94
  %96 = load i8, ptr %95, align 1, !tbaa !17
  %.not41 = icmp eq i8 %96, 35
  %97 = load i32, ptr %79, align 4, !tbaa !5
  br i1 %.not41, label %105, label %98

98:                                               ; preds = %92
  %99 = getelementptr inbounds [300 x [300 x i32]], ptr @dist, i64 0, i64 %93, i64 %94
  %100 = load i32, ptr %99, align 4, !tbaa !5
  %101 = icmp slt i32 %97, %100
  br i1 %101, label %102, label %111

102:                                              ; preds = %98
  store i32 %97, ptr %99, align 4, !tbaa !5
  invoke void @_ZNSt5dequeISt4pairIiiESaIS1_EE10push_frontERKS1_(ptr noundef nonnull align 8 dereferenceable(80) %1, ptr noundef nonnull align 4 dereferenceable(8) %5)
          to label %111 unwind label %103

103:                                              ; preds = %200, %194, %170, %164, %140, %134, %110, %102
  %104 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #3
  br label %202

105:                                              ; preds = %92
  %106 = add nsw i32 %97, 1
  %107 = getelementptr inbounds [300 x [300 x i32]], ptr @dist, i64 0, i64 %93, i64 %94
  %108 = load i32, ptr %107, align 4, !tbaa !5
  %109 = icmp slt i32 %106, %108
  br i1 %109, label %110, label %111

110:                                              ; preds = %105
  store i32 %106, ptr %107, align 4, !tbaa !5
  invoke void @_ZNSt5dequeISt4pairIiiESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(80) %1, ptr noundef nonnull align 4 dereferenceable(8) %5)
          to label %111 unwind label %103

111:                                              ; preds = %102, %98, %110, %105, %75, %86
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #3
  %112 = load i32, ptr getelementptr inbounds (i8, ptr @xdir, i64 4), align 4, !tbaa !5
  %113 = add nsw i32 %112, %.sroa.0.0.copyload
  store i32 %113, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #3
  %114 = load i32, ptr getelementptr inbounds (i8, ptr @ydir, i64 4), align 4, !tbaa !5
  %115 = add nsw i32 %114, %.sroa.9.0.copyload
  store i32 %115, ptr %7, align 4, !tbaa !5
  call void @_ZNSt4pairIiiEC2IiiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 4 dereferenceable(8) %5, ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 4 dereferenceable(4) %7)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #3
  %116 = load i32, ptr %5, align 4, !tbaa !21
  %117 = icmp slt i32 %116, 0
  br i1 %117, label %141, label %118

118:                                              ; preds = %111
  %119 = load i32, ptr @r, align 4, !tbaa !5
  %120 = icmp slt i32 %116, %119
  %121 = load i32, ptr %21, align 4
  %122 = icmp sgt i32 %121, -1
  %or.cond.not47.1 = select i1 %120, i1 %122, i1 false
  %123 = load i32, ptr @c, align 4
  %.not40.1 = icmp slt i32 %121, %123
  %or.cond44.1 = select i1 %or.cond.not47.1, i1 %.not40.1, i1 false
  br i1 %or.cond44.1, label %124, label %141

124:                                              ; preds = %118
  %125 = zext nneg i32 %116 to i64
  %126 = zext nneg i32 %121 to i64
  %127 = getelementptr inbounds [300 x [300 x i8]], ptr @g, i64 0, i64 %125, i64 %126
  %128 = load i8, ptr %127, align 1, !tbaa !17
  %.not41.1 = icmp eq i8 %128, 35
  %129 = load i32, ptr %79, align 4, !tbaa !5
  br i1 %.not41.1, label %135, label %130

130:                                              ; preds = %124
  %131 = getelementptr inbounds [300 x [300 x i32]], ptr @dist, i64 0, i64 %125, i64 %126
  %132 = load i32, ptr %131, align 4, !tbaa !5
  %133 = icmp slt i32 %129, %132
  br i1 %133, label %134, label %141

134:                                              ; preds = %130
  store i32 %129, ptr %131, align 4, !tbaa !5
  invoke void @_ZNSt5dequeISt4pairIiiESaIS1_EE10push_frontERKS1_(ptr noundef nonnull align 8 dereferenceable(80) %1, ptr noundef nonnull align 4 dereferenceable(8) %5)
          to label %141 unwind label %103

135:                                              ; preds = %124
  %136 = add nsw i32 %129, 1
  %137 = getelementptr inbounds [300 x [300 x i32]], ptr @dist, i64 0, i64 %125, i64 %126
  %138 = load i32, ptr %137, align 4, !tbaa !5
  %139 = icmp slt i32 %136, %138
  br i1 %139, label %140, label %141

140:                                              ; preds = %135
  store i32 %136, ptr %137, align 4, !tbaa !5
  invoke void @_ZNSt5dequeISt4pairIiiESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(80) %1, ptr noundef nonnull align 4 dereferenceable(8) %5)
          to label %141 unwind label %103

141:                                              ; preds = %140, %135, %134, %130, %118, %111
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #3
  %142 = load i32, ptr getelementptr inbounds (i8, ptr @xdir, i64 8), align 8, !tbaa !5
  %143 = add nsw i32 %142, %.sroa.0.0.copyload
  store i32 %143, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #3
  %144 = load i32, ptr getelementptr inbounds (i8, ptr @ydir, i64 8), align 8, !tbaa !5
  %145 = add nsw i32 %144, %.sroa.9.0.copyload
  store i32 %145, ptr %7, align 4, !tbaa !5
  call void @_ZNSt4pairIiiEC2IiiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 4 dereferenceable(8) %5, ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 4 dereferenceable(4) %7)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #3
  %146 = load i32, ptr %5, align 4, !tbaa !21
  %147 = icmp slt i32 %146, 0
  br i1 %147, label %171, label %148

148:                                              ; preds = %141
  %149 = load i32, ptr @r, align 4, !tbaa !5
  %150 = icmp slt i32 %146, %149
  %151 = load i32, ptr %21, align 4
  %152 = icmp sgt i32 %151, -1
  %or.cond.not47.2 = select i1 %150, i1 %152, i1 false
  %153 = load i32, ptr @c, align 4
  %.not40.2 = icmp slt i32 %151, %153
  %or.cond44.2 = select i1 %or.cond.not47.2, i1 %.not40.2, i1 false
  br i1 %or.cond44.2, label %154, label %171

154:                                              ; preds = %148
  %155 = zext nneg i32 %146 to i64
  %156 = zext nneg i32 %151 to i64
  %157 = getelementptr inbounds [300 x [300 x i8]], ptr @g, i64 0, i64 %155, i64 %156
  %158 = load i8, ptr %157, align 1, !tbaa !17
  %.not41.2 = icmp eq i8 %158, 35
  %159 = load i32, ptr %79, align 4, !tbaa !5
  br i1 %.not41.2, label %165, label %160

160:                                              ; preds = %154
  %161 = getelementptr inbounds [300 x [300 x i32]], ptr @dist, i64 0, i64 %155, i64 %156
  %162 = load i32, ptr %161, align 4, !tbaa !5
  %163 = icmp slt i32 %159, %162
  br i1 %163, label %164, label %171

164:                                              ; preds = %160
  store i32 %159, ptr %161, align 4, !tbaa !5
  invoke void @_ZNSt5dequeISt4pairIiiESaIS1_EE10push_frontERKS1_(ptr noundef nonnull align 8 dereferenceable(80) %1, ptr noundef nonnull align 4 dereferenceable(8) %5)
          to label %171 unwind label %103

165:                                              ; preds = %154
  %166 = add nsw i32 %159, 1
  %167 = getelementptr inbounds [300 x [300 x i32]], ptr @dist, i64 0, i64 %155, i64 %156
  %168 = load i32, ptr %167, align 4, !tbaa !5
  %169 = icmp slt i32 %166, %168
  br i1 %169, label %170, label %171

170:                                              ; preds = %165
  store i32 %166, ptr %167, align 4, !tbaa !5
  invoke void @_ZNSt5dequeISt4pairIiiESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(80) %1, ptr noundef nonnull align 4 dereferenceable(8) %5)
          to label %171 unwind label %103

171:                                              ; preds = %170, %165, %164, %160, %148, %141
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #3
  %172 = load i32, ptr getelementptr inbounds (i8, ptr @xdir, i64 12), align 4, !tbaa !5
  %173 = add nsw i32 %172, %.sroa.0.0.copyload
  store i32 %173, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #3
  %174 = load i32, ptr getelementptr inbounds (i8, ptr @ydir, i64 12), align 4, !tbaa !5
  %175 = add nsw i32 %174, %.sroa.9.0.copyload
  store i32 %175, ptr %7, align 4, !tbaa !5
  call void @_ZNSt4pairIiiEC2IiiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 4 dereferenceable(8) %5, ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 4 dereferenceable(4) %7)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #3
  %176 = load i32, ptr %5, align 4, !tbaa !21
  %177 = icmp slt i32 %176, 0
  br i1 %177, label %.loopexit, label %178

178:                                              ; preds = %171
  %179 = load i32, ptr @r, align 4, !tbaa !5
  %180 = icmp slt i32 %176, %179
  %181 = load i32, ptr %21, align 4
  %182 = icmp sgt i32 %181, -1
  %or.cond.not47.3 = select i1 %180, i1 %182, i1 false
  %183 = load i32, ptr @c, align 4
  %.not40.3 = icmp slt i32 %181, %183
  %or.cond44.3 = select i1 %or.cond.not47.3, i1 %.not40.3, i1 false
  br i1 %or.cond44.3, label %184, label %.loopexit

184:                                              ; preds = %178
  %185 = zext nneg i32 %176 to i64
  %186 = zext nneg i32 %181 to i64
  %187 = getelementptr inbounds [300 x [300 x i8]], ptr @g, i64 0, i64 %185, i64 %186
  %188 = load i8, ptr %187, align 1, !tbaa !17
  %.not41.3 = icmp eq i8 %188, 35
  %189 = load i32, ptr %79, align 4, !tbaa !5
  br i1 %.not41.3, label %195, label %190

190:                                              ; preds = %184
  %191 = getelementptr inbounds [300 x [300 x i32]], ptr @dist, i64 0, i64 %185, i64 %186
  %192 = load i32, ptr %191, align 4, !tbaa !5
  %193 = icmp slt i32 %189, %192
  br i1 %193, label %194, label %.loopexit

194:                                              ; preds = %190
  store i32 %189, ptr %191, align 4, !tbaa !5
  invoke void @_ZNSt5dequeISt4pairIiiESaIS1_EE10push_frontERKS1_(ptr noundef nonnull align 8 dereferenceable(80) %1, ptr noundef nonnull align 4 dereferenceable(8) %5)
          to label %.loopexit unwind label %103

195:                                              ; preds = %184
  %196 = add nsw i32 %189, 1
  %197 = getelementptr inbounds [300 x [300 x i32]], ptr @dist, i64 0, i64 %185, i64 %186
  %198 = load i32, ptr %197, align 4, !tbaa !5
  %199 = icmp slt i32 %196, %198
  br i1 %199, label %200, label %.loopexit

200:                                              ; preds = %195
  store i32 %196, ptr %197, align 4, !tbaa !5
  invoke void @_ZNSt5dequeISt4pairIiiESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(80) %1, ptr noundef nonnull align 4 dereferenceable(8) %5)
          to label %.loopexit unwind label %103

.loopexit:                                        ; preds = %200, %195, %194, %190, %178, %171
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #3
  %201 = call noundef i64 @_ZNKSt5dequeISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(80) %1) #3
  %.not = icmp eq i64 %201, 0
  br i1 %.not, label %.preheader48, label %75, !llvm.loop !23

._crit_edge65:                                    ; preds = %._crit_edge63.us, %.preheader.lr.ph, %.preheader48
  call void @_ZNSt5dequeISt4pairIiiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %1) #3
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %1) #3
  ret void

202:                                              ; preds = %103, %43
  %.pn = phi { ptr, i32 } [ %44, %43 ], [ %104, %103 ]
  call void @_ZNSt5dequeISt4pairIiiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %1) #3
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %1) #3
  resume { ptr, i32 } %.pn
}

; 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 uwtable
declare dso_local void @_ZNSt5dequeISt4pairIiiESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #0 align 2

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { 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, !11, !12}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!"llvm.loop.isvectorized", i32 1}
!12 = !{!"llvm.loop.unroll.runtime.disable"}
!13 = distinct !{!13, !10, !12, !11}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10, !16}
!16 = !{!"llvm.loop.unswitch.partial.disable"}
!17 = !{!7, !7, i64 0}
!18 = distinct !{!18, !10}
!19 = distinct !{!19, !10}
!20 = distinct !{!20, !10}
!21 = !{!22, !6, i64 0}
!22 = !{!"_ZTSSt4pairIiiE", !6, i64 0, !6, i64 4}
!23 = distinct !{!23, !10}


; Effective O3 passes: DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,ReassociatePass,SROAPass,SimpleLoopUnswitchPass,SimplifyCFGPass