; LLVM IR from Discngine/fpocket :: src/qhull/src/libqhullcpp/RboxPoints.ll (ZN8orgQhull10RboxPoints12appendPointsEPKc)

; 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::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::allocator.0" = type { i8 }
%struct.qhT = type { i32, i32, i32, double, i32, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, i32, ptr, i32, i32, ptr, i32, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, double, double, i32, double, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [29 x i32], i32, i32, i32, i32, i32, i32, i32, i32, i32, double, double, double, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, double, i32, i32, i32, i32, i32, i32, i32, i32, double, i32, ptr, ptr, i32, i32, i32, i32, i32, ptr, i32, ptr, i32, [256 x i8], i32, [256 x i8], [512 x i8], i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, double, double, double, double, double, double, double, double, double, double, double, double, double, i32, ptr, double, double, double, double, [6 x i8], [1 x %struct.__jmp_buf_tag], [40 x i8], [1 x %struct.__jmp_buf_tag], [40 x i8], ptr, ptr, ptr, ptr, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, i32, i32, ptr, i32, ptr, ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i64, i32, i32, i32, i32, ptr, i32, i32, double, i32, double, double, double, i32, i32, i32, i32, double, double, i32, i32, i32, i32, double, double, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, ptr, ptr, i32, i32, i32, ptr, double, double, double, i32, i32, ptr, i32, i32, [1 x %struct.__jmp_buf_tag], [40 x i8], i32, double, ptr, %struct.qhmemT, %struct.qhstatT }
%struct.__jmp_buf_tag = type { [8 x i64], i32, %struct.__sigset_t }
%struct.__sigset_t = type { [16 x i64] }
%struct.qhmemT = type { i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, i32, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%struct.qhstatT = type { [227 x %union.intrealT], [237 x i8], [227 x ptr], [227 x i16], [227 x i8], [227 x i8], [9 x %union.intrealT], i32, i32, i32, i32, double }
%union.intrealT = type { double }
%"class.orgQhull::RboxPoints" = type { %"class.orgQhull::PointCoordinates", i32, i32, %"class.std::__cxx11::basic_string" }
%"class.orgQhull::PointCoordinates" = type { %"class.orgQhull::QhullPoints.base", %"class.orgQhull::Coordinates", %"class.std::__cxx11::basic_string" }
%"class.orgQhull::QhullPoints.base" = type <{ ptr, ptr, ptr, i32 }>
%"class.orgQhull::Coordinates" = type { %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@.str.3 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [94 x i8], align 1
@_ZTIN8orgQhull10QhullErrorE = external dso_local constant { ptr, ptr, ptr }, align 8
@.str.5 = external hidden unnamed_addr constant [87 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [62 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [73 x i8], align 1

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

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8orgQhull10RboxPoints12appendPointsEPKc(ptr noundef nonnull align 8 dereferenceable(128) %0, ptr noundef %1) #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %"class.std::__cxx11::basic_string", align 8
  %6 = alloca %"class.std::allocator.0", align 1
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca %"class.std::__cxx11::basic_string", align 8
  %11 = alloca i1, align 1
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca %"class.std::__cxx11::basic_string", align 8
  %15 = alloca i1, align 1
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %16 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr %5) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %6) #4
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #4
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef @.str.3, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %17 unwind label %30

17:                                               ; preds = %2
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #4
  %18 = load ptr, ptr %4, align 8, !tbaa !5
  %19 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEPKc(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef %18)
          to label %20 unwind label %34

20:                                               ; preds = %17
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %21 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %5) #4
  store ptr %21, ptr %9, align 8, !tbaa !5
  %22 = invoke noundef ptr @_ZNK8orgQhull11QhullPoints2qhEv(ptr noundef nonnull align 8 dereferenceable(28) %16)
          to label %23 unwind label %38

23:                                               ; preds = %20
  %24 = getelementptr inbounds %struct.qhT, ptr %22, i32 0, i32 232
  %25 = load ptr, ptr %24, align 8, !tbaa !9
  %26 = icmp ne ptr %25, null
  br i1 %26, label %27, label %46

27:                                               ; preds = %23
  %28 = call ptr @__cxa_allocate_exception(i64 80) #4
  invoke void @_ZN8orgQhull10QhullErrorC2EiPKc(ptr noundef nonnull align 8 dereferenceable(80) %28, i32 noundef 10001, ptr noundef @.str.4)
          to label %29 unwind label %42

29:                                               ; preds = %27
  invoke void @__cxa_throw(ptr %28, ptr @_ZTIN8orgQhull10QhullErrorE, ptr @_ZN8orgQhull9RoadErrorD2Ev) #5
          to label %178 unwind label %38

30:                                               ; preds = %2
  %31 = landingpad { ptr, i32 }
          cleanup
  %32 = extractvalue { ptr, i32 } %31, 0
  store ptr %32, ptr %7, align 8
  %33 = extractvalue { ptr, i32 } %31, 1
  store i32 %33, ptr %8, align 4
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #4
  br label %172

34:                                               ; preds = %17
  %35 = landingpad { ptr, i32 }
          cleanup
  %36 = extractvalue { ptr, i32 } %35, 0
  store ptr %36, ptr %7, align 8
  %37 = extractvalue { ptr, i32 } %35, 1
  store i32 %37, ptr %8, align 4
  br label %171

38:                                               ; preds = %46, %29, %20
  %39 = landingpad { ptr, i32 }
          cleanup
  %40 = extractvalue { ptr, i32 } %39, 0
  store ptr %40, ptr %7, align 8
  %41 = extractvalue { ptr, i32 } %39, 1
  store i32 %41, ptr %8, align 4
  br label %170

42:                                               ; preds = %27
  %43 = landingpad { ptr, i32 }
          cleanup
  %44 = extractvalue { ptr, i32 } %43, 0
  store ptr %44, ptr %7, align 8
  %45 = extractvalue { ptr, i32 } %43, 1
  store i32 %45, ptr %8, align 4
  call void @__cxa_free_exception(ptr %28) #4
  br label %170

46:                                               ; preds = %23
  %47 = invoke noundef i32 @_ZNK8orgQhull11QhullPoints21extraCoordinatesCountEv(ptr noundef nonnull align 8 dereferenceable(28) %16)
          to label %48 unwind label %38

48:                                               ; preds = %46
  %49 = icmp ne i32 %47, 0
  br i1 %49, label %50, label %74

50:                                               ; preds = %48
  store i1 true, ptr %11, align 1
  %51 = call ptr @__cxa_allocate_exception(i64 80) #4
  %52 = invoke noundef i32 @_ZNK8orgQhull11QhullPoints21extraCoordinatesCountEv(ptr noundef nonnull align 8 dereferenceable(28) %16)
          to label %53 unwind label %57

53:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 32, ptr %10) #4
  invoke void @_ZNK8orgQhull16PointCoordinates7commentB5cxx11Ev(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %10, ptr noundef nonnull align 8 dereferenceable(88) %16)
          to label %54 unwind label %61

