; LLVM IR from brpapa/algorithms :: solutions/spoj (GOALFR)

; 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"

%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%struct.Point = type { double, double }

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.1 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [11 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN5PointC2Edd(ptr noundef nonnull align 8 dereferenceable(16), double noundef, double noundef) unnamed_addr #0 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z11orientation5PointS_S_(ptr noundef, ptr noundef, ptr noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_Z18dist_point_to_line5PointS_S_(ptr noundef, ptr noundef, ptr noundef) #2

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #3 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca double, align 8
  %4 = alloca double, align 8
  %5 = alloca double, align 8
  %6 = alloca double, align 8
  %7 = alloca double, align 8
  %8 = alloca i32, align 4
  %9 = alloca double, align 8
  %10 = alloca %struct.Point, align 8
  %11 = alloca %struct.Point, align 8
  %12 = alloca %struct.Point, align 8
  %13 = alloca double, 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 %struct.Point, align 8
  %21 = alloca %struct.Point, align 8
  %22 = alloca %struct.Point, align 8
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  %23 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
  br label %24

24:                                               ; preds = %83, %81, %0
  %25 = load i32, ptr %2, align 4, !tbaa !5
  %26 = add nsw i32 %25, -1
  store i32 %26, ptr %2, align 4, !tbaa !5
  %27 = icmp ne i32 %25, 0
  br i1 %27, label %28, label %84

28:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #6
  %29 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %3)
  %30 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) %29, ptr noundef nonnull align 8 dereferenceable(8) %4)
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %31 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %5)
  %32 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) %31, ptr noundef nonnull align 8 dereferenceable(8) %6)
  %33 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) %32, ptr noundef nonnull align 8 dereferenceable(8) %7)
  %34 = load double, ptr %5, align 8, !tbaa !9
  %35 = load double, ptr %7, align 8, !tbaa !9
  %36 = fadd double %34, %35
  %37 = load double, ptr %3, align 8, !tbaa !9
  %38 = fcmp olt double %36, %37
  br i1 %38, label %39, label %42

39:                                               ; preds = %28
  %40 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.1)
  %41 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %40, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  store i32 2, ptr %8, align 4
  br label %81, !llvm.loop !11

42:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %43 = load double, ptr %5, align 8, !tbaa !9
  %44 = load double, ptr %6, align 8, !tbaa !9
  call void @_ZN5PointC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %10, double noundef %43, double noundef %44)
  %45 = load double, ptr %3, align 8, !tbaa !9
  %46 = load double, ptr %4, align 8, !tbaa !9
  call void @_ZN5PointC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %11, double noundef %45, double noundef %46)
  call void @_ZN5PointC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %12, double noundef 5.250000e+01, double noundef -3.660000e+00)
  %47 = call noundef double @_Z18dist_point_to_line5PointS_S_(ptr noundef %10, ptr noundef %11, ptr noundef %12)
  store double %47, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %48 = load double, ptr %5, align 8, !tbaa !9
  %49 = load double, ptr %6, align 8, !tbaa !9
  call void @_ZN5PointC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %14, double noundef %48, double noundef %49)
  %50 = load double, ptr %3, align 8, !tbaa !9
  %51 = load double, ptr %4, align 8, !tbaa !9
  call void @_ZN5PointC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %15, double noundef %50, double noundef %51)
  call void @_ZN5PointC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %16, double noundef 5.250000e+01, double noundef 3.660000e+00)
  %52 = call noundef double @_Z18dist_point_to_line5PointS_S_(ptr noundef %14, ptr noundef %15, ptr noundef %16)
  store double %52, ptr %13, align 8, !tbaa !9
  %53 = load double, ptr %9, align 8, !tbaa !9
  %54 = load double, ptr %7, align 8, !tbaa !9
  %55 = fcmp ogt double %53, %54
  br i1 %55, label %56, label %63

