; LLVM IR from tangjz/acm-icpc :: lydsy (1054)

; 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 { [4 x [4 x i32]], i32 }

@goal = external dso_local global [4 x [4 x i32]], align 16
@Q = external dso_local global [131072 x %struct.Node], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [4 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 [5 x i8], align 1
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
  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
  store i32 0, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 5, ptr %6) #6
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %7

7:                                                ; preds = %33, %0
  %8 = load i32, ptr %2, align 4, !tbaa !5
  %9 = icmp slt i32 %8, 4
  br i1 %9, label %10, label %36

10:                                               ; preds = %7
  %11 = getelementptr inbounds [5 x i8], ptr %6, i64 0, i64 0
  %12 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %11)
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %13

13:                                               ; preds = %29, %10
  %14 = load i32, ptr %3, align 4, !tbaa !5
  %15 = icmp slt i32 %14, 4
  br i1 %15, label %16, label %32

16:                                               ; preds = %13
  %17 = load i32, ptr %3, align 4, !tbaa !5
  %18 = sext i32 %17 to i64
  %19 = getelementptr inbounds [5 x i8], ptr %6, i64 0, i64 %18
  %20 = load i8, ptr %19, align 1, !tbaa !9
  %21 = sext i8 %20 to i32
  %22 = sub nsw i32 %21, 48
  %23 = load i32, ptr %2, align 4, !tbaa !5
  %24 = sext i32 %23 to i64
  %25 = getelementptr inbounds [4 x [4 x i32]], ptr @Q, i64 0, i64 %24
  %26 = load i32, ptr %3, align 4, !tbaa !5
  %27 = sext i32 %26 to i64
  %28 = getelementptr inbounds [4 x i32], ptr %25, i64 0, i64 %27
  store i32 %22, ptr %28, align 4, !tbaa !5
  br label %29

29:                                               ; preds = %16
  %30 = load i32, ptr %3, align 4, !tbaa !5
  %31 = add nsw i32 %30, 1
  store i32 %31, ptr %3, align 4, !tbaa !5
  br label %13, !llvm.loop !10

32:                                               ; preds = %13
  br label %33

33:                                               ; preds = %32
  %34 = load i32, ptr %2, align 4, !tbaa !5
  %35 = add nsw i32 %34, 1
  store i32 %35, ptr %2, align 4, !tbaa !5
  br label %7, !llvm.loop !12

36:                                               ; preds = %7
  store i32 0, ptr getelementptr inbounds (%struct.Node, ptr @Q, i32 0, i32 1), align 16, !tbaa !13
  %37 = call noundef zeroext i1 @_ZN4Node4hashEv(ptr noundef nonnull align 4 dereferenceable(68) @Q)
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %38

38:                                               ; preds = %64, %36
  %39 = load i32, ptr %2, align 4, !tbaa !5
  %40 = icmp slt i32 %39, 4
  br i1 %40, label %41, label %67

41:                                               ; preds = %38
  %42 = getelementptr inbounds [5 x i8], ptr %6, i64 0, i64 0
  %43 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %42)
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %44

44:                                               ; preds = %60, %41
  %45 = load i32, ptr %3, align 4, !tbaa !5
  %46 = icmp slt i32 %45, 4
  br i1 %46, label %47, label %63

47:                                               ; preds = %44
  %48 = load i32, ptr %3, align 4, !tbaa !5
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds [5 x i8], ptr %6, i64 0, i64 %49
  %51 = load i8, ptr %50, align 1, !tbaa !9
  %52 = sext i8 %51 to i32
  %53 = sub nsw i32 %52, 48
  %54 = load i32, ptr %2, align 4, !tbaa !5
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds [4 x [4 x i32]], ptr @goal, i64 0, i64 %55
  %57 = load i32, ptr %3, align 4, !tbaa !5
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds [4 x i32], ptr %56, i64 0, i64 %58
  store i32 %53, ptr %59, align 4, !tbaa !5
  br label %60

60:                                               ; preds = %47
  %61 = load i32, ptr %3, align 4, !tbaa !5
  %62 = add nsw i32 %61, 1
  store i32 %62, ptr %3, align 4, !tbaa !5
  br label %44, !llvm.loop !15

63:                                               ; preds = %44
  br label %64

64:                                               ; preds = %63
  %65 = load i32, ptr %2, align 4, !tbaa !5
  %66 = add nsw i32 %65, 1
  store i32 %66, ptr %2, align 4, !tbaa !5
  br label %38, !llvm.loop !16

67:                                               ; preds = %38
  %68 = call noundef zeroext i1 @_ZN4Node3cmpEv(ptr noundef nonnull align 4 dereferenceable(68) @Q)
  br i1 %68, label %69, label %70

69:                                               ; preds = %67
  br label %377

70:                                               ; preds = %67
  br label %71

71:                                               ; preds = %373, %70
  %72 = load i32, ptr %4, align 4, !tbaa !5
  %73 = load i32, ptr %5, align 4, !tbaa !5
  %74 = icmp sle i32 %72, %73
  br i1 %74, label %75, label %376

75:                                               ; preds = %71
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %76

76:                                               ; preds = %370, %75
  %77 = load i32, ptr %2, align 4, !tbaa !5
  %78 = icmp slt i32 %77, 4
  br i1 %78, label %79, label %373

79:                                               ; preds = %76
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %80

80:                                               ; preds = %366, %79
  %81 = load i32, ptr %3, align 4, !tbaa !5
  %82 = icmp slt i32 %81, 4
  br i1 %82, label %83, label %369

83:                                               ; preds = %80
  %84 = load i32, ptr %4, align 4, !tbaa !5
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds [131072 x %struct.Node], ptr @Q, i64 0, i64 %85
  %87 = getelementptr inbounds %struct.Node, ptr %86, i32 0, i32 0
  %88 = load i32, ptr %2, align 4, !tbaa !5
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds [4 x [4 x i32]], ptr %87, i64 0, i64 %89
  %91 = load i32, ptr %3, align 4, !tbaa !5
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds [4 x i32], ptr %90, i64 0, i64 %92
  %94 = load i32, ptr %93, align 4, !tbaa !5
  %95 = icmp ne i32 %94, 0
  br i1 %95, label %96, label %365

96:                                               ; preds = %83
  %97 = load i32, ptr %2, align 4, !tbaa !5
  %98 = icmp sgt i32 %97, 0
  br i1 %98, label %99, label %163

