; LLVM IR from tangjz/acm-icpc :: uvalive (7338)

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

@t = external dso_local global i32, align 4
@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@fa = external dso_local global [15 x [10010 x i32]], align 16
@st = external dso_local global [15 x [10010 x i32]], align 16
@dsu = external dso_local global [10010 x i32], align 16
@A = external dso_local global [100010 x i32], align 16
@B = external dso_local global [100010 x i32], align 16
@ord = external dso_local global [100010 x i32], align 16
@e = external dso_local global [100010 x %struct.Edge], align 16
@g = external dso_local global [10010 x %"class.std::vector"], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [15 x i8], align 1

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z3cmpRKiS0_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #0

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z3updi(i32 noundef) #1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #3 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca %"class.std::vector", align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i64, align 8
  %12 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %13 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @t)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #8
  store i32 1, ptr %2, align 4, !tbaa !5
  br label %14

14:                                               ; preds = %205, %0
  %15 = load i32, ptr %2, align 4, !tbaa !5
  %16 = load i32, ptr @t, align 4, !tbaa !5
  %17 = icmp sle i32 %15, %16
  br i1 %17, label %19, label %18

18:                                               ; preds = %14
  store i32 2, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #8
  br label %208

19:                                               ; preds = %14
  %20 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef @n, ptr noundef @m)
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #8
  store i32 1, ptr %4, align 4, !tbaa !5
  br label %21

21:                                               ; preds = %30, %19
  %22 = load i32, ptr %4, align 4, !tbaa !5
  %23 = load i32, ptr @n, align 4, !tbaa !5
  %24 = icmp sle i32 %22, %23
  br i1 %24, label %26, label %25

25:                                               ; preds = %21
  store i32 5, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #8
  br label %33

26:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 24, ptr %5) #8
  call void @llvm.memset.p0.i64(ptr align 8 %5, i8 0, i64 24, i1 false)
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #8
  %27 = load i32, ptr %4, align 4, !tbaa !5
  %28 = sext i32 %27 to i64
  %29 = getelementptr inbounds [10010 x %"class.std::vector"], ptr @g, i64 0, i64 %28
  call void @_ZNSt6vectorIiSaIiEE4swapERS1_(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(24) %29) #8
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #8
  br label %30

30:                                               ; preds = %26
  %31 = load i32, ptr %4, align 4, !tbaa !5
  %32 = add nsw i32 %31, 1
  store i32 %32, ptr %4, align 4, !tbaa !5
  br label %21, !llvm.loop !9

33:                                               ; preds = %25
  %34 = load i32, ptr @n, align 4, !tbaa !5
  %35 = sext i32 %34 to i64
  %36 = mul i64 %35, 4
  call void @llvm.memset.p0.i64(ptr align 4 getelementptr inbounds (i32, ptr @dsu, i64 1), i8 -1, i64 %36, i1 false)
  %37 = load i32, ptr @m, align 4, !tbaa !5
  %38 = sext i32 %37 to i64
  %39 = mul i64 %38, 4
  call void @llvm.memset.p0.i64(ptr align 4 getelementptr inbounds (i32, ptr @A, i64 1), i8 -1, i64 %39, i1 false)
  %40 = load i32, ptr @m, align 4, !tbaa !5
  %41 = sext i32 %40 to i64
  %42 = mul i64 %41, 4
  call void @llvm.memset.p0.i64(ptr align 4 getelementptr inbounds (i32, ptr @B, i64 1), i8 -1, i64 %42, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #8
  store i32 1, ptr %6, align 4, !tbaa !5
  br label %43

43:                                               ; preds = %86, %33
  %44 = load i32, ptr %6, align 4, !tbaa !5
  %45 = load i32, ptr @m, align 4, !tbaa !5
  %46 = icmp sle i32 %44, %45
  br i1 %46, label %48, label %47

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

48:                                               ; preds = %43
  %49 = load i32, ptr %6, align 4, !tbaa !5
  %50 = sext i32 %49 to i64
  %51 = getelementptr inbounds [100010 x %struct.Edge], ptr @e, i64 0, i64 %50
  %52 = getelementptr inbounds %struct.Edge, ptr %51, i32 0, i32 0
  %53 = load i32, ptr %6, align 4, !tbaa !5
  %54 = sext i32 %53 to i64
  %55 = getelementptr inbounds [100010 x %struct.Edge], ptr @e, i64 0, i64 %54
  %56 = getelementptr inbounds %struct.Edge, ptr %55, i32 0, i32 1
  %57 = load i32, ptr %6, align 4, !tbaa !5
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds [100010 x %struct.Edge], ptr @e, i64 0, i64 %58
  %60 = getelementptr inbounds %struct.Edge, ptr %59, i32 0, i32 2
  %61 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.2, ptr noundef %52, ptr noundef %56, ptr noundef %60)
  %62 = load i32, ptr %6, align 4, !tbaa !5
  %63 = load i32, ptr @n, align 4, !tbaa !5
  %64 = icmp sge i32 %62, %63
  br i1 %64, label %65, label %70

65:                                               ; preds = %48
  %66 = load i32, ptr %6, align 4, !tbaa !5
  %67 = load i32, ptr %6, align 4, !tbaa !5
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds [100010 x i32], ptr @ord, i64 0, i64 %68
  store i32 %66, ptr %69, align 4, !tbaa !5
  br label %85

70:                                               ; preds = %48
  %71 = load i32, ptr %6, align 4, !tbaa !5
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds [100010 x %struct.Edge], ptr @e, i64 0, i64 %72
  %74 = getelementptr inbounds %struct.Edge, ptr %73, i32 0, i32 0
  %75 = load i32, ptr %74, align 4, !tbaa !11
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds [10010 x %"class.std::vector"], ptr @g, i64 0, i64 %76
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %77, ptr noundef nonnull align 4 dereferenceable(4) %6)
  %78 = load i32, ptr %6, align 4, !tbaa !5
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds [100010 x %struct.Edge], ptr @e, i64 0, i64 %79
  %81 = getelementptr inbounds %struct.Edge, ptr %80, i32 0, i32 1
  %82 = load i32, ptr %81, align 4, !tbaa !13
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds [10010 x %"class.std::vector"], ptr @g, i64 0, i64 %83
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %84, ptr noundef nonnull align 4 dereferenceable(4) %6)
  br label %85

85:                                               ; preds = %70, %65
  br label %86

86:                                               ; preds = %85
  %87 = load i32, ptr %6, align 4, !tbaa !5
  %88 = add nsw i32 %87, 1
  store i32 %88, ptr %6, align 4, !tbaa !5
  br label %43, !llvm.loop !14