56:                                               ; preds = %42
  %57 = load double, ptr %3, align 8, !tbaa !9
  %58 = load double, ptr %4, align 8, !tbaa !9
  call void @_ZN5PointC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %17, double noundef %57, double noundef %58)
  call void @_ZN5PointC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %18, double noundef 5.250000e+01, double noundef -3.660000e+00)
  %59 = load double, ptr %5, align 8, !tbaa !9
  %60 = load double, ptr %6, align 8, !tbaa !9
  call void @_ZN5PointC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %19, double noundef %59, double noundef %60)
  %61 = call noundef i32 @_Z11orientation5PointS_S_(ptr noundef %17, ptr noundef %18, ptr noundef %19)
  %62 = icmp eq i32 %61, 1
  br i1 %62, label %74, label %63

63:                                               ; preds = %56, %42
  %64 = load double, ptr %13, align 8, !tbaa !9
  %65 = load double, ptr %7, align 8, !tbaa !9
  %66 = fcmp ogt double %64, %65
  br i1 %66, label %67, label %77

67:                                               ; preds = %63
  %68 = load double, ptr %3, align 8, !tbaa !9
  %69 = load double, ptr %4, align 8, !tbaa !9
  call void @_ZN5PointC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %20, double noundef %68, double noundef %69)
  call void @_ZN5PointC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %21, double noundef 5.250000e+01, double noundef 3.660000e+00)
  %70 = load double, ptr %5, align 8, !tbaa !9
  %71 = load double, ptr %6, align 8, !tbaa !9
  call void @_ZN5PointC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %22, double noundef %70, double noundef %71)
  %72 = call noundef i32 @_Z11orientation5PointS_S_(ptr noundef %20, ptr noundef %21, ptr noundef %22)
  %73 = icmp eq i32 %72, -1
  br i1 %73, label %74, label %77

74:                                               ; preds = %67, %56
  %75 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.1)
  %76 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %75, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %80

77:                                               ; preds = %67, %63
  %78 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.2)
  %79 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %78, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %80

80:                                               ; preds = %77, %74
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  store i32 0, ptr %8, align 4
  br label %81

81:                                               ; preds = %80, %39
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  %82 = load i32, ptr %8, align 4
  switch i32 %82, label %86 [
    i32 0, label %83
    i32 2, label %24
  ]

83:                                               ; preds = %81
  br label %24, !llvm.loop !11

84:                                               ; preds = %24
  store i32 0, ptr %1, align 4
  store i32 1, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  %85 = load i32, ptr %1, align 4
  ret i32 %85

86:                                               ; preds = %81
  unreachable
}

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #4

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #5

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #5

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #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 = { "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 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, !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"}


; 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"

%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%struct.Point = type { double, double }

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.1 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [11 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN5PointC2Edd(ptr noundef nonnull align 8 dereferenceable(16), double noundef, double noundef) unnamed_addr #0 align 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 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 noundef i32 @_Z11orientation5PointS_S_(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_Z18dist_point_to_line5PointS_S_(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #3 {
  %1 = alloca i32, align 4
  %2 = alloca double, align 8
  %3 = alloca double, align 8
  %4 = alloca double, align 8
  %5 = alloca double, align 8
  %6 = alloca double, align 8
  %7 = alloca %struct.Point, align 8
  %8 = alloca %struct.Point, align 8
  %9 = alloca %struct.Point, align 8
  %10 = alloca %struct.Point, align 8
  %11 = alloca %struct.Point, align 8
  %12 = alloca %struct.Point, 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
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #6
  %19 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %20 = load i32, ptr %1, align 4, !tbaa !5
  %21 = add nsw i32 %20, -1
  store i32 %21, ptr %1, align 4, !tbaa !5
  %.not2 = icmp eq i32 %20, 0
  br i1 %.not2, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %0, %62
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #6
  %22 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %2)
  %23 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) %22, ptr noundef nonnull align 8 dereferenceable(8) %3)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #6
  %24 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %4)
  %25 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) %24, ptr noundef nonnull align 8 dereferenceable(8) %5)
  %26 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) %25, ptr noundef nonnull align 8 dereferenceable(8) %6)
  %27 = load double, ptr %4, align 8, !tbaa !9
  %28 = load double, ptr %6, align 8, !tbaa !9
  %29 = fadd double %27, %28
  %30 = load double, ptr %2, align 8, !tbaa !9
  %31 = fcmp olt double %29, %30
  br i1 %31, label %62, label %32, !llvm.loop !11

