; LLVM IR from upupming/algorithm :: AdvancedLevel_C++/1030. Travel Plan (30)  (main)

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

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@s = external dso_local global i32, align 4
@d = external dso_local global i32, align 4
@e = external dso_local global [510 x [510 x i32]], align 16
@dis = external dso_local global [510 x i32], align 16
@cost = external dso_local global [510 x [510 x i32]], align 16
@pre = external dso_local global [510 x %"class.std::vector"], align 16
@visit = external dso_local global [510 x i8], align 16
@path = external dso_local global %"class.std::vector", align 8
@mincost = external dso_local global i32, align 4
@_ZL3inf = external hidden constant i32, align 4
@.str = external hidden unnamed_addr constant [9 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z3dfsi(i32 noundef) #0

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

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

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

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #3 {
  %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 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @_ZSt4fillIPiiEvT_S1_RKT0_(ptr noundef @e, ptr noundef getelementptr inbounds (i32, ptr @e, i64 260100), ptr noundef nonnull align 4 dereferenceable(4) @_ZL3inf)
  call void @_ZSt4fillIPiiEvT_S1_RKT0_(ptr noundef @dis, ptr noundef getelementptr inbounds (i32, ptr @dis, i64 510), ptr noundef nonnull align 4 dereferenceable(4) @_ZL3inf)
  %12 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @n, ptr noundef @m, ptr noundef @s, ptr noundef @d)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %13

13:                                               ; preds = %60, %0
  %14 = load i32, ptr %2, align 4, !tbaa !5
  %15 = load i32, ptr @m, align 4, !tbaa !5
  %16 = icmp slt i32 %14, %15
  br i1 %16, label %18, label %17

17:                                               ; preds = %13
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  br label %63

18:                                               ; preds = %13
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  %19 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.3, ptr noundef %3, ptr noundef %4)
  %20 = load i32, ptr %3, align 4, !tbaa !5
  %21 = sext i32 %20 to i64
  %22 = getelementptr inbounds [510 x [510 x i32]], ptr @e, i64 0, i64 %21
  %23 = load i32, ptr %4, align 4, !tbaa !5
  %24 = sext i32 %23 to i64
  %25 = getelementptr inbounds [510 x i32], ptr %22, i64 0, i64 %24
  %26 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.4, ptr noundef %25)
  %27 = load i32, ptr %3, align 4, !tbaa !5
  %28 = sext i32 %27 to i64
  %29 = getelementptr inbounds [510 x [510 x i32]], ptr @e, i64 0, i64 %28
  %30 = load i32, ptr %4, align 4, !tbaa !5
  %31 = sext i32 %30 to i64
  %32 = getelementptr inbounds [510 x i32], ptr %29, i64 0, i64 %31
  %33 = load i32, ptr %32, align 4, !tbaa !5
  %34 = load i32, ptr %4, align 4, !tbaa !5
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds [510 x [510 x i32]], ptr @e, i64 0, i64 %35
  %37 = load i32, ptr %3, align 4, !tbaa !5
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds [510 x i32], ptr %36, i64 0, i64 %38
  store i32 %33, ptr %39, align 4, !tbaa !5
  %40 = load i32, ptr %3, align 4, !tbaa !5
  %41 = sext i32 %40 to i64
  %42 = getelementptr inbounds [510 x [510 x i32]], ptr @cost, i64 0, i64 %41
  %43 = load i32, ptr %4, align 4, !tbaa !5
  %44 = sext i32 %43 to i64
  %45 = getelementptr inbounds [510 x i32], ptr %42, i64 0, i64 %44
  %46 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.4, ptr noundef %45)
  %47 = load i32, ptr %3, align 4, !tbaa !5
  %48 = sext i32 %47 to i64
  %49 = getelementptr inbounds [510 x [510 x i32]], ptr @cost, i64 0, i64 %48
  %50 = load i32, ptr %4, align 4, !tbaa !5
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds [510 x i32], ptr %49, i64 0, i64 %51
  %53 = load i32, ptr %52, align 4, !tbaa !5
  %54 = load i32, ptr %4, align 4, !tbaa !5
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds [510 x [510 x i32]], ptr @cost, i64 0, i64 %55
  %57 = load i32, ptr %3, align 4, !tbaa !5
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds [510 x i32], ptr %56, i64 0, i64 %58
  store i32 %53, ptr %59, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  br label %60

60:                                               ; preds = %18
  %61 = load i32, ptr %2, align 4, !tbaa !5
  %62 = add nsw i32 %61, 1
  store i32 %62, ptr %2, align 4, !tbaa !5
  br label %13, !llvm.loop !9

63:                                               ; preds = %17
  %64 = load i32, ptr @s, align 4, !tbaa !5
  %65 = sext i32 %64 to i64
  %66 = getelementptr inbounds [510 x %"class.std::vector"], ptr @pre, i64 0, i64 %65
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %66, ptr noundef nonnull align 4 dereferenceable(4) @s)
  %67 = load i32, ptr @s, align 4, !tbaa !5
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds [510 x i32], ptr @dis, i64 0, i64 %68
  store i32 0, ptr %69, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %70

70:                                               ; preds = %208, %63
  %71 = load i32, ptr %5, align 4, !tbaa !5
  %72 = load i32, ptr @n, align 4, !tbaa !5
  %73 = icmp slt i32 %71, %72
  br i1 %73, label %75, label %74

74:                                               ; preds = %70
  store i32 5, ptr %6, align 4
  br label %211

75:                                               ; preds = %70
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  store i32 -1, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  store i32 99999999, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  store i32 0, ptr %9, align 4, !tbaa !5
  br label %76

76:                                               ; preds = %103, %75
  %77 = load i32, ptr %9, align 4, !tbaa !5
  %78 = load i32, ptr @n, align 4, !tbaa !5
  %79 = icmp slt i32 %77, %78
  br i1 %79, label %81, label %80

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

81:                                               ; preds = %76
  %82 = load i32, ptr %9, align 4, !tbaa !5
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds [510 x i8], ptr @visit, i64 0, i64 %83
  %85 = load i8, ptr %84, align 1, !tbaa !11, !range !13, !noundef !14
  %86 = trunc i8 %85 to i1
  %87 = zext i1 %86 to i32
  %88 = icmp eq i32 %87, 0
  br i1 %88, label %89, label %102

89:                                               ; preds = %81
  %90 = load i32, ptr %9, align 4, !tbaa !5
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds [510 x i32], ptr @dis, i64 0, i64 %91
  %93 = load i32, ptr %92, align 4, !tbaa !5
  %94 = load i32, ptr %8, align 4, !tbaa !5
  %95 = icmp slt i32 %93, %94
  br i1 %95, label %96, label %102

96:                                               ; preds = %89
  %97 = load i32, ptr %9, align 4, !tbaa !5
  store i32 %97, ptr %7, align 4, !tbaa !5
  %98 = load i32, ptr %9, align 4, !tbaa !5
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds [510 x i32], ptr @dis, i64 0, i64 %99
  %101 = load i32, ptr %100, align 4, !tbaa !5
  store i32 %101, ptr %8, align 4, !tbaa !5
  br label %102

102:                                              ; preds = %96, %89, %81
  br label %103

103:                                              ; preds = %102
  %104 = load i32, ptr %9, align 4, !tbaa !5
  %105 = add nsw i32 %104, 1
  store i32 %105, ptr %9, align 4, !tbaa !5
  br label %76, !llvm.loop !15

106:                                              ; preds = %80
  %107 = load i32, ptr %7, align 4, !tbaa !5
  %108 = icmp eq i32 %107, -1
  br i1 %108, label %109, label %110

109:                                              ; preds = %106
  store i32 5, ptr %6, align 4
  br label %205

110:                                              ; preds = %106
  %111 = load i32, ptr %7, align 4, !tbaa !5
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds [510 x i8], ptr @visit, i64 0, i64 %112
  store i8 1, ptr %113, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  store i32 0, ptr %10, align 4, !tbaa !5
  br label %114

114:                                              ; preds = %201, %110
  %115 = load i32, ptr %10, align 4, !tbaa !5
  %116 = load i32, ptr @n, align 4, !tbaa !5
  %117 = icmp slt i32 %115, %116
  br i1 %117, label %119, label %118

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

119:                                              ; preds = %114
  %120 = load i32, ptr %10, align 4, !tbaa !5
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds [510 x i8], ptr @visit, i64 0, i64 %121
  %123 = load i8, ptr %122, align 1, !tbaa !11, !range !13, !noundef !14
  %124 = trunc i8 %123 to i1
  %125 = zext i1 %124 to i32
  %126 = icmp eq i32 %125, 0
  br i1 %126, label %127, label %200

127:                                              ; preds = %119
  %128 = load i32, ptr %7, align 4, !tbaa !5
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds [510 x [510 x i32]], ptr @e, i64 0, i64 %129
  %131 = load i32, ptr %10, align 4, !tbaa !5
  %132 = sext i32 %131 to i64
  %133 = getelementptr inbounds [510 x i32], ptr %130, i64 0, i64 %132
  %134 = load i32, ptr %133, align 4, !tbaa !5
  %135 = icmp ne i32 %134, 99999999
  br i1 %135, label %136, label %200

136:                                              ; preds = %127
  %137 = load i32, ptr %10, align 4, !tbaa !5
  %138 = sext i32 %137 to i64
  %139 = getelementptr inbounds [510 x i32], ptr @dis, i64 0, i64 %138
  %140 = load i32, ptr %139, align 4, !tbaa !5
  %141 = load i32, ptr %7, align 4, !tbaa !5
  %142 = sext i32 %141 to i64
  %143 = getelementptr inbounds [510 x i32], ptr @dis, i64 0, i64 %142
  %144 = load i32, ptr %143, align 4, !tbaa !5
  %145 = load i32, ptr %7, align 4, !tbaa !5
  %146 = sext i32 %145 to i64
  %147 = getelementptr inbounds [510 x [510 x i32]], ptr @e, i64 0, i64 %146
  %148 = load i32, ptr %10, align 4, !tbaa !5
  %149 = sext i32 %148 to i64
  %150 = getelementptr inbounds [510 x i32], ptr %147, i64 0, i64 %149
  %151 = load i32, ptr %150, align 4, !tbaa !5
  %152 = add nsw i32 %144, %151
  %153 = icmp sgt i32 %140, %152
  br i1 %153, label %154, label %176

154:                                              ; preds = %136
  %155 = load i32, ptr %7, align 4, !tbaa !5
  %156 = sext i32 %155 to i64
  %157 = getelementptr inbounds [510 x i32], ptr @dis, i64 0, i64 %156
  %158 = load i32, ptr %157, align 4, !tbaa !5
  %159 = load i32, ptr %7, align 4, !tbaa !5
  %160 = sext i32 %159 to i64
  %161 = getelementptr inbounds [510 x [510 x i32]], ptr @e, i64 0, i64 %160
  %162 = load i32, ptr %10, align 4, !tbaa !5
  %163 = sext i32 %162 to i64
  %164 = getelementptr inbounds [510 x i32], ptr %161, i64 0, i64 %163
  %165 = load i32, ptr %164, align 4, !tbaa !5
  %166 = add nsw i32 %158, %165
  %167 = load i32, ptr %10, align 4, !tbaa !5
  %168 = sext i32 %167 to i64
  %169 = getelementptr inbounds [510 x i32], ptr @dis, i64 0, i64 %168
  store i32 %166, ptr %169, align 4, !tbaa !5
  %170 = load i32, ptr %10, align 4, !tbaa !5
  %171 = sext i32 %170 to i64
  %172 = getelementptr inbounds [510 x %"class.std::vector"], ptr @pre, i64 0, i64 %171
  call void @_ZNSt6vectorIiSaIiEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %172) #6
  %173 = load i32, ptr %10, align 4, !tbaa !5
  %174 = sext i32 %173 to i64
  %175 = getelementptr inbounds [510 x %"class.std::vector"], ptr @pre, i64 0, i64 %174
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %175, ptr noundef nonnull align 4 dereferenceable(4) %7)
  br label %199

176:                                              ; preds = %136
  %177 = load i32, ptr %10, align 4, !tbaa !5
  %178 = sext i32 %177 to i64
  %179 = getelementptr inbounds [510 x i32], ptr @dis, i64 0, i64 %178
  %180 = load i32, ptr %179, align 4, !tbaa !5
  %181 = load i32, ptr %7, align 4, !tbaa !5
  %182 = sext i32 %181 to i64
  %183 = getelementptr inbounds [510 x i32], ptr @dis, i64 0, i64 %182
  %184 = load i32, ptr %183, align 4, !tbaa !5
  %185 = load i32, ptr %7, align 4, !tbaa !5
  %186 = sext i32 %185 to i64
  %187 = getelementptr inbounds [510 x [510 x i32]], ptr @e, i64 0, i64 %186
  %188 = load i32, ptr %10, align 4, !tbaa !5
  %189 = sext i32 %188 to i64
  %190 = getelementptr inbounds [510 x i32], ptr %187, i64 0, i64 %189
  %191 = load i32, ptr %190, align 4, !tbaa !5
  %192 = add nsw i32 %184, %191
  %193 = icmp eq i32 %180, %192
  br i1 %193, label %194, label %198

194:                                              ; preds = %176
  %195 = load i32, ptr %10, align 4, !tbaa !5
  %196 = sext i32 %195 to i64
  %197 = getelementptr inbounds [510 x %"class.std::vector"], ptr @pre, i64 0, i64 %196
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %197, ptr noundef nonnull align 4 dereferenceable(4) %7)
  br label %198

198:                                              ; preds = %194, %176
  br label %199

199:                                              ; preds = %198, %154
  br label %200

200:                                              ; preds = %199, %127, %119
  br label %201

201:                                              ; preds = %200
  %202 = load i32, ptr %10, align 4, !tbaa !5
  %203 = add nsw i32 %202, 1
  store i32 %203, ptr %10, align 4, !tbaa !5
  br label %114, !llvm.loop !16

204:                                              ; preds = %118
  store i32 0, ptr %6, align 4
  br label %205

205:                                              ; preds = %204, %109
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  %206 = load i32, ptr %6, align 4
  switch i32 %206, label %211 [
    i32 0, label %207
  ]

207:                                              ; preds = %205
  br label %208

208:                                              ; preds = %207
  %209 = load i32, ptr %5, align 4, !tbaa !5
  %210 = add nsw i32 %209, 1
  store i32 %210, ptr %5, align 4, !tbaa !5
  br label %70, !llvm.loop !17

211:                                              ; preds = %205, %74
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  br label %212

212:                                              ; preds = %211
  %213 = load i32, ptr @d, align 4, !tbaa !5
  call void @_Z3dfsi(i32 noundef %213)
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  %214 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @path) #6
  %215 = sub i64 %214, 1
  %216 = trunc i64 %215 to i32
  store i32 %216, ptr %11, align 4, !tbaa !5
  br label %217

217:                                              ; preds = %227, %212
  %218 = load i32, ptr %11, align 4, !tbaa !5
  %219 = icmp sge i32 %218, 0
  br i1 %219, label %221, label %220

220:                                              ; preds = %217
  store i32 14, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  br label %230

221:                                              ; preds = %217
  %222 = load i32, ptr %11, align 4, !tbaa !5
  %223 = sext i32 %222 to i64
  %224 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @path, i64 noundef %223) #6
  %225 = load i32, ptr %224, align 4, !tbaa !5
  %226 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %225)
  br label %227

227:                                              ; preds = %221
  %228 = load i32, ptr %11, align 4, !tbaa !5
  %229 = add nsw i32 %228, -1
  store i32 %229, ptr %11, align 4, !tbaa !5
  br label %217, !llvm.loop !18

230:                                              ; preds = %220
  %231 = load i32, ptr @d, align 4, !tbaa !5
  %232 = sext i32 %231 to i64
  %233 = getelementptr inbounds [510 x i32], ptr @dis, i64 0, i64 %232
  %234 = load i32, ptr %233, align 4, !tbaa !5
  %235 = load i32, ptr @mincost, align 4, !tbaa !5
  %236 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %234, i32 noundef %235)
  ret i32 0
}

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

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

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

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

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 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { "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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{i8 0, i8 2}
!14 = !{}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !10}


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

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@s = external dso_local global i32, align 4
@d = external dso_local global i32, align 4
@e = external dso_local global [510 x [510 x i32]], align 16
@dis = external dso_local global [510 x i32], align 16
@cost = external dso_local global [510 x [510 x i32]], align 16
@pre = external dso_local global [510 x %"class.std::vector"], align 16
@visit = external dso_local local_unnamed_addr global [510 x i8], align 16
@path = external dso_local global %"class.std::vector", align 8
@mincost = external dso_local local_unnamed_addr global i32, align 4
@_ZL3inf = external hidden constant i32, align 4
@.str = external hidden unnamed_addr constant [9 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z3dfsi(i32 noundef) local_unnamed_addr #0

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

; 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 nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

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

; 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 norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #3 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  tail call void @_ZSt4fillIPiiEvT_S1_RKT0_(ptr noundef nonnull @e, ptr noundef nonnull getelementptr inbounds (i8, ptr @e, i64 1040400), ptr noundef nonnull align 4 dereferenceable(4) @_ZL3inf)
  tail call void @_ZSt4fillIPiiEvT_S1_RKT0_(ptr noundef nonnull @dis, ptr noundef nonnull getelementptr inbounds (i8, ptr @dis, i64 2040), ptr noundef nonnull align 4 dereferenceable(4) @_ZL3inf)
  %4 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @n, ptr noundef nonnull @m, ptr noundef nonnull @s, ptr noundef nonnull @d)
  %5 = load i32, ptr @m, align 4, !tbaa !5
  %6 = icmp sgt i32 %5, 0
  br i1 %6, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %0
  %7 = load i32, ptr @s, align 4, !tbaa !5
  %8 = sext i32 %7 to i64
  %9 = getelementptr inbounds [510 x %"class.std::vector"], ptr @pre, i64 0, i64 %8
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 4 dereferenceable(4) @s)
  %10 = load i32, ptr @s, align 4, !tbaa !5
  %11 = sext i32 %10 to i64
  %12 = getelementptr inbounds [510 x i32], ptr @dis, i64 0, i64 %11
  store i32 0, ptr %12, align 4, !tbaa !5
  %13 = load i32, ptr @n, align 4, !tbaa !5
  %14 = icmp sgt i32 %13, 0
  br i1 %14, label %.lr.ph52, label %.loopexit

.lr.ph:                                           ; preds = %0, %.lr.ph
  %.03340 = phi i32 [ %38, %.lr.ph ], [ 0, %0 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #6
  %15 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.3, ptr noundef nonnull %1, ptr noundef nonnull %2)
  %16 = load i32, ptr %1, align 4, !tbaa !5
  %17 = sext i32 %16 to i64
  %18 = load i32, ptr %2, align 4, !tbaa !5
  %19 = sext i32 %18 to i64
  %20 = getelementptr inbounds [510 x [510 x i32]], ptr @e, i64 0, i64 %17, i64 %19
  %21 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.4, ptr noundef nonnull %20)
  %22 = load i32, ptr %1, align 4, !tbaa !5
  %23 = sext i32 %22 to i64
  %24 = load i32, ptr %2, align 4, !tbaa !5
  %25 = sext i32 %24 to i64
  %26 = getelementptr inbounds [510 x [510 x i32]], ptr @e, i64 0, i64 %23, i64 %25
  %27 = load i32, ptr %26, align 4, !tbaa !5
  %28 = getelementptr inbounds [510 x [510 x i32]], ptr @e, i64 0, i64 %25, i64 %23
  store i32 %27, ptr %28, align 4, !tbaa !5
  %29 = getelementptr inbounds [510 x [510 x i32]], ptr @cost, i64 0, i64 %23, i64 %25
  %30 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.4, ptr noundef nonnull %29)
  %31 = load i32, ptr %1, align 4, !tbaa !5
  %32 = sext i32 %31 to i64
  %33 = load i32, ptr %2, align 4, !tbaa !5
  %34 = sext i32 %33 to i64
  %35 = getelementptr inbounds [510 x [510 x i32]], ptr @cost, i64 0, i64 %32, i64 %34
  %36 = load i32, ptr %35, align 4, !tbaa !5
  %37 = getelementptr inbounds [510 x [510 x i32]], ptr @cost, i64 0, i64 %34, i64 %32
  store i32 %36, ptr %37, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #6
  %38 = add nuw nsw i32 %.03340, 1
  %39 = load i32, ptr @m, align 4, !tbaa !5
  %40 = icmp slt i32 %38, %39
  br i1 %40, label %.lr.ph, label %._crit_edge, !llvm.loop !9

.lr.ph52:                                         ; preds = %._crit_edge, %._crit_edge49
  %41 = phi i32 [ %103, %._crit_edge49 ], [ %13, %._crit_edge ]
  %.03250 = phi i32 [ %104, %._crit_edge49 ], [ 0, %._crit_edge ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #6
  store i32 -1, ptr %3, align 4, !tbaa !5
  %42 = icmp sgt i32 %41, 0
  br i1 %42, label %.lr.ph44.preheader, label %.critedge

.lr.ph44.preheader:                               ; preds = %.lr.ph52
  %wide.trip.count = zext nneg i32 %41 to i64
  %xtraiter = and i64 %wide.trip.count, 1
  %43 = icmp eq i32 %41, 1
  br i1 %43, label %._crit_edge45.unr-lcssa, label %.lr.ph44.preheader.new

.lr.ph44.preheader.new:                           ; preds = %.lr.ph44.preheader
  %unroll_iter = and i64 %wide.trip.count, 2147483646
  br label %.lr.ph44

._crit_edge45.unr-lcssa:                          ; preds = %73, %.lr.ph44.preheader
  %.lcssa.ph = phi i32 [ poison, %.lr.ph44.preheader ], [ %74, %73 ]
  %.unr = phi i32 [ -1, %.lr.ph44.preheader ], [ %74, %73 ]
  %indvars.iv.unr = phi i64 [ 0, %.lr.ph44.preheader ], [ %indvars.iv.next.1, %73 ]
  %.03041.unr = phi i32 [ 99999999, %.lr.ph44.preheader ], [ %.1.1, %73 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge45, label %.lr.ph44.epil

.lr.ph44.epil:                                    ; preds = %._crit_edge45.unr-lcssa
  %44 = getelementptr inbounds [510 x i8], ptr @visit, i64 0, i64 %indvars.iv.unr
  %45 = load i8, ptr %44, align 1, !tbaa !11, !range !13, !noundef !14
  %46 = icmp eq i8 %45, 0
  br i1 %46, label %47, label %._crit_edge45

47:                                               ; preds = %.lr.ph44.epil
  %48 = getelementptr inbounds [510 x i32], ptr @dis, i64 0, i64 %indvars.iv.unr
  %49 = load i32, ptr %48, align 4, !tbaa !5
  %50 = icmp slt i32 %49, %.03041.unr
  br i1 %50, label %51, label %._crit_edge45

51:                                               ; preds = %47
  %52 = trunc nuw nsw i64 %indvars.iv.unr to i32
  store i32 %52, ptr %3, align 4, !tbaa !5
  br label %._crit_edge45

._crit_edge45:                                    ; preds = %.lr.ph44.epil, %47, %51, %._crit_edge45.unr-lcssa
  %.lcssa = phi i32 [ %.lcssa.ph, %._crit_edge45.unr-lcssa ], [ %52, %51 ], [ %.unr, %47 ], [ %.unr, %.lr.ph44.epil ]
  %.not39 = icmp eq i32 %.lcssa, -1
  br i1 %.not39, label %.critedge, label %75

.lr.ph44:                                         ; preds = %73, %.lr.ph44.preheader.new
  %53 = phi i32 [ -1, %.lr.ph44.preheader.new ], [ %74, %73 ]
  %indvars.iv = phi i64 [ 0, %.lr.ph44.preheader.new ], [ %indvars.iv.next.1, %73 ]
  %.03041 = phi i32 [ 99999999, %.lr.ph44.preheader.new ], [ %.1.1, %73 ]
  %niter = phi i64 [ 0, %.lr.ph44.preheader.new ], [ %niter.next.1, %73 ]
  %54 = getelementptr inbounds [510 x i8], ptr @visit, i64 0, i64 %indvars.iv
  %55 = load i8, ptr %54, align 2, !tbaa !11, !range !13, !noundef !14
  %56 = icmp eq i8 %55, 0
  br i1 %56, label %57, label %.lr.ph44.1

57:                                               ; preds = %.lr.ph44
  %58 = getelementptr inbounds [510 x i32], ptr @dis, i64 0, i64 %indvars.iv
  %59 = load i32, ptr %58, align 8, !tbaa !5
  %60 = icmp slt i32 %59, %.03041
  br i1 %60, label %61, label %.lr.ph44.1

61:                                               ; preds = %57
  %62 = trunc nuw nsw i64 %indvars.iv to i32
  store i32 %62, ptr %3, align 4, !tbaa !5
  br label %.lr.ph44.1

.lr.ph44.1:                                       ; preds = %.lr.ph44, %57, %61
  %63 = phi i32 [ %62, %61 ], [ %53, %57 ], [ %53, %.lr.ph44 ]
  %.1 = phi i32 [ %59, %61 ], [ %.03041, %57 ], [ %.03041, %.lr.ph44 ]
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %64 = getelementptr inbounds [510 x i8], ptr @visit, i64 0, i64 %indvars.iv.next
  %65 = load i8, ptr %64, align 1, !tbaa !11, !range !13, !noundef !14
  %66 = icmp eq i8 %65, 0
  br i1 %66, label %67, label %73

67:                                               ; preds = %.lr.ph44.1
  %68 = getelementptr inbounds [510 x i32], ptr @dis, i64 0, i64 %indvars.iv.next
  %69 = load i32, ptr %68, align 4, !tbaa !5
  %70 = icmp slt i32 %69, %.1
  br i1 %70, label %71, label %73

71:                                               ; preds = %67
  %72 = trunc nuw nsw i64 %indvars.iv.next to i32
  store i32 %72, ptr %3, align 4, !tbaa !5
  br label %73

73:                                               ; preds = %71, %67, %.lr.ph44.1
  %74 = phi i32 [ %72, %71 ], [ %63, %67 ], [ %63, %.lr.ph44.1 ]
  %.1.1 = phi i32 [ %69, %71 ], [ %.1, %67 ], [ %.1, %.lr.ph44.1 ]
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 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_edge45.unr-lcssa, label %.lr.ph44, !llvm.loop !15

75:                                               ; preds = %._crit_edge45
  %76 = sext i32 %.lcssa to i64
  %77 = getelementptr inbounds [510 x i8], ptr @visit, i64 0, i64 %76
  store i8 1, ptr %77, align 1, !tbaa !11
  br i1 %42, label %.lr.ph48, label %._crit_edge49

.lr.ph48:                                         ; preds = %75, %99
  %indvars.iv59 = phi i64 [ %indvars.iv.next60, %99 ], [ 0, %75 ]
  %78 = getelementptr inbounds [510 x i8], ptr @visit, i64 0, i64 %indvars.iv59
  %79 = load i8, ptr %78, align 1, !tbaa !11, !range !13, !noundef !14
  %80 = icmp eq i8 %79, 0
  br i1 %80, label %81, label %99

81:                                               ; preds = %.lr.ph48
  %82 = load i32, ptr %3, align 4, !tbaa !5
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds [510 x [510 x i32]], ptr @e, i64 0, i64 %83, i64 %indvars.iv59
  %85 = load i32, ptr %84, align 4, !tbaa !5
  %.not = icmp eq i32 %85, 99999999
  br i1 %.not, label %99, label %86

86:                                               ; preds = %81
  %87 = getelementptr inbounds [510 x i32], ptr @dis, i64 0, i64 %indvars.iv59
  %88 = load i32, ptr %87, align 4, !tbaa !5
  %89 = getelementptr inbounds [510 x i32], ptr @dis, i64 0, i64 %83
  %90 = load i32, ptr %89, align 4, !tbaa !5
  %91 = add nsw i32 %90, %85
  %92 = icmp sgt i32 %88, %91
  br i1 %92, label %93, label %95

93:                                               ; preds = %86
  store i32 %91, ptr %87, align 4, !tbaa !5
  %94 = getelementptr inbounds [510 x %"class.std::vector"], ptr @pre, i64 0, i64 %indvars.iv59
  call void @_ZNSt6vectorIiSaIiEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %94) #6
  br label %.sink.split

95:                                               ; preds = %86
  %96 = icmp eq i32 %88, %91
  br i1 %96, label %97, label %99

97:                                               ; preds = %95
  %98 = getelementptr inbounds [510 x %"class.std::vector"], ptr @pre, i64 0, i64 %indvars.iv59
  br label %.sink.split

.sink.split:                                      ; preds = %93, %97
  %.sink = phi ptr [ %98, %97 ], [ %94, %93 ]
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %.sink, ptr noundef nonnull align 4 dereferenceable(4) %3)
  br label %99

99:                                               ; preds = %.sink.split, %.lr.ph48, %81, %95
  %indvars.iv.next60 = add nuw nsw i64 %indvars.iv59, 1
  %100 = load i32, ptr @n, align 4, !tbaa !5
  %101 = sext i32 %100 to i64
  %102 = icmp slt i64 %indvars.iv.next60, %101
  br i1 %102, label %.lr.ph48, label %._crit_edge49, !llvm.loop !16

._crit_edge49:                                    ; preds = %99, %75
  %103 = phi i32 [ %41, %75 ], [ %100, %99 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #6
  %104 = add nuw nsw i32 %.03250, 1
  %105 = icmp slt i32 %104, %103
  br i1 %105, label %.lr.ph52, label %.loopexit, !llvm.loop !17

.critedge:                                        ; preds = %.lr.ph52, %._crit_edge45
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #6
  br label %.loopexit

.loopexit:                                        ; preds = %._crit_edge49, %._crit_edge, %.critedge
  %106 = load i32, ptr @d, align 4, !tbaa !5
  call void @_Z3dfsi(i32 noundef %106)
  %107 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @path) #6
  %108 = trunc i64 %107 to i32
  %.053 = add i32 %108, -1
  %109 = icmp sgt i32 %.053, -1
  br i1 %109, label %.lr.ph56.preheader, label %._crit_edge57

.lr.ph56.preheader:                               ; preds = %.loopexit
  %110 = zext nneg i32 %.053 to i64
  br label %.lr.ph56

._crit_edge57:                                    ; preds = %.lr.ph56, %.loopexit
  %111 = load i32, ptr @d, align 4, !tbaa !5
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds [510 x i32], ptr @dis, i64 0, i64 %112
  %114 = load i32, ptr %113, align 4, !tbaa !5
  %115 = load i32, ptr @mincost, align 4, !tbaa !5
  %116 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, i32 noundef %114, i32 noundef %115)
  ret i32 0

.lr.ph56:                                         ; preds = %.lr.ph56.preheader, %.lr.ph56
  %indvars.iv62 = phi i64 [ %110, %.lr.ph56.preheader ], [ %indvars.iv.next63, %.lr.ph56 ]
  %117 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @path, i64 noundef %indvars.iv62) #6
  %118 = load i32, ptr %117, align 4, !tbaa !5
  %119 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5, i32 noundef %118)
  %indvars.iv.next63 = add nsw i64 %indvars.iv62, -1
  %.not67 = icmp eq i64 %indvars.iv62, 0
  br i1 %.not67, label %._crit_edge57, label %.lr.ph56, !llvm.loop !18
}

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

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

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

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

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 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 #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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{i8 0, i8 2}
!14 = !{}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !10}


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