89:                                               ; preds = %47
  call void @_Z3dfsi(i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #8
  store i32 1, ptr %7, align 4, !tbaa !5
  br label %90

90:                                               ; preds = %149, %89
  %91 = load i32, ptr %7, align 4, !tbaa !5
  %92 = icmp slt i32 %91, 15
  br i1 %92, label %94, label %93

93:                                               ; preds = %90
  store i32 11, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #8
  br label %152

94:                                               ; preds = %90
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #8
  store i32 1, ptr %8, align 4, !tbaa !5
  br label %95

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

99:                                               ; preds = %95
  store i32 14, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  br label %148

100:                                              ; preds = %95
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #8
  %101 = load i32, ptr %7, align 4, !tbaa !5
  %102 = sub nsw i32 %101, 1
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds [15 x [10010 x i32]], ptr @fa, i64 0, i64 %103
  %105 = load i32, ptr %8, align 4, !tbaa !5
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds [10010 x i32], ptr %104, i64 0, i64 %106
  %108 = load i32, ptr %107, align 4, !tbaa !5
  store i32 %108, ptr %9, align 4, !tbaa !5
  %109 = load i32, ptr %7, align 4, !tbaa !5
  %110 = sub nsw i32 %109, 1
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds [15 x [10010 x i32]], ptr @fa, i64 0, i64 %111
  %113 = load i32, ptr %9, align 4, !tbaa !5
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds [10010 x i32], ptr %112, i64 0, i64 %114
  %116 = load i32, ptr %115, align 4, !tbaa !5
  %117 = load i32, ptr %7, align 4, !tbaa !5
  %118 = sext i32 %117 to i64
  %119 = getelementptr inbounds [15 x [10010 x i32]], ptr @fa, i64 0, i64 %118
  %120 = load i32, ptr %8, align 4, !tbaa !5
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds [10010 x i32], ptr %119, i64 0, i64 %121
  store i32 %116, ptr %122, align 4, !tbaa !5
  %123 = load i32, ptr %7, align 4, !tbaa !5
  %124 = sub nsw i32 %123, 1
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds [15 x [10010 x i32]], ptr @st, i64 0, i64 %125
  %127 = load i32, ptr %8, align 4, !tbaa !5
  %128 = sext i32 %127 to i64
  %129 = getelementptr inbounds [10010 x i32], ptr %126, i64 0, i64 %128
  %130 = load i32, ptr %7, align 4, !tbaa !5
  %131 = sub nsw i32 %130, 1
  %132 = sext i32 %131 to i64
  %133 = getelementptr inbounds [15 x [10010 x i32]], ptr @st, i64 0, i64 %132
  %134 = load i32, ptr %9, align 4, !tbaa !5
  %135 = sext i32 %134 to i64
  %136 = getelementptr inbounds [10010 x i32], ptr %133, i64 0, i64 %135
  %137 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %129, ptr noundef nonnull align 4 dereferenceable(4) %136)
  %138 = load i32, ptr %137, align 4, !tbaa !5
  %139 = load i32, ptr %7, align 4, !tbaa !5
  %140 = sext i32 %139 to i64
  %141 = getelementptr inbounds [15 x [10010 x i32]], ptr @st, i64 0, i64 %140
  %142 = load i32, ptr %8, align 4, !tbaa !5
  %143 = sext i32 %142 to i64
  %144 = getelementptr inbounds [10010 x i32], ptr %141, i64 0, i64 %143
  store i32 %138, ptr %144, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  br label %145

145:                                              ; preds = %100
  %146 = load i32, ptr %8, align 4, !tbaa !5
  %147 = add nsw i32 %146, 1
  store i32 %147, ptr %8, align 4, !tbaa !5
  br label %95, !llvm.loop !15

148:                                              ; preds = %99
  br label %149

149:                                              ; preds = %148
  %150 = load i32, ptr %7, align 4, !tbaa !5
  %151 = add nsw i32 %150, 1
  store i32 %151, ptr %7, align 4, !tbaa !5
  br label %90, !llvm.loop !16

152:                                              ; preds = %93
  %153 = load i32, ptr @n, align 4, !tbaa !5
  %154 = sext i32 %153 to i64
  %155 = getelementptr inbounds i32, ptr @ord, i64 %154
  %156 = load i32, ptr @m, align 4, !tbaa !5
  %157 = sext i32 %156 to i64
  %158 = getelementptr inbounds i32, ptr @ord, i64 %157
  %159 = getelementptr inbounds i32, ptr %158, i64 1
  call void @_ZSt4sortIPiPFbRKiS2_EEvT_S5_T0_(ptr noundef %155, ptr noundef %159, ptr noundef @_Z3cmpRKiS0_)
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  %160 = load i32, ptr @n, align 4, !tbaa !5
  store i32 %160, ptr %10, align 4, !tbaa !5
  br label %161

161:                                              ; preds = %171, %152
  %162 = load i32, ptr %10, align 4, !tbaa !5
  %163 = load i32, ptr @m, align 4, !tbaa !5
  %164 = icmp sle i32 %162, %163
  br i1 %164, label %166, label %165

165:                                              ; preds = %161
  store i32 17, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  br label %174

166:                                              ; preds = %161
  %167 = load i32, ptr %10, align 4, !tbaa !5
  %168 = sext i32 %167 to i64
  %169 = getelementptr inbounds [100010 x i32], ptr @ord, i64 0, i64 %168
  %170 = load i32, ptr %169, align 4, !tbaa !5
  call void @_Z3updi(i32 noundef %170)
  br label %171

171:                                              ; preds = %166
  %172 = load i32, ptr %10, align 4, !tbaa !5
  %173 = add nsw i32 %172, 1
  store i32 %173, ptr %10, align 4, !tbaa !5
  br label %161, !llvm.loop !17

174:                                              ; preds = %165
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #8
  store i64 0, ptr %11, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #8
  store i32 1, ptr %12, align 4, !tbaa !5
  br label %175

175:                                              ; preds = %198, %174
  %176 = load i32, ptr %12, align 4, !tbaa !5
  %177 = load i32, ptr @m, align 4, !tbaa !5
  %178 = icmp sle i32 %176, %177
  br i1 %178, label %180, label %179

179:                                              ; preds = %175
  store i32 20, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  br label %201

180:                                              ; preds = %175
  %181 = load i32, ptr %12, align 4, !tbaa !5
  %182 = sext i32 %181 to i64
  %183 = getelementptr inbounds [100010 x i32], ptr @B, i64 0, i64 %182
  %184 = load i32, ptr %183, align 4, !tbaa !5
  %185 = load i32, ptr %12, align 4, !tbaa !5
  %186 = mul nsw i32 %184, %185
  %187 = load i32, ptr %12, align 4, !tbaa !5
  %188 = sext i32 %187 to i64
  %189 = getelementptr inbounds [100010 x i32], ptr @A, i64 0, i64 %188
  %190 = load i32, ptr %189, align 4, !tbaa !5
  %191 = add nsw i32 %186, %190
  %192 = sext i32 %191 to i64
  %193 = load i32, ptr %12, align 4, !tbaa !5
  %194 = sext i32 %193 to i64
  %195 = mul nsw i64 %192, %194
  %196 = load i64, ptr %11, align 8, !tbaa !18
  %197 = add nsw i64 %196, %195
  store i64 %197, ptr %11, align 8, !tbaa !18
  br label %198

198:                                              ; preds = %180
  %199 = load i32, ptr %12, align 4, !tbaa !5
  %200 = add nsw i32 %199, 1
  store i32 %200, ptr %12, align 4, !tbaa !5
  br label %175, !llvm.loop !20

201:                                              ; preds = %179
  %202 = load i32, ptr %2, align 4, !tbaa !5
  %203 = load i64, ptr %11, align 8, !tbaa !18
  %204 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %202, i64 noundef %203)
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  br label %205

205:                                              ; preds = %201
  %206 = load i32, ptr %2, align 4, !tbaa !5
  %207 = add nsw i32 %206, 1
  store i32 %207, ptr %2, align 4, !tbaa !5
  br label %14, !llvm.loop !21

208:                                              ; preds = %18
  ret i32 0
}

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIPiPFbRKiS2_EEvT_S5_T0_(ptr noundef, ptr noundef, ptr noundef) #7

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

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 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 #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { 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 #7 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 = !{!12, !6, i64 0}
!12 = !{!"_ZTS4Edge", !6, i64 0, !6, i64 4, !6, i64 8}
!13 = !{!12, !6, i64 4}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10}
!18 = !{!19, !19, i64 0}
!19 = !{!"long long", !7, i64 0}
!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"

%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 }

@t = external dso_local global i32, align 4
@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@fa = external dso_local local_unnamed_addr global [15 x [10010 x i32]], align 16
@st = external dso_local global [15 x [10010 x i32]], align 16
@dsu = external dso_local local_unnamed_addr global [10010 x i32], align 16
@A = external dso_local local_unnamed_addr global [100010 x i32], align 16
@B = external dso_local local_unnamed_addr global [100010 x i32], align 16
@ord = external dso_local global [100010 x i32], align 16
@e = external dso_local global [100010 x %struct.Edge], align 16
@g = external dso_local global [10010 x %"class.std::vector"], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [15 x i8], align 1

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z3cmpRKiS0_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #0

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

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

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #3 {
  %1 = alloca %"class.std::vector", align 8
  %2 = alloca i32, align 4
  %3 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @t)
  %4 = load i32, ptr @t, align 4, !tbaa !5
  %.not75 = icmp slt i32 %4, 1
  br i1 %.not75, label %._crit_edge79, label %.lr.ph78

._crit_edge79:                                    ; preds = %._crit_edge73, %0
  ret i32 0

.lr.ph78:                                         ; preds = %0, %._crit_edge73
  %.03576 = phi i32 [ %83, %._crit_edge73 ], [ 1, %0 ]
  %5 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull @n, ptr noundef nonnull @m)
  %6 = load i32, ptr @n, align 4, !tbaa !5
  %.not4250 = icmp slt i32 %6, 1
  br i1 %.not4250, label %.lr.ph78.._crit_edge_crit_edge, label %.lr.ph

.lr.ph78.._crit_edge_crit_edge:                   ; preds = %.lr.ph78
  %.pre98 = sext i32 %6 to i64
  br label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %.lr.ph78.._crit_edge_crit_edge
  %.pre-phi = phi i64 [ %.pre98, %.lr.ph78.._crit_edge_crit_edge ], [ %13, %.lr.ph ]
  %7 = shl nsw i64 %.pre-phi, 2
  call void @llvm.memset.p0.i64(ptr nonnull align 4 getelementptr inbounds (i8, ptr @dsu, i64 4), i8 -1, i64 %7, i1 false)
  %8 = load i32, ptr @m, align 4, !tbaa !5
  %9 = sext i32 %8 to i64
  %10 = shl nsw i64 %9, 2
  call void @llvm.memset.p0.i64(ptr nonnull align 4 getelementptr inbounds (i8, ptr @A, i64 4), i8 -1, i64 %10, i1 false)
  call void @llvm.memset.p0.i64(ptr nonnull align 4 getelementptr inbounds (i8, ptr @B, i64 4), i8 -1, i64 %10, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #8
  store i32 1, ptr %2, align 4, !tbaa !5
  %.not4352 = icmp slt i32 %8, 1
  br i1 %.not4352, label %._crit_edge56, label %.lr.ph55

.lr.ph:                                           ; preds = %.lr.ph78, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 1, %.lr.ph78 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %1) #8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %1, i8 0, i64 24, i1 false)
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %1) #8
  %11 = getelementptr inbounds [10010 x %"class.std::vector"], ptr @g, i64 0, i64 %indvars.iv
  call void @_ZNSt6vectorIiSaIiEE4swapERS1_(ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %11) #8
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %1) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %1) #8
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %12 = load i32, ptr @n, align 4, !tbaa !5
  %13 = sext i32 %12 to i64
  %.not42.not = icmp slt i64 %indvars.iv, %13
  br i1 %.not42.not, label %.lr.ph, label %._crit_edge, !llvm.loop !9

._crit_edge56:                                    ; preds = %37, %._crit_edge
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #8
  call void @_Z3dfsi(i32 noundef 1)
  %14 = load i32, ptr @n, align 4, !tbaa !5
  %15 = icmp slt i32 %14, 1
  br i1 %15, label %.split63.us, label %.preheader

.lr.ph55:                                         ; preds = %._crit_edge, %37
  %storemerge53 = phi i32 [ %39, %37 ], [ 1, %._crit_edge ]
  %16 = sext i32 %storemerge53 to i64
  %17 = getelementptr inbounds [100010 x %struct.Edge], ptr @e, i64 0, i64 %16
  %18 = getelementptr inbounds i8, ptr %17, i64 4
  %19 = getelementptr inbounds i8, ptr %17, i64 8
  %20 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.2, ptr noundef nonnull %17, ptr noundef nonnull %18, ptr noundef nonnull %19)
  %21 = load i32, ptr %2, align 4, !tbaa !5
  %22 = load i32, ptr @n, align 4, !tbaa !5
  %.not47 = icmp slt i32 %21, %22
  %23 = sext i32 %21 to i64
  br i1 %.not47, label %26, label %24

24:                                               ; preds = %.lr.ph55
  %25 = getelementptr inbounds [100010 x i32], ptr @ord, i64 0, i64 %23
  store i32 %21, ptr %25, align 4, !tbaa !5
  br label %37

26:                                               ; preds = %.lr.ph55
  %27 = getelementptr inbounds [100010 x %struct.Edge], ptr @e, i64 0, i64 %23
  %28 = load i32, ptr %27, align 4, !tbaa !11
  %29 = sext i32 %28 to i64
  %30 = getelementptr inbounds [10010 x %"class.std::vector"], ptr @g, i64 0, i64 %29
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %30, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %31 = load i32, ptr %2, align 4, !tbaa !5
  %32 = sext i32 %31 to i64
  %33 = getelementptr inbounds [100010 x %struct.Edge], ptr @e, i64 0, i64 %32, i32 1
  %34 = load i32, ptr %33, align 4, !tbaa !13
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds [10010 x %"class.std::vector"], ptr @g, i64 0, i64 %35
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %36, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %.pre = load i32, ptr %2, align 4, !tbaa !5
  br label %37

37:                                               ; preds = %24, %26
  %38 = phi i32 [ %21, %24 ], [ %.pre, %26 ]
  %39 = add nsw i32 %38, 1
  store i32 %39, ptr %2, align 4, !tbaa !5
  %40 = load i32, ptr @m, align 4, !tbaa !5
  %.not43.not = icmp slt i32 %38, %40
  br i1 %.not43.not, label %.lr.ph55, label %._crit_edge56, !llvm.loop !14

.preheader:                                       ; preds = %._crit_edge56, %._crit_edge60
  %41 = phi i32 [ %51, %._crit_edge60 ], [ %14, %._crit_edge56 ]
  %indvars.iv88 = phi i64 [ %indvars.iv.next89, %._crit_edge60 ], [ 1, %._crit_edge56 ]
  %.not4657 = icmp slt i32 %41, 1
  br i1 %.not4657, label %._crit_edge60, label %.lr.ph59

.lr.ph59:                                         ; preds = %.preheader
  %42 = add nsw i64 %indvars.iv88, -1
  br label %52

.split63.us:                                      ; preds = %._crit_edge60, %._crit_edge56
  %43 = phi i32 [ %14, %._crit_edge56 ], [ %51, %._crit_edge60 ]
  %44 = sext i32 %43 to i64
  %45 = getelementptr inbounds i32, ptr @ord, i64 %44
  %46 = load i32, ptr @m, align 4, !tbaa !5
  %47 = sext i32 %46 to i64
  %gep = getelementptr i32, ptr getelementptr inbounds (i8, ptr @ord, i64 4), i64 %47
  call void @_ZSt4sortIPiPFbRKiS2_EEvT_S5_T0_(ptr noundef nonnull %45, ptr noundef nonnull %gep, ptr noundef nonnull @_Z3cmpRKiS0_)
  %48 = load i32, ptr @n, align 4, !tbaa !5
  %49 = load i32, ptr @m, align 4, !tbaa !5
  %.not4464 = icmp sgt i32 %48, %49
  br i1 %.not4464, label %.preheader48, label %.lr.ph67.preheader

.lr.ph67.preheader:                               ; preds = %.split63.us
  %50 = sext i32 %48 to i64
  br label %.lr.ph67

._crit_edge60:                                    ; preds = %52, %.preheader
  %51 = phi i32 [ %41, %.preheader ], [ %64, %52 ]
  %indvars.iv.next89 = add nuw nsw i64 %indvars.iv88, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next89, 15
  br i1 %exitcond.not, label %.split63.us, label %.preheader, !llvm.loop !15

52:                                               ; preds = %.lr.ph59, %52
  %indvars.iv85 = phi i64 [ 1, %.lr.ph59 ], [ %indvars.iv.next86, %52 ]
  %53 = getelementptr inbounds [15 x [10010 x i32]], ptr @fa, i64 0, i64 %42, i64 %indvars.iv85
  %54 = load i32, ptr %53, align 4, !tbaa !5
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds [15 x [10010 x i32]], ptr @fa, i64 0, i64 %42, i64 %55
  %57 = load i32, ptr %56, align 4, !tbaa !5
  %58 = getelementptr inbounds [15 x [10010 x i32]], ptr @fa, i64 0, i64 %indvars.iv88, i64 %indvars.iv85
  store i32 %57, ptr %58, align 4, !tbaa !5
  %59 = getelementptr inbounds [15 x [10010 x i32]], ptr @st, i64 0, i64 %42, i64 %indvars.iv85
  %60 = getelementptr inbounds [15 x [10010 x i32]], ptr @st, i64 0, i64 %42, i64 %55
  %61 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %59, ptr noundef nonnull align 4 dereferenceable(4) %60)
  %62 = load i32, ptr %61, align 4, !tbaa !5
  %63 = getelementptr inbounds [15 x [10010 x i32]], ptr @st, i64 0, i64 %indvars.iv88, i64 %indvars.iv85
  store i32 %62, ptr %63, align 4, !tbaa !5
  %indvars.iv.next86 = add nuw nsw i64 %indvars.iv85, 1
  %64 = load i32, ptr @n, align 4, !tbaa !5
  %65 = sext i32 %64 to i64
  %.not46.not = icmp slt i64 %indvars.iv85, %65
  br i1 %.not46.not, label %52, label %._crit_edge60, !llvm.loop !17

.preheader48:                                     ; preds = %.lr.ph67, %.split63.us
  %.lcssa49 = phi i32 [ %49, %.split63.us ], [ %70, %.lr.ph67 ]
  %.not4569 = icmp slt i32 %.lcssa49, 1
  br i1 %.not4569, label %._crit_edge73, label %.lr.ph72.preheader

.lr.ph72.preheader:                               ; preds = %.preheader48
  %66 = zext nneg i32 %.lcssa49 to i64
  %xtraiter = and i64 %66, 1
  %67 = icmp eq i32 %.lcssa49, 1
  br i1 %67, label %._crit_edge73.loopexit.unr-lcssa, label %.lr.ph72.preheader.new

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

.lr.ph67:                                         ; preds = %.lr.ph67.preheader, %.lr.ph67
  %indvars.iv91 = phi i64 [ %50, %.lr.ph67.preheader ], [ %indvars.iv.next92, %.lr.ph67 ]
  %68 = getelementptr inbounds [100010 x i32], ptr @ord, i64 0, i64 %indvars.iv91
  %69 = load i32, ptr %68, align 4, !tbaa !5
  call void @_Z3updi(i32 noundef %69)
  %indvars.iv.next92 = add nsw i64 %indvars.iv91, 1
  %70 = load i32, ptr @m, align 4, !tbaa !5
  %71 = sext i32 %70 to i64
  %.not44.not = icmp slt i64 %indvars.iv91, %71
  br i1 %.not44.not, label %.lr.ph67, label %.preheader48, !llvm.loop !18

._crit_edge73.loopexit.unr-lcssa:                 ; preds = %.lr.ph72, %.lr.ph72.preheader
  %.lcssa110.ph = phi i64 [ poison, %.lr.ph72.preheader ], [ %104, %.lr.ph72 ]
  %indvars.iv94.unr = phi i64 [ 1, %.lr.ph72.preheader ], [ %indvars.iv.next95.1, %.lr.ph72 ]
  %.03370.unr = phi i64 [ 0, %.lr.ph72.preheader ], [ %104, %.lr.ph72 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge73, label %.lr.ph72.epil

.lr.ph72.epil:                                    ; preds = %._crit_edge73.loopexit.unr-lcssa
  %72 = getelementptr inbounds [100010 x i32], ptr @B, i64 0, i64 %indvars.iv94.unr
  %73 = load i32, ptr %72, align 4, !tbaa !5
  %74 = trunc nuw nsw i64 %indvars.iv94.unr to i32
  %75 = mul nsw i32 %73, %74
  %76 = getelementptr inbounds [100010 x i32], ptr @A, i64 0, i64 %indvars.iv94.unr
  %77 = load i32, ptr %76, align 4, !tbaa !5
  %78 = add nsw i32 %75, %77
  %79 = sext i32 %78 to i64
  %80 = mul nsw i64 %indvars.iv94.unr, %79
  %81 = add nsw i64 %80, %.03370.unr
  br label %._crit_edge73

._crit_edge73:                                    ; preds = %.lr.ph72.epil, %._crit_edge73.loopexit.unr-lcssa, %.preheader48
  %.033.lcssa = phi i64 [ 0, %.preheader48 ], [ %.lcssa110.ph, %._crit_edge73.loopexit.unr-lcssa ], [ %81, %.lr.ph72.epil ]
  %82 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %.03576, i64 noundef %.033.lcssa)
  %83 = add nuw nsw i32 %.03576, 1
  %84 = load i32, ptr @t, align 4, !tbaa !5
  %.not.not = icmp slt i32 %.03576, %84
  br i1 %.not.not, label %.lr.ph78, label %._crit_edge79, !llvm.loop !19

.lr.ph72:                                         ; preds = %.lr.ph72, %.lr.ph72.preheader.new
  %indvars.iv94 = phi i64 [ 1, %.lr.ph72.preheader.new ], [ %indvars.iv.next95.1, %.lr.ph72 ]
  %.03370 = phi i64 [ 0, %.lr.ph72.preheader.new ], [ %104, %.lr.ph72 ]
  %niter = phi i64 [ 0, %.lr.ph72.preheader.new ], [ %niter.next.1, %.lr.ph72 ]
  %85 = getelementptr inbounds [100010 x i32], ptr @B, i64 0, i64 %indvars.iv94
  %86 = load i32, ptr %85, align 4, !tbaa !5
  %87 = trunc nuw nsw i64 %indvars.iv94 to i32
  %88 = mul nsw i32 %86, %87
  %89 = getelementptr inbounds [100010 x i32], ptr @A, i64 0, i64 %indvars.iv94
  %90 = load i32, ptr %89, align 4, !tbaa !5
  %91 = add nsw i32 %88, %90
  %92 = sext i32 %91 to i64
  %93 = mul nsw i64 %indvars.iv94, %92
  %94 = add nsw i64 %93, %.03370
  %indvars.iv.next95 = add nuw nsw i64 %indvars.iv94, 1
  %95 = getelementptr inbounds [100010 x i32], ptr @B, i64 0, i64 %indvars.iv.next95
  %96 = load i32, ptr %95, align 4, !tbaa !5
  %97 = trunc nuw nsw i64 %indvars.iv.next95 to i32
  %98 = mul nsw i32 %96, %97
  %99 = getelementptr inbounds [100010 x i32], ptr @A, i64 0, i64 %indvars.iv.next95
  %100 = load i32, ptr %99, align 4, !tbaa !5
  %101 = add nsw i32 %98, %100
  %102 = sext i32 %101 to i64
  %103 = mul nsw i64 %indvars.iv.next95, %102
  %104 = add nsw i64 %103, %94
  %indvars.iv.next95.1 = add nuw nsw i64 %indvars.iv94, 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_edge73.loopexit.unr-lcssa, label %.lr.ph72, !llvm.loop !20
}

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIPiPFbRKiS2_EEvT_S5_T0_(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #7

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

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 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 #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { 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 #7 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 = !{!12, !6, i64 0}
!12 = !{!"_ZTS4Edge", !6, i64 0, !6, i64 4, !6, i64 8}
!13 = !{!12, !6, i64 4}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10, !16}
!16 = !{!"llvm.loop.unswitch.partial.disable"}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !10}
!19 = distinct !{!19, !10}
!20 = distinct !{!20, !10}


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