32:                                               ; preds = %.lr.ph
  %33 = load double, ptr %5, align 8, !tbaa !9
  call void @_ZN5PointC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %7, double noundef %27, double noundef %33)
  %34 = load double, ptr %2, align 8, !tbaa !9
  %35 = load double, ptr %3, align 8, !tbaa !9
  call void @_ZN5PointC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %8, double noundef %34, double noundef %35)
  call void @_ZN5PointC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %9, double noundef 5.250000e+01, double noundef -3.660000e+00)
  %36 = call noundef double @_Z18dist_point_to_line5PointS_S_(ptr noundef nonnull %7, ptr noundef nonnull %8, ptr noundef nonnull %9)
  %37 = load double, ptr %4, align 8, !tbaa !9
  %38 = load double, ptr %5, align 8, !tbaa !9
  call void @_ZN5PointC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %10, double noundef %37, double noundef %38)
  %39 = load double, ptr %2, align 8, !tbaa !9
  %40 = load double, ptr %3, align 8, !tbaa !9
  call void @_ZN5PointC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %11, double noundef %39, double noundef %40)
  call void @_ZN5PointC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %12, double noundef 5.250000e+01, double noundef 3.660000e+00)
  %41 = call noundef double @_Z18dist_point_to_line5PointS_S_(ptr noundef nonnull %10, ptr noundef nonnull %11, ptr noundef nonnull %12)
  %42 = load double, ptr %6, align 8, !tbaa !9
  %43 = fcmp ogt double %36, %42
  br i1 %43, label %44, label %51

44:                                               ; preds = %32
  %45 = load double, ptr %2, align 8, !tbaa !9
  %46 = load double, ptr %3, align 8, !tbaa !9
  call void @_ZN5PointC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %13, double noundef %45, double noundef %46)
  call void @_ZN5PointC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %14, double noundef 5.250000e+01, double noundef -3.660000e+00)
  %47 = load double, ptr %4, align 8, !tbaa !9
  %48 = load double, ptr %5, align 8, !tbaa !9
  call void @_ZN5PointC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %15, double noundef %47, double noundef %48)
  %49 = call noundef i32 @_Z11orientation5PointS_S_(ptr noundef nonnull %13, ptr noundef nonnull %14, ptr noundef nonnull %15)
  %50 = icmp eq i32 %49, 1
  br i1 %50, label %62, label %._crit_edge3

._crit_edge3:                                     ; preds = %44
  %.pre = load double, ptr %6, align 8, !tbaa !9
  br label %51

51:                                               ; preds = %._crit_edge3, %32
  %52 = phi double [ %.pre, %._crit_edge3 ], [ %42, %32 ]
  %53 = fcmp ogt double %41, %52
  br i1 %53, label %54, label %61

54:                                               ; preds = %51
  %55 = load double, ptr %2, align 8, !tbaa !9
  %56 = load double, ptr %3, align 8, !tbaa !9
  call void @_ZN5PointC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %16, double noundef %55, double noundef %56)
  call void @_ZN5PointC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %17, double noundef 5.250000e+01, double noundef 3.660000e+00)
  %57 = load double, ptr %4, align 8, !tbaa !9
  %58 = load double, ptr %5, align 8, !tbaa !9
  call void @_ZN5PointC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %18, double noundef %57, double noundef %58)
  %59 = call noundef i32 @_Z11orientation5PointS_S_(ptr noundef nonnull %16, ptr noundef nonnull %17, ptr noundef nonnull %18)
  %60 = icmp eq i32 %59, -1
  br i1 %60, label %62, label %61

61:                                               ; preds = %54, %51
  br label %62

62:                                               ; preds = %44, %54, %.lr.ph, %61
  %.str.1.sink = phi ptr [ @.str.2, %61 ], [ @.str.1, %.lr.ph ], [ @.str.1, %54 ], [ @.str.1, %44 ]
  %63 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull %.str.1.sink)
  %64 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %63, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  %65 = load i32, ptr %1, align 4, !tbaa !5
  %66 = add nsw i32 %65, -1
  store i32 %66, ptr %1, align 4, !tbaa !5
  %.not = icmp eq i32 %65, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #5

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #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 = { "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 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, !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"}


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