54:                                               ; preds = %53
  %55 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %10) #4
  invoke void @_ZN8orgQhull10QhullErrorC2EiPKciifS2_(ptr noundef nonnull align 8 dereferenceable(80) %51, i32 noundef 10067, ptr noundef @.str.5, i32 noundef %52, i32 noundef 0, float noundef 0.000000e+00, ptr noundef %55)
          to label %56 unwind label %65

56:                                               ; preds = %54
  store i1 false, ptr %11, align 1
  invoke void @__cxa_throw(ptr %51, ptr @_ZTIN8orgQhull10QhullErrorE, ptr @_ZN8orgQhull9RoadErrorD2Ev) #5
          to label %178 unwind label %65

57:                                               ; preds = %50
  %58 = landingpad { ptr, i32 }
          cleanup
  %59 = extractvalue { ptr, i32 } %58, 0
  store ptr %59, ptr %7, align 8
  %60 = extractvalue { ptr, i32 } %58, 1
  store i32 %60, ptr %8, align 4
  br label %70

61:                                               ; preds = %53
  %62 = landingpad { ptr, i32 }
          cleanup
  %63 = extractvalue { ptr, i32 } %62, 0
  store ptr %63, ptr %7, align 8
  %64 = extractvalue { ptr, i32 } %62, 1
  store i32 %64, ptr %8, align 4
  br label %69

65:                                               ; preds = %56, %54
  %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
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #4
  br label %69

69:                                               ; preds = %65, %61
  call void @llvm.lifetime.end.p0(i64 32, ptr %10) #4
  br label %70

70:                                               ; preds = %69, %57
  %71 = load i1, ptr %11, align 1
  br i1 %71, label %72, label %73

72:                                               ; preds = %70
  call void @__cxa_free_exception(ptr %51) #4
  br label %73

73:                                               ; preds = %72, %70
  br label %170

74:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  %75 = invoke noundef i32 @_ZNK8orgQhull11QhullPoints5countEv(ptr noundef nonnull align 8 dereferenceable(28) %16)
          to label %76 unwind label %94

76:                                               ; preds = %74
  store i32 %75, ptr %12, align 4, !tbaa !17
  %77 = invoke noundef ptr @_ZNK8orgQhull11QhullPoints2qhEv(ptr noundef nonnull align 8 dereferenceable(28) %16)
          to label %78 unwind label %94

78:                                               ; preds = %76
  %79 = getelementptr inbounds %struct.qhT, ptr %77, i32 0, i32 232
  store ptr %16, ptr %79, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  %80 = invoke noundef ptr @_ZNK8orgQhull11QhullPoints2qhEv(ptr noundef nonnull align 8 dereferenceable(28) %16)
          to label %81 unwind label %98

81:                                               ; preds = %78
  %82 = load ptr, ptr %9, align 8, !tbaa !5
  %83 = invoke i32 @qh_rboxpoints(ptr noundef %80, ptr noundef %82)
          to label %84 unwind label %98

84:                                               ; preds = %81
  store i32 %83, ptr %13, align 4, !tbaa !17
  %85 = invoke noundef ptr @_ZNK8orgQhull11QhullPoints2qhEv(ptr noundef nonnull align 8 dereferenceable(28) %16)
          to label %86 unwind label %98

86:                                               ; preds = %84
  %87 = getelementptr inbounds %struct.qhT, ptr %85, i32 0, i32 232
  store ptr null, ptr %87, align 8, !tbaa !9
  %88 = getelementptr inbounds %"class.orgQhull::RboxPoints", ptr %16, i32 0, i32 2
  %89 = load i32, ptr %88, align 4, !tbaa !18
  %90 = icmp eq i32 %89, 0
  br i1 %90, label %91, label %102

91:                                               ; preds = %86
  %92 = load i32, ptr %13, align 4, !tbaa !17
  %93 = getelementptr inbounds %"class.orgQhull::RboxPoints", ptr %16, i32 0, i32 2
  store i32 %92, ptr %93, align 4, !tbaa !18
  br label %102

94:                                               ; preds = %76, %74
  %95 = landingpad { ptr, i32 }
          cleanup
  %96 = extractvalue { ptr, i32 } %95, 0
  store ptr %96, ptr %7, align 8
  %97 = extractvalue { ptr, i32 } %95, 1
  store i32 %97, ptr %8, align 4
  br label %169

98:                                               ; preds = %134, %131, %126, %116, %111, %84, %81, %78
  %99 = landingpad { ptr, i32 }
          cleanup
  %100 = extractvalue { ptr, i32 } %99, 0
  store ptr %100, ptr %7, align 8
  %101 = extractvalue { ptr, i32 } %99, 1
  store i32 %101, ptr %8, align 4
  br label %168

102:                                              ; preds = %91, %86
  %103 = getelementptr inbounds %"class.orgQhull::RboxPoints", ptr %16, i32 0, i32 2
  %104 = load i32, ptr %103, align 4, !tbaa !18
  %105 = icmp ne i32 %104, 0
  br i1 %105, label %106, label %116

106:                                              ; preds = %102
  %107 = call ptr @__cxa_allocate_exception(i64 80) #4
  %108 = getelementptr inbounds %"class.orgQhull::RboxPoints", ptr %16, i32 0, i32 2
  %109 = load i32, ptr %108, align 4, !tbaa !18
  %110 = getelementptr inbounds %"class.orgQhull::RboxPoints", ptr %16, i32 0, i32 3
  invoke void @_ZN8orgQhull10QhullErrorC2EiRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(80) %107, i32 noundef %109, ptr noundef nonnull align 8 dereferenceable(32) %110)
          to label %111 unwind label %112

111:                                              ; preds = %106
  invoke void @__cxa_throw(ptr %107, ptr @_ZTIN8orgQhull10QhullErrorE, ptr @_ZN8orgQhull9RoadErrorD2Ev) #5
          to label %178 unwind label %98

112:                                              ; preds = %106
  %113 = landingpad { ptr, i32 }
          cleanup
  %114 = extractvalue { ptr, i32 } %113, 0
  store ptr %114, ptr %7, align 8
  %115 = extractvalue { ptr, i32 } %113, 1
  store i32 %115, ptr %8, align 4
  call void @__cxa_free_exception(ptr %107) #4
  br label %168

116:                                              ; preds = %102
  %117 = invoke noundef i32 @_ZNK8orgQhull11QhullPoints21extraCoordinatesCountEv(ptr noundef nonnull align 8 dereferenceable(28) %16)
          to label %118 unwind label %98

118:                                              ; preds = %116
  %119 = icmp ne i32 %117, 0
  br i1 %119, label %120, label %131

120:                                              ; preds = %118
  %121 = call ptr @__cxa_allocate_exception(i64 80) #4
  %122 = invoke noundef i32 @_ZNK8orgQhull11QhullPoints21extraCoordinatesCountEv(ptr noundef nonnull align 8 dereferenceable(28) %16)
          to label %123 unwind label %127

123:                                              ; preds = %120
  %124 = invoke noundef ptr @_ZNK8orgQhull11QhullPoints11coordinatesEv(ptr noundef nonnull align 8 dereferenceable(28) %16)
          to label %125 unwind label %127

125:                                              ; preds = %123
  invoke void @_ZN8orgQhull10QhullErrorC2EiPKciifPKv(ptr noundef nonnull align 8 dereferenceable(80) %121, i32 noundef 10002, ptr noundef @.str.6, i32 noundef %122, i32 noundef 0, float noundef 0.000000e+00, ptr noundef %124)
          to label %126 unwind label %127

126:                                              ; preds = %125
  invoke void @__cxa_throw(ptr %121, ptr @_ZTIN8orgQhull10QhullErrorE, ptr @_ZN8orgQhull9RoadErrorD2Ev) #5
          to label %178 unwind label %98

127:                                              ; preds = %125, %123, %120
  %128 = landingpad { ptr, i32 }
          cleanup
  %129 = extractvalue { ptr, i32 } %128, 0
  store ptr %129, ptr %7, align 8
  %130 = extractvalue { ptr, i32 } %128, 1
  store i32 %130, ptr %8, align 4
  call void @__cxa_free_exception(ptr %121) #4
  br label %168

131:                                              ; preds = %118
  %132 = load i32, ptr %12, align 4, !tbaa !17
  %133 = invoke noundef i32 @_ZNK8orgQhull10RboxPoints8newCountEv(ptr noundef nonnull align 8 dereferenceable(128) %16)
          to label %134 unwind label %98

134:                                              ; preds = %131
  %135 = add nsw i32 %132, %133
  %136 = invoke noundef i32 @_ZNK8orgQhull11QhullPoints5countEv(ptr noundef nonnull align 8 dereferenceable(28) %16)
          to label %137 unwind label %98

137:                                              ; preds = %134
  %138 = icmp ne i32 %135, %136
  br i1 %138, label %139, label %167

139:                                              ; preds = %137
  store i1 true, ptr %15, align 1
  %140 = call ptr @__cxa_allocate_exception(i64 80) #4
  %141 = invoke noundef i32 @_ZNK8orgQhull10RboxPoints8newCountEv(ptr noundef nonnull align 8 dereferenceable(128) %16)
          to label %142 unwind label %150

142:                                              ; preds = %139
  %143 = invoke noundef i32 @_ZNK8orgQhull11QhullPoints5countEv(ptr noundef nonnull align 8 dereferenceable(28) %16)
          to label %144 unwind label %150

144:                                              ; preds = %142
  %145 = load i32, ptr %12, align 4, !tbaa !17
  %146 = sub nsw i32 %143, %145
  call void @llvm.lifetime.start.p0(i64 32, ptr %14) #4
  invoke void @_ZNK8orgQhull16PointCoordinates7commentB5cxx11Ev(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %14, ptr noundef nonnull align 8 dereferenceable(88) %16)
          to label %147 unwind label %154

147:                                              ; preds = %144
  %148 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %14) #4
  invoke void @_ZN8orgQhull10QhullErrorC2EiPKciifS2_(ptr noundef nonnull align 8 dereferenceable(80) %140, i32 noundef 10068, ptr noundef @.str.7, i32 noundef %141, i32 noundef %146, float noundef 0.000000e+00, ptr noundef %148)
          to label %149 unwind label %158

149:                                              ; preds = %147
  store i1 false, ptr %15, align 1
  invoke void @__cxa_throw(ptr %140, ptr @_ZTIN8orgQhull10QhullErrorE, ptr @_ZN8orgQhull9RoadErrorD2Ev) #5
          to label %178 unwind label %158

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

154:                                              ; preds = %144
  %155 = landingpad { ptr, i32 }
          cleanup
  %156 = extractvalue { ptr, i32 } %155, 0
  store ptr %156, ptr %7, align 8
  %157 = extractvalue { ptr, i32 } %155, 1
  store i32 %157, ptr %8, align 4
  br label %162

158:                                              ; preds = %149, %147
  %159 = landingpad { ptr, i32 }
          cleanup
  %160 = extractvalue { ptr, i32 } %159, 0
  store ptr %160, ptr %7, align 8
  %161 = extractvalue { ptr, i32 } %159, 1
  store i32 %161, ptr %8, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #4
  br label %162

162:                                              ; preds = %158, %154
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #4
  br label %163

163:                                              ; preds = %162, %150
  %164 = load i1, ptr %15, align 1
  br i1 %164, label %165, label %166

165:                                              ; preds = %163
  call void @__cxa_free_exception(ptr %140) #4
  br label %166

166:                                              ; preds = %165, %163
  br label %168

167:                                              ; preds = %137
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %5) #4
  ret void

168:                                              ; preds = %166, %127, %112, %98
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  br label %169

169:                                              ; preds = %168, %94
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  br label %170

170:                                              ; preds = %169, %73, %42, %38
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  br label %171

171:                                              ; preds = %170, %34
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #4
  br label %172

172:                                              ; preds = %171, %30
  call void @llvm.lifetime.end.p0(i64 32, ptr %5) #4
  br label %173

173:                                              ; preds = %172
  %174 = load ptr, ptr %7, align 8
  %175 = load i32, ptr %8, align 4
  %176 = insertvalue { ptr, i32 } poison, ptr %174, 0
  %177 = insertvalue { ptr, i32 } %176, i32 %175, 1
  resume { ptr, i32 } %177

178:                                              ; preds = %149, %126, %111, %56, %29
  unreachable
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK8orgQhull11QhullPoints2qhEv(ptr noundef nonnull align 8 dereferenceable(28)) #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32)) #1 align 2

declare ptr @__cxa_allocate_exception(i64)

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

declare void @__cxa_free_exception(ptr)

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

declare void @__cxa_throw(ptr, ptr, ptr)

declare noundef i32 @_ZNK8orgQhull11QhullPoints21extraCoordinatesCountEv(ptr noundef nonnull align 8 dereferenceable(28)) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK8orgQhull16PointCoordinates7commentB5cxx11Ev(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(88)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8orgQhull10QhullErrorC2EiPKciifS2_(ptr noundef nonnull align 8 dereferenceable(80), i32 noundef, ptr noundef, i32 noundef, i32 noundef, float noundef, ptr noundef) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK8orgQhull11QhullPoints5countEv(ptr noundef nonnull align 8 dereferenceable(28)) #2 align 2

declare i32 @qh_rboxpoints(ptr noundef, ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8orgQhull10QhullErrorC2EiRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(80), i32 noundef, ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK8orgQhull11QhullPoints11coordinatesEv(ptr noundef nonnull align 8 dereferenceable(28)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8orgQhull10QhullErrorC2EiPKciifPKv(ptr noundef nonnull align 8 dereferenceable(80), i32 noundef, ptr noundef, i32 noundef, i32 noundef, float noundef, ptr noundef) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK8orgQhull10RboxPoints8newCountEv(ptr noundef nonnull align 8 dereferenceable(128)) #1 align 2

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

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

!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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 3144}
!10 = !{!"_ZTS3qhT", !11, i64 0, !11, i64 4, !11, i64 8, !12, i64 16, !11, i64 24, !11, i64 28, !11, i64 32, !11, i64 36, !11, i64 40, !11, i64 44, !11, i64 48, !12, i64 56, !12, i64 64, !11, i64 72, !11, i64 76, !11, i64 80, !11, i64 84, !11, i64 88, !6, i64 96, !11, i64 104, !11, i64 108, !6, i64 112, !11, i64 120, !11, i64 124, !11, i64 128, !11, i64 132, !11, i64 136, !11, i64 140, !11, i64 144, !12, i64 152, !12, i64 160, !11, i64 168, !11, i64 172, !11, i64 176, !12, i64 184, !12, i64 192, !11, i64 200, !12, i64 208, !11, i64 216, !11, i64 220, !11, i64 224, !11, i64 228, !11, i64 232, !11, i64 236, !11, i64 240, !11, i64 244, !11, i64 248, !11, i64 252, !11, i64 256, !11, i64 260, !11, i64 264, !11, i64 268, !11, i64 272, !11, i64 276, !11, i64 280, !11, i64 284, !11, i64 288, !11, i64 292, !7, i64 296, !11, i64 412, !11, i64 416, !11, i64 420, !11, i64 424, !11, i64 428, !11, i64 432, !11, i64 436, !11, i64 440, !11, i64 444, !12, i64 448, !12, i64 456, !12, i64 464, !11, i64 472, !11, i64 476, !11, i64 480, !11, i64 484, !11, i64 488, !11, i64 492, !11, i64 496, !11, i64 500, !11, i64 504, !11, i64 508, !11, i64 512, !11, i64 516, !11, i64 520, !11, i64 524, !11, i64 528, !11, i64 532, !11, i64 536, !11, i64 540, !12, i64 544, !11, i64 552, !11, i64 556, !11, i64 560, !11, i64 564, !11, i64 568, !11, i64 572, !11, i64 576, !11, i64 580, !12, i64 584, !11, i64 592, !6, i64 600, !6, i64 608, !11, i64 616, !11, i64 620, !11, i64 624, !11, i64 628, !11, i64 632, !6, i64 640, !11, i64 648, !6, i64 656, !11, i64 664, !7, i64 668, !11, i64 924, !7, i64 928, !7, i64 1184, !11, i64 1696, !11, i64 1700, !11, i64 1704, !11, i64 1708, !11, i64 1712, !11, i64 1716, !6, i64 1720, !6, i64 1728, !6, i64 1736, !6, i64 1744, !12, i64 1752, !12, i64 1760, !12, i64 1768, !12, i64 1776, !12, i64 1784, !12, i64 1792, !12, i64 1800, !12, i64 1808, !12, i64 1816, !12, i64 1824, !12, i64 1832, !12, i64 1840, !12, i64 1848, !11, i64 1856, !6, i64 1864, !12, i64 1872, !12, i64 1880, !12, i64 1888, !12, i64 1896, !7, i64 1904, !7, i64 1912, !7, i64 2112, !7, i64 2152, !7, i64 2352, !6, i64 2392, !6, i64 2400, !6, i64 2408, !6, i64 2416, !11, i64 2424, !11, i64 2428, !11, i64 2432, !6, i64 2440, !6, i64 2448, !6, i64 2456, !6, i64 2464, !6, i64 2472, !11, i64 2480, !11, i64 2484, !6, i64 2488, !11, i64 2496, !6, i64 2504, !6, i64 2512, !6, i64 2520, !6, i64 2528, !11, i64 2536, !11, i64 2540, !11, i64 2544, !11, i64 2548, !11, i64 2552, !11, i64 2556, !11, i64 2560, !13, i64 2568, !11, i64 2576, !11, i64 2580, !14, i64 2584, !11, i64 2588, !6, i64 2592, !11, i64 2600, !11, i64 2604, !12, i64 2608, !11, i64 2616, !12, i64 2624, !12, i64 2632, !12, i64 2640, !11, i64 2648, !11, i64 2652, !11, i64 2656, !11, i64 2660, !12, i64 2664, !12, i64 2672, !11, i64 2680, !11, i64 2684, !11, i64 2688, !11, i64 2692, !12, i64 2696, !12, i64 2704, !11, i64 2712, !11, i64 2716, !11, i64 2720, !11, i64 2724, !6, i64 2728, !6, i64 2736, !6, i64 2744, !6, i64 2752, !6, i64 2760, !6, i64 2768, !6, i64 2776, !6, i64 2784, !11, i64 2792, !6, i64 2800, !6, i64 2808, !11, i64 2816, !11, i64 2820, !11, i64 2824, !6, i64 2832, !12, i64 2840, !12, i64 2848, !12, i64 2856, !11, i64 2864, !11, i64 2868, !6, i64 2872, !11, i64 2880, !11, i64 2884, !7, i64 2888, !7, i64 3088, !11, i64 3128, !12, i64 3136, !6, i64 3144, !15, i64 3152, !16, i64 3304}
!11 = !{!"int", !7, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!"long", !7, i64 0}
!14 = !{!"_ZTS9qh_CENTER", !7, i64 0}
!15 = !{!"_ZTS6qhmemT", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !11, i64 64, !6, i64 72, !6, i64 80, !11, i64 88, !11, i64 92, !11, i64 96, !11, i64 100, !11, i64 104, !11, i64 108, !11, i64 112, !11, i64 116, !11, i64 120, !11, i64 124, !11, i64 128, !11, i64 132, !11, i64 136, !11, i64 140, !11, i64 144}
!16 = !{!"_ZTS7qhstatT", !7, i64 0, !7, i64 1816, !7, i64 2056, !7, i64 3872, !7, i64 4326, !7, i64 4553, !7, i64 4784, !11, i64 4856, !11, i64 4860, !11, i64 4864, !11, i64 4868, !12, i64 4872}
!17 = !{!11, !11, i64 0}
!18 = !{!19, !11, i64 92}
!19 = !{!"_ZTSN8orgQhull10RboxPointsE", !20, i64 0, !11, i64 88, !11, i64 92, !27, i64 96}
!20 = !{!"_ZTSN8orgQhull16PointCoordinatesE", !21, i64 0, !22, i64 32, !27, i64 56}
!21 = !{!"_ZTSN8orgQhull11QhullPointsE", !6, i64 0, !6, i64 8, !6, i64 16, !11, i64 24}
!22 = !{!"_ZTSN8orgQhull11CoordinatesE", !23, i64 0}
!23 = !{!"_ZTSSt6vectorIdSaIdEE", !24, i64 0}
!24 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!27 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !28, i64 0, !13, i64 8, !7, i64 16}
!28 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}


; 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::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::allocator.0" = type { i8 }

@.str.3 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [94 x i8], align 1
@_ZTIN8orgQhull10QhullErrorE = external dso_local constant { ptr, ptr, ptr }, align 8
@.str.5 = external hidden unnamed_addr constant [87 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [62 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [73 x i8], align 1

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

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8orgQhull10RboxPoints12appendPointsEPKc(ptr noundef nonnull align 8 dereferenceable(128) %0, ptr noundef %1) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.std::__cxx11::basic_string", align 8
  %4 = alloca %"class.std::allocator.0", align 1
  %5 = alloca %"class.std::__cxx11::basic_string", align 8
  %6 = alloca %"class.std::__cxx11::basic_string", align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #4
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #4
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull @.str.3, ptr noundef nonnull align 1 dereferenceable(1) %4)
          to label %7 unwind label %17

7:                                                ; preds = %2
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #4
  %8 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEPKc(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef %1)
          to label %9 unwind label %19

9:                                                ; preds = %7
  %10 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %3) #4
  %11 = call noundef ptr @_ZNK8orgQhull11QhullPoints2qhEv(ptr noundef nonnull align 8 dereferenceable(28) %0)
  %12 = getelementptr inbounds i8, ptr %11, i64 3144
  %13 = load ptr, ptr %12, align 8, !tbaa !5
  %.not = icmp eq ptr %13, null
  br i1 %.not, label %25, label %14

14:                                               ; preds = %9
  %15 = call ptr @__cxa_allocate_exception(i64 80) #4
  invoke void @_ZN8orgQhull10QhullErrorC2EiPKc(ptr noundef nonnull align 8 dereferenceable(80) %15, i32 noundef 10001, ptr noundef nonnull @.str.4)
          to label %16 unwind label %23

16:                                               ; preds = %14
  invoke void @__cxa_throw(ptr nonnull %15, ptr nonnull @_ZTIN8orgQhull10QhullErrorE, ptr nonnull @_ZN8orgQhull9RoadErrorD2Ev) #5
          to label %98 unwind label %21

17:                                               ; preds = %2
  %18 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #4
  br label %97

19:                                               ; preds = %7
  %20 = landingpad { ptr, i32 }
          cleanup
  br label %96

21:                                               ; preds = %25, %16
  %22 = landingpad { ptr, i32 }
          cleanup
  br label %96

23:                                               ; preds = %14
  %24 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %15) #4
  br label %96

25:                                               ; preds = %9
  %26 = invoke noundef i32 @_ZNK8orgQhull11QhullPoints21extraCoordinatesCountEv(ptr noundef nonnull align 8 dereferenceable(28) %0)
          to label %27 unwind label %21

27:                                               ; preds = %25
  %.not24 = icmp eq i32 %26, 0
  br i1 %.not24, label %41, label %28

28:                                               ; preds = %27
  %29 = call ptr @__cxa_allocate_exception(i64 80) #4
  %30 = invoke noundef i32 @_ZNK8orgQhull11QhullPoints21extraCoordinatesCountEv(ptr noundef nonnull align 8 dereferenceable(28) %0)
          to label %31 unwind label %.thread

31:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #4
  invoke void @_ZNK8orgQhull16PointCoordinates7commentB5cxx11Ev(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %5, ptr noundef nonnull align 8 dereferenceable(88) %0)
          to label %32 unwind label %.thread43

32:                                               ; preds = %31
  %33 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %5) #4
  invoke void @_ZN8orgQhull10QhullErrorC2EiPKciifS2_(ptr noundef nonnull align 8 dereferenceable(80) %29, i32 noundef 10067, ptr noundef nonnull @.str.5, i32 noundef %30, i32 noundef 0, float noundef 0.000000e+00, ptr noundef %33)
          to label %35 unwind label %.thread46

.thread46:                                        ; preds = %32
  %34 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #4
  br label %40

35:                                               ; preds = %32
  invoke void @__cxa_throw(ptr nonnull %29, ptr nonnull @_ZTIN8orgQhull10QhullErrorE, ptr nonnull @_ZN8orgQhull9RoadErrorD2Ev) #5
          to label %98 unwind label %38

.thread:                                          ; preds = %28
  %36 = landingpad { ptr, i32 }
          cleanup
  br label %40

.thread43:                                        ; preds = %31
  %37 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #4
  br label %40

38:                                               ; preds = %35
  %39 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #4
  br label %96

40:                                               ; preds = %.thread46, %.thread43, %.thread
  %.pn33.pn42 = phi { ptr, i32 } [ %36, %.thread ], [ %37, %.thread43 ], [ %34, %.thread46 ]
  call void @__cxa_free_exception(ptr %29) #4
  br label %96

41:                                               ; preds = %27
  %42 = invoke noundef i32 @_ZNK8orgQhull11QhullPoints5countEv(ptr noundef nonnull align 8 dereferenceable(28) %0)
          to label %43 unwind label %54

43:                                               ; preds = %41
  %44 = call noundef ptr @_ZNK8orgQhull11QhullPoints2qhEv(ptr noundef nonnull align 8 dereferenceable(28) %0)
  %45 = getelementptr inbounds i8, ptr %44, i64 3144
  store ptr %0, ptr %45, align 8, !tbaa !5
  %46 = call noundef ptr @_ZNK8orgQhull11QhullPoints2qhEv(ptr noundef nonnull align 8 dereferenceable(28) %0)
  %47 = invoke i32 @qh_rboxpoints(ptr noundef %46, ptr noundef %10)
          to label %48 unwind label %56

48:                                               ; preds = %43
  %49 = call noundef ptr @_ZNK8orgQhull11QhullPoints2qhEv(ptr noundef nonnull align 8 dereferenceable(28) %0)
  %50 = getelementptr inbounds i8, ptr %49, i64 3144
  store ptr null, ptr %50, align 8, !tbaa !5
  %51 = getelementptr inbounds i8, ptr %0, i64 92
  %52 = load i32, ptr %51, align 4, !tbaa !16
  %53 = icmp eq i32 %52, 0
  br i1 %53, label %58, label %.thread48

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

56:                                               ; preds = %.invoke, %75, %64, %43
  %57 = landingpad { ptr, i32 }
          cleanup
  br label %96

58:                                               ; preds = %48
  store i32 %47, ptr %51, align 4, !tbaa !16
  %.not25 = icmp eq i32 %47, 0
  br i1 %.not25, label %64, label %.thread48

.thread48:                                        ; preds = %48, %58
  %59 = call ptr @__cxa_allocate_exception(i64 80) #4
  %60 = load i32, ptr %51, align 4, !tbaa !16
  %61 = getelementptr inbounds i8, ptr %0, i64 96
  invoke void @_ZN8orgQhull10QhullErrorC2EiRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(80) %59, i32 noundef %60, ptr noundef nonnull align 8 dereferenceable(32) %61)
          to label %.invoke unwind label %62

62:                                               ; preds = %.thread48
  %63 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %59) #4
  br label %96

64:                                               ; preds = %58
  %65 = invoke noundef i32 @_ZNK8orgQhull11QhullPoints21extraCoordinatesCountEv(ptr noundef nonnull align 8 dereferenceable(28) %0)
          to label %66 unwind label %56

66:                                               ; preds = %64
  %.not26 = icmp eq i32 %65, 0
  br i1 %.not26, label %75, label %67

67:                                               ; preds = %66
  %68 = call ptr @__cxa_allocate_exception(i64 80) #4
  %69 = invoke noundef i32 @_ZNK8orgQhull11QhullPoints21extraCoordinatesCountEv(ptr noundef nonnull align 8 dereferenceable(28) %0)
          to label %70 unwind label %73

70:                                               ; preds = %67
  %71 = call noundef ptr @_ZNK8orgQhull11QhullPoints11coordinatesEv(ptr noundef nonnull align 8 dereferenceable(28) %0)
  invoke void @_ZN8orgQhull10QhullErrorC2EiPKciifPKv(ptr noundef nonnull align 8 dereferenceable(80) %68, i32 noundef 10002, ptr noundef nonnull @.str.6, i32 noundef %69, i32 noundef 0, float noundef 0.000000e+00, ptr noundef %71)
          to label %.invoke unwind label %73

.invoke:                                          ; preds = %70, %.thread48
  %72 = phi ptr [ %59, %.thread48 ], [ %68, %70 ]
  invoke void @__cxa_throw(ptr nonnull %72, ptr nonnull @_ZTIN8orgQhull10QhullErrorE, ptr nonnull @_ZN8orgQhull9RoadErrorD2Ev) #5
          to label %.cont unwind label %56

.cont:                                            ; preds = %.invoke
  unreachable

73:                                               ; preds = %70, %67
  %74 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %68) #4
  br label %96

75:                                               ; preds = %66
  %76 = call noundef i32 @_ZNK8orgQhull10RboxPoints8newCountEv(ptr noundef nonnull align 8 dereferenceable(128) %0)
  %77 = invoke noundef i32 @_ZNK8orgQhull11QhullPoints5countEv(ptr noundef nonnull align 8 dereferenceable(28) %0)
          to label %78 unwind label %56

78:                                               ; preds = %75
  %79 = add nsw i32 %76, %42
  %.not27 = icmp eq i32 %79, %77
  br i1 %.not27, label %95, label %80

80:                                               ; preds = %78
  %81 = call ptr @__cxa_allocate_exception(i64 80) #4
  %82 = call noundef i32 @_ZNK8orgQhull10RboxPoints8newCountEv(ptr noundef nonnull align 8 dereferenceable(128) %0)
  %83 = invoke noundef i32 @_ZNK8orgQhull11QhullPoints5countEv(ptr noundef nonnull align 8 dereferenceable(28) %0)
          to label %84 unwind label %.thread50

84:                                               ; preds = %80
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #4
  invoke void @_ZNK8orgQhull16PointCoordinates7commentB5cxx11Ev(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %6, ptr noundef nonnull align 8 dereferenceable(88) %0)
          to label %85 unwind label %.thread54

85:                                               ; preds = %84
  %86 = sub nsw i32 %83, %42
  %87 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %6) #4
  invoke void @_ZN8orgQhull10QhullErrorC2EiPKciifS2_(ptr noundef nonnull align 8 dereferenceable(80) %81, i32 noundef 10068, ptr noundef nonnull @.str.7, i32 noundef %82, i32 noundef %86, float noundef 0.000000e+00, ptr noundef %87)
          to label %89 unwind label %.thread57

.thread57:                                        ; preds = %85
  %88 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #4
  br label %94

89:                                               ; preds = %85
  invoke void @__cxa_throw(ptr nonnull %81, ptr nonnull @_ZTIN8orgQhull10QhullErrorE, ptr nonnull @_ZN8orgQhull9RoadErrorD2Ev) #5
          to label %98 unwind label %92

.thread50:                                        ; preds = %80
  %90 = landingpad { ptr, i32 }
          cleanup
  br label %94

.thread54:                                        ; preds = %84
  %91 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #4
  br label %94

92:                                               ; preds = %89
  %93 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #4
  br label %96

94:                                               ; preds = %.thread57, %.thread54, %.thread50
  %.pn.pn53 = phi { ptr, i32 } [ %90, %.thread50 ], [ %91, %.thread54 ], [ %88, %.thread57 ]
  call void @__cxa_free_exception(ptr %81) #4
  br label %96

95:                                               ; preds = %78
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #4
  ret void

96:                                               ; preds = %92, %38, %21, %23, %40, %56, %62, %73, %94, %54, %19
  %.pn36.pn = phi { ptr, i32 } [ %20, %19 ], [ %22, %21 ], [ %24, %23 ], [ %.pn33.pn42, %40 ], [ %39, %38 ], [ %55, %54 ], [ %57, %56 ], [ %63, %62 ], [ %74, %73 ], [ %.pn.pn53, %94 ], [ %93, %92 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #4
  br label %97

97:                                               ; preds = %96, %17
  %.pn36.pn.pn = phi { ptr, i32 } [ %.pn36.pn, %96 ], [ %18, %17 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #4
  resume { ptr, i32 } %.pn36.pn.pn

98:                                               ; preds = %89, %35, %16
  unreachable
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK8orgQhull11QhullPoints2qhEv(ptr noundef nonnull align 8 dereferenceable(28)) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1 align 2

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

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

declare void @__cxa_free_exception(ptr) local_unnamed_addr

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

declare void @__cxa_throw(ptr, ptr, ptr) local_unnamed_addr

declare noundef i32 @_ZNK8orgQhull11QhullPoints21extraCoordinatesCountEv(ptr noundef nonnull align 8 dereferenceable(28)) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK8orgQhull16PointCoordinates7commentB5cxx11Ev(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(88)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8orgQhull10QhullErrorC2EiPKciifS2_(ptr noundef nonnull align 8 dereferenceable(80), i32 noundef, ptr noundef, i32 noundef, i32 noundef, float noundef, ptr noundef) unnamed_addr #2 align 2

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

declare i32 @qh_rboxpoints(ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8orgQhull10QhullErrorC2EiRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(80), i32 noundef, ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK8orgQhull11QhullPoints11coordinatesEv(ptr noundef nonnull align 8 dereferenceable(28)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8orgQhull10QhullErrorC2EiPKciifPKv(ptr noundef nonnull align 8 dereferenceable(80), i32 noundef, ptr noundef, i32 noundef, i32 noundef, float noundef, ptr noundef) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK8orgQhull10RboxPoints8newCountEv(ptr noundef nonnull align 8 dereferenceable(128)) local_unnamed_addr #1 align 2

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

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

!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, !11, i64 3144}
!6 = !{!"_ZTS3qhT", !7, i64 0, !7, i64 4, !7, i64 8, !10, i64 16, !7, i64 24, !7, i64 28, !7, i64 32, !7, i64 36, !7, i64 40, !7, i64 44, !7, i64 48, !10, i64 56, !10, i64 64, !7, i64 72, !7, i64 76, !7, i64 80, !7, i64 84, !7, i64 88, !11, i64 96, !7, i64 104, !7, i64 108, !11, i64 112, !7, i64 120, !7, i64 124, !7, i64 128, !7, i64 132, !7, i64 136, !7, i64 140, !7, i64 144, !10, i64 152, !10, i64 160, !7, i64 168, !7, i64 172, !7, i64 176, !10, i64 184, !10, i64 192, !7, i64 200, !10, i64 208, !7, i64 216, !7, i64 220, !7, i64 224, !7, i64 228, !7, i64 232, !7, i64 236, !7, i64 240, !7, i64 244, !7, i64 248, !7, i64 252, !7, i64 256, !7, i64 260, !7, i64 264, !7, i64 268, !7, i64 272, !7, i64 276, !7, i64 280, !7, i64 284, !7, i64 288, !7, i64 292, !8, i64 296, !7, i64 412, !7, i64 416, !7, i64 420, !7, i64 424, !7, i64 428, !7, i64 432, !7, i64 436, !7, i64 440, !7, i64 444, !10, i64 448, !10, i64 456, !10, i64 464, !7, i64 472, !7, i64 476, !7, i64 480, !7, i64 484, !7, i64 488, !7, i64 492, !7, i64 496, !7, i64 500, !7, i64 504, !7, i64 508, !7, i64 512, !7, i64 516, !7, i64 520, !7, i64 524, !7, i64 528, !7, i64 532, !7, i64 536, !7, i64 540, !10, i64 544, !7, i64 552, !7, i64 556, !7, i64 560, !7, i64 564, !7, i64 568, !7, i64 572, !7, i64 576, !7, i64 580, !10, i64 584, !7, i64 592, !11, i64 600, !11, i64 608, !7, i64 616, !7, i64 620, !7, i64 624, !7, i64 628, !7, i64 632, !11, i64 640, !7, i64 648, !11, i64 656, !7, i64 664, !8, i64 668, !7, i64 924, !8, i64 928, !8, i64 1184, !7, i64 1696, !7, i64 1700, !7, i64 1704, !7, i64 1708, !7, i64 1712, !7, i64 1716, !11, i64 1720, !11, i64 1728, !11, i64 1736, !11, i64 1744, !10, i64 1752, !10, i64 1760, !10, i64 1768, !10, i64 1776, !10, i64 1784, !10, i64 1792, !10, i64 1800, !10, i64 1808, !10, i64 1816, !10, i64 1824, !10, i64 1832, !10, i64 1840, !10, i64 1848, !7, i64 1856, !11, i64 1864, !10, i64 1872, !10, i64 1880, !10, i64 1888, !10, i64 1896, !8, i64 1904, !8, i64 1912, !8, i64 2112, !8, i64 2152, !8, i64 2352, !11, i64 2392, !11, i64 2400, !11, i64 2408, !11, i64 2416, !7, i64 2424, !7, i64 2428, !7, i64 2432, !11, i64 2440, !11, i64 2448, !11, i64 2456, !11, i64 2464, !11, i64 2472, !7, i64 2480, !7, i64 2484, !11, i64 2488, !7, i64 2496, !11, i64 2504, !11, i64 2512, !11, i64 2520, !11, i64 2528, !7, i64 2536, !7, i64 2540, !7, i64 2544, !7, i64 2548, !7, i64 2552, !7, i64 2556, !7, i64 2560, !12, i64 2568, !7, i64 2576, !7, i64 2580, !13, i64 2584, !7, i64 2588, !11, i64 2592, !7, i64 2600, !7, i64 2604, !10, i64 2608, !7, i64 2616, !10, i64 2624, !10, i64 2632, !10, i64 2640, !7, i64 2648, !7, i64 2652, !7, i64 2656, !7, i64 2660, !10, i64 2664, !10, i64 2672, !7, i64 2680, !7, i64 2684, !7, i64 2688, !7, i64 2692, !10, i64 2696, !10, i64 2704, !7, i64 2712, !7, i64 2716, !7, i64 2720, !7, i64 2724, !11, i64 2728, !11, i64 2736, !11, i64 2744, !11, i64 2752, !11, i64 2760, !11, i64 2768, !11, i64 2776, !11, i64 2784, !7, i64 2792, !11, i64 2800, !11, i64 2808, !7, i64 2816, !7, i64 2820, !7, i64 2824, !11, i64 2832, !10, i64 2840, !10, i64 2848, !10, i64 2856, !7, i64 2864, !7, i64 2868, !11, i64 2872, !7, i64 2880, !7, i64 2884, !8, i64 2888, !8, i64 3088, !7, i64 3128, !10, i64 3136, !11, i64 3144, !14, i64 3152, !15, i64 3304}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"double", !8, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!"long", !8, i64 0}
!13 = !{!"_ZTS9qh_CENTER", !8, i64 0}
!14 = !{!"_ZTS6qhmemT", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48, !11, i64 56, !7, i64 64, !11, i64 72, !11, i64 80, !7, i64 88, !7, i64 92, !7, i64 96, !7, i64 100, !7, i64 104, !7, i64 108, !7, i64 112, !7, i64 116, !7, i64 120, !7, i64 124, !7, i64 128, !7, i64 132, !7, i64 136, !7, i64 140, !7, i64 144}
!15 = !{!"_ZTS7qhstatT", !8, i64 0, !8, i64 1816, !8, i64 2056, !8, i64 3872, !8, i64 4326, !8, i64 4553, !8, i64 4784, !7, i64 4856, !7, i64 4860, !7, i64 4864, !7, i64 4868, !10, i64 4872}
!16 = !{!17, !7, i64 92}
!17 = !{!"_ZTSN8orgQhull10RboxPointsE", !18, i64 0, !7, i64 88, !7, i64 92, !25, i64 96}
!18 = !{!"_ZTSN8orgQhull16PointCoordinatesE", !19, i64 0, !20, i64 32, !25, i64 56}
!19 = !{!"_ZTSN8orgQhull11QhullPointsE", !11, i64 0, !11, i64 8, !11, i64 16, !7, i64 24}
!20 = !{!"_ZTSN8orgQhull11CoordinatesE", !21, i64 0}
!21 = !{!"_ZTSSt6vectorIdSaIdEE", !22, i64 0}
!22 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!25 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !26, i64 0, !12, i64 8, !8, i64 16}
!26 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !11, i64 0}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,ReassociatePass,SROAPass,SimplifyCFGPass