; LLVM IR from tommasocerruti/algolab-2024 :: src/week06/motorcycles/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.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<moto, std::allocator<moto>>::_Vector_impl" }
%"struct.std::_Vector_base<moto, std::allocator<moto>>::_Vector_impl" = type { %"struct.std::_Vector_base<moto, std::allocator<moto>>::_Vector_impl_data" }
%"struct.std::_Vector_base<moto, std::allocator<moto>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.CGAL::Gmpq" = type { %"class.CGAL::Handle_for" }
%"class.CGAL::Handle_for" = type { ptr }
%struct.moto = type { i32, i64, %"class.CGAL::Gmpq" }
%"class.std::vector.65" = type { %"struct.std::_Bvector_base" }
%"struct.std::_Bvector_base" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" = type { %"struct.std::_Bit_iterator", %"struct.std::_Bit_iterator", ptr }
%"struct.std::_Bit_iterator" = type { %"struct.std::_Bit_iterator_base.base", [4 x i8] }
%"struct.std::_Bit_iterator_base.base" = type <{ ptr, i32 }>
%"class.std::allocator.69" = type { i8 }
%class.anon = type { i8 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"struct.std::_Bit_reference" = type { ptr, i64 }

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5solvev() #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca %"class.std::vector", align 8
  %3 = alloca i32, align 4
  %4 = alloca i64, align 8
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca %"class.CGAL::Gmpq", align 8
  %10 = alloca %struct.moto, align 8
  %11 = alloca %"class.std::vector.65", align 8
  %12 = alloca i8, align 1
  %13 = alloca %"class.std::allocator.69", align 1
  %14 = alloca %class.anon, align 1
  %15 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %16 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %17 = alloca %class.anon, align 1
  %18 = alloca %"class.CGAL::Gmpq", align 8
  %19 = alloca i32, align 4
  %20 = alloca %struct.moto, align 8
  %21 = alloca %"class.CGAL::Gmpq", align 8
  %22 = alloca %"class.CGAL::Gmpq", align 8
  %23 = alloca %"struct.std::_Bit_reference", align 8
  %24 = alloca i32, align 4
  %25 = alloca %struct.moto, align 8
  %26 = alloca %"class.CGAL::Gmpq", align 8
  %27 = alloca %"class.CGAL::Gmpq", align 8
  %28 = alloca %"class.CGAL::Gmpq", align 8
  %29 = alloca i1, align 1
  %30 = alloca i1, align 1
  %31 = alloca %"class.CGAL::Gmpq", align 8
  %32 = alloca i1, align 1
  %33 = alloca i1, align 1
  %34 = alloca %"struct.std::_Bit_reference", align 8
  %35 = alloca i32, align 4
  %36 = alloca %"struct.std::_Bit_reference", align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #6
  %37 = 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)
  call void @llvm.lifetime.start.p0(i64 24, ptr %2) #6
  call void @_ZNSt6vectorI4motoSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %38

38:                                               ; preds = %62, %0
  %39 = load i32, ptr %3, align 4, !tbaa !5
  %40 = load i32, ptr %1, align 4, !tbaa !5
  %41 = icmp slt i32 %39, %40
  br i1 %41, label %43, label %42

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

43:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  %44 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERl(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %45 unwind label %65

45:                                               ; preds = %43
  %46 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERl(ptr noundef nonnull align 8 dereferenceable(16) %44, ptr noundef nonnull align 8 dereferenceable(8) %5)
          to label %47 unwind label %65

47:                                               ; preds = %45
  %48 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERl(ptr noundef nonnull align 8 dereferenceable(16) %46, ptr noundef nonnull align 8 dereferenceable(8) %6)
          to label %49 unwind label %65

49:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %50 = load i64, ptr %6, align 8, !tbaa !9
  %51 = load i64, ptr %4, align 8, !tbaa !9
  %52 = sub nsw i64 %50, %51
  %53 = load i64, ptr %5, align 8, !tbaa !9
  invoke void @_ZN4CGAL4GmpqC2Elm(ptr noundef nonnull align 8 dereferenceable(8) %9, i64 noundef %52, i64 noundef %53)
          to label %54 unwind label %69

54:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 24, ptr %10) #6
  %55 = getelementptr inbounds %struct.moto, ptr %10, i32 0, i32 0
  %56 = load i32, ptr %3, align 4, !tbaa !5
  store i32 %56, ptr %55, align 8, !tbaa !11
  %57 = getelementptr inbounds %struct.moto, ptr %10, i32 0, i32 1
  %58 = load i64, ptr %4, align 8, !tbaa !9
  store i64 %58, ptr %57, align 8, !tbaa !16
  %59 = getelementptr inbounds %struct.moto, ptr %10, i32 0, i32 2
  invoke void @_ZN4CGAL4GmpqC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %59, ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %60 unwind label %73

60:                                               ; preds = %54
  invoke void @_ZNSt6vectorI4motoSaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(24) %10)
          to label %61 unwind label %77

61:                                               ; preds = %60
  call void @_ZN4motoD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #6
  call void @_ZN4CGAL10Handle_forINS_8Gmpq_repESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  br label %62

62:                                               ; preds = %61
  %63 = load i32, ptr %3, align 4, !tbaa !5
  %64 = add nsw i32 %63, 1
  store i32 %64, ptr %3, align 4, !tbaa !5
  br label %38, !llvm.loop !17

65:                                               ; preds = %47, %45, %43
  %66 = landingpad { ptr, i32 }
          cleanup
  %67 = extractvalue { ptr, i32 } %66, 0
  store ptr %67, ptr %7, align 8
  %68 = extractvalue { ptr, i32 } %66, 1
  store i32 %68, ptr %8, align 4
  br label %83

69:                                               ; preds = %49
  %70 = landingpad { ptr, i32 }
          cleanup
  %71 = extractvalue { ptr, i32 } %70, 0
  store ptr %71, ptr %7, align 8
  %72 = extractvalue { ptr, i32 } %70, 1
  store i32 %72, ptr %8, align 4
  br label %82

73:                                               ; preds = %54
  %74 = landingpad { ptr, i32 }
          cleanup
  %75 = extractvalue { ptr, i32 } %74, 0
  store ptr %75, ptr %7, align 8
  %76 = extractvalue { ptr, i32 } %74, 1
  store i32 %76, ptr %8, align 4
  br label %81

77:                                               ; preds = %60
  %78 = landingpad { ptr, i32 }
          cleanup
  %79 = extractvalue { ptr, i32 } %78, 0
  store ptr %79, ptr %7, align 8
  %80 = extractvalue { ptr, i32 } %78, 1
  store i32 %80, ptr %8, align 4
  call void @_ZN4motoD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  br label %81

81:                                               ; preds = %77, %73
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #6
  call void @_ZN4CGAL10Handle_forINS_8Gmpq_repESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  br label %82

82:                                               ; preds = %81, %69
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  br label %83

83:                                               ; preds = %82, %65
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  br label %353

84:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 40, ptr %11) #6
  %85 = load i32, ptr %1, align 4, !tbaa !5
  %86 = sext i32 %85 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #6
  store i8 1, ptr %12, align 1, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #6
  call void @_ZNSaIbEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #6
  invoke void @_ZNSt6vectorIbSaIbEEC2EmRKbRKS0_(ptr noundef nonnull align 8 dereferenceable(40) %11, i64 noundef %86, ptr noundef nonnull align 1 dereferenceable(1) %12, ptr noundef nonnull align 1 dereferenceable(1) %13)
          to label %87 unwind label %105

