; LLVM IR from tommasocerruti/algolab-2024 :: src/week08/inball/solution.ll (Z5solvev)

; 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" }
%"class.CGAL::Quadratic_program" = type { i32, i32, %"class.std::vector", %"class.std::map", %"class.std::map.80", %"class.std::map.85", %"class.std::map", %"class.std::map.85", %"class.std::map", %"class.std::map", %"class.std::vector", i32, i32, i8, i32, i8, i32, i8, %"class.std::__cxx11::basic_string" }
%"class.std::map.80" = type { %"class.std::_Rb_tree.81" }
%"class.std::_Rb_tree.81" = type { %"struct.std::_Rb_tree<unsigned long, std::pair<const unsigned long, CGAL::Sign>, std::_Select1st<std::pair<const unsigned long, CGAL::Sign>>, std::less<unsigned long>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<unsigned long, std::pair<const unsigned long, CGAL::Sign>, std::_Select1st<std::pair<const unsigned long, CGAL::Sign>>, std::less<unsigned long>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::map.85" = type { %"class.std::_Rb_tree.86" }
%"class.std::_Rb_tree.86" = type { %"struct.std::_Rb_tree<unsigned long, std::pair<const unsigned long, bool>, std::_Select1st<std::pair<const unsigned long, bool>>, std::less<unsigned long>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<unsigned long, std::pair<const unsigned long, bool>, std::_Select1st<std::pair<const unsigned long, bool>>, std::less<unsigned long>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<unsigned long, std::pair<const unsigned long, int>, std::_Select1st<std::pair<const unsigned long, int>>, std::less<unsigned long>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<unsigned long, std::pair<const unsigned long, int>, std::_Select1st<std::pair<const unsigned long, int>>, std::less<unsigned long>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::map<unsigned long, int>, std::allocator<std::map<unsigned long, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::map<unsigned long, int>, std::allocator<std::map<unsigned long, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::map<unsigned long, int>, std::allocator<std::map<unsigned long, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::map<unsigned long, int>, std::allocator<std::map<unsigned long, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.CGAL::Quadratic_program_solution" = type { %"class.CGAL::Handle_for.93", %"class.CGAL::Gmpz", %"class.std::__cxx11::basic_string" }
%"class.CGAL::Handle_for.93" = type { ptr }
%"class.CGAL::Gmpz" = type { %"class.CGAL::Handle_for" }
%"class.CGAL::Handle_for" = type { ptr }
%"class.CGAL::Quadratic_program_options" = type <{ i32, i32, i8, [3 x i8] }>
%"class.CGAL::Quotient" = type { %"class.CGAL::Gmpz", %"class.CGAL::Gmpz" }

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_Z15floor_to_doubleRKN4CGAL8QuotientINS_4GmpzEEE(ptr noundef nonnull align 8 dereferenceable(16)) #0

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5solvev() #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca %"class.CGAL::Quadratic_program", align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i64, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca %"class.CGAL::Quadratic_program_solution", align 8
  %16 = alloca %"class.CGAL::Gmpz", align 8
  %17 = alloca %"class.CGAL::Quadratic_program_options", align 4
  %18 = alloca %"class.CGAL::Quotient", align 8
  %19 = alloca %"class.CGAL::Quotient", align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #6
  %20 = 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)
  br label %21

21:                                               ; preds = %146, %0
  %22 = load i32, ptr %1, align 4, !tbaa !5
  %23 = icmp sgt i32 %22, 0
  br i1 %23, label %24, label %150

24:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  %25 = 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)
  call void @llvm.lifetime.start.p0(i64 456, ptr %3) #6
  call void @_ZN4CGAL17Quadratic_programIiEC2ENS_4SignEbibi(ptr noundef nonnull align 8 dereferenceable(456) %3, i32 noundef -1, i1 noundef zeroext false, i32 noundef 0, i1 noundef zeroext false, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %26

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

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

31:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  store i64 0, ptr %6, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %32

32:                                               ; preds = %49, %31
  %33 = load i32, ptr %7, align 4, !tbaa !5
  %34 = load i32, ptr %2, align 4, !tbaa !5
  %35 = icmp slt i32 %33, %34
  br i1 %35, label %37, label %36

36:                                               ; preds = %32
  store i32 7, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  br label %56

37:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  %38 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %8)
          to label %39 unwind label %52

39:                                               ; preds = %37
  %40 = load i32, ptr %7, align 4, !tbaa !5
  %41 = load i32, ptr %4, align 4, !tbaa !5
  invoke void @_ZN4CGAL17Quadratic_programIiE5set_aEiiRKi(ptr noundef nonnull align 8 dereferenceable(456) %3, i32 noundef %40, i32 noundef %41, ptr noundef nonnull align 4 dereferenceable(4) %8)
          to label %42 unwind label %52

42:                                               ; preds = %39
  %43 = load i32, ptr %8, align 4, !tbaa !5
  %44 = load i32, ptr %8, align 4, !tbaa !5
  %45 = mul nsw i32 %43, %44
  %46 = sext i32 %45 to i64
  %47 = load i64, ptr %6, align 8, !tbaa !9
  %48 = add nsw i64 %47, %46
  store i64 %48, ptr %6, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  br label %49

49:                                               ; preds = %42
  %50 = load i32, ptr %7, align 4, !tbaa !5
  %51 = add nsw i32 %50, 1
  store i32 %51, ptr %7, align 4, !tbaa !5
  br label %32, !llvm.loop !11

52:                                               ; preds = %39, %37
  %53 = landingpad { ptr, i32 }
          cleanup
  %54 = extractvalue { ptr, i32 } %53, 0
  store ptr %54, ptr %9, align 8
  %55 = extractvalue { ptr, i32 } %53, 1
  store i32 %55, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  br label %79

56:                                               ; preds = %36
  %57 = load i32, ptr %2, align 4, !tbaa !5
  %58 = load i32, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  %59 = load i64, ptr %6, align 8, !tbaa !9
  %60 = invoke noundef double @_ZSt4sqrtIlEN9__gnu_cxx11__enable_ifIXsr12__is_integerIT_EE7__valueEdE6__typeES2_(i64 noundef %59)
          to label %61 unwind label %71

61:                                               ; preds = %56
  %62 = fptosi double %60 to i32
  store i32 %62, ptr %11, align 4, !tbaa !5
  invoke void @_ZN4CGAL17Quadratic_programIiE5set_aEiiRKi(ptr noundef nonnull align 8 dereferenceable(456) %3, i32 noundef %57, i32 noundef %58, ptr noundef nonnull align 4 dereferenceable(4) %11)
          to label %63 unwind label %71

63:                                               ; preds = %61
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  %64 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %12)
          to label %65 unwind label %75

65:                                               ; preds = %63
  %66 = load i32, ptr %4, align 4, !tbaa !5
  invoke void @_ZN4CGAL17Quadratic_programIiE5set_bEiRKi(ptr noundef nonnull align 8 dereferenceable(456) %3, i32 noundef %66, ptr noundef nonnull align 4 dereferenceable(4) %12)
          to label %67 unwind label %75

67:                                               ; preds = %65
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  br label %68

68:                                               ; preds = %67
  %69 = load i32, ptr %4, align 4, !tbaa !5
  %70 = add nsw i32 %69, 1
  store i32 %70, ptr %4, align 4, !tbaa !5
  br label %26, !llvm.loop !13

71:                                               ; preds = %61, %56
  %72 = landingpad { ptr, i32 }
          cleanup
  %73 = extractvalue { ptr, i32 } %72, 0
  store ptr %73, ptr %9, align 8
  %74 = extractvalue { ptr, i32 } %72, 1
  store i32 %74, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  br label %79

75:                                               ; preds = %65, %63
  %76 = landingpad { ptr, i32 }
          cleanup
  %77 = extractvalue { ptr, i32 } %76, 0
  store ptr %77, ptr %9, align 8
  %78 = extractvalue { ptr, i32 } %76, 1
  store i32 %78, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %79

79:                                               ; preds = %75, %71, %52
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  br label %149

80:                                               ; preds = %30
  %81 = load i32, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  store i32 0, ptr %13, align 4, !tbaa !5
  invoke void @_ZN4CGAL17Quadratic_programIiE5set_lEibRKi(ptr noundef nonnull align 8 dereferenceable(456) %3, i32 noundef %81, i1 noundef zeroext true, ptr noundef nonnull align 4 dereferenceable(4) %13)
          to label %82 unwind label %93

82:                                               ; preds = %80
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  %83 = load i32, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  store i32 -1, ptr %14, align 4, !tbaa !5
  invoke void @_ZN4CGAL17Quadratic_programIiE5set_cEiRKi(ptr noundef nonnull align 8 dereferenceable(456) %3, i32 noundef %83, ptr noundef nonnull align 4 dereferenceable(4) %14)
          to label %84 unwind label %97

84:                                               ; preds = %82
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 48, ptr %15) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  invoke void @_ZN4CGAL4GmpzC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %16)
          to label %85 unwind label %101

85:                                               ; preds = %84
  call void @llvm.lifetime.start.p0(i64 12, ptr %17) #6
  invoke void @_ZN4CGAL25Quadratic_program_optionsC2Ev(ptr noundef nonnull align 4 dereferenceable(9) %17)
          to label %86 unwind label %105

86:                                               ; preds = %85
  invoke void @_ZN4CGAL20solve_linear_programINS_17Quadratic_programIiEENS_4GmpzEEENS_26Quadratic_program_solutionIT0_EERKT_RKS5_RKNS_25Quadratic_program_optionsE(ptr dead_on_unwind writable sret(%"class.CGAL::Quadratic_program_solution") align 8 %15, ptr noundef nonnull align 8 dereferenceable(456) %3, ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 4 dereferenceable(9) %17)
          to label %87 unwind label %105

87:                                               ; preds = %86
  call void @llvm.lifetime.end.p0(i64 12, ptr %17) #6
  call void @_ZN4CGAL10Handle_forINS_8Gmpz_repESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  %88 = invoke noundef zeroext i1 @_ZNK4CGAL26Quadratic_program_solutionINS_4GmpzEE13is_infeasibleEv(ptr noundef nonnull align 8 dereferenceable(48) %15)
          to label %89 unwind label %110

89:                                               ; preds = %87
  br i1 %88, label %90, label %114

90:                                               ; preds = %89
  %91 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
          to label %92 unwind label %110

92:                                               ; preds = %90
  br label %144

93:                                               ; preds = %80
  %94 = landingpad { ptr, i32 }
          cleanup
  %95 = extractvalue { ptr, i32 } %94, 0
  store ptr %95, ptr %9, align 8
  %96 = extractvalue { ptr, i32 } %94, 1
  store i32 %96, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  br label %149

97:                                               ; preds = %82
  %98 = landingpad { ptr, i32 }
          cleanup
  %99 = extractvalue { ptr, i32 } %98, 0
  store ptr %99, ptr %9, align 8
  %100 = extractvalue { ptr, i32 } %98, 1
  store i32 %100, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  br label %149

101:                                              ; preds = %84
  %102 = landingpad { ptr, i32 }
          cleanup
  %103 = extractvalue { ptr, i32 } %102, 0
  store ptr %103, ptr %9, align 8
  %104 = extractvalue { ptr, i32 } %102, 1
  store i32 %104, ptr %10, align 4
  br label %109

105:                                              ; preds = %86, %85
  %106 = landingpad { ptr, i32 }
          cleanup
  %107 = extractvalue { ptr, i32 } %106, 0
  store ptr %107, ptr %9, align 8
  %108 = extractvalue { ptr, i32 } %106, 1
  store i32 %108, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %17) #6
  call void @_ZN4CGAL10Handle_forINS_8Gmpz_repESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %16) #6
  br label %109

109:                                              ; preds = %105, %101
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  br label %148

110:                                              ; preds = %144, %117, %114, %90, %87
  %111 = landingpad { ptr, i32 }
          cleanup
  %112 = extractvalue { ptr, i32 } %111, 0
  store ptr %112, ptr %9, align 8
  %113 = extractvalue { ptr, i32 } %111, 1
  store i32 %113, ptr %10, align 4
  br label %147

114:                                              ; preds = %89
  %115 = invoke noundef zeroext i1 @_ZNK4CGAL26Quadratic_program_solutionINS_4GmpzEE12is_unboundedEv(ptr noundef nonnull align 8 dereferenceable(48) %15)
          to label %116 unwind label %110

116:                                              ; preds = %114
  br i1 %115, label %117, label %120

117:                                              ; preds = %116
  %118 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.6)
          to label %119 unwind label %110

119:                                              ; preds = %117
  br label %143

120:                                              ; preds = %116
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #6
  invoke void @_ZNK4CGAL26Quadratic_program_solutionINS_4GmpzEE15objective_valueEv(ptr dead_on_unwind writable sret(%"class.CGAL::Quotient") align 8 %19, ptr noundef nonnull align 8 dereferenceable(48) %15)
          to label %121 unwind label %129

121:                                              ; preds = %120
  invoke void @_ZN4CGALngINS_4GmpzEEENS_8QuotientIT_EERKS4_(ptr dead_on_unwind writable sret(%"class.CGAL::Quotient") align 8 %18, ptr noundef nonnull align 8 dereferenceable(16) %19)
          to label %122 unwind label %133

122:                                              ; preds = %121
  %123 = invoke noundef double @_Z15floor_to_doubleRKN4CGAL8QuotientINS_4GmpzEEE(ptr noundef nonnull align 8 dereferenceable(16) %18)
          to label %124 unwind label %137

124:                                              ; preds = %122
  %125 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, double noundef %123)
          to label %126 unwind label %137

126:                                              ; preds = %124
  %127 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %125, i8 noundef signext 10)
          to label %128 unwind label %137

128:                                              ; preds = %126
  call void @_ZN4CGAL8QuotientINS_4GmpzEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %18) #6
  call void @_ZN4CGAL8QuotientINS_4GmpzEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %19) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #6
  br label %143

129:                                              ; preds = %120
  %130 = landingpad { ptr, i32 }
          cleanup
  %131 = extractvalue { ptr, i32 } %130, 0
  store ptr %131, ptr %9, align 8
  %132 = extractvalue { ptr, i32 } %130, 1
  store i32 %132, ptr %10, align 4
  br label %142

133:                                              ; preds = %121
  %134 = landingpad { ptr, i32 }
          cleanup
  %135 = extractvalue { ptr, i32 } %134, 0
  store ptr %135, ptr %9, align 8
  %136 = extractvalue { ptr, i32 } %134, 1
  store i32 %136, ptr %10, align 4
  br label %141

137:                                              ; preds = %126, %124, %122
  %138 = landingpad { ptr, i32 }
          cleanup
  %139 = extractvalue { ptr, i32 } %138, 0
  store ptr %139, ptr %9, align 8
  %140 = extractvalue { ptr, i32 } %138, 1
  store i32 %140, ptr %10, align 4
  call void @_ZN4CGAL8QuotientINS_4GmpzEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %18) #6
  br label %141

141:                                              ; preds = %137, %133
  call void @_ZN4CGAL8QuotientINS_4GmpzEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %19) #6
  br label %142

142:                                              ; preds = %141, %129
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #6
  br label %147

143:                                              ; preds = %128, %119
  br label %144

144:                                              ; preds = %143, %92
  %145 = 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 %146 unwind label %110

146:                                              ; preds = %144
  call void @_ZN4CGAL26Quadratic_program_solutionINS_4GmpzEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %15) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %15) #6
  call void @_ZN4CGAL17Quadratic_programIiED2Ev(ptr noundef nonnull align 8 dereferenceable(456) %3) #6
  call void @llvm.lifetime.end.p0(i64 456, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  br label %21, !llvm.loop !14

147:                                              ; preds = %142, %110
  call void @_ZN4CGAL26Quadratic_program_solutionINS_4GmpzEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %15) #6
  br label %148

148:                                              ; preds = %147, %109
  call void @llvm.lifetime.end.p0(i64 48, ptr %15) #6
  br label %149

149:                                              ; preds = %148, %97, %93, %79
  call void @_ZN4CGAL17Quadratic_programIiED2Ev(ptr noundef nonnull align 8 dereferenceable(456) %3) #6
  call void @llvm.lifetime.end.p0(i64 456, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #6
  br label %151

150:                                              ; preds = %21
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #6
  ret void

151:                                              ; preds = %149
  %152 = load ptr, ptr %9, align 8
  %153 = load i32, ptr %10, align 4
  %154 = insertvalue { ptr, i32 } poison, ptr %152, 0
  %155 = insertvalue { ptr, i32 } %154, i32 %153, 1
  resume { ptr, i32 } %155
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4CGAL17Quadratic_programIiEC2ENS_4SignEbibi(ptr noundef nonnull align 8 dereferenceable(456), i32 noundef, i1 noundef zeroext, i32 noundef, i1 noundef zeroext, i32 noundef) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4CGAL17Quadratic_programIiE5set_aEiiRKi(ptr noundef nonnull align 8 dereferenceable(456), i32 noundef, i32 noundef, ptr noundef nonnull align 4 dereferenceable(4)) #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt4sqrtIlEN9__gnu_cxx11__enable_ifIXsr12__is_integerIT_EE7__valueEdE6__typeES2_(i64 noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4CGAL17Quadratic_programIiE5set_bEiRKi(ptr noundef nonnull align 8 dereferenceable(456), i32 noundef, ptr noundef nonnull align 4 dereferenceable(4)) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4CGAL17Quadratic_programIiE5set_lEibRKi(ptr noundef nonnull align 8 dereferenceable(456), i32 noundef, i1 noundef zeroext, ptr noundef nonnull align 4 dereferenceable(4)) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4CGAL17Quadratic_programIiE5set_cEiRKi(ptr noundef nonnull align 8 dereferenceable(456), i32 noundef, ptr noundef nonnull align 4 dereferenceable(4)) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4CGAL20solve_linear_programINS_17Quadratic_programIiEENS_4GmpzEEENS_26Quadratic_program_solutionIT0_EERKT_RKS5_RKNS_25Quadratic_program_optionsE(ptr dead_on_unwind noalias writable sret(%"class.CGAL::Quadratic_program_solution") align 8, ptr noundef nonnull align 8 dereferenceable(456), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(9)) #0

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK4CGAL26Quadratic_program_solutionINS_4GmpzEE13is_infeasibleEv(ptr noundef nonnull align 8 dereferenceable(48)) #0 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 dso_local noundef zeroext i1 @_ZNK4CGAL26Quadratic_program_solutionINS_4GmpzEE12is_unboundedEv(ptr noundef nonnull align 8 dereferenceable(48)) #0 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) #5

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN4CGALngINS_4GmpzEEENS_8QuotientIT_EERKS4_(ptr dead_on_unwind noalias writable sret(%"class.CGAL::Quotient") align 8, ptr noundef nonnull align 8 dereferenceable(16)) #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK4CGAL26Quadratic_program_solutionINS_4GmpzEE15objective_valueEv(ptr dead_on_unwind noalias writable sret(%"class.CGAL::Quotient") align 8, ptr noundef nonnull align 8 dereferenceable(48)) #0 align 2

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

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

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

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress 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 nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 = !{!"long", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}


; 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" }
%"class.CGAL::Quadratic_program" = type { i32, i32, %"class.std::vector", %"class.std::map", %"class.std::map.80", %"class.std::map.85", %"class.std::map", %"class.std::map.85", %"class.std::map", %"class.std::map", %"class.std::vector", i32, i32, i8, i32, i8, i32, i8, %"class.std::__cxx11::basic_string" }
%"class.std::map.80" = type { %"class.std::_Rb_tree.81" }
%"class.std::_Rb_tree.81" = type { %"struct.std::_Rb_tree<unsigned long, std::pair<const unsigned long, CGAL::Sign>, std::_Select1st<std::pair<const unsigned long, CGAL::Sign>>, std::less<unsigned long>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<unsigned long, std::pair<const unsigned long, CGAL::Sign>, std::_Select1st<std::pair<const unsigned long, CGAL::Sign>>, std::less<unsigned long>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::map.85" = type { %"class.std::_Rb_tree.86" }
%"class.std::_Rb_tree.86" = type { %"struct.std::_Rb_tree<unsigned long, std::pair<const unsigned long, bool>, std::_Select1st<std::pair<const unsigned long, bool>>, std::less<unsigned long>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<unsigned long, std::pair<const unsigned long, bool>, std::_Select1st<std::pair<const unsigned long, bool>>, std::less<unsigned long>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<unsigned long, std::pair<const unsigned long, int>, std::_Select1st<std::pair<const unsigned long, int>>, std::less<unsigned long>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<unsigned long, std::pair<const unsigned long, int>, std::_Select1st<std::pair<const unsigned long, int>>, std::less<unsigned long>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::map<unsigned long, int>, std::allocator<std::map<unsigned long, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::map<unsigned long, int>, std::allocator<std::map<unsigned long, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::map<unsigned long, int>, std::allocator<std::map<unsigned long, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::map<unsigned long, int>, std::allocator<std::map<unsigned long, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.CGAL::Quadratic_program_solution" = type { %"class.CGAL::Handle_for.93", %"class.CGAL::Gmpz", %"class.std::__cxx11::basic_string" }
%"class.CGAL::Handle_for.93" = type { ptr }
%"class.CGAL::Gmpz" = type { %"class.CGAL::Handle_for" }
%"class.CGAL::Handle_for" = type { ptr }
%"class.CGAL::Quadratic_program_options" = type <{ i32, i32, i8, [3 x i8] }>
%"class.CGAL::Quotient" = type { %"class.CGAL::Gmpz", %"class.CGAL::Gmpz" }

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_Z15floor_to_doubleRKN4CGAL8QuotientINS_4GmpzEEE(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #0

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5solvev() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca %"class.CGAL::Quadratic_program", align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca %"class.CGAL::Quadratic_program_solution", align 8
  %10 = alloca %"class.CGAL::Gmpz", align 8
  %11 = alloca %"class.CGAL::Quadratic_program_options", align 4
  %12 = alloca %"class.CGAL::Quotient", align 8
  %13 = alloca %"class.CGAL::Quotient", align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #6
  %14 = 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)
  %15 = load i32, ptr %1, align 4, !tbaa !5
  %16 = icmp sgt i32 %15, 0
  br i1 %16, label %.lr.ph40, label %._crit_edge41

.lr.ph40:                                         ; preds = %0, %90
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #6
  %17 = 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)
  call void @llvm.lifetime.start.p0(i64 456, ptr nonnull %3) #6
  call void @_ZN4CGAL17Quadratic_programIiEC2ENS_4SignEbibi(ptr noundef nonnull align 8 dereferenceable(456) %3, i32 noundef -1, i1 noundef zeroext false, i32 noundef 0, i1 noundef zeroext false, i32 noundef 0)
  %18 = load i32, ptr %1, align 4, !tbaa !5
  %19 = icmp sgt i32 %18, 0
  br i1 %19, label %.preheader, label %._crit_edge38

.preheader:                                       ; preds = %.lr.ph40, %40
  %.02037 = phi i32 [ %41, %40 ], [ 0, %.lr.ph40 ]
  %20 = load i32, ptr %2, align 4, !tbaa !5
  %21 = icmp sgt i32 %20, 0
  br i1 %21, label %.lr.ph, label %._crit_edge

._crit_edge38:                                    ; preds = %40, %.lr.ph40
  %22 = load i32, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #6
  store i32 0, ptr %7, align 4, !tbaa !5
  invoke void @_ZN4CGAL17Quadratic_programIiE5set_lEibRKi(ptr noundef nonnull align 8 dereferenceable(456) %3, i32 noundef %22, i1 noundef zeroext true, ptr noundef nonnull align 4 dereferenceable(4) %7)
          to label %48 unwind label %55

._crit_edge:                                      ; preds = %27, %.preheader
  %.019.lcssa = phi i64 [ 0, %.preheader ], [ %31, %27 ]
  %.lcssa = phi i32 [ %20, %.preheader ], [ %33, %27 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #6
  %23 = call noundef double @_ZSt4sqrtIlEN9__gnu_cxx11__enable_ifIXsr12__is_integerIT_EE7__valueEdE6__typeES2_(i64 noundef %.019.lcssa)
  %24 = fptosi double %23 to i32
  store i32 %24, ptr %5, align 4, !tbaa !5
  invoke void @_ZN4CGAL17Quadratic_programIiE5set_aEiiRKi(ptr noundef nonnull align 8 dereferenceable(456) %3, i32 noundef %.lcssa, i32 noundef %.02037, ptr noundef nonnull align 4 dereferenceable(4) %5)
          to label %37 unwind label %44

.lr.ph:                                           ; preds = %.preheader, %27
  %.01835 = phi i32 [ %32, %27 ], [ 0, %.preheader ]
  %.01934 = phi i64 [ %31, %27 ], [ 0, %.preheader ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #6
  %25 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %4)
          to label %26 unwind label %35

26:                                               ; preds = %.lr.ph
  invoke void @_ZN4CGAL17Quadratic_programIiE5set_aEiiRKi(ptr noundef nonnull align 8 dereferenceable(456) %3, i32 noundef %.01835, i32 noundef %.02037, ptr noundef nonnull align 4 dereferenceable(4) %4)
          to label %27 unwind label %35

27:                                               ; preds = %26
  %28 = load i32, ptr %4, align 4, !tbaa !5
  %29 = mul nsw i32 %28, %28
  %30 = zext nneg i32 %29 to i64
  %31 = add nuw nsw i64 %.01934, %30
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #6
  %32 = add nuw nsw i32 %.01835, 1
  %33 = load i32, ptr %2, align 4, !tbaa !5
  %34 = icmp slt i32 %32, %33
  br i1 %34, label %.lr.ph, label %._crit_edge, !llvm.loop !9

35:                                               ; preds = %26, %.lr.ph
  %36 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #6
  br label %95

37:                                               ; preds = %._crit_edge
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #6
  %38 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %6)
          to label %39 unwind label %46

39:                                               ; preds = %37
  invoke void @_ZN4CGAL17Quadratic_programIiE5set_bEiRKi(ptr noundef nonnull align 8 dereferenceable(456) %3, i32 noundef %.02037, ptr noundef nonnull align 4 dereferenceable(4) %6)
          to label %40 unwind label %46

40:                                               ; preds = %39
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #6
  %41 = add nuw nsw i32 %.02037, 1
  %42 = load i32, ptr %1, align 4, !tbaa !5
  %43 = icmp slt i32 %41, %42
  br i1 %43, label %.preheader, label %._crit_edge38, !llvm.loop !11

44:                                               ; preds = %._crit_edge
  %45 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #6
  br label %95

46:                                               ; preds = %39, %37
  %47 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #6
  br label %95

48:                                               ; preds = %._crit_edge38
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #6
  %49 = load i32, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #6
  store i32 -1, ptr %8, align 4, !tbaa !5
  invoke void @_ZN4CGAL17Quadratic_programIiE5set_cEiRKi(ptr noundef nonnull align 8 dereferenceable(456) %3, i32 noundef %49, ptr noundef nonnull align 4 dereferenceable(4) %8)
          to label %50 unwind label %57

50:                                               ; preds = %48
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %9) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #6
  invoke void @_ZN4CGAL4GmpzC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10)
          to label %51 unwind label %59

51:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %11) #6
  call void @_ZN4CGAL25Quadratic_program_optionsC2Ev(ptr noundef nonnull align 4 dereferenceable(9) %11)
  invoke void @_ZN4CGAL20solve_linear_programINS_17Quadratic_programIiEENS_4GmpzEEENS_26Quadratic_program_solutionIT0_EERKT_RKS5_RKNS_25Quadratic_program_optionsE(ptr dead_on_unwind nonnull writable sret(%"class.CGAL::Quadratic_program_solution") align 8 %9, ptr noundef nonnull align 8 dereferenceable(456) %3, ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 4 dereferenceable(9) %11)
          to label %52 unwind label %61

52:                                               ; preds = %51
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %11) #6
  call void @_ZN4CGAL10Handle_forINS_8Gmpz_repESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  %53 = invoke noundef zeroext i1 @_ZNK4CGAL26Quadratic_program_solutionINS_4GmpzEE13is_infeasibleEv(ptr noundef nonnull align 8 dereferenceable(48) %9)
          to label %54 unwind label %64

54:                                               ; preds = %52
  br i1 %53, label %.invoke, label %66

55:                                               ; preds = %._crit_edge38
  %56 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #6
  br label %95

57:                                               ; preds = %48
  %58 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #6
  br label %95

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

61:                                               ; preds = %51
  %62 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %11) #6
  call void @_ZN4CGAL10Handle_forINS_8Gmpz_repESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  br label %63

63:                                               ; preds = %61, %59
  %.pn = phi { ptr, i32 } [ %62, %61 ], [ %60, %59 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  br label %94

64:                                               ; preds = %.invoke, %88, %66, %52
  %65 = landingpad { ptr, i32 }
          cleanup
  br label %93

66:                                               ; preds = %54
  %67 = invoke noundef zeroext i1 @_ZNK4CGAL26Quadratic_program_solutionINS_4GmpzEE12is_unboundedEv(ptr noundef nonnull align 8 dereferenceable(48) %9)
          to label %68 unwind label %64

68:                                               ; preds = %66
  br i1 %67, label %.invoke, label %71

.invoke:                                          ; preds = %54, %68
  %69 = phi ptr [ @.str.6, %68 ], [ @.str, %54 ]
  %70 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull %69)
          to label %88 unwind label %64

71:                                               ; preds = %68
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #6
  invoke void @_ZNK4CGAL26Quadratic_program_solutionINS_4GmpzEE15objective_valueEv(ptr dead_on_unwind nonnull writable sret(%"class.CGAL::Quotient") align 8 %13, ptr noundef nonnull align 8 dereferenceable(48) %9)
          to label %72 unwind label %80

72:                                               ; preds = %71
  invoke void @_ZN4CGALngINS_4GmpzEEENS_8QuotientIT_EERKS4_(ptr dead_on_unwind nonnull writable sret(%"class.CGAL::Quotient") align 8 %12, ptr noundef nonnull align 8 dereferenceable(16) %13)
          to label %73 unwind label %82

73:                                               ; preds = %72
  %74 = invoke noundef double @_Z15floor_to_doubleRKN4CGAL8QuotientINS_4GmpzEEE(ptr noundef nonnull align 8 dereferenceable(16) %12)
          to label %75 unwind label %84

75:                                               ; preds = %73
  %76 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, double noundef %74)
          to label %77 unwind label %84

77:                                               ; preds = %75
  %78 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %76, i8 noundef signext 10)
          to label %79 unwind label %84

79:                                               ; preds = %77
  call void @_ZN4CGAL8QuotientINS_4GmpzEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #6
  call void @_ZN4CGAL8QuotientINS_4GmpzEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #6
  br label %88

80:                                               ; preds = %71
  %81 = landingpad { ptr, i32 }
          cleanup
  br label %87

82:                                               ; preds = %72
  %83 = landingpad { ptr, i32 }
          cleanup
  br label %86

84:                                               ; preds = %77, %75, %73
  %85 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4CGAL8QuotientINS_4GmpzEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #6
  br label %86

86:                                               ; preds = %84, %82
  %.pn23 = phi { ptr, i32 } [ %85, %84 ], [ %83, %82 ]
  call void @_ZN4CGAL8QuotientINS_4GmpzEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #6
  br label %87

87:                                               ; preds = %86, %80
  %.pn23.pn = phi { ptr, i32 } [ %.pn23, %86 ], [ %81, %80 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #6
  br label %93

88:                                               ; preds = %.invoke, %79
  %89 = 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 %90 unwind label %64

90:                                               ; preds = %88
  call void @_ZN4CGAL26Quadratic_program_solutionINS_4GmpzEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %9) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %9) #6
  call void @_ZN4CGAL17Quadratic_programIiED2Ev(ptr noundef nonnull align 8 dereferenceable(456) %3) #6
  call void @llvm.lifetime.end.p0(i64 456, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #6
  %91 = load i32, ptr %1, align 4, !tbaa !5
  %92 = icmp sgt i32 %91, 0
  br i1 %92, label %.lr.ph40, label %._crit_edge41, !llvm.loop !12

93:                                               ; preds = %87, %64
  %.pn26 = phi { ptr, i32 } [ %65, %64 ], [ %.pn23.pn, %87 ]
  call void @_ZN4CGAL26Quadratic_program_solutionINS_4GmpzEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %9) #6
  br label %94

94:                                               ; preds = %93, %63
  %.pn26.pn = phi { ptr, i32 } [ %.pn26, %93 ], [ %.pn, %63 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %9) #6
  br label %95

95:                                               ; preds = %35, %44, %46, %94, %57, %55
  %.pn29.pn = phi { ptr, i32 } [ %.pn26.pn, %94 ], [ %58, %57 ], [ %56, %55 ], [ %36, %35 ], [ %47, %46 ], [ %45, %44 ]
  call void @_ZN4CGAL17Quadratic_programIiED2Ev(ptr noundef nonnull align 8 dereferenceable(456) %3) #6
  call void @llvm.lifetime.end.p0(i64 456, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #6
  resume { ptr, i32 } %.pn29.pn

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4CGAL17Quadratic_programIiEC2ENS_4SignEbibi(ptr noundef nonnull align 8 dereferenceable(456), i32 noundef, i1 noundef zeroext, i32 noundef, i1 noundef zeroext, i32 noundef) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4CGAL17Quadratic_programIiE5set_aEiiRKi(ptr noundef nonnull align 8 dereferenceable(456), i32 noundef, i32 noundef, ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt4sqrtIlEN9__gnu_cxx11__enable_ifIXsr12__is_integerIT_EE7__valueEdE6__typeES2_(i64 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4CGAL17Quadratic_programIiE5set_bEiRKi(ptr noundef nonnull align 8 dereferenceable(456), i32 noundef, ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4CGAL17Quadratic_programIiE5set_lEibRKi(ptr noundef nonnull align 8 dereferenceable(456), i32 noundef, i1 noundef zeroext, ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4CGAL17Quadratic_programIiE5set_cEiRKi(ptr noundef nonnull align 8 dereferenceable(456), i32 noundef, ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4CGAL20solve_linear_programINS_17Quadratic_programIiEENS_4GmpzEEENS_26Quadratic_program_solutionIT0_EERKT_RKS5_RKNS_25Quadratic_program_optionsE(ptr dead_on_unwind noalias writable sret(%"class.CGAL::Quadratic_program_solution") align 8, ptr noundef nonnull align 8 dereferenceable(456), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(9)) local_unnamed_addr #0

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK4CGAL26Quadratic_program_solutionINS_4GmpzEE13is_infeasibleEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #0 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 dso_local noundef zeroext i1 @_ZNK4CGAL26Quadratic_program_solutionINS_4GmpzEE12is_unboundedEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #0 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 #5

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN4CGALngINS_4GmpzEEENS_8QuotientIT_EERKS4_(ptr dead_on_unwind noalias writable sret(%"class.CGAL::Quotient") align 8, ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK4CGAL26Quadratic_program_solutionINS_4GmpzEE15objective_valueEv(ptr dead_on_unwind noalias writable sret(%"class.CGAL::Quotient") align 8, ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #0 align 2

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

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

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

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress 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 nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}


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