; LLVM IR from OpenDiS/OpenDiS :: core/pydis/c/util (Util_subset)

; 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._tag = type { i32, i32 }
%struct._home = type { i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, ptr, i32, i32, ptr, i32, i32, i32, ptr, i32, i32, ptr, ptr, ptr, double, double, double, double, double, double, i32, i32, i32, ptr, ptr, ptr, i32, ptr, i32, ptr, ptr, ptr, i32, i32, ptr, i32, ptr, ptr, ptr, i32, i32, i32, ptr, ptr, i32, i32, ptr, ptr, ptr, i32, i32, i32, [3 x [3 x double]], [3 x [3 x double]], %struct.BurgInfo_t, i32, i32, i32, i32, i32, i32, i32, %struct.timeval }
%struct.BurgInfo_t = type { i32, i32, ptr, ptr, ptr, ptr }
%struct.timeval = type { i64, i64 }
%struct._node = type { i32, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, %struct._tag, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, i32, i32, i32, ptr, ptr, i32 }

@.str.14 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [25 x i8], align 1

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

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local ptr @RequestNewNativeNodeTag(ptr noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
declare hidden void @ExtendNodeKeys(ptr noundef, i32 noundef) #2

; Function Attrs: nounwind uwtable
define dso_local void @AddNodesFromArray(ptr noundef %0, ptr noundef %1) #2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca %struct._tag, align 4
  %11 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  store i32 0, ptr %9, align 4, !tbaa !9
  %12 = load ptr, ptr %4, align 8, !tbaa !5
  %13 = load i32, ptr %9, align 4, !tbaa !9
  %14 = add nsw i32 %13, 1
  store i32 %14, ptr %9, align 4, !tbaa !9
  %15 = sext i32 %13 to i64
  %16 = getelementptr inbounds double, ptr %12, i64 %15
  %17 = load double, ptr %16, align 8, !tbaa !11
  %18 = fptosi double %17 to i32
  store i32 %18, ptr %8, align 4, !tbaa !9
  %19 = load i32, ptr %8, align 4, !tbaa !9
  %20 = call i32 (ptr, ...) @printf(ptr noundef @.str.14, i32 noundef %19)
  %21 = load ptr, ptr %3, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct._home, ptr %21, i32 0, i32 15
  %23 = load i32, ptr %22, align 4, !tbaa !13
  %24 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, i32 noundef %23, i32 noundef 1000)
  %25 = load ptr, ptr %3, align 8, !tbaa !5
  %26 = load ptr, ptr %3, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct._home, ptr %26, i32 0, i32 15
  %28 = load i32, ptr %27, align 4, !tbaa !13
  %29 = add nsw i32 %28, 1000
  call void @ExtendNodeKeys(ptr noundef %25, i32 noundef %29)
  store i32 0, ptr %5, align 4, !tbaa !9
  br label %30

30:                                               ; preds = %227, %2
  %31 = load i32, ptr %5, align 4, !tbaa !9
  %32 = load i32, ptr %8, align 4, !tbaa !9
  %33 = icmp slt i32 %31, %32
  br i1 %33, label %34, label %230

