; LLVM IR from tangjz/acm-icpc :: 51nod (1442)

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

%struct.Edge = type { i32, i32, i32 }
%"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 }
%"class.__gnu_cxx::__normal_iterator" = 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
@T = external dso_local global i32, align 4
@lnk = external dso_local global [210 x i32], align 16
@cur = external dso_local global [210 x i32], align 16
@e = external dso_local global [1420 x %struct.Edge], align 16
@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@a = external dso_local global [210 x i32], align 16
@b = external dso_local global [210 x i32], align 16
@g = external dso_local global [210 x %"class.std::vector"], align 16
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z7addEdgeiii(i32 noundef, i32 noundef, 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 nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #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 nounwind uwtable
declare dso_local noundef zeroext i1 @_Z3bfsv() #0

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z3dfsii(i32 noundef, i32 noundef) #4

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #5 {
  %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 %"class.__gnu_cxx::__normal_iterator", align 8
  %9 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %10 = alloca i32, align 4
  %11 = alloca i8, align 1
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %15 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @n, ptr noundef @m)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #8
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %16

16:                                               ; preds = %26, %0
  %17 = load i32, ptr %2, align 4, !tbaa !5
  %18 = load i32, ptr @n, align 4, !tbaa !5
  %19 = icmp slt i32 %17, %18
  br i1 %19, label %21, label %20

20:                                               ; preds = %16
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #8
  br label %29

21:                                               ; preds = %16
  %22 = load i32, ptr %2, align 4, !tbaa !5
  %23 = sext i32 %22 to i64
  %24 = getelementptr inbounds i32, ptr @a, i64 %23
  %25 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef %24)
  br label %26

26:                                               ; preds = %21
  %27 = load i32, ptr %2, align 4, !tbaa !5
  %28 = add nsw i32 %27, 1
  store i32 %28, ptr %2, align 4, !tbaa !5
  br label %16, !llvm.loop !9

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

30:                                               ; preds = %40, %29
  %31 = load i32, ptr %3, align 4, !tbaa !5
  %32 = load i32, ptr @n, align 4, !tbaa !5
  %33 = icmp slt i32 %31, %32
  br i1 %33, label %35, label %34

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

35:                                               ; preds = %30
  %36 = load i32, ptr %3, align 4, !tbaa !5
  %37 = sext i32 %36 to i64
  %38 = getelementptr inbounds i32, ptr @b, i64 %37
  %39 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef %38)
  br label %40

40:                                               ; preds = %35
  %41 = load i32, ptr %3, align 4, !tbaa !5
  %42 = add nsw i32 %41, 1
  store i32 %42, ptr %3, align 4, !tbaa !5
  br label %30, !llvm.loop !11

43:                                               ; preds = %34
  br label %44

44:                                               ; preds = %48, %43
  %45 = load i32, ptr @m, align 4, !tbaa !5
  %46 = add nsw i32 %45, -1
  store i32 %46, ptr @m, align 4, !tbaa !5
  %47 = icmp ne i32 %45, 0
  br i1 %47, label %48, label %59

48:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #8
  %49 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %4, ptr noundef %5)
  %50 = load i32, ptr %4, align 4, !tbaa !5
  %51 = add nsw i32 %50, -1
  store i32 %51, ptr %4, align 4, !tbaa !5
  %52 = sext i32 %51 to i64
  %53 = getelementptr inbounds [210 x %"class.std::vector"], ptr @g, i64 0, i64 %52
  %54 = load i32, ptr %5, align 4, !tbaa !5
  %55 = add nsw i32 %54, -1
  store i32 %55, ptr %5, align 4, !tbaa !5
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %53, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %56 = load i32, ptr %5, align 4, !tbaa !5
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds [210 x %"class.std::vector"], ptr @g, i64 0, i64 %57
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %58, ptr noundef nonnull align 4 dereferenceable(4) %4)
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #8
  br label %44, !llvm.loop !12

59:                                               ; preds = %44
  %60 = load i32, ptr @n, align 4, !tbaa !5
  %61 = mul nsw i32 %60, 2
  %62 = add nsw i32 %61, 2
  store i32 %62, ptr @N, align 4, !tbaa !5
  store i32 0, ptr @M, align 4, !tbaa !5
  %63 = load i32, ptr @N, align 4, !tbaa !5
  %64 = sub nsw i32 %63, 2
  store i32 %64, ptr @S, align 4, !tbaa !5
  %65 = load i32, ptr @N, align 4, !tbaa !5
  %66 = sub nsw i32 %65, 1
  store i32 %66, ptr @T, align 4, !tbaa !5
  %67 = load i32, ptr @N, align 4, !tbaa !5
  %68 = sext i32 %67 to i64
  %69 = mul i64 %68, 4
  call void @llvm.memset.p0.i64(ptr align 16 @lnk, i8 -1, i64 %69, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #8
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %70

70:                                               ; preds = %116, %59
  %71 = load i32, ptr %6, 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 10, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #8
  br label %119

75:                                               ; preds = %70
  %76 = load i32, ptr @S, align 4, !tbaa !5
  %77 = load i32, ptr %6, align 4, !tbaa !5
  %78 = load i32, ptr %6, align 4, !tbaa !5
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds [210 x i32], ptr @a, i64 0, i64 %79
  %81 = load i32, ptr %80, align 4, !tbaa !5
  call void @_Z7addEdgeiii(i32 noundef %76, i32 noundef %77, i32 noundef %81)
  %82 = load i32, ptr %6, align 4, !tbaa !5
  %83 = load i32, ptr @n, align 4, !tbaa !5
  %84 = load i32, ptr %6, align 4, !tbaa !5
  %85 = add nsw i32 %83, %84
  call void @_Z7addEdgeiii(i32 noundef %82, i32 noundef %85, i32 noundef 1061109567)
  %86 = load i32, ptr @n, align 4, !tbaa !5
  %87 = load i32, ptr %6, align 4, !tbaa !5
  %88 = add nsw i32 %86, %87
  %89 = load i32, ptr @T, align 4, !tbaa !5
  %90 = load i32, ptr %6, align 4, !tbaa !5
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds [210 x i32], ptr @b, i64 0, i64 %91
  %93 = load i32, ptr %92, align 4, !tbaa !5
  call void @_Z7addEdgeiii(i32 noundef %88, i32 noundef %89, i32 noundef %93)
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #8
  %94 = load i32, ptr %6, align 4, !tbaa !5
  %95 = sext i32 %94 to i64
  %96 = getelementptr inbounds [210 x %"class.std::vector"], ptr @g, i64 0, i64 %95
  %97 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %96) #8
  %98 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %8, i32 0, i32 0
  store ptr %97, ptr %98, align 8
  br label %99

99:                                               ; preds = %113, %75
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #8
  %100 = load i32, ptr %6, align 4, !tbaa !5
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds [210 x %"class.std::vector"], ptr @g, i64 0, i64 %101
  %103 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %102) #8
  %104 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %9, i32 0, i32 0
  store ptr %103, ptr %104, align 8
  %105 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  br i1 %105, label %107, label %106

106:                                              ; preds = %99
  store i32 13, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  br label %115

107:                                              ; preds = %99
  %108 = load i32, ptr %6, align 4, !tbaa !5
  %109 = load i32, ptr @n, align 4, !tbaa !5
  %110 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #8
  %111 = load i32, ptr %110, align 4, !tbaa !5
  %112 = add nsw i32 %109, %111
  call void @_Z7addEdgeiii(i32 noundef %108, i32 noundef %112, i32 noundef 1061109567)
  br label %113

113:                                              ; preds = %107
  %114 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #8
  br label %99, !llvm.loop !13

115:                                              ; preds = %106
  br label %116

116:                                              ; preds = %115
  %117 = load i32, ptr %6, align 4, !tbaa !5
  %118 = add nsw i32 %117, 1
  store i32 %118, ptr %6, align 4, !tbaa !5
  br label %70, !llvm.loop !14

119:                                              ; preds = %74
  br label %120

120:                                              ; preds = %132, %119
  %121 = call noundef zeroext i1 @_Z3bfsv()
  br i1 %121, label %122, label %133

122:                                              ; preds = %120
  %123 = load i32, ptr @N, align 4, !tbaa !5
  %124 = sext i32 %123 to i64
  %125 = mul i64 %124, 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 @cur, ptr align 16 @lnk, i64 %125, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  br label %126

126:                                              ; preds = %131, %122
  %127 = load i32, ptr @S, align 4, !tbaa !5
  %128 = call noundef i32 @_Z3dfsii(i32 noundef %127, i32 noundef 1061109567)
  store i32 %128, ptr %10, align 4, !tbaa !5
  %129 = icmp ne i32 %128, 0
  br i1 %129, label %131, label %130

130:                                              ; preds = %126
  store i32 18, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  br label %132

131:                                              ; preds = %126
  br label %126, !llvm.loop !15

132:                                              ; preds = %130
  br label %120, !llvm.loop !16

133:                                              ; preds = %120
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #8
  store i8 0, ptr %11, align 1, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #8
  %134 = load i32, ptr @S, align 4, !tbaa !5
  %135 = sext i32 %134 to i64
  %136 = getelementptr inbounds [210 x i32], ptr @lnk, i64 0, i64 %135
  %137 = load i32, ptr %136, align 4, !tbaa !5
  store i32 %137, ptr %12, align 4, !tbaa !5
  br label %138

138:                                              ; preds = %159, %133
  %139 = load i32, ptr %12, align 4, !tbaa !5
  %140 = icmp ne i32 %139, -1
  br i1 %140, label %142, label %141

141:                                              ; preds = %138
  store i32 20, ptr %7, align 4
  br label %165

142:                                              ; preds = %138
  %143 = load i32, ptr %12, align 4, !tbaa !5
  %144 = sext i32 %143 to i64
  %145 = getelementptr inbounds [1420 x %struct.Edge], ptr @e, i64 0, i64 %144
  %146 = getelementptr inbounds %struct.Edge, ptr %145, i32 0, i32 1
  %147 = load i32, ptr %146, align 4, !tbaa !19
  %148 = load i32, ptr @n, align 4, !tbaa !5
  %149 = icmp slt i32 %147, %148
  br i1 %149, label %150, label %158

150:                                              ; preds = %142
  %151 = load i32, ptr %12, align 4, !tbaa !5
  %152 = sext i32 %151 to i64
  %153 = getelementptr inbounds [1420 x %struct.Edge], ptr @e, i64 0, i64 %152
  %154 = getelementptr inbounds %struct.Edge, ptr %153, i32 0, i32 2
  %155 = load i32, ptr %154, align 4, !tbaa !21
  %156 = icmp ne i32 %155, 0
  br i1 %156, label %157, label %158

157:                                              ; preds = %150
  store i8 1, ptr %11, align 1, !tbaa !17
  store i32 20, ptr %7, align 4
  br label %165

158:                                              ; preds = %150, %142
  br label %159

159:                                              ; preds = %158
  %160 = load i32, ptr %12, align 4, !tbaa !5
  %161 = sext i32 %160 to i64
  %162 = getelementptr inbounds [1420 x %struct.Edge], ptr @e, i64 0, i64 %161
  %163 = getelementptr inbounds %struct.Edge, ptr %162, i32 0, i32 0
  %164 = load i32, ptr %163, align 4, !tbaa !22
  store i32 %164, ptr %12, align 4, !tbaa !5
  br label %138, !llvm.loop !23

165:                                              ; preds = %157, %141
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  br label %166

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

167:                                              ; preds = %214, %166
  %168 = load i32, ptr %13, align 4, !tbaa !5
  %169 = load i32, ptr @n, align 4, !tbaa !5
  %170 = icmp slt i32 %168, %169
  br i1 %170, label %171, label %175

171:                                              ; preds = %167
  %172 = load i8, ptr %11, align 1, !tbaa !17, !range !24, !noundef !25
  %173 = trunc i8 %172 to i1
  %174 = xor i1 %173, true
  br label %175

175:                                              ; preds = %171, %167
  %176 = phi i1 [ false, %167 ], [ %174, %171 ]
  br i1 %176, label %178, label %177

177:                                              ; preds = %175
  store i32 23, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  br label %217

178:                                              ; preds = %175
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #8
  %179 = load i32, ptr @n, align 4, !tbaa !5
  %180 = load i32, ptr %13, align 4, !tbaa !5
  %181 = add nsw i32 %179, %180
  %182 = sext i32 %181 to i64
  %183 = getelementptr inbounds [210 x i32], ptr @lnk, i64 0, i64 %182
  %184 = load i32, ptr %183, align 4, !tbaa !5
  store i32 %184, ptr %14, align 4, !tbaa !5
  br label %185

