; LLVM IR from Discngine/fpocket :: src/qhull/src/libqhullcpp/Qhull.ll (ZN8orgQhull5Qhull8runQhullEPKciiPKdS2_)

; 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 }
%"class.orgQhull::Qhull" = type { ptr, %"class.orgQhull::Coordinates", i8, %"class.orgQhull::Coordinates" }
%"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 }
%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 }

@_ZTIN8orgQhull10QhullErrorE = external dso_local constant { ptr, ptr, ptr }, align 8
@.str.3 = external hidden unnamed_addr constant [121 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [7 x i8], align 1
@_ZN8orgQhullL21s_unsupported_optionsE = external hidden constant [8 x i8], align 1

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8orgQhull5Qhull8runQhullEPKciiPKdS2_(ptr noundef nonnull align 8 dereferenceable(64) %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, ptr noundef %4, ptr noundef %5) #0 align 2 personality ptr @__gxx_personality_v0 {
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca %"class.std::__cxx11::basic_string", align 8
  %16 = alloca %"class.std::allocator.0", align 1
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca ptr, align 8
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca double, align 8
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store i32 %2, ptr %9, align 4, !tbaa !9
  store i32 %3, ptr %10, align 4, !tbaa !9
  store ptr %4, ptr %11, align 8, !tbaa !5
  store ptr %5, ptr %12, align 8, !tbaa !5
  %24 = load ptr, ptr %7, align 8
  %25 = getelementptr inbounds %"class.orgQhull::Qhull", ptr %24, i32 0, i32 2
  %26 = load i8, ptr %25, align 8, !tbaa !11, !range !19, !noundef !20
  %27 = trunc i8 %26 to i1
  br i1 %27, label %28, label %35

28:                                               ; preds = %6
  %29 = call ptr @__cxa_allocate_exception(i64 80) #6
  invoke void @_ZN8orgQhull10QhullErrorC2EiPKc(ptr noundef nonnull align 8 dereferenceable(80) %29, i32 noundef 10027, ptr noundef @.str.5)
          to label %30 unwind label %31

30:                                               ; preds = %28
  call void @__cxa_throw(ptr %29, ptr @_ZTIN8orgQhull10QhullErrorE, ptr @_ZN8orgQhull9RoadErrorD2Ev) #7
  unreachable

31:                                               ; preds = %28
  %32 = landingpad { ptr, i32 }
          cleanup
  %33 = extractvalue { ptr, i32 } %32, 0
  store ptr %33, ptr %13, align 8
  %34 = extractvalue { ptr, i32 } %32, 1
  store i32 %34, ptr %14, align 4
  call void @__cxa_free_exception(ptr %29) #6
  br label %202

35:                                               ; preds = %6
  %36 = getelementptr inbounds %"class.orgQhull::Qhull", ptr %24, i32 0, i32 2
  store i8 1, ptr %36, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 32, ptr %15) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef @.str.6, ptr noundef nonnull align 1 dereferenceable(1) %16)
          to label %37 unwind label %56

37:                                               ; preds = %35
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #6
  %38 = load ptr, ptr %12, align 8, !tbaa !5
  %39 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEPKc(ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef %38)
          to label %40 unwind label %60

40:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %41 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %15) #6
  store ptr %41, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  %42 = getelementptr inbounds %"class.orgQhull::Qhull", ptr %24, i32 0, i32 0
  %43 = load ptr, ptr %42, align 8, !tbaa !21
  %44 = getelementptr inbounds %struct.qhT, ptr %43, i32 0, i32 192
  %45 = load i32, ptr %44, align 4, !tbaa !22
  %46 = icmp ne i32 %45, 0
  br i1 %46, label %47, label %64

47:                                               ; preds = %40
  %48 = getelementptr inbounds %"class.orgQhull::Qhull", ptr %24, i32 0, i32 0
  %49 = load ptr, ptr %48, align 8, !tbaa !21
  %50 = getelementptr inbounds %struct.qhT, ptr %49, i32 0, i32 192
  store i32 0, ptr %50, align 4, !tbaa !22
  %51 = getelementptr inbounds %"class.orgQhull::Qhull", ptr %24, i32 0, i32 0
  %52 = load ptr, ptr %51, align 8, !tbaa !21
  %53 = getelementptr inbounds %struct.qhT, ptr %52, i32 0, i32 145
  %54 = getelementptr inbounds [1 x %struct.__jmp_buf_tag], ptr %53, i64 0, i64 0
  %55 = call i32 @_setjmp(ptr noundef %54) #8
  store i32 %55, ptr %18, align 4, !tbaa !9
  br label %75

56:                                               ; preds = %35
  %57 = landingpad { ptr, i32 }
          cleanup
  %58 = extractvalue { ptr, i32 } %57, 0
  store ptr %58, ptr %13, align 8
  %59 = extractvalue { ptr, i32 } %57, 1
  store i32 %59, ptr %14, align 4
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #6
  br label %201

60:                                               ; preds = %37
  %61 = landingpad { ptr, i32 }
          cleanup
  %62 = extractvalue { ptr, i32 } %61, 0
  store ptr %62, ptr %13, align 8
  %63 = extractvalue { ptr, i32 } %61, 1
  store i32 %63, ptr %14, align 4
  br label %200

64:                                               ; preds = %40
  %65 = call ptr @__cxa_allocate_exception(i64 80) #6
  invoke void @_ZN8orgQhull10QhullErrorC2EiPKc(ptr noundef nonnull align 8 dereferenceable(80) %65, i32 noundef 10071, ptr noundef @.str.3)
          to label %66 unwind label %67

66:                                               ; preds = %64
  invoke void @__cxa_throw(ptr %65, ptr @_ZTIN8orgQhull10QhullErrorE, ptr @_ZN8orgQhull9RoadErrorD2Ev) #7
          to label %207 unwind label %71

67:                                               ; preds = %64
  %68 = landingpad { ptr, i32 }
          cleanup
  %69 = extractvalue { ptr, i32 } %68, 0
  store ptr %69, ptr %13, align 8
  %70 = extractvalue { ptr, i32 } %68, 1
  store i32 %70, ptr %14, align 4
  call void @__cxa_free_exception(ptr %65) #6
  br label %199

71:                                               ; preds = %194, %82, %78, %66
  %72 = landingpad { ptr, i32 }
          cleanup
  %73 = extractvalue { ptr, i32 } %72, 0
  store ptr %73, ptr %13, align 8
  %74 = extractvalue { ptr, i32 } %72, 1
  store i32 %74, ptr %14, align 4
  br label %199

75:                                               ; preds = %47
  %76 = load i32, ptr %18, align 4, !tbaa !9
  %77 = icmp ne i32 %76, 0
  br i1 %77, label %173, label %78

78:                                               ; preds = %75
  %79 = getelementptr inbounds %"class.orgQhull::Qhull", ptr %24, i32 0, i32 0
  %80 = load ptr, ptr %79, align 8, !tbaa !21
  %81 = load ptr, ptr %17, align 8, !tbaa !5
  invoke void @qh_checkflags(ptr noundef %80, ptr noundef %81, ptr noundef @_ZN8orgQhullL21s_unsupported_optionsE)
          to label %82 unwind label %71

82:                                               ; preds = %78
  %83 = getelementptr inbounds %"class.orgQhull::Qhull", ptr %24, i32 0, i32 0
  %84 = load ptr, ptr %83, align 8, !tbaa !21
  %85 = load ptr, ptr %17, align 8, !tbaa !5
  invoke void @qh_initflags(ptr noundef %84, ptr noundef %85)
          to label %86 unwind label %71