99:                                               ; preds = %96
  %100 = load i32, ptr %4, align 4, !tbaa !5
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds [131072 x %struct.Node], ptr @Q, i64 0, i64 %101
  %103 = getelementptr inbounds %struct.Node, ptr %102, i32 0, i32 0
  %104 = load i32, ptr %2, align 4, !tbaa !5
  %105 = sub nsw i32 %104, 1
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds [4 x [4 x i32]], ptr %103, i64 0, i64 %106
  %108 = load i32, ptr %3, align 4, !tbaa !5
  %109 = sext i32 %108 to i64
  %110 = getelementptr inbounds [4 x i32], ptr %107, i64 0, i64 %109
  %111 = load i32, ptr %110, align 4, !tbaa !5
  %112 = icmp ne i32 %111, 0
  br i1 %112, label %163, label %113

113:                                              ; preds = %99
  %114 = load i32, ptr %4, align 4, !tbaa !5
  %115 = sext i32 %114 to i64
  %116 = getelementptr inbounds [131072 x %struct.Node], ptr @Q, i64 0, i64 %115
  %117 = load i32, ptr %5, align 4, !tbaa !5
  %118 = add nsw i32 %117, 1
  store i32 %118, ptr %5, align 4, !tbaa !5
  %119 = sext i32 %118 to i64
  %120 = getelementptr inbounds [131072 x %struct.Node], ptr @Q, i64 0, i64 %119
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %120, ptr align 4 %116, i64 68, i1 false), !tbaa.struct !17
  %121 = load i32, ptr %5, align 4, !tbaa !5
  %122 = sext i32 %121 to i64
  %123 = getelementptr inbounds [131072 x %struct.Node], ptr @Q, i64 0, i64 %122
  %124 = getelementptr inbounds %struct.Node, ptr %123, i32 0, i32 0
  %125 = load i32, ptr %2, align 4, !tbaa !5
  %126 = sub nsw i32 %125, 1
  %127 = sext i32 %126 to i64
  %128 = getelementptr inbounds [4 x [4 x i32]], ptr %124, i64 0, i64 %127
  %129 = load i32, ptr %3, align 4, !tbaa !5
  %130 = sext i32 %129 to i64
  %131 = getelementptr inbounds [4 x i32], ptr %128, i64 0, i64 %130
  %132 = load i32, ptr %5, align 4, !tbaa !5
  %133 = sext i32 %132 to i64
  %134 = getelementptr inbounds [131072 x %struct.Node], ptr @Q, i64 0, i64 %133
  %135 = getelementptr inbounds %struct.Node, ptr %134, i32 0, i32 0
  %136 = load i32, ptr %2, align 4, !tbaa !5
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds [4 x [4 x i32]], ptr %135, i64 0, i64 %137
  %139 = load i32, ptr %3, align 4, !tbaa !5
  %140 = sext i32 %139 to i64
  %141 = getelementptr inbounds [4 x i32], ptr %138, i64 0, i64 %140
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %131, ptr noundef nonnull align 4 dereferenceable(4) %141) #6
  %142 = load i32, ptr %5, align 4, !tbaa !5
  %143 = sext i32 %142 to i64
  %144 = getelementptr inbounds [131072 x %struct.Node], ptr @Q, i64 0, i64 %143
  %145 = getelementptr inbounds %struct.Node, ptr %144, i32 0, i32 1
  %146 = load i32, ptr %145, align 4, !tbaa !13
  %147 = add nsw i32 %146, 1
  store i32 %147, ptr %145, align 4, !tbaa !13
  %148 = load i32, ptr %5, align 4, !tbaa !5
  %149 = sext i32 %148 to i64
  %150 = getelementptr inbounds [131072 x %struct.Node], ptr @Q, i64 0, i64 %149
  %151 = call noundef zeroext i1 @_ZN4Node4hashEv(ptr noundef nonnull align 4 dereferenceable(68) %150)
  br i1 %151, label %155, label %152

152:                                              ; preds = %113
  %153 = load i32, ptr %5, align 4, !tbaa !5
  %154 = add nsw i32 %153, -1
  store i32 %154, ptr %5, align 4, !tbaa !5
  br label %162

155:                                              ; preds = %113
  %156 = load i32, ptr %5, align 4, !tbaa !5
  %157 = sext i32 %156 to i64
  %158 = getelementptr inbounds [131072 x %struct.Node], ptr @Q, i64 0, i64 %157
  %159 = call noundef zeroext i1 @_ZN4Node3cmpEv(ptr noundef nonnull align 4 dereferenceable(68) %158)
  br i1 %159, label %160, label %161

160:                                              ; preds = %155
  br label %377

161:                                              ; preds = %155
  br label %162

162:                                              ; preds = %161, %152
  br label %163

163:                                              ; preds = %162, %99, %96
  %164 = load i32, ptr %2, align 4, !tbaa !5
  %165 = icmp slt i32 %164, 3
  br i1 %165, label %166, label %230

166:                                              ; preds = %163
  %167 = load i32, ptr %4, align 4, !tbaa !5
  %168 = sext i32 %167 to i64
  %169 = getelementptr inbounds [131072 x %struct.Node], ptr @Q, i64 0, i64 %168
  %170 = getelementptr inbounds %struct.Node, ptr %169, i32 0, i32 0
  %171 = load i32, ptr %2, align 4, !tbaa !5
  %172 = add nsw i32 %171, 1
  %173 = sext i32 %172 to i64
  %174 = getelementptr inbounds [4 x [4 x i32]], ptr %170, i64 0, i64 %173
  %175 = load i32, ptr %3, align 4, !tbaa !5
  %176 = sext i32 %175 to i64
  %177 = getelementptr inbounds [4 x i32], ptr %174, i64 0, i64 %176
  %178 = load i32, ptr %177, align 4, !tbaa !5
  %179 = icmp ne i32 %178, 0
  br i1 %179, label %230, label %180

