; LLVM IR from Dev-XYS/Algorithms :: K-Dimensional-Tree.ll (Z5buildRP4nodeiii)

; 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.point = type { [2 x i32] }
%struct.node = type { ptr, ptr, %struct.point, [2 x i32], [2 x i32] }

@d = external dso_local global [500010 x %struct.point], align 16
@_d_ = external dso_local global i32, align 4

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5buildRP4nodeiii(ptr noundef nonnull align 8 dereferenceable(8) %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #0 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca %struct.point, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca %struct.point, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i32 %1, ptr %6, align 4, !tbaa !9
  store i32 %2, ptr %7, align 4, !tbaa !9
  store i32 %3, ptr %8, align 4, !tbaa !9
  %14 = load i32, ptr %6, align 4, !tbaa !9
  %15 = load i32, ptr %7, align 4, !tbaa !9
  %16 = icmp eq i32 %14, %15
  br i1 %16, label %17, label %56

17:                                               ; preds = %4
  %18 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 40) #7
  %19 = load i32, ptr %6, align 4, !tbaa !9
  %20 = sext i32 %19 to i64
  %21 = getelementptr inbounds [500010 x %struct.point], ptr @d, i64 0, i64 %20
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %9, ptr align 8 %21, i64 8, i1 false), !tbaa.struct !11
  %22 = getelementptr inbounds %struct.point, ptr %9, i32 0, i32 0
  %23 = load i64, ptr %22, align 4
  invoke void @_ZN4nodeC2E5point(ptr noundef nonnull align 8 dereferenceable(40) %18, i64 %23)
          to label %24 unwind label %52

24:                                               ; preds = %17
  %25 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %18, ptr %25, align 8, !tbaa !5
  %26 = load i32, ptr %6, align 4, !tbaa !9
  %27 = sext i32 %26 to i64
  %28 = getelementptr inbounds [500010 x %struct.point], ptr @d, i64 0, i64 %27
  %29 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5pointixEi(ptr noundef nonnull align 4 dereferenceable(8) %28, i32 noundef 0)
  %30 = load i32, ptr %29, align 4, !tbaa !9
  %31 = load ptr, ptr %5, align 8, !tbaa !5
  %32 = load ptr, ptr %31, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.node, ptr %32, i32 0, i32 4
  %34 = getelementptr inbounds [2 x i32], ptr %33, i64 0, i64 0
  store i32 %30, ptr %34, align 8, !tbaa !9
  %35 = load ptr, ptr %5, align 8, !tbaa !5
  %36 = load ptr, ptr %35, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.node, ptr %36, i32 0, i32 3
  %38 = getelementptr inbounds [2 x i32], ptr %37, i64 0, i64 0
  store i32 %30, ptr %38, align 8, !tbaa !9
  %39 = load i32, ptr %6, align 4, !tbaa !9
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds [500010 x %struct.point], ptr @d, i64 0, i64 %40
  %42 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5pointixEi(ptr noundef nonnull align 4 dereferenceable(8) %41, i32 noundef 1)
  %43 = load i32, ptr %42, align 4, !tbaa !9
  %44 = load ptr, ptr %5, align 8, !tbaa !5
  %45 = load ptr, ptr %44, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.node, ptr %45, i32 0, i32 4
  %47 = getelementptr inbounds [2 x i32], ptr %46, i64 0, i64 1
  store i32 %43, ptr %47, align 4, !tbaa !9
  %48 = load ptr, ptr %5, align 8, !tbaa !5
  %49 = load ptr, ptr %48, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.node, ptr %49, i32 0, i32 3
  %51 = getelementptr inbounds [2 x i32], ptr %50, i64 0, i64 1
  store i32 %43, ptr %51, align 4, !tbaa !9
  br label %133

52:                                               ; preds = %17
  %53 = landingpad { ptr, i32 }
          cleanup
  %54 = extractvalue { ptr, i32 } %53, 0
  store ptr %54, ptr %10, align 8
  %55 = extractvalue { ptr, i32 } %53, 1
  store i32 %55, ptr %11, align 4
  call void @_ZdlPvm(ptr noundef %18, i64 noundef 40) #8
  br label %134