34:                                               ; preds = %30
  %35 = load ptr, ptr %4, align 8, !tbaa !5
  %36 = load i32, ptr %9, align 4, !tbaa !9
  %37 = add nsw i32 %36, 1
  store i32 %37, ptr %9, align 4, !tbaa !9
  %38 = sext i32 %36 to i64
  %39 = getelementptr inbounds double, ptr %35, i64 %38
  %40 = load double, ptr %39, align 8, !tbaa !11
  %41 = fptosi double %40 to i32
  %42 = getelementptr inbounds %struct._tag, ptr %10, i32 0, i32 0
  store i32 %41, ptr %42, align 4, !tbaa !18
  %43 = load ptr, ptr %4, align 8, !tbaa !5
  %44 = load i32, ptr %9, align 4, !tbaa !9
  %45 = add nsw i32 %44, 1
  store i32 %45, ptr %9, align 4, !tbaa !9
  %46 = sext i32 %44 to i64
  %47 = getelementptr inbounds double, ptr %43, i64 %46
  %48 = load double, ptr %47, align 8, !tbaa !11
  %49 = fptosi double %48 to i32
  %50 = getelementptr inbounds %struct._tag, ptr %10, i32 0, i32 1
  store i32 %49, ptr %50, align 4, !tbaa !20
  %51 = load ptr, ptr %3, align 8, !tbaa !5
  %52 = call ptr @RequestNewNativeNodeTag(ptr noundef %51, ptr noundef %10)
  store ptr %52, ptr %11, align 8, !tbaa !5
  %53 = load ptr, ptr %4, align 8, !tbaa !5
  %54 = load i32, ptr %9, align 4, !tbaa !9
  %55 = add nsw i32 %54, 1
  store i32 %55, ptr %9, align 4, !tbaa !9
  %56 = sext i32 %54 to i64
  %57 = getelementptr inbounds double, ptr %53, i64 %56
  %58 = load double, ptr %57, align 8, !tbaa !11
  %59 = load ptr, ptr %11, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct._node, ptr %59, i32 0, i32 1
  store double %58, ptr %60, align 8, !tbaa !21
  %61 = load ptr, ptr %4, align 8, !tbaa !5
  %62 = load i32, ptr %9, align 4, !tbaa !9
  %63 = add nsw i32 %62, 1
  store i32 %63, ptr %9, align 4, !tbaa !9
  %64 = sext i32 %62 to i64
  %65 = getelementptr inbounds double, ptr %61, i64 %64
  %66 = load double, ptr %65, align 8, !tbaa !11
  %67 = load ptr, ptr %11, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct._node, ptr %67, i32 0, i32 2
  store double %66, ptr %68, align 8, !tbaa !23
  %69 = load ptr, ptr %4, align 8, !tbaa !5
  %70 = load i32, ptr %9, align 4, !tbaa !9
  %71 = add nsw i32 %70, 1
  store i32 %71, ptr %9, align 4, !tbaa !9
  %72 = sext i32 %70 to i64
  %73 = getelementptr inbounds double, ptr %69, i64 %72
  %74 = load double, ptr %73, align 8, !tbaa !11
  %75 = load ptr, ptr %11, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct._node, ptr %75, i32 0, i32 3
  store double %74, ptr %76, align 8, !tbaa !24
  %77 = load ptr, ptr %4, align 8, !tbaa !5
  %78 = load i32, ptr %9, align 4, !tbaa !9
  %79 = add nsw i32 %78, 1
  store i32 %79, ptr %9, align 4, !tbaa !9
  %80 = sext i32 %78 to i64
  %81 = getelementptr inbounds double, ptr %77, i64 %80
  %82 = load double, ptr %81, align 8, !tbaa !11
  %83 = fptosi double %82 to i32
  store i32 %83, ptr %7, align 4, !tbaa !9
  %84 = load ptr, ptr %4, align 8, !tbaa !5
  %85 = load i32, ptr %9, align 4, !tbaa !9
  %86 = add nsw i32 %85, 1
  store i32 %86, ptr %9, align 4, !tbaa !9
  %87 = sext i32 %85 to i64
  %88 = getelementptr inbounds double, ptr %84, i64 %87
  %89 = load double, ptr %88, align 8, !tbaa !11
  %90 = fptosi double %89 to i32
  %91 = load ptr, ptr %11, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct._node, ptr %91, i32 0, i32 34
  store i32 %90, ptr %92, align 8, !tbaa !25
  %93 = load ptr, ptr %11, align 8, !tbaa !5
  %94 = load i32, ptr %7, align 4, !tbaa !9
  call void @ReallocNodeArms(ptr noundef %93, i32 noundef %94)
  %95 = load ptr, ptr %11, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct._node, ptr %95, i32 0, i32 19
  %97 = getelementptr inbounds %struct._tag, ptr %96, i32 0, i32 0
  %98 = load i32, ptr %97, align 8, !tbaa !26
  %99 = load ptr, ptr %11, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct._node, ptr %99, i32 0, i32 19
  %101 = getelementptr inbounds %struct._tag, ptr %100, i32 0, i32 1
  %102 = load i32, ptr %101, align 4, !tbaa !27
  %103 = load ptr, ptr %11, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct._node, ptr %103, i32 0, i32 1
  %105 = load double, ptr %104, align 8, !tbaa !21
  %106 = load ptr, ptr %11, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct._node, ptr %106, i32 0, i32 2
  %108 = load double, ptr %107, align 8, !tbaa !23
  %109 = load ptr, ptr %11, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct._node, ptr %109, i32 0, i32 3
  %111 = load double, ptr %110, align 8, !tbaa !24
  %112 = load ptr, ptr %11, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct._node, ptr %112, i32 0, i32 20
  %114 = load i32, ptr %113, align 8, !tbaa !28
  %115 = call i32 (ptr, ...) @printf(ptr noundef @.str.16, i32 noundef %98, i32 noundef %102, double noundef %105, double noundef %108, double noundef %111, i32 noundef %114)
  store i32 0, ptr %6, align 4, !tbaa !9
  br label %116

116:                                              ; preds = %221, %34
  %117 = load i32, ptr %6, align 4, !tbaa !9
  %118 = load i32, ptr %7, align 4, !tbaa !9
  %119 = icmp slt i32 %117, %118
  br i1 %119, label %120, label %224