180:                                              ; preds = %166
  %181 = load i32, ptr %4, align 4, !tbaa !5
  %182 = sext i32 %181 to i64
  %183 = getelementptr inbounds [131072 x %struct.Node], ptr @Q, i64 0, i64 %182
  %184 = load i32, ptr %5, align 4, !tbaa !5
  %185 = add nsw i32 %184, 1
  store i32 %185, ptr %5, align 4, !tbaa !5
  %186 = sext i32 %185 to i64
  %187 = getelementptr inbounds [131072 x %struct.Node], ptr @Q, i64 0, i64 %186
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %187, ptr align 4 %183, i64 68, i1 false), !tbaa.struct !17
  %188 = load i32, ptr %5, align 4, !tbaa !5
  %189 = sext i32 %188 to i64
  %190 = getelementptr inbounds [131072 x %struct.Node], ptr @Q, i64 0, i64 %189
  %191 = getelementptr inbounds %struct.Node, ptr %190, i32 0, i32 0
  %192 = load i32, ptr %2, align 4, !tbaa !5
  %193 = sext i32 %192 to i64
  %194 = getelementptr inbounds [4 x [4 x i32]], ptr %191, i64 0, i64 %193
  %195 = load i32, ptr %3, align 4, !tbaa !5
  %196 = sext i32 %195 to i64
  %197 = getelementptr inbounds [4 x i32], ptr %194, i64 0, i64 %196
  %198 = load i32, ptr %5, align 4, !tbaa !5
  %199 = sext i32 %198 to i64
  %200 = getelementptr inbounds [131072 x %struct.Node], ptr @Q, i64 0, i64 %199
  %201 = getelementptr inbounds %struct.Node, ptr %200, i32 0, i32 0
  %202 = load i32, ptr %2, align 4, !tbaa !5
  %203 = add nsw i32 %202, 1
  %204 = sext i32 %203 to i64
  %205 = getelementptr inbounds [4 x [4 x i32]], ptr %201, i64 0, i64 %204
  %206 = load i32, ptr %3, align 4, !tbaa !5
  %207 = sext i32 %206 to i64
  %208 = getelementptr inbounds [4 x i32], ptr %205, i64 0, i64 %207
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %197, ptr noundef nonnull align 4 dereferenceable(4) %208) #6
  %209 = load i32, ptr %5, align 4, !tbaa !5
  %210 = sext i32 %209 to i64
  %211 = getelementptr inbounds [131072 x %struct.Node], ptr @Q, i64 0, i64 %210
  %212 = getelementptr inbounds %struct.Node, ptr %211, i32 0, i32 1
  %213 = load i32, ptr %212, align 4, !tbaa !13
  %214 = add nsw i32 %213, 1
  store i32 %214, ptr %212, align 4, !tbaa !13
  %215 = load i32, ptr %5, align 4, !tbaa !5
  %216 = sext i32 %215 to i64
  %217 = getelementptr inbounds [131072 x %struct.Node], ptr @Q, i64 0, i64 %216
  %218 = call noundef zeroext i1 @_ZN4Node4hashEv(ptr noundef nonnull align 4 dereferenceable(68) %217)
  br i1 %218, label %222, label %219

219:                                              ; preds = %180
  %220 = load i32, ptr %5, align 4, !tbaa !5
  %221 = add nsw i32 %220, -1
  store i32 %221, ptr %5, align 4, !tbaa !5
  br label %229

222:                                              ; preds = %180
  %223 = load i32, ptr %5, align 4, !tbaa !5
  %224 = sext i32 %223 to i64
  %225 = getelementptr inbounds [131072 x %struct.Node], ptr @Q, i64 0, i64 %224
  %226 = call noundef zeroext i1 @_ZN4Node3cmpEv(ptr noundef nonnull align 4 dereferenceable(68) %225)
  br i1 %226, label %227, label %228

227:                                              ; preds = %222
  br label %377

228:                                              ; preds = %222
  br label %229

229:                                              ; preds = %228, %219
  br label %230

230:                                              ; preds = %229, %166, %163
  %231 = load i32, ptr %3, align 4, !tbaa !5
  %232 = icmp sgt i32 %231, 0
  br i1 %232, label %233, label %297

233:                                              ; preds = %230
  %234 = load i32, ptr %4, align 4, !tbaa !5
  %235 = sext i32 %234 to i64
  %236 = getelementptr inbounds [131072 x %struct.Node], ptr @Q, i64 0, i64 %235
  %237 = getelementptr inbounds %struct.Node, ptr %236, i32 0, i32 0
  %238 = load i32, ptr %2, align 4, !tbaa !5
  %239 = sext i32 %238 to i64
  %240 = getelementptr inbounds [4 x [4 x i32]], ptr %237, i64 0, i64 %239
  %241 = load i32, ptr %3, align 4, !tbaa !5
  %242 = sub nsw i32 %241, 1
  %243 = sext i32 %242 to i64
  %244 = getelementptr inbounds [4 x i32], ptr %240, i64 0, i64 %243
  %245 = load i32, ptr %244, align 4, !tbaa !5
  %246 = icmp ne i32 %245, 0
  br i1 %246, label %297, label %247

247:                                              ; preds = %233
  %248 = load i32, ptr %4, align 4, !tbaa !5
  %249 = sext i32 %248 to i64
  %250 = getelementptr inbounds [131072 x %struct.Node], ptr @Q, i64 0, i64 %249
  %251 = load i32, ptr %5, align 4, !tbaa !5
  %252 = add nsw i32 %251, 1
  store i32 %252, ptr %5, align 4, !tbaa !5
  %253 = sext i32 %252 to i64
  %254 = getelementptr inbounds [131072 x %struct.Node], ptr @Q, i64 0, i64 %253
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %254, ptr align 4 %250, i64 68, i1 false), !tbaa.struct !17
  %255 = load i32, ptr %5, align 4, !tbaa !5
  %256 = sext i32 %255 to i64
  %257 = getelementptr inbounds [131072 x %struct.Node], ptr @Q, i64 0, i64 %256
  %258 = getelementptr inbounds %struct.Node, ptr %257, i32 0, i32 0
  %259 = load i32, ptr %2, align 4, !tbaa !5
  %260 = sext i32 %259 to i64
  %261 = getelementptr inbounds [4 x [4 x i32]], ptr %258, i64 0, i64 %260
  %262 = load i32, ptr %3, align 4, !tbaa !5
  %263 = sub nsw i32 %262, 1
  %264 = sext i32 %263 to i64
  %265 = getelementptr inbounds [4 x i32], ptr %261, i64 0, i64 %264
  %266 = load i32, ptr %5, align 4, !tbaa !5
  %267 = sext i32 %266 to i64
  %268 = getelementptr inbounds [131072 x %struct.Node], ptr @Q, i64 0, i64 %267
  %269 = getelementptr inbounds %struct.Node, ptr %268, i32 0, i32 0
  %270 = load i32, ptr %2, align 4, !tbaa !5
  %271 = sext i32 %270 to i64
  %272 = getelementptr inbounds [4 x [4 x i32]], ptr %269, i64 0, i64 %271
  %273 = load i32, ptr %3, align 4, !tbaa !5
  %274 = sext i32 %273 to i64
  %275 = getelementptr inbounds [4 x i32], ptr %272, i64 0, i64 %274
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %265, ptr noundef nonnull align 4 dereferenceable(4) %275) #6
  %276 = load i32, ptr %5, align 4, !tbaa !5
  %277 = sext i32 %276 to i64
  %278 = getelementptr inbounds [131072 x %struct.Node], ptr @Q, i64 0, i64 %277
  %279 = getelementptr inbounds %struct.Node, ptr %278, i32 0, i32 1
  %280 = load i32, ptr %279, align 4, !tbaa !13
  %281 = add nsw i32 %280, 1
  store i32 %281, ptr %279, align 4, !tbaa !13
  %282 = load i32, ptr %5, align 4, !tbaa !5
  %283 = sext i32 %282 to i64
  %284 = getelementptr inbounds [131072 x %struct.Node], ptr @Q, i64 0, i64 %283
  %285 = call noundef zeroext i1 @_ZN4Node4hashEv(ptr noundef nonnull align 4 dereferenceable(68) %284)
  br i1 %285, label %289, label %286

