; LLVM IR from lzyrapx/Competitive-Programming :: HDUOJ (5733)

; 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.point3 = type { double, double, double }

@.str = external hidden unnamed_addr constant [10 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [25 x i8], align 1

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z12dots_onplane6point3S_S_S_(ptr noundef byval(%struct.point3) align 8, ptr noundef byval(%struct.point3) align 8, ptr noundef byval(%struct.point3) align 8, ptr noundef byval(%struct.point3) align 8) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_Z8ptoplane6point3S_S_S_(ptr noundef byval(%struct.point3) align 8, ptr noundef byval(%struct.point3) align 8, ptr noundef byval(%struct.point3) align 8, ptr noundef byval(%struct.point3) align 8) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_Z4Area6point3S_S_(ptr noundef byval(%struct.point3) align 8, ptr noundef byval(%struct.point3) align 8, ptr noundef byval(%struct.point3) align 8) #2

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #4 {
  %1 = alloca i32, align 4
  %2 = alloca [5 x %struct.point3], align 16
  %3 = alloca i32, align 4
  %4 = alloca %struct.point3, align 8
  %5 = alloca %struct.point3, align 8
  %6 = alloca %struct.point3, align 8
  %7 = alloca %struct.point3, align 8
  %8 = alloca double, align 8
  %9 = alloca %struct.point3, align 8
  %10 = alloca %struct.point3, align 8
  %11 = alloca %struct.point3, align 8
  %12 = alloca double, align 8
  %13 = alloca %struct.point3, align 8
  %14 = alloca %struct.point3, align 8
  %15 = alloca %struct.point3, align 8
  %16 = alloca double, align 8
  %17 = alloca %struct.point3, align 8
  %18 = alloca %struct.point3, align 8
  %19 = alloca %struct.point3, align 8
  %20 = alloca double, align 8
  %21 = alloca %struct.point3, align 8
  %22 = alloca %struct.point3, align 8
  %23 = alloca %struct.point3, align 8
  %24 = alloca double, align 8
  %25 = alloca %struct.point3, align 8
  %26 = alloca %struct.point3, align 8
  %27 = alloca %struct.point3, align 8
  %28 = alloca %struct.point3, align 8
  %29 = alloca %struct.point3, align 8
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 120, ptr %2) #6
  br label %30

30:                                               ; preds = %71, %69, %0
  %31 = getelementptr inbounds [5 x %struct.point3], ptr %2, i64 0, i64 1
  %32 = getelementptr inbounds %struct.point3, ptr %31, i32 0, i32 0
  %33 = getelementptr inbounds [5 x %struct.point3], ptr %2, i64 0, i64 1
  %34 = getelementptr inbounds %struct.point3, ptr %33, i32 0, i32 1
  %35 = getelementptr inbounds [5 x %struct.point3], ptr %2, i64 0, i64 1
  %36 = getelementptr inbounds %struct.point3, ptr %35, i32 0, i32 2
  %37 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %32, ptr noundef %34, ptr noundef %36)
  %38 = xor i32 %37, -1
  %39 = icmp ne i32 %38, 0
  br i1 %39, label %40, label %175

40:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
  store i32 2, ptr %3, align 4, !tbaa !5
  br label %41

41:                                               ; preds = %59, %40
  %42 = load i32, ptr %3, align 4, !tbaa !5
  %43 = icmp sle i32 %42, 4
  br i1 %43, label %45, label %44

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

45:                                               ; preds = %41
  %46 = load i32, ptr %3, align 4, !tbaa !5
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds [5 x %struct.point3], ptr %2, i64 0, i64 %47
  %49 = getelementptr inbounds %struct.point3, ptr %48, i32 0, i32 0
  %50 = load i32, ptr %3, align 4, !tbaa !5
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds [5 x %struct.point3], ptr %2, i64 0, i64 %51
  %53 = getelementptr inbounds %struct.point3, ptr %52, i32 0, i32 1
  %54 = load i32, ptr %3, align 4, !tbaa !5
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds [5 x %struct.point3], ptr %2, i64 0, i64 %55
  %57 = getelementptr inbounds %struct.point3, ptr %56, i32 0, i32 2
  %58 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %49, ptr noundef %53, ptr noundef %57)
  br label %59