56:                                               ; preds = %4
  %57 = load i32, ptr %6, align 4, !tbaa !9
  %58 = load i32, ptr %7, align 4, !tbaa !9
  %59 = icmp slt i32 %57, %58
  br i1 %59, label %60, label %132

60:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #9
  %61 = load i32, ptr %6, align 4, !tbaa !9
  %62 = load i32, ptr %7, align 4, !tbaa !9
  %63 = add nsw i32 %61, %62
  %64 = ashr i32 %63, 1
  store i32 %64, ptr %12, align 4, !tbaa !9
  %65 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %65, ptr @_d_, align 4, !tbaa !9
  %66 = load i32, ptr %6, align 4, !tbaa !9
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds %struct.point, ptr @d, i64 %67
  %69 = load i32, ptr %12, align 4, !tbaa !9
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds %struct.point, ptr @d, i64 %70
  %72 = load i32, ptr %7, align 4, !tbaa !9
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds %struct.point, ptr @d, i64 %73
  %75 = getelementptr inbounds %struct.point, ptr %74, i64 1
  call void @_ZSt11nth_elementIP5pointPFbRKS0_S3_EEvT_S6_S6_T0_(ptr noundef %68, ptr noundef %71, ptr noundef %75, ptr noundef @_Z11_point_cmp_RK5pointS1_)
  %76 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 40) #7
  %77 = load i32, ptr %12, align 4, !tbaa !9
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds [500010 x %struct.point], ptr @d, i64 0, i64 %78
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %13, ptr align 8 %79, i64 8, i1 false), !tbaa.struct !11
  %80 = getelementptr inbounds %struct.point, ptr %13, i32 0, i32 0
  %81 = load i64, ptr %80, align 4
  invoke void @_ZN4nodeC2E5point(ptr noundef nonnull align 8 dereferenceable(40) %76, i64 %81)
          to label %82 unwind label %128

82:                                               ; preds = %60
  %83 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %76, ptr %83, align 8, !tbaa !5
  %84 = load i32, ptr %12, align 4, !tbaa !9
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds [500010 x %struct.point], ptr @d, i64 0, i64 %85
  %87 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5pointixEi(ptr noundef nonnull align 4 dereferenceable(8) %86, i32 noundef 0)
  %88 = load i32, ptr %87, align 4, !tbaa !9
  %89 = load ptr, ptr %5, align 8, !tbaa !5
  %90 = load ptr, ptr %89, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.node, ptr %90, i32 0, i32 4
  %92 = getelementptr inbounds [2 x i32], ptr %91, i64 0, i64 0
  store i32 %88, ptr %92, align 8, !tbaa !9
  %93 = load ptr, ptr %5, align 8, !tbaa !5
  %94 = load ptr, ptr %93, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.node, ptr %94, i32 0, i32 3
  %96 = getelementptr inbounds [2 x i32], ptr %95, i64 0, i64 0
  store i32 %88, ptr %96, align 8, !tbaa !9
  %97 = load i32, ptr %12, align 4, !tbaa !9
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds [500010 x %struct.point], ptr @d, i64 0, i64 %98
  %100 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5pointixEi(ptr noundef nonnull align 4 dereferenceable(8) %99, i32 noundef 1)
  %101 = load i32, ptr %100, align 4, !tbaa !9
  %102 = load ptr, ptr %5, align 8, !tbaa !5
  %103 = load ptr, ptr %102, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.node, ptr %103, i32 0, i32 4
  %105 = getelementptr inbounds [2 x i32], ptr %104, i64 0, i64 1
  store i32 %101, ptr %105, align 4, !tbaa !9
  %106 = load ptr, ptr %5, align 8, !tbaa !5
  %107 = load ptr, ptr %106, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.node, ptr %107, i32 0, i32 3
  %109 = getelementptr inbounds [2 x i32], ptr %108, i64 0, i64 1
  store i32 %101, ptr %109, align 4, !tbaa !9
  %110 = load ptr, ptr %5, align 8, !tbaa !5
  %111 = load ptr, ptr %110, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.node, ptr %111, i32 0, i32 0
  %113 = load i32, ptr %6, align 4, !tbaa !9
  %114 = load i32, ptr %12, align 4, !tbaa !9
  %115 = sub nsw i32 %114, 1
  %116 = load i32, ptr %8, align 4, !tbaa !9
  %117 = xor i32 %116, 1
  call void @_Z5buildRP4nodeiii(ptr noundef nonnull align 8 dereferenceable(8) %112, i32 noundef %113, i32 noundef %115, i32 noundef %117)
  %118 = load ptr, ptr %5, align 8, !tbaa !5
  %119 = load ptr, ptr %118, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.node, ptr %119, i32 0, i32 1
  %121 = load i32, ptr %12, align 4, !tbaa !9
  %122 = add nsw i32 %121, 1
  %123 = load i32, ptr %7, align 4, !tbaa !9
  %124 = load i32, ptr %8, align 4, !tbaa !9
  %125 = xor i32 %124, 1
  call void @_Z5buildRP4nodeiii(ptr noundef nonnull align 8 dereferenceable(8) %120, i32 noundef %122, i32 noundef %123, i32 noundef %125)
  %126 = load ptr, ptr %5, align 8, !tbaa !5
  %127 = load ptr, ptr %126, align 8, !tbaa !5
  call void @_Z6updateP4node(ptr noundef %127)
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #9
  br label %132