86:                                               ; preds = %82
  %87 = getelementptr inbounds %"class.orgQhull::Qhull", ptr %24, i32 0, i32 0
  %88 = load ptr, ptr %87, align 8, !tbaa !21
  %89 = getelementptr inbounds %struct.qhT, ptr %88, i32 0, i32 113
  %90 = getelementptr inbounds [256 x i8], ptr %89, i64 0, i64 0
  store i8 0, ptr %90, align 8, !tbaa !29
  %91 = getelementptr inbounds %"class.orgQhull::Qhull", ptr %24, i32 0, i32 0
  %92 = load ptr, ptr %91, align 8, !tbaa !21
  %93 = getelementptr inbounds %struct.qhT, ptr %92, i32 0, i32 113
  %94 = getelementptr inbounds [256 x i8], ptr %93, i64 0, i64 0
  %95 = load ptr, ptr %8, align 8, !tbaa !5
  %96 = call ptr @strncat(ptr noundef %94, ptr noundef %95, i64 noundef 255) #6
  %97 = getelementptr inbounds %"class.orgQhull::Qhull", ptr %24, i32 0, i32 0
  %98 = load ptr, ptr %97, align 8, !tbaa !21
  %99 = getelementptr inbounds %struct.qhT, ptr %98, i32 0, i32 13
  %100 = load i32, ptr %99, align 8, !tbaa !30
  %101 = icmp ne i32 %100, 0
  br i1 %101, label %102, label %106

102:                                              ; preds = %86
  %103 = getelementptr inbounds %"class.orgQhull::Qhull", ptr %24, i32 0, i32 0
  %104 = load ptr, ptr %103, align 8, !tbaa !21
  %105 = getelementptr inbounds %struct.qhT, ptr %104, i32 0, i32 64
  store i32 1, ptr %105, align 8, !tbaa !31
  br label %106

106:                                              ; preds = %102, %86
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  %107 = load ptr, ptr %11, align 8, !tbaa !5
  store ptr %107, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  %108 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %108, ptr %20, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  store i32 0, ptr %21, align 4, !tbaa !9
  %109 = getelementptr inbounds %"class.orgQhull::Qhull", ptr %24, i32 0, i32 0
  %110 = load ptr, ptr %109, align 8, !tbaa !21
  %111 = getelementptr inbounds %struct.qhT, ptr %110, i32 0, i32 22
  %112 = load i32, ptr %111, align 8, !tbaa !32
  %113 = icmp ne i32 %112, 0
  br i1 %113, label %114, label %134

114:                                              ; preds = %106
  %115 = load i32, ptr %20, align 4, !tbaa !9
  %116 = add nsw i32 %115, -1
  store i32 %116, ptr %20, align 4, !tbaa !9
  %117 = load i32, ptr %20, align 4, !tbaa !9
  invoke void @_ZN8orgQhull5Qhull23initializeFeasiblePointEi(ptr noundef nonnull align 8 dereferenceable(64) %24, i32 noundef %117)
          to label %118 unwind label %130

118:                                              ; preds = %114
  %119 = getelementptr inbounds %"class.orgQhull::Qhull", ptr %24, i32 0, i32 0
  %120 = load ptr, ptr %119, align 8, !tbaa !21
  %121 = load i32, ptr %9, align 4, !tbaa !9
  %122 = load i32, ptr %10, align 4, !tbaa !9
  %123 = load ptr, ptr %19, align 8, !tbaa !5
  %124 = getelementptr inbounds %"class.orgQhull::Qhull", ptr %24, i32 0, i32 0
  %125 = load ptr, ptr %124, align 8, !tbaa !21
  %126 = getelementptr inbounds %struct.qhT, ptr %125, i32 0, i32 101
  %127 = load ptr, ptr %126, align 8, !tbaa !33
  %128 = invoke ptr @qh_sethalfspace_all(ptr noundef %120, i32 noundef %121, i32 noundef %122, ptr noundef %123, ptr noundef %127)
          to label %129 unwind label %130

129:                                              ; preds = %118
  store ptr %128, ptr %19, align 8, !tbaa !5
  store i32 1, ptr %21, align 4, !tbaa !9
  br label %134

130:                                              ; preds = %168, %147, %144, %141, %134, %118, %114
  %131 = landingpad { ptr, i32 }
          cleanup
  %132 = extractvalue { ptr, i32 } %131, 0
  store ptr %132, ptr %13, align 8
  %133 = extractvalue { ptr, i32 } %131, 1
  store i32 %133, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  br label %199

134:                                              ; preds = %129, %106
  %135 = getelementptr inbounds %"class.orgQhull::Qhull", ptr %24, i32 0, i32 0
  %136 = load ptr, ptr %135, align 8, !tbaa !21
  %137 = load ptr, ptr %19, align 8, !tbaa !5
  %138 = load i32, ptr %10, align 4, !tbaa !9
  %139 = load i32, ptr %20, align 4, !tbaa !9
  %140 = load i32, ptr %21, align 4, !tbaa !9
  invoke void @qh_init_B(ptr noundef %136, ptr noundef %137, i32 noundef %138, i32 noundef %139, i32 noundef %140)
          to label %141 unwind label %130

141:                                              ; preds = %134
  %142 = getelementptr inbounds %"class.orgQhull::Qhull", ptr %24, i32 0, i32 0
  %143 = load ptr, ptr %142, align 8, !tbaa !21
  invoke void @qh_qhull(ptr noundef %143)
          to label %144 unwind label %130

144:                                              ; preds = %141
  %145 = getelementptr inbounds %"class.orgQhull::Qhull", ptr %24, i32 0, i32 0
  %146 = load ptr, ptr %145, align 8, !tbaa !21
  invoke void @qh_check_output(ptr noundef %146)
          to label %147 unwind label %130

147:                                              ; preds = %144
  %148 = getelementptr inbounds %"class.orgQhull::Qhull", ptr %24, i32 0, i32 0
  %149 = load ptr, ptr %148, align 8, !tbaa !21
  invoke void @qh_prepare_output(ptr noundef %149)
          to label %150 unwind label %130

150:                                              ; preds = %147
  %151 = getelementptr inbounds %"class.orgQhull::Qhull", ptr %24, i32 0, i32 0
  %152 = load ptr, ptr %151, align 8, !tbaa !21
  %153 = getelementptr inbounds %struct.qhT, ptr %152, i32 0, i32 95
  %154 = load i32, ptr %153, align 4, !tbaa !34
  %155 = icmp ne i32 %154, 0
  br i1 %155, label %156, label %172

156:                                              ; preds = %150
  %157 = getelementptr inbounds %"class.orgQhull::Qhull", ptr %24, i32 0, i32 0
  %158 = load ptr, ptr %157, align 8, !tbaa !21
  %159 = getelementptr inbounds %struct.qhT, ptr %158, i32 0, i32 83
  %160 = load i32, ptr %159, align 8, !tbaa !35
  %161 = icmp ne i32 %160, 0
  br i1 %161, label %172, label %162

162:                                              ; preds = %156
  %163 = getelementptr inbounds %"class.orgQhull::Qhull", ptr %24, i32 0, i32 0
  %164 = load ptr, ptr %163, align 8, !tbaa !21
  %165 = getelementptr inbounds %struct.qhT, ptr %164, i32 0, i32 82
  %166 = load i32, ptr %165, align 4, !tbaa !36
  %167 = icmp ne i32 %166, 0
  br i1 %167, label %172, label %168

168:                                              ; preds = %162
  %169 = getelementptr inbounds %"class.orgQhull::Qhull", ptr %24, i32 0, i32 0
  %170 = load ptr, ptr %169, align 8, !tbaa !21
  invoke void @qh_check_points(ptr noundef %170)
          to label %171 unwind label %130

171:                                              ; preds = %168
  br label %172

172:                                              ; preds = %171, %162, %156, %150
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  br label %173

173:                                              ; preds = %172, %75
  %174 = getelementptr inbounds %"class.orgQhull::Qhull", ptr %24, i32 0, i32 0
  %175 = load ptr, ptr %174, align 8, !tbaa !21
  %176 = getelementptr inbounds %struct.qhT, ptr %175, i32 0, i32 192
  store i32 1, ptr %176, align 4, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #6
  %177 = getelementptr inbounds %"class.orgQhull::Qhull", ptr %24, i32 0, i32 0
  %178 = load ptr, ptr %177, align 8, !tbaa !21
  %179 = getelementptr inbounds %struct.qhT, ptr %178, i32 0, i32 104
  %180 = load i32, ptr %179, align 8, !tbaa !37
  store i32 %180, ptr %22, align 4, !tbaa !9
  br label %181

