; LLVM IR from VastoLorde95/Competitive-Programming :: HackerEarth/IndiaHacks/Semi/Problem I/I.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::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::pair.5" = type { i32, i32 }
%"class.std::vector.18" = type { %"struct.std::_Vector_base.19" }
%"struct.std::_Vector_base.19" = 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 }
%"class.__gnu_cxx::__normal_iterator.23" = type { 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
@g = external dso_local global [200100 x %"class.std::vector"], align 16
@vis = external dso_local global [200100 x i32], align 16
@pre = external dso_local global [200100 x i32], align 16
@nxt = external dso_local global [200100 x i32], align 16
@sp = external dso_local global [200100 x i32], align 16
@d = external dso_local global [200100 x i64], align 16
@.str.3 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [3 x i8], align 1
@__FUNCTION__._Z5solvev = external hidden unnamed_addr constant [6 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [1 x i8], align 1

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

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

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #0

; 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 i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca %"struct.std::pair.5", align 4
  %7 = alloca %"struct.std::pair.5", align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca %"class.std::vector.18", align 8
  %20 = alloca ptr, align 8
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca %"class.__gnu_cxx::__normal_iterator.23", align 8
  %24 = alloca %"class.__gnu_cxx::__normal_iterator.23", align 8
  %25 = alloca %"class.__gnu_cxx::__normal_iterator.23", align 8
  %26 = alloca %"class.__gnu_cxx::__normal_iterator.23", align 8
  %27 = alloca %"class.__gnu_cxx::__normal_iterator.23", align 8
  %28 = alloca %"class.__gnu_cxx::__normal_iterator.23", align 8
  %29 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.3, ptr noundef @n, ptr noundef @m)
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #6
  store i32 1, ptr %1, align 4, !tbaa !5
  br label %30

30:                                               ; preds = %39, %0
  %31 = load i32, ptr %1, align 4, !tbaa !5
  %32 = load i32, ptr @n, align 4, !tbaa !5
  %33 = icmp sle i32 %31, %32
  br i1 %33, label %35, label %34

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

35:                                               ; preds = %30
  %36 = load i32, ptr %1, align 4, !tbaa !5
  %37 = sext i32 %36 to i64
  %38 = getelementptr inbounds [200100 x %"class.std::vector"], ptr @g, i64 0, i64 %37
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %38) #6
  br label %39

39:                                               ; preds = %35
  %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 %30, !llvm.loop !9

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

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

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

48:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  %49 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.4, ptr noundef %3, ptr noundef %4, ptr noundef %5)
  %50 = load i32, ptr %3, align 4, !tbaa !5
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds [200100 x %"class.std::vector"], ptr @g, i64 0, i64 %51
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  %53 = call i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %5)
  store i64 %53, ptr %6, align 4
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %52, ptr noundef nonnull align 4 dereferenceable(8) %6)
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  %54 = load i32, ptr %4, align 4, !tbaa !5
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds [200100 x %"class.std::vector"], ptr @g, i64 0, i64 %55
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %57 = call i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 4 dereferenceable(4) %5)
  store i64 %57, ptr %7, align 4
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %56, ptr noundef nonnull align 4 dereferenceable(8) %7)
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  br label %58

58:                                               ; preds = %48
  %59 = load i32, ptr %2, align 4, !tbaa !5
  %60 = add nsw i32 %59, 1
  store i32 %60, ptr %2, align 4, !tbaa !5
  br label %43, !llvm.loop !11

61:                                               ; preds = %47
  call void @llvm.memset.p0.i64(ptr align 16 @sp, i8 0, i64 800400, i1 false)
  %62 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.5, ptr noundef @s)
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  store i32 0, ptr %9, align 4, !tbaa !5
  br label %63

63:                                               ; preds = %73, %61
  %64 = load i32, ptr %9, align 4, !tbaa !5
  %65 = load i32, ptr @s, align 4, !tbaa !5
  %66 = icmp slt i32 %64, %65
  br i1 %66, label %68, label %67

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

68:                                               ; preds = %63
  %69 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.5, ptr noundef %8)
  %70 = load i32, ptr %8, align 4, !tbaa !5
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds [200100 x i32], ptr @sp, i64 0, i64 %71
  store i32 1, ptr %72, align 4, !tbaa !5
  br label %73

73:                                               ; preds = %68
  %74 = load i32, ptr %9, align 4, !tbaa !5
  %75 = add nsw i32 %74, 1
  store i32 %75, ptr %9, align 4, !tbaa !5
  br label %63, !llvm.loop !12

76:                                               ; preds = %67
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  store i32 1, ptr %10, align 4, !tbaa !5
  br label %77