128:                                              ; preds = %60
  %129 = landingpad { ptr, i32 }
          cleanup
  %130 = extractvalue { ptr, i32 } %129, 0
  store ptr %130, ptr %10, align 8
  %131 = extractvalue { ptr, i32 } %129, 1
  store i32 %131, ptr %11, align 4
  call void @_ZdlPvm(ptr noundef %76, i64 noundef 40) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #9
  br label %134

132:                                              ; preds = %82, %56
  br label %133

133:                                              ; preds = %132, %24
  ret void

134:                                              ; preds = %128, %52
  %135 = load ptr, ptr %10, align 8
  %136 = load i32, ptr %11, align 4
  %137 = insertvalue { ptr, i32 } poison, ptr %135, 0
  %138 = insertvalue { ptr, i32 } %137, i32 %136, 1
  resume { ptr, i32 } %138
}

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) #1

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4nodeC2E5point(ptr noundef nonnull align 8 dereferenceable(40), i64) unnamed_addr #3 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN5pointixEi(ptr noundef nonnull align 4 dereferenceable(8), i32 noundef) #3 align 2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z11_point_cmp_RK5pointS1_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #6

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

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nobuiltin 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 #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { nobuiltin 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 #5 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { builtin allocsize(0) }
attributes #8 = { builtin nounwind }
attributes #9 = { 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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{i64 0, i64 8, !12}
!12 = !{!7, !7, i64 0}


; 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.point = type { [2 x i32] }

@d = external dso_local global [500010 x %struct.point], align 16
@_d_ = external dso_local local_unnamed_addr global i32, align 4

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5buildRP4nodeiii(ptr nocapture noundef nonnull align 8 dereferenceable(8) %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %5 = icmp eq i32 %1, %2
  br i1 %5, label %6, label %20

6:                                                ; preds = %4
  %7 = tail call noalias noundef nonnull dereferenceable(40) ptr @_Znwm(i64 noundef 40) #4
  %8 = sext i32 %1 to i64
  %9 = getelementptr inbounds [500010 x %struct.point], ptr @d, i64 0, i64 %8
  %.sroa.06.0.copyload = load i64, ptr %9, align 8, !tbaa !5
  tail call void @_ZN4nodeC2E5point(ptr noundef nonnull align 8 dereferenceable(40) %7, i64 %.sroa.06.0.copyload)
  store ptr %7, ptr %0, align 8, !tbaa !8
  %10 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5pointixEi(ptr noundef nonnull align 4 dereferenceable(8) %9, i32 noundef 0)
  %11 = load i32, ptr %10, align 4, !tbaa !10
  %12 = load ptr, ptr %0, align 8, !tbaa !8
  %13 = getelementptr inbounds i8, ptr %12, i64 32
  store i32 %11, ptr %13, align 8, !tbaa !10
  %14 = getelementptr inbounds i8, ptr %12, i64 24
  store i32 %11, ptr %14, align 8, !tbaa !10
  %15 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5pointixEi(ptr noundef nonnull align 4 dereferenceable(8) %9, i32 noundef 1)
  %16 = load i32, ptr %15, align 4, !tbaa !10
  %17 = load ptr, ptr %0, align 8, !tbaa !8
  %18 = getelementptr inbounds i8, ptr %17, i64 36
  store i32 %16, ptr %18, align 4, !tbaa !10
  %19 = getelementptr inbounds i8, ptr %17, i64 28
  store i32 %16, ptr %19, align 4, !tbaa !10
  br label %common.ret36

20:                                               ; preds = %4
  %21 = icmp slt i32 %1, %2
  br i1 %21, label %22, label %common.ret36

common.ret36:                                     ; preds = %20, %6, %22
  ret void

22:                                               ; preds = %20
  %23 = add nsw i32 %2, %1
  %24 = ashr i32 %23, 1
  store i32 %3, ptr @_d_, align 4, !tbaa !10
  %25 = sext i32 %1 to i64
  %26 = getelementptr inbounds %struct.point, ptr @d, i64 %25
  %27 = sext i32 %24 to i64
  %28 = getelementptr inbounds %struct.point, ptr @d, i64 %27
  %29 = sext i32 %2 to i64
  %30 = getelementptr inbounds %struct.point, ptr @d, i64 %29
  %31 = getelementptr inbounds i8, ptr %30, i64 8
  tail call void @_ZSt11nth_elementIP5pointPFbRKS0_S3_EEvT_S6_S6_T0_(ptr noundef nonnull %26, ptr noundef nonnull %28, ptr noundef nonnull %31, ptr noundef nonnull @_Z11_point_cmp_RK5pointS1_)
  %32 = tail call noalias noundef nonnull dereferenceable(40) ptr @_Znwm(i64 noundef 40) #4
  %.sroa.0.0.copyload = load i64, ptr %28, align 8, !tbaa !5
  tail call void @_ZN4nodeC2E5point(ptr noundef nonnull align 8 dereferenceable(40) %32, i64 %.sroa.0.0.copyload)
  store ptr %32, ptr %0, align 8, !tbaa !8
  %33 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5pointixEi(ptr noundef nonnull align 4 dereferenceable(8) %28, i32 noundef 0)
  %34 = load i32, ptr %33, align 4, !tbaa !10
  %35 = load ptr, ptr %0, align 8, !tbaa !8
  %36 = getelementptr inbounds i8, ptr %35, i64 32
  store i32 %34, ptr %36, align 8, !tbaa !10
  %37 = getelementptr inbounds i8, ptr %35, i64 24
  store i32 %34, ptr %37, align 8, !tbaa !10
  %38 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5pointixEi(ptr noundef nonnull align 4 dereferenceable(8) %28, i32 noundef 1)
  %39 = load i32, ptr %38, align 4, !tbaa !10
  %40 = load ptr, ptr %0, align 8, !tbaa !8
  %41 = getelementptr inbounds i8, ptr %40, i64 36
  store i32 %39, ptr %41, align 4, !tbaa !10
  %42 = getelementptr inbounds i8, ptr %40, i64 28
  store i32 %39, ptr %42, align 4, !tbaa !10
  %43 = add nsw i32 %24, -1
  %44 = xor i32 %3, 1
  tail call void @_Z5buildRP4nodeiii(ptr noundef nonnull align 8 dereferenceable(8) %40, i32 noundef %1, i32 noundef %43, i32 noundef %44)
  %45 = load ptr, ptr %0, align 8, !tbaa !8
  %46 = getelementptr inbounds i8, ptr %45, i64 8
  %47 = add nsw i32 %24, 1
  tail call void @_Z5buildRP4nodeiii(ptr noundef nonnull align 8 dereferenceable(8) %46, i32 noundef %47, i32 noundef %2, i32 noundef %44)
  %48 = load ptr, ptr %0, align 8, !tbaa !8
  tail call void @_Z6updateP4node(ptr noundef %48)
  br label %common.ret36
}

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4nodeC2E5point(ptr noundef nonnull align 8 dereferenceable(40), i64) unnamed_addr #2 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN5pointixEi(ptr noundef nonnull align 4 dereferenceable(8), i32 noundef) local_unnamed_addr #2 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z11_point_cmp_RK5pointS1_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z6updateP4node(ptr noundef) local_unnamed_addr #3

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nobuiltin 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 #2 = { 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 #3 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { builtin 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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"any pointer", !6, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !6, i64 0}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass