; LLVM IR from tangjz/acm-icpc :: codeforces/gym (100506I)

; 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.Node = type { i32, i32, i64 }

@t = external dso_local global i32, align 4
@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@cnt = external dso_local global [51 x i32], align 16
@pcnt = external dso_local global [51 x [27 x i32]], align 16
@pen = external dso_local global [51 x i32], align 16
@last = external dso_local global [51 x [27 x [2 x i32]]], align 16
@id = external dso_local global [51 x i32], align 16
@tot = external dso_local global i32, align 4
@Hash = external dso_local global [960991 x i32], align 16
@name = external dso_local global [51 x [27 x i8]], align 16
@pvis = external dso_local global [51 x [27 x i8]], align 16
@e = external dso_local global [51 x %struct.Node], 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 [3 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [13 x i8], align 1

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

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

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

; 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 norecurse uwtable
define dso_local noundef i32 @main() #2 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i64, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca %struct.Node, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca [27 x i8], align 16
  %11 = alloca i8, align 1
  %12 = alloca i64, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %18 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @t)
  br label %19

19:                                               ; preds = %288, %0
  %20 = load i32, ptr @t, align 4, !tbaa !5
  %21 = add nsw i32 %20, -1
  store i32 %21, ptr @t, align 4, !tbaa !5
  %22 = icmp ne i32 %20, 0
  br i1 %22, label %23, label %289

23:                                               ; preds = %19
  store i32 0, ptr @tot, align 4, !tbaa !5
  call void @llvm.memset.p0.i64(ptr align 16 @cnt, i8 0, i64 204, i1 false)
  call void @llvm.memset.p0.i64(ptr align 16 @pcnt, i8 0, i64 5508, i1 false)
  call void @llvm.memset.p0.i64(ptr align 16 @pen, i8 0, i64 204, i1 false)
  call void @llvm.memset.p0.i64(ptr align 16 @pvis, i8 0, i64 1377, i1 false)
  call void @llvm.memset.p0.i64(ptr align 16 @Hash, i8 0, i64 3843964, i1 false)
  %24 = 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) #7
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %25

25:                                               ; preds = %88, %23
  %26 = load i32, ptr %2, align 4, !tbaa !5
  %27 = load i32, ptr @n, align 4, !tbaa !5
  %28 = icmp slt i32 %26, %27
  br i1 %28, label %30, label %29

29:                                               ; preds = %25
  store i32 4, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
  br label %91

30:                                               ; preds = %25
  %31 = load i32, ptr %2, align 4, !tbaa !5
  %32 = sext i32 %31 to i64
  %33 = getelementptr inbounds [51 x [27 x i8]], ptr @name, i64 0, i64 %32
  %34 = getelementptr inbounds [27 x i8], ptr %33, i64 0, i64 0
  %35 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.2, ptr noundef %34)
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #7
  store i64 0, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #7
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %36

36:                                               ; preds = %60, %30
  %37 = load i32, ptr %2, align 4, !tbaa !5
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds [51 x [27 x i8]], ptr @name, i64 0, i64 %38
  %40 = load i32, ptr %5, align 4, !tbaa !5
  %41 = sext i32 %40 to i64
  %42 = getelementptr inbounds [27 x i8], ptr %39, i64 0, i64 %41
  %43 = load i8, ptr %42, align 1, !tbaa !11
  %44 = icmp ne i8 %43, 0
  br i1 %44, label %46, label %45

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

46:                                               ; preds = %36
  %47 = load i64, ptr %4, align 8, !tbaa !9
  %48 = mul i64 %47, 29
  %49 = load i32, ptr %2, align 4, !tbaa !5
  %50 = sext i32 %49 to i64
  %51 = getelementptr inbounds [51 x [27 x i8]], ptr @name, i64 0, i64 %50
  %52 = load i32, ptr %5, align 4, !tbaa !5
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds [27 x i8], ptr %51, i64 0, i64 %53
  %55 = load i8, ptr %54, align 1, !tbaa !11
  %56 = sext i8 %55 to i64
  %57 = add i64 %48, %56
  %58 = sub i64 %57, 97
  %59 = add i64 %58, 1
  store i64 %59, ptr %4, align 8, !tbaa !9
  br label %60

60:                                               ; preds = %46
  %61 = load i32, ptr %5, align 4, !tbaa !5
  %62 = add nsw i32 %61, 1
  store i32 %62, ptr %5, align 4, !tbaa !5
  br label %36, !llvm.loop !12

63:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  %64 = load i64, ptr %4, align 8, !tbaa !9
  %65 = urem i64 %64, 960991
  %66 = trunc i64 %65 to i32
  store i32 %66, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #7
  %67 = getelementptr inbounds %struct.Node, ptr %7, i32 0, i32 0
  %68 = load i32, ptr %6, align 4, !tbaa !5
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds [960991 x i32], ptr @Hash, i64 0, i64 %69
  %71 = load i32, ptr %70, align 4, !tbaa !5
  store i32 %71, ptr %67, align 8, !tbaa !14
  %72 = getelementptr inbounds %struct.Node, ptr %7, i32 0, i32 1
  %73 = load i32, ptr %2, align 4, !tbaa !5
  store i32 %73, ptr %72, align 4, !tbaa !16
  %74 = getelementptr inbounds %struct.Node, ptr %7, i32 0, i32 2
  %75 = load i64, ptr %4, align 8, !tbaa !9
  store i64 %75, ptr %74, align 8, !tbaa !17
  %76 = load i32, ptr @tot, align 4, !tbaa !5
  %77 = add nsw i32 %76, 1
  store i32 %77, ptr @tot, align 4, !tbaa !5
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds [51 x %struct.Node], ptr @e, i64 0, i64 %78
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %79, ptr align 8 %7, i64 16, i1 false), !tbaa.struct !18
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #7
  %80 = load i32, ptr @tot, align 4, !tbaa !5
  %81 = load i32, ptr %6, align 4, !tbaa !5
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds [960991 x i32], ptr @Hash, i64 0, i64 %82
  store i32 %80, ptr %83, align 4, !tbaa !5
  %84 = load i32, ptr %2, align 4, !tbaa !5
  %85 = load i32, ptr %2, align 4, !tbaa !5
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds [51 x i32], ptr @id, i64 0, i64 %86
  store i32 %84, ptr %87, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #7
  br label %88

88:                                               ; preds = %63
  %89 = load i32, ptr %2, align 4, !tbaa !5
  %90 = add nsw i32 %89, 1
  store i32 %90, ptr %2, align 4, !tbaa !5
  br label %25, !llvm.loop !19

91:                                               ; preds = %29
  br label %92

92:                                               ; preds = %236, %91
  %93 = load i32, ptr @m, align 4, !tbaa !5
  %94 = add nsw i32 %93, -1
  store i32 %94, ptr @m, align 4, !tbaa !5
  %95 = icmp ne i32 %93, 0
  br i1 %95, label %96, label %237

96:                                               ; preds = %92
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  call void @llvm.lifetime.start.p0(i64 27, ptr %10) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #7
  %97 = getelementptr inbounds [27 x i8], ptr %10, i64 0, i64 0
  %98 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.3, ptr noundef %8, ptr noundef %97, ptr noundef %11)
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  store i64 0, ptr %12, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  store i32 0, ptr %13, align 4, !tbaa !5
  br label %99

99:                                               ; preds = %117, %96
  %100 = load i32, ptr %13, align 4, !tbaa !5
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds [27 x i8], ptr %10, i64 0, i64 %101
  %103 = load i8, ptr %102, align 1, !tbaa !11
  %104 = icmp ne i8 %103, 0
  br i1 %104, label %106, label %105

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

106:                                              ; preds = %99
  %107 = load i64, ptr %12, align 8, !tbaa !9
  %108 = mul i64 %107, 29
  %109 = load i32, ptr %13, align 4, !tbaa !5
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds [27 x i8], ptr %10, i64 0, i64 %110
  %112 = load i8, ptr %111, align 1, !tbaa !11
  %113 = sext i8 %112 to i64
  %114 = add i64 %108, %113
  %115 = sub i64 %114, 97
  %116 = add i64 %115, 1
  store i64 %116, ptr %12, align 8, !tbaa !9
  br label %117

117:                                              ; preds = %106
  %118 = load i32, ptr %13, align 4, !tbaa !5
  %119 = add nsw i32 %118, 1
  store i32 %119, ptr %13, align 4, !tbaa !5
  br label %99, !llvm.loop !20

120:                                              ; preds = %105
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  %121 = load i64, ptr %12, align 8, !tbaa !9
  %122 = urem i64 %121, 960991
  %123 = trunc i64 %122 to i32
  store i32 %123, ptr %14, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  %124 = load i32, ptr %14, align 4, !tbaa !5
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds [960991 x i32], ptr @Hash, i64 0, i64 %125
  %127 = load i32, ptr %126, align 4, !tbaa !5
  store i32 %127, ptr %15, align 4, !tbaa !5
  br label %128

128:                                              ; preds = %147, %120
  %129 = load i32, ptr %15, align 4, !tbaa !5
  %130 = icmp ne i32 %129, 0
  br i1 %130, label %132, label %131

131:                                              ; preds = %128
  store i32 15, ptr %3, align 4
  br label %153

132:                                              ; preds = %128
  %133 = load i32, ptr %15, align 4, !tbaa !5
  %134 = sext i32 %133 to i64
  %135 = getelementptr inbounds [51 x %struct.Node], ptr @e, i64 0, i64 %134
  %136 = getelementptr inbounds %struct.Node, ptr %135, i32 0, i32 2
  %137 = load i64, ptr %136, align 8, !tbaa !17
  %138 = load i64, ptr %12, align 8, !tbaa !9
  %139 = icmp eq i64 %137, %138
  br i1 %139, label %140, label %146

140:                                              ; preds = %132
  %141 = load i32, ptr %15, align 4, !tbaa !5
  %142 = sext i32 %141 to i64
  %143 = getelementptr inbounds [51 x %struct.Node], ptr @e, i64 0, i64 %142
  %144 = getelementptr inbounds %struct.Node, ptr %143, i32 0, i32 1
  %145 = load i32, ptr %144, align 4, !tbaa !16
  store i32 %145, ptr %9, align 4, !tbaa !5
  store i32 15, ptr %3, align 4
  br label %153

146:                                              ; preds = %132
  br label %147

147:                                              ; preds = %146
  %148 = load i32, ptr %15, align 4, !tbaa !5
  %149 = sext i32 %148 to i64
  %150 = getelementptr inbounds [51 x %struct.Node], ptr @e, i64 0, i64 %149
  %151 = getelementptr inbounds %struct.Node, ptr %150, i32 0, i32 0
  %152 = load i32, ptr %151, align 16, !tbaa !14
  store i32 %152, ptr %15, align 4, !tbaa !5
  br label %128, !llvm.loop !21

153:                                              ; preds = %140, %131
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  br label %154

154:                                              ; preds = %153
  %155 = getelementptr inbounds [27 x i8], ptr %10, i64 0, i64 0
  %156 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.2, ptr noundef %155)
  %157 = getelementptr inbounds [27 x i8], ptr %10, i64 0, i64 0
  %158 = load i8, ptr %157, align 16, !tbaa !11
  %159 = sext i8 %158 to i32
  %160 = icmp eq i32 %159, 114
  br i1 %160, label %161, label %172

161:                                              ; preds = %154
  %162 = load i32, ptr %9, align 4, !tbaa !5
  %163 = sext i32 %162 to i64
  %164 = getelementptr inbounds [51 x [27 x i32]], ptr @pcnt, i64 0, i64 %163
  %165 = load i8, ptr %11, align 1, !tbaa !11
  %166 = sext i8 %165 to i32
  %167 = sub nsw i32 %166, 65
  %168 = sext i32 %167 to i64
  %169 = getelementptr inbounds [27 x i32], ptr %164, i64 0, i64 %168
  %170 = load i32, ptr %169, align 4, !tbaa !5
  %171 = add nsw i32 %170, 1
  store i32 %171, ptr %169, align 4, !tbaa !5
  br label %236

172:                                              ; preds = %154
  %173 = load i32, ptr %9, align 4, !tbaa !5
  %174 = sext i32 %173 to i64
  %175 = getelementptr inbounds [51 x [27 x i8]], ptr @pvis, i64 0, i64 %174
  %176 = load i8, ptr %11, align 1, !tbaa !11
  %177 = sext i8 %176 to i32
  %178 = sub nsw i32 %177, 65
  %179 = sext i32 %178 to i64
  %180 = getelementptr inbounds [27 x i8], ptr %175, i64 0, i64 %179
  %181 = load i8, ptr %180, align 1, !tbaa !22, !range !24, !noundef !25
  %182 = trunc i8 %181 to i1
  br i1 %182, label %235, label %183

183:                                              ; preds = %172
  %184 = load i32, ptr %8, align 4, !tbaa !5
  %185 = load i32, ptr %9, align 4, !tbaa !5
  %186 = sext i32 %185 to i64
  %187 = getelementptr inbounds [51 x [27 x i32]], ptr @pcnt, i64 0, i64 %186
  %188 = load i8, ptr %11, align 1, !tbaa !11
  %189 = sext i8 %188 to i32
  %190 = sub nsw i32 %189, 65
  %191 = sext i32 %190 to i64
  %192 = getelementptr inbounds [27 x i32], ptr %187, i64 0, i64 %191
  %193 = load i32, ptr %192, align 4, !tbaa !5
  %194 = mul nsw i32 %193, 20
  %195 = add nsw i32 %184, %194
  %196 = load i32, ptr %9, align 4, !tbaa !5
  %197 = sext i32 %196 to i64
  %198 = getelementptr inbounds [51 x i32], ptr @pen, i64 0, i64 %197
  %199 = load i32, ptr %198, align 4, !tbaa !5
  %200 = add nsw i32 %199, %195
  store i32 %200, ptr %198, align 4, !tbaa !5
  %201 = load i32, ptr %9, align 4, !tbaa !5
  %202 = sext i32 %201 to i64
  %203 = getelementptr inbounds [51 x [27 x i8]], ptr @pvis, i64 0, i64 %202
  %204 = load i8, ptr %11, align 1, !tbaa !11
  %205 = sext i8 %204 to i32
  %206 = sub nsw i32 %205, 65
  %207 = sext i32 %206 to i64
  %208 = getelementptr inbounds [27 x i8], ptr %203, i64 0, i64 %207
  store i8 1, ptr %208, align 1, !tbaa !22
  %209 = load i32, ptr %8, align 4, !tbaa !5
  %210 = load i32, ptr %9, align 4, !tbaa !5
  %211 = sext i32 %210 to i64
  %212 = getelementptr inbounds [51 x [27 x [2 x i32]]], ptr @last, i64 0, i64 %211
  %213 = load i32, ptr %9, align 4, !tbaa !5
  %214 = sext i32 %213 to i64
  %215 = getelementptr inbounds [51 x i32], ptr @cnt, i64 0, i64 %214
  %216 = load i32, ptr %215, align 4, !tbaa !5
  %217 = sext i32 %216 to i64
  %218 = getelementptr inbounds [27 x [2 x i32]], ptr %212, i64 0, i64 %217
  %219 = getelementptr inbounds [2 x i32], ptr %218, i64 0, i64 0
  store i32 %209, ptr %219, align 8, !tbaa !5
  %220 = load i32, ptr %9, align 4, !tbaa !5
  %221 = sext i32 %220 to i64
  %222 = getelementptr inbounds [51 x i32], ptr @pen, i64 0, i64 %221
  %223 = load i32, ptr %222, align 4, !tbaa !5
  %224 = load i32, ptr %9, align 4, !tbaa !5
  %225 = sext i32 %224 to i64
  %226 = getelementptr inbounds [51 x [27 x [2 x i32]]], ptr @last, i64 0, i64 %225
  %227 = load i32, ptr %9, align 4, !tbaa !5
  %228 = sext i32 %227 to i64
  %229 = getelementptr inbounds [51 x i32], ptr @cnt, i64 0, i64 %228
  %230 = load i32, ptr %229, align 4, !tbaa !5
  %231 = add nsw i32 %230, 1
  store i32 %231, ptr %229, align 4, !tbaa !5
  %232 = sext i32 %230 to i64
  %233 = getelementptr inbounds [27 x [2 x i32]], ptr %226, i64 0, i64 %232
  %234 = getelementptr inbounds [2 x i32], ptr %233, i64 0, i64 1
  store i32 %223, ptr %234, align 4, !tbaa !5
  br label %235

235:                                              ; preds = %183, %172
  br label %236

236:                                              ; preds = %235, %161
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 27, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  br label %92, !llvm.loop !26

237:                                              ; preds = %92
  %238 = load i32, ptr @n, align 4, !tbaa !5
  %239 = sext i32 %238 to i64
  %240 = getelementptr inbounds i32, ptr @id, i64 %239
  call void @_ZSt4sortIPiPFbRKiS2_EEvT_S5_T0_(ptr noundef @id, ptr noundef %240, ptr noundef @_Z3cmpRKiS0_)
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  store i32 0, ptr %16, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  br label %241

241:                                              ; preds = %285, %237
  %242 = load i32, ptr %16, align 4, !tbaa !5
  %243 = load i32, ptr @n, align 4, !tbaa !5
  %244 = icmp slt i32 %242, %243
  br i1 %244, label %246, label %245

245:                                              ; preds = %241
  store i32 18, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  br label %288

246:                                              ; preds = %241
  %247 = load i32, ptr %16, align 4, !tbaa !5
  %248 = icmp ne i32 %247, 0
  br i1 %248, label %249, label %258

249:                                              ; preds = %246
  %250 = load i32, ptr %16, align 4, !tbaa !5
  %251 = sub nsw i32 %250, 1
  %252 = sext i32 %251 to i64
  %253 = getelementptr inbounds [51 x i32], ptr @id, i64 0, i64 %252
  %254 = load i32, ptr %16, align 4, !tbaa !5
  %255 = sext i32 %254 to i64
  %256 = getelementptr inbounds [51 x i32], ptr @id, i64 0, i64 %255
  %257 = call noundef zeroext i1 @_Z5equivRKiS0_(ptr noundef nonnull align 4 dereferenceable(4) %253, ptr noundef nonnull align 4 dereferenceable(4) %256)
  br i1 %257, label %261, label %258

258:                                              ; preds = %249, %246
  %259 = load i32, ptr %16, align 4, !tbaa !5
  %260 = add nsw i32 %259, 1
  store i32 %260, ptr %17, align 4, !tbaa !5
  br label %261

261:                                              ; preds = %258, %249
  %262 = load i32, ptr %17, align 4, !tbaa !5
  %263 = load i32, ptr %16, align 4, !tbaa !5
  %264 = sext i32 %263 to i64
  %265 = getelementptr inbounds [51 x i32], ptr @id, i64 0, i64 %264
  %266 = load i32, ptr %265, align 4, !tbaa !5
  %267 = sext i32 %266 to i64
  %268 = getelementptr inbounds [51 x [27 x i8]], ptr @name, i64 0, i64 %267
  %269 = getelementptr inbounds [27 x i8], ptr %268, i64 0, i64 0
  %270 = load i32, ptr %16, align 4, !tbaa !5
  %271 = sext i32 %270 to i64
  %272 = getelementptr inbounds [51 x i32], ptr @id, i64 0, i64 %271
  %273 = load i32, ptr %272, align 4, !tbaa !5
  %274 = sext i32 %273 to i64
  %275 = getelementptr inbounds [51 x i32], ptr @cnt, i64 0, i64 %274
  %276 = load i32, ptr %275, align 4, !tbaa !5
  %277 = load i32, ptr %16, align 4, !tbaa !5
  %278 = sext i32 %277 to i64
  %279 = getelementptr inbounds [51 x i32], ptr @id, i64 0, i64 %278
  %280 = load i32, ptr %279, align 4, !tbaa !5
  %281 = sext i32 %280 to i64
  %282 = getelementptr inbounds [51 x i32], ptr @pen, i64 0, i64 %281
  %283 = load i32, ptr %282, align 4, !tbaa !5
  %284 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %262, ptr noundef %269, i32 noundef %276, i32 noundef %283)
  br label %285

285:                                              ; preds = %261
  %286 = load i32, ptr %16, align 4, !tbaa !5
  %287 = add nsw i32 %286, 1
  store i32 %287, ptr %16, align 4, !tbaa !5
  br label %241, !llvm.loop !27

288:                                              ; preds = %245
  br label %19, !llvm.loop !28

289:                                              ; preds = %19
  ret i32 0
}

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

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

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

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

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

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 = { 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 #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { 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 #7 = { 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, !10, i64 0}
!10 = !{!"long long", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = !{!15, !6, i64 0}
!15 = !{!"_ZTS4Node", !6, i64 0, !6, i64 4, !10, i64 8}
!16 = !{!15, !6, i64 4}
!17 = !{!15, !10, i64 8}
!18 = !{i64 0, i64 4, !5, i64 4, i64 4, !5, i64 8, i64 8, !9}
!19 = distinct !{!19, !13}
!20 = distinct !{!20, !13}
!21 = distinct !{!21, !13}
!22 = !{!23, !23, i64 0}
!23 = !{!"bool", !7, i64 0}
!24 = !{i8 0, i8 2}
!25 = !{}
!26 = distinct !{!26, !13}
!27 = distinct !{!27, !13}
!28 = distinct !{!28, !13}


; 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.Node = type { i32, i32, i64 }

@t = external dso_local global i32, align 4
@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@cnt = external dso_local local_unnamed_addr global [51 x i32], align 16
@pcnt = external dso_local local_unnamed_addr global [51 x [27 x i32]], align 16
@pen = external dso_local local_unnamed_addr global [51 x i32], align 16
@last = external dso_local local_unnamed_addr global [51 x [27 x [2 x i32]]], align 16
@id = external dso_local global [51 x i32], align 16
@tot = external dso_local local_unnamed_addr global i32, align 4
@Hash = external dso_local local_unnamed_addr global [960991 x i32], align 16
@name = external dso_local global [51 x [27 x i8]], align 16
@pvis = external dso_local local_unnamed_addr global [51 x [27 x i8]], align 16
@e = external dso_local local_unnamed_addr global [51 x %struct.Node], 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 [3 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [13 x i8], align 1

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

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

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

; 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 norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #2 {
  %1 = alloca i32, align 4
  %2 = alloca [27 x i8], align 16
  %3 = alloca i8, align 1
  %4 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @t)
  %5 = load i32, ptr @t, align 4, !tbaa !5
  %6 = add nsw i32 %5, -1
  store i32 %6, ptr @t, align 4, !tbaa !5
  %.not88 = icmp eq i32 %5, 0
  br i1 %.not88, label %._crit_edge93, label %.lr.ph92

.loopexit64:                                      ; preds = %.lr.ph86.peel.next, %96, %._crit_edge81
  %7 = load i32, ptr @t, align 4, !tbaa !5
  %8 = add nsw i32 %7, -1
  store i32 %8, ptr @t, align 4, !tbaa !5
  %.not = icmp eq i32 %7, 0
  br i1 %.not, label %._crit_edge93, label %.lr.ph92, !llvm.loop !9

.lr.ph92:                                         ; preds = %0, %.loopexit64
  %.05289 = phi i32 [ %.153.lcssa, %.loopexit64 ], [ undef, %0 ]
  store i32 0, ptr @tot, align 4, !tbaa !5
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(204) @cnt, i8 0, i64 204, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(5508) @pcnt, i8 0, i64 5508, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(204) @pen, i8 0, i64 204, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(1377) @pvis, i8 0, i64 1377, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(3843964) @Hash, i8 0, i64 3843964, i1 false)
  %9 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull @n, ptr noundef nonnull @m)
  %10 = load i32, ptr @n, align 4, !tbaa !5
  %11 = icmp sgt i32 %10, 0
  br i1 %11, label %.lr.ph70, label %.preheader

.preheader:                                       ; preds = %._crit_edge, %.lr.ph92
  %12 = phi i32 [ %10, %.lr.ph92 ], [ %27, %._crit_edge ]
  %13 = load i32, ptr @m, align 4, !tbaa !5
  %14 = add nsw i32 %13, -1
  store i32 %14, ptr @m, align 4, !tbaa !5
  %.not5978 = icmp eq i32 %13, 0
  br i1 %.not5978, label %._crit_edge81, label %.lr.ph80

.lr.ph70:                                         ; preds = %.lr.ph92, %._crit_edge
  %indvars.iv96 = phi i64 [ %indvars.iv.next97, %._crit_edge ], [ 0, %.lr.ph92 ]
  %15 = getelementptr inbounds [51 x [27 x i8]], ptr @name, i64 0, i64 %indvars.iv96
  %16 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.2, ptr noundef nonnull %15)
  %17 = load i8, ptr %15, align 1, !tbaa !11
  %.not6365 = icmp eq i8 %17, 0
  br i1 %.not6365, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %.lr.ph70
  %.055.lcssa = phi i64 [ 0, %.lr.ph70 ], [ %34, %.lr.ph ]
  %18 = urem i64 %.055.lcssa, 960991
  %19 = getelementptr inbounds [960991 x i32], ptr @Hash, i64 0, i64 %18
  %20 = load i32, ptr %19, align 4, !tbaa !5
  %21 = load i32, ptr @tot, align 4, !tbaa !5
  %22 = add nsw i32 %21, 1
  store i32 %22, ptr @tot, align 4, !tbaa !5
  %23 = sext i32 %22 to i64
  %24 = getelementptr inbounds [51 x %struct.Node], ptr @e, i64 0, i64 %23
  store i32 %20, ptr %24, align 16, !tbaa !5
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %24, i64 4
  %25 = trunc nuw nsw i64 %indvars.iv96 to i32
  store i32 %25, ptr %.sroa.4.0..sroa_idx, align 4, !tbaa !5
  %.sroa.5.0..sroa_idx = getelementptr inbounds i8, ptr %24, i64 8
  store i64 %.055.lcssa, ptr %.sroa.5.0..sroa_idx, align 8, !tbaa !12
  store i32 %22, ptr %19, align 4, !tbaa !5
  %26 = getelementptr inbounds [51 x i32], ptr @id, i64 0, i64 %indvars.iv96
  store i32 %25, ptr %26, align 4, !tbaa !5
  %indvars.iv.next97 = add nuw nsw i64 %indvars.iv96, 1
  %27 = load i32, ptr @n, align 4, !tbaa !5
  %28 = sext i32 %27 to i64
  %29 = icmp slt i64 %indvars.iv.next97, %28
  br i1 %29, label %.lr.ph70, label %.preheader, !llvm.loop !14

.lr.ph:                                           ; preds = %.lr.ph70, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %.lr.ph70 ]
  %30 = phi i8 [ %36, %.lr.ph ], [ %17, %.lr.ph70 ]
  %.05567 = phi i64 [ %34, %.lr.ph ], [ 0, %.lr.ph70 ]
  %31 = mul i64 %.05567, 29
  %32 = sext i8 %30 to i64
  %33 = add i64 %31, -96
  %34 = add i64 %33, %32
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %35 = getelementptr inbounds [51 x [27 x i8]], ptr @name, i64 0, i64 %indvars.iv96, i64 %indvars.iv.next
  %36 = load i8, ptr %35, align 1, !tbaa !11
  %.not63 = icmp eq i8 %36, 0
  br i1 %.not63, label %._crit_edge, label %.lr.ph, !llvm.loop !15

.lr.ph80:                                         ; preds = %.preheader, %88
  %.15379 = phi i32 [ %.254, %88 ], [ %.05289, %.preheader ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #6
  call void @llvm.lifetime.start.p0(i64 27, ptr nonnull %2) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %3) #6
  %37 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.3, ptr noundef nonnull %1, ptr noundef nonnull %2, ptr noundef nonnull %3)
  %38 = load i8, ptr %2, align 16, !tbaa !11
  %.not6171 = icmp eq i8 %38, 0
  br i1 %.not6171, label %._crit_edge76, label %.lr.ph75

._crit_edge76:                                    ; preds = %.lr.ph75, %.lr.ph80
  %.051.lcssa = phi i64 [ 0, %.lr.ph80 ], [ %45, %.lr.ph75 ]
  %39 = urem i64 %.051.lcssa, 960991
  %40 = getelementptr inbounds [960991 x i32], ptr @Hash, i64 0, i64 %39
  br label %48

.lr.ph75:                                         ; preds = %.lr.ph80, %.lr.ph75
  %indvars.iv99 = phi i64 [ %indvars.iv.next100, %.lr.ph75 ], [ 0, %.lr.ph80 ]
  %41 = phi i8 [ %47, %.lr.ph75 ], [ %38, %.lr.ph80 ]
  %.05172 = phi i64 [ %45, %.lr.ph75 ], [ 0, %.lr.ph80 ]
  %42 = mul i64 %.05172, 29
  %43 = sext i8 %41 to i64
  %44 = add i64 %42, -96
  %45 = add i64 %44, %43
  %indvars.iv.next100 = add nuw nsw i64 %indvars.iv99, 1
  %46 = getelementptr inbounds [27 x i8], ptr %2, i64 0, i64 %indvars.iv.next100
  %47 = load i8, ptr %46, align 1, !tbaa !11
  %.not61 = icmp eq i8 %47, 0
  br i1 %.not61, label %._crit_edge76, label %.lr.ph75, !llvm.loop !16

48:                                               ; preds = %49, %._crit_edge76
  %.048.in = phi ptr [ %40, %._crit_edge76 ], [ %51, %49 ]
  %.048 = load i32, ptr %.048.in, align 4, !tbaa !5
  %.not62 = icmp eq i32 %.048, 0
  br i1 %.not62, label %.loopexit, label %49

49:                                               ; preds = %48
  %50 = sext i32 %.048 to i64
  %51 = getelementptr inbounds [51 x %struct.Node], ptr @e, i64 0, i64 %50
  %52 = getelementptr inbounds i8, ptr %51, i64 8
  %53 = load i64, ptr %52, align 8, !tbaa !17
  %54 = icmp eq i64 %53, %.051.lcssa
  br i1 %54, label %55, label %48, !llvm.loop !19

55:                                               ; preds = %49
  %56 = getelementptr inbounds i8, ptr %51, i64 4
  %57 = load i32, ptr %56, align 4, !tbaa !20
  br label %.loopexit

.loopexit:                                        ; preds = %48, %55
  %.254 = phi i32 [ %57, %55 ], [ %.15379, %48 ]
  %58 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.2, ptr noundef nonnull %2)
  %59 = load i8, ptr %2, align 16, !tbaa !11
  %60 = icmp eq i8 %59, 114
  %61 = sext i32 %.254 to i64
  %62 = load i8, ptr %3, align 1, !tbaa !11
  %63 = sext i8 %62 to i64
  %64 = add nsw i64 %63, -65
  br i1 %60, label %65, label %69

65:                                               ; preds = %.loopexit
  %66 = getelementptr inbounds [51 x [27 x i32]], ptr @pcnt, i64 0, i64 %61, i64 %64
  %67 = load i32, ptr %66, align 4, !tbaa !5
  %68 = add nsw i32 %67, 1
  store i32 %68, ptr %66, align 4, !tbaa !5
  br label %88

69:                                               ; preds = %.loopexit
  %70 = getelementptr inbounds [51 x [27 x i8]], ptr @pvis, i64 0, i64 %61, i64 %64
  %71 = load i8, ptr %70, align 1, !tbaa !21, !range !23, !noundef !24
  %72 = trunc nuw i8 %71 to i1
  br i1 %72, label %88, label %73

73:                                               ; preds = %69
  %74 = load i32, ptr %1, align 4, !tbaa !5
  %75 = getelementptr inbounds [51 x [27 x i32]], ptr @pcnt, i64 0, i64 %61, i64 %64
  %76 = load i32, ptr %75, align 4, !tbaa !5
  %77 = mul nsw i32 %76, 20
  %78 = add nsw i32 %77, %74
  %79 = getelementptr inbounds [51 x i32], ptr @pen, i64 0, i64 %61
  %80 = load i32, ptr %79, align 4, !tbaa !5
  %81 = add nsw i32 %78, %80
  store i32 %81, ptr %79, align 4, !tbaa !5
  store i8 1, ptr %70, align 1, !tbaa !21
  %82 = getelementptr inbounds [51 x i32], ptr @cnt, i64 0, i64 %61
  %83 = load i32, ptr %82, align 4, !tbaa !5
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds [51 x [27 x [2 x i32]]], ptr @last, i64 0, i64 %61, i64 %84
  store i32 %74, ptr %85, align 8, !tbaa !5
  %86 = add nsw i32 %83, 1
  store i32 %86, ptr %82, align 4, !tbaa !5
  %87 = getelementptr inbounds [51 x [27 x [2 x i32]]], ptr @last, i64 0, i64 %61, i64 %84, i64 1
  store i32 %81, ptr %87, align 4, !tbaa !5
  br label %88

88:                                               ; preds = %69, %73, %65
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 27, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #6
  %89 = load i32, ptr @m, align 4, !tbaa !5
  %90 = add nsw i32 %89, -1
  store i32 %90, ptr @m, align 4, !tbaa !5
  %.not59 = icmp eq i32 %89, 0
  br i1 %.not59, label %._crit_edge81.loopexit, label %.lr.ph80, !llvm.loop !25

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

._crit_edge81:                                    ; preds = %._crit_edge81.loopexit, %.preheader
  %91 = phi i32 [ %12, %.preheader ], [ %.pre, %._crit_edge81.loopexit ]
  %.153.lcssa = phi i32 [ %.05289, %.preheader ], [ %.254, %._crit_edge81.loopexit ]
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds i32, ptr @id, i64 %92
  call void @_ZSt4sortIPiPFbRKiS2_EEvT_S5_T0_(ptr noundef nonnull @id, ptr noundef nonnull %93, ptr noundef nonnull @_Z3cmpRKiS0_)
  %94 = load i32, ptr @n, align 4, !tbaa !5
  %95 = icmp sgt i32 %94, 0
  br i1 %95, label %96, label %.loopexit64

96:                                               ; preds = %._crit_edge81
  %.pre107.pre = load i32, ptr @id, align 16, !tbaa !5
  %.phi.trans.insert.phi.trans.insert = sext i32 %.pre107.pre to i64
  %.phi.trans.insert108.phi.trans.insert = getelementptr inbounds [51 x i32], ptr @cnt, i64 0, i64 %.phi.trans.insert.phi.trans.insert
  %.pre109.pre = load i32, ptr %.phi.trans.insert108.phi.trans.insert, align 4, !tbaa !5
  %.phi.trans.insert110.phi.trans.insert = getelementptr inbounds [51 x i32], ptr @pen, i64 0, i64 %.phi.trans.insert.phi.trans.insert
  %.pre111.pre = load i32, ptr %.phi.trans.insert110.phi.trans.insert, align 4, !tbaa !5
  %97 = getelementptr inbounds [51 x [27 x i8]], ptr @name, i64 0, i64 %.phi.trans.insert.phi.trans.insert
  %98 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, i32 noundef 1, ptr noundef nonnull %97, i32 noundef %.pre109.pre, i32 noundef %.pre111.pre)
  %99 = load i32, ptr @n, align 4, !tbaa !5
  %100 = icmp sgt i32 %99, 1
  br i1 %100, label %.lr.ph86.peel.next, label %.loopexit64

.lr.ph86.peel.next:                               ; preds = %96, %.lr.ph86.peel.next
  %indvars.iv101 = phi i64 [ %.pre127, %.lr.ph86.peel.next ], [ 1, %96 ]
  %.184 = phi i32 [ %.2, %.lr.ph86.peel.next ], [ 1, %96 ]
  %101 = add nsw i64 %indvars.iv101, -1
  %102 = getelementptr inbounds [51 x i32], ptr @id, i64 0, i64 %101
  %103 = getelementptr inbounds [51 x i32], ptr @id, i64 0, i64 %indvars.iv101
  %104 = call noundef zeroext i1 @_Z5equivRKiS0_(ptr noundef nonnull align 4 dereferenceable(4) %102, ptr noundef nonnull align 4 dereferenceable(4) %103)
  %.pre127 = add nuw nsw i64 %indvars.iv101, 1
  %105 = trunc nuw nsw i64 %.pre127 to i32
  %.2 = select i1 %104, i32 %.184, i32 %105
  %106 = getelementptr inbounds [51 x i32], ptr @id, i64 0, i64 %indvars.iv101
  %107 = load i32, ptr %106, align 4, !tbaa !5
  %108 = sext i32 %107 to i64
  %109 = getelementptr inbounds [51 x [27 x i8]], ptr @name, i64 0, i64 %108
  %110 = getelementptr inbounds [51 x i32], ptr @cnt, i64 0, i64 %108
  %111 = load i32, ptr %110, align 4, !tbaa !5
  %112 = getelementptr inbounds [51 x i32], ptr @pen, i64 0, i64 %108
  %113 = load i32, ptr %112, align 4, !tbaa !5
  %114 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, i32 noundef %.2, ptr noundef nonnull %109, i32 noundef %111, i32 noundef %113)
  %115 = load i32, ptr @n, align 4, !tbaa !5
  %116 = sext i32 %115 to i64
  %117 = icmp slt i64 %.pre127, %116
  br i1 %117, label %.lr.ph86.peel.next, label %.loopexit64, !llvm.loop !26

._crit_edge93:                                    ; preds = %.loopexit64, %0
  ret i32 0
}

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

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

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

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

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 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 #3 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
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}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"long long", !7, i64 0}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}
!17 = !{!18, !13, i64 8}
!18 = !{!"_ZTS4Node", !6, i64 0, !6, i64 4, !13, i64 8}
!19 = distinct !{!19, !10}
!20 = !{!18, !6, i64 4}
!21 = !{!22, !22, i64 0}
!22 = !{!"bool", !7, i64 0}
!23 = !{i8 0, i8 2}
!24 = !{}
!25 = distinct !{!25, !10}
!26 = distinct !{!26, !10, !27}
!27 = !{!"llvm.loop.peeled.count", i32 1}


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