120:                                              ; preds = %116
  %121 = load ptr, ptr %4, align 8, !tbaa !5
  %122 = load i32, ptr %9, align 4, !tbaa !9
  %123 = add nsw i32 %122, 1
  store i32 %123, ptr %9, align 4, !tbaa !9
  %124 = sext i32 %122 to i64
  %125 = getelementptr inbounds double, ptr %121, i64 %124
  %126 = load double, ptr %125, align 8, !tbaa !11
  %127 = fptosi double %126 to i32
  %128 = load ptr, ptr %11, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct._node, ptr %128, i32 0, i32 21
  %130 = load ptr, ptr %129, align 8, !tbaa !29
  %131 = load i32, ptr %6, align 4, !tbaa !9
  %132 = sext i32 %131 to i64
  %133 = getelementptr inbounds %struct._tag, ptr %130, i64 %132
  %134 = getelementptr inbounds %struct._tag, ptr %133, i32 0, i32 0
  store i32 %127, ptr %134, align 4, !tbaa !18
  %135 = load ptr, ptr %4, align 8, !tbaa !5
  %136 = load i32, ptr %9, align 4, !tbaa !9
  %137 = add nsw i32 %136, 1
  store i32 %137, ptr %9, align 4, !tbaa !9
  %138 = sext i32 %136 to i64
  %139 = getelementptr inbounds double, ptr %135, i64 %138
  %140 = load double, ptr %139, align 8, !tbaa !11
  %141 = fptosi double %140 to i32
  %142 = load ptr, ptr %11, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct._node, ptr %142, i32 0, i32 21
  %144 = load ptr, ptr %143, align 8, !tbaa !29
  %145 = load i32, ptr %6, align 4, !tbaa !9
  %146 = sext i32 %145 to i64
  %147 = getelementptr inbounds %struct._tag, ptr %144, i64 %146
  %148 = getelementptr inbounds %struct._tag, ptr %147, i32 0, i32 1
  store i32 %141, ptr %148, align 4, !tbaa !20
  %149 = load ptr, ptr %4, align 8, !tbaa !5
  %150 = load i32, ptr %9, align 4, !tbaa !9
  %151 = add nsw i32 %150, 1
  store i32 %151, ptr %9, align 4, !tbaa !9
  %152 = sext i32 %150 to i64
  %153 = getelementptr inbounds double, ptr %149, i64 %152
  %154 = load double, ptr %153, align 8, !tbaa !11
  %155 = load ptr, ptr %11, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct._node, ptr %155, i32 0, i32 25
  %157 = load ptr, ptr %156, align 8, !tbaa !30
  %158 = load i32, ptr %6, align 4, !tbaa !9
  %159 = sext i32 %158 to i64
  %160 = getelementptr inbounds double, ptr %157, i64 %159
  store double %154, ptr %160, align 8, !tbaa !11
  %161 = load ptr, ptr %4, align 8, !tbaa !5
  %162 = load i32, ptr %9, align 4, !tbaa !9
  %163 = add nsw i32 %162, 1
  store i32 %163, ptr %9, align 4, !tbaa !9
  %164 = sext i32 %162 to i64
  %165 = getelementptr inbounds double, ptr %161, i64 %164
  %166 = load double, ptr %165, align 8, !tbaa !11
  %167 = load ptr, ptr %11, align 8, !tbaa !5
  %168 = getelementptr inbounds %struct._node, ptr %167, i32 0, i32 26
  %169 = load ptr, ptr %168, align 8, !tbaa !31
  %170 = load i32, ptr %6, align 4, !tbaa !9
  %171 = sext i32 %170 to i64
  %172 = getelementptr inbounds double, ptr %169, i64 %171
  store double %166, ptr %172, align 8, !tbaa !11
  %173 = load ptr, ptr %4, align 8, !tbaa !5
  %174 = load i32, ptr %9, align 4, !tbaa !9
  %175 = add nsw i32 %174, 1
  store i32 %175, ptr %9, align 4, !tbaa !9
  %176 = sext i32 %174 to i64
  %177 = getelementptr inbounds double, ptr %173, i64 %176
  %178 = load double, ptr %177, align 8, !tbaa !11
  %179 = load ptr, ptr %11, align 8, !tbaa !5
  %180 = getelementptr inbounds %struct._node, ptr %179, i32 0, i32 27
  %181 = load ptr, ptr %180, align 8, !tbaa !32
  %182 = load i32, ptr %6, align 4, !tbaa !9
  %183 = sext i32 %182 to i64
  %184 = getelementptr inbounds double, ptr %181, i64 %183
  store double %178, ptr %184, align 8, !tbaa !11
  %185 = load ptr, ptr %4, align 8, !tbaa !5
  %186 = load i32, ptr %9, align 4, !tbaa !9
  %187 = add nsw i32 %186, 1
  store i32 %187, ptr %9, align 4, !tbaa !9
  %188 = sext i32 %186 to i64
  %189 = getelementptr inbounds double, ptr %185, i64 %188
  %190 = load double, ptr %189, align 8, !tbaa !11
  %191 = load ptr, ptr %11, align 8, !tbaa !5
  %192 = getelementptr inbounds %struct._node, ptr %191, i32 0, i32 28
  %193 = load ptr, ptr %192, align 8, !tbaa !33
  %194 = load i32, ptr %6, align 4, !tbaa !9
  %195 = sext i32 %194 to i64
  %196 = getelementptr inbounds double, ptr %193, i64 %195
  store double %190, ptr %196, align 8, !tbaa !11
  %197 = load ptr, ptr %4, align 8, !tbaa !5
  %198 = load i32, ptr %9, align 4, !tbaa !9
  %199 = add nsw i32 %198, 1
  store i32 %199, ptr %9, align 4, !tbaa !9
  %200 = sext i32 %198 to i64
  %201 = getelementptr inbounds double, ptr %197, i64 %200
  %202 = load double, ptr %201, align 8, !tbaa !11
  %203 = load ptr, ptr %11, align 8, !tbaa !5
  %204 = getelementptr inbounds %struct._node, ptr %203, i32 0, i32 29
  %205 = load ptr, ptr %204, align 8, !tbaa !34
  %206 = load i32, ptr %6, align 4, !tbaa !9
  %207 = sext i32 %206 to i64
  %208 = getelementptr inbounds double, ptr %205, i64 %207
  store double %202, ptr %208, align 8, !tbaa !11
  %209 = load ptr, ptr %4, align 8, !tbaa !5
  %210 = load i32, ptr %9, align 4, !tbaa !9
  %211 = add nsw i32 %210, 1
  store i32 %211, ptr %9, align 4, !tbaa !9
  %212 = sext i32 %210 to i64
  %213 = getelementptr inbounds double, ptr %209, i64 %212
  %214 = load double, ptr %213, align 8, !tbaa !11
  %215 = load ptr, ptr %11, align 8, !tbaa !5
  %216 = getelementptr inbounds %struct._node, ptr %215, i32 0, i32 30
  %217 = load ptr, ptr %216, align 8, !tbaa !35
  %218 = load i32, ptr %6, align 4, !tbaa !9
  %219 = sext i32 %218 to i64
  %220 = getelementptr inbounds double, ptr %217, i64 %219
  store double %214, ptr %220, align 8, !tbaa !11
  br label %221

221:                                              ; preds = %120
  %222 = load i32, ptr %6, align 4, !tbaa !9
  %223 = add nsw i32 %222, 1
  store i32 %223, ptr %6, align 4, !tbaa !9
  br label %116, !llvm.loop !36

224:                                              ; preds = %116
  %225 = load ptr, ptr %3, align 8, !tbaa !5
  %226 = load ptr, ptr %11, align 8, !tbaa !5
  call void @PushNativeNodeQ(ptr noundef %225, ptr noundef %226)
  br label %227

227:                                              ; preds = %224
  %228 = load i32, ptr %5, align 4, !tbaa !9
  %229 = add nsw i32 %228, 1
  store i32 %229, ptr %5, align 4, !tbaa !9
  br label %30, !llvm.loop !38

