; LLVM IR from lzyrapx/Competitive-Programming :: ACdream (1094（几何+求外心）)

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

@p = external dso_local global [5 x %struct.Point], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_Z3ang5PointS_S_(double, double, double, double, double, double) #0

; 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: mustprogress uwtable
declare dso_local { double, double } @_Z2wx5PointS_S_(double, double, double, double, double, double) #0

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z5is_okid(i32 noundef, double noundef) #0

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #3

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #4 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca double, align 8
  %5 = alloca %struct.Point, align 8
  %6 = alloca %struct.Point, align 8
  %7 = alloca %struct.Point, align 8
  %8 = alloca double, align 8
  %9 = alloca %struct.Point, align 8
  %10 = alloca %struct.Point, align 8
  %11 = alloca %struct.Point, align 8
  %12 = alloca double, align 8
  %13 = alloca %struct.Point, align 8
  %14 = alloca %struct.Point, align 8
  %15 = alloca %struct.Point, align 8
  %16 = alloca %struct.Point, align 8
  %17 = alloca %struct.Point, align 8
  %18 = alloca %struct.Point, align 8
  %19 = alloca %struct.Point, align 8
  %20 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  %21 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %2)
  br label %22

22:                                               ; preds = %139, %0
  %23 = load i32, ptr %2, align 4, !tbaa !5
  %24 = add nsw i32 %23, -1
  store i32 %24, ptr %2, align 4, !tbaa !5
  %25 = icmp ne i32 %23, 0
  br i1 %25, label %26, label %140

26:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %27

27:                                               ; preds = %41, %26
  %28 = load i32, ptr %3, align 4, !tbaa !5
  %29 = icmp slt i32 %28, 3
  br i1 %29, label %31, label %30

30:                                               ; preds = %27
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  br label %44

31:                                               ; preds = %27
  %32 = load i32, ptr %3, align 4, !tbaa !5
  %33 = sext i32 %32 to i64
  %34 = getelementptr inbounds [5 x %struct.Point], ptr @p, i64 0, i64 %33
  %35 = getelementptr inbounds %struct.Point, ptr %34, i32 0, i32 0
  %36 = load i32, ptr %3, align 4, !tbaa !5
  %37 = sext i32 %36 to i64
  %38 = getelementptr inbounds [5 x %struct.Point], ptr @p, i64 0, i64 %37
  %39 = getelementptr inbounds %struct.Point, ptr %38, i32 0, i32 1
  %40 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.2, ptr noundef %35, ptr noundef %39)
  br label %41

41:                                               ; preds = %31
  %42 = load i32, ptr %3, align 4, !tbaa !5
  %43 = add nsw i32 %42, 1
  store i32 %43, ptr %3, align 4, !tbaa !5
  br label %27, !llvm.loop !9

44:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %5, ptr align 16 @p, i64 16, i1 false), !tbaa.struct !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %6, ptr align 16 getelementptr inbounds ([5 x %struct.Point], ptr @p, i64 0, i64 1), i64 16, i1 false), !tbaa.struct !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %7, ptr align 16 getelementptr inbounds ([5 x %struct.Point], ptr @p, i64 0, i64 2), i64 16, i1 false), !tbaa.struct !11
  %45 = getelementptr inbounds { double, double }, ptr %5, i32 0, i32 0
  %46 = load double, ptr %45, align 8
  %47 = getelementptr inbounds { double, double }, ptr %5, i32 0, i32 1
  %48 = load double, ptr %47, align 8
  %49 = getelementptr inbounds { double, double }, ptr %6, i32 0, i32 0
  %50 = load double, ptr %49, align 8
  %51 = getelementptr inbounds { double, double }, ptr %6, i32 0, i32 1
  %52 = load double, ptr %51, align 8
  %53 = getelementptr inbounds { double, double }, ptr %7, i32 0, i32 0
  %54 = load double, ptr %53, align 8
  %55 = getelementptr inbounds { double, double }, ptr %7, i32 0, i32 1
  %56 = load double, ptr %55, align 8
  %57 = call noundef double @_Z3ang5PointS_S_(double %46, double %48, double %50, double %52, double %54, double %56)
  store double %57, ptr %4, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %9, ptr align 16 getelementptr inbounds ([5 x %struct.Point], ptr @p, i64 0, i64 1), i64 16, i1 false), !tbaa.struct !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %10, ptr align 16 @p, i64 16, i1 false), !tbaa.struct !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %11, ptr align 16 getelementptr inbounds ([5 x %struct.Point], ptr @p, i64 0, i64 2), i64 16, i1 false), !tbaa.struct !11
  %58 = getelementptr inbounds { double, double }, ptr %9, i32 0, i32 0
  %59 = load double, ptr %58, align 8
  %60 = getelementptr inbounds { double, double }, ptr %9, i32 0, i32 1
  %61 = load double, ptr %60, align 8
  %62 = getelementptr inbounds { double, double }, ptr %10, i32 0, i32 0
  %63 = load double, ptr %62, align 8
  %64 = getelementptr inbounds { double, double }, ptr %10, i32 0, i32 1
  %65 = load double, ptr %64, align 8
  %66 = getelementptr inbounds { double, double }, ptr %11, i32 0, i32 0
  %67 = load double, ptr %66, align 8
  %68 = getelementptr inbounds { double, double }, ptr %11, i32 0, i32 1
  %69 = load double, ptr %68, align 8
  %70 = call noundef double @_Z3ang5PointS_S_(double %59, double %61, double %63, double %65, double %67, double %69)
  store double %70, ptr %8, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %13, ptr align 16 getelementptr inbounds ([5 x %struct.Point], ptr @p, i64 0, i64 2), i64 16, i1 false), !tbaa.struct !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %14, ptr align 16 getelementptr inbounds ([5 x %struct.Point], ptr @p, i64 0, i64 1), i64 16, i1 false), !tbaa.struct !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %15, ptr align 16 @p, i64 16, i1 false), !tbaa.struct !11
  %71 = getelementptr inbounds { double, double }, ptr %13, i32 0, i32 0
  %72 = load double, ptr %71, align 8
  %73 = getelementptr inbounds { double, double }, ptr %13, i32 0, i32 1
  %74 = load double, ptr %73, align 8
  %75 = getelementptr inbounds { double, double }, ptr %14, i32 0, i32 0
  %76 = load double, ptr %75, align 8
  %77 = getelementptr inbounds { double, double }, ptr %14, i32 0, i32 1
  %78 = load double, ptr %77, align 8
  %79 = getelementptr inbounds { double, double }, ptr %15, i32 0, i32 0
  %80 = load double, ptr %79, align 8
  %81 = getelementptr inbounds { double, double }, ptr %15, i32 0, i32 1
  %82 = load double, ptr %81, align 8
  %83 = call noundef double @_Z3ang5PointS_S_(double %72, double %74, double %76, double %78, double %80, double %82)
  store double %83, ptr %12, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %17, ptr align 16 @p, i64 16, i1 false), !tbaa.struct !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %18, ptr align 16 getelementptr inbounds ([5 x %struct.Point], ptr @p, i64 0, i64 1), i64 16, i1 false), !tbaa.struct !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %19, ptr align 16 getelementptr inbounds ([5 x %struct.Point], ptr @p, i64 0, i64 2), i64 16, i1 false), !tbaa.struct !11
  %84 = getelementptr inbounds { double, double }, ptr %17, i32 0, i32 0
  %85 = load double, ptr %84, align 8
  %86 = getelementptr inbounds { double, double }, ptr %17, i32 0, i32 1
  %87 = load double, ptr %86, align 8
  %88 = getelementptr inbounds { double, double }, ptr %18, i32 0, i32 0
  %89 = load double, ptr %88, align 8
  %90 = getelementptr inbounds { double, double }, ptr %18, i32 0, i32 1
  %91 = load double, ptr %90, align 8
  %92 = getelementptr inbounds { double, double }, ptr %19, i32 0, i32 0
  %93 = load double, ptr %92, align 8
  %94 = getelementptr inbounds { double, double }, ptr %19, i32 0, i32 1
  %95 = load double, ptr %94, align 8
  %96 = call { double, double } @_Z2wx5PointS_S_(double %85, double %87, double %89, double %91, double %93, double %95)
  %97 = getelementptr inbounds { double, double }, ptr %16, i32 0, i32 0
  %98 = extractvalue { double, double } %96, 0
  store double %98, ptr %97, align 8
  %99 = getelementptr inbounds { double, double }, ptr %16, i32 0, i32 1
  %100 = extractvalue { double, double } %96, 1
  store double %100, ptr %99, align 8
  %101 = getelementptr inbounds %struct.Point, ptr %16, i32 0, i32 0
  %102 = load double, ptr %101, align 8, !tbaa !14
  %103 = call double @llvm.fabs.f64(double %102)
  %104 = fcmp olt double %103, 0x3EB0C6F7A0B5ED8D
  br i1 %104, label %105, label %107

105:                                              ; preds = %44
  %106 = getelementptr inbounds %struct.Point, ptr %16, i32 0, i32 0
  store double 0.000000e+00, ptr %106, align 8, !tbaa !14
  br label %107

107:                                              ; preds = %105, %44
  %108 = getelementptr inbounds %struct.Point, ptr %16, i32 0, i32 1
  %109 = load double, ptr %108, align 8, !tbaa !16
  %110 = call double @llvm.fabs.f64(double %109)
  %111 = fcmp olt double %110, 0x3EB0C6F7A0B5ED8D
  br i1 %111, label %112, label %114

112:                                              ; preds = %107
  %113 = getelementptr inbounds %struct.Point, ptr %16, i32 0, i32 1
  store double 0.000000e+00, ptr %113, align 8, !tbaa !16
  br label %114

114:                                              ; preds = %112, %107
  %115 = getelementptr inbounds %struct.Point, ptr %16, i32 0, i32 0
  %116 = load double, ptr %115, align 8, !tbaa !14
  %117 = getelementptr inbounds %struct.Point, ptr %16, i32 0, i32 1
  %118 = load double, ptr %117, align 8, !tbaa !16
  %119 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, double noundef %116, double noundef %118)
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  store i32 3, ptr %20, align 4, !tbaa !5
  br label %120

120:                                              ; preds = %136, %114
  %121 = load i32, ptr %20, align 4, !tbaa !5
  %122 = load double, ptr %4, align 8, !tbaa !12
  %123 = call noundef zeroext i1 @_Z5is_okid(i32 noundef %121, double noundef %122)
  br i1 %123, label %124, label %135

124:                                              ; preds = %120
  %125 = load i32, ptr %20, align 4, !tbaa !5
  %126 = load double, ptr %8, align 8, !tbaa !12
  %127 = call noundef zeroext i1 @_Z5is_okid(i32 noundef %125, double noundef %126)
  br i1 %127, label %128, label %135

128:                                              ; preds = %124
  %129 = load i32, ptr %20, align 4, !tbaa !5
  %130 = load double, ptr %12, align 8, !tbaa !12
  %131 = call noundef zeroext i1 @_Z5is_okid(i32 noundef %129, double noundef %130)
  br i1 %131, label %132, label %135

132:                                              ; preds = %128
  %133 = load i32, ptr %20, align 4, !tbaa !5
  %134 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %133)
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  br label %139

135:                                              ; preds = %128, %124, %120
  br label %136

136:                                              ; preds = %135
  %137 = load i32, ptr %20, align 4, !tbaa !5
  %138 = add nsw i32 %137, 1
  store i32 %138, ptr %20, align 4, !tbaa !5
  br label %120, !llvm.loop !17

139:                                              ; preds = %132
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  br label %22, !llvm.loop !18

140:                                              ; preds = %22
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  ret i32 0
}

declare i32 @__isoc99_scanf(ptr noundef, ...) #5

declare i32 @printf(ptr noundef, ...) #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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { mustprogress norecurse 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 = { "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, !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 = !{i64 0, i64 8, !12, i64 8, i64 8, !12}
!12 = !{!13, !13, i64 0}
!13 = !{!"double", !7, i64 0}
!14 = !{!15, !13, i64 0}
!15 = !{!"_ZTS5Point", !13, i64 0, !13, i64 8}
!16 = !{!15, !13, i64 8}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !10}


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

@p = external dso_local global [5 x %struct.Point], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_Z3ang5PointS_S_(double, double, double, double, double, double) local_unnamed_addr #0

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { double, double } @_Z2wx5PointS_S_(double, double, double, double, double, double) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z5is_okid(i32 noundef, double noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #2

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #3 {
  %1 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #5
  %2 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %1)
  %3 = load i32, ptr %1, align 4, !tbaa !5
  %4 = add nsw i32 %3, -1
  store i32 %4, ptr %1, align 4, !tbaa !5
  %.not38 = icmp eq i32 %3, 0
  br i1 %.not38, label %._crit_edge, label %.preheader

.preheader:                                       ; preds = %0, %25
  %5 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.2, ptr noundef nonnull @p, ptr noundef nonnull getelementptr inbounds (i8, ptr @p, i64 8))
  %6 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.2, ptr noundef nonnull getelementptr inbounds (i8, ptr @p, i64 16), ptr noundef nonnull getelementptr inbounds (i8, ptr @p, i64 24))
  %7 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.2, ptr noundef nonnull getelementptr inbounds (i8, ptr @p, i64 32), ptr noundef nonnull getelementptr inbounds (i8, ptr @p, i64 40))
  %.sroa.029.0.copyload = load double, ptr @p, align 16, !tbaa !9
  %.sroa.230.0.copyload = load double, ptr getelementptr inbounds (i8, ptr @p, i64 8), align 8, !tbaa !9
  %.sroa.027.0.copyload = load double, ptr getelementptr inbounds (i8, ptr @p, i64 16), align 16, !tbaa !9
  %.sroa.228.0.copyload = load double, ptr getelementptr inbounds (i8, ptr @p, i64 24), align 8, !tbaa !9
  %.sroa.025.0.copyload = load double, ptr getelementptr inbounds (i8, ptr @p, i64 32), align 16, !tbaa !9
  %.sroa.226.0.copyload = load double, ptr getelementptr inbounds (i8, ptr @p, i64 40), align 8, !tbaa !9
  %8 = call noundef double @_Z3ang5PointS_S_(double %.sroa.029.0.copyload, double %.sroa.230.0.copyload, double %.sroa.027.0.copyload, double %.sroa.228.0.copyload, double %.sroa.025.0.copyload, double %.sroa.226.0.copyload)
  %.sroa.022.0.copyload = load double, ptr getelementptr inbounds (i8, ptr @p, i64 16), align 16, !tbaa !9
  %.sroa.223.0.copyload = load double, ptr getelementptr inbounds (i8, ptr @p, i64 24), align 8, !tbaa !9
  %.sroa.020.0.copyload = load double, ptr @p, align 16, !tbaa !9
  %.sroa.221.0.copyload = load double, ptr getelementptr inbounds (i8, ptr @p, i64 8), align 8, !tbaa !9
  %.sroa.018.0.copyload = load double, ptr getelementptr inbounds (i8, ptr @p, i64 32), align 16, !tbaa !9
  %.sroa.219.0.copyload = load double, ptr getelementptr inbounds (i8, ptr @p, i64 40), align 8, !tbaa !9
  %9 = call noundef double @_Z3ang5PointS_S_(double %.sroa.022.0.copyload, double %.sroa.223.0.copyload, double %.sroa.020.0.copyload, double %.sroa.221.0.copyload, double %.sroa.018.0.copyload, double %.sroa.219.0.copyload)
  %.sroa.016.0.copyload = load double, ptr getelementptr inbounds (i8, ptr @p, i64 32), align 16, !tbaa !9
  %.sroa.217.0.copyload = load double, ptr getelementptr inbounds (i8, ptr @p, i64 40), align 8, !tbaa !9
  %.sroa.014.0.copyload = load double, ptr getelementptr inbounds (i8, ptr @p, i64 16), align 16, !tbaa !9
  %.sroa.215.0.copyload = load double, ptr getelementptr inbounds (i8, ptr @p, i64 24), align 8, !tbaa !9
  %.sroa.012.0.copyload = load double, ptr @p, align 16, !tbaa !9
  %.sroa.213.0.copyload = load double, ptr getelementptr inbounds (i8, ptr @p, i64 8), align 8, !tbaa !9
  %10 = call noundef double @_Z3ang5PointS_S_(double %.sroa.016.0.copyload, double %.sroa.217.0.copyload, double %.sroa.014.0.copyload, double %.sroa.215.0.copyload, double %.sroa.012.0.copyload, double %.sroa.213.0.copyload)
  %.sroa.07.0.copyload = load double, ptr @p, align 16, !tbaa !9
  %.sroa.28.0.copyload = load double, ptr getelementptr inbounds (i8, ptr @p, i64 8), align 8, !tbaa !9
  %.sroa.05.0.copyload = load double, ptr getelementptr inbounds (i8, ptr @p, i64 16), align 16, !tbaa !9
  %.sroa.26.0.copyload = load double, ptr getelementptr inbounds (i8, ptr @p, i64 24), align 8, !tbaa !9
  %.sroa.0.0.copyload = load double, ptr getelementptr inbounds (i8, ptr @p, i64 32), align 16, !tbaa !9
  %.sroa.2.0.copyload = load double, ptr getelementptr inbounds (i8, ptr @p, i64 40), align 8, !tbaa !9
  %11 = call { double, double } @_Z2wx5PointS_S_(double %.sroa.07.0.copyload, double %.sroa.28.0.copyload, double %.sroa.05.0.copyload, double %.sroa.26.0.copyload, double %.sroa.0.0.copyload, double %.sroa.2.0.copyload)
  %12 = extractvalue { double, double } %11, 0
  %13 = extractvalue { double, double } %11, 1
  %14 = call double @llvm.fabs.f64(double %12)
  %15 = fcmp olt double %14, 0x3EB0C6F7A0B5ED8D
  %.sroa.09.0 = select i1 %15, double 0.000000e+00, double %12
  %16 = call double @llvm.fabs.f64(double %13)
  %17 = fcmp olt double %16, 0x3EB0C6F7A0B5ED8D
  %.sroa.6.0 = select i1 %17, double 0.000000e+00, double %13
  %18 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, double noundef %.sroa.09.0, double noundef %.sroa.6.0)
  br label %19

19:                                               ; preds = %29, %.preheader
  %.0 = phi i32 [ 3, %.preheader ], [ %30, %29 ]
  %20 = call noundef zeroext i1 @_Z5is_okid(i32 noundef %.0, double noundef %8)
  br i1 %20, label %21, label %29

21:                                               ; preds = %19
  %22 = call noundef zeroext i1 @_Z5is_okid(i32 noundef %.0, double noundef %9)
  br i1 %22, label %23, label %29

23:                                               ; preds = %21
  %24 = call noundef zeroext i1 @_Z5is_okid(i32 noundef %.0, double noundef %10)
  br i1 %24, label %25, label %29

25:                                               ; preds = %23
  %26 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, i32 noundef %.0)
  %27 = load i32, ptr %1, align 4, !tbaa !5
  %28 = add nsw i32 %27, -1
  store i32 %28, ptr %1, align 4, !tbaa !5
  %.not = icmp eq i32 %27, 0
  br i1 %.not, label %._crit_edge, label %.preheader, !llvm.loop !11

29:                                               ; preds = %19, %21, %23
  %30 = add nuw nsw i32 %.0, 1
  br label %19, !llvm.loop !13

._crit_edge:                                      ; preds = %25, %0
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #5
  ret i32 0
}

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

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

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 nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { mustprogress norecurse 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 = { 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 #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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}


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