; LLVM IR from lzyrapx/Competitive-Programming :: 百度之星/2016 Astar Contest - Round 2B/1002-刷题计划.ll (Z2dp5point)

; 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 { i32, i32 }

@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@a = external dso_local global [405 x i32], align 16
@sx = external dso_local global double, align 8
@sy = external dso_local global double, align 8
@c = external dso_local global [405 x %struct.point], align 16
@f = external dso_local global [405 x [810 x %struct.point]], align 16

; Function Attrs: mustprogress uwtable
define dso_local i64 @_Z2dp5point(i64 %0) #0 {
  %2 = alloca %struct.point, align 4
  %3 = alloca %struct.point, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, 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 %struct.point, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca %struct.point, align 4
  store i64 %0, ptr %3, align 4
  %18 = getelementptr inbounds %struct.point, ptr %3, i32 0, i32 0
  %19 = load i32, ptr %18, align 4, !tbaa !5
  %20 = sitofp i32 %19 to double
  store double %20, ptr @sx, align 8, !tbaa !10
  %21 = getelementptr inbounds %struct.point, ptr %3, i32 0, i32 1
  %22 = load i32, ptr %21, align 4, !tbaa !12
  %23 = sitofp i32 %22 to double
  store double %23, ptr @sy, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  store i32 0, ptr %4, align 4, !tbaa !13
  br label %24

24:                                               ; preds = %46, %1
  %25 = load i32, ptr %4, align 4, !tbaa !13
  %26 = load i32, ptr @n, align 4, !tbaa !13
  %27 = icmp sle i32 %25, %26
  br i1 %27, label %29, label %28

28:                                               ; preds = %24
  store i32 2, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  br label %49

29:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  store i32 0, ptr %6, align 4, !tbaa !13
  br label %30

30:                                               ; preds = %42, %29
  %31 = load i32, ptr %6, align 4, !tbaa !13
  %32 = load i32, ptr @m, align 4, !tbaa !13
  %33 = icmp sle i32 %31, %32
  br i1 %33, label %35, label %34

34:                                               ; preds = %30
  store i32 5, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  br label %45

35:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  store i32 1000000000, ptr %8, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  store i32 1000000000, ptr %9, align 4, !tbaa !13
  call void @_ZN5pointC2ERKiS1_(ptr noundef nonnull align 4 dereferenceable(8) %7, ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull align 4 dereferenceable(4) %9)
  %36 = load i32, ptr %4, align 4, !tbaa !13
  %37 = sext i32 %36 to i64
  %38 = getelementptr inbounds [405 x [810 x %struct.point]], ptr @f, i64 0, i64 %37
  %39 = load i32, ptr %6, align 4, !tbaa !13
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds [810 x %struct.point], ptr %38, i64 0, i64 %40
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %41, ptr align 4 %7, i64 8, i1 false), !tbaa.struct !14
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  br label %42

42:                                               ; preds = %35
  %43 = load i32, ptr %6, align 4, !tbaa !13
  %44 = add nsw i32 %43, 1
  store i32 %44, ptr %6, align 4, !tbaa !13
  br label %30, !llvm.loop !15

45:                                               ; preds = %34
  br label %46

46:                                               ; preds = %45
  %47 = load i32, ptr %4, align 4, !tbaa !13
  %48 = add nsw i32 %47, 1
  store i32 %48, ptr %4, align 4, !tbaa !13
  br label %24, !llvm.loop !17

49:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  store i32 0, ptr %11, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  store i32 0, ptr %12, align 4, !tbaa !13
  call void @_ZN5pointC2ERKiS1_(ptr noundef nonnull align 4 dereferenceable(8) %10, ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(4) %12)
  %50 = load i32, ptr @m, align 4, !tbaa !13
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds [810 x %struct.point], ptr @f, i64 0, i64 %51
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %52, ptr align 4 %10, i64 8, i1 false), !tbaa.struct !14
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  store i32 1, ptr %13, align 4, !tbaa !13
  br label %53

53:                                               ; preds = %121, %49
  %54 = load i32, ptr %13, align 4, !tbaa !13
  %55 = load i32, ptr @n, align 4, !tbaa !13
  %56 = icmp sle i32 %54, %55
  br i1 %56, label %58, label %57

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

58:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  store i32 0, ptr %14, align 4, !tbaa !13
  br label %59

59:                                               ; preds = %117, %58
  %60 = load i32, ptr %14, align 4, !tbaa !13
  %61 = load i32, ptr @m, align 4, !tbaa !13
  %62 = icmp sle i32 %60, %61
  br i1 %62, label %64, label %63

63:                                               ; preds = %59
  store i32 11, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  br label %120

64:                                               ; preds = %59
  %65 = load i32, ptr %13, align 4, !tbaa !13
  %66 = sub nsw i32 %65, 1
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds [405 x [810 x %struct.point]], ptr @f, i64 0, i64 %67
  %69 = load i32, ptr %14, align 4, !tbaa !13
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds [810 x %struct.point], ptr %68, i64 0, i64 %70
  %72 = getelementptr inbounds %struct.point, ptr %71, i32 0, i32 0
  %73 = load i32, ptr %72, align 8, !tbaa !5
  %74 = sitofp i32 %73 to double
  %75 = fcmp olt double %74, 1.000000e+08
  br i1 %75, label %76, label %116

76:                                               ; preds = %64
  %77 = load i32, ptr %13, align 4, !tbaa !13
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds [405 x [810 x %struct.point]], ptr @f, i64 0, i64 %78
  %80 = load i32, ptr %14, align 4, !tbaa !13
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds [810 x %struct.point], ptr %79, i64 0, i64 %81
  %83 = load i32, ptr %13, align 4, !tbaa !13
  %84 = sub nsw i32 %83, 1
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds [405 x [810 x %struct.point]], ptr @f, i64 0, i64 %85
  %87 = load i32, ptr %14, align 4, !tbaa !13
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds [810 x %struct.point], ptr %86, i64 0, i64 %88
  %90 = call noundef zeroext i1 @_Z3tenI5pointEbRT_RKS1_(ptr noundef nonnull align 4 dereferenceable(8) %82, ptr noundef nonnull align 4 dereferenceable(8) %89)
  %91 = load i32, ptr %13, align 4, !tbaa !13
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds [405 x [810 x %struct.point]], ptr @f, i64 0, i64 %92
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  store i32 0, ptr %15, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  %94 = load i32, ptr %14, align 4, !tbaa !13
  %95 = load i32, ptr %13, align 4, !tbaa !13
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds [405 x i32], ptr @a, i64 0, i64 %96
  %98 = load i32, ptr %97, align 4, !tbaa !13
  %99 = sub nsw i32 %94, %98
  store i32 %99, ptr %16, align 4, !tbaa !13
  %100 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %15, ptr noundef nonnull align 4 dereferenceable(4) %16)
  %101 = load i32, ptr %100, align 4, !tbaa !13
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds [810 x %struct.point], ptr %93, i64 0, i64 %102
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %104 = load i32, ptr %13, align 4, !tbaa !13
  %105 = sub nsw i32 %104, 1
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds [405 x [810 x %struct.point]], ptr @f, i64 0, i64 %106
  %108 = load i32, ptr %14, align 4, !tbaa !13
  %109 = sext i32 %108 to i64
  %110 = getelementptr inbounds [810 x %struct.point], ptr %107, i64 0, i64 %109
  %111 = load i32, ptr %13, align 4, !tbaa !13
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds [405 x %struct.point], ptr @c, i64 0, i64 %112
  %114 = call i64 @_ZN5pointplERKS_(ptr noundef nonnull align 4 dereferenceable(8) %110, ptr noundef nonnull align 4 dereferenceable(8) %113)
  store i64 %114, ptr %17, align 4
  %115 = call noundef zeroext i1 @_Z3tenI5pointEbRT_RKS1_(ptr noundef nonnull align 4 dereferenceable(8) %103, ptr noundef nonnull align 4 dereferenceable(8) %17)
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  br label %116

116:                                              ; preds = %76, %64
  br label %117

117:                                              ; preds = %116
  %118 = load i32, ptr %14, align 4, !tbaa !13
  %119 = add nsw i32 %118, 1
  store i32 %119, ptr %14, align 4, !tbaa !13
  br label %59, !llvm.loop !18

120:                                              ; preds = %63
  br label %121

121:                                              ; preds = %120
  %122 = load i32, ptr %13, align 4, !tbaa !13
  %123 = add nsw i32 %122, 1
  store i32 %123, ptr %13, align 4, !tbaa !13
  br label %53, !llvm.loop !19

124:                                              ; preds = %57
  %125 = load i32, ptr @n, align 4, !tbaa !13
  %126 = sext i32 %125 to i64
  %127 = getelementptr inbounds [405 x [810 x %struct.point]], ptr @f, i64 0, i64 %126
  %128 = getelementptr inbounds [810 x %struct.point], ptr %127, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %2, ptr align 16 %128, i64 8, i1 false), !tbaa.struct !14
  %129 = load i64, ptr %2, align 4
  ret i64 %129
}

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #5

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZN5pointplERKS_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #0 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 = { 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }

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

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


; 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 { i32, i32 }

@n = external dso_local local_unnamed_addr global i32, align 4
@m = external dso_local local_unnamed_addr global i32, align 4
@a = external dso_local local_unnamed_addr global [405 x i32], align 16
@sx = external dso_local local_unnamed_addr global double, align 8
@sy = external dso_local local_unnamed_addr global double, align 8
@c = external dso_local global [405 x %struct.point], align 16
@f = external dso_local global [405 x [810 x %struct.point]], align 16

; Function Attrs: mustprogress uwtable
define dso_local i64 @_Z2dp5point(i64 %0) local_unnamed_addr #0 {
  %2 = alloca %struct.point, align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca %struct.point, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca %struct.point, align 8
  %.sroa.0.0.extract.trunc = trunc i64 %0 to i32
  %.sroa.2.0.extract.shift = lshr i64 %0, 32
  %.sroa.2.0.extract.trunc = trunc nuw i64 %.sroa.2.0.extract.shift to i32
  %11 = sitofp i32 %.sroa.0.0.extract.trunc to double
  store double %11, ptr @sx, align 8, !tbaa !5
  %12 = sitofp i32 %.sroa.2.0.extract.trunc to double
  store double %12, ptr @sy, align 8, !tbaa !5
  %13 = load i32, ptr @n, align 4, !tbaa !9
  %.not33 = icmp slt i32 %13, 0
  %14 = load i32, ptr @m, align 4
  %15 = icmp slt i32 %14, 0
  %or.cond62 = select i1 %.not33, i1 true, i1 %15
  br i1 %or.cond62, label %._crit_edge35, label %.preheader30

.preheader30:                                     ; preds = %1, %._crit_edge
  %16 = phi i32 [ %24, %._crit_edge ], [ %13, %1 ]
  %17 = phi i32 [ %25, %._crit_edge ], [ %14, %1 ]
  %indvars.iv47 = phi i64 [ %indvars.iv.next48, %._crit_edge ], [ 0, %1 ]
  %.not2931 = icmp slt i32 %17, 0
  br i1 %.not2931, label %._crit_edge, label %.lr.ph

._crit_edge35:                                    ; preds = %._crit_edge, %1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #5
  store i32 0, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #5
  store i32 0, ptr %7, align 4, !tbaa !9
  call void @_ZN5pointC2ERKiS1_(ptr noundef nonnull align 4 dereferenceable(8) %5, ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 4 dereferenceable(4) %7)
  %18 = load i32, ptr @m, align 4, !tbaa !9
  %19 = sext i32 %18 to i64
  %20 = getelementptr inbounds [810 x %struct.point], ptr @f, i64 0, i64 %19
  %21 = load i64, ptr %5, align 8
  store i64 %21, ptr %20, align 8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  %22 = load i32, ptr @n, align 4, !tbaa !9
  %.not2740 = icmp slt i32 %22, 1
  %23 = icmp slt i32 %18, 0
  %or.cond = or i1 %.not2740, %23
  br i1 %or.cond, label %._crit_edge42, label %.preheader

._crit_edge.loopexit:                             ; preds = %.lr.ph
  %.pre = load i32, ptr @n, align 4, !tbaa !9
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.preheader30
  %24 = phi i32 [ %.pre, %._crit_edge.loopexit ], [ %16, %.preheader30 ]
  %25 = phi i32 [ %29, %._crit_edge.loopexit ], [ %17, %.preheader30 ]
  %indvars.iv.next48 = add nuw nsw i64 %indvars.iv47, 1
  %26 = sext i32 %24 to i64
  %.not.not = icmp slt i64 %indvars.iv47, %26
  br i1 %.not.not, label %.preheader30, label %._crit_edge35, !llvm.loop !11

.lr.ph:                                           ; preds = %.preheader30, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %.preheader30 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #5
  store i32 1000000000, ptr %3, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #5
  store i32 1000000000, ptr %4, align 4, !tbaa !9
  call void @_ZN5pointC2ERKiS1_(ptr noundef nonnull align 4 dereferenceable(8) %2, ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %27 = getelementptr inbounds [405 x [810 x %struct.point]], ptr @f, i64 0, i64 %indvars.iv47, i64 %indvars.iv
  %28 = load i64, ptr %2, align 8
  store i64 %28, ptr %27, align 8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %29 = load i32, ptr @m, align 4, !tbaa !9
  %30 = sext i32 %29 to i64
  %.not29.not = icmp slt i64 %indvars.iv, %30
  br i1 %.not29.not, label %.lr.ph, label %._crit_edge.loopexit, !llvm.loop !14

.preheader:                                       ; preds = %._crit_edge35, %._crit_edge39
  %31 = phi i32 [ %39, %._crit_edge39 ], [ %22, %._crit_edge35 ]
  %32 = phi i32 [ %40, %._crit_edge39 ], [ %18, %._crit_edge35 ]
  %33 = phi i32 [ %41, %._crit_edge39 ], [ %18, %._crit_edge35 ]
  %indvars.iv53 = phi i64 [ %indvars.iv.next54, %._crit_edge39 ], [ 1, %._crit_edge35 ]
  %.not2836 = icmp slt i32 %33, 0
  br i1 %.not2836, label %._crit_edge39, label %.lr.ph38

.lr.ph38:                                         ; preds = %.preheader
  %34 = add nsw i64 %indvars.iv53, -1
  %35 = getelementptr inbounds [405 x i32], ptr @a, i64 0, i64 %indvars.iv53
  %36 = getelementptr inbounds [405 x %struct.point], ptr @c, i64 0, i64 %indvars.iv53
  br label %43

._crit_edge42:                                    ; preds = %._crit_edge39, %._crit_edge35
  %.lcssa = phi i32 [ %22, %._crit_edge35 ], [ %39, %._crit_edge39 ]
  %37 = sext i32 %.lcssa to i64
  %38 = getelementptr inbounds [405 x [810 x %struct.point]], ptr @f, i64 0, i64 %37
  %.sroa.022.0.copyload = load i64, ptr %38, align 16
  ret i64 %.sroa.022.0.copyload

._crit_edge39.loopexit:                           ; preds = %60
  %.pre57 = load i32, ptr @n, align 4, !tbaa !9
  br label %._crit_edge39

._crit_edge39:                                    ; preds = %._crit_edge39.loopexit, %.preheader
  %39 = phi i32 [ %.pre57, %._crit_edge39.loopexit ], [ %31, %.preheader ]
  %40 = phi i32 [ %61, %._crit_edge39.loopexit ], [ %32, %.preheader ]
  %41 = phi i32 [ %61, %._crit_edge39.loopexit ], [ %33, %.preheader ]
  %indvars.iv.next54 = add nuw nsw i64 %indvars.iv53, 1
  %42 = sext i32 %39 to i64
  %.not27.not = icmp slt i64 %indvars.iv53, %42
  br i1 %.not27.not, label %.preheader, label %._crit_edge42, !llvm.loop !15

43:                                               ; preds = %.lr.ph38, %60
  %44 = phi i32 [ %32, %.lr.ph38 ], [ %61, %60 ]
  %indvars.iv50 = phi i64 [ 0, %.lr.ph38 ], [ %indvars.iv.next51, %60 ]
  %45 = getelementptr inbounds [405 x [810 x %struct.point]], ptr @f, i64 0, i64 %34, i64 %indvars.iv50
  %46 = load i32, ptr %45, align 8, !tbaa !16
  %47 = icmp slt i32 %46, 100000000
  br i1 %47, label %48, label %60

48:                                               ; preds = %43
  %49 = getelementptr inbounds [405 x [810 x %struct.point]], ptr @f, i64 0, i64 %indvars.iv53, i64 %indvars.iv50
  %50 = call noundef zeroext i1 @_Z3tenI5pointEbRT_RKS1_(ptr noundef nonnull align 4 dereferenceable(8) %49, ptr noundef nonnull align 4 dereferenceable(8) %45)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #5
  store i32 0, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #5
  %51 = load i32, ptr %35, align 4, !tbaa !9
  %52 = trunc nuw nsw i64 %indvars.iv50 to i32
  %53 = sub nsw i32 %52, %51
  store i32 %53, ptr %9, align 4, !tbaa !9
  %54 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull align 4 dereferenceable(4) %9)
  %55 = load i32, ptr %54, align 4, !tbaa !9
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds [405 x [810 x %struct.point]], ptr @f, i64 0, i64 %indvars.iv53, i64 %56
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #5
  %58 = call i64 @_ZN5pointplERKS_(ptr noundef nonnull align 4 dereferenceable(8) %45, ptr noundef nonnull align 4 dereferenceable(8) %36)
  store i64 %58, ptr %10, align 8
  %59 = call noundef zeroext i1 @_Z3tenI5pointEbRT_RKS1_(ptr noundef nonnull align 4 dereferenceable(8) %57, ptr noundef nonnull align 4 dereferenceable(8) %10)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #5
  %.pre56 = load i32, ptr @m, align 4, !tbaa !9
  br label %60

60:                                               ; preds = %43, %48
  %61 = phi i32 [ %44, %43 ], [ %.pre56, %48 ]
  %indvars.iv.next51 = add nuw nsw i64 %indvars.iv50, 1
  %62 = sext i32 %61 to i64
  %.not28.not = icmp slt i64 %indvars.iv50, %62
  br i1 %.not28.not, label %43, label %._crit_edge39.loopexit, !llvm.loop !18
}

; 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 nounwind uwtable
declare dso_local void @_ZN5pointC2ERKiS1_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #2 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: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z3tenI5pointEbRT_RKS1_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZN5pointplERKS_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #0 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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12, !13}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!"llvm.loop.unswitch.partial.disable"}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12, !13}
!16 = !{!17, !10, i64 0}
!17 = !{!"_ZTS5point", !10, i64 0, !10, i64 4}
!18 = distinct !{!18, !12}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimpleLoopUnswitchPass,SimplifyCFGPass