230:                                              ; preds = %30
  %231 = load ptr, ptr %3, align 8, !tbaa !5
  call void @SortNativeNodes(ptr noundef %231)
  %232 = call i32 (ptr, ...) @printf(ptr noundef @.str.17)
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #3
  ret void
}

declare void @PushNativeNodeQ(ptr noundef, ptr noundef) #1

declare void @SortNativeNodes(ptr noundef) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 #3 = { 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, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!14, !10, i64 100}
!14 = !{!"_home", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !10, i64 96, !10, i64 100, !6, i64 104, !10, i64 112, !10, i64 116, !6, i64 120, !10, i64 128, !10, i64 132, !10, i64 136, !6, i64 144, !10, i64 152, !10, i64 156, !6, i64 160, !6, i64 168, !6, i64 176, !12, i64 184, !12, i64 192, !12, i64 200, !12, i64 208, !12, i64 216, !12, i64 224, !10, i64 232, !10, i64 236, !10, i64 240, !6, i64 248, !6, i64 256, !6, i64 264, !10, i64 272, !6, i64 280, !10, i64 288, !6, i64 296, !6, i64 304, !6, i64 312, !10, i64 320, !10, i64 324, !6, i64 328, !10, i64 336, !6, i64 344, !6, i64 352, !6, i64 360, !10, i64 368, !10, i64 372, !10, i64 376, !6, i64 384, !6, i64 392, !10, i64 400, !10, i64 404, !6, i64 408, !6, i64 416, !6, i64 424, !10, i64 432, !10, i64 436, !10, i64 440, !7, i64 448, !7, i64 520, !15, i64 592, !10, i64 632, !10, i64 636, !10, i64 640, !10, i64 644, !10, i64 648, !10, i64 652, !10, i64 656, !16, i64 664}
!15 = !{!"", !10, i64 0, !10, i64 4, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!16 = !{!"timeval", !17, i64 0, !17, i64 8}
!17 = !{!"long", !7, i64 0}
!18 = !{!19, !10, i64 0}
!19 = !{!"_tag", !10, i64 0, !10, i64 4}
!20 = !{!19, !10, i64 4}
!21 = !{!22, !12, i64 8}
!22 = !{!"_node", !10, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !12, i64 48, !12, i64 56, !12, i64 64, !12, i64 72, !12, i64 80, !12, i64 88, !12, i64 96, !12, i64 104, !12, i64 112, !12, i64 120, !12, i64 128, !12, i64 136, !12, i64 144, !19, i64 152, !10, i64 160, !6, i64 168, !6, i64 176, !6, i64 184, !6, i64 192, !6, i64 200, !6, i64 208, !6, i64 216, !6, i64 224, !6, i64 232, !6, i64 240, !6, i64 248, !6, i64 256, !6, i64 264, !10, i64 272, !10, i64 276, !10, i64 280, !10, i64 284, !10, i64 288, !6, i64 296, !6, i64 304, !10, i64 312}
!23 = !{!22, !12, i64 16}
!24 = !{!22, !12, i64 24}
!25 = !{!22, !10, i64 272}
!26 = !{!22, !10, i64 152}
!27 = !{!22, !10, i64 156}
!28 = !{!22, !10, i64 160}
!29 = !{!22, !6, i64 168}
!30 = !{!22, !6, i64 200}
!31 = !{!22, !6, i64 208}
!32 = !{!22, !6, i64 216}
!33 = !{!22, !6, i64 224}
!34 = !{!22, !6, i64 232}
!35 = !{!22, !6, i64 240}
!36 = distinct !{!36, !37}
!37 = !{!"llvm.loop.mustprogress"}
!38 = distinct !{!38, !37}


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

@.str.14 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [25 x i8], align 1

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

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

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

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

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

; Function Attrs: nounwind uwtable
declare hidden void @ExtendNodeKeys(ptr noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local void @AddNodesFromArray(ptr noundef %0, ptr nocapture noundef readonly %1) local_unnamed_addr #2 {
  %3 = alloca %struct._tag, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #4
  %4 = load double, ptr %1, align 8, !tbaa !5
  %5 = fptosi double %4 to i32
  %6 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.14, i32 noundef %5)
  %7 = getelementptr inbounds i8, ptr %0, i64 100
  %8 = load i32, ptr %7, align 4, !tbaa !9
  %9 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15, i32 noundef %8, i32 noundef 1000)
  %10 = load i32, ptr %7, align 4, !tbaa !9
  %11 = add nsw i32 %10, 1000
  tail call void @ExtendNodeKeys(ptr noundef %0, i32 noundef %11)
  %12 = icmp sgt i32 %5, 0
  br i1 %12, label %.lr.ph80, label %._crit_edge81

.lr.ph80:                                         ; preds = %2, %._crit_edge
  %.078 = phi i32 [ %165, %._crit_edge ], [ 0, %2 ]
  %.07377 = phi i32 [ %.1.lcssa, %._crit_edge ], [ 1, %2 ]
  %13 = sext i32 %.07377 to i64
  %14 = getelementptr inbounds double, ptr %1, i64 %13
  %15 = load <2 x double>, ptr %14, align 8, !tbaa !5
  %16 = fptosi <2 x double> %15 to <2 x i32>
  store <2 x i32> %16, ptr %3, align 8, !tbaa !16
  %17 = call ptr @RequestNewNativeNodeTag(ptr noundef %0, ptr noundef nonnull %3)
  %18 = getelementptr i8, ptr %14, i64 16
  %19 = load double, ptr %18, align 8, !tbaa !5
  %20 = getelementptr inbounds i8, ptr %17, i64 8
  store double %19, ptr %20, align 8, !tbaa !17
  %21 = getelementptr i8, ptr %14, i64 24
  %22 = load double, ptr %21, align 8, !tbaa !5
  %23 = getelementptr inbounds i8, ptr %17, i64 16
  store double %22, ptr %23, align 8, !tbaa !20
  %24 = getelementptr i8, ptr %14, i64 32
  %25 = load double, ptr %24, align 8, !tbaa !5
  %26 = getelementptr inbounds i8, ptr %17, i64 24
  store double %25, ptr %26, align 8, !tbaa !21
  %27 = getelementptr i8, ptr %14, i64 40
  %28 = load double, ptr %27, align 8, !tbaa !5
  %29 = fptosi double %28 to i32
  %30 = add i32 %.07377, 7
  %31 = getelementptr i8, ptr %14, i64 48
  %32 = load double, ptr %31, align 8, !tbaa !5
  %33 = fptosi double %32 to i32
  %34 = getelementptr inbounds i8, ptr %17, i64 272
  store i32 %33, ptr %34, align 8, !tbaa !22
  call void @ReallocNodeArms(ptr noundef %17, i32 noundef %29)
  %35 = getelementptr inbounds i8, ptr %17, i64 152
  %36 = load i32, ptr %35, align 8, !tbaa !23
  %37 = getelementptr inbounds i8, ptr %17, i64 156
  %38 = load i32, ptr %37, align 4, !tbaa !24
  %39 = load double, ptr %20, align 8, !tbaa !17
  %40 = load double, ptr %23, align 8, !tbaa !20
  %41 = load double, ptr %26, align 8, !tbaa !21
  %42 = getelementptr inbounds i8, ptr %17, i64 160
  %43 = load i32, ptr %42, align 8, !tbaa !25
  %44 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16, i32 noundef %36, i32 noundef %38, double noundef %39, double noundef %40, double noundef %41, i32 noundef %43)
  %45 = icmp sgt i32 %29, 0
  br i1 %45, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %.lr.ph80
  %46 = getelementptr inbounds i8, ptr %17, i64 168
  %47 = load ptr, ptr %46, align 8, !tbaa !26
  %48 = getelementptr inbounds i8, ptr %17, i64 200
  %49 = load ptr, ptr %48, align 8, !tbaa !27
  %50 = getelementptr inbounds i8, ptr %17, i64 208
  %51 = load ptr, ptr %50, align 8, !tbaa !28
  %52 = getelementptr inbounds i8, ptr %17, i64 216
  %53 = load ptr, ptr %52, align 8, !tbaa !29
  %54 = getelementptr inbounds i8, ptr %17, i64 224
  %55 = load ptr, ptr %54, align 8, !tbaa !30
  %56 = getelementptr inbounds i8, ptr %17, i64 232
  %57 = load ptr, ptr %56, align 8, !tbaa !31
  %58 = getelementptr inbounds i8, ptr %17, i64 240
  %59 = load ptr, ptr %58, align 8, !tbaa !32
  %60 = sext i32 %30 to i64
  %wide.trip.count = zext nneg i32 %29 to i64
  %min.iters.check = icmp ult i32 %29, 16
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.memcheck

vector.memcheck:                                  ; preds = %.lr.ph
  %61 = shl nuw nsw i64 %wide.trip.count, 3
  %scevgep = getelementptr i8, ptr %49, i64 %61
  %scevgep88 = getelementptr i8, ptr %51, i64 %61
  %scevgep89 = getelementptr i8, ptr %53, i64 %61
  %scevgep90 = getelementptr i8, ptr %55, i64 %61
  %scevgep91 = getelementptr i8, ptr %57, i64 %61
  %scevgep92 = getelementptr i8, ptr %59, i64 %61
  %62 = shl nsw i64 %60, 3
  %scevgep93 = getelementptr i8, ptr %1, i64 %62
  %63 = shl nuw nsw i64 %wide.trip.count, 6
  %64 = getelementptr i8, ptr %1, i64 %63
  %scevgep94 = getelementptr i8, ptr %64, i64 %62
  %bound0 = icmp ult ptr %49, %scevgep88
  %bound1 = icmp ult ptr %51, %scevgep
  %found.conflict = and i1 %bound0, %bound1
  %bound095 = icmp ult ptr %49, %scevgep89
  %bound196 = icmp ult ptr %53, %scevgep
  %found.conflict97 = and i1 %bound095, %bound196
  %65 = insertelement <4 x ptr> poison, ptr %49, i64 0
  %66 = shufflevector <4 x ptr> %65, <4 x ptr> poison, <4 x i32> zeroinitializer
  %67 = insertelement <4 x ptr> poison, ptr %scevgep90, i64 0
  %68 = insertelement <4 x ptr> %67, ptr %scevgep91, i64 1
  %69 = insertelement <4 x ptr> %68, ptr %scevgep92, i64 2
  %70 = insertelement <4 x ptr> %69, ptr %scevgep94, i64 3
  %71 = icmp ult <4 x ptr> %66, %70
  %72 = insertelement <4 x ptr> poison, ptr %55, i64 0
  %73 = insertelement <4 x ptr> %72, ptr %57, i64 1
  %74 = insertelement <4 x ptr> %73, ptr %59, i64 2
  %75 = insertelement <4 x ptr> %74, ptr %scevgep93, i64 3
  %76 = insertelement <4 x ptr> poison, ptr %scevgep, i64 0
  %77 = shufflevector <4 x ptr> %76, <4 x ptr> poison, <4 x i32> zeroinitializer
  %78 = icmp ult <4 x ptr> %75, %77
  %79 = and <4 x i1> %71, %78
  %bound0114 = icmp ult ptr %51, %scevgep89
  %bound1115 = icmp ult ptr %53, %scevgep88
  %found.conflict116 = and i1 %bound0114, %bound1115
  %bound0118 = icmp ult ptr %51, %scevgep90
  %bound1119 = icmp ult ptr %55, %scevgep88
  %found.conflict120 = and i1 %bound0118, %bound1119
  %bound0122 = icmp ult ptr %51, %scevgep91
  %bound1123 = icmp ult ptr %57, %scevgep88
  %found.conflict124 = and i1 %bound0122, %bound1123
  %bound0126 = icmp ult ptr %51, %scevgep92
  %bound1127 = icmp ult ptr %59, %scevgep88
  %found.conflict128 = and i1 %bound0126, %bound1127
  %bound0130 = icmp ult ptr %51, %scevgep94
  %bound1131 = icmp ult ptr %scevgep93, %scevgep88
  %found.conflict132 = and i1 %bound0130, %bound1131
  %bound0134 = icmp ult ptr %53, %scevgep90
  %bound1135 = icmp ult ptr %55, %scevgep89
  %found.conflict136 = and i1 %bound0134, %bound1135
  %bound0138 = icmp ult ptr %53, %scevgep91
  %bound1139 = icmp ult ptr %57, %scevgep89
  %found.conflict140 = and i1 %bound0138, %bound1139
  %bound0142 = icmp ult ptr %53, %scevgep92
  %bound1143 = icmp ult ptr %59, %scevgep89
  %found.conflict144 = and i1 %bound0142, %bound1143
  %bound0146 = icmp ult ptr %53, %scevgep94
  %bound1147 = icmp ult ptr %scevgep93, %scevgep89
  %found.conflict148 = and i1 %bound0146, %bound1147
  %bound0150 = icmp ult ptr %55, %scevgep91
  %bound1151 = icmp ult ptr %57, %scevgep90
  %found.conflict152 = and i1 %bound0150, %bound1151
  %bound0154 = icmp ult ptr %55, %scevgep92
  %bound1155 = icmp ult ptr %59, %scevgep90
  %found.conflict156 = and i1 %bound0154, %bound1155
  %bound0158 = icmp ult ptr %55, %scevgep94
  %bound1159 = icmp ult ptr %scevgep93, %scevgep90
  %found.conflict160 = and i1 %bound0158, %bound1159
  %bound0162 = icmp ult ptr %57, %scevgep92
  %bound1163 = icmp ult ptr %59, %scevgep91
  %found.conflict164 = and i1 %bound0162, %bound1163
  %bound0166 = icmp ult ptr %57, %scevgep94
  %bound1167 = icmp ult ptr %scevgep93, %scevgep91
  %found.conflict168 = and i1 %bound0166, %bound1167
  %bound0170 = icmp ult ptr %59, %scevgep94
  %bound1171 = icmp ult ptr %scevgep93, %scevgep92
  %found.conflict172 = and i1 %bound0170, %bound1171
  %80 = bitcast <4 x i1> %79 to i4
  %81 = icmp ne i4 %80, 0
  %op.rdx = or i1 %81, %found.conflict
  %op.rdx175 = or i1 %found.conflict97, %found.conflict116
  %op.rdx176 = or i1 %found.conflict120, %found.conflict124
  %op.rdx177 = or i1 %found.conflict128, %found.conflict132
  %op.rdx178 = or i1 %found.conflict136, %found.conflict140
  %op.rdx179 = or i1 %found.conflict144, %found.conflict148
  %op.rdx180 = or i1 %found.conflict152, %found.conflict156
  %op.rdx181 = or i1 %found.conflict160, %found.conflict164
  %op.rdx182 = or i1 %found.conflict168, %found.conflict172
  %op.rdx183 = or i1 %op.rdx, %op.rdx175
  %op.rdx184 = or i1 %op.rdx176, %op.rdx177
  %op.rdx185 = or i1 %op.rdx178, %op.rdx179
  %op.rdx186 = or i1 %op.rdx180, %op.rdx181
  %op.rdx187 = or i1 %op.rdx183, %op.rdx184
  %op.rdx188 = or i1 %op.rdx185, %op.rdx186
  %op.rdx189 = or i1 %op.rdx187, %op.rdx188
  %op.rdx190 = or i1 %op.rdx189, %op.rdx182
  br i1 %op.rdx190, label %scalar.ph.preheader, label %vector.ph

vector.ph:                                        ; preds = %vector.memcheck
  %n.vec = and i64 %wide.trip.count, 2147483646
  %82 = shl nuw nsw i64 %n.vec, 3
  %ind.end = add nsw i64 %82, %60
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %83 = shl i64 %index, 3
  %offset.idx = add i64 %83, %60
  %84 = getelementptr inbounds double, ptr %1, i64 %offset.idx
  %85 = getelementptr double, ptr %1, i64 %offset.idx
  %86 = getelementptr i8, ptr %85, i64 64
  %87 = load double, ptr %84, align 8, !tbaa !5, !alias.scope !33
  %88 = load double, ptr %86, align 8, !tbaa !5, !alias.scope !33
  %89 = insertelement <2 x double> poison, double %87, i64 0
  %90 = insertelement <2 x double> %89, double %88, i64 1
  %91 = getelementptr i8, ptr %84, i64 8
  %92 = getelementptr i8, ptr %85, i64 72
  %93 = load double, ptr %91, align 8, !tbaa !5, !alias.scope !33
  %94 = load double, ptr %92, align 8, !tbaa !5, !alias.scope !33
  %95 = insertelement <2 x double> poison, double %93, i64 0
  %96 = insertelement <2 x double> %95, double %94, i64 1
  %97 = getelementptr inbounds %struct._tag, ptr %47, i64 %index
  %98 = shufflevector <2 x double> %90, <2 x double> %96, <4 x i32> <i32 0, i32 2, i32 1, i32 3>
  %interleaved.vec = fptosi <4 x double> %98 to <4 x i32>
  store <4 x i32> %interleaved.vec, ptr %97, align 4, !tbaa !16
  %99 = getelementptr i8, ptr %84, i64 16
  %100 = getelementptr i8, ptr %85, i64 80
  %101 = load double, ptr %99, align 8, !tbaa !5, !alias.scope !33
  %102 = load double, ptr %100, align 8, !tbaa !5, !alias.scope !33
  %103 = insertelement <2 x double> poison, double %101, i64 0
  %104 = insertelement <2 x double> %103, double %102, i64 1
  %105 = getelementptr inbounds double, ptr %49, i64 %index
  store <2 x double> %104, ptr %105, align 8, !tbaa !5, !alias.scope !36, !noalias !38
  %106 = getelementptr i8, ptr %84, i64 24
  %107 = getelementptr i8, ptr %85, i64 88
  %108 = load double, ptr %106, align 8, !tbaa !5, !alias.scope !33
  %109 = load double, ptr %107, align 8, !tbaa !5, !alias.scope !33
  %110 = insertelement <2 x double> poison, double %108, i64 0
  %111 = insertelement <2 x double> %110, double %109, i64 1
  %112 = getelementptr inbounds double, ptr %51, i64 %index
  store <2 x double> %111, ptr %112, align 8, !tbaa !5, !alias.scope !44, !noalias !45
  %113 = getelementptr i8, ptr %84, i64 32
  %114 = getelementptr i8, ptr %85, i64 96
  %115 = load double, ptr %113, align 8, !tbaa !5, !alias.scope !33
  %116 = load double, ptr %114, align 8, !tbaa !5, !alias.scope !33
  %117 = insertelement <2 x double> poison, double %115, i64 0
  %118 = insertelement <2 x double> %117, double %116, i64 1
  %119 = getelementptr inbounds double, ptr %53, i64 %index
  store <2 x double> %118, ptr %119, align 8, !tbaa !5, !alias.scope !46, !noalias !47
  %120 = getelementptr i8, ptr %84, i64 40
  %121 = getelementptr i8, ptr %85, i64 104
  %122 = load double, ptr %120, align 8, !tbaa !5, !alias.scope !33
  %123 = load double, ptr %121, align 8, !tbaa !5, !alias.scope !33
  %124 = insertelement <2 x double> poison, double %122, i64 0
  %125 = insertelement <2 x double> %124, double %123, i64 1
  %126 = getelementptr inbounds double, ptr %55, i64 %index
  store <2 x double> %125, ptr %126, align 8, !tbaa !5, !alias.scope !48, !noalias !49
  %127 = getelementptr i8, ptr %84, i64 48
  %128 = getelementptr i8, ptr %85, i64 112
  %129 = load double, ptr %127, align 8, !tbaa !5, !alias.scope !33
  %130 = load double, ptr %128, align 8, !tbaa !5, !alias.scope !33
  %131 = insertelement <2 x double> poison, double %129, i64 0
  %132 = insertelement <2 x double> %131, double %130, i64 1
  %133 = getelementptr inbounds double, ptr %57, i64 %index
  store <2 x double> %132, ptr %133, align 8, !tbaa !5, !alias.scope !50, !noalias !51
  %134 = getelementptr i8, ptr %84, i64 56
  %135 = getelementptr i8, ptr %85, i64 120
  %136 = load double, ptr %134, align 8, !tbaa !5, !alias.scope !33
  %137 = load double, ptr %135, align 8, !tbaa !5, !alias.scope !33
  %138 = insertelement <2 x double> poison, double %136, i64 0
  %139 = insertelement <2 x double> %138, double %137, i64 1
  %140 = getelementptr inbounds double, ptr %59, i64 %index
  store <2 x double> %139, ptr %140, align 8, !tbaa !5, !alias.scope !52, !noalias !33
  %index.next = add nuw i64 %index, 2
  %141 = icmp eq i64 %index.next, %n.vec
  br i1 %141, label %middle.block, label %vector.body, !llvm.loop !53

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  br i1 %cmp.n, label %._crit_edge.loopexit, label %scalar.ph.preheader

scalar.ph.preheader:                              ; preds = %middle.block, %vector.memcheck, %.lr.ph
  %indvars.iv82.ph = phi i64 [ 0, %vector.memcheck ], [ 0, %.lr.ph ], [ %n.vec, %middle.block ]
  %indvars.iv.ph = phi i64 [ %60, %vector.memcheck ], [ %60, %.lr.ph ], [ %ind.end, %middle.block ]
  br label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %indvars.iv82 = phi i64 [ %indvars.iv.next83, %scalar.ph ], [ %indvars.iv82.ph, %scalar.ph.preheader ]
  %indvars.iv = phi i64 [ %indvars.iv.next, %scalar.ph ], [ %indvars.iv.ph, %scalar.ph.preheader ]
  %142 = getelementptr inbounds double, ptr %1, i64 %indvars.iv
  %143 = getelementptr inbounds %struct._tag, ptr %47, i64 %indvars.iv82
  %144 = load <2 x double>, ptr %142, align 8, !tbaa !5
  %145 = fptosi <2 x double> %144 to <2 x i32>
  store <2 x i32> %145, ptr %143, align 4, !tbaa !16
  %146 = getelementptr i8, ptr %142, i64 16
  %147 = load double, ptr %146, align 8, !tbaa !5
  %148 = getelementptr inbounds double, ptr %49, i64 %indvars.iv82
  store double %147, ptr %148, align 8, !tbaa !5
  %149 = getelementptr i8, ptr %142, i64 24
  %150 = load double, ptr %149, align 8, !tbaa !5
  %151 = getelementptr inbounds double, ptr %51, i64 %indvars.iv82
  store double %150, ptr %151, align 8, !tbaa !5
  %152 = getelementptr i8, ptr %142, i64 32
  %153 = load double, ptr %152, align 8, !tbaa !5
  %154 = getelementptr inbounds double, ptr %53, i64 %indvars.iv82
  store double %153, ptr %154, align 8, !tbaa !5
  %155 = getelementptr i8, ptr %142, i64 40
  %156 = load double, ptr %155, align 8, !tbaa !5
  %157 = getelementptr inbounds double, ptr %55, i64 %indvars.iv82
  store double %156, ptr %157, align 8, !tbaa !5
  %158 = getelementptr i8, ptr %142, i64 48
  %159 = load double, ptr %158, align 8, !tbaa !5
  %160 = getelementptr inbounds double, ptr %57, i64 %indvars.iv82
  store double %159, ptr %160, align 8, !tbaa !5
  %indvars.iv.next = add nsw i64 %indvars.iv, 8
  %161 = getelementptr i8, ptr %142, i64 56
  %162 = load double, ptr %161, align 8, !tbaa !5
  %163 = getelementptr inbounds double, ptr %59, i64 %indvars.iv82
  store double %162, ptr %163, align 8, !tbaa !5
  %indvars.iv.next83 = add nuw nsw i64 %indvars.iv82, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next83, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge.loopexit, label %scalar.ph, !llvm.loop !57

._crit_edge.loopexit:                             ; preds = %scalar.ph, %middle.block
  %indvars.iv.next.lcssa = phi i64 [ %ind.end, %middle.block ], [ %indvars.iv.next, %scalar.ph ]
  %164 = trunc nsw i64 %indvars.iv.next.lcssa to i32
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.lr.ph80
  %.1.lcssa = phi i32 [ %30, %.lr.ph80 ], [ %164, %._crit_edge.loopexit ]
  call void @PushNativeNodeQ(ptr noundef %0, ptr noundef nonnull %17) #4
  %165 = add nuw nsw i32 %.078, 1
  %exitcond87.not = icmp eq i32 %165, %5
  br i1 %exitcond87.not, label %._crit_edge81, label %.lr.ph80, !llvm.loop !58

._crit_edge81:                                    ; preds = %._crit_edge, %2
  call void @SortNativeNodes(ptr noundef %0) #4
  %166 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.17)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #4
  ret void
}

declare void @PushNativeNodeQ(ptr noundef, ptr noundef) local_unnamed_addr #3

declare void @SortNativeNodes(ptr noundef) local_unnamed_addr #3

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 #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 = { 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 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 100}
!10 = !{!"_home", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !12, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !12, i64 48, !12, i64 56, !12, i64 64, !12, i64 72, !12, i64 80, !12, i64 88, !11, i64 96, !11, i64 100, !12, i64 104, !11, i64 112, !11, i64 116, !12, i64 120, !11, i64 128, !11, i64 132, !11, i64 136, !12, i64 144, !11, i64 152, !11, i64 156, !12, i64 160, !12, i64 168, !12, i64 176, !6, i64 184, !6, i64 192, !6, i64 200, !6, i64 208, !6, i64 216, !6, i64 224, !11, i64 232, !11, i64 236, !11, i64 240, !12, i64 248, !12, i64 256, !12, i64 264, !11, i64 272, !12, i64 280, !11, i64 288, !12, i64 296, !12, i64 304, !12, i64 312, !11, i64 320, !11, i64 324, !12, i64 328, !11, i64 336, !12, i64 344, !12, i64 352, !12, i64 360, !11, i64 368, !11, i64 372, !11, i64 376, !12, i64 384, !12, i64 392, !11, i64 400, !11, i64 404, !12, i64 408, !12, i64 416, !12, i64 424, !11, i64 432, !11, i64 436, !11, i64 440, !7, i64 448, !7, i64 520, !13, i64 592, !11, i64 632, !11, i64 636, !11, i64 640, !11, i64 644, !11, i64 648, !11, i64 652, !11, i64 656, !14, i64 664}
!11 = !{!"int", !7, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!"", !11, i64 0, !11, i64 4, !12, i64 8, !12, i64 16, !12, i64 24, !12, i64 32}
!14 = !{!"timeval", !15, i64 0, !15, i64 8}
!15 = !{!"long", !7, i64 0}
!16 = !{!11, !11, i64 0}
!17 = !{!18, !6, i64 8}
!18 = !{!"_node", !11, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !19, i64 152, !11, i64 160, !12, i64 168, !12, i64 176, !12, i64 184, !12, i64 192, !12, i64 200, !12, i64 208, !12, i64 216, !12, i64 224, !12, i64 232, !12, i64 240, !12, i64 248, !12, i64 256, !12, i64 264, !11, i64 272, !11, i64 276, !11, i64 280, !11, i64 284, !11, i64 288, !12, i64 296, !12, i64 304, !11, i64 312}
!19 = !{!"_tag", !11, i64 0, !11, i64 4}
!20 = !{!18, !6, i64 16}
!21 = !{!18, !6, i64 24}
!22 = !{!18, !11, i64 272}
!23 = !{!18, !11, i64 152}
!24 = !{!18, !11, i64 156}
!25 = !{!18, !11, i64 160}
!26 = !{!18, !12, i64 168}
!27 = !{!18, !12, i64 200}
!28 = !{!18, !12, i64 208}
!29 = !{!18, !12, i64 216}
!30 = !{!18, !12, i64 224}
!31 = !{!18, !12, i64 232}
!32 = !{!18, !12, i64 240}
!33 = !{!34}
!34 = distinct !{!34, !35}
!35 = distinct !{!35, !"LVerDomain"}
!36 = !{!37}
!37 = distinct !{!37, !35}
!38 = !{!39, !40, !41, !42, !43, !34}
!39 = distinct !{!39, !35}
!40 = distinct !{!40, !35}
!41 = distinct !{!41, !35}
!42 = distinct !{!42, !35}
!43 = distinct !{!43, !35}
!44 = !{!39}
!45 = !{!40, !41, !42, !43, !34}
!46 = !{!40}
!47 = !{!41, !42, !43, !34}
!48 = !{!41}
!49 = !{!42, !43, !34}
!50 = !{!42}
!51 = !{!43, !34}
!52 = !{!43}
!53 = distinct !{!53, !54, !55, !56}
!54 = !{!"llvm.loop.mustprogress"}
!55 = !{!"llvm.loop.isvectorized", i32 1}
!56 = !{!"llvm.loop.unroll.runtime.disable"}
!57 = distinct !{!57, !54, !55}
!58 = distinct !{!58, !54}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalDCEPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass,VectorCombinePass