; LLVM IR from tommasocerruti/algolab-2024 :: src/week04/antenna (solution)

; 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_ostream" = type { ptr, %"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_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<CGAL::Point_2<CGAL::Simple_cartesian<CORE::Expr>>, std::allocator<CGAL::Point_2<CGAL::Simple_cartesian<CORE::Expr>>>>::_Vector_impl" }
%"struct.std::_Vector_base<CGAL::Point_2<CGAL::Simple_cartesian<CORE::Expr>>, std::allocator<CGAL::Point_2<CGAL::Simple_cartesian<CORE::Expr>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<CGAL::Point_2<CGAL::Simple_cartesian<CORE::Expr>>, std::allocator<CGAL::Point_2<CGAL::Simple_cartesian<CORE::Expr>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<CGAL::Point_2<CGAL::Simple_cartesian<CORE::Expr>>, std::allocator<CGAL::Point_2<CGAL::Simple_cartesian<CORE::Expr>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.CGAL::Point_2" = type { %"class.CGAL::PointC2" }
%"class.CGAL::PointC2" = type { %"class.CGAL::Vector_2" }
%"class.CGAL::Vector_2" = type { %"class.CGAL::VectorC2" }
%"class.CGAL::VectorC2" = type { %"struct.std::array" }
%"struct.std::array" = type { [2 x %"class.CORE::Expr"] }
%"class.CORE::Expr" = type { %"class.CORE::RCImpl.1" }
%"class.CORE::RCImpl.1" = type { ptr }
%"class.CGAL::Min_circle_2" = type { %"class.CGAL::Min_circle_2_traits_2", %"class.std::__cxx11::list", i64, ptr }
%"class.CGAL::Min_circle_2_traits_2" = type { %"class.CGAL::Optimisation_circle_2" }
%"class.CGAL::Optimisation_circle_2" = type { %"class.CGAL::Point_2", %"class.CORE::Expr" }
%"class.std::__cxx11::list" = type { %"class.std::__cxx11::_List_base" }
%"class.std::__cxx11::_List_base" = type { %"struct.std::__cxx11::_List_base<CGAL::Point_2<CGAL::Simple_cartesian<CORE::Expr>>, std::allocator<CGAL::Point_2<CGAL::Simple_cartesian<CORE::Expr>>>>::_List_impl" }
%"struct.std::__cxx11::_List_base<CGAL::Point_2<CGAL::Simple_cartesian<CORE::Expr>>, std::allocator<CGAL::Point_2<CGAL::Simple_cartesian<CORE::Expr>>>>::_List_impl" = type { %"struct.std::__detail::_List_node_header" }
%"struct.std::__detail::_List_node_header" = type { %"struct.std::__detail::_List_node_base", i64 }
%"struct.std::__detail::_List_node_base" = type { ptr, ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@_ZSt3cin = external global %"class.std::basic_istream", align 8

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZN4CGAL18get_default_randomEv() #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_Z12ceil_to_longRKN4CORE4ExprE(ptr noundef nonnull align 8 dereferenceable(8)) #2

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #4 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca %"class.std::vector", align 8
  %4 = alloca i64, align 8
  %5 = alloca i64, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca %"class.CGAL::Point_2", align 8
  %9 = alloca %"class.CGAL::Min_circle_2", align 8
  %10 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %11 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %12 = alloca %"class.CGAL::Min_circle_2_traits_2", align 8
  %13 = alloca %"class.CGAL::Optimisation_circle_2", align 8
  %14 = alloca %"class.CORE::Expr", align 8
  store i32 0, ptr %1, align 4
  %15 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #8
  %16 = 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 %17

17:                                               ; preds = %73, %0
  %18 = load i32, ptr %2, align 4, !tbaa !5
  %19 = icmp sgt i32 %18, 0
  br i1 %19, label %20, label %108

20:                                               ; preds = %17
  call void @llvm.lifetime.start.p0(i64 24, ptr %3) #8
  call void @_ZNSt6vectorIN4CGAL7Point_2INS0_16Simple_cartesianIN4CORE4ExprEEEEESaIS6_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  br label %21

21:                                               ; preds = %30, %20
  %22 = load i32, ptr %2, align 4, !tbaa !5
  %23 = icmp sgt i32 %22, 0
  br i1 %23, label %24, label %47

24:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #8
  %25 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERl(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %26 unwind label %33

26:                                               ; preds = %24
  %27 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERl(ptr noundef nonnull align 8 dereferenceable(16) %25, ptr noundef nonnull align 8 dereferenceable(8) %5)
          to label %28 unwind label %33

28:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #8
  invoke void @_ZN4CGAL7Point_2INS_16Simple_cartesianIN4CORE4ExprEEEEC2IllEERKT_RKT0_(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5)
          to label %29 unwind label %37

29:                                               ; preds = %28
  invoke void @_ZNSt6vectorIN4CGAL7Point_2INS0_16Simple_cartesianIN4CORE4ExprEEEEESaIS6_EE9push_backEOS6_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(16) %8)
          to label %30 unwind label %41

30:                                               ; preds = %29
  call void @_ZN4CGAL7PointC2INS_16Simple_cartesianIN4CORE4ExprEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #8
  %31 = load i32, ptr %2, align 4, !tbaa !5
  %32 = add nsw i32 %31, -1
  store i32 %32, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #8
  br label %21, !llvm.loop !9

33:                                               ; preds = %26, %24
  %34 = landingpad { ptr, i32 }
          cleanup
  %35 = extractvalue { ptr, i32 } %34, 0
  store ptr %35, ptr %6, align 8
  %36 = extractvalue { ptr, i32 } %34, 1
  store i32 %36, ptr %7, align 4
  br label %46

37:                                               ; preds = %28
  %38 = landingpad { ptr, i32 }
          cleanup
  %39 = extractvalue { ptr, i32 } %38, 0
  store ptr %39, ptr %6, align 8
  %40 = extractvalue { ptr, i32 } %38, 1
  store i32 %40, ptr %7, align 4
  br label %45

41:                                               ; preds = %29
  %42 = landingpad { ptr, i32 }
          cleanup
  %43 = extractvalue { ptr, i32 } %42, 0
  store ptr %43, ptr %6, align 8
  %44 = extractvalue { ptr, i32 } %42, 1
  store i32 %44, ptr %7, align 4
  call void @_ZN4CGAL7PointC2INS_16Simple_cartesianIN4CORE4ExprEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #8
  br label %45

45:                                               ; preds = %41, %37
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #8
  br label %46

46:                                               ; preds = %45, %33
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #8
  br label %107

47:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 64, ptr %9) #8
  %48 = call ptr @_ZNSt6vectorIN4CGAL7Point_2INS0_16Simple_cartesianIN4CORE4ExprEEEEESaIS6_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  %49 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %10, i32 0, i32 0
  store ptr %48, ptr %49, align 8
  %50 = call ptr @_ZNSt6vectorIN4CGAL7Point_2INS0_16Simple_cartesianIN4CORE4ExprEEEEESaIS6_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  %51 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %11, i32 0, i32 0
  store ptr %50, ptr %51, align 8
  %52 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN4CGAL18get_default_randomEv()
          to label %53 unwind label %74

53:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 24, ptr %12) #8
  call void @llvm.memset.p0.i64(ptr align 8 %12, i8 0, i64 24, i1 false)
  invoke void @_ZN4CGAL21Min_circle_2_traits_2INS_16Simple_cartesianIN4CORE4ExprEEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12)
          to label %54 unwind label %78

54:                                               ; preds = %53
  %55 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %10, i32 0, i32 0
  %56 = load ptr, ptr %55, align 8
  %57 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %11, i32 0, i32 0
  %58 = load ptr, ptr %57, align 8
  invoke void @_ZN4CGAL12Min_circle_2INS_21Min_circle_2_traits_2INS_16Simple_cartesianIN4CORE4ExprEEEEEEC2IN9__gnu_cxx17__normal_iteratorIPNS_7Point_2IS5_EESt6vectorISC_SaISC_EEEEEET_SI_bRNS_6RandomERKS6_(ptr noundef nonnull align 8 dereferenceable(64) %9, ptr %56, ptr %58, i1 noundef zeroext true, ptr noundef nonnull align 8 dereferenceable(24) %52, ptr noundef nonnull align 8 dereferenceable(24) %12)
          to label %59 unwind label %82

59:                                               ; preds = %54
  call void @_ZN4CGAL21Min_circle_2_traits_2INS_16Simple_cartesianIN4CORE4ExprEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %13) #8
  %60 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK4CGAL12Min_circle_2INS_21Min_circle_2_traits_2INS_16Simple_cartesianIN4CORE4ExprEEEEEE6circleEv(ptr noundef nonnull align 8 dereferenceable(64) %9)
          to label %61 unwind label %87

61:                                               ; preds = %59
  invoke void @_ZN4CGAL21Optimisation_circle_2INS_16Simple_cartesianIN4CORE4ExprEEEEC2ERKS5_(ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull align 8 dereferenceable(24) %60)
          to label %62 unwind label %87

62:                                               ; preds = %61
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  %63 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4CGAL21Optimisation_circle_2INS_16Simple_cartesianIN4CORE4ExprEEEE14squared_radiusEv(ptr noundef nonnull align 8 dereferenceable(24) %13)
          to label %64 unwind label %91

64:                                               ; preds = %62
  invoke void @_ZN4CGAL4sqrtIN4CORE4ExprEEENS_26Algebraic_structure_traitsIT_E4Sqrt11result_typeERKS4_(ptr dead_on_unwind writable sret(%"class.CORE::Expr") align 8 %14, ptr noundef nonnull align 8 dereferenceable(8) %63)
          to label %65 unwind label %91

65:                                               ; preds = %64
  %66 = invoke noundef i64 @_Z12ceil_to_longRKN4CORE4ExprE(ptr noundef nonnull align 8 dereferenceable(8) %14)
          to label %67 unwind label %95

67:                                               ; preds = %65
  %68 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEl(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %66)
          to label %69 unwind label %95

69:                                               ; preds = %67
  %70 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %68, i8 noundef signext 10)
          to label %71 unwind label %95

71:                                               ; preds = %69
  call void @_ZN4CORE4ExprD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  %72 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
          to label %73 unwind label %100

73:                                               ; preds = %71
  call void @_ZN4CGAL21Optimisation_circle_2INS_16Simple_cartesianIN4CORE4ExprEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #8
  call void @_ZN4CGAL12Min_circle_2INS_21Min_circle_2_traits_2INS_16Simple_cartesianIN4CORE4ExprEEEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(64) %9) #8
  call void @llvm.lifetime.end.p0(i64 64, ptr %9) #8
  call void @_ZNSt6vectorIN4CGAL7Point_2INS0_16Simple_cartesianIN4CORE4ExprEEEEESaIS6_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %3) #8
  br label %17, !llvm.loop !11

74:                                               ; preds = %47
  %75 = landingpad { ptr, i32 }
          cleanup
  %76 = extractvalue { ptr, i32 } %75, 0
  store ptr %76, ptr %6, align 8
  %77 = extractvalue { ptr, i32 } %75, 1
  store i32 %77, ptr %7, align 4
  br label %106

78:                                               ; preds = %53
  %79 = landingpad { ptr, i32 }
          cleanup
  %80 = extractvalue { ptr, i32 } %79, 0
  store ptr %80, ptr %6, align 8
  %81 = extractvalue { ptr, i32 } %79, 1
  store i32 %81, ptr %7, align 4
  br label %86

82:                                               ; preds = %54
  %83 = landingpad { ptr, i32 }
          cleanup
  %84 = extractvalue { ptr, i32 } %83, 0
  store ptr %84, ptr %6, align 8
  %85 = extractvalue { ptr, i32 } %83, 1
  store i32 %85, ptr %7, align 4
  call void @_ZN4CGAL21Min_circle_2_traits_2INS_16Simple_cartesianIN4CORE4ExprEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #8
  br label %86

86:                                               ; preds = %82, %78
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #8
  br label %106

87:                                               ; preds = %61, %59
  %88 = landingpad { ptr, i32 }
          cleanup
  %89 = extractvalue { ptr, i32 } %88, 0
  store ptr %89, ptr %6, align 8
  %90 = extractvalue { ptr, i32 } %88, 1
  store i32 %90, ptr %7, align 4
  br label %105

91:                                               ; preds = %64, %62
  %92 = landingpad { ptr, i32 }
          cleanup
  %93 = extractvalue { ptr, i32 } %92, 0
  store ptr %93, ptr %6, align 8
  %94 = extractvalue { ptr, i32 } %92, 1
  store i32 %94, ptr %7, align 4
  br label %99

95:                                               ; preds = %69, %67, %65
  %96 = landingpad { ptr, i32 }
          cleanup
  %97 = extractvalue { ptr, i32 } %96, 0
  store ptr %97, ptr %6, align 8
  %98 = extractvalue { ptr, i32 } %96, 1
  store i32 %98, ptr %7, align 4
  call void @_ZN4CORE4ExprD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #8
  br label %99

99:                                               ; preds = %95, %91
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  br label %104

100:                                              ; preds = %71
  %101 = landingpad { ptr, i32 }
          cleanup
  %102 = extractvalue { ptr, i32 } %101, 0
  store ptr %102, ptr %6, align 8
  %103 = extractvalue { ptr, i32 } %101, 1
  store i32 %103, ptr %7, align 4
  br label %104

104:                                              ; preds = %100, %99
  call void @_ZN4CGAL21Optimisation_circle_2INS_16Simple_cartesianIN4CORE4ExprEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #8
  br label %105

105:                                              ; preds = %104, %87
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #8
  call void @_ZN4CGAL12Min_circle_2INS_21Min_circle_2_traits_2INS_16Simple_cartesianIN4CORE4ExprEEEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(64) %9) #8
  br label %106

106:                                              ; preds = %105, %86, %74
  call void @llvm.lifetime.end.p0(i64 64, ptr %9) #8
  br label %107

107:                                              ; preds = %106, %46
  call void @_ZNSt6vectorIN4CGAL7Point_2INS0_16Simple_cartesianIN4CORE4ExprEEEEESaIS6_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %3) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #8
  br label %110

108:                                              ; preds = %17
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #8
  %109 = load i32, ptr %1, align 4
  ret i32 %109

110:                                              ; preds = %107
  %111 = load ptr, ptr %6, align 8
  %112 = load i32, ptr %7, align 4
  %113 = insertvalue { ptr, i32 } poison, ptr %111, 0
  %114 = insertvalue { ptr, i32 } %113, i32 %112, 1
  resume { ptr, i32 } %114
}

declare noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext) #5

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIN4CGAL7Point_2INS0_16Simple_cartesianIN4CORE4ExprEEEEESaIS6_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIN4CGAL7Point_2INS0_16Simple_cartesianIN4CORE4ExprEEEEESaIS6_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIN4CGAL7Point_2INS0_16Simple_cartesianIN4CORE4ExprEEEEESaIS6_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) #3 align 2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #6

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN4CGAL21Min_circle_2_traits_2INS_16Simple_cartesianIN4CORE4ExprEEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4CGAL12Min_circle_2INS_21Min_circle_2_traits_2INS_16Simple_cartesianIN4CORE4ExprEEEEEEC2IN9__gnu_cxx17__normal_iteratorIPNS_7Point_2IS5_EESt6vectorISC_SaISC_EEEEEET_SI_bRNS_6RandomERKS6_(ptr noundef nonnull align 8 dereferenceable(64), ptr, ptr, i1 noundef zeroext, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4CGAL21Min_circle_2_traits_2INS_16Simple_cartesianIN4CORE4ExprEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #7 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNK4CGAL12Min_circle_2INS_21Min_circle_2_traits_2INS_16Simple_cartesianIN4CORE4ExprEEEEEE6circleEv(ptr noundef nonnull align 8 dereferenceable(64)) #7 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN4CGAL21Optimisation_circle_2INS_16Simple_cartesianIN4CORE4ExprEEEEC2ERKS5_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) #1

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN4CGAL4sqrtIN4CORE4ExprEEENS_26Algebraic_structure_traitsIT_E4Sqrt11result_typeERKS4_(ptr dead_on_unwind noalias writable sret(%"class.CORE::Expr") align 8, ptr noundef nonnull align 8 dereferenceable(8)) #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4CGAL21Optimisation_circle_2INS_16Simple_cartesianIN4CORE4ExprEEEE14squared_radiusEv(ptr noundef nonnull align 8 dereferenceable(24)) #7 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4CGAL21Optimisation_circle_2INS_16Simple_cartesianIN4CORE4ExprEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #7 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4CGAL12Min_circle_2INS_21Min_circle_2_traits_2INS_16Simple_cartesianIN4CORE4ExprEEEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(64)) unnamed_addr #7 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIN4CGAL7Point_2INS0_16Simple_cartesianIN4CORE4ExprEEEEESaIS6_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4CGAL7PointC2INS_16Simple_cartesianIN4CORE4ExprEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #7 align 2

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

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

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


; 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_ostream" = type { ptr, %"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_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<CGAL::Point_2<CGAL::Simple_cartesian<CORE::Expr>>, std::allocator<CGAL::Point_2<CGAL::Simple_cartesian<CORE::Expr>>>>::_Vector_impl" }
%"struct.std::_Vector_base<CGAL::Point_2<CGAL::Simple_cartesian<CORE::Expr>>, std::allocator<CGAL::Point_2<CGAL::Simple_cartesian<CORE::Expr>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<CGAL::Point_2<CGAL::Simple_cartesian<CORE::Expr>>, std::allocator<CGAL::Point_2<CGAL::Simple_cartesian<CORE::Expr>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<CGAL::Point_2<CGAL::Simple_cartesian<CORE::Expr>>, std::allocator<CGAL::Point_2<CGAL::Simple_cartesian<CORE::Expr>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.CGAL::Point_2" = type { %"class.CGAL::PointC2" }
%"class.CGAL::PointC2" = type { %"class.CGAL::Vector_2" }
%"class.CGAL::Vector_2" = type { %"class.CGAL::VectorC2" }
%"class.CGAL::VectorC2" = type { %"struct.std::array" }
%"struct.std::array" = type { [2 x %"class.CORE::Expr"] }
%"class.CORE::Expr" = type { %"class.CORE::RCImpl.1" }
%"class.CORE::RCImpl.1" = type { ptr }
%"class.CGAL::Min_circle_2" = type { %"class.CGAL::Min_circle_2_traits_2", %"class.std::__cxx11::list", i64, ptr }
%"class.CGAL::Min_circle_2_traits_2" = type { %"class.CGAL::Optimisation_circle_2" }
%"class.CGAL::Optimisation_circle_2" = type { %"class.CGAL::Point_2", %"class.CORE::Expr" }
%"class.std::__cxx11::list" = type { %"class.std::__cxx11::_List_base" }
%"class.std::__cxx11::_List_base" = type { %"struct.std::__cxx11::_List_base<CGAL::Point_2<CGAL::Simple_cartesian<CORE::Expr>>, std::allocator<CGAL::Point_2<CGAL::Simple_cartesian<CORE::Expr>>>>::_List_impl" }
%"struct.std::__cxx11::_List_base<CGAL::Point_2<CGAL::Simple_cartesian<CORE::Expr>>, std::allocator<CGAL::Point_2<CGAL::Simple_cartesian<CORE::Expr>>>>::_List_impl" = type { %"struct.std::__detail::_List_node_header" }
%"struct.std::__detail::_List_node_header" = type { %"struct.std::__detail::_List_node_base", i64 }
%"struct.std::__detail::_List_node_base" = type { ptr, ptr }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@_ZSt3cin = external global %"class.std::basic_istream", align 8

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZN4CGAL18get_default_randomEv() local_unnamed_addr #1

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #4 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca %"class.std::vector", align 8
  %3 = alloca i64, align 8
  %4 = alloca i64, align 8
  %5 = alloca %"class.CGAL::Point_2", align 8
  %6 = alloca %"class.CGAL::Min_circle_2", align 8
  %7 = alloca %"class.CGAL::Min_circle_2_traits_2", align 8
  %8 = alloca %"class.CGAL::Optimisation_circle_2", align 8
  %9 = alloca %"class.CORE::Expr", align 8
  %10 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #8
  %11 = 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)
  %12 = load i32, ptr %1, align 4, !tbaa !5
  %13 = icmp sgt i32 %12, 0
  br i1 %13, label %.lr.ph23, label %._crit_edge24

.lr.ph23:                                         ; preds = %0, %49
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %2) #8
  call void @_ZNSt6vectorIN4CGAL7Point_2INS0_16Simple_cartesianIN4CORE4ExprEEEEESaIS6_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #8
  %.pr = load i32, ptr %1, align 4, !tbaa !5
  %14 = icmp sgt i32 %.pr, 0
  br i1 %14, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %.lr.ph23, %20
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #8
  %15 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERl(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %3)
          to label %16 unwind label %24

16:                                               ; preds = %.lr.ph
  %17 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERl(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %18 unwind label %24

18:                                               ; preds = %16
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #8
  invoke void @_ZN4CGAL7Point_2INS_16Simple_cartesianIN4CORE4ExprEEEEC2IllEERKT_RKT0_(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %19 unwind label %26

19:                                               ; preds = %18
  invoke void @_ZNSt6vectorIN4CGAL7Point_2INS0_16Simple_cartesianIN4CORE4ExprEEEEESaIS6_EE9push_backEOS6_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(16) %5)
          to label %20 unwind label %28

20:                                               ; preds = %19
  call void @_ZN4CGAL7PointC2INS_16Simple_cartesianIN4CORE4ExprEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #8
  %21 = load i32, ptr %1, align 4, !tbaa !5
  %22 = add nsw i32 %21, -1
  store i32 %22, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #8
  %23 = icmp sgt i32 %21, 1
  br i1 %23, label %.lr.ph, label %._crit_edge, !llvm.loop !9

24:                                               ; preds = %16, %.lr.ph
  %25 = landingpad { ptr, i32 }
          cleanup
  br label %31

26:                                               ; preds = %18
  %27 = landingpad { ptr, i32 }
          cleanup
  br label %30

28:                                               ; preds = %19
  %29 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4CGAL7PointC2INS_16Simple_cartesianIN4CORE4ExprEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #8
  br label %30

30:                                               ; preds = %28, %26
  %.pn18 = phi { ptr, i32 } [ %29, %28 ], [ %27, %26 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #8
  br label %31

31:                                               ; preds = %30, %24
  %.pn18.pn = phi { ptr, i32 } [ %.pn18, %30 ], [ %25, %24 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #8
  br label %71

._crit_edge:                                      ; preds = %20, %.lr.ph23
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %6) #8
  %32 = call ptr @_ZNSt6vectorIN4CGAL7Point_2INS0_16Simple_cartesianIN4CORE4ExprEEEEESaIS6_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #8
  %33 = call ptr @_ZNSt6vectorIN4CGAL7Point_2INS0_16Simple_cartesianIN4CORE4ExprEEEEESaIS6_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #8
  %34 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN4CGAL18get_default_randomEv()
          to label %35 unwind label %52

35:                                               ; preds = %._crit_edge
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %7, i8 0, i64 24, i1 false)
  invoke void @_ZN4CGAL21Min_circle_2_traits_2INS_16Simple_cartesianIN4CORE4ExprEEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7)
          to label %36 unwind label %54

36:                                               ; preds = %35
  invoke void @_ZN4CGAL12Min_circle_2INS_21Min_circle_2_traits_2INS_16Simple_cartesianIN4CORE4ExprEEEEEEC2IN9__gnu_cxx17__normal_iteratorIPNS_7Point_2IS5_EESt6vectorISC_SaISC_EEEEEET_SI_bRNS_6RandomERKS6_(ptr noundef nonnull align 8 dereferenceable(64) %6, ptr %32, ptr %33, i1 noundef zeroext true, ptr noundef nonnull align 8 dereferenceable(24) %34, ptr noundef nonnull align 8 dereferenceable(24) %7)
          to label %37 unwind label %56

37:                                               ; preds = %36
  call void @_ZN4CGAL21Min_circle_2_traits_2INS_16Simple_cartesianIN4CORE4ExprEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #8
  %38 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK4CGAL12Min_circle_2INS_21Min_circle_2_traits_2INS_16Simple_cartesianIN4CORE4ExprEEEEEE6circleEv(ptr noundef nonnull align 8 dereferenceable(64) %6)
  invoke void @_ZN4CGAL21Optimisation_circle_2INS_16Simple_cartesianIN4CORE4ExprEEEEC2ERKS5_(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(24) %38)
          to label %39 unwind label %59

39:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #8
  %40 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4CGAL21Optimisation_circle_2INS_16Simple_cartesianIN4CORE4ExprEEEE14squared_radiusEv(ptr noundef nonnull align 8 dereferenceable(24) %8)
  invoke void @_ZN4CGAL4sqrtIN4CORE4ExprEEENS_26Algebraic_structure_traitsIT_E4Sqrt11result_typeERKS4_(ptr dead_on_unwind nonnull writable sret(%"class.CORE::Expr") align 8 %9, ptr noundef nonnull align 8 dereferenceable(8) %40)
          to label %41 unwind label %61

41:                                               ; preds = %39
  %42 = invoke noundef i64 @_Z12ceil_to_longRKN4CORE4ExprE(ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %43 unwind label %63

43:                                               ; preds = %41
  %44 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEl(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %42)
          to label %45 unwind label %63

45:                                               ; preds = %43
  %46 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %44, i8 noundef signext 10)
          to label %47 unwind label %63

47:                                               ; preds = %45
  call void @_ZN4CORE4ExprD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #8
  %48 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
          to label %49 unwind label %66

49:                                               ; preds = %47
  call void @_ZN4CGAL21Optimisation_circle_2INS_16Simple_cartesianIN4CORE4ExprEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #8
  call void @_ZN4CGAL12Min_circle_2INS_21Min_circle_2_traits_2INS_16Simple_cartesianIN4CORE4ExprEEEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(64) %6) #8
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %6) #8
  call void @_ZNSt6vectorIN4CGAL7Point_2INS0_16Simple_cartesianIN4CORE4ExprEEEEESaIS6_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #8
  %50 = load i32, ptr %1, align 4, !tbaa !5
  %51 = icmp sgt i32 %50, 0
  br i1 %51, label %.lr.ph23, label %._crit_edge24, !llvm.loop !11

52:                                               ; preds = %._crit_edge
  %53 = landingpad { ptr, i32 }
          cleanup
  br label %70

54:                                               ; preds = %35
  %55 = landingpad { ptr, i32 }
          cleanup
  br label %58

56:                                               ; preds = %36
  %57 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4CGAL21Min_circle_2_traits_2INS_16Simple_cartesianIN4CORE4ExprEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #8
  br label %58

58:                                               ; preds = %56, %54
  %.pn = phi { ptr, i32 } [ %57, %56 ], [ %55, %54 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #8
  br label %70

59:                                               ; preds = %37
  %60 = landingpad { ptr, i32 }
          cleanup
  br label %69

61:                                               ; preds = %39
  %62 = landingpad { ptr, i32 }
          cleanup
  br label %65

63:                                               ; preds = %45, %43, %41
  %64 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4CORE4ExprD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #8
  br label %65

65:                                               ; preds = %63, %61
  %.pn12 = phi { ptr, i32 } [ %64, %63 ], [ %62, %61 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #8
  br label %68

66:                                               ; preds = %47
  %67 = landingpad { ptr, i32 }
          cleanup
  br label %68

68:                                               ; preds = %66, %65
  %.pn14 = phi { ptr, i32 } [ %67, %66 ], [ %.pn12, %65 ]
  call void @_ZN4CGAL21Optimisation_circle_2INS_16Simple_cartesianIN4CORE4ExprEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #8
  br label %69

69:                                               ; preds = %68, %59
  %.pn14.pn = phi { ptr, i32 } [ %.pn14, %68 ], [ %60, %59 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #8
  call void @_ZN4CGAL12Min_circle_2INS_21Min_circle_2_traits_2INS_16Simple_cartesianIN4CORE4ExprEEEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(64) %6) #8
  br label %70

70:                                               ; preds = %69, %58, %52
  %.pn14.pn.pn = phi { ptr, i32 } [ %.pn14.pn, %69 ], [ %.pn, %58 ], [ %53, %52 ]
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %6) #8
  br label %71

71:                                               ; preds = %70, %31
  %.pn18.pn.pn = phi { ptr, i32 } [ %.pn18.pn, %31 ], [ %.pn14.pn.pn, %70 ]
  call void @_ZNSt6vectorIN4CGAL7Point_2INS0_16Simple_cartesianIN4CORE4ExprEEEEESaIS6_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #8
  resume { ptr, i32 } %.pn18.pn.pn

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

declare noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext) local_unnamed_addr #5

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 #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIN4CGAL7Point_2INS0_16Simple_cartesianIN4CORE4ExprEEEEESaIS6_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIN4CGAL7Point_2INS0_16Simple_cartesianIN4CORE4ExprEEEEESaIS6_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIN4CGAL7Point_2INS0_16Simple_cartesianIN4CORE4ExprEEEEESaIS6_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #6

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN4CGAL21Min_circle_2_traits_2INS_16Simple_cartesianIN4CORE4ExprEEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4CGAL12Min_circle_2INS_21Min_circle_2_traits_2INS_16Simple_cartesianIN4CORE4ExprEEEEEEC2IN9__gnu_cxx17__normal_iteratorIPNS_7Point_2IS5_EESt6vectorISC_SaISC_EEEEEET_SI_bRNS_6RandomERKS6_(ptr noundef nonnull align 8 dereferenceable(64), ptr, ptr, i1 noundef zeroext, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4CGAL21Min_circle_2_traits_2INS_16Simple_cartesianIN4CORE4ExprEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #7 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNK4CGAL12Min_circle_2INS_21Min_circle_2_traits_2INS_16Simple_cartesianIN4CORE4ExprEEEEEE6circleEv(ptr noundef nonnull align 8 dereferenceable(64)) local_unnamed_addr #7 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN4CGAL21Optimisation_circle_2INS_16Simple_cartesianIN4CORE4ExprEEEEC2ERKS5_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) local_unnamed_addr #1

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN4CGAL4sqrtIN4CORE4ExprEEENS_26Algebraic_structure_traitsIT_E4Sqrt11result_typeERKS4_(ptr dead_on_unwind noalias writable sret(%"class.CORE::Expr") align 8, ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4CGAL21Optimisation_circle_2INS_16Simple_cartesianIN4CORE4ExprEEEE14squared_radiusEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #7 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4CGAL21Optimisation_circle_2INS_16Simple_cartesianIN4CORE4ExprEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #7 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4CGAL12Min_circle_2INS_21Min_circle_2_traits_2INS_16Simple_cartesianIN4CORE4ExprEEEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(64)) unnamed_addr #7 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIN4CGAL7Point_2INS0_16Simple_cartesianIN4CORE4ExprEEEEESaIS6_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4CGAL7PointC2INS_16Simple_cartesianIN4CORE4ExprEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #7 align 2

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

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

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


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