87:                                               ; preds = %84
  call void @_ZNSt15__new_allocatorIbED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #6
  %88 = call ptr @_ZNSt6vectorI4motoSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  %89 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %15, i32 0, i32 0
  store ptr %88, ptr %89, align 8
  %90 = call ptr @_ZNSt6vectorI4motoSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  %91 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %16, i32 0, i32 0
  store ptr %90, ptr %91, align 8
  %92 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %15, i32 0, i32 0
  %93 = load ptr, ptr %92, align 8
  %94 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %16, i32 0, i32 0
  %95 = load ptr, ptr %94, align 8
  invoke void @"_ZSt4sortIN9__gnu_cxx17__normal_iteratorIP4motoSt6vectorIS2_SaIS2_EEEEZ5solvevE3$_0EvT_S9_T0_"(ptr %93, ptr %95)
          to label %96 unwind label %109

96:                                               ; preds = %87
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  %97 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI4motoSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 0) #6
  %98 = getelementptr inbounds %struct.moto, ptr %97, i32 0, i32 2
  invoke void @_ZN4CGAL4GmpqC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) %98)
          to label %99 unwind label %113

99:                                               ; preds = %96
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  store i32 1, ptr %19, align 4, !tbaa !5
  br label %100

100:                                              ; preds = %174, %99
  %101 = load i32, ptr %19, align 4, !tbaa !5
  %102 = load i32, ptr %1, align 4, !tbaa !5
  %103 = icmp slt i32 %101, %102
  br i1 %103, label %117, label %104

104:                                              ; preds = %100
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  br label %179

105:                                              ; preds = %84
  %106 = landingpad { ptr, i32 }
          cleanup
  %107 = extractvalue { ptr, i32 } %106, 0
  store ptr %107, ptr %7, align 8
  %108 = extractvalue { ptr, i32 } %106, 1
  store i32 %108, ptr %8, align 4
  call void @_ZNSt15__new_allocatorIbED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #6
  br label %352

109:                                              ; preds = %87
  %110 = landingpad { ptr, i32 }
          cleanup
  %111 = extractvalue { ptr, i32 } %110, 0
  store ptr %111, ptr %7, align 8
  %112 = extractvalue { ptr, i32 } %110, 1
  store i32 %112, ptr %8, align 4
  br label %351

113:                                              ; preds = %96
  %114 = landingpad { ptr, i32 }
          cleanup
  %115 = extractvalue { ptr, i32 } %114, 0
  store ptr %115, ptr %7, align 8
  %116 = extractvalue { ptr, i32 } %114, 1
  store i32 %116, ptr %8, align 4
  br label %350

117:                                              ; preds = %100
  call void @llvm.lifetime.start.p0(i64 24, ptr %20) #6
  %118 = load i32, ptr %19, align 4, !tbaa !5
  %119 = sext i32 %118 to i64
  %120 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI4motoSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %119) #6
  invoke void @_ZN4motoC2ERKS_(ptr noundef nonnull align 8 dereferenceable(24) %20, ptr noundef nonnull align 8 dereferenceable(24) %120)
          to label %121 unwind label %131

121:                                              ; preds = %117
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  %122 = getelementptr inbounds %struct.moto, ptr %20, i32 0, i32 2
  invoke void @_ZN4CGAL3absINS_4GmpqEEENS_22Real_embeddable_traitsIT_E3Abs11result_typeERKS3_(ptr dead_on_unwind writable sret(%"class.CGAL::Gmpq") align 8 %21, ptr noundef nonnull align 8 dereferenceable(8) %122)
          to label %123 unwind label %135

123:                                              ; preds = %121
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  invoke void @_ZN4CGAL3absINS_4GmpqEEENS_22Real_embeddable_traitsIT_E3Abs11result_typeERKS3_(ptr dead_on_unwind writable sret(%"class.CGAL::Gmpq") align 8 %22, ptr noundef nonnull align 8 dereferenceable(8) %18)
          to label %124 unwind label %139

124:                                              ; preds = %123
  %125 = invoke noundef zeroext i1 @_ZN5boost14operators_implleERKN4CGAL4GmpqES4_(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull align 8 dereferenceable(8) %22)
          to label %126 unwind label %143

126:                                              ; preds = %124
  call void @_ZN4CGAL10Handle_forINS_8Gmpq_repESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  call void @_ZN4CGAL10Handle_forINS_8Gmpq_repESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  br i1 %125, label %127, label %153

127:                                              ; preds = %126
  %128 = getelementptr inbounds %struct.moto, ptr %20, i32 0, i32 2
  %129 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4CGAL4GmpqaSERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) %128)
          to label %130 unwind label %149

130:                                              ; preds = %127
  br label %173

131:                                              ; preds = %117
  %132 = landingpad { ptr, i32 }
          cleanup
  %133 = extractvalue { ptr, i32 } %132, 0
  store ptr %133, ptr %7, align 8
  %134 = extractvalue { ptr, i32 } %132, 1
  store i32 %134, ptr %8, align 4
  br label %178

135:                                              ; preds = %121
  %136 = landingpad { ptr, i32 }
          cleanup
  %137 = extractvalue { ptr, i32 } %136, 0
  store ptr %137, ptr %7, align 8
  %138 = extractvalue { ptr, i32 } %136, 1
  store i32 %138, ptr %8, align 4
  br label %148

139:                                              ; preds = %123
  %140 = landingpad { ptr, i32 }
          cleanup
  %141 = extractvalue { ptr, i32 } %140, 0
  store ptr %141, ptr %7, align 8
  %142 = extractvalue { ptr, i32 } %140, 1
  store i32 %142, ptr %8, align 4
  br label %147

143:                                              ; preds = %124
  %144 = landingpad { ptr, i32 }
          cleanup
  %145 = extractvalue { ptr, i32 } %144, 0
  store ptr %145, ptr %7, align 8
  %146 = extractvalue { ptr, i32 } %144, 1
  store i32 %146, ptr %8, align 4
  call void @_ZN4CGAL10Handle_forINS_8Gmpq_repESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %22) #6
  br label %147

147:                                              ; preds = %143, %139
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  call void @_ZN4CGAL10Handle_forINS_8Gmpq_repESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %21) #6
  br label %148

148:                                              ; preds = %147, %135
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  br label %177

149:                                              ; preds = %153, %127
  %150 = landingpad { ptr, i32 }
          cleanup
  %151 = extractvalue { ptr, i32 } %150, 0
  store ptr %151, ptr %7, align 8
  %152 = extractvalue { ptr, i32 } %150, 1
  store i32 %152, ptr %8, align 4
  br label %177

153:                                              ; preds = %126
  %154 = getelementptr inbounds %struct.moto, ptr %20, i32 0, i32 2
  %155 = invoke noundef zeroext i1 @_ZN5boost14operators_implgtERKN4CGAL4GmpqES4_(ptr noundef nonnull align 8 dereferenceable(8) %154, ptr noundef nonnull align 8 dereferenceable(8) %18)
          to label %156 unwind label %149

156:                                              ; preds = %153
  br i1 %155, label %157, label %172

157:                                              ; preds = %156
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #6
  %158 = getelementptr inbounds %struct.moto, ptr %20, i32 0, i32 0
  %159 = load i32, ptr %158, align 8, !tbaa !11
  %160 = sext i32 %159 to i64
  %161 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %11, i64 noundef %160)
          to label %162 unwind label %168

162:                                              ; preds = %157
  %163 = getelementptr inbounds { ptr, i64 }, ptr %23, i32 0, i32 0
  %164 = extractvalue { ptr, i64 } %161, 0
  store ptr %164, ptr %163, align 8
  %165 = getelementptr inbounds { ptr, i64 }, ptr %23, i32 0, i32 1
  %166 = extractvalue { ptr, i64 } %161, 1
  store i64 %166, ptr %165, align 8
  %167 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %23, i1 noundef zeroext false) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #6
  br label %172

168:                                              ; preds = %157
  %169 = landingpad { ptr, i32 }
          cleanup
  %170 = extractvalue { ptr, i32 } %169, 0
  store ptr %170, ptr %7, align 8
  %171 = extractvalue { ptr, i32 } %169, 1
  store i32 %171, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #6
  br label %177

172:                                              ; preds = %162, %156
  br label %173

173:                                              ; preds = %172, %130
  call void @_ZN4motoD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %20) #6
  br label %174

174:                                              ; preds = %173
  %175 = load i32, ptr %19, align 4, !tbaa !5
  %176 = add nsw i32 %175, 1
  store i32 %176, ptr %19, align 4, !tbaa !5
  br label %100, !llvm.loop !21

177:                                              ; preds = %168, %149, %148
  call void @_ZN4motoD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #6
  br label %178

178:                                              ; preds = %177, %131
  call void @llvm.lifetime.end.p0(i64 24, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  br label %349

179:                                              ; preds = %104
  %180 = load i32, ptr %1, align 4, !tbaa !5
  %181 = sub nsw i32 %180, 1
  %182 = sext i32 %181 to i64
  %183 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI4motoSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %182) #6
  %184 = getelementptr inbounds %struct.moto, ptr %183, i32 0, i32 2
  %185 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4CGAL4GmpqaSERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) %184)
          to label %186 unwind label %193

186:                                              ; preds = %179
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #6
  %187 = load i32, ptr %1, align 4, !tbaa !5
  %188 = sub nsw i32 %187, 2
  store i32 %188, ptr %24, align 4, !tbaa !5
  br label %189

189:                                              ; preds = %306, %186
  %190 = load i32, ptr %24, align 4, !tbaa !5
  %191 = icmp sge i32 %190, 0
  br i1 %191, label %197, label %192

192:                                              ; preds = %189
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  br label %311

193:                                              ; preds = %346, %179
  %194 = landingpad { ptr, i32 }
          cleanup
  %195 = extractvalue { ptr, i32 } %194, 0
  store ptr %195, ptr %7, align 8
  %196 = extractvalue { ptr, i32 } %194, 1
  store i32 %196, ptr %8, align 4
  br label %349

197:                                              ; preds = %189
  call void @llvm.lifetime.start.p0(i64 24, ptr %25) #6
  %198 = load i32, ptr %24, align 4, !tbaa !5
  %199 = sext i32 %198 to i64
  %200 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI4motoSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %199) #6
  invoke void @_ZN4motoC2ERKS_(ptr noundef nonnull align 8 dereferenceable(24) %25, ptr noundef nonnull align 8 dereferenceable(24) %200)
          to label %201 unwind label %236

201:                                              ; preds = %197
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #6
  %202 = getelementptr inbounds %struct.moto, ptr %25, i32 0, i32 2
  store i1 false, ptr %29, align 1
  store i1 false, ptr %30, align 1
  store i1 false, ptr %32, align 1
  store i1 false, ptr %33, align 1
  invoke void @_ZN4CGAL3absINS_4GmpqEEENS_22Real_embeddable_traitsIT_E3Abs11result_typeERKS3_(ptr dead_on_unwind writable sret(%"class.CGAL::Gmpq") align 8 %26, ptr noundef nonnull align 8 dereferenceable(8) %202)
          to label %203 unwind label %240

203:                                              ; preds = %201
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #6
  invoke void @_ZN4CGAL3absINS_4GmpqEEENS_22Real_embeddable_traitsIT_E3Abs11result_typeERKS3_(ptr dead_on_unwind writable sret(%"class.CGAL::Gmpq") align 8 %27, ptr noundef nonnull align 8 dereferenceable(8) %18)
          to label %204 unwind label %244

204:                                              ; preds = %203
  %205 = invoke noundef zeroext i1 @_ZNK4CGAL4GmpqltERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %26, ptr noundef nonnull align 8 dereferenceable(8) %27)
          to label %206 unwind label %248

206:                                              ; preds = %204
  br i1 %205, label %218, label %207

207:                                              ; preds = %206
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #6
  store i1 true, ptr %29, align 1
  %208 = getelementptr inbounds %struct.moto, ptr %25, i32 0, i32 2
  invoke void @_ZN4CGAL3absINS_4GmpqEEENS_22Real_embeddable_traitsIT_E3Abs11result_typeERKS3_(ptr dead_on_unwind writable sret(%"class.CGAL::Gmpq") align 8 %28, ptr noundef nonnull align 8 dereferenceable(8) %208)
          to label %209 unwind label %252

209:                                              ; preds = %207
  store i1 true, ptr %30, align 1
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #6
  store i1 true, ptr %32, align 1
  invoke void @_ZN4CGAL3absINS_4GmpqEEENS_22Real_embeddable_traitsIT_E3Abs11result_typeERKS3_(ptr dead_on_unwind writable sret(%"class.CGAL::Gmpq") align 8 %31, ptr noundef nonnull align 8 dereferenceable(8) %18)
          to label %210 unwind label %256

210:                                              ; preds = %209
  store i1 true, ptr %33, align 1
  %211 = call noundef zeroext i1 @_ZNK4CGAL4GmpqeqERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %28, ptr noundef nonnull align 8 dereferenceable(8) %31) #6
  br i1 %211, label %212, label %216

212:                                              ; preds = %210
  %213 = getelementptr inbounds %struct.moto, ptr %25, i32 0, i32 2
  %214 = invoke noundef zeroext i1 @_ZN5boost14operators_implgtERKN4CGAL4GmpqES4_(ptr noundef nonnull align 8 dereferenceable(8) %213, ptr noundef nonnull align 8 dereferenceable(8) %18)
          to label %215 unwind label %260

215:                                              ; preds = %212
  br label %216

216:                                              ; preds = %215, %210
  %217 = phi i1 [ false, %210 ], [ %214, %215 ]
  br label %218

218:                                              ; preds = %216, %206
  %219 = phi i1 [ true, %206 ], [ %217, %216 ]
  %220 = load i1, ptr %33, align 1
  br i1 %220, label %221, label %222

221:                                              ; preds = %218
  call void @_ZN4CGAL10Handle_forINS_8Gmpq_repESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %31) #6
  br label %222

222:                                              ; preds = %221, %218
  %223 = load i1, ptr %32, align 1
  br i1 %223, label %224, label %225

224:                                              ; preds = %222
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #6
  br label %225

225:                                              ; preds = %224, %222
  %226 = load i1, ptr %30, align 1
  br i1 %226, label %227, label %228

227:                                              ; preds = %225
  call void @_ZN4CGAL10Handle_forINS_8Gmpq_repESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %28) #6
  br label %228

228:                                              ; preds = %227, %225
  %229 = load i1, ptr %29, align 1
  br i1 %229, label %230, label %231

230:                                              ; preds = %228
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #6
  br label %231

231:                                              ; preds = %230, %228
  call void @_ZN4CGAL10Handle_forINS_8Gmpq_repESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %27) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #6
  call void @_ZN4CGAL10Handle_forINS_8Gmpq_repESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %26) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #6
  br i1 %219, label %232, label %285

232:                                              ; preds = %231
  %233 = getelementptr inbounds %struct.moto, ptr %25, i32 0, i32 2
  %234 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4CGAL4GmpqaSERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) %233)
          to label %235 unwind label %281

235:                                              ; preds = %232
  br label %305

236:                                              ; preds = %197
  %237 = landingpad { ptr, i32 }
          cleanup
  %238 = extractvalue { ptr, i32 } %237, 0
  store ptr %238, ptr %7, align 8
  %239 = extractvalue { ptr, i32 } %237, 1
  store i32 %239, ptr %8, align 4
  br label %310

240:                                              ; preds = %201
  %241 = landingpad { ptr, i32 }
          cleanup
  %242 = extractvalue { ptr, i32 } %241, 0
  store ptr %242, ptr %7, align 8
  %243 = extractvalue { ptr, i32 } %241, 1
  store i32 %243, ptr %8, align 4
  br label %280

244:                                              ; preds = %203
  %245 = landingpad { ptr, i32 }
          cleanup
  %246 = extractvalue { ptr, i32 } %245, 0
  store ptr %246, ptr %7, align 8
  %247 = extractvalue { ptr, i32 } %245, 1
  store i32 %247, ptr %8, align 4
  br label %279

248:                                              ; preds = %204
  %249 = landingpad { ptr, i32 }
          cleanup
  %250 = extractvalue { ptr, i32 } %249, 0
  store ptr %250, ptr %7, align 8
  %251 = extractvalue { ptr, i32 } %249, 1
  store i32 %251, ptr %8, align 4
  br label %278

252:                                              ; preds = %207
  %253 = landingpad { ptr, i32 }
          cleanup
  %254 = extractvalue { ptr, i32 } %253, 0
  store ptr %254, ptr %7, align 8
  %255 = extractvalue { ptr, i32 } %253, 1
  store i32 %255, ptr %8, align 4
  br label %274

256:                                              ; preds = %209
  %257 = landingpad { ptr, i32 }
          cleanup
  %258 = extractvalue { ptr, i32 } %257, 0
  store ptr %258, ptr %7, align 8
  %259 = extractvalue { ptr, i32 } %257, 1
  store i32 %259, ptr %8, align 4
  br label %267

260:                                              ; preds = %212
  %261 = landingpad { ptr, i32 }
          cleanup
  %262 = extractvalue { ptr, i32 } %261, 0
  store ptr %262, ptr %7, align 8
  %263 = extractvalue { ptr, i32 } %261, 1
  store i32 %263, ptr %8, align 4
  %264 = load i1, ptr %33, align 1
  br i1 %264, label %265, label %266

265:                                              ; preds = %260
  call void @_ZN4CGAL10Handle_forINS_8Gmpq_repESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %31) #6
  br label %266

266:                                              ; preds = %265, %260
  br label %267

267:                                              ; preds = %266, %256
  %268 = load i1, ptr %32, align 1
  br i1 %268, label %269, label %270

269:                                              ; preds = %267
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #6
  br label %270

270:                                              ; preds = %269, %267
  %271 = load i1, ptr %30, align 1
  br i1 %271, label %272, label %273

272:                                              ; preds = %270
  call void @_ZN4CGAL10Handle_forINS_8Gmpq_repESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %28) #6
  br label %273

273:                                              ; preds = %272, %270
  br label %274

274:                                              ; preds = %273, %252
  %275 = load i1, ptr %29, align 1
  br i1 %275, label %276, label %277

276:                                              ; preds = %274
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #6
  br label %277

277:                                              ; preds = %276, %274
  br label %278

278:                                              ; preds = %277, %248
  call void @_ZN4CGAL10Handle_forINS_8Gmpq_repESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %27) #6
  br label %279

279:                                              ; preds = %278, %244
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #6
  call void @_ZN4CGAL10Handle_forINS_8Gmpq_repESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %26) #6
  br label %280

280:                                              ; preds = %279, %240
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #6
  br label %309

281:                                              ; preds = %285, %232
  %282 = landingpad { ptr, i32 }
          cleanup
  %283 = extractvalue { ptr, i32 } %282, 0
  store ptr %283, ptr %7, align 8
  %284 = extractvalue { ptr, i32 } %282, 1
  store i32 %284, ptr %8, align 4
  br label %309

285:                                              ; preds = %231
  %286 = getelementptr inbounds %struct.moto, ptr %25, i32 0, i32 2
  %287 = invoke noundef zeroext i1 @_ZNK4CGAL4GmpqltERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %286, ptr noundef nonnull align 8 dereferenceable(8) %18)
          to label %288 unwind label %281

288:                                              ; preds = %285
  br i1 %287, label %289, label %304

289:                                              ; preds = %288
  call void @llvm.lifetime.start.p0(i64 16, ptr %34) #6
  %290 = getelementptr inbounds %struct.moto, ptr %25, i32 0, i32 0
  %291 = load i32, ptr %290, align 8, !tbaa !11
  %292 = sext i32 %291 to i64
  %293 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %11, i64 noundef %292)
          to label %294 unwind label %300

294:                                              ; preds = %289
  %295 = getelementptr inbounds { ptr, i64 }, ptr %34, i32 0, i32 0
  %296 = extractvalue { ptr, i64 } %293, 0
  store ptr %296, ptr %295, align 8
  %297 = getelementptr inbounds { ptr, i64 }, ptr %34, i32 0, i32 1
  %298 = extractvalue { ptr, i64 } %293, 1
  store i64 %298, ptr %297, align 8
  %299 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %34, i1 noundef zeroext false) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %34) #6
  br label %304

300:                                              ; preds = %289
  %301 = landingpad { ptr, i32 }
          cleanup
  %302 = extractvalue { ptr, i32 } %301, 0
  store ptr %302, ptr %7, align 8
  %303 = extractvalue { ptr, i32 } %301, 1
  store i32 %303, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %34) #6
  br label %309

304:                                              ; preds = %294, %288
  br label %305

305:                                              ; preds = %304, %235
  call void @_ZN4motoD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %25) #6
  br label %306

306:                                              ; preds = %305
  %307 = load i32, ptr %24, align 4, !tbaa !5
  %308 = add nsw i32 %307, -1
  store i32 %308, ptr %24, align 4, !tbaa !5
  br label %189, !llvm.loop !22

309:                                              ; preds = %300, %281, %280
  call void @_ZN4motoD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #6
  br label %310

310:                                              ; preds = %309, %236
  call void @llvm.lifetime.end.p0(i64 24, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  br label %349

311:                                              ; preds = %192
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #6
  store i32 0, ptr %35, align 4, !tbaa !5
  br label %312

312:                                              ; preds = %342, %311
  %313 = load i32, ptr %35, align 4, !tbaa !5
  %314 = load i32, ptr %1, align 4, !tbaa !5
  %315 = icmp slt i32 %313, %314
  br i1 %315, label %317, label %316

316:                                              ; preds = %312
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #6
  br label %346

317:                                              ; preds = %312
  call void @llvm.lifetime.start.p0(i64 16, ptr %36) #6
  %318 = load i32, ptr %35, align 4, !tbaa !5
  %319 = sext i32 %318 to i64
  %320 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %11, i64 noundef %319)
          to label %321 unwind label %333

321:                                              ; preds = %317
  %322 = getelementptr inbounds { ptr, i64 }, ptr %36, i32 0, i32 0
  %323 = extractvalue { ptr, i64 } %320, 0
  store ptr %323, ptr %322, align 8
  %324 = getelementptr inbounds { ptr, i64 }, ptr %36, i32 0, i32 1
  %325 = extractvalue { ptr, i64 } %320, 1
  store i64 %325, ptr %324, align 8
  %326 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %36) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %36) #6
  br i1 %326, label %327, label %341

327:                                              ; preds = %321
  %328 = load i32, ptr %35, align 4, !tbaa !5
  %329 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %328)
          to label %330 unwind label %337

330:                                              ; preds = %327
  %331 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %329, i8 noundef signext 32)
          to label %332 unwind label %337

332:                                              ; preds = %330
  br label %341

333:                                              ; preds = %317
  %334 = landingpad { ptr, i32 }
          cleanup
  %335 = extractvalue { ptr, i32 } %334, 0
  store ptr %335, ptr %7, align 8
  %336 = extractvalue { ptr, i32 } %334, 1
  store i32 %336, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %36) #6
  br label %345

337:                                              ; preds = %330, %327
  %338 = landingpad { ptr, i32 }
          cleanup
  %339 = extractvalue { ptr, i32 } %338, 0
  store ptr %339, ptr %7, align 8
  %340 = extractvalue { ptr, i32 } %338, 1
  store i32 %340, ptr %8, align 4
  br label %345

341:                                              ; preds = %332, %321
  br label %342

342:                                              ; preds = %341
  %343 = load i32, ptr %35, align 4, !tbaa !5
  %344 = add nsw i32 %343, 1
  store i32 %344, ptr %35, align 4, !tbaa !5
  br label %312, !llvm.loop !23

345:                                              ; preds = %337, %333
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #6
  br label %349

346:                                              ; preds = %316
  %347 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %348 unwind label %193

348:                                              ; preds = %346
  call void @_ZN4CGAL10Handle_forINS_8Gmpq_repESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #6
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %11) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %11) #6
  call void @_ZNSt6vectorI4motoSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %2) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #6
  ret void

349:                                              ; preds = %345, %310, %193, %178
  call void @_ZN4CGAL10Handle_forINS_8Gmpq_repESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %18) #6
  br label %350

350:                                              ; preds = %349, %113
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  br label %351

351:                                              ; preds = %350, %109
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #6
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %11) #6
  br label %352

352:                                              ; preds = %351, %105
  call void @llvm.lifetime.end.p0(i64 40, ptr %11) #6
  br label %353

353:                                              ; preds = %352, %83
  call void @_ZNSt6vectorI4motoSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %2) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #6
  br label %354

354:                                              ; preds = %353
  %355 = load ptr, ptr %7, align 8
  %356 = load i32, ptr %8, align 4
  %357 = insertvalue { ptr, i32 } poison, ptr %355, 0
  %358 = insertvalue { ptr, i32 } %357, i32 %356, 1
  resume { ptr, i32 } %358
}

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

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 nounwind uwtable
declare dso_local void @_ZNSt6vectorI4motoSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIbSaIbEEC2EmRKbRKS0_(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZSt4sortIN9__gnu_cxx17__normal_iteratorIP4motoSt6vectorIS2_SaIS2_EEEEZ5solvevE3$_0EvT_S9_T0_"(ptr, ptr) #4

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN5boost14operators_implleERKN4CGAL4GmpqES4_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #0

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN4CGAL4GmpqaSERKS0_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN5boost14operators_implgtERKN4CGAL4GmpqES4_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #0

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16), i1 noundef zeroext) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4CGAL4GmpqltERKS0_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4CGAL4GmpqeqERKS0_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16)) #3 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) #4

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

; 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 nounwind uwtable
declare dso_local void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #3 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4CGAL10Handle_forINS_8Gmpq_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 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"_ZTS4moto", !6, i64 0, !10, i64 8, !13, i64 16}
!13 = !{!"_ZTSN4CGAL4GmpqE", !14, i64 0}
!14 = !{!"_ZTSN4CGAL10Handle_forINS_8Gmpq_repESaIS1_EEE", !15, i64 0}
!15 = !{!"any pointer", !7, i64 0}
!16 = !{!12, !10, i64 8}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{!20, !20, i64 0}
!20 = !{!"bool", !7, i64 0}
!21 = distinct !{!21, !18}
!22 = distinct !{!22, !18}
!23 = distinct !{!23, !18}


; 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.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<moto, std::allocator<moto>>::_Vector_impl" }
%"struct.std::_Vector_base<moto, std::allocator<moto>>::_Vector_impl" = type { %"struct.std::_Vector_base<moto, std::allocator<moto>>::_Vector_impl_data" }
%"struct.std::_Vector_base<moto, std::allocator<moto>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.CGAL::Gmpq" = type { %"class.CGAL::Handle_for" }
%"class.CGAL::Handle_for" = type { ptr }
%struct.moto = type { i32, i64, %"class.CGAL::Gmpq" }
%"class.std::vector.65" = type { %"struct.std::_Bvector_base" }
%"struct.std::_Bvector_base" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" = type { %"struct.std::_Bit_iterator", %"struct.std::_Bit_iterator", ptr }
%"struct.std::_Bit_iterator" = type { %"struct.std::_Bit_iterator_base.base", [4 x i8] }
%"struct.std::_Bit_iterator_base.base" = type <{ ptr, i32 }>
%"class.std::allocator.69" = type { i8 }
%"struct.std::_Bit_reference" = type { ptr, i64 }

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

declare i32 @__gxx_personality_v0(...)

; 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 %"class.std::vector", align 8
  %3 = alloca i64, align 8
  %4 = alloca i64, align 8
  %5 = alloca i64, align 8
  %6 = alloca %"class.CGAL::Gmpq", align 8
  %7 = alloca %struct.moto, align 8
  %8 = alloca %"class.std::vector.65", align 8
  %9 = alloca i8, align 1
  %10 = alloca %"class.std::allocator.69", align 1
  %11 = alloca %"class.CGAL::Gmpq", align 8
  %12 = alloca %struct.moto, align 8
  %13 = alloca %"class.CGAL::Gmpq", align 8
  %14 = alloca %"class.CGAL::Gmpq", align 8
  %15 = alloca %"struct.std::_Bit_reference", align 8
  %16 = alloca %struct.moto, align 8
  %17 = alloca %"class.CGAL::Gmpq", align 8
  %18 = alloca %"class.CGAL::Gmpq", align 8
  %19 = alloca %"class.CGAL::Gmpq", align 8
  %20 = alloca %"class.CGAL::Gmpq", align 8
  %21 = alloca %"struct.std::_Bit_reference", align 8
  %22 = alloca %"struct.std::_Bit_reference", align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #6
  %23 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %2) #6
  call void @_ZNSt6vectorI4motoSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  %24 = load i32, ptr %1, align 4, !tbaa !5
  %25 = icmp sgt i32 %24, 0
  br i1 %25, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %0
  %26 = getelementptr inbounds i8, ptr %7, i64 8
  %27 = getelementptr inbounds i8, ptr %7, i64 16
  br label %29

._crit_edge:                                      ; preds = %43, %0
  %.lcssa87 = phi i32 [ %24, %0 ], [ %45, %43 ]
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %8) #6
  %28 = sext i32 %.lcssa87 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %9) #6
  store i8 1, ptr %9, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %10) #6
  call void @_ZNSaIbEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #6
  invoke void @_ZNSt6vectorIbSaIbEEC2EmRKbRKS0_(ptr noundef nonnull align 8 dereferenceable(40) %8, i64 noundef %28, ptr noundef nonnull align 1 dereferenceable(1) %9, ptr noundef nonnull align 1 dereferenceable(1) %10)
          to label %58 unwind label %73

29:                                               ; preds = %.lr.ph, %43
  %.03092 = phi i32 [ 0, %.lr.ph ], [ %44, %43 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #6
  %30 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERl(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %3)
          to label %31 unwind label %47

31:                                               ; preds = %29
  %32 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERl(ptr noundef nonnull align 8 dereferenceable(16) %30, ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %33 unwind label %47

33:                                               ; preds = %31
  %34 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERl(ptr noundef nonnull align 8 dereferenceable(16) %32, ptr noundef nonnull align 8 dereferenceable(8) %5)
          to label %35 unwind label %47

35:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #6
  %36 = load i64, ptr %5, align 8, !tbaa !11
  %37 = load i64, ptr %3, align 8, !tbaa !11
  %38 = sub nsw i64 %36, %37
  %39 = load i64, ptr %4, align 8, !tbaa !11
  invoke void @_ZN4CGAL4GmpqC2Elm(ptr noundef nonnull align 8 dereferenceable(8) %6, i64 noundef %38, i64 noundef %39)
          to label %40 unwind label %49

40:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #6
  store i32 %.03092, ptr %7, align 8, !tbaa !13
  %41 = load i64, ptr %3, align 8, !tbaa !11
  store i64 %41, ptr %26, align 8, !tbaa !18
  invoke void @_ZN4CGAL4GmpqC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %27, ptr noundef nonnull align 8 dereferenceable(8) %6)
          to label %42 unwind label %51

42:                                               ; preds = %40
  invoke void @_ZNSt6vectorI4motoSaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(24) %7)
          to label %43 unwind label %53

43:                                               ; preds = %42
  call void @_ZN4motoD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #6
  call void @_ZN4CGAL10Handle_forINS_8Gmpq_repESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  %44 = add nuw nsw i32 %.03092, 1
  %45 = load i32, ptr %1, align 4, !tbaa !5
  %46 = icmp slt i32 %44, %45
  br i1 %46, label %29, label %._crit_edge, !llvm.loop !19

47:                                               ; preds = %33, %31, %29
  %48 = landingpad { ptr, i32 }
          cleanup
  br label %57

49:                                               ; preds = %35
  %50 = landingpad { ptr, i32 }
          cleanup
  br label %56

51:                                               ; preds = %40
  %52 = landingpad { ptr, i32 }
          cleanup
  br label %55

53:                                               ; preds = %42
  %54 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4motoD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  br label %55

55:                                               ; preds = %53, %51
  %.pn71 = phi { ptr, i32 } [ %54, %53 ], [ %52, %51 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #6
  call void @_ZN4CGAL10Handle_forINS_8Gmpq_repESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  br label %56

56:                                               ; preds = %55, %49
  %.pn71.pn = phi { ptr, i32 } [ %.pn71, %55 ], [ %50, %49 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  br label %57

57:                                               ; preds = %56, %47
  %.pn71.pn.pn = phi { ptr, i32 } [ %.pn71.pn, %56 ], [ %48, %47 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  br label %204

58:                                               ; preds = %._crit_edge
  call void @_ZNSt15__new_allocatorIbED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #6
  %59 = call ptr @_ZNSt6vectorI4motoSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  %60 = call ptr @_ZNSt6vectorI4motoSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  invoke void @"_ZSt4sortIN9__gnu_cxx17__normal_iteratorIP4motoSt6vectorIS2_SaIS2_EEEEZ5solvevE3$_0EvT_S9_T0_"(ptr %59, ptr %60)
          to label %61 unwind label %75

61:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #6
  %62 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI4motoSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 0) #6
  %63 = getelementptr inbounds i8, ptr %62, i64 16
  invoke void @_ZN4CGAL4GmpqC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %63)
          to label %.preheader80 unwind label %77

.preheader80:                                     ; preds = %61
  %64 = load i32, ptr %1, align 4, !tbaa !5
  %65 = icmp sgt i32 %64, 1
  br i1 %65, label %.lr.ph94, label %._crit_edge95

.lr.ph94:                                         ; preds = %.preheader80
  %66 = getelementptr inbounds i8, ptr %12, i64 16
  %67 = getelementptr inbounds i8, ptr %15, i64 8
  br label %79

._crit_edge95:                                    ; preds = %113, %.preheader80
  %.lcssa = phi i32 [ %64, %.preheader80 ], [ %114, %113 ]
  %68 = add nsw i32 %.lcssa, -1
  %69 = sext i32 %68 to i64
  %70 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI4motoSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %69) #6
  %71 = getelementptr inbounds i8, ptr %70, i64 16
  %72 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4CGAL4GmpqaSERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %71)
          to label %119 unwind label %129

73:                                               ; preds = %._crit_edge
  %74 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIbED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #6
  br label %203

75:                                               ; preds = %58
  %76 = landingpad { ptr, i32 }
          cleanup
  br label %202

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

79:                                               ; preds = %.lr.ph94, %113
  %indvars.iv = phi i64 [ 1, %.lr.ph94 ], [ %indvars.iv.next, %113 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %12) #6
  %80 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI4motoSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv) #6
  invoke void @_ZN4motoC2ERKS_(ptr noundef nonnull align 8 dereferenceable(24) %12, ptr noundef nonnull align 8 dereferenceable(24) %80)
          to label %81 unwind label %88

81:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #6
  invoke void @_ZN4CGAL3absINS_4GmpqEEENS_22Real_embeddable_traitsIT_E3Abs11result_typeERKS3_(ptr dead_on_unwind nonnull writable sret(%"class.CGAL::Gmpq") align 8 %13, ptr noundef nonnull align 8 dereferenceable(8) %66)
          to label %82 unwind label %90

82:                                               ; preds = %81
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #6
  invoke void @_ZN4CGAL3absINS_4GmpqEEENS_22Real_embeddable_traitsIT_E3Abs11result_typeERKS3_(ptr dead_on_unwind nonnull writable sret(%"class.CGAL::Gmpq") align 8 %14, ptr noundef nonnull align 8 dereferenceable(8) %11)
          to label %83 unwind label %92

83:                                               ; preds = %82
  %84 = invoke noundef zeroext i1 @_ZN5boost14operators_implleERKN4CGAL4GmpqES4_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %14)
          to label %85 unwind label %94

85:                                               ; preds = %83
  call void @_ZN4CGAL10Handle_forINS_8Gmpq_repESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #6
  call void @_ZN4CGAL10Handle_forINS_8Gmpq_repESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #6
  br i1 %84, label %86, label %100

86:                                               ; preds = %85
  %87 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4CGAL4GmpqaSERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %66)
          to label %113 unwind label %98

88:                                               ; preds = %79
  %89 = landingpad { ptr, i32 }
          cleanup
  br label %118

90:                                               ; preds = %81
  %91 = landingpad { ptr, i32 }
          cleanup
  br label %97

92:                                               ; preds = %82
  %93 = landingpad { ptr, i32 }
          cleanup
  br label %96

94:                                               ; preds = %83
  %95 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4CGAL10Handle_forINS_8Gmpq_repESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #6
  br label %96

96:                                               ; preds = %94, %92
  %.pn61 = phi { ptr, i32 } [ %95, %94 ], [ %93, %92 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #6
  call void @_ZN4CGAL10Handle_forINS_8Gmpq_repESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #6
  br label %97

97:                                               ; preds = %96, %90
  %.pn61.pn = phi { ptr, i32 } [ %.pn61, %96 ], [ %91, %90 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #6
  br label %117

98:                                               ; preds = %100, %86
  %99 = landingpad { ptr, i32 }
          cleanup
  br label %117

100:                                              ; preds = %85
  %101 = invoke noundef zeroext i1 @_ZN5boost14operators_implgtERKN4CGAL4GmpqES4_(ptr noundef nonnull align 8 dereferenceable(8) %66, ptr noundef nonnull align 8 dereferenceable(8) %11)
          to label %102 unwind label %98

102:                                              ; preds = %100
  br i1 %101, label %103, label %113

103:                                              ; preds = %102
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %15) #6
  %104 = load i32, ptr %12, align 8, !tbaa !13
  %105 = sext i32 %104 to i64
  %106 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %8, i64 noundef %105)
          to label %107 unwind label %111

107:                                              ; preds = %103
  %108 = extractvalue { ptr, i64 } %106, 0
  store ptr %108, ptr %15, align 8
  %109 = extractvalue { ptr, i64 } %106, 1
  store i64 %109, ptr %67, align 8
  %110 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %15, i1 noundef zeroext false) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #6
  br label %113

111:                                              ; preds = %103
  %112 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #6
  br label %117

113:                                              ; preds = %102, %107, %86
  call void @_ZN4motoD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #6
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %114 = load i32, ptr %1, align 4, !tbaa !5
  %115 = sext i32 %114 to i64
  %116 = icmp slt i64 %indvars.iv.next, %115
  br i1 %116, label %79, label %._crit_edge95, !llvm.loop !21

117:                                              ; preds = %111, %98, %97
  %.pn64 = phi { ptr, i32 } [ %99, %98 ], [ %112, %111 ], [ %.pn61.pn, %97 ]
  call void @_ZN4motoD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #6
  br label %118

118:                                              ; preds = %117, %88
  %.pn64.pn = phi { ptr, i32 } [ %.pn64, %117 ], [ %89, %88 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #6
  br label %200

119:                                              ; preds = %._crit_edge95
  %120 = load i32, ptr %1, align 4, !tbaa !5
  %121 = icmp sgt i32 %120, 1
  br i1 %121, label %.lr.ph99, label %.preheader

.lr.ph99:                                         ; preds = %119
  %122 = add nsw i32 %120, -2
  %123 = getelementptr inbounds i8, ptr %16, i64 16
  %124 = getelementptr inbounds i8, ptr %21, i64 8
  %125 = zext nneg i32 %122 to i64
  br label %131

.preheader.loopexit:                              ; preds = %175
  %.pre = load i32, ptr %1, align 4, !tbaa !5
  br label %.preheader

.preheader:                                       ; preds = %.preheader.loopexit, %119
  %126 = phi i32 [ %.pre, %.preheader.loopexit ], [ %120, %119 ]
  %127 = icmp sgt i32 %126, 0
  br i1 %127, label %.lr.ph101, label %._crit_edge102

.lr.ph101:                                        ; preds = %.preheader
  %128 = getelementptr inbounds i8, ptr %22, i64 8
  br label %180

129:                                              ; preds = %._crit_edge102, %._crit_edge95
  %130 = landingpad { ptr, i32 }
          cleanup
  br label %200

131:                                              ; preds = %.lr.ph99, %175
  %indvars.iv106 = phi i64 [ %125, %.lr.ph99 ], [ %indvars.iv.next107, %175 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %16) #6
  %132 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI4motoSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv106) #6
  invoke void @_ZN4motoC2ERKS_(ptr noundef nonnull align 8 dereferenceable(24) %16, ptr noundef nonnull align 8 dereferenceable(24) %132)
          to label %133 unwind label %145

133:                                              ; preds = %131
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #6
  invoke void @_ZN4CGAL3absINS_4GmpqEEENS_22Real_embeddable_traitsIT_E3Abs11result_typeERKS3_(ptr dead_on_unwind nonnull writable sret(%"class.CGAL::Gmpq") align 8 %17, ptr noundef nonnull align 8 dereferenceable(8) %123)
          to label %134 unwind label %147

134:                                              ; preds = %133
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #6
  invoke void @_ZN4CGAL3absINS_4GmpqEEENS_22Real_embeddable_traitsIT_E3Abs11result_typeERKS3_(ptr dead_on_unwind nonnull writable sret(%"class.CGAL::Gmpq") align 8 %18, ptr noundef nonnull align 8 dereferenceable(8) %11)
          to label %135 unwind label %149

135:                                              ; preds = %134
  %136 = call noundef zeroext i1 @_ZNK4CGAL4GmpqltERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %18)
  br i1 %136, label %.critedge78, label %137

137:                                              ; preds = %135
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #6
  invoke void @_ZN4CGAL3absINS_4GmpqEEENS_22Real_embeddable_traitsIT_E3Abs11result_typeERKS3_(ptr dead_on_unwind nonnull writable sret(%"class.CGAL::Gmpq") align 8 %19, ptr noundef nonnull align 8 dereferenceable(8) %123)
          to label %138 unwind label %151

138:                                              ; preds = %137
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %20) #6
  invoke void @_ZN4CGAL3absINS_4GmpqEEENS_22Real_embeddable_traitsIT_E3Abs11result_typeERKS3_(ptr dead_on_unwind nonnull writable sret(%"class.CGAL::Gmpq") align 8 %20, ptr noundef nonnull align 8 dereferenceable(8) %11)
          to label %139 unwind label %153

139:                                              ; preds = %138
  %140 = call noundef zeroext i1 @_ZNK4CGAL4GmpqeqERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) %20) #6
  br i1 %140, label %141, label %.critedge79

141:                                              ; preds = %139
  %142 = invoke noundef zeroext i1 @_ZN5boost14operators_implgtERKN4CGAL4GmpqES4_(ptr noundef nonnull align 8 dereferenceable(8) %123, ptr noundef nonnull align 8 dereferenceable(8) %11)
          to label %.critedge unwind label %155

.critedge:                                        ; preds = %141
  call void @_ZN4CGAL10Handle_forINS_8Gmpq_repESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #6
  call void @_ZN4CGAL10Handle_forINS_8Gmpq_repESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #6
  call void @_ZN4CGAL10Handle_forINS_8Gmpq_repESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #6
  call void @_ZN4CGAL10Handle_forINS_8Gmpq_repESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #6
  br i1 %142, label %143, label %163

.critedge78:                                      ; preds = %135
  call void @_ZN4CGAL10Handle_forINS_8Gmpq_repESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #6
  call void @_ZN4CGAL10Handle_forINS_8Gmpq_repESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #6
  br label %143

143:                                              ; preds = %.critedge78, %.critedge
  %144 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4CGAL4GmpqaSERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %123)
          to label %175 unwind label %161

145:                                              ; preds = %131
  %146 = landingpad { ptr, i32 }
          cleanup
  br label %178

147:                                              ; preds = %133
  %148 = landingpad { ptr, i32 }
          cleanup
  br label %160

149:                                              ; preds = %134
  %150 = landingpad { ptr, i32 }
          cleanup
  br label %159

151:                                              ; preds = %137
  %152 = landingpad { ptr, i32 }
          cleanup
  br label %158

153:                                              ; preds = %138
  %154 = landingpad { ptr, i32 }
          cleanup
  br label %157

155:                                              ; preds = %141
  %156 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4CGAL10Handle_forINS_8Gmpq_repESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %20) #6
  br label %157

157:                                              ; preds = %153, %155
  %.pn53 = phi { ptr, i32 } [ %156, %155 ], [ %154, %153 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #6
  call void @_ZN4CGAL10Handle_forINS_8Gmpq_repESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %19) #6
  br label %158

158:                                              ; preds = %151, %157
  %.pn53.pn = phi { ptr, i32 } [ %.pn53, %157 ], [ %152, %151 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #6
  call void @_ZN4CGAL10Handle_forINS_8Gmpq_repESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %18) #6
  br label %159

159:                                              ; preds = %158, %149
  %.pn53.pn.pn = phi { ptr, i32 } [ %.pn53.pn, %158 ], [ %150, %149 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #6
  call void @_ZN4CGAL10Handle_forINS_8Gmpq_repESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %17) #6
  br label %160

160:                                              ; preds = %159, %147
  %.pn53.pn.pn.pn = phi { ptr, i32 } [ %.pn53.pn.pn, %159 ], [ %148, %147 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #6
  br label %177

161:                                              ; preds = %143
  %162 = landingpad { ptr, i32 }
          cleanup
  br label %177

.critedge79:                                      ; preds = %139
  call void @_ZN4CGAL10Handle_forINS_8Gmpq_repESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #6
  call void @_ZN4CGAL10Handle_forINS_8Gmpq_repESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #6
  call void @_ZN4CGAL10Handle_forINS_8Gmpq_repESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #6
  call void @_ZN4CGAL10Handle_forINS_8Gmpq_repESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #6
  br label %163

163:                                              ; preds = %.critedge79, %.critedge
  %164 = call noundef zeroext i1 @_ZNK4CGAL4GmpqltERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %123, ptr noundef nonnull align 8 dereferenceable(8) %11)
  br i1 %164, label %165, label %175

165:                                              ; preds = %163
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %21) #6
  %166 = load i32, ptr %16, align 8, !tbaa !13
  %167 = sext i32 %166 to i64
  %168 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %8, i64 noundef %167)
          to label %169 unwind label %173

169:                                              ; preds = %165
  %170 = extractvalue { ptr, i64 } %168, 0
  store ptr %170, ptr %21, align 8
  %171 = extractvalue { ptr, i64 } %168, 1
  store i64 %171, ptr %124, align 8
  %172 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %21, i1 noundef zeroext false) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #6
  br label %175

173:                                              ; preds = %165
  %174 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #6
  br label %177

175:                                              ; preds = %163, %169, %143
  call void @_ZN4motoD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %16) #6
  %indvars.iv.next107 = add nsw i64 %indvars.iv106, -1
  %176 = icmp sgt i64 %indvars.iv106, 0
  br i1 %176, label %131, label %.preheader.loopexit, !llvm.loop !22

177:                                              ; preds = %173, %161, %160
  %.pn58 = phi { ptr, i32 } [ %162, %161 ], [ %174, %173 ], [ %.pn53.pn.pn.pn, %160 ]
  call void @_ZN4motoD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #6
  br label %178

178:                                              ; preds = %177, %145
  %.pn58.pn = phi { ptr, i32 } [ %.pn58, %177 ], [ %146, %145 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %16) #6
  br label %200

._crit_edge102:                                   ; preds = %195, %.preheader
  %179 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %199 unwind label %129

180:                                              ; preds = %.lr.ph101, %195
  %indvars.iv109 = phi i64 [ 0, %.lr.ph101 ], [ %indvars.iv.next110, %195 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %22) #6
  %181 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %8, i64 noundef %indvars.iv109)
          to label %182 unwind label %191

182:                                              ; preds = %180
  %183 = extractvalue { ptr, i64 } %181, 0
  store ptr %183, ptr %22, align 8
  %184 = extractvalue { ptr, i64 } %181, 1
  store i64 %184, ptr %128, align 8
  %185 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %22) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %22) #6
  br i1 %185, label %186, label %195

186:                                              ; preds = %182
  %187 = trunc nuw nsw i64 %indvars.iv109 to i32
  %188 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %187)
          to label %189 unwind label %193

189:                                              ; preds = %186
  %190 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %188, i8 noundef signext 32)
          to label %195 unwind label %193

191:                                              ; preds = %180
  %192 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %22) #6
  br label %200

193:                                              ; preds = %189, %186
  %194 = landingpad { ptr, i32 }
          cleanup
  br label %200

195:                                              ; preds = %182, %189
  %indvars.iv.next110 = add nuw nsw i64 %indvars.iv109, 1
  %196 = load i32, ptr %1, align 4, !tbaa !5
  %197 = sext i32 %196 to i64
  %198 = icmp slt i64 %indvars.iv.next110, %197
  br i1 %198, label %180, label %._crit_edge102, !llvm.loop !23

199:                                              ; preds = %._crit_edge102
  call void @_ZN4CGAL10Handle_forINS_8Gmpq_repESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %8) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %8) #6
  call void @_ZNSt6vectorI4motoSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #6
  ret void

200:                                              ; preds = %191, %193, %178, %129, %118
  %.pn64.pn.pn = phi { ptr, i32 } [ %.pn64.pn, %118 ], [ %.pn58.pn, %178 ], [ %130, %129 ], [ %194, %193 ], [ %192, %191 ]
  call void @_ZN4CGAL10Handle_forINS_8Gmpq_repESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #6
  br label %201

201:                                              ; preds = %200, %77
  %.pn64.pn.pn.pn = phi { ptr, i32 } [ %.pn64.pn.pn, %200 ], [ %78, %77 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
  br label %202

202:                                              ; preds = %201, %75
  %.pn64.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn64.pn.pn.pn, %201 ], [ %76, %75 ]
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %8) #6
  br label %203

203:                                              ; preds = %202, %73
  %.pn64.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn64.pn.pn.pn.pn, %202 ], [ %74, %73 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %8) #6
  br label %204

204:                                              ; preds = %203, %57
  %.pn71.pn.pn.pn = phi { ptr, i32 } [ %.pn71.pn.pn, %57 ], [ %.pn64.pn.pn.pn.pn.pn, %203 ]
  call void @_ZNSt6vectorI4motoSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #6
  resume { ptr, i32 } %.pn71.pn.pn.pn
}

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

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 nounwind uwtable
declare dso_local void @_ZNSt6vectorI4motoSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2

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

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

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

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

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

; 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 nounwind uwtable
declare dso_local void @_ZNSaIbEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIbSaIbEEC2EmRKbRKS0_(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZSt4sortIN9__gnu_cxx17__normal_iteratorIP4motoSt6vectorIS2_SaIS2_EEEEZ5solvevE3$_0EvT_S9_T0_"(ptr, ptr) local_unnamed_addr #4

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN5boost14operators_implleERKN4CGAL4GmpqES4_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN5boost14operators_implgtERKN4CGAL4GmpqES4_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16), i1 noundef zeroext) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4CGAL4GmpqltERKS0_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4CGAL4GmpqeqERKS0_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3 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 #4

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 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 nounwind uwtable
declare dso_local void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #3 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4CGAL10Handle_forINS_8Gmpq_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 = !{!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 = !{!"bool", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !6, i64 0}
!14 = !{!"_ZTS4moto", !6, i64 0, !12, i64 8, !15, i64 16}
!15 = !{!"_ZTSN4CGAL4GmpqE", !16, i64 0}
!16 = !{!"_ZTSN4CGAL10Handle_forINS_8Gmpq_repESaIS1_EEE", !17, i64 0}
!17 = !{!"any pointer", !7, i64 0}
!18 = !{!14, !12, i64 8}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}
!22 = distinct !{!22, !20}
!23 = distinct !{!23, !20}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass