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

; 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 [10 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [14 x i8], align 1

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z12floor_to_intRKN4CGAL8QuotientINS_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 @_Z5solveii(i32 noundef %0, i32 noundef %1) #0 personality ptr @__gxx_personality_v0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca %"class.CGAL::Quadratic_program", align 8
  %6 = alloca i32, align 4
  %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 i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca %"class.CGAL::Quadratic_program_solution", align 8
  %19 = alloca %"class.CGAL::Gmpz", align 8
  %20 = alloca %"class.CGAL::Quadratic_program_options", align 4
  %21 = alloca %"class.CGAL::Quotient", align 8
  store i32 %0, ptr %3, align 4, !tbaa !5
  store i32 %1, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 456, ptr %5) #6
  call void @_ZN4CGAL17Quadratic_programIiEC2ENS_4SignEbibi(ptr noundef nonnull align 8 dereferenceable(456) %5, i32 noundef -1, i1 noundef zeroext true, i32 noundef 0, i1 noundef zeroext false, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %22

22:                                               ; preds = %40, %2
  %23 = load i32, ptr %6, align 4, !tbaa !5
  %24 = load i32, ptr %3, align 4, !tbaa !5
  %25 = icmp slt i32 %23, %24
  br i1 %25, label %27, label %26

26:                                               ; preds = %22
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  br label %52

27:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  %28 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %7)
          to label %29 unwind label %43

29:                                               ; preds = %27
  %30 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %28, ptr noundef nonnull align 4 dereferenceable(4) %8)
          to label %31 unwind label %43

31:                                               ; preds = %29
  %32 = load i32, ptr %6, align 4, !tbaa !5
  invoke void @_ZN4CGAL17Quadratic_programIiE5set_bEiRKi(ptr noundef nonnull align 8 dereferenceable(456) %5, i32 noundef %32, ptr noundef nonnull align 4 dereferenceable(4) %8)
          to label %33 unwind label %43

33:                                               ; preds = %31
  %34 = load i32, ptr %6, align 4, !tbaa !5
  %35 = load i32, ptr %3, align 4, !tbaa !5
  %36 = add nsw i32 %34, %35
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  %37 = load i32, ptr %7, align 4, !tbaa !5
  %38 = sub nsw i32 0, %37
  store i32 %38, ptr %11, align 4, !tbaa !5
  invoke void @_ZN4CGAL17Quadratic_programIiE5set_bEiRKi(ptr noundef nonnull align 8 dereferenceable(456) %5, i32 noundef %36, ptr noundef nonnull align 4 dereferenceable(4) %11)
          to label %39 unwind label %47

39:                                               ; preds = %33
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  br label %40

40:                                               ; preds = %39
  %41 = load i32, ptr %6, align 4, !tbaa !5
  %42 = add nsw i32 %41, 1
  store i32 %42, ptr %6, align 4, !tbaa !5
  br label %22, !llvm.loop !9

43:                                               ; preds = %31, %29, %27
  %44 = landingpad { ptr, i32 }
          cleanup
  %45 = extractvalue { ptr, i32 } %44, 0
  store ptr %45, ptr %9, align 8
  %46 = extractvalue { ptr, i32 } %44, 1
  store i32 %46, ptr %10, align 4
  br label %51

47:                                               ; preds = %33
  %48 = landingpad { ptr, i32 }
          cleanup
  %49 = extractvalue { ptr, i32 } %48, 0
  store ptr %49, ptr %9, align 8
  %50 = extractvalue { ptr, i32 } %48, 1
  store i32 %50, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  br label %51

51:                                               ; preds = %47, %43
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  br label %155

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

53:                                               ; preds = %98, %52
  %54 = load i32, ptr %12, align 4, !tbaa !5
  %55 = load i32, ptr %4, align 4, !tbaa !5
  %56 = icmp slt i32 %54, %55
  br i1 %56, label %58, label %57

57:                                               ; preds = %53
  store i32 5, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %102

58:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  %59 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %14)
          to label %60 unwind label %66

60:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  store i32 0, ptr %15, align 4, !tbaa !5
  br label %61

61:                                               ; preds = %83, %60
  %62 = load i32, ptr %15, align 4, !tbaa !5
  %63 = load i32, ptr %3, align 4, !tbaa !5
  %64 = icmp slt i32 %62, %63
  br i1 %64, label %70, label %65

65:                                               ; preds = %61
  store i32 8, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  br label %95

66:                                               ; preds = %95, %58
  %67 = landingpad { ptr, i32 }
          cleanup
  %68 = extractvalue { ptr, i32 } %67, 0
  store ptr %68, ptr %9, align 8
  %69 = extractvalue { ptr, i32 } %67, 1
  store i32 %69, ptr %10, align 4
  br label %101

70:                                               ; preds = %61
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  %71 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %16)
          to label %72 unwind label %86

72:                                               ; preds = %70
  %73 = load i32, ptr %12, align 4, !tbaa !5
  %74 = load i32, ptr %15, align 4, !tbaa !5
  invoke void @_ZN4CGAL17Quadratic_programIiE5set_aEiiRKi(ptr noundef nonnull align 8 dereferenceable(456) %5, i32 noundef %73, i32 noundef %74, ptr noundef nonnull align 4 dereferenceable(4) %16)
          to label %75 unwind label %86

75:                                               ; preds = %72
  %76 = load i32, ptr %12, align 4, !tbaa !5
  %77 = load i32, ptr %15, align 4, !tbaa !5
  %78 = load i32, ptr %3, align 4, !tbaa !5
  %79 = add nsw i32 %77, %78
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  %80 = load i32, ptr %16, align 4, !tbaa !5
  %81 = sub nsw i32 0, %80
  store i32 %81, ptr %17, align 4, !tbaa !5
  invoke void @_ZN4CGAL17Quadratic_programIiE5set_aEiiRKi(ptr noundef nonnull align 8 dereferenceable(456) %5, i32 noundef %76, i32 noundef %79, ptr noundef nonnull align 4 dereferenceable(4) %17)
          to label %82 unwind label %90

82:                                               ; preds = %75
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  br label %83

83:                                               ; preds = %82
  %84 = load i32, ptr %15, align 4, !tbaa !5
  %85 = add nsw i32 %84, 1
  store i32 %85, ptr %15, align 4, !tbaa !5
  br label %61, !llvm.loop !11

86:                                               ; preds = %72, %70
  %87 = landingpad { ptr, i32 }
          cleanup
  %88 = extractvalue { ptr, i32 } %87, 0
  store ptr %88, ptr %9, align 8
  %89 = extractvalue { ptr, i32 } %87, 1
  store i32 %89, ptr %10, align 4
  br label %94

90:                                               ; preds = %75
  %91 = landingpad { ptr, i32 }
          cleanup
  %92 = extractvalue { ptr, i32 } %91, 0
  store ptr %92, ptr %9, align 8
  %93 = extractvalue { ptr, i32 } %91, 1
  store i32 %93, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  br label %94

94:                                               ; preds = %90, %86
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  br label %101

95:                                               ; preds = %65
  %96 = load i32, ptr %12, align 4, !tbaa !5
  invoke void @_ZN4CGAL17Quadratic_programIiE5set_cEiRKi(ptr noundef nonnull align 8 dereferenceable(456) %5, i32 noundef %96, ptr noundef nonnull align 4 dereferenceable(4) %14)
          to label %97 unwind label %66

97:                                               ; preds = %95
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  br label %98

98:                                               ; preds = %97
  %99 = load i32, ptr %12, align 4, !tbaa !5
  %100 = add nsw i32 %99, 1
  store i32 %100, ptr %12, align 4, !tbaa !5
  br label %53, !llvm.loop !12

101:                                              ; preds = %94, %66
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %155

102:                                              ; preds = %57
  call void @llvm.lifetime.start.p0(i64 48, ptr %18) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  invoke void @_ZN4CGAL4GmpzC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %19)
          to label %103 unwind label %113

103:                                              ; preds = %102
  call void @llvm.lifetime.start.p0(i64 12, ptr %20) #6
  invoke void @_ZN4CGAL25Quadratic_program_optionsC2Ev(ptr noundef nonnull align 4 dereferenceable(9) %20)
          to label %104 unwind label %117

104:                                              ; preds = %103
  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 %18, ptr noundef nonnull align 8 dereferenceable(456) %5, ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 4 dereferenceable(9) %20)
          to label %105 unwind label %117

105:                                              ; preds = %104
  call void @llvm.lifetime.end.p0(i64 12, ptr %20) #6
  call void @_ZN4CGAL10Handle_forINS_8Gmpz_repESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  %106 = invoke noundef zeroext i1 @_ZNK4CGAL26Quadratic_program_solutionINS_4GmpzEE12is_unboundedEv(ptr noundef nonnull align 8 dereferenceable(48) %18)
          to label %107 unwind label %122

107:                                              ; preds = %105
  br i1 %106, label %108, label %126

108:                                              ; preds = %107
  %109 = 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 %110 unwind label %122

110:                                              ; preds = %108
  %111 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %109, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %112 unwind label %122

112:                                              ; preds = %110
  br label %152

113:                                              ; preds = %102
  %114 = landingpad { ptr, i32 }
          cleanup
  %115 = extractvalue { ptr, i32 } %114, 0
  store ptr %115, ptr %9, align 8
  %116 = extractvalue { ptr, i32 } %114, 1
  store i32 %116, ptr %10, align 4
  br label %121

117:                                              ; preds = %104, %103
  %118 = landingpad { ptr, i32 }
          cleanup
  %119 = extractvalue { ptr, i32 } %118, 0
  store ptr %119, ptr %9, align 8
  %120 = extractvalue { ptr, i32 } %118, 1
  store i32 %120, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %20) #6
  call void @_ZN4CGAL10Handle_forINS_8Gmpz_repESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %19) #6
  br label %121

121:                                              ; preds = %117, %113
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  br label %154

122:                                              ; preds = %131, %129, %126, %110, %108, %105
  %123 = landingpad { ptr, i32 }
          cleanup
  %124 = extractvalue { ptr, i32 } %123, 0
  store ptr %124, ptr %9, align 8
  %125 = extractvalue { ptr, i32 } %123, 1
  store i32 %125, ptr %10, align 4
  br label %153

126:                                              ; preds = %107
  %127 = invoke noundef zeroext i1 @_ZNK4CGAL26Quadratic_program_solutionINS_4GmpzEE13is_infeasibleEv(ptr noundef nonnull align 8 dereferenceable(48) %18)
          to label %128 unwind label %122

128:                                              ; preds = %126
  br i1 %127, label %129, label %134

129:                                              ; preds = %128
  %130 = 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 %131 unwind label %122

131:                                              ; preds = %129
  %132 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %130, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %133 unwind label %122

133:                                              ; preds = %131
  br label %151

134:                                              ; preds = %128
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #6
  invoke void @_ZNK4CGAL26Quadratic_program_solutionINS_4GmpzEE15objective_valueEv(ptr dead_on_unwind writable sret(%"class.CGAL::Quotient") align 8 %21, ptr noundef nonnull align 8 dereferenceable(48) %18)
          to label %135 unwind label %142

135:                                              ; preds = %134
  %136 = invoke noundef i32 @_Z12floor_to_intRKN4CGAL8QuotientINS_4GmpzEEE(ptr noundef nonnull align 8 dereferenceable(16) %21)
          to label %137 unwind label %146

137:                                              ; preds = %135
  %138 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %136)
          to label %139 unwind label %146

139:                                              ; preds = %137
  %140 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %138, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %141 unwind label %146

141:                                              ; preds = %139
  call void @_ZN4CGAL8QuotientINS_4GmpzEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %21) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #6
  br label %151

142:                                              ; preds = %134
  %143 = landingpad { ptr, i32 }
          cleanup
  %144 = extractvalue { ptr, i32 } %143, 0
  store ptr %144, ptr %9, align 8
  %145 = extractvalue { ptr, i32 } %143, 1
  store i32 %145, ptr %10, align 4
  br label %150

146:                                              ; preds = %139, %137, %135
  %147 = landingpad { ptr, i32 }
          cleanup
  %148 = extractvalue { ptr, i32 } %147, 0
  store ptr %148, ptr %9, align 8
  %149 = extractvalue { ptr, i32 } %147, 1
  store i32 %149, ptr %10, align 4
  call void @_ZN4CGAL8QuotientINS_4GmpzEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %21) #6
  br label %150

150:                                              ; preds = %146, %142
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #6
  br label %153

151:                                              ; preds = %141, %133
  br label %152

152:                                              ; preds = %151, %112
  call void @_ZN4CGAL26Quadratic_program_solutionINS_4GmpzEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %18) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %18) #6
  call void @_ZN4CGAL17Quadratic_programIiED2Ev(ptr noundef nonnull align 8 dereferenceable(456) %5) #6
  call void @llvm.lifetime.end.p0(i64 456, ptr %5) #6
  ret void

153:                                              ; preds = %150, %122
  call void @_ZN4CGAL26Quadratic_program_solutionINS_4GmpzEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %18) #6
  br label %154

154:                                              ; preds = %153, %121
  call void @llvm.lifetime.end.p0(i64 48, ptr %18) #6
  br label %155

155:                                              ; preds = %154, %101, %51
  call void @_ZN4CGAL17Quadratic_programIiED2Ev(ptr noundef nonnull align 8 dereferenceable(456) %5) #6
  call void @llvm.lifetime.end.p0(i64 456, ptr %5) #6
  br label %156

156:                                              ; preds = %155
  %157 = load ptr, ptr %9, align 8
  %158 = load i32, ptr %10, align 4
  %159 = insertvalue { ptr, i32 } poison, ptr %157, 0
  %160 = insertvalue { ptr, i32 } %159, i32 %158, 1
  resume { ptr, i32 } %160
}

; 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

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_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_aEiiRKi(ptr noundef nonnull align 8 dereferenceable(456), i32 noundef, i32 noundef, 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 #3 align 2

; 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_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #4

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

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

; 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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #2

; 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 #5 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4CGAL17Quadratic_programIiED2Ev(ptr noundef nonnull align 8 dereferenceable(456)) unnamed_addr #5 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 #3 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 = { 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 = { 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 #5 = { 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 #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}


; 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 [10 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [14 x i8], align 1

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z12floor_to_intRKN4CGAL8QuotientINS_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 @_Z5solveii(i32 noundef %0, i32 noundef %1) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %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 i32, align 4
  %10 = alloca %"class.CGAL::Quadratic_program_solution", align 8
  %11 = alloca %"class.CGAL::Gmpz", align 8
  %12 = alloca %"class.CGAL::Quadratic_program_options", align 4
  %13 = alloca %"class.CGAL::Quotient", align 8
  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 true, i32 noundef 0, i1 noundef zeroext false, i32 noundef 0)
  %14 = icmp sgt i32 %0, 0
  br i1 %14, label %.lr.ph, label %.preheader44.thread

.preheader44:                                     ; preds = %39
  %15 = icmp sgt i32 %1, 0
  br i1 %15, label %.lr.ph49, label %._crit_edge50

.preheader44.thread:                              ; preds = %2
  %16 = icmp sgt i32 %1, 0
  br i1 %16, label %.lr.ph49.split.preheader, label %._crit_edge50

.lr.ph49:                                         ; preds = %.preheader44
  br i1 %14, label %.lr.ph49.split.us, label %.lr.ph49.split.preheader

.lr.ph49.split.preheader:                         ; preds = %.preheader44.thread, %.lr.ph49
  br label %.lr.ph49.split

.lr.ph49.split.us:                                ; preds = %.lr.ph49, %18
  %.01948.us = phi i32 [ %19, %18 ], [ 0, %.lr.ph49 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #6
  %17 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %7)
          to label %.preheader.us unwind label %.split.us

18:                                               ; preds = %._crit_edge.us
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #6
  %19 = add nuw nsw i32 %.01948.us, 1
  %exitcond60.not = icmp eq i32 %19, %1
  br i1 %exitcond60.not, label %._crit_edge50, label %.lr.ph49.split.us, !llvm.loop !5

.preheader.us:                                    ; preds = %.lr.ph49.split.us, %26
  %.046.us = phi i32 [ %27, %26 ], [ 0, %.lr.ph49.split.us ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #6
  %20 = 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 %21 unwind label %.split52.us

21:                                               ; preds = %.preheader.us
  invoke void @_ZN4CGAL17Quadratic_programIiE5set_aEiiRKi(ptr noundef nonnull align 8 dereferenceable(456) %3, i32 noundef %.01948.us, i32 noundef %.046.us, ptr noundef nonnull align 4 dereferenceable(4) %8)
          to label %22 unwind label %.split52.us

22:                                               ; preds = %21
  %23 = add nuw nsw i32 %.046.us, %0
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #6
  %24 = load i32, ptr %8, align 4, !tbaa !7
  %25 = sub nsw i32 0, %24
  store i32 %25, ptr %9, align 4, !tbaa !7
  invoke void @_ZN4CGAL17Quadratic_programIiE5set_aEiiRKi(ptr noundef nonnull align 8 dereferenceable(456) %3, i32 noundef %.01948.us, i32 noundef %23, ptr noundef nonnull align 4 dereferenceable(4) %9)
          to label %26 unwind label %.split55.us

26:                                               ; preds = %22
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #6
  %27 = add nuw nsw i32 %.046.us, 1
  %exitcond59.not = icmp eq i32 %27, %0
  br i1 %exitcond59.not, label %._crit_edge.us, label %.preheader.us, !llvm.loop !11

._crit_edge.us:                                   ; preds = %26
  invoke void @_ZN4CGAL17Quadratic_programIiE5set_cEiRKi(ptr noundef nonnull align 8 dereferenceable(456) %3, i32 noundef %.01948.us, ptr noundef nonnull align 4 dereferenceable(4) %7)
          to label %18 unwind label %.split.us

.split.us:                                        ; preds = %._crit_edge.us, %.lr.ph49.split.us
  %28 = landingpad { ptr, i32 }
          cleanup
  br label %51

.split52.us:                                      ; preds = %21, %.preheader.us
  %29 = landingpad { ptr, i32 }
          cleanup
  br label %48

.split55.us:                                      ; preds = %22
  %30 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #6
  br label %48

.lr.ph:                                           ; preds = %2, %39
  %.02945 = phi i32 [ %40, %39 ], [ 0, %2 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #6
  %31 = 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 %32 unwind label %41

32:                                               ; preds = %.lr.ph
  %33 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %31, ptr noundef nonnull align 4 dereferenceable(4) %5)
          to label %34 unwind label %41

34:                                               ; preds = %32
  invoke void @_ZN4CGAL17Quadratic_programIiE5set_bEiRKi(ptr noundef nonnull align 8 dereferenceable(456) %3, i32 noundef %.02945, ptr noundef nonnull align 4 dereferenceable(4) %5)
          to label %35 unwind label %41

35:                                               ; preds = %34
  %36 = add nuw nsw i32 %.02945, %0
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #6
  %37 = load i32, ptr %4, align 4, !tbaa !7
  %38 = sub nsw i32 0, %37
  store i32 %38, ptr %6, align 4, !tbaa !7
  invoke void @_ZN4CGAL17Quadratic_programIiE5set_bEiRKi(ptr noundef nonnull align 8 dereferenceable(456) %3, i32 noundef %36, ptr noundef nonnull align 4 dereferenceable(4) %6)
          to label %39 unwind label %43

39:                                               ; preds = %35
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #6
  %40 = add nuw nsw i32 %.02945, 1
  %exitcond.not = icmp eq i32 %40, %0
  br i1 %exitcond.not, label %.preheader44, label %.lr.ph, !llvm.loop !12

41:                                               ; preds = %34, %32, %.lr.ph
  %42 = landingpad { ptr, i32 }
          cleanup
  br label %45

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

45:                                               ; preds = %43, %41
  %.pn41 = phi { ptr, i32 } [ %44, %43 ], [ %42, %41 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #6
  br label %85

._crit_edge50:                                    ; preds = %49, %18, %.preheader44.thread, %.preheader44
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %10) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #6
  invoke void @_ZN4CGAL4GmpzC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11)
          to label %52 unwind label %56

.lr.ph49.split:                                   ; preds = %.lr.ph49.split.preheader, %49
  %.01948 = phi i32 [ %50, %49 ], [ 0, %.lr.ph49.split.preheader ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #6
  %46 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %7)
          to label %.preheader unwind label %.split

.preheader:                                       ; preds = %.lr.ph49.split
  invoke void @_ZN4CGAL17Quadratic_programIiE5set_cEiRKi(ptr noundef nonnull align 8 dereferenceable(456) %3, i32 noundef %.01948, ptr noundef nonnull align 4 dereferenceable(4) %7)
          to label %49 unwind label %.split

.split:                                           ; preds = %.preheader, %.lr.ph49.split
  %47 = landingpad { ptr, i32 }
          cleanup
  br label %51

48:                                               ; preds = %.split55.us, %.split52.us
  %.pn38 = phi { ptr, i32 } [ %30, %.split55.us ], [ %29, %.split52.us ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #6
  br label %51

49:                                               ; preds = %.preheader
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #6
  %50 = add nuw nsw i32 %.01948, 1
  %exitcond58.not = icmp eq i32 %50, %1
  br i1 %exitcond58.not, label %._crit_edge50, label %.lr.ph49.split, !llvm.loop !5

51:                                               ; preds = %.split, %.split.us, %48
  %.pn38.pn = phi { ptr, i32 } [ %.pn38, %48 ], [ %47, %.split ], [ %28, %.split.us ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #6
  br label %85

52:                                               ; preds = %._crit_edge50
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %12) #6
  call void @_ZN4CGAL25Quadratic_program_optionsC2Ev(ptr noundef nonnull align 4 dereferenceable(9) %12)
  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 %10, ptr noundef nonnull align 8 dereferenceable(456) %3, ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 4 dereferenceable(9) %12)
          to label %53 unwind label %58

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

55:                                               ; preds = %53
  br i1 %54, label %.invoke62, label %63

56:                                               ; preds = %._crit_edge50
  %57 = landingpad { ptr, i32 }
          cleanup
  br label %60

58:                                               ; preds = %52
  %59 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %12) #6
  call void @_ZN4CGAL10Handle_forINS_8Gmpz_repESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #6
  br label %60

60:                                               ; preds = %58, %56
  %.pn = phi { ptr, i32 } [ %59, %58 ], [ %57, %56 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
  br label %84

61:                                               ; preds = %.invoke62, %.invoke, %63, %53
  %62 = landingpad { ptr, i32 }
          cleanup
  br label %83

63:                                               ; preds = %55
  %64 = invoke noundef zeroext i1 @_ZNK4CGAL26Quadratic_program_solutionINS_4GmpzEE13is_infeasibleEv(ptr noundef nonnull align 8 dereferenceable(48) %10)
          to label %65 unwind label %61

65:                                               ; preds = %63
  br i1 %64, label %.invoke62, label %69

.invoke62:                                        ; preds = %55, %65
  %66 = phi ptr [ @.str.6, %65 ], [ @.str, %55 ]
  %67 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull %66)
          to label %.invoke unwind label %61

.invoke:                                          ; preds = %.invoke62
  %68 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %67, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %82 unwind label %61

69:                                               ; preds = %65
  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) %10)
          to label %70 unwind label %77

70:                                               ; preds = %69
  %71 = invoke noundef i32 @_Z12floor_to_intRKN4CGAL8QuotientINS_4GmpzEEE(ptr noundef nonnull align 8 dereferenceable(16) %13)
          to label %72 unwind label %79

72:                                               ; preds = %70
  %73 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %71)
          to label %74 unwind label %79

74:                                               ; preds = %72
  %75 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %73, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %76 unwind label %79

76:                                               ; preds = %74
  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
  br label %82

77:                                               ; preds = %69
  %78 = landingpad { ptr, i32 }
          cleanup
  br label %81

79:                                               ; preds = %74, %72, %70
  %80 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4CGAL8QuotientINS_4GmpzEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #6
  br label %81

81:                                               ; preds = %79, %77
  %.pn33 = phi { ptr, i32 } [ %80, %79 ], [ %78, %77 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #6
  br label %83

82:                                               ; preds = %.invoke, %76
  call void @_ZN4CGAL26Quadratic_program_solutionINS_4GmpzEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %10) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %10) #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
  ret void

83:                                               ; preds = %81, %61
  %.pn35 = phi { ptr, i32 } [ %62, %61 ], [ %.pn33, %81 ]
  call void @_ZN4CGAL26Quadratic_program_solutionINS_4GmpzEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %10) #6
  br label %84

84:                                               ; preds = %83, %60
  %.pn35.pn = phi { ptr, i32 } [ %.pn35, %83 ], [ %.pn, %60 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %10) #6
  br label %85

85:                                               ; preds = %84, %51, %45
  %.pn41.pn = phi { ptr, i32 } [ %.pn41, %45 ], [ %.pn38.pn, %51 ], [ %.pn35.pn, %84 ]
  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
  resume { ptr, i32 } %.pn41.pn
}

; 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

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_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_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: 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 #3 align 2

; 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_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #4

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

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

; 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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #2

; 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 #5 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4CGAL17Quadratic_programIiED2Ev(ptr noundef nonnull align 8 dereferenceable(456)) unnamed_addr #5 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 #3 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 = { 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 = { 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 #5 = { 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 #6 = { nounwind }

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

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


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