; LLVM IR from tangjz/acm-icpc :: 51nod/1369.ll (Z5solvev)

; 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.Event = type { %struct.Point, i32 }
%struct.Point = type { i32, i32 }

@tot = external dso_local global i32, align 4
@cnt = external dso_local global i32, align 4
@que = external dso_local global [1001 x %struct.Event], align 16

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z5solvev() #0 {
  %1 = alloca i1, align 1
  %2 = alloca %struct.Point, align 4
  %3 = alloca %struct.Point, align 4
  %4 = alloca i32, align 4
  %5 = alloca %struct.Point, align 4
  %6 = alloca i32, align 4
  %7 = alloca %struct.Point, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %2, ptr align 16 @que, i64 8, i1 false), !tbaa.struct !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %3, ptr align 16 @que, i64 8, i1 false), !tbaa.struct !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  store i32 1, ptr %4, align 4, !tbaa !6
  br label %11

11:                                               ; preds = %28, %0
  %12 = load i32, ptr %4, align 4, !tbaa !6
  %13 = load i32, ptr @tot, align 4, !tbaa !6
  %14 = icmp slt i32 %12, %13
  br i1 %14, label %16, label %15

15:                                               ; preds = %11
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  br label %31

16:                                               ; preds = %11
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  %17 = load i32, ptr %4, align 4, !tbaa !6
  %18 = sext i32 %17 to i64
  %19 = getelementptr inbounds [1001 x %struct.Event], ptr @que, i64 0, i64 %18
  %20 = getelementptr inbounds %struct.Event, ptr %19, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %5, ptr align 4 %20, i64 8, i1 false), !tbaa.struct !5
  %21 = call noundef zeroext i1 @_ZNK5PointltERKS_(ptr noundef nonnull align 4 dereferenceable(8) %5, ptr noundef nonnull align 4 dereferenceable(8) %2)
  br i1 %21, label %22, label %23

22:                                               ; preds = %16
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %2, ptr align 4 %5, i64 8, i1 false), !tbaa.struct !5
  br label %27

23:                                               ; preds = %16
  %24 = call noundef zeroext i1 @_ZNK5PointltERKS_(ptr noundef nonnull align 4 dereferenceable(8) %3, ptr noundef nonnull align 4 dereferenceable(8) %5)
  br i1 %24, label %25, label %26

25:                                               ; preds = %23
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %3, ptr align 4 %5, i64 8, i1 false), !tbaa.struct !5
  br label %26

26:                                               ; preds = %25, %23
  br label %27

27:                                               ; preds = %26, %22
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  br label %28

28:                                               ; preds = %27
  %29 = load i32, ptr %4, align 4, !tbaa !6
  %30 = add nsw i32 %29, 1
  store i32 %30, ptr %4, align 4, !tbaa !6
  br label %11, !llvm.loop !10

31:                                               ; preds = %15
  %32 = call noundef i32 @_ZNK5Point3detERKS_(ptr noundef nonnull align 4 dereferenceable(8) %2, ptr noundef nonnull align 4 dereferenceable(8) %3)
  %33 = icmp sge i32 %32, 0
  br i1 %33, label %34, label %35

34:                                               ; preds = %31
  store i1 false, ptr %1, align 1
  store i32 1, ptr %6, align 4
  br label %117

35:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %36 = call i64 @_ZNK5PointplERKS_(ptr noundef nonnull align 4 dereferenceable(8) %2, ptr noundef nonnull align 4 dereferenceable(8) %3)
  store i64 %36, ptr %7, align 4
  store i32 0, ptr @cnt, align 4, !tbaa !6
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 0, ptr %8, align 4, !tbaa !6
  br label %37

37:                                               ; preds = %61, %35
  %38 = load i32, ptr %8, align 4, !tbaa !6
  %39 = load i32, ptr @tot, align 4, !tbaa !6
  %40 = icmp slt i32 %38, %39
  br i1 %40, label %42, label %41

41:                                               ; preds = %37
  store i32 5, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  br label %64

42:                                               ; preds = %37
  %43 = load i32, ptr %8, align 4, !tbaa !6
  %44 = sext i32 %43 to i64
  %45 = getelementptr inbounds [1001 x %struct.Event], ptr @que, i64 0, i64 %44
  %46 = getelementptr inbounds %struct.Event, ptr %45, i32 0, i32 0
  %47 = call noundef i32 @_ZNK5Point3detERKS_(ptr noundef nonnull align 4 dereferenceable(8) %7, ptr noundef nonnull align 4 dereferenceable(8) %46)
  %48 = icmp sle i32 %47, 0
  br i1 %48, label %49, label %60

49:                                               ; preds = %42
  %50 = load i32, ptr %8, align 4, !tbaa !6
  %51 = add nsw i32 %50, 1
  %52 = sext i32 %51 to i64
  %53 = getelementptr inbounds [1001 x %struct.Event], ptr @que, i64 0, i64 %52
  %54 = getelementptr inbounds %struct.Event, ptr %53, i32 0, i32 0
  %55 = call noundef i32 @_ZNK5Point3detERKS_(ptr noundef nonnull align 4 dereferenceable(8) %7, ptr noundef nonnull align 4 dereferenceable(8) %54)
  %56 = icmp sge i32 %55, 0
  br i1 %56, label %57, label %60

57:                                               ; preds = %49
  %58 = load i32, ptr @cnt, align 4, !tbaa !6
  %59 = add nsw i32 %58, 1
  store i32 %59, ptr @cnt, align 4, !tbaa !6
  br label %60

60:                                               ; preds = %57, %49, %42
  br label %61

61:                                               ; preds = %60
  %62 = load i32, ptr %8, align 4, !tbaa !6
  %63 = add nsw i32 %62, 2
  store i32 %63, ptr %8, align 4, !tbaa !6
  br label %37, !llvm.loop !12

64:                                               ; preds = %41
  %65 = load i32, ptr @cnt, align 4, !tbaa !6
  %66 = icmp eq i32 %65, 0
  br i1 %66, label %67, label %68

67:                                               ; preds = %64
  store i1 false, ptr %1, align 1
  store i32 1, ptr %6, align 4
  br label %116

68:                                               ; preds = %64
  %69 = load i32, ptr @tot, align 4, !tbaa !6
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds %struct.Event, ptr @que, i64 %70
  call void @_ZSt4sortIP5EventEvT_S2_(ptr noundef @que, ptr noundef %71)
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store i32 0, ptr %9, align 4, !tbaa !6
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  br label %72

72:                                               ; preds = %111, %68
  %73 = load i32, ptr %9, align 4, !tbaa !6
  %74 = load i32, ptr @tot, align 4, !tbaa !6
  %75 = icmp slt i32 %73, %74
  br i1 %75, label %77, label %76

76:                                               ; preds = %72
  store i32 8, ptr %6, align 4
  br label %113

77:                                               ; preds = %72
  %78 = load i32, ptr %9, align 4, !tbaa !6
  store i32 %78, ptr %10, align 4, !tbaa !6
  br label %79

79:                                               ; preds = %103, %77
  %80 = load i32, ptr %10, align 4, !tbaa !6
  %81 = load i32, ptr @tot, align 4, !tbaa !6
  %82 = icmp slt i32 %80, %81
  br i1 %82, label %83, label %93

83:                                               ; preds = %79
  %84 = load i32, ptr %9, align 4, !tbaa !6
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds [1001 x %struct.Event], ptr @que, i64 0, i64 %85
  %87 = getelementptr inbounds %struct.Event, ptr %86, i32 0, i32 0
  %88 = load i32, ptr %10, align 4, !tbaa !6
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds [1001 x %struct.Event], ptr @que, i64 0, i64 %89
  %91 = getelementptr inbounds %struct.Event, ptr %90, i32 0, i32 0
  %92 = call noundef zeroext i1 @_ZNK5PointeqERKS_(ptr noundef nonnull align 4 dereferenceable(8) %87, ptr noundef nonnull align 4 dereferenceable(8) %91)
  br label %93

93:                                               ; preds = %83, %79
  %94 = phi i1 [ false, %79 ], [ %92, %83 ]
  br i1 %94, label %95, label %106

95:                                               ; preds = %93
  %96 = load i32, ptr %10, align 4, !tbaa !6
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds [1001 x %struct.Event], ptr @que, i64 0, i64 %97
  %99 = getelementptr inbounds %struct.Event, ptr %98, i32 0, i32 1
  %100 = load i32, ptr %99, align 4, !tbaa !13
  %101 = load i32, ptr @cnt, align 4, !tbaa !6
  %102 = add nsw i32 %101, %100
  store i32 %102, ptr @cnt, align 4, !tbaa !6
  br label %103

103:                                              ; preds = %95
  %104 = load i32, ptr %10, align 4, !tbaa !6
  %105 = add nsw i32 %104, 1
  store i32 %105, ptr %10, align 4, !tbaa !6
  br label %79, !llvm.loop !16

106:                                              ; preds = %93
  %107 = load i32, ptr @cnt, align 4, !tbaa !6
  %108 = icmp eq i32 %107, 0
  br i1 %108, label %109, label %110

109:                                              ; preds = %106
  store i1 false, ptr %1, align 1
  store i32 1, ptr %6, align 4
  br label %113

110:                                              ; preds = %106
  br label %111

111:                                              ; preds = %110
  %112 = load i32, ptr %10, align 4, !tbaa !6
  store i32 %112, ptr %9, align 4, !tbaa !6
  br label %72, !llvm.loop !17

113:                                              ; preds = %109, %76
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  %114 = load i32, ptr %6, align 4
  switch i32 %114, label %116 [
    i32 8, label %115
  ]

115:                                              ; preds = %113
  store i1 true, ptr %1, align 1
  store i32 1, ptr %6, align 4
  br label %116

116:                                              ; preds = %115, %113, %67
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  br label %117

117:                                              ; preds = %116, %34
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #5
  %118 = load i1, ptr %1, align 1
  ret i1 %118
}

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

; Function Attrs: nocallback nofree 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 uwtable
declare dso_local noundef zeroext i1 @_ZNK5PointltERKS_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #0 align 2

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

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

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

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

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

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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #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 = !{i64 0, i64 4, !6, i64 4, i64 4, !6}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = distinct !{!12, !11}
!13 = !{!14, !7, i64 8}
!14 = !{!"_ZTS5Event", !15, i64 0, !7, i64 8}
!15 = !{!"_ZTS5Point", !7, i64 0, !7, i64 4}
!16 = distinct !{!16, !11}
!17 = distinct !{!17, !11}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.Event = type { %struct.Point, i32 }
%struct.Point = type { i32, i32 }

@tot = external dso_local local_unnamed_addr global i32, align 4
@cnt = external dso_local local_unnamed_addr global i32, align 4
@que = external dso_local global [1001 x %struct.Event], align 16

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z5solvev() local_unnamed_addr #0 {
  %1 = alloca %struct.Point, align 8
  %2 = alloca %struct.Point, align 8
  %3 = alloca %struct.Point, align 8
  %4 = alloca %struct.Point, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #4
  %5 = load i64, ptr @que, align 16
  store i64 %5, ptr %1, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #4
  store i64 %5, ptr %2, align 8
  %6 = load i32, ptr @tot, align 4, !tbaa !5
  %7 = icmp sgt i32 %6, 1
  br i1 %7, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %19, %0
  %8 = call noundef i32 @_ZNK5Point3detERKS_(ptr noundef nonnull align 4 dereferenceable(8) %1, ptr noundef nonnull align 4 dereferenceable(8) %2)
  %9 = icmp sgt i32 %8, -1
  br i1 %9, label %63, label %23

.lr.ph:                                           ; preds = %0, %19
  %indvars.iv = phi i64 [ %indvars.iv.next, %19 ], [ 1, %0 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #4
  %10 = getelementptr inbounds [1001 x %struct.Event], ptr @que, i64 0, i64 %indvars.iv
  %11 = load i64, ptr %10, align 4
  store i64 %11, ptr %3, align 8
  %12 = call noundef zeroext i1 @_ZNK5PointltERKS_(ptr noundef nonnull align 4 dereferenceable(8) %3, ptr noundef nonnull align 4 dereferenceable(8) %1)
  br i1 %12, label %13, label %15

13:                                               ; preds = %.lr.ph
  %14 = load i64, ptr %3, align 8
  store i64 %14, ptr %1, align 8
  br label %19

15:                                               ; preds = %.lr.ph
  %16 = call noundef zeroext i1 @_ZNK5PointltERKS_(ptr noundef nonnull align 4 dereferenceable(8) %2, ptr noundef nonnull align 4 dereferenceable(8) %3)
  br i1 %16, label %17, label %19

17:                                               ; preds = %15
  %18 = load i64, ptr %3, align 8
  store i64 %18, ptr %2, align 8
  br label %19

19:                                               ; preds = %15, %17, %13
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #4
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %20 = load i32, ptr @tot, align 4, !tbaa !5
  %21 = sext i32 %20 to i64
  %22 = icmp slt i64 %indvars.iv.next, %21
  br i1 %22, label %.lr.ph, label %._crit_edge, !llvm.loop !9

23:                                               ; preds = %._crit_edge
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #4
  %24 = call i64 @_ZNK5PointplERKS_(ptr noundef nonnull align 4 dereferenceable(8) %1, ptr noundef nonnull align 4 dereferenceable(8) %2)
  store i64 %24, ptr %4, align 8
  store i32 0, ptr @cnt, align 4, !tbaa !5
  %25 = load i32, ptr @tot, align 4, !tbaa !5
  %26 = icmp sgt i32 %25, 0
  br i1 %26, label %.lr.ph25, label %.loopexit

._crit_edge26:                                    ; preds = %39
  %.pre = load i32, ptr @cnt, align 4, !tbaa !5
  %27 = icmp eq i32 %.pre, 0
  br i1 %27, label %.loopexit, label %43

.lr.ph25:                                         ; preds = %23, %39
  %indvars.iv34 = phi i64 [ %indvars.iv.next35, %39 ], [ 0, %23 ]
  %28 = getelementptr inbounds [1001 x %struct.Event], ptr @que, i64 0, i64 %indvars.iv34
  %29 = call noundef i32 @_ZNK5Point3detERKS_(ptr noundef nonnull align 4 dereferenceable(8) %4, ptr noundef nonnull align 4 dereferenceable(8) %28)
  %30 = icmp slt i32 %29, 1
  br i1 %30, label %31, label %39

31:                                               ; preds = %.lr.ph25
  %32 = or disjoint i64 %indvars.iv34, 1
  %33 = getelementptr inbounds [1001 x %struct.Event], ptr @que, i64 0, i64 %32
  %34 = call noundef i32 @_ZNK5Point3detERKS_(ptr noundef nonnull align 4 dereferenceable(8) %4, ptr noundef nonnull align 4 dereferenceable(8) %33)
  %35 = icmp sgt i32 %34, -1
  br i1 %35, label %36, label %39

36:                                               ; preds = %31
  %37 = load i32, ptr @cnt, align 4, !tbaa !5
  %38 = add nsw i32 %37, 1
  store i32 %38, ptr @cnt, align 4, !tbaa !5
  br label %39

39:                                               ; preds = %.lr.ph25, %31, %36
  %indvars.iv.next35 = add nuw nsw i64 %indvars.iv34, 2
  %40 = load i32, ptr @tot, align 4, !tbaa !5
  %41 = trunc nuw i64 %indvars.iv.next35 to i32
  %42 = icmp sgt i32 %40, %41
  br i1 %42, label %.lr.ph25, label %._crit_edge26, !llvm.loop !11

43:                                               ; preds = %._crit_edge26
  %44 = sext i32 %40 to i64
  %45 = getelementptr inbounds %struct.Event, ptr @que, i64 %44
  call void @_ZSt4sortIP5EventEvT_S2_(ptr noundef nonnull @que, ptr noundef nonnull %45)
  br label %46

46:                                               ; preds = %.critedge, %43
  %.016 = phi i32 [ 0, %43 ], [ %.0.lcssa.ph, %.critedge ]
  %47 = load i32, ptr @tot, align 4, !tbaa !5
  %.not.not = icmp sge i32 %.016, %47
  br i1 %.not.not, label %.loopexit, label %.lr.ph28

.lr.ph28:                                         ; preds = %46
  %48 = sext i32 %.016 to i64
  %49 = getelementptr inbounds [1001 x %struct.Event], ptr @que, i64 0, i64 %48
  br label %50

50:                                               ; preds = %.lr.ph28, %53
  %indvars.iv37 = phi i64 [ %48, %.lr.ph28 ], [ %indvars.iv.next38, %53 ]
  %51 = getelementptr inbounds [1001 x %struct.Event], ptr @que, i64 0, i64 %indvars.iv37
  %52 = call noundef zeroext i1 @_ZNK5PointeqERKS_(ptr noundef nonnull align 4 dereferenceable(8) %49, ptr noundef nonnull align 4 dereferenceable(8) %51)
  br i1 %52, label %53, label %.critedgethread-pre-split

53:                                               ; preds = %50
  %54 = getelementptr inbounds i8, ptr %51, i64 8
  %55 = load i32, ptr %54, align 4, !tbaa !12
  %56 = load i32, ptr @cnt, align 4, !tbaa !5
  %57 = add nsw i32 %56, %55
  store i32 %57, ptr @cnt, align 4, !tbaa !5
  %indvars.iv.next38 = add nsw i64 %indvars.iv37, 1
  %58 = load i32, ptr @tot, align 4, !tbaa !5
  %59 = sext i32 %58 to i64
  %60 = icmp slt i64 %indvars.iv.next38, %59
  br i1 %60, label %50, label %.critedge, !llvm.loop !15

.critedgethread-pre-split:                        ; preds = %50
  %.pr = load i32, ptr @cnt, align 4, !tbaa !5
  br label %.critedge

.critedge:                                        ; preds = %53, %.critedgethread-pre-split
  %61 = phi i32 [ %.pr, %.critedgethread-pre-split ], [ %57, %53 ]
  %.0.lcssa.ph.in = phi i64 [ %indvars.iv37, %.critedgethread-pre-split ], [ %indvars.iv.next38, %53 ]
  %.0.lcssa.ph = trunc i64 %.0.lcssa.ph.in to i32
  %62 = icmp eq i32 %61, 0
  br i1 %62, label %.loopexit, label %46, !llvm.loop !16

.loopexit:                                        ; preds = %46, %.critedge, %23, %._crit_edge26
  %.1 = phi i1 [ false, %._crit_edge26 ], [ false, %23 ], [ true, %46 ], [ %.not.not, %.critedge ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #4
  br label %63

63:                                               ; preds = %._crit_edge, %.loopexit
  %.2 = phi i1 [ %.1, %.loopexit ], [ false, %._crit_edge ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #4
  ret i1 %.2
}

; 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 uwtable
declare dso_local noundef zeroext i1 @_ZNK5PointltERKS_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #0 align 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 uwtable
declare dso_local noundef i32 @_ZNK5Point3detERKS_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #2 align 2

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

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

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

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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { nounwind }

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

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


; Effective O3 passes: ConstraintEliminationPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SCCPPass,SROAPass,SimplifyCFGPass