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

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

@t = external dso_local global i32, align 4
@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@tot = external dso_local global [2 x i32], align 4
@p = external dso_local global [2 x [200 x i32]], align 16
@h = external dso_local global [2 x [200 x i32]], align 16
@sz = external dso_local global i32, align 4
@tmp = external dso_local global [200 x i32], align 16
@hh = external dso_local global [200 x i32], align 16
@e = external dso_local global [2 x [8000 x %struct.Edge]], 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 [4 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
  %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 %struct.Edge, align 4
  %8 = alloca %struct.Edge, 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 i8, align 1
  %15 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %16 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @t)
  br label %17

17:                                               ; preds = %285, %0
  %18 = load i32, ptr @t, align 4, !tbaa !5
  %19 = add nsw i32 %18, -1
  store i32 %19, ptr @t, align 4, !tbaa !5
  %20 = icmp ne i32 %18, 0
  br i1 %20, label %21, label %291

21:                                               ; preds = %17
  %22 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef @n, ptr noundef @m)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %23

23:                                               ; preds = %251, %21
  %24 = load i32, ptr %2, align 4, !tbaa !5
  %25 = icmp slt i32 %24, 2
  br i1 %25, label %27, label %26

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

27:                                               ; preds = %23
  %28 = load i32, ptr %2, align 4, !tbaa !5
  %29 = sext i32 %28 to i64
  %30 = getelementptr inbounds [2 x i32], ptr @tot, i64 0, i64 %29
  store i32 0, ptr %30, align 4, !tbaa !5
  %31 = load i32, ptr %2, align 4, !tbaa !5
  %32 = sext i32 %31 to i64
  %33 = getelementptr inbounds [2 x [200 x i32]], ptr @p, i64 0, i64 %32
  %34 = getelementptr inbounds [200 x i32], ptr %33, i64 0, i64 0
  %35 = load i32, ptr @n, align 4, !tbaa !5
  %36 = sext i32 %35 to i64
  %37 = mul i64 %36, 4
  call void @llvm.memset.p0.i64(ptr align 16 %34, i8 -1, i64 %37, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  store i32 0, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  br label %38

38:                                               ; preds = %109, %27
  %39 = load i32, ptr %4, align 4, !tbaa !5
  %40 = load i32, ptr @m, align 4, !tbaa !5
  %41 = icmp slt i32 %39, %40
  br i1 %41, label %43, label %42

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

43:                                               ; preds = %38
  %44 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef %5, ptr noundef %6)
  %45 = load i32, ptr %5, align 4, !tbaa !5
  %46 = add nsw i32 %45, -1
  store i32 %46, ptr %5, align 4, !tbaa !5
  %47 = load i32, ptr %6, align 4, !tbaa !5
  %48 = add nsw i32 %47, -1
  store i32 %48, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %49 = getelementptr inbounds %struct.Edge, ptr %7, i32 0, i32 0
  %50 = load i32, ptr %2, align 4, !tbaa !5
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds [2 x [200 x i32]], ptr @p, i64 0, i64 %51
  %53 = load i32, ptr %5, align 4, !tbaa !5
  %54 = sext i32 %53 to i64
  %55 = getelementptr inbounds [200 x i32], ptr %52, i64 0, i64 %54
  %56 = load i32, ptr %55, align 4, !tbaa !5
  store i32 %56, ptr %49, align 4, !tbaa !9
  %57 = getelementptr inbounds %struct.Edge, ptr %7, i32 0, i32 1
  %58 = load i32, ptr %6, align 4, !tbaa !5
  store i32 %58, ptr %57, align 4, !tbaa !11
  %59 = load i32, ptr %2, align 4, !tbaa !5
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds [2 x [8000 x %struct.Edge]], ptr @e, i64 0, i64 %60
  %62 = load i32, ptr %2, align 4, !tbaa !5
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds [2 x i32], ptr @tot, i64 0, i64 %63
  %65 = load i32, ptr %64, align 4, !tbaa !5
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds [8000 x %struct.Edge], ptr %61, i64 0, i64 %66
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %67, ptr align 4 %7, i64 8, i1 false), !tbaa.struct !12
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  %68 = load i32, ptr %2, align 4, !tbaa !5
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds [2 x i32], ptr @tot, i64 0, i64 %69
  %71 = load i32, ptr %70, align 4, !tbaa !5
  %72 = add nsw i32 %71, 1
  store i32 %72, ptr %70, align 4, !tbaa !5
  %73 = load i32, ptr %2, align 4, !tbaa !5
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds [2 x [200 x i32]], ptr @p, i64 0, i64 %74
  %76 = load i32, ptr %5, align 4, !tbaa !5
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds [200 x i32], ptr %75, i64 0, i64 %77
  store i32 %71, ptr %78, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %79 = getelementptr inbounds %struct.Edge, ptr %8, i32 0, i32 0
  %80 = load i32, ptr %2, align 4, !tbaa !5
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds [2 x [200 x i32]], ptr @p, i64 0, i64 %81
  %83 = load i32, ptr %6, align 4, !tbaa !5
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds [200 x i32], ptr %82, i64 0, i64 %84
  %86 = load i32, ptr %85, align 4, !tbaa !5
  store i32 %86, ptr %79, align 4, !tbaa !9
  %87 = getelementptr inbounds %struct.Edge, ptr %8, i32 0, i32 1
  %88 = load i32, ptr %5, align 4, !tbaa !5
  store i32 %88, ptr %87, align 4, !tbaa !11
  %89 = load i32, ptr %2, align 4, !tbaa !5
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds [2 x [8000 x %struct.Edge]], ptr @e, i64 0, i64 %90
  %92 = load i32, ptr %2, align 4, !tbaa !5
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds [2 x i32], ptr @tot, i64 0, i64 %93
  %95 = load i32, ptr %94, align 4, !tbaa !5
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds [8000 x %struct.Edge], ptr %91, i64 0, i64 %96
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %97, ptr align 4 %8, i64 8, i1 false), !tbaa.struct !12
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  %98 = load i32, ptr %2, align 4, !tbaa !5
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds [2 x i32], ptr @tot, i64 0, i64 %99
  %101 = load i32, ptr %100, align 4, !tbaa !5
  %102 = add nsw i32 %101, 1
  store i32 %102, ptr %100, align 4, !tbaa !5
  %103 = load i32, ptr %2, align 4, !tbaa !5
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds [2 x [200 x i32]], ptr @p, i64 0, i64 %104
  %106 = load i32, ptr %6, align 4, !tbaa !5
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds [200 x i32], ptr %105, i64 0, i64 %107
  store i32 %101, ptr %108, align 4, !tbaa !5
  br label %109

109:                                              ; preds = %43
  %110 = load i32, ptr %4, align 4, !tbaa !5
  %111 = add nsw i32 %110, 1
  store i32 %111, ptr %4, align 4, !tbaa !5
  br label %38, !llvm.loop !13

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

113:                                              ; preds = %125, %112
  %114 = load i32, ptr %9, align 4, !tbaa !5
  %115 = load i32, ptr @n, align 4, !tbaa !5
  %116 = icmp slt i32 %114, %115
  br i1 %116, label %118, label %117

117:                                              ; preds = %113
  store i32 10, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  br label %128

118:                                              ; preds = %113
  %119 = load i32, ptr %2, align 4, !tbaa !5
  %120 = sext i32 %119 to i64
  %121 = getelementptr inbounds [2 x [200 x i32]], ptr @h, i64 0, i64 %120
  %122 = load i32, ptr %9, align 4, !tbaa !5
  %123 = sext i32 %122 to i64
  %124 = getelementptr inbounds [200 x i32], ptr %121, i64 0, i64 %123
  store i32 1, ptr %124, align 4, !tbaa !5
  br label %125

125:                                              ; preds = %118
  %126 = load i32, ptr %9, align 4, !tbaa !5
  %127 = add nsw i32 %126, 1
  store i32 %127, ptr %9, align 4, !tbaa !5
  br label %113, !llvm.loop !15

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

129:                                              ; preds = %236, %128
  %130 = load i32, ptr %10, align 4, !tbaa !5
  %131 = load i32, ptr @n, align 4, !tbaa !5
  %132 = icmp slt i32 %130, %131
  br i1 %132, label %134, label %133

133:                                              ; preds = %129
  store i32 13, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  br label %239

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

135:                                              ; preds = %225, %134
  %136 = load i32, ptr %11, align 4, !tbaa !5
  %137 = load i32, ptr @n, align 4, !tbaa !5
  %138 = icmp slt i32 %136, %137
  br i1 %138, label %140, label %139

139:                                              ; preds = %135
  store i32 16, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  br label %228

140:                                              ; preds = %135
  store i32 0, ptr @sz, align 4, !tbaa !5
  %141 = load i32, ptr %2, align 4, !tbaa !5
  %142 = sext i32 %141 to i64
  %143 = getelementptr inbounds [2 x [200 x i32]], ptr @h, i64 0, i64 %142
  %144 = load i32, ptr %11, align 4, !tbaa !5
  %145 = sext i32 %144 to i64
  %146 = getelementptr inbounds [200 x i32], ptr %143, i64 0, i64 %145
  %147 = load i32, ptr %146, align 4, !tbaa !5
  %148 = load i32, ptr @sz, align 4, !tbaa !5
  %149 = add nsw i32 %148, 1
  store i32 %149, ptr @sz, align 4, !tbaa !5
  %150 = sext i32 %148 to i64
  %151 = getelementptr inbounds [200 x i32], ptr @tmp, i64 0, i64 %150
  store i32 %147, ptr %151, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  %152 = load i32, ptr %2, align 4, !tbaa !5
  %153 = sext i32 %152 to i64
  %154 = getelementptr inbounds [2 x [200 x i32]], ptr @p, i64 0, i64 %153
  %155 = load i32, ptr %11, align 4, !tbaa !5
  %156 = sext i32 %155 to i64
  %157 = getelementptr inbounds [200 x i32], ptr %154, i64 0, i64 %156
  %158 = load i32, ptr %157, align 4, !tbaa !5
  store i32 %158, ptr %12, align 4, !tbaa !5
  br label %159

159:                                              ; preds = %182, %140
  %160 = load i32, ptr %12, align 4, !tbaa !5
  %161 = icmp ne i32 %160, -1
  br i1 %161, label %163, label %162

162:                                              ; preds = %159
  store i32 19, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %191

163:                                              ; preds = %159
  %164 = load i32, ptr %2, align 4, !tbaa !5
  %165 = sext i32 %164 to i64
  %166 = getelementptr inbounds [2 x [200 x i32]], ptr @h, i64 0, i64 %165
  %167 = load i32, ptr %2, align 4, !tbaa !5
  %168 = sext i32 %167 to i64
  %169 = getelementptr inbounds [2 x [8000 x %struct.Edge]], ptr @e, i64 0, i64 %168
  %170 = load i32, ptr %12, align 4, !tbaa !5
  %171 = sext i32 %170 to i64
  %172 = getelementptr inbounds [8000 x %struct.Edge], ptr %169, i64 0, i64 %171
  %173 = getelementptr inbounds %struct.Edge, ptr %172, i32 0, i32 1
  %174 = load i32, ptr %173, align 4, !tbaa !11
  %175 = sext i32 %174 to i64
  %176 = getelementptr inbounds [200 x i32], ptr %166, i64 0, i64 %175
  %177 = load i32, ptr %176, align 4, !tbaa !5
  %178 = load i32, ptr @sz, align 4, !tbaa !5
  %179 = add nsw i32 %178, 1
  store i32 %179, ptr @sz, align 4, !tbaa !5
  %180 = sext i32 %178 to i64
  %181 = getelementptr inbounds [200 x i32], ptr @tmp, i64 0, i64 %180
  store i32 %177, ptr %181, align 4, !tbaa !5
  br label %182

182:                                              ; preds = %163
  %183 = load i32, ptr %2, align 4, !tbaa !5
  %184 = sext i32 %183 to i64
  %185 = getelementptr inbounds [2 x [8000 x %struct.Edge]], ptr @e, i64 0, i64 %184
  %186 = load i32, ptr %12, align 4, !tbaa !5
  %187 = sext i32 %186 to i64
  %188 = getelementptr inbounds [8000 x %struct.Edge], ptr %185, i64 0, i64 %187
  %189 = getelementptr inbounds %struct.Edge, ptr %188, i32 0, i32 0
  %190 = load i32, ptr %189, align 8, !tbaa !9
  store i32 %190, ptr %12, align 4, !tbaa !5
  br label %159, !llvm.loop !16

191:                                              ; preds = %162
  %192 = load i32, ptr @sz, align 4, !tbaa !5
  %193 = sext i32 %192 to i64
  %194 = getelementptr inbounds i32, ptr @tmp, i64 %193
  call void @_ZSt4sortIPiEvT_S1_(ptr noundef @tmp, ptr noundef %194)
  %195 = load i32, ptr %11, align 4, !tbaa !5
  %196 = sext i32 %195 to i64
  %197 = getelementptr inbounds [200 x i32], ptr @hh, i64 0, i64 %196
  store i32 0, ptr %197, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  store i32 0, ptr %13, align 4, !tbaa !5
  br label %198

198:                                              ; preds = %221, %191
  %199 = load i32, ptr %13, align 4, !tbaa !5
  %200 = load i32, ptr @sz, align 4, !tbaa !5
  %201 = icmp slt i32 %199, %200
  br i1 %201, label %203, label %202

202:                                              ; preds = %198
  store i32 22, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  br label %224

203:                                              ; preds = %198
  %204 = load i32, ptr %11, align 4, !tbaa !5
  %205 = sext i32 %204 to i64
  %206 = getelementptr inbounds [200 x i32], ptr @hh, i64 0, i64 %205
  %207 = load i32, ptr %206, align 4, !tbaa !5
  %208 = sext i32 %207 to i64
  %209 = mul nsw i64 %208, 2333
  %210 = load i32, ptr %13, align 4, !tbaa !5
  %211 = sext i32 %210 to i64
  %212 = getelementptr inbounds [200 x i32], ptr @tmp, i64 0, i64 %211
  %213 = load i32, ptr %212, align 4, !tbaa !5
  %214 = sext i32 %213 to i64
  %215 = add nsw i64 %209, %214
  %216 = srem i64 %215, 985661441
  %217 = trunc i64 %216 to i32
  %218 = load i32, ptr %11, align 4, !tbaa !5
  %219 = sext i32 %218 to i64
  %220 = getelementptr inbounds [200 x i32], ptr @hh, i64 0, i64 %219
  store i32 %217, ptr %220, align 4, !tbaa !5
  br label %221

221:                                              ; preds = %203
  %222 = load i32, ptr %13, align 4, !tbaa !5
  %223 = add nsw i32 %222, 1
  store i32 %223, ptr %13, align 4, !tbaa !5
  br label %198, !llvm.loop !17

224:                                              ; preds = %202
  br label %225

225:                                              ; preds = %224
  %226 = load i32, ptr %11, align 4, !tbaa !5
  %227 = add nsw i32 %226, 1
  store i32 %227, ptr %11, align 4, !tbaa !5
  br label %135, !llvm.loop !18

228:                                              ; preds = %139
  %229 = load i32, ptr %2, align 4, !tbaa !5
  %230 = sext i32 %229 to i64
  %231 = getelementptr inbounds [2 x [200 x i32]], ptr @h, i64 0, i64 %230
  %232 = getelementptr inbounds [200 x i32], ptr %231, i64 0, i64 0
  %233 = load i32, ptr @n, align 4, !tbaa !5
  %234 = sext i32 %233 to i64
  %235 = mul i64 %234, 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %232, ptr align 16 @hh, i64 %235, i1 false)
  br label %236

236:                                              ; preds = %228
  %237 = load i32, ptr %10, align 4, !tbaa !5
  %238 = add nsw i32 %237, 1
  store i32 %238, ptr %10, align 4, !tbaa !5
  br label %129, !llvm.loop !19

239:                                              ; preds = %133
  %240 = load i32, ptr %2, align 4, !tbaa !5
  %241 = sext i32 %240 to i64
  %242 = getelementptr inbounds [2 x [200 x i32]], ptr @h, i64 0, i64 %241
  %243 = getelementptr inbounds [200 x i32], ptr %242, i64 0, i64 0
  %244 = load i32, ptr %2, align 4, !tbaa !5
  %245 = sext i32 %244 to i64
  %246 = getelementptr inbounds [2 x [200 x i32]], ptr @h, i64 0, i64 %245
  %247 = getelementptr inbounds [200 x i32], ptr %246, i64 0, i64 0
  %248 = load i32, ptr @n, align 4, !tbaa !5
  %249 = sext i32 %248 to i64
  %250 = getelementptr inbounds i32, ptr %247, i64 %249
  call void @_ZSt4sortIPiEvT_S1_(ptr noundef %243, ptr noundef %250)
  br label %251

251:                                              ; preds = %239
  %252 = load i32, ptr %2, align 4, !tbaa !5
  %253 = add nsw i32 %252, 1
  store i32 %253, ptr %2, align 4, !tbaa !5
  br label %23, !llvm.loop !20

254:                                              ; preds = %26
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #6
  store i8 1, ptr %14, align 1, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  store i32 0, ptr %15, align 4, !tbaa !5
  br label %255

255:                                              ; preds = %282, %254
  %256 = load i32, ptr %15, align 4, !tbaa !5
  %257 = load i32, ptr @n, align 4, !tbaa !5
  %258 = icmp slt i32 %256, %257
  br i1 %258, label %259, label %262

259:                                              ; preds = %255
  %260 = load i8, ptr %14, align 1, !tbaa !21, !range !23, !noundef !24
  %261 = trunc i8 %260 to i1
  br label %262

262:                                              ; preds = %259, %255
  %263 = phi i1 [ false, %255 ], [ %261, %259 ]
  br i1 %263, label %265, label %264

264:                                              ; preds = %262
  store i32 25, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  br label %285

265:                                              ; preds = %262
  %266 = load i32, ptr %15, align 4, !tbaa !5
  %267 = sext i32 %266 to i64
  %268 = getelementptr inbounds [200 x i32], ptr @h, i64 0, i64 %267
  %269 = load i32, ptr %268, align 4, !tbaa !5
  %270 = load i32, ptr %15, align 4, !tbaa !5
  %271 = sext i32 %270 to i64
  %272 = getelementptr inbounds [200 x i32], ptr getelementptr inbounds ([2 x [200 x i32]], ptr @h, i64 0, i64 1), i64 0, i64 %271
  %273 = load i32, ptr %272, align 4, !tbaa !5
  %274 = icmp eq i32 %269, %273
  %275 = zext i1 %274 to i32
  %276 = load i8, ptr %14, align 1, !tbaa !21, !range !23, !noundef !24
  %277 = trunc i8 %276 to i1
  %278 = zext i1 %277 to i32
  %279 = and i32 %278, %275
  %280 = icmp ne i32 %279, 0
  %281 = zext i1 %280 to i8
  store i8 %281, ptr %14, align 1, !tbaa !21
  br label %282

282:                                              ; preds = %265
  %283 = load i32, ptr %15, align 4, !tbaa !5
  %284 = add nsw i32 %283, 1
  store i32 %284, ptr %15, align 4, !tbaa !5
  br label %255, !llvm.loop !25

285:                                              ; preds = %264
  %286 = load i8, ptr %14, align 1, !tbaa !21, !range !23, !noundef !24
  %287 = trunc i8 %286 to i1
  %288 = zext i1 %287 to i64
  %289 = select i1 %287, ptr @.str.2, ptr @.str.3
  %290 = call i32 @puts(ptr noundef %289)
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #6
  br label %17, !llvm.loop !26

291:                                              ; preds = %17
  ret i32 0
}

declare i32 @__isoc99_scanf(ptr 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 nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

; 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) #4

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

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

declare i32 @puts(ptr noundef) #1

attributes #0 = { 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 #1 = { "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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { 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 #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 = !{!10, !6, i64 0}
!10 = !{!"_ZTS4Edge", !6, i64 0, !6, i64 4}
!11 = !{!10, !6, i64 4}
!12 = !{i64 0, i64 4, !5, i64 4, i64 4, !5}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !14}
!18 = distinct !{!18, !14}
!19 = distinct !{!19, !14}
!20 = distinct !{!20, !14}
!21 = !{!22, !22, i64 0}
!22 = !{!"bool", !7, i64 0}
!23 = !{i8 0, i8 2}
!24 = !{}
!25 = distinct !{!25, !14}
!26 = distinct !{!26, !14}


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

@t = external dso_local global i32, align 4
@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@tot = external dso_local local_unnamed_addr global [2 x i32], align 4
@p = external dso_local local_unnamed_addr global [2 x [200 x i32]], align 16
@h = external dso_local global [2 x [200 x i32]], align 16
@sz = external dso_local local_unnamed_addr global i32, align 4
@tmp = external dso_local global [200 x i32], align 16
@hh = external dso_local local_unnamed_addr global [200 x i32], align 16
@e = external dso_local local_unnamed_addr global [2 x [8000 x %struct.Edge]], 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 [4 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca i32, align 4
  %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
  %5 = add nsw i32 %4, -1
  store i32 %5, ptr @t, align 4, !tbaa !5
  %.not93 = icmp eq i32 %4, 0
  br i1 %.not93, label %._crit_edge96, label %.lr.ph95

.lr.ph95:                                         ; preds = %0, %101
  %6 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull @n, ptr noundef nonnull @m)
  br label %10

.preheader64:                                     ; preds = %._crit_edge86
  %7 = load i32, ptr @n, align 4, !tbaa !5
  %8 = icmp sgt i32 %7, 0
  br i1 %8, label %.lr.ph90.preheader, label %._crit_edge91.thread

.lr.ph90.preheader:                               ; preds = %.preheader64
  %9 = zext nneg i32 %7 to i64
  br label %.lr.ph90

10:                                               ; preds = %.lr.ph95, %._crit_edge86
  %11 = phi i1 [ true, %.lr.ph95 ], [ false, %._crit_edge86 ]
  %indvars.iv116 = phi i64 [ 0, %.lr.ph95 ], [ 1, %._crit_edge86 ]
  %12 = getelementptr inbounds [2 x i32], ptr @tot, i64 0, i64 %indvars.iv116
  store i32 0, ptr %12, align 4, !tbaa !5
  %13 = getelementptr inbounds [2 x [200 x i32]], ptr @p, i64 0, i64 %indvars.iv116
  %14 = load i32, ptr @n, align 4, !tbaa !5
  %15 = sext i32 %14 to i64
  %16 = shl nsw i64 %15, 2
  call void @llvm.memset.p0.i64(ptr nonnull align 16 %13, i8 -1, i64 %16, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #6
  %17 = load i32, ptr @m, align 4, !tbaa !5
  %18 = icmp sgt i32 %17, 0
  br i1 %18, label %.lr.ph, label %._crit_edge

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

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %10
  %19 = phi i32 [ %.pre, %._crit_edge.loopexit ], [ %14, %10 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #6
  %20 = icmp sgt i32 %19, 0
  br i1 %20, label %.lr.ph69.preheader, label %._crit_edge86

.lr.ph69.preheader:                               ; preds = %._crit_edge
  %wide.trip.count = zext nneg i32 %19 to i64
  %min.iters.check = icmp ult i32 %19, 8
  br i1 %min.iters.check, label %.lr.ph69.preheader132, label %vector.ph

.lr.ph69.preheader132:                            ; preds = %middle.block, %.lr.ph69.preheader
  %indvars.iv.ph = phi i64 [ 0, %.lr.ph69.preheader ], [ %n.vec, %middle.block ]
  br label %.lr.ph69

vector.ph:                                        ; preds = %.lr.ph69.preheader
  %n.vec = and i64 %wide.trip.count, 2147483640
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %21 = getelementptr inbounds [2 x [200 x i32]], ptr @h, i64 0, i64 %indvars.iv116, i64 %index
  %22 = getelementptr inbounds i8, ptr %21, i64 16
  store <4 x i32> <i32 1, i32 1, i32 1, i32 1>, ptr %21, align 16, !tbaa !5
  store <4 x i32> <i32 1, i32 1, i32 1, i32 1>, ptr %22, align 16, !tbaa !5
  %index.next = add nuw i64 %index, 8
  %23 = icmp eq i64 %index.next, %n.vec
  br i1 %23, label %middle.block, label %vector.body, !llvm.loop !9

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  br i1 %cmp.n, label %.preheader63, label %.lr.ph69.preheader132

.lr.ph:                                           ; preds = %10, %.lr.ph
  %.05966 = phi i32 [ %42, %.lr.ph ], [ 0, %10 ]
  %24 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %1, ptr noundef nonnull %2)
  %25 = load i32, ptr %1, align 4, !tbaa !5
  %26 = add nsw i32 %25, -1
  store i32 %26, ptr %1, align 4, !tbaa !5
  %27 = load i32, ptr %2, align 4, !tbaa !5
  %28 = add nsw i32 %27, -1
  store i32 %28, ptr %2, align 4, !tbaa !5
  %29 = sext i32 %26 to i64
  %30 = getelementptr inbounds [2 x [200 x i32]], ptr @p, i64 0, i64 %indvars.iv116, i64 %29
  %31 = load i32, ptr %30, align 4, !tbaa !5
  %32 = load i32, ptr %12, align 4, !tbaa !5
  %33 = sext i32 %32 to i64
  %34 = getelementptr inbounds [2 x [8000 x %struct.Edge]], ptr @e, i64 0, i64 %indvars.iv116, i64 %33
  store i32 %31, ptr %34, align 8, !tbaa !5
  %.sroa.426.0..sroa_idx = getelementptr inbounds i8, ptr %34, i64 4
  store i32 %28, ptr %.sroa.426.0..sroa_idx, align 4, !tbaa !5
  %35 = add nsw i32 %32, 1
  store i32 %32, ptr %30, align 4, !tbaa !5
  %36 = sext i32 %28 to i64
  %37 = getelementptr inbounds [2 x [200 x i32]], ptr @p, i64 0, i64 %indvars.iv116, i64 %36
  %38 = load i32, ptr %37, align 4, !tbaa !5
  %39 = sext i32 %35 to i64
  %40 = getelementptr inbounds [2 x [8000 x %struct.Edge]], ptr @e, i64 0, i64 %indvars.iv116, i64 %39
  store i32 %38, ptr %40, align 8, !tbaa !5
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %40, i64 4
  store i32 %26, ptr %.sroa.4.0..sroa_idx, align 4, !tbaa !5
  %41 = add nsw i32 %32, 2
  store i32 %41, ptr %12, align 4, !tbaa !5
  store i32 %35, ptr %37, align 4, !tbaa !5
  %42 = add nuw nsw i32 %.05966, 1
  %43 = load i32, ptr @m, align 4, !tbaa !5
  %44 = icmp slt i32 %42, %43
  br i1 %44, label %.lr.ph, label %._crit_edge.loopexit, !llvm.loop !13

.preheader63:                                     ; preds = %.lr.ph69, %middle.block
  br i1 %20, label %.preheader.preheader, label %._crit_edge86

.preheader.preheader:                             ; preds = %.preheader63
  %45 = getelementptr inbounds [2 x [200 x i32]], ptr @h, i64 0, i64 %indvars.iv116
  br label %.preheader

.lr.ph69:                                         ; preds = %.lr.ph69.preheader132, %.lr.ph69
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph69 ], [ %indvars.iv.ph, %.lr.ph69.preheader132 ]
  %46 = getelementptr inbounds [2 x [200 x i32]], ptr @h, i64 0, i64 %indvars.iv116, i64 %indvars.iv
  store i32 1, ptr %46, align 4, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.preheader63, label %.lr.ph69, !llvm.loop !14

.preheader:                                       ; preds = %.preheader.preheader, %._crit_edge84
  %47 = phi i32 [ %52, %._crit_edge84 ], [ %19, %.preheader.preheader ]
  %.05685 = phi i32 [ %54, %._crit_edge84 ], [ 0, %.preheader.preheader ]
  %48 = icmp sgt i32 %47, 0
  br i1 %48, label %.lr.ph83, label %.preheader.._crit_edge84_crit_edge

.preheader.._crit_edge84_crit_edge:               ; preds = %.preheader
  %.pre122 = sext i32 %47 to i64
  br label %._crit_edge84

._crit_edge86:                                    ; preds = %._crit_edge84, %._crit_edge, %.preheader63
  %.lcssa65 = phi i32 [ %19, %.preheader63 ], [ %19, %._crit_edge ], [ %52, %._crit_edge84 ]
  %49 = getelementptr inbounds [2 x [200 x i32]], ptr @h, i64 0, i64 %indvars.iv116
  %50 = sext i32 %.lcssa65 to i64
  %51 = getelementptr inbounds i32, ptr %49, i64 %50
  call void @_ZSt4sortIPiEvT_S1_(ptr noundef nonnull %49, ptr noundef nonnull %51)
  br i1 %11, label %10, label %.preheader64, !llvm.loop !15

._crit_edge84:                                    ; preds = %83, %.preheader.._crit_edge84_crit_edge
  %.pre-phi = phi i64 [ %.pre122, %.preheader.._crit_edge84_crit_edge ], [ %85, %83 ]
  %52 = phi i32 [ %47, %.preheader.._crit_edge84_crit_edge ], [ %84, %83 ]
  %53 = shl nsw i64 %.pre-phi, 2
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 16 %45, ptr nonnull align 16 @hh, i64 %53, i1 false)
  %54 = add nuw nsw i32 %.05685, 1
  %55 = icmp slt i32 %54, %52
  br i1 %55, label %.preheader, label %._crit_edge86, !llvm.loop !16

.lr.ph83:                                         ; preds = %.preheader, %83
  %indvars.iv113 = phi i64 [ %indvars.iv.next114, %83 ], [ 0, %.preheader ]
  %56 = getelementptr inbounds [2 x [200 x i32]], ptr @h, i64 0, i64 %indvars.iv116, i64 %indvars.iv113
  %57 = load i32, ptr %56, align 4, !tbaa !5
  store i32 1, ptr @sz, align 4, !tbaa !5
  store i32 %57, ptr @tmp, align 16, !tbaa !5
  %58 = getelementptr inbounds [2 x [200 x i32]], ptr @p, i64 0, i64 %indvars.iv116, i64 %indvars.iv113
  %.05470 = load i32, ptr %58, align 4, !tbaa !5
  %.not6271 = icmp eq i32 %.05470, -1
  br i1 %.not6271, label %60, label %.lr.ph74

._crit_edge75:                                    ; preds = %.lr.ph74
  %59 = trunc nuw i64 %indvars.iv.next106 to i32
  store i32 %59, ptr @sz, align 4, !tbaa !5
  br label %60

60:                                               ; preds = %._crit_edge75, %.lr.ph83
  %61 = phi i64 [ %indvars.iv.next106, %._crit_edge75 ], [ 1, %.lr.ph83 ]
  %sext = shl i64 %61, 32
  %62 = ashr exact i64 %sext, 30
  %63 = getelementptr inbounds i8, ptr @tmp, i64 %62
  call void @_ZSt4sortIPiEvT_S1_(ptr noundef nonnull @tmp, ptr noundef nonnull %63)
  %64 = getelementptr inbounds [200 x i32], ptr @hh, i64 0, i64 %indvars.iv113
  store i32 0, ptr %64, align 4, !tbaa !5
  %65 = load i32, ptr @sz, align 4, !tbaa !5
  %66 = icmp sgt i32 %65, 0
  br i1 %66, label %.lr.ph79, label %83

.lr.ph79:                                         ; preds = %60
  %wide.trip.count111 = zext nneg i32 %65 to i64
  %xtraiter = and i64 %wide.trip.count111, 1
  %67 = icmp eq i32 %65, 1
  br i1 %67, label %._crit_edge80.unr-lcssa, label %.lr.ph79.new

.lr.ph79.new:                                     ; preds = %.lr.ph79
  %unroll_iter = and i64 %wide.trip.count111, 2147483646
  br label %87

.lr.ph74:                                         ; preds = %.lr.ph83, %.lr.ph74
  %indvars.iv105 = phi i64 [ %indvars.iv.next106, %.lr.ph74 ], [ 1, %.lr.ph83 ]
  %.05472 = phi i32 [ %.054, %.lr.ph74 ], [ %.05470, %.lr.ph83 ]
  %68 = sext i32 %.05472 to i64
  %69 = getelementptr inbounds [2 x [8000 x %struct.Edge]], ptr @e, i64 0, i64 %indvars.iv116, i64 %68
  %70 = getelementptr inbounds i8, ptr %69, i64 4
  %71 = load i32, ptr %70, align 4, !tbaa !18
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds [2 x [200 x i32]], ptr @h, i64 0, i64 %indvars.iv116, i64 %72
  %74 = load i32, ptr %73, align 4, !tbaa !5
  %indvars.iv.next106 = add nuw nsw i64 %indvars.iv105, 1
  %75 = getelementptr inbounds [200 x i32], ptr @tmp, i64 0, i64 %indvars.iv105
  store i32 %74, ptr %75, align 4, !tbaa !5
  %.054 = load i32, ptr %69, align 8, !tbaa !5
  %.not62 = icmp eq i32 %.054, -1
  br i1 %.not62, label %._crit_edge75, label %.lr.ph74, !llvm.loop !20

._crit_edge80.unr-lcssa:                          ; preds = %87, %.lr.ph79
  %.lcssa.ph = phi i64 [ poison, %.lr.ph79 ], [ %100, %87 ]
  %indvars.iv108.unr = phi i64 [ 0, %.lr.ph79 ], [ %indvars.iv.next109.1, %87 ]
  %.unr = phi i64 [ 0, %.lr.ph79 ], [ %100, %87 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge80, label %._crit_edge80.epilog-lcssa

._crit_edge80.epilog-lcssa:                       ; preds = %._crit_edge80.unr-lcssa
  %76 = mul nsw i64 %.unr, 2333
  %77 = getelementptr inbounds [200 x i32], ptr @tmp, i64 0, i64 %indvars.iv108.unr
  %78 = load i32, ptr %77, align 4, !tbaa !5
  %79 = sext i32 %78 to i64
  %80 = add nsw i64 %76, %79
  %81 = srem i64 %80, 985661441
  br label %._crit_edge80

._crit_edge80:                                    ; preds = %._crit_edge80.unr-lcssa, %._crit_edge80.epilog-lcssa
  %.lcssa = phi i64 [ %.lcssa.ph, %._crit_edge80.unr-lcssa ], [ %81, %._crit_edge80.epilog-lcssa ]
  %82 = trunc nsw i64 %.lcssa to i32
  store i32 %82, ptr %64, align 4, !tbaa !5
  br label %83

83:                                               ; preds = %._crit_edge80, %60
  %indvars.iv.next114 = add nuw nsw i64 %indvars.iv113, 1
  %84 = load i32, ptr @n, align 4, !tbaa !5
  %85 = sext i32 %84 to i64
  %86 = icmp slt i64 %indvars.iv.next114, %85
  br i1 %86, label %.lr.ph83, label %._crit_edge84, !llvm.loop !21

87:                                               ; preds = %87, %.lr.ph79.new
  %indvars.iv108 = phi i64 [ 0, %.lr.ph79.new ], [ %indvars.iv.next109.1, %87 ]
  %88 = phi i64 [ 0, %.lr.ph79.new ], [ %100, %87 ]
  %niter = phi i64 [ 0, %.lr.ph79.new ], [ %niter.next.1, %87 ]
  %89 = mul nsw i64 %88, 2333
  %90 = getelementptr inbounds [200 x i32], ptr @tmp, i64 0, i64 %indvars.iv108
  %91 = load i32, ptr %90, align 8, !tbaa !5
  %92 = sext i32 %91 to i64
  %93 = add nsw i64 %89, %92
  %94 = srem i64 %93, 985661441
  %indvars.iv.next109 = or disjoint i64 %indvars.iv108, 1
  %95 = mul nsw i64 %94, 2333
  %96 = getelementptr inbounds [200 x i32], ptr @tmp, i64 0, i64 %indvars.iv.next109
  %97 = load i32, ptr %96, align 4, !tbaa !5
  %98 = sext i32 %97 to i64
  %99 = add nsw i64 %95, %98
  %100 = srem i64 %99, 985661441
  %indvars.iv.next109.1 = add nuw nsw i64 %indvars.iv108, 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_edge80.unr-lcssa, label %87, !llvm.loop !22

._crit_edge91:                                    ; preds = %.lr.ph90
  br i1 %cond.fr, label %._crit_edge91.thread, label %101

._crit_edge91.thread:                             ; preds = %.preheader64, %._crit_edge91
  br label %101

101:                                              ; preds = %._crit_edge91, %._crit_edge91.thread
  %102 = phi ptr [ @.str.2, %._crit_edge91.thread ], [ @.str.3, %._crit_edge91 ]
  %103 = call i32 @puts(ptr noundef nonnull dereferenceable(1) %102)
  %104 = load i32, ptr @t, align 4, !tbaa !5
  %105 = add nsw i32 %104, -1
  store i32 %105, ptr @t, align 4, !tbaa !5
  %.not = icmp eq i32 %104, 0
  br i1 %.not, label %._crit_edge96, label %.lr.ph95, !llvm.loop !23

.lr.ph90:                                         ; preds = %.lr.ph90.preheader, %.lr.ph90
  %indvars.iv119 = phi i64 [ 0, %.lr.ph90.preheader ], [ %indvars.iv.next120, %.lr.ph90 ]
  %106 = getelementptr inbounds [200 x i32], ptr @h, i64 0, i64 %indvars.iv119
  %107 = load i32, ptr %106, align 4, !tbaa !5
  %108 = getelementptr inbounds [200 x i32], ptr getelementptr inbounds (i8, ptr @h, i64 800), i64 0, i64 %indvars.iv119
  %109 = load i32, ptr %108, align 4, !tbaa !5
  %110 = icmp eq i32 %107, %109
  %cond.fr = freeze i1 %110
  %indvars.iv.next120 = add nuw nsw i64 %indvars.iv119, 1
  %111 = icmp ult i64 %indvars.iv.next120, %9
  %112 = and i1 %111, %cond.fr
  br i1 %112, label %.lr.ph90, label %._crit_edge91, !llvm.loop !24

._crit_edge96:                                    ; preds = %101, %0
  ret i32 0
}

; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) 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 nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

; 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) #4

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

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

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

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


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