286:                                              ; preds = %247
  %287 = load i32, ptr %5, align 4, !tbaa !5
  %288 = add nsw i32 %287, -1
  store i32 %288, ptr %5, align 4, !tbaa !5
  br label %296

289:                                              ; preds = %247
  %290 = load i32, ptr %5, align 4, !tbaa !5
  %291 = sext i32 %290 to i64
  %292 = getelementptr inbounds [131072 x %struct.Node], ptr @Q, i64 0, i64 %291
  %293 = call noundef zeroext i1 @_ZN4Node3cmpEv(ptr noundef nonnull align 4 dereferenceable(68) %292)
  br i1 %293, label %294, label %295

294:                                              ; preds = %289
  br label %377

295:                                              ; preds = %289
  br label %296

296:                                              ; preds = %295, %286
  br label %297

297:                                              ; preds = %296, %233, %230
  %298 = load i32, ptr %3, align 4, !tbaa !5
  %299 = icmp slt i32 %298, 3
  br i1 %299, label %300, label %364

300:                                              ; preds = %297
  %301 = load i32, ptr %4, align 4, !tbaa !5
  %302 = sext i32 %301 to i64
  %303 = getelementptr inbounds [131072 x %struct.Node], ptr @Q, i64 0, i64 %302
  %304 = getelementptr inbounds %struct.Node, ptr %303, i32 0, i32 0
  %305 = load i32, ptr %2, align 4, !tbaa !5
  %306 = sext i32 %305 to i64
  %307 = getelementptr inbounds [4 x [4 x i32]], ptr %304, i64 0, i64 %306
  %308 = load i32, ptr %3, align 4, !tbaa !5
  %309 = add nsw i32 %308, 1
  %310 = sext i32 %309 to i64
  %311 = getelementptr inbounds [4 x i32], ptr %307, i64 0, i64 %310
  %312 = load i32, ptr %311, align 4, !tbaa !5
  %313 = icmp ne i32 %312, 0
  br i1 %313, label %364, label %314

314:                                              ; preds = %300
  %315 = load i32, ptr %4, align 4, !tbaa !5
  %316 = sext i32 %315 to i64
  %317 = getelementptr inbounds [131072 x %struct.Node], ptr @Q, i64 0, i64 %316
  %318 = load i32, ptr %5, align 4, !tbaa !5
  %319 = add nsw i32 %318, 1
  store i32 %319, ptr %5, align 4, !tbaa !5
  %320 = sext i32 %319 to i64
  %321 = getelementptr inbounds [131072 x %struct.Node], ptr @Q, i64 0, i64 %320
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %321, ptr align 4 %317, i64 68, i1 false), !tbaa.struct !17
  %322 = load i32, ptr %5, align 4, !tbaa !5
  %323 = sext i32 %322 to i64
  %324 = getelementptr inbounds [131072 x %struct.Node], ptr @Q, i64 0, i64 %323
  %325 = getelementptr inbounds %struct.Node, ptr %324, i32 0, i32 0
  %326 = load i32, ptr %2, align 4, !tbaa !5
  %327 = sext i32 %326 to i64
  %328 = getelementptr inbounds [4 x [4 x i32]], ptr %325, i64 0, i64 %327
  %329 = load i32, ptr %3, align 4, !tbaa !5
  %330 = sext i32 %329 to i64
  %331 = getelementptr inbounds [4 x i32], ptr %328, i64 0, i64 %330
  %332 = load i32, ptr %5, align 4, !tbaa !5
  %333 = sext i32 %332 to i64
  %334 = getelementptr inbounds [131072 x %struct.Node], ptr @Q, i64 0, i64 %333
  %335 = getelementptr inbounds %struct.Node, ptr %334, i32 0, i32 0
  %336 = load i32, ptr %2, align 4, !tbaa !5
  %337 = sext i32 %336 to i64
  %338 = getelementptr inbounds [4 x [4 x i32]], ptr %335, i64 0, i64 %337
  %339 = load i32, ptr %3, align 4, !tbaa !5
  %340 = add nsw i32 %339, 1
  %341 = sext i32 %340 to i64
  %342 = getelementptr inbounds [4 x i32], ptr %338, i64 0, i64 %341
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %331, ptr noundef nonnull align 4 dereferenceable(4) %342) #6
  %343 = load i32, ptr %5, align 4, !tbaa !5
  %344 = sext i32 %343 to i64
  %345 = getelementptr inbounds [131072 x %struct.Node], ptr @Q, i64 0, i64 %344
  %346 = getelementptr inbounds %struct.Node, ptr %345, i32 0, i32 1
  %347 = load i32, ptr %346, align 4, !tbaa !13
  %348 = add nsw i32 %347, 1
  store i32 %348, ptr %346, align 4, !tbaa !13
  %349 = load i32, ptr %5, align 4, !tbaa !5
  %350 = sext i32 %349 to i64
  %351 = getelementptr inbounds [131072 x %struct.Node], ptr @Q, i64 0, i64 %350
  %352 = call noundef zeroext i1 @_ZN4Node4hashEv(ptr noundef nonnull align 4 dereferenceable(68) %351)
  br i1 %352, label %356, label %353

353:                                              ; preds = %314
  %354 = load i32, ptr %5, align 4, !tbaa !5
  %355 = add nsw i32 %354, -1
  store i32 %355, ptr %5, align 4, !tbaa !5
  br label %363

356:                                              ; preds = %314
  %357 = load i32, ptr %5, align 4, !tbaa !5
  %358 = sext i32 %357 to i64
  %359 = getelementptr inbounds [131072 x %struct.Node], ptr @Q, i64 0, i64 %358
  %360 = call noundef zeroext i1 @_ZN4Node3cmpEv(ptr noundef nonnull align 4 dereferenceable(68) %359)
  br i1 %360, label %361, label %362

361:                                              ; preds = %356
  br label %377

362:                                              ; preds = %356
  br label %363

363:                                              ; preds = %362, %353
  br label %364

364:                                              ; preds = %363, %300, %297
  br label %365

365:                                              ; preds = %364, %83
  br label %366

366:                                              ; preds = %365
  %367 = load i32, ptr %3, align 4, !tbaa !5
  %368 = add nsw i32 %367, 1
  store i32 %368, ptr %3, align 4, !tbaa !5
  br label %80, !llvm.loop !18

369:                                              ; preds = %80
  br label %370

370:                                              ; preds = %369
  %371 = load i32, ptr %2, align 4, !tbaa !5
  %372 = add nsw i32 %371, 1
  store i32 %372, ptr %2, align 4, !tbaa !5
  br label %76, !llvm.loop !19

373:                                              ; preds = %76
  %374 = load i32, ptr %4, align 4, !tbaa !5
  %375 = add nsw i32 %374, 1
  store i32 %375, ptr %4, align 4, !tbaa !5
  br label %71, !llvm.loop !20

376:                                              ; preds = %71
  br label %377

377:                                              ; preds = %376, %361, %294, %227, %160, %69
  %378 = load i32, ptr %5, align 4, !tbaa !5
  %379 = sext i32 %378 to i64
  %380 = getelementptr inbounds [131072 x %struct.Node], ptr @Q, i64 0, i64 %379
  %381 = getelementptr inbounds %struct.Node, ptr %380, i32 0, i32 1
  %382 = load i32, ptr %381, align 4, !tbaa !13
  %383 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %382)
  call void @llvm.lifetime.end.p0(i64 5, 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
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  ret i32 0
}

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN4Node4hashEv(ptr noundef nonnull align 4 dereferenceable(68)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN4Node3cmpEv(ptr noundef nonnull align 4 dereferenceable(68)) #3 align 2

; 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: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #5

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

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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 = { 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 #4 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }

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

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


; 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 { [4 x [4 x i32]], i32 }

@goal = external dso_local local_unnamed_addr global [4 x [4 x i32]], align 16
@Q = external dso_local global [131072 x %struct.Node], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: mustprogress norecurse nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca [5 x i8], align 4
  call void @llvm.lifetime.start.p0(i64 5, ptr nonnull %1) #6
  %2 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %1)
  %3 = load <4 x i8>, ptr %1, align 4, !tbaa !5
  %4 = sext <4 x i8> %3 to <4 x i16>
  %5 = add nsw <4 x i16> %4, <i16 -48, i16 -48, i16 -48, i16 -48>
  %6 = sext <4 x i16> %5 to <4 x i32>
  store <4 x i32> %6, ptr @Q, align 16, !tbaa !8
  %7 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %1)
  %8 = load <4 x i8>, ptr %1, align 4, !tbaa !5
  %9 = sext <4 x i8> %8 to <4 x i16>
  %10 = add nsw <4 x i16> %9, <i16 -48, i16 -48, i16 -48, i16 -48>
  %11 = sext <4 x i16> %10 to <4 x i32>
  store <4 x i32> %11, ptr getelementptr inbounds (i8, ptr @Q, i64 16), align 16, !tbaa !8
  %12 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %1)
  %13 = load <4 x i8>, ptr %1, align 4, !tbaa !5
  %14 = sext <4 x i8> %13 to <4 x i16>
  %15 = add nsw <4 x i16> %14, <i16 -48, i16 -48, i16 -48, i16 -48>
  %16 = sext <4 x i16> %15 to <4 x i32>
  store <4 x i32> %16, ptr getelementptr inbounds (i8, ptr @Q, i64 32), align 16, !tbaa !8
  %17 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %1)
  %18 = load <4 x i8>, ptr %1, align 4, !tbaa !5
  %19 = sext <4 x i8> %18 to <4 x i16>
  %20 = add nsw <4 x i16> %19, <i16 -48, i16 -48, i16 -48, i16 -48>
  %21 = sext <4 x i16> %20 to <4 x i32>
  store <4 x i32> %21, ptr getelementptr inbounds (i8, ptr @Q, i64 48), align 16, !tbaa !8
  store i32 0, ptr getelementptr inbounds (i8, ptr @Q, i64 64), align 16, !tbaa !10
  %22 = call noundef zeroext i1 @_ZN4Node4hashEv(ptr noundef nonnull align 4 dereferenceable(68) @Q)
  %23 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %1)
  %24 = load <4 x i8>, ptr %1, align 4, !tbaa !5
  %25 = sext <4 x i8> %24 to <4 x i16>
  %26 = add nsw <4 x i16> %25, <i16 -48, i16 -48, i16 -48, i16 -48>
  %27 = sext <4 x i16> %26 to <4 x i32>
  store <4 x i32> %27, ptr @goal, align 16, !tbaa !8
  %28 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %1)
  %29 = load <4 x i8>, ptr %1, align 4, !tbaa !5
  %30 = sext <4 x i8> %29 to <4 x i16>
  %31 = add nsw <4 x i16> %30, <i16 -48, i16 -48, i16 -48, i16 -48>
  %32 = sext <4 x i16> %31 to <4 x i32>
  store <4 x i32> %32, ptr getelementptr inbounds (i8, ptr @goal, i64 16), align 16, !tbaa !8
  %33 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %1)
  %34 = load <4 x i8>, ptr %1, align 4, !tbaa !5
  %35 = sext <4 x i8> %34 to <4 x i16>
  %36 = add nsw <4 x i16> %35, <i16 -48, i16 -48, i16 -48, i16 -48>
  %37 = sext <4 x i16> %36 to <4 x i32>
  store <4 x i32> %37, ptr getelementptr inbounds (i8, ptr @goal, i64 32), align 16, !tbaa !8
  %38 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %1)
  %39 = load <4 x i8>, ptr %1, align 4, !tbaa !5
  %40 = sext <4 x i8> %39 to <4 x i16>
  %41 = add nsw <4 x i16> %40, <i16 -48, i16 -48, i16 -48, i16 -48>
  %42 = sext <4 x i16> %41 to <4 x i32>
  store <4 x i32> %42, ptr getelementptr inbounds (i8, ptr @goal, i64 48), align 16, !tbaa !8
  %43 = call noundef zeroext i1 @_ZN4Node3cmpEv(ptr noundef nonnull align 4 dereferenceable(68) @Q)
  br i1 %43, label %.loopexit, label %.preheader112

.preheader112:                                    ; preds = %0, %159
  %indvars.iv142 = phi i64 [ %indvars.iv.next143, %159 ], [ 0, %0 ]
  %.0127 = phi i32 [ %.6150, %159 ], [ 0, %0 ]
  %44 = getelementptr inbounds [131072 x %struct.Node], ptr @Q, i64 0, i64 %indvars.iv142
  br label %.preheader

.preheader:                                       ; preds = %.preheader112, %.loopexit135
  %indvars.iv138 = phi i64 [ 0, %.preheader112 ], [ %indvars.iv.next139, %.loopexit135 ]
  %.1125 = phi i32 [ %.0127, %.preheader112 ], [ %.6150, %.loopexit135 ]
  %.not97 = icmp eq i64 %indvars.iv138, 0
  %45 = add nsw i64 %indvars.iv138, -1
  %.not99 = icmp eq i64 %indvars.iv138, 3
  %indvars.iv.next139 = add nuw nsw i64 %indvars.iv138, 1
  %46 = getelementptr inbounds [4 x [4 x i32]], ptr %44, i64 0, i64 %indvars.iv138, i64 0
  %47 = load i32, ptr %46, align 4, !tbaa !8
  %.not96.peel = icmp eq i32 %47, 0
  br i1 %.not96.peel, label %.peel.next.preheader, label %48

48:                                               ; preds = %.preheader
  br i1 %.not97, label %.thread.peel, label %49

49:                                               ; preds = %48
  %50 = getelementptr inbounds [4 x [4 x i32]], ptr %44, i64 0, i64 %45, i64 0
  %51 = load i32, ptr %50, align 4, !tbaa !8
  %.not98.peel = icmp eq i32 %51, 0
  br i1 %.not98.peel, label %52, label %64

52:                                               ; preds = %49
  %53 = add nsw i32 %.1125, 1
  %54 = sext i32 %53 to i64
  %55 = getelementptr inbounds [131072 x %struct.Node], ptr @Q, i64 0, i64 %54
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(68) %55, ptr noundef nonnull align 4 dereferenceable(68) %44, i64 68, i1 false), !tbaa.struct !12
  %56 = getelementptr inbounds [4 x [4 x i32]], ptr %55, i64 0, i64 %45, i64 0
  %57 = getelementptr inbounds [4 x [4 x i32]], ptr %55, i64 0, i64 %indvars.iv138, i64 0
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %56, ptr noundef nonnull align 4 dereferenceable(4) %57) #6
  %58 = getelementptr inbounds i8, ptr %55, i64 64
  %59 = load i32, ptr %58, align 4, !tbaa !10
  %60 = add nsw i32 %59, 1
  store i32 %60, ptr %58, align 4, !tbaa !10
  %61 = call noundef zeroext i1 @_ZN4Node4hashEv(ptr noundef nonnull align 4 dereferenceable(68) %55)
  br i1 %61, label %62, label %64

62:                                               ; preds = %52
  %63 = call noundef zeroext i1 @_ZN4Node3cmpEv(ptr noundef nonnull align 4 dereferenceable(68) %55)
  br i1 %63, label %.loopexit, label %64

64:                                               ; preds = %62, %52, %49
  %.3.peel = phi i32 [ %.1125, %49 ], [ %53, %62 ], [ %.1125, %52 ]
  br i1 %.not99, label %.thread108.peel, label %.thread.peel

.thread.peel:                                     ; preds = %64, %48
  %.3107.peel = phi i32 [ %.3.peel, %64 ], [ %.1125, %48 ]
  %65 = getelementptr inbounds [4 x [4 x i32]], ptr %44, i64 0, i64 %indvars.iv.next139, i64 0
  %66 = load i32, ptr %65, align 4, !tbaa !8
  %.not100.peel = icmp eq i32 %66, 0
  br i1 %.not100.peel, label %67, label %.thread108.peel

67:                                               ; preds = %.thread.peel
  %68 = add nsw i32 %.3107.peel, 1
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds [131072 x %struct.Node], ptr @Q, i64 0, i64 %69
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(68) %70, ptr noundef nonnull align 4 dereferenceable(68) %44, i64 68, i1 false), !tbaa.struct !12
  %71 = getelementptr inbounds [4 x [4 x i32]], ptr %70, i64 0, i64 %indvars.iv138, i64 0
  %72 = getelementptr inbounds [4 x [4 x i32]], ptr %70, i64 0, i64 %indvars.iv.next139, i64 0
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %71, ptr noundef nonnull align 4 dereferenceable(4) %72) #6
  %73 = getelementptr inbounds i8, ptr %70, i64 64
  %74 = load i32, ptr %73, align 4, !tbaa !10
  %75 = add nsw i32 %74, 1
  store i32 %75, ptr %73, align 4, !tbaa !10
  %76 = call noundef zeroext i1 @_ZN4Node4hashEv(ptr noundef nonnull align 4 dereferenceable(68) %70)
  br i1 %76, label %77, label %.thread108.peel

77:                                               ; preds = %67
  %78 = call noundef zeroext i1 @_ZN4Node3cmpEv(ptr noundef nonnull align 4 dereferenceable(68) %70)
  br i1 %78, label %.loopexit, label %.thread108.peel