185:                                              ; preds = %206, %178
  %186 = load i32, ptr %14, align 4, !tbaa !5
  %187 = icmp ne i32 %186, -1
  br i1 %187, label %189, label %188

188:                                              ; preds = %185
  store i32 26, ptr %7, align 4
  br label %212

189:                                              ; preds = %185
  %190 = load i32, ptr %14, align 4, !tbaa !5
  %191 = sext i32 %190 to i64
  %192 = getelementptr inbounds [1420 x %struct.Edge], ptr @e, i64 0, i64 %191
  %193 = getelementptr inbounds %struct.Edge, ptr %192, i32 0, i32 1
  %194 = load i32, ptr %193, align 4, !tbaa !19
  %195 = load i32, ptr @T, align 4, !tbaa !5
  %196 = icmp eq i32 %194, %195
  br i1 %196, label %197, label %205

197:                                              ; preds = %189
  %198 = load i32, ptr %14, align 4, !tbaa !5
  %199 = sext i32 %198 to i64
  %200 = getelementptr inbounds [1420 x %struct.Edge], ptr @e, i64 0, i64 %199
  %201 = getelementptr inbounds %struct.Edge, ptr %200, i32 0, i32 2
  %202 = load i32, ptr %201, align 4, !tbaa !21
  %203 = icmp ne i32 %202, 0
  br i1 %203, label %204, label %205

204:                                              ; preds = %197
  store i8 1, ptr %11, align 1, !tbaa !17
  store i32 26, ptr %7, align 4
  br label %212

205:                                              ; preds = %197, %189
  br label %206

206:                                              ; preds = %205
  %207 = load i32, ptr %14, align 4, !tbaa !5
  %208 = sext i32 %207 to i64
  %209 = getelementptr inbounds [1420 x %struct.Edge], ptr @e, i64 0, i64 %208
  %210 = getelementptr inbounds %struct.Edge, ptr %209, i32 0, i32 0
  %211 = load i32, ptr %210, align 4, !tbaa !22
  store i32 %211, ptr %14, align 4, !tbaa !5
  br label %185, !llvm.loop !26

212:                                              ; preds = %204, %188
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  br label %213

213:                                              ; preds = %212
  br label %214

214:                                              ; preds = %213
  %215 = load i32, ptr %13, align 4, !tbaa !5
  %216 = add nsw i32 %215, 1
  store i32 %216, ptr %13, align 4, !tbaa !5
  br label %167, !llvm.loop !27

217:                                              ; preds = %177
  %218 = load i8, ptr %11, align 1, !tbaa !17, !range !24, !noundef !25
  %219 = trunc i8 %218 to i1
  %220 = xor i1 %219, true
  %221 = zext i1 %220 to i64
  %222 = select i1 %220, ptr @.str.2, ptr @.str.3
  %223 = call i32 @puts(ptr noundef %222)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #8
  %224 = load i32, ptr %1, align 4
  ret i32 %224
}

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

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

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

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

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

declare i32 @puts(ptr noundef) #6

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}
!17 = !{!18, !18, i64 0}
!18 = !{!"bool", !7, i64 0}
!19 = !{!20, !6, i64 4}
!20 = !{!"_ZTS4Edge", !6, i64 0, !6, i64 4, !6, i64 8}
!21 = !{!20, !6, i64 8}
!22 = !{!20, !6, i64 0}
!23 = distinct !{!23, !10}
!24 = !{i8 0, i8 2}
!25 = !{}
!26 = distinct !{!26, !10}
!27 = distinct !{!27, !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"

%struct.Edge = type { i32, i32, i32 }
%"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 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

@N = external dso_local local_unnamed_addr global i32, align 4
@M = external dso_local local_unnamed_addr global i32, align 4
@S = external dso_local local_unnamed_addr global i32, align 4
@T = external dso_local local_unnamed_addr global i32, align 4
@lnk = external dso_local local_unnamed_addr global [210 x i32], align 16
@cur = external dso_local local_unnamed_addr global [210 x i32], align 16
@e = external dso_local local_unnamed_addr global [1420 x %struct.Edge], align 16
@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@a = external dso_local global [210 x i32], align 16
@b = external dso_local global [210 x i32], align 16
@g = external dso_local global [210 x %"class.std::vector"], align 16
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z7addEdgeiii(i32 noundef, i32 noundef, 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 nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #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 nounwind uwtable
declare dso_local noundef zeroext i1 @_Z3bfsv() 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) #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z3dfsii(i32 noundef, i32 noundef) local_unnamed_addr #4

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #5 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %4 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %5 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @n, ptr noundef nonnull @m)
  %6 = load i32, ptr @n, align 4, !tbaa !5
  %7 = icmp sgt i32 %6, 0
  br i1 %7, label %.lr.ph, label %.preheader45

.preheader46:                                     ; preds = %.lr.ph
  %8 = icmp sgt i32 %11, 0
  br i1 %8, label %.lr.ph49, label %.preheader45

.lr.ph:                                           ; preds = %0, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %0 ]
  %9 = getelementptr inbounds i32, ptr @a, i64 %indvars.iv
  %10 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %9)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %11 = load i32, ptr @n, align 4, !tbaa !5
  %12 = sext i32 %11 to i64
  %13 = icmp slt i64 %indvars.iv.next, %12
  br i1 %13, label %.lr.ph, label %.preheader46, !llvm.loop !9

.preheader45:                                     ; preds = %.lr.ph49, %0, %.preheader46
  %14 = phi i32 [ %11, %.preheader46 ], [ %6, %0 ], [ %19, %.lr.ph49 ]
  %15 = load i32, ptr @m, align 4, !tbaa !5
  %16 = add nsw i32 %15, -1
  store i32 %16, ptr @m, align 4, !tbaa !5
  %.not50 = icmp eq i32 %15, 0
  br i1 %.not50, label %._crit_edge, label %.lr.ph51

.lr.ph49:                                         ; preds = %.preheader46, %.lr.ph49
  %indvars.iv85 = phi i64 [ %indvars.iv.next86, %.lr.ph49 ], [ 0, %.preheader46 ]
  %17 = getelementptr inbounds i32, ptr @b, i64 %indvars.iv85
  %18 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %17)
  %indvars.iv.next86 = add nuw nsw i64 %indvars.iv85, 1
  %19 = load i32, ptr @n, align 4, !tbaa !5
  %20 = sext i32 %19 to i64
  %21 = icmp slt i64 %indvars.iv.next86, %20
  br i1 %21, label %.lr.ph49, label %.preheader45, !llvm.loop !11

.lr.ph51:                                         ; preds = %.preheader45, %.lr.ph51
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #8
  %22 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %1, ptr noundef nonnull %2)
  %23 = load i32, ptr %1, align 4, !tbaa !5
  %24 = add nsw i32 %23, -1
  store i32 %24, ptr %1, align 4, !tbaa !5
  %25 = sext i32 %24 to i64
  %26 = getelementptr inbounds [210 x %"class.std::vector"], ptr @g, i64 0, i64 %25
  %27 = load i32, ptr %2, align 4, !tbaa !5
  %28 = add nsw i32 %27, -1
  store i32 %28, ptr %2, align 4, !tbaa !5
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %26, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %29 = load i32, ptr %2, align 4, !tbaa !5
  %30 = sext i32 %29 to i64
  %31 = getelementptr inbounds [210 x %"class.std::vector"], ptr @g, i64 0, i64 %30
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %31, ptr noundef nonnull align 4 dereferenceable(4) %1)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #8
  %32 = load i32, ptr @m, align 4, !tbaa !5
  %33 = add nsw i32 %32, -1
  store i32 %33, ptr @m, align 4, !tbaa !5
  %.not = icmp eq i32 %32, 0
  br i1 %.not, label %._crit_edge.loopexit, label %.lr.ph51, !llvm.loop !12

._crit_edge.loopexit:                             ; preds = %.lr.ph51
  %.pre = load i32, ptr @n, align 4, !tbaa !5
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.preheader45
  %34 = phi i32 [ %.pre, %._crit_edge.loopexit ], [ %14, %.preheader45 ]
  %35 = shl nsw i32 %34, 1
  %36 = add nsw i32 %35, 2
  store i32 %36, ptr @N, align 4, !tbaa !5
  store i32 0, ptr @M, align 4, !tbaa !5
  store i32 %35, ptr @S, align 4, !tbaa !5
  %37 = or disjoint i32 %35, 1
  store i32 %37, ptr @T, align 4, !tbaa !5
  %38 = sext i32 %36 to i64
  %39 = shl nsw i64 %38, 2
  call void @llvm.memset.p0.i64(ptr nonnull align 16 @lnk, i8 -1, i64 %39, i1 false)
  %40 = icmp sgt i32 %34, 0
  br i1 %40, label %.lr.ph57, label %.preheader

.preheader:                                       ; preds = %._crit_edge54, %._crit_edge
  %41 = call noundef zeroext i1 @_Z3bfsv()
  br i1 %41, label %.lr.ph58, label %._crit_edge59

.lr.ph57:                                         ; preds = %._crit_edge, %._crit_edge54
  %indvars.iv88 = phi i64 [ %indvars.iv.next89, %._crit_edge54 ], [ 0, %._crit_edge ]
  %42 = load i32, ptr @S, align 4, !tbaa !5
  %43 = getelementptr inbounds [210 x i32], ptr @a, i64 0, i64 %indvars.iv88
  %44 = load i32, ptr %43, align 4, !tbaa !5
  %45 = trunc nuw nsw i64 %indvars.iv88 to i32
  call void @_Z7addEdgeiii(i32 noundef %42, i32 noundef %45, i32 noundef %44)
  %46 = load i32, ptr @n, align 4, !tbaa !5
  %47 = add nsw i32 %46, %45
  call void @_Z7addEdgeiii(i32 noundef %45, i32 noundef %47, i32 noundef 1061109567)
  %48 = load i32, ptr @n, align 4, !tbaa !5
  %49 = add nsw i32 %48, %45
  %50 = load i32, ptr @T, align 4, !tbaa !5
  %51 = getelementptr inbounds [210 x i32], ptr @b, i64 0, i64 %indvars.iv88
  %52 = load i32, ptr %51, align 4, !tbaa !5
  call void @_Z7addEdgeiii(i32 noundef %49, i32 noundef %50, i32 noundef %52)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #8
  %53 = getelementptr inbounds [210 x %"class.std::vector"], ptr @g, i64 0, i64 %indvars.iv88
  %54 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %53) #8
  store ptr %54, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #8
  %55 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %53) #8
  store ptr %55, ptr %4, align 8
  %56 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #8
  br i1 %56, label %.lr.ph53, label %._crit_edge54

._crit_edge54:                                    ; preds = %.lr.ph53, %.lr.ph57
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #8
  %indvars.iv.next89 = add nuw nsw i64 %indvars.iv88, 1
  %57 = load i32, ptr @n, align 4, !tbaa !5
  %58 = sext i32 %57 to i64
  %59 = icmp slt i64 %indvars.iv.next89, %58
  br i1 %59, label %.lr.ph57, label %.preheader, !llvm.loop !13

.lr.ph53:                                         ; preds = %.lr.ph57, %.lr.ph53
  %60 = load i32, ptr @n, align 4, !tbaa !5
  %61 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #8
  %62 = load i32, ptr %61, align 4, !tbaa !5
  %63 = add nsw i32 %62, %60
  call void @_Z7addEdgeiii(i32 noundef %45, i32 noundef %63, i32 noundef 1061109567)
  %64 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #8
  %65 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %53) #8
  store ptr %65, ptr %4, align 8
  %66 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #8
  br i1 %66, label %.lr.ph53, label %._crit_edge54, !llvm.loop !14

.lr.ph58:                                         ; preds = %.preheader, %73
  %67 = load i32, ptr @N, align 4, !tbaa !5
  %68 = sext i32 %67 to i64
  %69 = shl nsw i64 %68, 2
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 16 @cur, ptr nonnull align 16 @lnk, i64 %69, i1 false)
  br label %70

70:                                               ; preds = %70, %.lr.ph58
  %71 = load i32, ptr @S, align 4, !tbaa !5
  %72 = call noundef i32 @_Z3dfsii(i32 noundef %71, i32 noundef 1061109567)
  %.not44 = icmp eq i32 %72, 0
  br i1 %.not44, label %73, label %70, !llvm.loop !15

73:                                               ; preds = %70
  %74 = call noundef zeroext i1 @_Z3bfsv()
  br i1 %74, label %.lr.ph58, label %._crit_edge59, !llvm.loop !16

._crit_edge59:                                    ; preds = %73, %.preheader
  %75 = load i32, ptr @S, align 4, !tbaa !5
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds [210 x i32], ptr @lnk, i64 0, i64 %76
  %.03260 = load i32, ptr %77, align 4, !tbaa !5
  %.not3861 = icmp eq i32 %.03260, -1
  %.pre93 = load i32, ptr @n, align 4, !tbaa !5
  br i1 %.not3861, label %._crit_edge65, label %.lr.ph64

.lr.ph64:                                         ; preds = %._crit_edge59, %86
  %.03262 = phi i32 [ %.032, %86 ], [ %.03260, %._crit_edge59 ]
  %78 = sext i32 %.03262 to i64
  %79 = getelementptr inbounds [1420 x %struct.Edge], ptr @e, i64 0, i64 %78
  %80 = getelementptr inbounds i8, ptr %79, i64 4
  %81 = load i32, ptr %80, align 4, !tbaa !17
  %82 = icmp slt i32 %81, %.pre93
  br i1 %82, label %83, label %86

83:                                               ; preds = %.lr.ph64
  %84 = getelementptr inbounds i8, ptr %79, i64 8
  %85 = load i32, ptr %84, align 4, !tbaa !19
  %.not39 = icmp eq i32 %85, 0
  br i1 %.not39, label %86, label %._crit_edge82.thread97

86:                                               ; preds = %.lr.ph64, %83
  %.032 = load i32, ptr %79, align 4, !tbaa !5
  %.not38 = icmp eq i32 %.032, -1
  br i1 %.not38, label %._crit_edge65, label %.lr.ph64, !llvm.loop !20

._crit_edge65:                                    ; preds = %86, %._crit_edge59
  %87 = icmp slt i32 %.pre93, 1
  br i1 %87, label %._crit_edge82.thread97, label %.lr.ph81

.lr.ph81:                                         ; preds = %._crit_edge65
  %88 = load i32, ptr @T, align 4
  %89 = zext nneg i32 %.pre93 to i64
  %90 = zext nneg i32 %.pre93 to i64
  br label %93

._crit_edge82.thread97:                           ; preds = %83, %._crit_edge73, %101, %._crit_edge65
  %91 = phi ptr [ @.str.2, %._crit_edge65 ], [ @.str.3, %101 ], [ @.str.2, %._crit_edge73 ], [ @.str.3, %83 ]
  %92 = call i32 @puts(ptr noundef nonnull dereferenceable(1) %91)
  ret i32 0

93:                                               ; preds = %.lr.ph81, %._crit_edge73
  %indvars.iv91 = phi i64 [ 0, %.lr.ph81 ], [ %indvars.iv.next92, %._crit_edge73 ]
  %94 = add nuw nsw i64 %indvars.iv91, %89
  %95 = getelementptr inbounds [210 x i32], ptr @lnk, i64 0, i64 %94
  %.068 = load i32, ptr %95, align 4, !tbaa !5
  %.not4269 = icmp eq i32 %.068, -1
  br i1 %.not4269, label %._crit_edge73, label %.lr.ph72

.lr.ph72:                                         ; preds = %93, %104
  %.070 = phi i32 [ %.0, %104 ], [ %.068, %93 ]
  %96 = sext i32 %.070 to i64
  %97 = getelementptr inbounds [1420 x %struct.Edge], ptr @e, i64 0, i64 %96
  %98 = getelementptr inbounds i8, ptr %97, i64 4
  %99 = load i32, ptr %98, align 4, !tbaa !17
  %100 = icmp eq i32 %99, %88
  br i1 %100, label %101, label %104

101:                                              ; preds = %.lr.ph72
  %102 = getelementptr inbounds i8, ptr %97, i64 8
  %103 = load i32, ptr %102, align 4, !tbaa !19
  %.not43 = icmp eq i32 %103, 0
  br i1 %.not43, label %104, label %._crit_edge82.thread97

104:                                              ; preds = %.lr.ph72, %101
  %.0 = load i32, ptr %97, align 4, !tbaa !5
  %.not42 = icmp eq i32 %.0, -1
  br i1 %.not42, label %._crit_edge73, label %.lr.ph72, !llvm.loop !21

._crit_edge73:                                    ; preds = %104, %93
  %indvars.iv.next92 = add nuw nsw i64 %indvars.iv91, 1
  %.not107 = icmp ult i64 %indvars.iv.next92, %90
  br i1 %.not107, label %93, label %._crit_edge82.thread97, !llvm.loop !22
}

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

; 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 #4 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0 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 #0 align 2

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

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

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

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

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


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