181:                                              ; preds = %189, %173
  %182 = load i32, ptr %22, align 4, !tbaa !9
  %183 = add nsw i32 %182, -1
  store i32 %183, ptr %22, align 4, !tbaa !9
  %184 = icmp ne i32 %182, 0
  br i1 %184, label %186, label %185

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

186:                                              ; preds = %181
  %187 = getelementptr inbounds %"class.orgQhull::Qhull", ptr %24, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  store double 0.000000e+00, ptr %23, align 8, !tbaa !38
  %188 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN8orgQhull11CoordinateslsERKd(ptr noundef nonnull align 8 dereferenceable(24) %187, ptr noundef nonnull align 8 dereferenceable(8) %23)
          to label %189 unwind label %190

189:                                              ; preds = %186
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  br label %181, !llvm.loop !39

190:                                              ; preds = %186
  %191 = landingpad { ptr, i32 }
          cleanup
  %192 = extractvalue { ptr, i32 } %191, 0
  store ptr %192, ptr %13, align 8
  %193 = extractvalue { ptr, i32 } %191, 1
  store i32 %193, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  br label %199

194:                                              ; preds = %185
  %195 = getelementptr inbounds %"class.orgQhull::Qhull", ptr %24, i32 0, i32 0
  %196 = load ptr, ptr %195, align 8, !tbaa !21
  %197 = load i32, ptr %18, align 4, !tbaa !9
  invoke void @_ZN8orgQhull7QhullQh22maybeThrowQhullMessageEi(ptr noundef nonnull align 8 dereferenceable(8249) %196, i32 noundef %197)
          to label %198 unwind label %71

198:                                              ; preds = %194
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #6
  ret void

199:                                              ; preds = %190, %130, %71, %67
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  br label %200

200:                                              ; preds = %199, %60
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #6
  br label %201

201:                                              ; preds = %200, %56
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #6
  br label %202

202:                                              ; preds = %201, %31
  %203 = load ptr, ptr %13, align 8
  %204 = load i32, ptr %14, align 4
  %205 = insertvalue { ptr, i32 } poison, ptr %203, 0
  %206 = insertvalue { ptr, i32 } %205, i32 %204, 1
  resume { ptr, i32 } %206

207:                                              ; preds = %66
  unreachable
}

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

declare ptr @__cxa_allocate_exception(i64)

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

declare void @__cxa_throw(ptr, ptr, ptr)

; 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 void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 align 2

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

; Function Attrs: nounwind returns_twice
declare i32 @_setjmp(ptr noundef) #3

declare void @_ZN8orgQhull7QhullQh22maybeThrowQhullMessageEi(ptr noundef nonnull align 8 dereferenceable(8249), i32 noundef) #4

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 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 #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 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) #0 align 2

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

; Function Attrs: nounwind
declare ptr @strncat(ptr noundef, ptr noundef, i64 noundef) #5

declare void @qh_checkflags(ptr noundef, ptr noundef, ptr noundef) #4

declare void @qh_initflags(ptr noundef, ptr noundef) #4

declare void @qh_prepare_output(ptr noundef) #4

declare void @qh_check_points(ptr noundef) #4

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

declare ptr @qh_sethalfspace_all(ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) #4

declare void @qh_init_B(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef) #4

declare void @qh_qhull(ptr noundef) #4

declare void @qh_check_output(ptr noundef) #4

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZN8orgQhull11CoordinateslsERKd(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8)) #0 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 = { 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 #3 = { nounwind returns_twice "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 = { "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 = { nounwind "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 }
attributes #7 = { noreturn }
attributes #8 = { nounwind returns_twice }

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


; 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 }