.thread108.peel:                                  ; preds = %64, %.thread.peel, %67, %77
  %.4.peel = phi i32 [ %.3107.peel, %.thread.peel ], [ %68, %77 ], [ %.3.peel, %64 ], [ %.3107.peel, %67 ]
  %79 = getelementptr inbounds [4 x [4 x i32]], ptr %44, i64 0, i64 %indvars.iv138, i64 1
  %80 = load i32, ptr %79, align 4, !tbaa !8
  %.not104.peel = icmp eq i32 %80, 0
  br i1 %.not104.peel, label %81, label %.peel.next.preheader

81:                                               ; preds = %.thread108.peel
  %82 = add nsw i32 %.4.peel, 1
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds [131072 x %struct.Node], ptr @Q, i64 0, i64 %83
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(68) %84, ptr noundef nonnull align 4 dereferenceable(68) %44, i64 68, i1 false), !tbaa.struct !12
  %85 = getelementptr inbounds [4 x [4 x i32]], ptr %84, i64 0, i64 %indvars.iv138, i64 0
  %86 = getelementptr inbounds [4 x [4 x i32]], ptr %84, i64 0, i64 %indvars.iv138, i64 1
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %85, ptr noundef nonnull align 4 dereferenceable(4) %86) #6
  %87 = getelementptr inbounds i8, ptr %84, i64 64
  %88 = load i32, ptr %87, align 4, !tbaa !10
  %89 = add nsw i32 %88, 1
  store i32 %89, ptr %87, align 4, !tbaa !10
  %90 = call noundef zeroext i1 @_ZN4Node4hashEv(ptr noundef nonnull align 4 dereferenceable(68) %84)
  br i1 %90, label %91, label %.peel.next.preheader

91:                                               ; preds = %81
  %92 = call noundef zeroext i1 @_ZN4Node3cmpEv(ptr noundef nonnull align 4 dereferenceable(68) %84)
  br i1 %92, label %.loopexit, label %.peel.next.preheader

.peel.next.preheader:                             ; preds = %.preheader, %.thread108.peel, %81, %91
  %.2123.ph = phi i32 [ %82, %91 ], [ %.4.peel, %81 ], [ %.4.peel, %.thread108.peel ], [ %.1125, %.preheader ]
  br label %.peel.next

.peel.next:                                       ; preds = %.peel.next.preheader, %158
  %indvars.iv = phi i64 [ %indvars.iv.next, %158 ], [ 1, %.peel.next.preheader ]
  %.2123 = phi i32 [ %.6, %158 ], [ %.2123.ph, %.peel.next.preheader ]
  %93 = getelementptr inbounds [4 x [4 x i32]], ptr %44, i64 0, i64 %indvars.iv138, i64 %indvars.iv
  %94 = load i32, ptr %93, align 4, !tbaa !8
  %.not96 = icmp eq i32 %94, 0
  br i1 %.not96, label %158, label %95

95:                                               ; preds = %.peel.next
  br i1 %.not97, label %.thread, label %96

96:                                               ; preds = %95
  %97 = getelementptr inbounds [4 x [4 x i32]], ptr %44, i64 0, i64 %45, i64 %indvars.iv
  %98 = load i32, ptr %97, align 4, !tbaa !8
  %.not98 = icmp eq i32 %98, 0
  br i1 %.not98, label %99, label %111

99:                                               ; preds = %96
  %100 = add nsw i32 %.2123, 1
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds [131072 x %struct.Node], ptr @Q, i64 0, i64 %101
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(68) %102, ptr noundef nonnull align 4 dereferenceable(68) %44, i64 68, i1 false), !tbaa.struct !12
  %103 = getelementptr inbounds [4 x [4 x i32]], ptr %102, i64 0, i64 %45, i64 %indvars.iv
  %104 = getelementptr inbounds [4 x [4 x i32]], ptr %102, i64 0, i64 %indvars.iv138, i64 %indvars.iv
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %103, ptr noundef nonnull align 4 dereferenceable(4) %104) #6
  %105 = getelementptr inbounds i8, ptr %102, i64 64
  %106 = load i32, ptr %105, align 4, !tbaa !10
  %107 = add nsw i32 %106, 1
  store i32 %107, ptr %105, align 4, !tbaa !10
  %108 = call noundef zeroext i1 @_ZN4Node4hashEv(ptr noundef nonnull align 4 dereferenceable(68) %102)
  br i1 %108, label %109, label %111

109:                                              ; preds = %99
  %110 = call noundef zeroext i1 @_ZN4Node3cmpEv(ptr noundef nonnull align 4 dereferenceable(68) %102)
  br i1 %110, label %.loopexit, label %111

111:                                              ; preds = %99, %109, %96
  %.3 = phi i32 [ %.2123, %96 ], [ %100, %109 ], [ %.2123, %99 ]
  br i1 %.not99, label %126, label %.thread

.thread:                                          ; preds = %95, %111
  %.3107 = phi i32 [ %.3, %111 ], [ %.2123, %95 ]
  %112 = getelementptr inbounds [4 x [4 x i32]], ptr %44, i64 0, i64 %indvars.iv.next139, i64 %indvars.iv
  %113 = load i32, ptr %112, align 4, !tbaa !8
  %.not100 = icmp eq i32 %113, 0
  br i1 %.not100, label %114, label %126

114:                                              ; preds = %.thread
  %115 = add nsw i32 %.3107, 1
  %116 = sext i32 %115 to i64
  %117 = getelementptr inbounds [131072 x %struct.Node], ptr @Q, i64 0, i64 %116
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(68) %117, ptr noundef nonnull align 4 dereferenceable(68) %44, i64 68, i1 false), !tbaa.struct !12
  %118 = getelementptr inbounds [4 x [4 x i32]], ptr %117, i64 0, i64 %indvars.iv138, i64 %indvars.iv
  %119 = getelementptr inbounds [4 x [4 x i32]], ptr %117, i64 0, i64 %indvars.iv.next139, i64 %indvars.iv
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %118, ptr noundef nonnull align 4 dereferenceable(4) %119) #6
  %120 = getelementptr inbounds i8, ptr %117, i64 64
  %121 = load i32, ptr %120, align 4, !tbaa !10
  %122 = add nsw i32 %121, 1
  store i32 %122, ptr %120, align 4, !tbaa !10
  %123 = call noundef zeroext i1 @_ZN4Node4hashEv(ptr noundef nonnull align 4 dereferenceable(68) %117)
  br i1 %123, label %124, label %126

124:                                              ; preds = %114
  %125 = call noundef zeroext i1 @_ZN4Node3cmpEv(ptr noundef nonnull align 4 dereferenceable(68) %117)
  br i1 %125, label %.loopexit, label %126

126:                                              ; preds = %111, %.thread, %124, %114
  %.4 = phi i32 [ %.3107, %.thread ], [ %115, %124 ], [ %.3, %111 ], [ %.3107, %114 ]
  %127 = add nsw i64 %indvars.iv, -1
  %128 = getelementptr inbounds [4 x [4 x i32]], ptr %44, i64 0, i64 %indvars.iv138, i64 %127
  %129 = load i32, ptr %128, align 4, !tbaa !8
  %.not102 = icmp eq i32 %129, 0
  br i1 %.not102, label %130, label %142

130:                                              ; preds = %126
  %131 = add nsw i32 %.4, 1
  %132 = sext i32 %131 to i64
  %133 = getelementptr inbounds [131072 x %struct.Node], ptr @Q, i64 0, i64 %132
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(68) %133, ptr noundef nonnull align 4 dereferenceable(68) %44, i64 68, i1 false), !tbaa.struct !12
  %134 = getelementptr inbounds [4 x [4 x i32]], ptr %133, i64 0, i64 %indvars.iv138, i64 %127
  %135 = getelementptr inbounds [4 x [4 x i32]], ptr %133, i64 0, i64 %indvars.iv138, i64 %indvars.iv
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %134, ptr noundef nonnull align 4 dereferenceable(4) %135) #6
  %136 = getelementptr inbounds i8, ptr %133, i64 64
  %137 = load i32, ptr %136, align 4, !tbaa !10
  %138 = add nsw i32 %137, 1
  store i32 %138, ptr %136, align 4, !tbaa !10
  %139 = call noundef zeroext i1 @_ZN4Node4hashEv(ptr noundef nonnull align 4 dereferenceable(68) %133)
  br i1 %139, label %140, label %142

140:                                              ; preds = %130
  %141 = call noundef zeroext i1 @_ZN4Node3cmpEv(ptr noundef nonnull align 4 dereferenceable(68) %133)
  br i1 %141, label %.loopexit, label %142

142:                                              ; preds = %130, %140, %126
  %.5 = phi i32 [ %.4, %126 ], [ %131, %140 ], [ %.4, %130 ]
  %.not103 = icmp eq i64 %indvars.iv, 3
  br i1 %.not103, label %.loopexit135, label %.thread108

.thread108:                                       ; preds = %142
  %143 = add nuw nsw i64 %indvars.iv, 1
  %144 = getelementptr inbounds [4 x [4 x i32]], ptr %44, i64 0, i64 %indvars.iv138, i64 %143
  %145 = load i32, ptr %144, align 4, !tbaa !8
  %.not104 = icmp eq i32 %145, 0
  br i1 %.not104, label %146, label %158

146:                                              ; preds = %.thread108
  %147 = add nsw i32 %.5, 1
  %148 = sext i32 %147 to i64
  %149 = getelementptr inbounds [131072 x %struct.Node], ptr @Q, i64 0, i64 %148
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(68) %149, ptr noundef nonnull align 4 dereferenceable(68) %44, i64 68, i1 false), !tbaa.struct !12
  %150 = getelementptr inbounds [4 x [4 x i32]], ptr %149, i64 0, i64 %indvars.iv138, i64 %indvars.iv
  %151 = getelementptr inbounds [4 x [4 x i32]], ptr %149, i64 0, i64 %indvars.iv138, i64 %143
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %150, ptr noundef nonnull align 4 dereferenceable(4) %151) #6
  %152 = getelementptr inbounds i8, ptr %149, i64 64
  %153 = load i32, ptr %152, align 4, !tbaa !10
  %154 = add nsw i32 %153, 1
  store i32 %154, ptr %152, align 4, !tbaa !10
  %155 = call noundef zeroext i1 @_ZN4Node4hashEv(ptr noundef nonnull align 4 dereferenceable(68) %149)
  br i1 %155, label %156, label %158

156:                                              ; preds = %146
  %157 = call noundef zeroext i1 @_ZN4Node3cmpEv(ptr noundef nonnull align 4 dereferenceable(68) %149)
  br i1 %157, label %.loopexit, label %158

158:                                              ; preds = %146, %.peel.next, %156, %.thread108
  %.6 = phi i32 [ %.5, %.thread108 ], [ %147, %156 ], [ %.2123, %.peel.next ], [ %.5, %146 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 4
  br i1 %exitcond.not, label %.loopexit135, label %.peel.next, !llvm.loop !13

.loopexit135:                                     ; preds = %142, %158
  %.6150 = phi i32 [ %.6, %158 ], [ %.5, %142 ]
  %exitcond141.not = icmp eq i64 %indvars.iv.next139, 4
  br i1 %exitcond141.not, label %159, label %.preheader, !llvm.loop !16

159:                                              ; preds = %.loopexit135
  %indvars.iv.next143 = add nuw nsw i64 %indvars.iv142, 1
  %160 = sext i32 %.6150 to i64
  %.not.not = icmp slt i64 %indvars.iv142, %160
  br i1 %.not.not, label %.preheader112, label %.loopexit, !llvm.loop !17

.loopexit:                                        ; preds = %159, %62, %77, %91, %156, %140, %124, %109, %0
  %.7 = phi i32 [ 0, %0 ], [ %147, %156 ], [ %131, %140 ], [ %115, %124 ], [ %100, %109 ], [ %82, %91 ], [ %68, %77 ], [ %53, %62 ], [ %.6150, %159 ]
  %161 = sext i32 %.7 to i64
  %162 = getelementptr inbounds [131072 x %struct.Node], ptr @Q, i64 0, i64 %161, i32 1
  %163 = load i32, ptr %162, align 4, !tbaa !10
  %164 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %163)
  call void @llvm.lifetime.end.p0(i64 5, ptr nonnull %1) #6
  ret i32 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: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN4Node4hashEv(ptr noundef nonnull align 4 dereferenceable(68)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN4Node3cmpEv(ptr noundef nonnull align 4 dereferenceable(68)) local_unnamed_addr #3 align 2

; 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: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #5

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

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

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

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

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


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