77:                                               ; preds = %91, %76
  %78 = load i32, ptr %10, align 4, !tbaa !5
  %79 = load i32, ptr @n, align 4, !tbaa !5
  %80 = icmp sle i32 %78, %79
  br i1 %80, label %82, label %81

81:                                               ; preds = %77
  store i32 11, ptr %11, align 4
  br label %94

82:                                               ; preds = %77
  %83 = load i32, ptr %10, align 4, !tbaa !5
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds [200100 x i32], ptr @sp, i64 0, i64 %84
  %86 = load i32, ptr %85, align 4, !tbaa !5
  %87 = icmp ne i32 %86, 0
  br i1 %87, label %88, label %90

88:                                               ; preds = %82
  %89 = load i32, ptr %10, align 4, !tbaa !5
  call void @_Z12shortestPathi(i32 noundef %89)
  store i32 11, ptr %11, align 4
  br label %94

90:                                               ; preds = %82
  br label %91

91:                                               ; preds = %90
  %92 = load i32, ptr %10, align 4, !tbaa !5
  %93 = add nsw i32 %92, 1
  store i32 %93, ptr %10, align 4, !tbaa !5
  br label %77, !llvm.loop !13

94:                                               ; preds = %88, %81
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  br label %95

95:                                               ; preds = %94
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  store i32 0, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  store i32 -1, ptr %13, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  store i32 1, ptr %14, align 4, !tbaa !5
  br label %96

96:                                               ; preds = %124, %95
  %97 = load i32, ptr %14, align 4, !tbaa !5
  %98 = load i32, ptr @n, align 4, !tbaa !5
  %99 = icmp sle i32 %97, %98
  br i1 %99, label %101, label %100

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

101:                                              ; preds = %96
  %102 = load i32, ptr %14, align 4, !tbaa !5
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds [200100 x i32], ptr @sp, i64 0, i64 %103
  %105 = load i32, ptr %104, align 4, !tbaa !5
  %106 = icmp ne i32 %105, 0
  br i1 %106, label %107, label %123

107:                                              ; preds = %101
  %108 = load i32, ptr %14, align 4, !tbaa !5
  %109 = sext i32 %108 to i64
  %110 = getelementptr inbounds [200100 x i64], ptr @d, i64 0, i64 %109
  %111 = load i64, ptr %110, align 8, !tbaa !14
  %112 = load i32, ptr %12, align 4, !tbaa !5
  %113 = sext i32 %112 to i64
  %114 = icmp sgt i64 %111, %113
  br i1 %114, label %115, label %122

115:                                              ; preds = %107
  %116 = load i32, ptr %14, align 4, !tbaa !5
  %117 = sext i32 %116 to i64
  %118 = getelementptr inbounds [200100 x i64], ptr @d, i64 0, i64 %117
  %119 = load i64, ptr %118, align 8, !tbaa !14
  %120 = trunc i64 %119 to i32
  store i32 %120, ptr %12, align 4, !tbaa !5
  %121 = load i32, ptr %14, align 4, !tbaa !5
  store i32 %121, ptr %13, align 4, !tbaa !5
  br label %122

122:                                              ; preds = %115, %107
  br label %123

123:                                              ; preds = %122, %101
  br label %124

124:                                              ; preds = %123
  %125 = load i32, ptr %14, align 4, !tbaa !5
  %126 = add nsw i32 %125, 1
  store i32 %126, ptr %14, align 4, !tbaa !5
  br label %96, !llvm.loop !16

127:                                              ; preds = %100
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  store i32 154, ptr %15, align 4, !tbaa !5
  call void @_Z2trIPKcJiiEEvT_DpRKT0_(ptr noundef @__FUNCTION__._Z5solvev, ptr noundef nonnull align 4 dereferenceable(4) %15, ptr noundef nonnull align 4 dereferenceable(4) %13)
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  %128 = load i32, ptr %13, align 4, !tbaa !5
  call void @_Z13shortestPath2i(i32 noundef %128)
  call void @llvm.memset.p0.i64(ptr align 16 @vis, i8 0, i64 800400, i1 false)
  call void @llvm.memset.p0.i64(ptr align 16 @nxt, i8 0, i64 800400, i1 false)
  %129 = load i32, ptr %13, align 4, !tbaa !5
  %130 = sext i32 %129 to i64
  %131 = getelementptr inbounds [200100 x i32], ptr @vis, i64 0, i64 %130
  store i32 1, ptr %131, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  store i32 1, ptr %16, align 4, !tbaa !5
  br label %132

132:                                              ; preds = %173, %127
  %133 = load i32, ptr %16, align 4, !tbaa !5
  %134 = load i32, ptr @n, align 4, !tbaa !5
  %135 = icmp sle i32 %133, %134
  br i1 %135, label %137, label %136

136:                                              ; preds = %132
  store i32 17, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  br label %176

137:                                              ; preds = %132
  %138 = load i32, ptr %16, align 4, !tbaa !5
  %139 = sext i32 %138 to i64
  %140 = getelementptr inbounds [200100 x i32], ptr @vis, i64 0, i64 %139
  %141 = load i32, ptr %140, align 4, !tbaa !5
  %142 = icmp ne i32 %141, 0
  br i1 %142, label %149, label %143

143:                                              ; preds = %137
  %144 = load i32, ptr %16, align 4, !tbaa !5
  %145 = sext i32 %144 to i64
  %146 = getelementptr inbounds [200100 x i32], ptr @sp, i64 0, i64 %145
  %147 = load i32, ptr %146, align 4, !tbaa !5
  %148 = icmp ne i32 %147, 0
  br i1 %148, label %150, label %149

149:                                              ; preds = %143, %137
  br label %173

150:                                              ; preds = %143
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  %151 = load i32, ptr %16, align 4, !tbaa !5
  store i32 %151, ptr %17, align 4, !tbaa !5
  br label %152

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

159:                                              ; preds = %152
  %160 = load i32, ptr %17, align 4, !tbaa !5
  %161 = sext i32 %160 to i64
  %162 = getelementptr inbounds [200100 x i32], ptr @vis, i64 0, i64 %161
  store i32 1, ptr %162, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  %163 = load i32, ptr %17, align 4, !tbaa !5
  %164 = sext i32 %163 to i64
  %165 = getelementptr inbounds [200100 x i32], ptr @pre, i64 0, i64 %164
  %166 = load i32, ptr %165, align 4, !tbaa !5
  store i32 %166, ptr %18, align 4, !tbaa !5
  %167 = load i32, ptr %17, align 4, !tbaa !5
  %168 = load i32, ptr %18, align 4, !tbaa !5
  %169 = sext i32 %168 to i64
  %170 = getelementptr inbounds [200100 x i32], ptr @nxt, i64 0, i64 %169
  store i32 %167, ptr %170, align 4, !tbaa !5
  %171 = load i32, ptr %18, align 4, !tbaa !5
  store i32 %171, ptr %17, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  br label %152, !llvm.loop !17

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

173:                                              ; preds = %172, %149
  %174 = load i32, ptr %16, align 4, !tbaa !5
  %175 = add nsw i32 %174, 1
  store i32 %175, ptr %16, align 4, !tbaa !5
  br label %132, !llvm.loop !18

176:                                              ; preds = %136
  call void @llvm.lifetime.start.p0(i64 24, ptr %19) #6
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #6
  br label %177

177:                                              ; preds = %181, %176
  %178 = load i32, ptr %13, align 4, !tbaa !5
  %179 = icmp sgt i32 %178, 0
  br i1 %179, label %180, label %190

180:                                              ; preds = %177
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %19, ptr noundef nonnull align 4 dereferenceable(4) %13)
          to label %181 unwind label %186

181:                                              ; preds = %180
  %182 = load i32, ptr %13, align 4, !tbaa !5
  %183 = sext i32 %182 to i64
  %184 = getelementptr inbounds [200100 x i32], ptr @nxt, i64 0, i64 %183
  %185 = load i32, ptr %184, align 4, !tbaa !5
  store i32 %185, ptr %13, align 4, !tbaa !5
  br label %177, !llvm.loop !19

186:                                              ; preds = %180
  %187 = landingpad { ptr, i32 }
          cleanup
  %188 = extractvalue { ptr, i32 } %187, 0
  store ptr %188, ptr %20, align 8
  %189 = extractvalue { ptr, i32 } %187, 1
  store i32 %189, ptr %21, align 4
  br label %241

190:                                              ; preds = %177
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #6
  store i32 0, ptr %22, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  %191 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %19) #6
  %192 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.23", ptr %23, i32 0, i32 0
  store ptr %191, ptr %192, align 8
  br label %193

193:                                              ; preds = %206, %190
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #6
  %194 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %19) #6
  %195 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.23", ptr %24, i32 0, i32 0
  store ptr %194, ptr %195, align 8
  %196 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef nonnull align 8 dereferenceable(8) %24) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  br i1 %196, label %198, label %197

197:                                              ; preds = %193
  store i32 24, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  br label %209

198:                                              ; preds = %193
  %199 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %23) #6
  %200 = load i32, ptr %199, align 4, !tbaa !5
  %201 = sext i32 %200 to i64
  %202 = getelementptr inbounds [200100 x i32], ptr @sp, i64 0, i64 %201
  %203 = load i32, ptr %202, align 4, !tbaa !5
  %204 = load i32, ptr %22, align 4, !tbaa !5
  %205 = add nsw i32 %204, %203
  store i32 %205, ptr %22, align 4, !tbaa !5
  br label %206

206:                                              ; preds = %198
  %207 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %23, i32 noundef 0) #6
  %208 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.23", ptr %25, i32 0, i32 0
  store ptr %207, ptr %208, align 8
  br label %193, !llvm.loop !20

209:                                              ; preds = %197
  %210 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %19) #6
  %211 = trunc i64 %210 to i32
  %212 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %211)
          to label %213 unwind label %221

213:                                              ; preds = %209
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #6
  %214 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %19) #6
  %215 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.23", ptr %26, i32 0, i32 0
  store ptr %214, ptr %215, align 8
  br label %216

216:                                              ; preds = %230, %213
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #6
  %217 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %19) #6
  %218 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.23", ptr %27, i32 0, i32 0
  store ptr %217, ptr %218, align 8
  %219 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %26, ptr noundef nonnull align 8 dereferenceable(8) %27) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #6
  br i1 %219, label %225, label %220

220:                                              ; preds = %216
  store i32 27, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #6
  br label %237

221:                                              ; preds = %237, %209
  %222 = landingpad { ptr, i32 }
          cleanup
  %223 = extractvalue { ptr, i32 } %222, 0
  store ptr %223, ptr %20, align 8
  %224 = extractvalue { ptr, i32 } %222, 1
  store i32 %224, ptr %21, align 4
  br label %240

225:                                              ; preds = %216
  %226 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %26) #6
  %227 = load i32, ptr %226, align 4, !tbaa !5
  %228 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %227)
          to label %229 unwind label %233

229:                                              ; preds = %225
  br label %230

230:                                              ; preds = %229
  %231 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %26, i32 noundef 0) #6
  %232 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.23", ptr %28, i32 0, i32 0
  store ptr %231, ptr %232, align 8
  br label %216, !llvm.loop !21

233:                                              ; preds = %225
  %234 = landingpad { ptr, i32 }
          cleanup
  %235 = extractvalue { ptr, i32 } %234, 0
  store ptr %235, ptr %20, align 8
  %236 = extractvalue { ptr, i32 } %234, 1
  store i32 %236, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #6
  br label %240

237:                                              ; preds = %220
  %238 = invoke i32 @puts(ptr noundef @.str.8)
          to label %239 unwind label %221

239:                                              ; preds = %237
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  ret void

240:                                              ; preds = %233, %221
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  br label %241

241:                                              ; preds = %240, %186
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  br label %242

242:                                              ; preds = %241
  %243 = load ptr, ptr %20, align 8
  %244 = load i32, ptr %21, align 4
  %245 = insertvalue { ptr, i32 } poison, ptr %243, 0
  %246 = insertvalue { ptr, i32 } %245, i32 %244, 1
  resume { ptr, i32 } %246
}

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

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

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

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

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

; 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: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) #4 align 2

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

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

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

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

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

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

declare i32 @puts(ptr noundef) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4 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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 = distinct !{!12, !10}
!13 = distinct !{!13, !10}
!14 = !{!15, !15, i64 0}
!15 = !{!"long long", !7, i64 0}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10}
!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::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::pair.5" = type { i32, i32 }
%"class.std::vector.18" = type { %"struct.std::_Vector_base.19" }
%"struct.std::_Vector_base.19" = 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 }
%"class.__gnu_cxx::__normal_iterator.23" = type { 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
@g = external dso_local global [200100 x %"class.std::vector"], align 16
@vis = external dso_local local_unnamed_addr global [200100 x i32], align 16
@pre = external dso_local local_unnamed_addr global [200100 x i32], align 16
@nxt = external dso_local local_unnamed_addr global [200100 x i32], align 16
@sp = external dso_local local_unnamed_addr global [200100 x i32], align 16
@d = external dso_local local_unnamed_addr global [200100 x i64], align 16
@.str.3 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [3 x i8], align 1
@__FUNCTION__._Z5solvev = external hidden unnamed_addr constant [6 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [1 x i8], align 1

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

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

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5solvev() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca %"struct.std::pair.5", align 8
  %5 = alloca %"struct.std::pair.5", align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca %"class.std::vector.18", align 8
  %10 = alloca %"class.__gnu_cxx::__normal_iterator.23", align 8
  %11 = alloca %"class.__gnu_cxx::__normal_iterator.23", align 8
  %12 = alloca %"class.__gnu_cxx::__normal_iterator.23", align 8
  %13 = alloca %"class.__gnu_cxx::__normal_iterator.23", align 8
  %14 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.3, ptr noundef nonnull @n, ptr noundef nonnull @m)
  %15 = load i32, ptr @n, align 4, !tbaa !5
  %.not53 = icmp slt i32 %15, 1
  br i1 %.not53, label %.preheader51, label %.lr.ph

.preheader51:                                     ; preds = %.lr.ph, %0
  %16 = load i32, ptr @m, align 4, !tbaa !5
  %17 = icmp sgt i32 %16, 0
  br i1 %17, label %.lr.ph56, label %._crit_edge

.lr.ph:                                           ; preds = %0, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 1, %0 ]
  %18 = getelementptr inbounds [200100 x %"class.std::vector"], ptr @g, i64 0, i64 %indvars.iv
  tail call void @_ZNSt6vectorISt4pairIiiESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #6
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %19 = load i32, ptr @n, align 4, !tbaa !5
  %20 = sext i32 %19 to i64
  %.not.not = icmp slt i64 %indvars.iv, %20
  br i1 %.not.not, label %.lr.ph, label %.preheader51, !llvm.loop !9

._crit_edge:                                      ; preds = %.lr.ph56, %.preheader51
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(800400) @sp, i8 0, i64 800400, i1 false)
  %21 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.5, ptr noundef nonnull @s)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #6
  %22 = load i32, ptr @s, align 4, !tbaa !5
  %23 = icmp sgt i32 %22, 0
  br i1 %23, label %.lr.ph59, label %.preheader49

.lr.ph56:                                         ; preds = %.preheader51, %.lr.ph56
  %.03255 = phi i32 [ %33, %.lr.ph56 ], [ 0, %.preheader51 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #6
  %24 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.4, ptr noundef nonnull %1, ptr noundef nonnull %2, ptr noundef nonnull %3)
  %25 = load i32, ptr %1, align 4, !tbaa !5
  %26 = sext i32 %25 to i64
  %27 = getelementptr inbounds [200100 x %"class.std::vector"], ptr @g, i64 0, i64 %26
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  %28 = call i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %2, ptr noundef nonnull align 4 dereferenceable(4) %3)
  store i64 %28, ptr %4, align 8
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %27, ptr noundef nonnull align 4 dereferenceable(8) %4)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  %29 = load i32, ptr %2, align 4, !tbaa !5
  %30 = sext i32 %29 to i64
  %31 = getelementptr inbounds [200100 x %"class.std::vector"], ptr @g, i64 0, i64 %30
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #6
  %32 = call i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %1, ptr noundef nonnull align 4 dereferenceable(4) %3)
  store i64 %32, ptr %5, align 8
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %31, ptr noundef nonnull align 4 dereferenceable(8) %5)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #6
  %33 = add nuw nsw i32 %.03255, 1
  %34 = load i32, ptr @m, align 4, !tbaa !5
  %35 = icmp slt i32 %33, %34
  br i1 %35, label %.lr.ph56, label %._crit_edge, !llvm.loop !11

.preheader49:                                     ; preds = %.lr.ph59, %._crit_edge
  %36 = load i32, ptr @n, align 4, !tbaa !5
  %.not4160 = icmp slt i32 %36, 1
  br i1 %.not4160, label %.loopexit50.thread, label %.lr.ph62.preheader

.loopexit50.thread:                               ; preds = %.preheader49
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #6
  br label %._crit_edge71

.lr.ph62.preheader:                               ; preds = %.preheader49
  %37 = add nuw i32 %36, 1
  %wide.trip.count = zext i32 %37 to i64
  br label %.lr.ph62

.lr.ph59:                                         ; preds = %._crit_edge, %.lr.ph59
  %.03457 = phi i32 [ %42, %.lr.ph59 ], [ 0, %._crit_edge ]
  %38 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.5, ptr noundef nonnull %6)
  %39 = load i32, ptr %6, align 4, !tbaa !5
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds [200100 x i32], ptr @sp, i64 0, i64 %40
  store i32 1, ptr %41, align 4, !tbaa !5
  %42 = add nuw nsw i32 %.03457, 1
  %43 = load i32, ptr @s, align 4, !tbaa !5
  %44 = icmp slt i32 %42, %43
  br i1 %44, label %.lr.ph59, label %.preheader49, !llvm.loop !12

.lr.ph62:                                         ; preds = %.lr.ph62.preheader, %49
  %indvars.iv93 = phi i64 [ 1, %.lr.ph62.preheader ], [ %indvars.iv.next94, %49 ]
  %45 = getelementptr inbounds [200100 x i32], ptr @sp, i64 0, i64 %indvars.iv93
  %46 = load i32, ptr %45, align 4, !tbaa !5
  %.not42 = icmp eq i32 %46, 0
  br i1 %.not42, label %49, label %47

47:                                               ; preds = %.lr.ph62
  %48 = trunc nuw nsw i64 %indvars.iv93 to i32
  call void @_Z12shortestPathi(i32 noundef %48)
  %.pre = load i32, ptr @n, align 4, !tbaa !5
  br label %.loopexit50

49:                                               ; preds = %.lr.ph62
  %indvars.iv.next94 = add nuw nsw i64 %indvars.iv93, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next94, %wide.trip.count
  br i1 %exitcond.not, label %.loopexit50, label %.lr.ph62, !llvm.loop !13

.loopexit50:                                      ; preds = %49, %47
  %50 = phi i32 [ %.pre, %47 ], [ %36, %49 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #6
  %.not4365 = icmp slt i32 %50, 1
  br i1 %.not4365, label %._crit_edge71, label %.lr.ph70.preheader

.lr.ph70.preheader:                               ; preds = %.loopexit50
  %51 = zext nneg i32 %50 to i64
  %xtraiter = and i64 %51, 1
  %52 = icmp eq i32 %50, 1
  br i1 %52, label %._crit_edge71.loopexit.unr-lcssa, label %.lr.ph70.preheader.new

.lr.ph70.preheader.new:                           ; preds = %.lr.ph70.preheader
  %unroll_iter = and i64 %51, 2147483646
  br label %.lr.ph70

._crit_edge71.loopexit.unr-lcssa.loopexit:        ; preds = %85
  %53 = sext i32 %.1.1 to i64
  br label %._crit_edge71.loopexit.unr-lcssa

._crit_edge71.loopexit.unr-lcssa:                 ; preds = %._crit_edge71.loopexit.unr-lcssa.loopexit, %.lr.ph70.preheader
  %.03863.lcssa.ph = phi i32 [ poison, %.lr.ph70.preheader ], [ %.03863.1, %._crit_edge71.loopexit.unr-lcssa.loopexit ]
  %indvars.iv96.unr = phi i64 [ 1, %.lr.ph70.preheader ], [ %indvars.iv.next97.1, %._crit_edge71.loopexit.unr-lcssa.loopexit ]
  %.03967.unr = phi i64 [ 0, %.lr.ph70.preheader ], [ %53, %._crit_edge71.loopexit.unr-lcssa.loopexit ]
  %.0386466.unr = phi i32 [ -1, %.lr.ph70.preheader ], [ %.03863.1, %._crit_edge71.loopexit.unr-lcssa.loopexit ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge71, label %.lr.ph70.epil

.lr.ph70.epil:                                    ; preds = %._crit_edge71.loopexit.unr-lcssa
  %54 = getelementptr inbounds [200100 x i32], ptr @sp, i64 0, i64 %indvars.iv96.unr
  %55 = load i32, ptr %54, align 4, !tbaa !5
  %.not48.epil = icmp eq i32 %55, 0
  br i1 %.not48.epil, label %._crit_edge71, label %56

56:                                               ; preds = %.lr.ph70.epil
  %57 = getelementptr inbounds [200100 x i64], ptr @d, i64 0, i64 %indvars.iv96.unr
  %58 = load i64, ptr %57, align 8, !tbaa !14
  %59 = icmp sgt i64 %58, %.03967.unr
  %60 = trunc nuw nsw i64 %indvars.iv96.unr to i32
  %spec.select.epil = select i1 %59, i32 %60, i32 %.0386466.unr
  br label %._crit_edge71

._crit_edge71:                                    ; preds = %._crit_edge71.loopexit.unr-lcssa, %56, %.lr.ph70.epil, %.loopexit50.thread, %.loopexit50
  %.03864.lcssa = phi i32 [ -1, %.loopexit50 ], [ -1, %.loopexit50.thread ], [ %.03863.lcssa.ph, %._crit_edge71.loopexit.unr-lcssa ], [ %.0386466.unr, %.lr.ph70.epil ], [ %spec.select.epil, %56 ]
  store i32 %.03864.lcssa, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #6
  store i32 154, ptr %8, align 4, !tbaa !5
  call void @_Z2trIPKcJiiEEvT_DpRKT0_(ptr noundef nonnull @__FUNCTION__._Z5solvev, ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull align 4 dereferenceable(4) %7)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #6
  %61 = load i32, ptr %7, align 4, !tbaa !5
  call void @_Z13shortestPath2i(i32 noundef %61)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(800400) @vis, i8 0, i64 800400, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(800400) @nxt, i8 0, i64 800400, i1 false)
  %62 = load i32, ptr %7, align 4, !tbaa !5
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds [200100 x i32], ptr @vis, i64 0, i64 %63
  store i32 1, ptr %64, align 4, !tbaa !5
  %65 = load i32, ptr @n, align 4, !tbaa !5
  %.not4475 = icmp slt i32 %65, 1
  br i1 %.not4475, label %._crit_edge80, label %.lr.ph79.preheader

.lr.ph79.preheader:                               ; preds = %._crit_edge71
  %66 = add nuw i32 %65, 1
  %wide.trip.count104 = zext i32 %66 to i64
  br label %.lr.ph79

.lr.ph70:                                         ; preds = %85, %.lr.ph70.preheader.new
  %indvars.iv96 = phi i64 [ 1, %.lr.ph70.preheader.new ], [ %indvars.iv.next97.1, %85 ]
  %.03967 = phi i32 [ 0, %.lr.ph70.preheader.new ], [ %.1.1, %85 ]
  %.0386466 = phi i32 [ -1, %.lr.ph70.preheader.new ], [ %.03863.1, %85 ]
  %niter = phi i64 [ 0, %.lr.ph70.preheader.new ], [ %niter.next.1, %85 ]
  %67 = getelementptr inbounds [200100 x i32], ptr @sp, i64 0, i64 %indvars.iv96
  %68 = load i32, ptr %67, align 4, !tbaa !5
  %.not48 = icmp eq i32 %68, 0
  br i1 %.not48, label %.lr.ph70.1, label %69

69:                                               ; preds = %.lr.ph70
  %70 = getelementptr inbounds [200100 x i64], ptr @d, i64 0, i64 %indvars.iv96
  %71 = load i64, ptr %70, align 8, !tbaa !14
  %72 = sext i32 %.03967 to i64
  %73 = icmp sgt i64 %71, %72
  %74 = trunc i64 %71 to i32
  %75 = trunc nuw nsw i64 %indvars.iv96 to i32
  %spec.select = select i1 %73, i32 %75, i32 %.0386466
  %spec.select90 = select i1 %73, i32 %74, i32 %.03967
  br label %.lr.ph70.1

.lr.ph70.1:                                       ; preds = %69, %.lr.ph70
  %.03863 = phi i32 [ %.0386466, %.lr.ph70 ], [ %spec.select, %69 ]
  %.1 = phi i32 [ %.03967, %.lr.ph70 ], [ %spec.select90, %69 ]
  %indvars.iv.next97 = add nuw nsw i64 %indvars.iv96, 1
  %76 = getelementptr inbounds [200100 x i32], ptr @sp, i64 0, i64 %indvars.iv.next97
  %77 = load i32, ptr %76, align 4, !tbaa !5
  %.not48.1 = icmp eq i32 %77, 0
  br i1 %.not48.1, label %85, label %78

78:                                               ; preds = %.lr.ph70.1
  %79 = getelementptr inbounds [200100 x i64], ptr @d, i64 0, i64 %indvars.iv.next97
  %80 = load i64, ptr %79, align 8, !tbaa !14
  %81 = sext i32 %.1 to i64
  %82 = icmp sgt i64 %80, %81
  %83 = trunc i64 %80 to i32
  %84 = trunc nuw nsw i64 %indvars.iv.next97 to i32
  %spec.select.1 = select i1 %82, i32 %84, i32 %.03863
  %spec.select90.1 = select i1 %82, i32 %83, i32 %.1
  br label %85

85:                                               ; preds = %78, %.lr.ph70.1
  %.03863.1 = phi i32 [ %.03863, %.lr.ph70.1 ], [ %spec.select.1, %78 ]
  %.1.1 = phi i32 [ %.1, %.lr.ph70.1 ], [ %spec.select90.1, %78 ]
  %indvars.iv.next97.1 = add nuw nsw i64 %indvars.iv96, 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_edge71.loopexit.unr-lcssa.loopexit, label %.lr.ph70, !llvm.loop !16

._crit_edge80:                                    ; preds = %.loopexit, %._crit_edge71
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #6
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  %.pr = load i32, ptr %7, align 4, !tbaa !5
  %86 = icmp sgt i32 %.pr, 0
  br i1 %86, label %.lr.ph82, label %._crit_edge83

.lr.ph79:                                         ; preds = %.lr.ph79.preheader, %.loopexit
  %indvars.iv101 = phi i64 [ 1, %.lr.ph79.preheader ], [ %indvars.iv.next102, %.loopexit ]
  %87 = getelementptr inbounds [200100 x i32], ptr @vis, i64 0, i64 %indvars.iv101
  %88 = load i32, ptr %87, align 4, !tbaa !5
  %.not45 = icmp eq i32 %88, 0
  br i1 %.not45, label %89, label %.loopexit

89:                                               ; preds = %.lr.ph79
  %90 = getelementptr inbounds [200100 x i32], ptr @sp, i64 0, i64 %indvars.iv101
  %91 = load i32, ptr %90, align 4, !tbaa !5
  %.not46 = icmp eq i32 %91, 0
  br i1 %.not46, label %.loopexit, label %.lr.ph74.preheader

.lr.ph74.preheader:                               ; preds = %89
  %92 = trunc nuw nsw i64 %indvars.iv101 to i32
  br label %.lr.ph74

.lr.ph74:                                         ; preds = %.lr.ph74.preheader, %.lr.ph74
  %93 = phi ptr [ %99, %.lr.ph74 ], [ %87, %.lr.ph74.preheader ]
  %94 = phi i64 [ %97, %.lr.ph74 ], [ %indvars.iv101, %.lr.ph74.preheader ]
  %.03673 = phi i32 [ %96, %.lr.ph74 ], [ %92, %.lr.ph74.preheader ]
  store i32 1, ptr %93, align 4, !tbaa !5
  %95 = getelementptr inbounds [200100 x i32], ptr @pre, i64 0, i64 %94
  %96 = load i32, ptr %95, align 4, !tbaa !5
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds [200100 x i32], ptr @nxt, i64 0, i64 %97
  store i32 %.03673, ptr %98, align 4, !tbaa !5
  %99 = getelementptr inbounds [200100 x i32], ptr @vis, i64 0, i64 %97
  %100 = load i32, ptr %99, align 4, !tbaa !5
  %.not47 = icmp eq i32 %100, 0
  br i1 %.not47, label %.lr.ph74, label %.loopexit, !llvm.loop !17

.loopexit:                                        ; preds = %.lr.ph74, %.lr.ph79, %89
  %indvars.iv.next102 = add nuw nsw i64 %indvars.iv101, 1
  %exitcond105.not = icmp eq i64 %indvars.iv.next102, %wide.trip.count104
  br i1 %exitcond105.not, label %._crit_edge80, label %.lr.ph79, !llvm.loop !18

.lr.ph82:                                         ; preds = %._crit_edge80, %101
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 4 dereferenceable(4) %7)
          to label %101 unwind label %107

101:                                              ; preds = %.lr.ph82
  %102 = load i32, ptr %7, align 4, !tbaa !5
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds [200100 x i32], ptr @nxt, i64 0, i64 %103
  %105 = load i32, ptr %104, align 4, !tbaa !5
  store i32 %105, ptr %7, align 4, !tbaa !5
  %106 = icmp sgt i32 %105, 0
  br i1 %106, label %.lr.ph82, label %._crit_edge83, !llvm.loop !19

107:                                              ; preds = %.lr.ph82
  %108 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #6
  resume { ptr, i32 } %108

._crit_edge83:                                    ; preds = %101, %._crit_edge80
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #6
  %109 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  store ptr %109, ptr %10, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #6
  %110 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  store ptr %110, ptr %11, align 8
  %111 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
  br i1 %111, label %.lr.ph85, label %._crit_edge86

._crit_edge86:                                    ; preds = %.lr.ph85, %._crit_edge83
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  %112 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  %113 = trunc i64 %112 to i32
  %114 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, i32 noundef %113)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #6
  %115 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  store ptr %115, ptr %12, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #6
  %116 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  store ptr %116, ptr %13, align 8
  %117 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #6
  br i1 %117, label %.lr.ph88, label %._crit_edge89

.lr.ph85:                                         ; preds = %._crit_edge83, %.lr.ph85
  %118 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  %119 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %10, i32 noundef 0) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #6
  %120 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  store ptr %120, ptr %11, align 8
  %121 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
  br i1 %121, label %.lr.ph85, label %._crit_edge86, !llvm.loop !20

._crit_edge89:                                    ; preds = %.lr.ph88, %._crit_edge86
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #6
  %122 = call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.8)
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #6
  ret void

.lr.ph88:                                         ; preds = %._crit_edge86, %.lr.ph88
  %123 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #6
  %124 = load i32, ptr %123, align 4, !tbaa !5
  %125 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7, i32 noundef %124)
  %126 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %12, i32 noundef 0) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #6
  %127 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  store ptr %127, ptr %13, align 8
  %128 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #6
  br i1 %128, label %.lr.ph88, label %._crit_edge89, !llvm.loop !21
}

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: nofree nounwind
declare noundef i32 @puts(ptr nocapture noundef readonly) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4 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 nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { 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 #4 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 = distinct !{!12, !10}
!13 = distinct !{!13, !10}
!14 = !{!15, !15, i64 0}
!15 = !{!"long long", !7, i64 0}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !10}
!19 = distinct !{!19, !10}
!20 = distinct !{!20, !10}
!21 = distinct !{!21, !10}


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