59:                                               ; preds = %45
  %60 = load i32, ptr %3, align 4, !tbaa !5
  %61 = add nsw i32 %60, 1
  store i32 %61, ptr %3, align 4, !tbaa !5
  br label %41, !llvm.loop !9

62:                                               ; preds = %44
  %63 = getelementptr inbounds [5 x %struct.point3], ptr %2, i64 0, i64 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %4, ptr align 8 %63, i64 24, i1 false), !tbaa.struct !11
  %64 = getelementptr inbounds [5 x %struct.point3], ptr %2, i64 0, i64 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %5, ptr align 16 %64, i64 24, i1 false), !tbaa.struct !11
  %65 = getelementptr inbounds [5 x %struct.point3], ptr %2, i64 0, i64 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %6, ptr align 8 %65, i64 24, i1 false), !tbaa.struct !11
  %66 = getelementptr inbounds [5 x %struct.point3], ptr %2, i64 0, i64 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %7, ptr align 16 %66, i64 24, i1 false), !tbaa.struct !11
  %67 = call noundef i32 @_Z12dots_onplane6point3S_S_S_(ptr noundef byval(%struct.point3) align 8 %4, ptr noundef byval(%struct.point3) align 8 %5, ptr noundef byval(%struct.point3) align 8 %6, ptr noundef byval(%struct.point3) align 8 %7)
  %68 = icmp ne i32 %67, 0
  br i1 %68, label %69, label %71

69:                                               ; preds = %62
  %70 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
  br label %30, !llvm.loop !14

71:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %72 = getelementptr inbounds [5 x %struct.point3], ptr %2, i64 0, i64 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %9, ptr align 8 %72, i64 24, i1 false), !tbaa.struct !11
  %73 = getelementptr inbounds [5 x %struct.point3], ptr %2, i64 0, i64 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %10, ptr align 16 %73, i64 24, i1 false), !tbaa.struct !11
  %74 = getelementptr inbounds [5 x %struct.point3], ptr %2, i64 0, i64 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %11, ptr align 8 %74, i64 24, i1 false), !tbaa.struct !11
  %75 = call noundef double @_Z4Area6point3S_S_(ptr noundef byval(%struct.point3) align 8 %9, ptr noundef byval(%struct.point3) align 8 %10, ptr noundef byval(%struct.point3) align 8 %11)
  store double %75, ptr %8, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %76 = getelementptr inbounds [5 x %struct.point3], ptr %2, i64 0, i64 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %13, ptr align 8 %76, i64 24, i1 false), !tbaa.struct !11
  %77 = getelementptr inbounds [5 x %struct.point3], ptr %2, i64 0, i64 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %14, ptr align 16 %77, i64 24, i1 false), !tbaa.struct !11
  %78 = getelementptr inbounds [5 x %struct.point3], ptr %2, i64 0, i64 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %15, ptr align 16 %78, i64 24, i1 false), !tbaa.struct !11
  %79 = call noundef double @_Z4Area6point3S_S_(ptr noundef byval(%struct.point3) align 8 %13, ptr noundef byval(%struct.point3) align 8 %14, ptr noundef byval(%struct.point3) align 8 %15)
  store double %79, ptr %12, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  %80 = getelementptr inbounds [5 x %struct.point3], ptr %2, i64 0, i64 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %17, ptr align 8 %80, i64 24, i1 false), !tbaa.struct !11
  %81 = getelementptr inbounds [5 x %struct.point3], ptr %2, i64 0, i64 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %18, ptr align 8 %81, i64 24, i1 false), !tbaa.struct !11
  %82 = getelementptr inbounds [5 x %struct.point3], ptr %2, i64 0, i64 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %19, ptr align 16 %82, i64 24, i1 false), !tbaa.struct !11
  %83 = call noundef double @_Z4Area6point3S_S_(ptr noundef byval(%struct.point3) align 8 %17, ptr noundef byval(%struct.point3) align 8 %18, ptr noundef byval(%struct.point3) align 8 %19)
  store double %83, ptr %16, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  %84 = getelementptr inbounds [5 x %struct.point3], ptr %2, i64 0, i64 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %21, ptr align 16 %84, i64 24, i1 false), !tbaa.struct !11
  %85 = getelementptr inbounds [5 x %struct.point3], ptr %2, i64 0, i64 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %22, ptr align 8 %85, i64 24, i1 false), !tbaa.struct !11
  %86 = getelementptr inbounds [5 x %struct.point3], ptr %2, i64 0, i64 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %23, ptr align 16 %86, i64 24, i1 false), !tbaa.struct !11
  %87 = call noundef double @_Z4Area6point3S_S_(ptr noundef byval(%struct.point3) align 8 %21, ptr noundef byval(%struct.point3) align 8 %22, ptr noundef byval(%struct.point3) align 8 %23)
  store double %87, ptr %20, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #6
  %88 = load double, ptr %8, align 8, !tbaa !12
  %89 = load double, ptr %12, align 8, !tbaa !12
  %90 = fadd double %88, %89
  %91 = load double, ptr %16, align 8, !tbaa !12
  %92 = fadd double %90, %91
  %93 = load double, ptr %20, align 8, !tbaa !12
  %94 = fadd double %92, %93
  store double %94, ptr %24, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 24, ptr %25) #6
  %95 = load double, ptr %8, align 8, !tbaa !12
  %96 = getelementptr inbounds [5 x %struct.point3], ptr %2, i64 0, i64 4
  %97 = getelementptr inbounds %struct.point3, ptr %96, i32 0, i32 0
  %98 = load double, ptr %97, align 16, !tbaa !15
  %99 = load double, ptr %12, align 8, !tbaa !12
  %100 = getelementptr inbounds [5 x %struct.point3], ptr %2, i64 0, i64 3
  %101 = getelementptr inbounds %struct.point3, ptr %100, i32 0, i32 0
  %102 = load double, ptr %101, align 8, !tbaa !15
  %103 = fmul double %99, %102
  %104 = call double @llvm.fmuladd.f64(double %95, double %98, double %103)
  %105 = load double, ptr %16, align 8, !tbaa !12
  %106 = getelementptr inbounds [5 x %struct.point3], ptr %2, i64 0, i64 2
  %107 = getelementptr inbounds %struct.point3, ptr %106, i32 0, i32 0
  %108 = load double, ptr %107, align 16, !tbaa !15
  %109 = call double @llvm.fmuladd.f64(double %105, double %108, double %104)
  %110 = load double, ptr %20, align 8, !tbaa !12
  %111 = getelementptr inbounds [5 x %struct.point3], ptr %2, i64 0, i64 1
  %112 = getelementptr inbounds %struct.point3, ptr %111, i32 0, i32 0
  %113 = load double, ptr %112, align 8, !tbaa !15
  %114 = call double @llvm.fmuladd.f64(double %110, double %113, double %109)
  %115 = load double, ptr %24, align 8, !tbaa !12
  %116 = fdiv double %114, %115
  %117 = getelementptr inbounds %struct.point3, ptr %25, i32 0, i32 0
  store double %116, ptr %117, align 8, !tbaa !15
  %118 = load double, ptr %8, align 8, !tbaa !12
  %119 = getelementptr inbounds [5 x %struct.point3], ptr %2, i64 0, i64 4
  %120 = getelementptr inbounds %struct.point3, ptr %119, i32 0, i32 1
  %121 = load double, ptr %120, align 8, !tbaa !17
  %122 = load double, ptr %12, align 8, !tbaa !12
  %123 = getelementptr inbounds [5 x %struct.point3], ptr %2, i64 0, i64 3
  %124 = getelementptr inbounds %struct.point3, ptr %123, i32 0, i32 1
  %125 = load double, ptr %124, align 8, !tbaa !17
  %126 = fmul double %122, %125
  %127 = call double @llvm.fmuladd.f64(double %118, double %121, double %126)
  %128 = load double, ptr %16, align 8, !tbaa !12
  %129 = getelementptr inbounds [5 x %struct.point3], ptr %2, i64 0, i64 2
  %130 = getelementptr inbounds %struct.point3, ptr %129, i32 0, i32 1
  %131 = load double, ptr %130, align 8, !tbaa !17
  %132 = call double @llvm.fmuladd.f64(double %128, double %131, double %127)
  %133 = load double, ptr %20, align 8, !tbaa !12
  %134 = getelementptr inbounds [5 x %struct.point3], ptr %2, i64 0, i64 1
  %135 = getelementptr inbounds %struct.point3, ptr %134, i32 0, i32 1
  %136 = load double, ptr %135, align 8, !tbaa !17
  %137 = call double @llvm.fmuladd.f64(double %133, double %136, double %132)
  %138 = load double, ptr %24, align 8, !tbaa !12
  %139 = fdiv double %137, %138
  %140 = getelementptr inbounds %struct.point3, ptr %25, i32 0, i32 1
  store double %139, ptr %140, align 8, !tbaa !17
  %141 = load double, ptr %8, align 8, !tbaa !12
  %142 = getelementptr inbounds [5 x %struct.point3], ptr %2, i64 0, i64 4
  %143 = getelementptr inbounds %struct.point3, ptr %142, i32 0, i32 2
  %144 = load double, ptr %143, align 16, !tbaa !18
  %145 = load double, ptr %12, align 8, !tbaa !12
  %146 = getelementptr inbounds [5 x %struct.point3], ptr %2, i64 0, i64 3
  %147 = getelementptr inbounds %struct.point3, ptr %146, i32 0, i32 2
  %148 = load double, ptr %147, align 8, !tbaa !18
  %149 = fmul double %145, %148
  %150 = call double @llvm.fmuladd.f64(double %141, double %144, double %149)
  %151 = load double, ptr %16, align 8, !tbaa !12
  %152 = getelementptr inbounds [5 x %struct.point3], ptr %2, i64 0, i64 2
  %153 = getelementptr inbounds %struct.point3, ptr %152, i32 0, i32 2
  %154 = load double, ptr %153, align 16, !tbaa !18
  %155 = call double @llvm.fmuladd.f64(double %151, double %154, double %150)
  %156 = load double, ptr %20, align 8, !tbaa !12
  %157 = getelementptr inbounds [5 x %struct.point3], ptr %2, i64 0, i64 1
  %158 = getelementptr inbounds %struct.point3, ptr %157, i32 0, i32 2
  %159 = load double, ptr %158, align 8, !tbaa !18
  %160 = call double @llvm.fmuladd.f64(double %156, double %159, double %155)
  %161 = load double, ptr %24, align 8, !tbaa !12
  %162 = fdiv double %160, %161
  %163 = getelementptr inbounds %struct.point3, ptr %25, i32 0, i32 2
  store double %162, ptr %163, align 8, !tbaa !18
  %164 = getelementptr inbounds %struct.point3, ptr %25, i32 0, i32 0
  %165 = load double, ptr %164, align 8, !tbaa !15
  %166 = getelementptr inbounds %struct.point3, ptr %25, i32 0, i32 1
  %167 = load double, ptr %166, align 8, !tbaa !17
  %168 = getelementptr inbounds %struct.point3, ptr %25, i32 0, i32 2
  %169 = load double, ptr %168, align 8, !tbaa !18
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %26, ptr align 8 %25, i64 24, i1 false), !tbaa.struct !11
  %170 = getelementptr inbounds [5 x %struct.point3], ptr %2, i64 0, i64 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %27, ptr align 8 %170, i64 24, i1 false), !tbaa.struct !11
  %171 = getelementptr inbounds [5 x %struct.point3], ptr %2, i64 0, i64 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %28, ptr align 16 %171, i64 24, i1 false), !tbaa.struct !11
  %172 = getelementptr inbounds [5 x %struct.point3], ptr %2, i64 0, i64 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %29, ptr align 8 %172, i64 24, i1 false), !tbaa.struct !11
  %173 = call noundef double @_Z8ptoplane6point3S_S_S_(ptr noundef byval(%struct.point3) align 8 %26, ptr noundef byval(%struct.point3) align 8 %27, ptr noundef byval(%struct.point3) align 8 %28, ptr noundef byval(%struct.point3) align 8 %29)
  %174 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, double noundef %165, double noundef %167, double noundef %169, double noundef %173)
  call void @llvm.lifetime.end.p0(i64 24, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, 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
  br label %30, !llvm.loop !14

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

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

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

attributes #0 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #1 = { nocallback nofree 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 nosync nounwind willreturn memory(argmem: readwrite) }
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, i64 16, i64 8, !12}
!12 = !{!13, !13, i64 0}
!13 = !{!"double", !7, i64 0}
!14 = distinct !{!14, !10}
!15 = !{!16, !13, i64 0}
!16 = !{!"_ZTS6point3", !13, i64 0, !13, i64 8, !13, i64 16}
!17 = !{!16, !13, i64 8}
!18 = !{!16, !13, i64 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.point3 = type { double, double, double }

@.str = external hidden unnamed_addr constant [10 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [25 x i8], align 1

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z12dots_onplane6point3S_S_S_(ptr noundef byval(%struct.point3) align 8, ptr noundef byval(%struct.point3) align 8, ptr noundef byval(%struct.point3) align 8, ptr noundef byval(%struct.point3) align 8) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_Z8ptoplane6point3S_S_S_(ptr noundef byval(%struct.point3) align 8, ptr noundef byval(%struct.point3) align 8, ptr noundef byval(%struct.point3) align 8, ptr noundef byval(%struct.point3) align 8) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_Z4Area6point3S_S_(ptr noundef byval(%struct.point3) align 8, ptr noundef byval(%struct.point3) align 8, ptr noundef byval(%struct.point3) align 8) local_unnamed_addr #1

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

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

; Function Attrs: mustprogress norecurse nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #3 {
  %1 = alloca [5 x %struct.point3], align 16
  %2 = alloca %struct.point3, align 16
  call void @llvm.lifetime.start.p0(i64 120, ptr nonnull %1) #6
  %3 = getelementptr inbounds i8, ptr %1, i64 24
  %4 = getelementptr inbounds i8, ptr %1, i64 32
  %5 = getelementptr inbounds i8, ptr %1, i64 40
  %6 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %3, ptr noundef nonnull %4, ptr noundef nonnull %5)
  %.not25 = icmp eq i32 %6, -1
  br i1 %.not25, label %._crit_edge, label %.preheader.lr.ph

.preheader.lr.ph:                                 ; preds = %0
  %7 = getelementptr inbounds i8, ptr %1, i64 48
  %8 = getelementptr inbounds i8, ptr %1, i64 72
  %9 = getelementptr inbounds i8, ptr %1, i64 96
  %10 = getelementptr inbounds i8, ptr %1, i64 112
  %11 = getelementptr inbounds i8, ptr %1, i64 88
  %12 = getelementptr inbounds i8, ptr %1, i64 64
  %.sroa.7.0..sroa_idx = getelementptr inbounds i8, ptr %2, i64 16
  %13 = getelementptr inbounds i8, ptr %1, i64 56
  %14 = getelementptr inbounds i8, ptr %1, i64 64
  %15 = getelementptr inbounds i8, ptr %1, i64 80
  %16 = getelementptr inbounds i8, ptr %1, i64 88
  %17 = getelementptr inbounds i8, ptr %1, i64 104
  %18 = getelementptr inbounds i8, ptr %1, i64 112
  br label %.preheader

.preheader:                                       ; preds = %.preheader.lr.ph, %.backedge
  %19 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %7, ptr noundef nonnull %13, ptr noundef nonnull %14)
  %20 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %8, ptr noundef nonnull %15, ptr noundef nonnull %16)
  %21 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %9, ptr noundef nonnull %17, ptr noundef nonnull %18)
  %22 = call noundef i32 @_Z12dots_onplane6point3S_S_S_(ptr noundef nonnull byval(%struct.point3) align 8 %3, ptr noundef nonnull byval(%struct.point3) align 8 %7, ptr noundef nonnull byval(%struct.point3) align 8 %8, ptr noundef nonnull byval(%struct.point3) align 8 %9)
  %.not23 = icmp eq i32 %22, 0
  br i1 %.not23, label %26, label %23

23:                                               ; preds = %.preheader
  %24 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1)
  br label %.backedge

.backedge:                                        ; preds = %23, %26
  %25 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %3, ptr noundef nonnull %4, ptr noundef nonnull %5)
  %.not = icmp eq i32 %25, -1
  br i1 %.not, label %._crit_edge, label %.preheader, !llvm.loop !5

26:                                               ; preds = %.preheader
  %27 = call noundef double @_Z4Area6point3S_S_(ptr noundef nonnull byval(%struct.point3) align 8 %3, ptr noundef nonnull byval(%struct.point3) align 8 %7, ptr noundef nonnull byval(%struct.point3) align 8 %8)
  %28 = call noundef double @_Z4Area6point3S_S_(ptr noundef nonnull byval(%struct.point3) align 8 %3, ptr noundef nonnull byval(%struct.point3) align 8 %7, ptr noundef nonnull byval(%struct.point3) align 8 %9)
  %29 = call noundef double @_Z4Area6point3S_S_(ptr noundef nonnull byval(%struct.point3) align 8 %3, ptr noundef nonnull byval(%struct.point3) align 8 %8, ptr noundef nonnull byval(%struct.point3) align 8 %9)
  %30 = call noundef double @_Z4Area6point3S_S_(ptr noundef nonnull byval(%struct.point3) align 8 %7, ptr noundef nonnull byval(%struct.point3) align 8 %8, ptr noundef nonnull byval(%struct.point3) align 8 %9)
  %31 = fadd double %27, %28
  %32 = fadd double %31, %29
  %33 = fadd double %32, %30
  %34 = load double, ptr %10, align 16, !tbaa !7
  %35 = load double, ptr %11, align 8, !tbaa !7
  %36 = fmul double %28, %35
  %37 = call double @llvm.fmuladd.f64(double %27, double %34, double %36)
  %38 = load double, ptr %12, align 16, !tbaa !7
  %39 = call double @llvm.fmuladd.f64(double %29, double %38, double %37)
  %40 = load double, ptr %5, align 8, !tbaa !7
  %41 = call double @llvm.fmuladd.f64(double %30, double %40, double %39)
  %42 = fdiv double %41, %33
  %43 = load <2 x double>, ptr %9, align 16, !tbaa !12
  %44 = load <2 x double>, ptr %8, align 8, !tbaa !12
  %45 = insertelement <2 x double> poison, double %28, i64 0
  %46 = shufflevector <2 x double> %45, <2 x double> poison, <2 x i32> zeroinitializer
  %47 = fmul <2 x double> %46, %44
  %48 = insertelement <2 x double> poison, double %27, i64 0
  %49 = shufflevector <2 x double> %48, <2 x double> poison, <2 x i32> zeroinitializer
  %50 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %49, <2 x double> %43, <2 x double> %47)
  %51 = load <2 x double>, ptr %7, align 16, !tbaa !12
  %52 = insertelement <2 x double> poison, double %29, i64 0
  %53 = shufflevector <2 x double> %52, <2 x double> poison, <2 x i32> zeroinitializer
  %54 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %53, <2 x double> %51, <2 x double> %50)
  %55 = load <2 x double>, ptr %3, align 8, !tbaa !12
  %56 = insertelement <2 x double> poison, double %30, i64 0
  %57 = shufflevector <2 x double> %56, <2 x double> poison, <2 x i32> zeroinitializer
  %58 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %57, <2 x double> %55, <2 x double> %54)
  %59 = insertelement <2 x double> poison, double %33, i64 0
  %60 = shufflevector <2 x double> %59, <2 x double> poison, <2 x i32> zeroinitializer
  %61 = fdiv <2 x double> %58, %60
  store <2 x double> %61, ptr %2, align 16, !tbaa !12
  store double %42, ptr %.sroa.7.0..sroa_idx, align 16, !tbaa !12
  %62 = call noundef double @_Z8ptoplane6point3S_S_S_(ptr noundef nonnull byval(%struct.point3) align 8 %2, ptr noundef nonnull byval(%struct.point3) align 8 %3, ptr noundef nonnull byval(%struct.point3) align 8 %7, ptr noundef nonnull byval(%struct.point3) align 8 %8)
  %63 = extractelement <2 x double> %61, i64 0
  %64 = extractelement <2 x double> %61, i64 1
  %65 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, double noundef %63, double noundef %64, double noundef %42, double noundef %62)
  br label %.backedge

._crit_edge:                                      ; preds = %.backedge, %0
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %1) #6
  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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x double> @llvm.fmuladd.v2f64(<2 x double>, <2 x double>, <2 x double>) #5

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


; Effective O3 passes: DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,MemCpyOptPass,PostOrderFunctionAttrsPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass