; LLVM IR from ImChong/Practice_LeetCode_C :: F02_Programming_Topics/F01_Data_Structure/06_Binary_Tree/08_nlevelOrder (main)

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

; Function Attrs: nounwind uwtable
declare dso_local ptr @levelOrder(ptr noundef, ptr noundef, ptr noundef) #0

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

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #2

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

; Function Attrs: nounwind
declare void @free(ptr noundef) #3

; Function Attrs: nounwind uwtable
declare dso_local ptr @newNode(i32 noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @Validate_Array2D(i8 noundef signext, ptr noundef, ptr noundef, i32 noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @Array_Free2D(ptr noundef, i32 noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @BTree_Free(ptr noundef) #0

; Function Attrs: nounwind uwtable
define dso_local void @Test3() #0 {
  %1 = alloca ptr, align 8
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %1) #4
  %19 = call noalias ptr @malloc(i64 noundef 80) #5
  store ptr %19, ptr %1, align 8, !tbaa !5
  %20 = call noalias ptr @malloc(i64 noundef 40) #5
  %21 = load ptr, ptr %1, align 8, !tbaa !5
  %22 = getelementptr inbounds ptr, ptr %21, i64 0
  store ptr %20, ptr %22, align 8, !tbaa !5
  %23 = load ptr, ptr %1, align 8, !tbaa !5
  %24 = getelementptr inbounds ptr, ptr %23, i64 0
  %25 = load ptr, ptr %24, align 8, !tbaa !5
  %26 = getelementptr inbounds i32, ptr %25, i64 0
  store i32 1, ptr %26, align 4, !tbaa !9
  %27 = call noalias ptr @malloc(i64 noundef 40) #5
  %28 = load ptr, ptr %1, align 8, !tbaa !5
  %29 = getelementptr inbounds ptr, ptr %28, i64 1
  store ptr %27, ptr %29, align 8, !tbaa !5
  %30 = load ptr, ptr %1, align 8, !tbaa !5
  %31 = getelementptr inbounds ptr, ptr %30, i64 1
  %32 = load ptr, ptr %31, align 8, !tbaa !5
  %33 = getelementptr inbounds i32, ptr %32, i64 0
  store i32 2, ptr %33, align 4, !tbaa !9
  %34 = load ptr, ptr %1, align 8, !tbaa !5
  %35 = getelementptr inbounds ptr, ptr %34, i64 1
  %36 = load ptr, ptr %35, align 8, !tbaa !5
  %37 = getelementptr inbounds i32, ptr %36, i64 1
  store i32 3, ptr %37, align 4, !tbaa !9
  %38 = load ptr, ptr %1, align 8, !tbaa !5
  %39 = getelementptr inbounds ptr, ptr %38, i64 1
  %40 = load ptr, ptr %39, align 8, !tbaa !5
  %41 = getelementptr inbounds i32, ptr %40, i64 2
  store i32 4, ptr %41, align 4, !tbaa !9
  %42 = load ptr, ptr %1, align 8, !tbaa !5
  %43 = getelementptr inbounds ptr, ptr %42, i64 1
  %44 = load ptr, ptr %43, align 8, !tbaa !5
  %45 = getelementptr inbounds i32, ptr %44, i64 3
  store i32 5, ptr %45, align 4, !tbaa !9
  %46 = call noalias ptr @malloc(i64 noundef 40) #5
  %47 = load ptr, ptr %1, align 8, !tbaa !5
  %48 = getelementptr inbounds ptr, ptr %47, i64 2
  store ptr %46, ptr %48, align 8, !tbaa !5
  %49 = load ptr, ptr %1, align 8, !tbaa !5
  %50 = getelementptr inbounds ptr, ptr %49, i64 2
  %51 = load ptr, ptr %50, align 8, !tbaa !5
  %52 = getelementptr inbounds i32, ptr %51, i64 0
  store i32 6, ptr %52, align 4, !tbaa !9
  %53 = load ptr, ptr %1, align 8, !tbaa !5
  %54 = getelementptr inbounds ptr, ptr %53, i64 2
  %55 = load ptr, ptr %54, align 8, !tbaa !5
  %56 = getelementptr inbounds i32, ptr %55, i64 1
  store i32 7, ptr %56, align 4, !tbaa !9
  %57 = load ptr, ptr %1, align 8, !tbaa !5
  %58 = getelementptr inbounds ptr, ptr %57, i64 2
  %59 = load ptr, ptr %58, align 8, !tbaa !5
  %60 = getelementptr inbounds i32, ptr %59, i64 2
  store i32 8, ptr %60, align 4, !tbaa !9
  %61 = load ptr, ptr %1, align 8, !tbaa !5
  %62 = getelementptr inbounds ptr, ptr %61, i64 2
  %63 = load ptr, ptr %62, align 8, !tbaa !5
  %64 = getelementptr inbounds i32, ptr %63, i64 3
  store i32 9, ptr %64, align 4, !tbaa !9
  %65 = load ptr, ptr %1, align 8, !tbaa !5
  %66 = getelementptr inbounds ptr, ptr %65, i64 2
  %67 = load ptr, ptr %66, align 8, !tbaa !5
  %68 = getelementptr inbounds i32, ptr %67, i64 4
  store i32 10, ptr %68, align 4, !tbaa !9
  %69 = call noalias ptr @malloc(i64 noundef 40) #5
  %70 = load ptr, ptr %1, align 8, !tbaa !5
  %71 = getelementptr inbounds ptr, ptr %70, i64 3
  store ptr %69, ptr %71, align 8, !tbaa !5
  %72 = load ptr, ptr %1, align 8, !tbaa !5
  %73 = getelementptr inbounds ptr, ptr %72, i64 3
  %74 = load ptr, ptr %73, align 8, !tbaa !5
  %75 = getelementptr inbounds i32, ptr %74, i64 0
  store i32 11, ptr %75, align 4, !tbaa !9
  %76 = load ptr, ptr %1, align 8, !tbaa !5
  %77 = getelementptr inbounds ptr, ptr %76, i64 3
  %78 = load ptr, ptr %77, align 8, !tbaa !5
  %79 = getelementptr inbounds i32, ptr %78, i64 1
  store i32 12, ptr %79, align 4, !tbaa !9
  %80 = load ptr, ptr %1, align 8, !tbaa !5
  %81 = getelementptr inbounds ptr, ptr %80, i64 3
  %82 = load ptr, ptr %81, align 8, !tbaa !5
  %83 = getelementptr inbounds i32, ptr %82, i64 2
  store i32 13, ptr %83, align 4, !tbaa !9
  %84 = call noalias ptr @malloc(i64 noundef 40) #5
  %85 = load ptr, ptr %1, align 8, !tbaa !5
  %86 = getelementptr inbounds ptr, ptr %85, i64 4
  store ptr %84, ptr %86, align 8, !tbaa !5
  %87 = load ptr, ptr %1, align 8, !tbaa !5
  %88 = getelementptr inbounds ptr, ptr %87, i64 4
  %89 = load ptr, ptr %88, align 8, !tbaa !5
  %90 = getelementptr inbounds i32, ptr %89, i64 0
  store i32 14, ptr %90, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #4
  %91 = call ptr @newNode(i32 noundef 1)
  store ptr %91, ptr %2, align 8, !tbaa !5
  %92 = load ptr, ptr %2, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.Node, ptr %92, i32 0, i32 1
  store i32 4, ptr %93, align 4, !tbaa !11
  %94 = load ptr, ptr %2, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.Node, ptr %94, i32 0, i32 1
  %96 = load i32, ptr %95, align 4, !tbaa !11
  %97 = sext i32 %96 to i64
  %98 = mul i64 8, %97
  %99 = call noalias ptr @malloc(i64 noundef %98) #5
  %100 = load ptr, ptr %2, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.Node, ptr %100, i32 0, i32 2
  store ptr %99, ptr %101, align 8, !tbaa !13
  %102 = call ptr @newNode(i32 noundef 2)
  %103 = load ptr, ptr %2, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.Node, ptr %103, i32 0, i32 2
  %105 = load ptr, ptr %104, align 8, !tbaa !13
  %106 = getelementptr inbounds ptr, ptr %105, i64 0
  store ptr %102, ptr %106, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #4
  %107 = load ptr, ptr %2, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.Node, ptr %107, i32 0, i32 2
  %109 = load ptr, ptr %108, align 8, !tbaa !13
  %110 = getelementptr inbounds ptr, ptr %109, i64 0
  %111 = load ptr, ptr %110, align 8, !tbaa !5
  store ptr %111, ptr %3, align 8, !tbaa !5
  %112 = call ptr @newNode(i32 noundef 3)
  %113 = load ptr, ptr %2, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.Node, ptr %113, i32 0, i32 2
  %115 = load ptr, ptr %114, align 8, !tbaa !13
  %116 = getelementptr inbounds ptr, ptr %115, i64 1
  store ptr %112, ptr %116, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #4
  %117 = load ptr, ptr %2, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.Node, ptr %117, i32 0, i32 2
  %119 = load ptr, ptr %118, align 8, !tbaa !13
  %120 = getelementptr inbounds ptr, ptr %119, i64 1
  %121 = load ptr, ptr %120, align 8, !tbaa !5
  store ptr %121, ptr %4, align 8, !tbaa !5
  %122 = load ptr, ptr %4, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.Node, ptr %122, i32 0, i32 1
  store i32 2, ptr %123, align 4, !tbaa !11
  %124 = load ptr, ptr %4, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.Node, ptr %124, i32 0, i32 1
  %126 = load i32, ptr %125, align 4, !tbaa !11
  %127 = sext i32 %126 to i64
  %128 = mul i64 8, %127
  %129 = call noalias ptr @malloc(i64 noundef %128) #5
  %130 = load ptr, ptr %4, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.Node, ptr %130, i32 0, i32 2
  store ptr %129, ptr %131, align 8, !tbaa !13
  %132 = call ptr @newNode(i32 noundef 6)
  %133 = load ptr, ptr %4, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.Node, ptr %133, i32 0, i32 2
  %135 = load ptr, ptr %134, align 8, !tbaa !13
  %136 = getelementptr inbounds ptr, ptr %135, i64 0
  store ptr %132, ptr %136, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  %137 = load ptr, ptr %4, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.Node, ptr %137, i32 0, i32 2
  %139 = load ptr, ptr %138, align 8, !tbaa !13
  %140 = getelementptr inbounds ptr, ptr %139, i64 0
  %141 = load ptr, ptr %140, align 8, !tbaa !5
  store ptr %141, ptr %5, align 8, !tbaa !5
  %142 = call ptr @newNode(i32 noundef 7)
  %143 = load ptr, ptr %4, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.Node, ptr %143, i32 0, i32 2
  %145 = load ptr, ptr %144, align 8, !tbaa !13
  %146 = getelementptr inbounds ptr, ptr %145, i64 1
  store ptr %142, ptr %146, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  %147 = load ptr, ptr %4, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.Node, ptr %147, i32 0, i32 2
  %149 = load ptr, ptr %148, align 8, !tbaa !13
  %150 = getelementptr inbounds ptr, ptr %149, i64 1
  %151 = load ptr, ptr %150, align 8, !tbaa !5
  store ptr %151, ptr %6, align 8, !tbaa !5
  %152 = load ptr, ptr %6, align 8, !tbaa !5
  %153 = getelementptr inbounds %struct.Node, ptr %152, i32 0, i32 1
  store i32 1, ptr %153, align 4, !tbaa !11
  %154 = load ptr, ptr %6, align 8, !tbaa !5
  %155 = getelementptr inbounds %struct.Node, ptr %154, i32 0, i32 1
  %156 = load i32, ptr %155, align 4, !tbaa !11
  %157 = sext i32 %156 to i64
  %158 = mul i64 8, %157
  %159 = call noalias ptr @malloc(i64 noundef %158) #5
  %160 = load ptr, ptr %6, align 8, !tbaa !5
  %161 = getelementptr inbounds %struct.Node, ptr %160, i32 0, i32 2
  store ptr %159, ptr %161, align 8, !tbaa !13
  %162 = call ptr @newNode(i32 noundef 11)
  %163 = load ptr, ptr %6, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.Node, ptr %163, i32 0, i32 2
  %165 = load ptr, ptr %164, align 8, !tbaa !13
  %166 = getelementptr inbounds ptr, ptr %165, i64 0
  store ptr %162, ptr %166, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  %167 = load ptr, ptr %6, align 8, !tbaa !5
  %168 = getelementptr inbounds %struct.Node, ptr %167, i32 0, i32 2
  %169 = load ptr, ptr %168, align 8, !tbaa !13
  %170 = getelementptr inbounds ptr, ptr %169, i64 0
  %171 = load ptr, ptr %170, align 8, !tbaa !5
  store ptr %171, ptr %7, align 8, !tbaa !5
  %172 = load ptr, ptr %7, align 8, !tbaa !5
  %173 = getelementptr inbounds %struct.Node, ptr %172, i32 0, i32 1
  store i32 1, ptr %173, align 4, !tbaa !11
  %174 = load ptr, ptr %7, align 8, !tbaa !5
  %175 = getelementptr inbounds %struct.Node, ptr %174, i32 0, i32 1
  %176 = load i32, ptr %175, align 4, !tbaa !11
  %177 = sext i32 %176 to i64
  %178 = mul i64 8, %177
  %179 = call noalias ptr @malloc(i64 noundef %178) #5
  %180 = load ptr, ptr %7, align 8, !tbaa !5
  %181 = getelementptr inbounds %struct.Node, ptr %180, i32 0, i32 2
  store ptr %179, ptr %181, align 8, !tbaa !13
  %182 = call ptr @newNode(i32 noundef 14)
  %183 = load ptr, ptr %7, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct.Node, ptr %183, i32 0, i32 2
  %185 = load ptr, ptr %184, align 8, !tbaa !13
  %186 = getelementptr inbounds ptr, ptr %185, i64 0
  store ptr %182, ptr %186, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %187 = load ptr, ptr %7, align 8, !tbaa !5
  %188 = getelementptr inbounds %struct.Node, ptr %187, i32 0, i32 2
  %189 = load ptr, ptr %188, align 8, !tbaa !13
  %190 = getelementptr inbounds ptr, ptr %189, i64 0
  %191 = load ptr, ptr %190, align 8, !tbaa !5
  store ptr %191, ptr %8, align 8, !tbaa !5
  %192 = call ptr @newNode(i32 noundef 4)
  %193 = load ptr, ptr %2, align 8, !tbaa !5
  %194 = getelementptr inbounds %struct.Node, ptr %193, i32 0, i32 2
  %195 = load ptr, ptr %194, align 8, !tbaa !13
  %196 = getelementptr inbounds ptr, ptr %195, i64 2
  store ptr %192, ptr %196, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %197 = load ptr, ptr %2, align 8, !tbaa !5
  %198 = getelementptr inbounds %struct.Node, ptr %197, i32 0, i32 2
  %199 = load ptr, ptr %198, align 8, !tbaa !13
  %200 = getelementptr inbounds ptr, ptr %199, i64 2
  %201 = load ptr, ptr %200, align 8, !tbaa !5
  store ptr %201, ptr %9, align 8, !tbaa !5
  %202 = load ptr, ptr %9, align 8, !tbaa !5
  %203 = getelementptr inbounds %struct.Node, ptr %202, i32 0, i32 1
  store i32 1, ptr %203, align 4, !tbaa !11
  %204 = load ptr, ptr %9, align 8, !tbaa !5
  %205 = getelementptr inbounds %struct.Node, ptr %204, i32 0, i32 1
  %206 = load i32, ptr %205, align 4, !tbaa !11
  %207 = sext i32 %206 to i64
  %208 = mul i64 8, %207
  %209 = call noalias ptr @malloc(i64 noundef %208) #5
  %210 = load ptr, ptr %9, align 8, !tbaa !5
  %211 = getelementptr inbounds %struct.Node, ptr %210, i32 0, i32 2
  store ptr %209, ptr %211, align 8, !tbaa !13
  %212 = call ptr @newNode(i32 noundef 8)
  %213 = load ptr, ptr %9, align 8, !tbaa !5
  %214 = getelementptr inbounds %struct.Node, ptr %213, i32 0, i32 2
  %215 = load ptr, ptr %214, align 8, !tbaa !13
  %216 = getelementptr inbounds ptr, ptr %215, i64 0
  store ptr %212, ptr %216, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %217 = load ptr, ptr %9, align 8, !tbaa !5
  %218 = getelementptr inbounds %struct.Node, ptr %217, i32 0, i32 2
  %219 = load ptr, ptr %218, align 8, !tbaa !13
  %220 = getelementptr inbounds ptr, ptr %219, i64 0
  %221 = load ptr, ptr %220, align 8, !tbaa !5
  store ptr %221, ptr %10, align 8, !tbaa !5
  %222 = load ptr, ptr %10, align 8, !tbaa !5
  %223 = getelementptr inbounds %struct.Node, ptr %222, i32 0, i32 1
  store i32 1, ptr %223, align 4, !tbaa !11
  %224 = load ptr, ptr %10, align 8, !tbaa !5
  %225 = getelementptr inbounds %struct.Node, ptr %224, i32 0, i32 1
  %226 = load i32, ptr %225, align 4, !tbaa !11
  %227 = sext i32 %226 to i64
  %228 = mul i64 8, %227
  %229 = call noalias ptr @malloc(i64 noundef %228) #5
  %230 = load ptr, ptr %10, align 8, !tbaa !5
  %231 = getelementptr inbounds %struct.Node, ptr %230, i32 0, i32 2
  store ptr %229, ptr %231, align 8, !tbaa !13
  %232 = call ptr @newNode(i32 noundef 12)
  %233 = load ptr, ptr %10, align 8, !tbaa !5
  %234 = getelementptr inbounds %struct.Node, ptr %233, i32 0, i32 2
  %235 = load ptr, ptr %234, align 8, !tbaa !13
  %236 = getelementptr inbounds ptr, ptr %235, i64 0
  store ptr %232, ptr %236, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  %237 = load ptr, ptr %10, align 8, !tbaa !5
  %238 = getelementptr inbounds %struct.Node, ptr %237, i32 0, i32 2
  %239 = load ptr, ptr %238, align 8, !tbaa !13
  %240 = getelementptr inbounds ptr, ptr %239, i64 0
  %241 = load ptr, ptr %240, align 8, !tbaa !5
  store ptr %241, ptr %11, align 8, !tbaa !5
  %242 = call ptr @newNode(i32 noundef 5)
  %243 = load ptr, ptr %2, align 8, !tbaa !5
  %244 = getelementptr inbounds %struct.Node, ptr %243, i32 0, i32 2
  %245 = load ptr, ptr %244, align 8, !tbaa !13
  %246 = getelementptr inbounds ptr, ptr %245, i64 3
  store ptr %242, ptr %246, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %247 = load ptr, ptr %2, align 8, !tbaa !5
  %248 = getelementptr inbounds %struct.Node, ptr %247, i32 0, i32 2
  %249 = load ptr, ptr %248, align 8, !tbaa !13
  %250 = getelementptr inbounds ptr, ptr %249, i64 3
  %251 = load ptr, ptr %250, align 8, !tbaa !5
  store ptr %251, ptr %12, align 8, !tbaa !5
  %252 = load ptr, ptr %12, align 8, !tbaa !5
  %253 = getelementptr inbounds %struct.Node, ptr %252, i32 0, i32 1
  store i32 2, ptr %253, align 4, !tbaa !11
  %254 = load ptr, ptr %12, align 8, !tbaa !5
  %255 = getelementptr inbounds %struct.Node, ptr %254, i32 0, i32 1
  %256 = load i32, ptr %255, align 4, !tbaa !11
  %257 = sext i32 %256 to i64
  %258 = mul i64 8, %257
  %259 = call noalias ptr @malloc(i64 noundef %258) #5
  %260 = load ptr, ptr %12, align 8, !tbaa !5
  %261 = getelementptr inbounds %struct.Node, ptr %260, i32 0, i32 2
  store ptr %259, ptr %261, align 8, !tbaa !13
  %262 = call ptr @newNode(i32 noundef 9)
  %263 = load ptr, ptr %12, align 8, !tbaa !5
  %264 = getelementptr inbounds %struct.Node, ptr %263, i32 0, i32 2
  %265 = load ptr, ptr %264, align 8, !tbaa !13
  %266 = getelementptr inbounds ptr, ptr %265, i64 0
  store ptr %262, ptr %266, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %267 = load ptr, ptr %12, align 8, !tbaa !5
  %268 = getelementptr inbounds %struct.Node, ptr %267, i32 0, i32 2
  %269 = load ptr, ptr %268, align 8, !tbaa !13
  %270 = getelementptr inbounds ptr, ptr %269, i64 0
  %271 = load ptr, ptr %270, align 8, !tbaa !5
  store ptr %271, ptr %13, align 8, !tbaa !5
  %272 = load ptr, ptr %13, align 8, !tbaa !5
  %273 = getelementptr inbounds %struct.Node, ptr %272, i32 0, i32 1
  store i32 1, ptr %273, align 4, !tbaa !11
  %274 = load ptr, ptr %13, align 8, !tbaa !5
  %275 = getelementptr inbounds %struct.Node, ptr %274, i32 0, i32 1
  %276 = load i32, ptr %275, align 4, !tbaa !11
  %277 = sext i32 %276 to i64
  %278 = mul i64 8, %277
  %279 = call noalias ptr @malloc(i64 noundef %278) #5
  %280 = load ptr, ptr %13, align 8, !tbaa !5
  %281 = getelementptr inbounds %struct.Node, ptr %280, i32 0, i32 2
  store ptr %279, ptr %281, align 8, !tbaa !13
  %282 = call ptr @newNode(i32 noundef 13)
  %283 = load ptr, ptr %13, align 8, !tbaa !5
  %284 = getelementptr inbounds %struct.Node, ptr %283, i32 0, i32 2
  %285 = load ptr, ptr %284, align 8, !tbaa !13
  %286 = getelementptr inbounds ptr, ptr %285, i64 0
  store ptr %282, ptr %286, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  %287 = load ptr, ptr %13, align 8, !tbaa !5
  %288 = getelementptr inbounds %struct.Node, ptr %287, i32 0, i32 2
  %289 = load ptr, ptr %288, align 8, !tbaa !13
  %290 = getelementptr inbounds ptr, ptr %289, i64 0
  %291 = load ptr, ptr %290, align 8, !tbaa !5
  store ptr %291, ptr %14, align 8, !tbaa !5
  %292 = call ptr @newNode(i32 noundef 10)
  %293 = load ptr, ptr %12, align 8, !tbaa !5
  %294 = getelementptr inbounds %struct.Node, ptr %293, i32 0, i32 2
  %295 = load ptr, ptr %294, align 8, !tbaa !13
  %296 = getelementptr inbounds ptr, ptr %295, i64 1
  store ptr %292, ptr %296, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  %297 = load ptr, ptr %12, align 8, !tbaa !5
  %298 = getelementptr inbounds %struct.Node, ptr %297, i32 0, i32 2
  %299 = load ptr, ptr %298, align 8, !tbaa !13
  %300 = getelementptr inbounds ptr, ptr %299, i64 1
  %301 = load ptr, ptr %300, align 8, !tbaa !5
  store ptr %301, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  store i32 0, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  %302 = load ptr, ptr %2, align 8, !tbaa !5
  %303 = call ptr @levelOrder(ptr noundef %302, ptr noundef %16, ptr noundef %17)
  store ptr %303, ptr %18, align 8, !tbaa !5
  %304 = load ptr, ptr %1, align 8, !tbaa !5
  %305 = load ptr, ptr %18, align 8, !tbaa !5
  %306 = load i32, ptr %16, align 4, !tbaa !9
  %307 = load ptr, ptr %17, align 8, !tbaa !5
  call void @Validate_Array2D(i8 noundef signext 51, ptr noundef %304, ptr noundef %305, i32 noundef %306, ptr noundef %307)
  %308 = load ptr, ptr %1, align 8, !tbaa !5
  %309 = load i32, ptr %16, align 4, !tbaa !9
  call void @Array_Free2D(ptr noundef %308, i32 noundef %309)
  %310 = load ptr, ptr %18, align 8, !tbaa !5
  %311 = load i32, ptr %16, align 4, !tbaa !9
  call void @Array_Free2D(ptr noundef %310, i32 noundef %311)
  %312 = load ptr, ptr %17, align 8, !tbaa !5
  call void @free(ptr noundef %312) #4
  %313 = load ptr, ptr %2, align 8, !tbaa !5
  call void @BTree_Free(ptr noundef %313)
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #4
  ret void
}

attributes #0 = { 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 = { nounwind allocsize(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 = { 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 = { nounwind }
attributes #5 = { nounwind allocsize(0) }

!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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 4}
!12 = !{!"Node", !10, i64 0, !10, i64 4, !6, i64 8}
!13 = !{!12, !6, i64 8}


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

; Function Attrs: nounwind uwtable
declare dso_local ptr @levelOrder(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

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

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) 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

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare dso_local ptr @newNode(i32 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local void @Validate_Array2D(i8 noundef signext, ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local void @Array_Free2D(ptr noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local void @BTree_Free(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local void @Test3() local_unnamed_addr #0 {
  %1 = alloca i32, align 4
  %2 = alloca ptr, align 8
  %3 = tail call noalias dereferenceable_or_null(80) ptr @malloc(i64 noundef 80) #4
  %4 = tail call noalias dereferenceable_or_null(40) ptr @malloc(i64 noundef 40) #4
  store ptr %4, ptr %3, align 8, !tbaa !5
  store i32 1, ptr %4, align 4, !tbaa !9
  %5 = tail call noalias dereferenceable_or_null(40) ptr @malloc(i64 noundef 40) #4
  %6 = getelementptr inbounds i8, ptr %3, i64 8
  store ptr %5, ptr %6, align 8, !tbaa !5
  store <4 x i32> <i32 2, i32 3, i32 4, i32 5>, ptr %5, align 4, !tbaa !9
  %7 = tail call noalias dereferenceable_or_null(40) ptr @malloc(i64 noundef 40) #4
  %8 = getelementptr inbounds i8, ptr %3, i64 16
  store ptr %7, ptr %8, align 8, !tbaa !5
  store <4 x i32> <i32 6, i32 7, i32 8, i32 9>, ptr %7, align 4, !tbaa !9
  %9 = getelementptr inbounds i8, ptr %7, i64 16
  store i32 10, ptr %9, align 4, !tbaa !9
  %10 = tail call noalias dereferenceable_or_null(40) ptr @malloc(i64 noundef 40) #4
  %11 = getelementptr inbounds i8, ptr %3, i64 24
  store ptr %10, ptr %11, align 8, !tbaa !5
  store i32 11, ptr %10, align 4, !tbaa !9
  %12 = getelementptr inbounds i8, ptr %10, i64 4
  store i32 12, ptr %12, align 4, !tbaa !9
  %13 = getelementptr inbounds i8, ptr %10, i64 8
  store i32 13, ptr %13, align 4, !tbaa !9
  %14 = tail call noalias dereferenceable_or_null(40) ptr @malloc(i64 noundef 40) #4
  %15 = getelementptr inbounds i8, ptr %3, i64 32
  store ptr %14, ptr %15, align 8, !tbaa !5
  store i32 14, ptr %14, align 4, !tbaa !9
  %16 = tail call ptr @newNode(i32 noundef 1)
  %17 = getelementptr inbounds i8, ptr %16, i64 4
  store i32 4, ptr %17, align 4, !tbaa !11
  %18 = tail call noalias dereferenceable_or_null(32) ptr @malloc(i64 noundef 32) #4
  %19 = getelementptr inbounds i8, ptr %16, i64 8
  store ptr %18, ptr %19, align 8, !tbaa !13
  %20 = tail call ptr @newNode(i32 noundef 2)
  %21 = load ptr, ptr %19, align 8, !tbaa !13
  store ptr %20, ptr %21, align 8, !tbaa !5
  %22 = tail call ptr @newNode(i32 noundef 3)
  %23 = load ptr, ptr %19, align 8, !tbaa !13
  %24 = getelementptr inbounds i8, ptr %23, i64 8
  store ptr %22, ptr %24, align 8, !tbaa !5
  %25 = load ptr, ptr %19, align 8, !tbaa !13
  %26 = getelementptr inbounds i8, ptr %25, i64 8
  %27 = load ptr, ptr %26, align 8, !tbaa !5
  %28 = getelementptr inbounds i8, ptr %27, i64 4
  store i32 2, ptr %28, align 4, !tbaa !11
  %29 = tail call noalias dereferenceable_or_null(16) ptr @malloc(i64 noundef 16) #4
  %30 = getelementptr inbounds i8, ptr %27, i64 8
  store ptr %29, ptr %30, align 8, !tbaa !13
  %31 = tail call ptr @newNode(i32 noundef 6)
  %32 = load ptr, ptr %30, align 8, !tbaa !13
  store ptr %31, ptr %32, align 8, !tbaa !5
  %33 = tail call ptr @newNode(i32 noundef 7)
  %34 = load ptr, ptr %30, align 8, !tbaa !13
  %35 = getelementptr inbounds i8, ptr %34, i64 8
  store ptr %33, ptr %35, align 8, !tbaa !5
  %36 = load ptr, ptr %30, align 8, !tbaa !13
  %37 = getelementptr inbounds i8, ptr %36, i64 8
  %38 = load ptr, ptr %37, align 8, !tbaa !5
  %39 = getelementptr inbounds i8, ptr %38, i64 4
  store i32 1, ptr %39, align 4, !tbaa !11
  %40 = tail call noalias dereferenceable_or_null(8) ptr @malloc(i64 noundef 8) #4
  %41 = getelementptr inbounds i8, ptr %38, i64 8
  store ptr %40, ptr %41, align 8, !tbaa !13
  %42 = tail call ptr @newNode(i32 noundef 11)
  %43 = load ptr, ptr %41, align 8, !tbaa !13
  store ptr %42, ptr %43, align 8, !tbaa !5
  %44 = load ptr, ptr %41, align 8, !tbaa !13
  %45 = load ptr, ptr %44, align 8, !tbaa !5
  %46 = getelementptr inbounds i8, ptr %45, i64 4
  store i32 1, ptr %46, align 4, !tbaa !11
  %47 = tail call noalias dereferenceable_or_null(8) ptr @malloc(i64 noundef 8) #4
  %48 = getelementptr inbounds i8, ptr %45, i64 8
  store ptr %47, ptr %48, align 8, !tbaa !13
  %49 = tail call ptr @newNode(i32 noundef 14)
  %50 = load ptr, ptr %48, align 8, !tbaa !13
  store ptr %49, ptr %50, align 8, !tbaa !5
  %51 = tail call ptr @newNode(i32 noundef 4)
  %52 = load ptr, ptr %19, align 8, !tbaa !13
  %53 = getelementptr inbounds i8, ptr %52, i64 16
  store ptr %51, ptr %53, align 8, !tbaa !5
  %54 = load ptr, ptr %19, align 8, !tbaa !13
  %55 = getelementptr inbounds i8, ptr %54, i64 16
  %56 = load ptr, ptr %55, align 8, !tbaa !5
  %57 = getelementptr inbounds i8, ptr %56, i64 4
  store i32 1, ptr %57, align 4, !tbaa !11
  %58 = tail call noalias dereferenceable_or_null(8) ptr @malloc(i64 noundef 8) #4
  %59 = getelementptr inbounds i8, ptr %56, i64 8
  store ptr %58, ptr %59, align 8, !tbaa !13
  %60 = tail call ptr @newNode(i32 noundef 8)
  %61 = load ptr, ptr %59, align 8, !tbaa !13
  store ptr %60, ptr %61, align 8, !tbaa !5
  %62 = load ptr, ptr %59, align 8, !tbaa !13
  %63 = load ptr, ptr %62, align 8, !tbaa !5
  %64 = getelementptr inbounds i8, ptr %63, i64 4
  store i32 1, ptr %64, align 4, !tbaa !11
  %65 = tail call noalias dereferenceable_or_null(8) ptr @malloc(i64 noundef 8) #4
  %66 = getelementptr inbounds i8, ptr %63, i64 8
  store ptr %65, ptr %66, align 8, !tbaa !13
  %67 = tail call ptr @newNode(i32 noundef 12)
  %68 = load ptr, ptr %66, align 8, !tbaa !13
  store ptr %67, ptr %68, align 8, !tbaa !5
  %69 = tail call ptr @newNode(i32 noundef 5)
  %70 = load ptr, ptr %19, align 8, !tbaa !13
  %71 = getelementptr inbounds i8, ptr %70, i64 24
  store ptr %69, ptr %71, align 8, !tbaa !5
  %72 = load ptr, ptr %19, align 8, !tbaa !13
  %73 = getelementptr inbounds i8, ptr %72, i64 24
  %74 = load ptr, ptr %73, align 8, !tbaa !5
  %75 = getelementptr inbounds i8, ptr %74, i64 4
  store i32 2, ptr %75, align 4, !tbaa !11
  %76 = tail call noalias dereferenceable_or_null(16) ptr @malloc(i64 noundef 16) #4
  %77 = getelementptr inbounds i8, ptr %74, i64 8
  store ptr %76, ptr %77, align 8, !tbaa !13
  %78 = tail call ptr @newNode(i32 noundef 9)
  %79 = load ptr, ptr %77, align 8, !tbaa !13
  store ptr %78, ptr %79, align 8, !tbaa !5
  %80 = load ptr, ptr %77, align 8, !tbaa !13
  %81 = load ptr, ptr %80, align 8, !tbaa !5
  %82 = getelementptr inbounds i8, ptr %81, i64 4
  store i32 1, ptr %82, align 4, !tbaa !11
  %83 = tail call noalias dereferenceable_or_null(8) ptr @malloc(i64 noundef 8) #4
  %84 = getelementptr inbounds i8, ptr %81, i64 8
  store ptr %83, ptr %84, align 8, !tbaa !13
  %85 = tail call ptr @newNode(i32 noundef 13)
  %86 = load ptr, ptr %84, align 8, !tbaa !13
  store ptr %85, ptr %86, align 8, !tbaa !5
  %87 = tail call ptr @newNode(i32 noundef 10)
  %88 = load ptr, ptr %77, align 8, !tbaa !13
  %89 = getelementptr inbounds i8, ptr %88, i64 8
  store ptr %87, ptr %89, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #5
  store i32 0, ptr %1, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #5
  %90 = call ptr @levelOrder(ptr noundef %16, ptr noundef nonnull %1, ptr noundef nonnull %2)
  %91 = load i32, ptr %1, align 4, !tbaa !9
  %92 = load ptr, ptr %2, align 8, !tbaa !5
  call void @Validate_Array2D(i8 noundef signext 51, ptr noundef nonnull %3, ptr noundef %90, i32 noundef %91, ptr noundef %92)
  %93 = load i32, ptr %1, align 4, !tbaa !9
  call void @Array_Free2D(ptr noundef nonnull %3, i32 noundef %93)
  %94 = load i32, ptr %1, align 4, !tbaa !9
  call void @Array_Free2D(ptr noundef %90, i32 noundef %94)
  %95 = load ptr, ptr %2, align 8, !tbaa !5
  call void @free(ptr noundef %95) #5
  call void @BTree_Free(ptr noundef %16)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #5
  ret void
}

attributes #0 = { 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 nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "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 willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "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 = { nounwind allocsize(0) }
attributes #5 = { 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 4}
!12 = !{!"Node", !10, i64 0, !10, i64 4, !6, i64 8}
!13 = !{!12, !6, i64 8}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,SLPVectorizerPass,SROAPass,TailCallElimPass