@_ZTIN8orgQhull10QhullErrorE = external dso_local constant { ptr, ptr, ptr }, align 8
@.str.3 = external hidden unnamed_addr constant [121 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [7 x i8], align 1
@_ZN8orgQhullL21s_unsupported_optionsE = external hidden constant [8 x i8], align 1

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8orgQhull5Qhull8runQhullEPKciiPKdS2_(ptr noundef nonnull align 8 dereferenceable(64) %0, ptr nocapture noundef readonly %1, i32 noundef %2, i32 noundef %3, ptr noundef %4, ptr noundef %5) local_unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %7 = alloca %"class.std::__cxx11::basic_string", align 8
  %8 = alloca %"class.std::allocator.0", align 1
  %9 = alloca double, align 8
  %10 = getelementptr inbounds i8, ptr %0, i64 32
  %11 = load i8, ptr %10, align 8, !tbaa !5, !range !16, !noundef !17
  %12 = trunc nuw i8 %11 to i1
  br i1 %12, label %13, label %18

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

15:                                               ; preds = %13
  call void @__cxa_throw(ptr nonnull %14, ptr nonnull @_ZTIN8orgQhull10QhullErrorE, ptr nonnull @_ZN8orgQhull9RoadErrorD2Ev) #7
  unreachable

16:                                               ; preds = %13
  %17 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %14) #6
  br label %101

18:                                               ; preds = %6
  store i8 1, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %8) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef nonnull @.str.6, ptr noundef nonnull align 1 dereferenceable(1) %8)
          to label %19 unwind label %29

19:                                               ; preds = %18
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #6
  %20 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEPKc(ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef %5)
          to label %21 unwind label %31

21:                                               ; preds = %19
  %22 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %7) #6
  %23 = load ptr, ptr %0, align 8, !tbaa !18
  %24 = getelementptr inbounds i8, ptr %23, i64 2660
  %25 = load i32, ptr %24, align 4, !tbaa !19
  %.not = icmp eq i32 %25, 0
  br i1 %.not, label %33, label %26

26:                                               ; preds = %21
  store i32 0, ptr %24, align 4, !tbaa !19
  %27 = getelementptr inbounds i8, ptr %23, i64 1912
  %28 = call i32 @_setjmp(ptr noundef nonnull %27) #8
  %.not28 = icmp eq i32 %28, 0
  %.pre44 = load ptr, ptr %0, align 8, !tbaa !18
  br i1 %.not28, label %40, label %85

29:                                               ; preds = %18
  %30 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #6
  br label %100

31:                                               ; preds = %19
  %32 = landingpad { ptr, i32 }
          cleanup
  br label %99

33:                                               ; preds = %21
  %34 = call ptr @__cxa_allocate_exception(i64 80) #6
  invoke void @_ZN8orgQhull10QhullErrorC2EiPKc(ptr noundef nonnull align 8 dereferenceable(80) %34, i32 noundef 10071, ptr noundef nonnull @.str.3)
          to label %35 unwind label %36

35:                                               ; preds = %33
  invoke void @__cxa_throw(ptr nonnull %34, ptr nonnull @_ZTIN8orgQhull10QhullErrorE, ptr nonnull @_ZN8orgQhull9RoadErrorD2Ev) #7
          to label %102 unwind label %38

36:                                               ; preds = %33
  %37 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %34) #6
  br label %99

38:                                               ; preds = %._crit_edge, %41, %40, %35
  %39 = landingpad { ptr, i32 }
          cleanup
  br label %99

40:                                               ; preds = %26
  invoke void @qh_checkflags(ptr noundef %.pre44, ptr noundef %22, ptr noundef nonnull @_ZN8orgQhullL21s_unsupported_optionsE)
          to label %41 unwind label %38

41:                                               ; preds = %40
  %42 = load ptr, ptr %0, align 8, !tbaa !18
  invoke void @qh_initflags(ptr noundef %42, ptr noundef %22)
          to label %43 unwind label %38

43:                                               ; preds = %41
  %44 = load ptr, ptr %0, align 8, !tbaa !18
  %45 = getelementptr inbounds i8, ptr %44, i64 928
  store i8 0, ptr %45, align 8, !tbaa !27
  %46 = load ptr, ptr %0, align 8, !tbaa !18
  %47 = getelementptr inbounds i8, ptr %46, i64 928
  %48 = call ptr @strncat(ptr noundef nonnull dereferenceable(1) %47, ptr noundef nonnull dereferenceable(1) %1, i64 noundef 255) #6
  %49 = load ptr, ptr %0, align 8, !tbaa !18
  %50 = getelementptr inbounds i8, ptr %49, i64 72
  %51 = load i32, ptr %50, align 8, !tbaa !28
  %.not29 = icmp eq i32 %51, 0
  br i1 %.not29, label %54, label %52

52:                                               ; preds = %43
  %53 = getelementptr inbounds i8, ptr %49, i64 432
  store i32 1, ptr %53, align 8, !tbaa !29
  br label %54

54:                                               ; preds = %52, %43
  %55 = getelementptr inbounds i8, ptr %49, i64 120
  %56 = load i32, ptr %55, align 8, !tbaa !30
  %.not30 = icmp eq i32 %56, 0
  br i1 %.not30, label %66, label %57

57:                                               ; preds = %54
  %58 = add nsw i32 %2, -1
  invoke void @_ZN8orgQhull5Qhull23initializeFeasiblePointEi(ptr noundef nonnull align 8 dereferenceable(64) %0, i32 noundef %58)
          to label %59 unwind label %64

59:                                               ; preds = %57
  %60 = load ptr, ptr %0, align 8, !tbaa !18
  %61 = getelementptr inbounds i8, ptr %60, i64 608
  %62 = load ptr, ptr %61, align 8, !tbaa !31
  %63 = invoke ptr @qh_sethalfspace_all(ptr noundef nonnull %60, i32 noundef %2, i32 noundef %3, ptr noundef %4, ptr noundef %62)
          to label %._crit_edge41 unwind label %64

._crit_edge41:                                    ; preds = %59
  %.pre = load ptr, ptr %0, align 8, !tbaa !18
  br label %66

64:                                               ; preds = %84, %72, %70, %68, %66, %59, %57
  %65 = landingpad { ptr, i32 }
          cleanup
  br label %99

66:                                               ; preds = %._crit_edge41, %54
  %67 = phi ptr [ %49, %54 ], [ %.pre, %._crit_edge41 ]
  %.022 = phi ptr [ %4, %54 ], [ %63, %._crit_edge41 ]
  %.021 = phi i32 [ %2, %54 ], [ %58, %._crit_edge41 ]
  %.020 = phi i32 [ 0, %54 ], [ 1, %._crit_edge41 ]
  invoke void @qh_init_B(ptr noundef %67, ptr noundef %.022, i32 noundef %3, i32 noundef %.021, i32 noundef %.020)
          to label %68 unwind label %64

68:                                               ; preds = %66
  %69 = load ptr, ptr %0, align 8, !tbaa !18
  invoke void @qh_qhull(ptr noundef %69)
          to label %70 unwind label %64

70:                                               ; preds = %68
  %71 = load ptr, ptr %0, align 8, !tbaa !18
  invoke void @qh_check_output(ptr noundef %71)
          to label %72 unwind label %64

72:                                               ; preds = %70
  %73 = load ptr, ptr %0, align 8, !tbaa !18
  invoke void @qh_prepare_output(ptr noundef %73)
          to label %74 unwind label %64

74:                                               ; preds = %72
  %75 = load ptr, ptr %0, align 8, !tbaa !18
  %76 = getelementptr inbounds i8, ptr %75, i64 572
  %77 = load i32, ptr %76, align 4, !tbaa !32
  %.not31 = icmp eq i32 %77, 0
  br i1 %.not31, label %85, label %78

78:                                               ; preds = %74
  %79 = getelementptr inbounds i8, ptr %75, i64 520
  %80 = load i32, ptr %79, align 8, !tbaa !33
  %.not32 = icmp eq i32 %80, 0
  br i1 %.not32, label %81, label %85

81:                                               ; preds = %78
  %82 = getelementptr inbounds i8, ptr %75, i64 516
  %83 = load i32, ptr %82, align 4, !tbaa !34
  %.not33 = icmp eq i32 %83, 0
  br i1 %.not33, label %84, label %85

84:                                               ; preds = %81
  invoke void @qh_check_points(ptr noundef nonnull %75)
          to label %._crit_edge42 unwind label %64

._crit_edge42:                                    ; preds = %84
  %.pre43 = load ptr, ptr %0, align 8, !tbaa !18
  br label %85

85:                                               ; preds = %._crit_edge42, %74, %78, %81, %26
  %86 = phi ptr [ %.pre43, %._crit_edge42 ], [ %75, %74 ], [ %75, %78 ], [ %75, %81 ], [ %.pre44, %26 ]
  %87 = getelementptr inbounds i8, ptr %86, i64 2660
  store i32 1, ptr %87, align 4, !tbaa !19
  %88 = getelementptr inbounds i8, ptr %86, i64 624
  %89 = load i32, ptr %88, align 8, !tbaa !35
  %.not3440 = icmp eq i32 %89, 0
  br i1 %.not3440, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %85
  %90 = getelementptr inbounds i8, ptr %0, i64 8
  br label %92

._crit_edge.loopexit:                             ; preds = %94
  %.pre45 = load ptr, ptr %0, align 8, !tbaa !18
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %85
  %91 = phi ptr [ %.pre45, %._crit_edge.loopexit ], [ %86, %85 ]
  invoke void @_ZN8orgQhull7QhullQh22maybeThrowQhullMessageEi(ptr noundef nonnull align 8 dereferenceable(8249) %91, i32 noundef %28)
          to label %98 unwind label %38

92:                                               ; preds = %.lr.ph, %94
  %.in = phi i32 [ %89, %.lr.ph ], [ %95, %94 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #6
  store double 0.000000e+00, ptr %9, align 8, !tbaa !36
  %93 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN8orgQhull11CoordinateslsERKd(ptr noundef nonnull align 8 dereferenceable(24) %90, ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %94 unwind label %96

94:                                               ; preds = %92
  %95 = add nsw i32 %.in, -1
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  %.not34 = icmp eq i32 %95, 0
  br i1 %.not34, label %._crit_edge.loopexit, label %92, !llvm.loop !37

96:                                               ; preds = %92
  %97 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  br label %99

98:                                               ; preds = %._crit_edge
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #6
  ret void

99:                                               ; preds = %36, %38, %64, %96, %31
  %.pn.pn = phi { ptr, i32 } [ %32, %31 ], [ %97, %96 ], [ %39, %38 ], [ %65, %64 ], [ %37, %36 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #6
  br label %100

100:                                              ; preds = %99, %29
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %99 ], [ %30, %29 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #6
  br label %101

101:                                              ; preds = %100, %16
  %.pn38 = phi { ptr, i32 } [ %17, %16 ], [ %.pn.pn.pn, %100 ]
  resume { ptr, i32 } %.pn38

102:                                              ; preds = %35
  unreachable
}

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

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

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

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

; 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 void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 align 2

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

; Function Attrs: nounwind returns_twice
declare i32 @_setjmp(ptr noundef) local_unnamed_addr #3

declare void @_ZN8orgQhull7QhullQh22maybeThrowQhullMessageEi(ptr noundef nonnull align 8 dereferenceable(8249), i32 noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 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 #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 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 #0 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 #2 align 2

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: readwrite)
declare ptr @strncat(ptr noalias noundef returned, ptr noalias nocapture noundef readonly, i64 noundef) local_unnamed_addr #5

declare void @qh_checkflags(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

declare void @qh_initflags(ptr noundef, ptr noundef) local_unnamed_addr #4

declare void @qh_prepare_output(ptr noundef) local_unnamed_addr #4

declare void @qh_check_points(ptr noundef) local_unnamed_addr #4

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

declare ptr @qh_sethalfspace_all(ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

declare void @qh_init_B(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #4

declare void @qh_qhull(ptr noundef) local_unnamed_addr #4

declare void @qh_check_output(ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZN8orgQhull11CoordinateslsERKd(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0 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 = { 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 #3 = { nounwind returns_twice "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 = { "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 = { mustprogress nofree nounwind willreturn memory(argmem: readwrite) "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 }
attributes #7 = { noreturn }
attributes #8 = { nounwind returns_twice }

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


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,LoopRotatePass,LoopSimplifyPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass