; LLVM IR from jrl-umi3218/mc_rtc :: 3rd-party/qhull/src/libqhull (poly2)

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

%struct.qhT = type { i32, i32, i32, i32, i32, i32, double, i32, i32, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, i32, i32, ptr, i32, i32, ptr, i32, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, double, double, i32, i32, double, 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, double, double, double, i32, 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, double, ptr, double, double, double, double, i32, [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, i32, ptr, ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i64, i32, i32, i32, i32, i32, ptr, ptr, i32, i32, i32, double, i32, double, double, double, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, ptr, ptr, i32, i32, i32, ptr, double, double, double, double, i32, i32, i32, i32, i32, i32, ptr, ptr, i32 }
%struct.__jmp_buf_tag = type { [8 x i64], i32, %struct.__sigset_t }
%struct.__sigset_t = type { [16 x i64] }
%struct.qhstatT = type { [249 x %union.intrealT], [259 x i8], [249 x ptr], [249 x i16], [249 x i8], [249 x i8], [9 x %union.intrealT], i32, i32, i32, i32, double }
%union.intrealT = type { double }
%struct.facetT = type { double, double, double, ptr, %union.anon, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, i32 }
%union.anon = type { double }
%struct.setT = type { i32, [1 x %union.setelemT] }
%union.setelemT = type { ptr }
%struct.mergeT = type { double, double, ptr, ptr, ptr, ptr, ptr, ptr, i32 }
%struct.vertexT = type { ptr, ptr, ptr, ptr, i32, i32, i8 }

@qh_qh = external global %struct.qhT, align 8
@qh_qhstat = external global %struct.qhstatT, align 8
@.str.212 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.213 = external hidden unnamed_addr constant [116 x i8], align 1
@.str.214 = external hidden unnamed_addr constant [69 x i8], align 1
@.str.215 = external hidden unnamed_addr constant [112 x i8], align 1
@.str.216 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.217 = external hidden unnamed_addr constant [65 x i8], align 1
@.str.218 = external hidden unnamed_addr constant [101 x i8], align 1
@.str.219 = external hidden unnamed_addr constant [84 x i8], align 1
@.str.220 = external hidden unnamed_addr constant [89 x i8], align 1
@.str.221 = external hidden unnamed_addr constant [113 x i8], align 1
@.str.222 = external hidden unnamed_addr constant [85 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

declare i32 @qh_setsize(ptr noundef) #1

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

declare void @qh_fprintf(ptr noundef, i32 noundef, ptr noundef, ...) #1

declare void @qh_errexit2(i32 noundef, ptr noundef, ptr noundef) #1

declare void @qh_errexit(i32 noundef, ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local void @qh_checkpolygon(ptr noundef) #2

declare void @qh_memfree(ptr noundef, i32 noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local void @qh_printlists() #2

; Function Attrs: nounwind uwtable
declare dso_local void @qh_clearcenters(i32 noundef) #2

declare void @qh_setfree(ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local void @qh_vertexneighbors() #2

; Function Attrs: nounwind uwtable
declare dso_local void @qh_resetlists(i32 noundef, i32 noundef) #2

; Function Attrs: nounwind uwtable
define dso_local void @qh_triangulate() #2 {
  %1 = alloca ptr, align 8
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %1) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #3
  store ptr null, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  store ptr null, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  store ptr null, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  store ptr null, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #3
  %18 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 48), align 4, !tbaa !9
  store i32 %18, ptr %16, align 4, !tbaa !14
  %19 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 195), align 4, !tbaa !15
  %20 = icmp ne i32 %19, 0
  br i1 %20, label %21, label %22

21:                                               ; preds = %0
  store i32 1, ptr %17, align 4
  br label %512

22:                                               ; preds = %0
  %23 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !16
  %24 = icmp sge i32 %23, 1
  br i1 %24, label %25, label %27

25:                                               ; preds = %22
  %26 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !17
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %26, i32 noundef 1034, ptr noundef @.str.212)
  br label %27

27:                                               ; preds = %25, %22
  %28 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 110), align 8, !tbaa !18
  %29 = icmp eq i32 %28, 2
  br i1 %29, label %30, label %31

30:                                               ; preds = %27
  store i32 1, ptr %17, align 4
  br label %512

31:                                               ; preds = %27
  %32 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 103), align 4, !tbaa !19
  %33 = icmp ne i32 %32, 0
  br i1 %33, label %34, label %35

34:                                               ; preds = %31
  call void @qh_clearcenters(i32 noundef 1)
  call void @qh_vertexneighbors()
  br label %35

35:                                               ; preds = %34, %31
  store i32 0, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 48), align 4, !tbaa !9
  %36 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 217), align 8, !tbaa !20
  %37 = add i32 %36, 1
  store i32 %37, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 217), align 8, !tbaa !20
  call void @qh_initmergesets()
  %38 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 176), align 8, !tbaa !21
  store ptr %38, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 177), align 8, !tbaa !22
  %39 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 163), align 8, !tbaa !23
  store ptr %39, ptr %1, align 8, !tbaa !5
  br label %40

40:                                               ; preds = %75, %35
  %41 = load ptr, ptr %1, align 8, !tbaa !5
  %42 = icmp ne ptr %41, null
  br i1 %42, label %43, label %48

43:                                               ; preds = %40
  %44 = load ptr, ptr %1, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.facetT, ptr %44, i32 0, i32 7
  %46 = load ptr, ptr %45, align 8, !tbaa !24
  %47 = icmp ne ptr %46, null
  br label %48

48:                                               ; preds = %43, %40
  %49 = phi i1 [ false, %40 ], [ %47, %43 ]
  br i1 %49, label %50, label %77

50:                                               ; preds = %48
  %51 = load ptr, ptr %1, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.facetT, ptr %51, i32 0, i32 7
  %53 = load ptr, ptr %52, align 8, !tbaa !24
  store ptr %53, ptr %2, align 8, !tbaa !5
  %54 = load ptr, ptr %1, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.facetT, ptr %54, i32 0, i32 15
  %56 = load i32, ptr %55, align 8
  %57 = lshr i32 %56, 11
  %58 = and i32 %57, 1
  %59 = icmp ne i32 %58, 0
  br i1 %59, label %67, label %60

60:                                               ; preds = %50
  %61 = load ptr, ptr %1, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.facetT, ptr %61, i32 0, i32 15
  %63 = load i32, ptr %62, align 8
  %64 = lshr i32 %63, 13
  %65 = and i32 %64, 1
  %66 = icmp ne i32 %65, 0
  br i1 %66, label %67, label %68

67:                                               ; preds = %60, %50
  br label %75

68:                                               ; preds = %60
  %69 = load ptr, ptr %8, align 8, !tbaa !5
  %70 = icmp ne ptr %69, null
  br i1 %70, label %73, label %71

71:                                               ; preds = %68
  %72 = load ptr, ptr %1, align 8, !tbaa !5
  store ptr %72, ptr %8, align 8, !tbaa !5
  br label %73

73:                                               ; preds = %71, %68
  %74 = load ptr, ptr %1, align 8, !tbaa !5
  call void @qh_triangulate_facet(ptr noundef %74, ptr noundef %11)
  br label %75

75:                                               ; preds = %73, %67
  %76 = load ptr, ptr %2, align 8, !tbaa !5
  store ptr %76, ptr %1, align 8, !tbaa !5
  br label %40, !llvm.loop !26

77:                                               ; preds = %48
  %78 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !16
  %79 = icmp sge i32 %78, 2
  br i1 %79, label %80, label %91

80:                                               ; preds = %77
  %81 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !17
  %82 = load ptr, ptr %8, align 8, !tbaa !5
  %83 = icmp ne ptr %82, null
  br i1 %83, label %84, label %88

84:                                               ; preds = %80
  %85 = load ptr, ptr %8, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.facetT, ptr %85, i32 0, i32 14
  %87 = load i32, ptr %86, align 4, !tbaa !28
  br label %89

88:                                               ; preds = %80
  br label %89

89:                                               ; preds = %88, %84
  %90 = phi i32 [ %87, %84 ], [ -1, %88 ]
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %81, i32 noundef 2047, ptr noundef @.str.213, i32 noundef %90)
  br label %91

91:                                               ; preds = %89, %77
  %92 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %92, ptr %1, align 8, !tbaa !5
  br label %93

93:                                               ; preds = %153, %91
  %94 = load ptr, ptr %1, align 8, !tbaa !5
  %95 = icmp ne ptr %94, null
  br i1 %95, label %96, label %101

96:                                               ; preds = %93
  %97 = load ptr, ptr %1, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.facetT, ptr %97, i32 0, i32 7
  %99 = load ptr, ptr %98, align 8, !tbaa !24
  %100 = icmp ne ptr %99, null
  br label %101

101:                                              ; preds = %96, %93
  %102 = phi i1 [ false, %93 ], [ %100, %96 ]
  br i1 %102, label %103, label %155

103:                                              ; preds = %101
  %104 = load ptr, ptr %1, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.facetT, ptr %104, i32 0, i32 7
  %106 = load ptr, ptr %105, align 8, !tbaa !24
  store ptr %106, ptr %2, align 8, !tbaa !5
  %107 = load ptr, ptr %1, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.facetT, ptr %107, i32 0, i32 15
  %109 = load i32, ptr %108, align 8
  %110 = lshr i32 %109, 11
  %111 = and i32 %110, 1
  %112 = icmp ne i32 %111, 0
  br i1 %112, label %113, label %114

113:                                              ; preds = %103
  br label %153

114:                                              ; preds = %103
  %115 = load ptr, ptr %1, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.facetT, ptr %115, i32 0, i32 9
  %117 = load ptr, ptr %116, align 8, !tbaa !29
  %118 = icmp ne ptr %117, null
  br i1 %118, label %119, label %134

119:                                              ; preds = %114
  %120 = load ptr, ptr %1, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.facetT, ptr %120, i32 0, i32 9
  %122 = load ptr, ptr %121, align 8, !tbaa !29
  %123 = call i32 @qh_setsize(ptr noundef %122)
  %124 = icmp sgt i32 %123, 0
  br i1 %124, label %125, label %131

125:                                              ; preds = %119
  %126 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !17
  %127 = load ptr, ptr %1, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.facetT, ptr %127, i32 0, i32 14
  %129 = load i32, ptr %128, align 4, !tbaa !28
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %126, i32 noundef 6161, ptr noundef @.str.214, i32 noundef %129)
  %130 = load ptr, ptr %1, align 8, !tbaa !5
  call void @qh_errexit(i32 noundef 5, ptr noundef %130, ptr noundef null)
  br label %131

131:                                              ; preds = %125, %119
  %132 = load ptr, ptr %1, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.facetT, ptr %132, i32 0, i32 9
  call void @qh_setfree(ptr noundef %133)
  br label %134

134:                                              ; preds = %131, %114
  %135 = load ptr, ptr %1, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.facetT, ptr %135, i32 0, i32 8
  %137 = load ptr, ptr %136, align 8, !tbaa !30
  %138 = getelementptr inbounds %struct.setT, ptr %137, i32 0, i32 1
  %139 = getelementptr inbounds [1 x %union.setelemT], ptr %138, i64 0, i64 0
  %140 = load ptr, ptr %139, align 8, !tbaa !31
  %141 = load ptr, ptr %1, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.facetT, ptr %141, i32 0, i32 8
  %143 = load ptr, ptr %142, align 8, !tbaa !30
  %144 = getelementptr inbounds %struct.setT, ptr %143, i32 0, i32 1
  %145 = getelementptr inbounds [1 x %union.setelemT], ptr %144, i64 0, i64 1
  %146 = load ptr, ptr %145, align 8, !tbaa !31
  %147 = icmp eq ptr %140, %146
  br i1 %147, label %148, label %152

148:                                              ; preds = %134
  %149 = load i32, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 227), align 8, !tbaa !31
  %150 = add nsw i32 %149, 1
  store i32 %150, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 227), align 8, !tbaa !31
  %151 = load ptr, ptr %1, align 8, !tbaa !5
  call void @qh_triangulate_null(ptr noundef %151)
  br label %152

152:                                              ; preds = %148, %134
  br label %153

153:                                              ; preds = %152, %113
  %154 = load ptr, ptr %2, align 8, !tbaa !5
  store ptr %154, ptr %1, align 8, !tbaa !5
  br label %93, !llvm.loop !32

155:                                              ; preds = %101
  %156 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !16
  %157 = icmp sge i32 %156, 2
  br i1 %157, label %158, label %162

158:                                              ; preds = %155
  %159 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !17
  %160 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 222), align 8, !tbaa !33
  %161 = call i32 @qh_setsize(ptr noundef %160)
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %159, i32 noundef 2048, ptr noundef @.str.215, i32 noundef %161)
  br label %162

162:                                              ; preds = %158, %155
  %163 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 164), align 8, !tbaa !34
  store ptr %163, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 167), align 8, !tbaa !35
  br label %164

164:                                              ; preds = %186, %162
  %165 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 222), align 8, !tbaa !33
  %166 = call ptr @qh_setdellast(ptr noundef %165)
  store ptr %166, ptr %12, align 8, !tbaa !5
  %167 = icmp ne ptr %166, null
  br i1 %167, label %168, label %187

168:                                              ; preds = %164
  %169 = load ptr, ptr %12, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.mergeT, ptr %169, i32 0, i32 2
  %171 = load ptr, ptr %170, align 8, !tbaa !36
  store ptr %171, ptr %6, align 8, !tbaa !5
  %172 = load ptr, ptr %12, align 8, !tbaa !5
  %173 = getelementptr inbounds %struct.mergeT, ptr %172, i32 0, i32 3
  %174 = load ptr, ptr %173, align 8, !tbaa !38
  store ptr %174, ptr %7, align 8, !tbaa !5
  %175 = load ptr, ptr %12, align 8, !tbaa !5
  %176 = getelementptr inbounds %struct.mergeT, ptr %175, i32 0, i32 8
  %177 = load i32, ptr %176, align 8, !tbaa !39
  store i32 %177, ptr %13, align 4, !tbaa !14
  %178 = load ptr, ptr %12, align 8, !tbaa !5
  call void @qh_memfree(ptr noundef %178, i32 noundef 72)
  %179 = load i32, ptr %13, align 4, !tbaa !14
  %180 = icmp eq i32 %179, 12
  br i1 %180, label %181, label %186

181:                                              ; preds = %168
  %182 = load i32, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 226), align 8, !tbaa !31
  %183 = add nsw i32 %182, 1
  store i32 %183, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 226), align 8, !tbaa !31
  %184 = load ptr, ptr %6, align 8, !tbaa !5
  %185 = load ptr, ptr %7, align 8, !tbaa !5
  call void @qh_triangulate_mirror(ptr noundef %184, ptr noundef %185)
  br label %186

186:                                              ; preds = %181, %168
  br label %164, !llvm.loop !40

187:                                              ; preds = %164
  call void @qh_freemergesets()
  %188 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !16
  %189 = icmp sge i32 %188, 2
  br i1 %189, label %190, label %201

190:                                              ; preds = %187
  %191 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !17
  %192 = load ptr, ptr %11, align 8, !tbaa !5
  %193 = icmp ne ptr %192, null
  br i1 %193, label %194, label %198

194:                                              ; preds = %190
  %195 = load ptr, ptr %11, align 8, !tbaa !5
  %196 = getelementptr inbounds %struct.vertexT, ptr %195, i32 0, i32 4
  %197 = load i32, ptr %196, align 8, !tbaa !41
  br label %199

198:                                              ; preds = %190
  br label %199

199:                                              ; preds = %198, %194
  %200 = phi i32 [ %197, %194 ], [ -1, %198 ]
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %191, i32 noundef 2049, ptr noundef @.str.216, i32 noundef %200)
  br label %201

201:                                              ; preds = %199, %187
  %202 = load ptr, ptr %11, align 8, !tbaa !5
  store ptr %202, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 177), align 8, !tbaa !22
  store ptr null, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 167), align 8, !tbaa !35
  call void @qh_update_vertexneighbors()
  call void @qh_resetlists(i32 noundef 0, i32 noundef 0)
  %203 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !16
  %204 = icmp sge i32 %203, 2
  br i1 %204, label %205, label %216

205:                                              ; preds = %201
  %206 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !17
  %207 = load ptr, ptr %8, align 8, !tbaa !5
  %208 = icmp ne ptr %207, null
  br i1 %208, label %209, label %213

209:                                              ; preds = %205
  %210 = load ptr, ptr %8, align 8, !tbaa !5
  %211 = getelementptr inbounds %struct.facetT, ptr %210, i32 0, i32 14
  %212 = load i32, ptr %211, align 4, !tbaa !28
  br label %214

213:                                              ; preds = %205
  br label %214

214:                                              ; preds = %213, %209
  %215 = phi i32 [ %212, %209 ], [ -1, %213 ]
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %206, i32 noundef 2050, ptr noundef @.str.217, i32 noundef %215)
  br label %216

216:                                              ; preds = %214, %201
  %217 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !16
  %218 = icmp sge i32 %217, 2
  br i1 %218, label %219, label %221

219:                                              ; preds = %216
  %220 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !17
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %220, i32 noundef 2051, ptr noundef @.str.218)
  br label %221

221:                                              ; preds = %219, %216
  %222 = load ptr, ptr %8, align 8, !tbaa !5
  %223 = icmp ne ptr %222, null
  br i1 %223, label %224, label %332

224:                                              ; preds = %221
  %225 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %225, ptr %1, align 8, !tbaa !5
  br label %226

226:                                              ; preds = %327, %224
  %227 = load ptr, ptr %1, align 8, !tbaa !5
  %228 = icmp ne ptr %227, null
  br i1 %228, label %229, label %234

229:                                              ; preds = %226
  %230 = load ptr, ptr %1, align 8, !tbaa !5
  %231 = getelementptr inbounds %struct.facetT, ptr %230, i32 0, i32 7
  %232 = load ptr, ptr %231, align 8, !tbaa !24
  %233 = icmp ne ptr %232, null
  br label %234

234:                                              ; preds = %229, %226
  %235 = phi i1 [ false, %226 ], [ %233, %229 ]
  br i1 %235, label %236, label %331

236:                                              ; preds = %234
  %237 = load ptr, ptr %1, align 8, !tbaa !5
  %238 = getelementptr inbounds %struct.facetT, ptr %237, i32 0, i32 15
  %239 = load i32, ptr %238, align 8
  %240 = lshr i32 %239, 9
  %241 = and i32 %240, 1
  %242 = icmp ne i32 %241, 0
  br i1 %242, label %243, label %326

243:                                              ; preds = %236
  %244 = load ptr, ptr %1, align 8, !tbaa !5
  %245 = getelementptr inbounds %struct.facetT, ptr %244, i32 0, i32 15
  %246 = load i32, ptr %245, align 8
  %247 = lshr i32 %246, 11
  %248 = and i32 %247, 1
  %249 = icmp ne i32 %248, 0
  br i1 %249, label %326, label %250

250:                                              ; preds = %243
  store ptr null, ptr %4, align 8, !tbaa !5
  %251 = load ptr, ptr %1, align 8, !tbaa !5
  %252 = getelementptr inbounds %struct.facetT, ptr %251, i32 0, i32 10
  %253 = load ptr, ptr %252, align 8, !tbaa !43
  %254 = icmp ne ptr %253, null
  br i1 %254, label %255, label %325

255:                                              ; preds = %250
  store i32 0, ptr %14, align 4, !tbaa !14
  %256 = load ptr, ptr %1, align 8, !tbaa !5
  %257 = getelementptr inbounds %struct.facetT, ptr %256, i32 0, i32 10
  %258 = load ptr, ptr %257, align 8, !tbaa !43
  %259 = getelementptr inbounds %struct.setT, ptr %258, i32 0, i32 1
  %260 = getelementptr inbounds [1 x %union.setelemT], ptr %259, i64 0, i64 0
  %261 = load ptr, ptr %260, align 8, !tbaa !31
  store ptr %261, ptr %4, align 8, !tbaa !5
  %262 = load ptr, ptr %1, align 8, !tbaa !5
  %263 = getelementptr inbounds %struct.facetT, ptr %262, i32 0, i32 10
  %264 = load ptr, ptr %263, align 8, !tbaa !43
  %265 = call i32 @qh_setsize(ptr noundef %264)
  store i32 %265, ptr %15, align 4, !tbaa !14
  br label %266

266:                                              ; preds = %314, %255
  %267 = load i32, ptr %14, align 4, !tbaa !14
  %268 = load i32, ptr %15, align 4, !tbaa !14
  %269 = icmp slt i32 %267, %268
  br i1 %269, label %270, label %324

270:                                              ; preds = %266
  %271 = load i32, ptr %14, align 4, !tbaa !14
  %272 = icmp eq i32 %271, 0
  br i1 %272, label %273, label %287

273:                                              ; preds = %270
  %274 = load ptr, ptr %4, align 8, !tbaa !5
  %275 = getelementptr inbounds %struct.facetT, ptr %274, i32 0, i32 15
  %276 = load i32, ptr %275, align 8
  %277 = lshr i32 %276, 9
  %278 = and i32 %277, 1
  %279 = icmp ne i32 %278, 0
  br i1 %279, label %280, label %284

280:                                              ; preds = %273
  %281 = load ptr, ptr %4, align 8, !tbaa !5
  %282 = getelementptr inbounds %struct.facetT, ptr %281, i32 0, i32 4
  %283 = load ptr, ptr %282, align 8, !tbaa !31
  store ptr %283, ptr %9, align 8, !tbaa !5
  br label %286

284:                                              ; preds = %273
  %285 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %285, ptr %9, align 8, !tbaa !5
  br label %286

286:                                              ; preds = %284, %280
  br label %313

287:                                              ; preds = %270
  %288 = load ptr, ptr %4, align 8, !tbaa !5
  %289 = getelementptr inbounds %struct.facetT, ptr %288, i32 0, i32 15
  %290 = load i32, ptr %289, align 8
  %291 = lshr i32 %290, 9
  %292 = and i32 %291, 1
  %293 = icmp ne i32 %292, 0
  br i1 %293, label %294, label %298

294:                                              ; preds = %287
  %295 = load ptr, ptr %4, align 8, !tbaa !5
  %296 = getelementptr inbounds %struct.facetT, ptr %295, i32 0, i32 4
  %297 = load ptr, ptr %296, align 8, !tbaa !31
  store ptr %297, ptr %10, align 8, !tbaa !5
  br label %300

298:                                              ; preds = %287
  %299 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %299, ptr %10, align 8, !tbaa !5
  br label %300

300:                                              ; preds = %298, %294
  %301 = load ptr, ptr %9, align 8, !tbaa !5
  %302 = load ptr, ptr %10, align 8, !tbaa !5
  %303 = icmp eq ptr %301, %302
  br i1 %303, label %304, label %312

304:                                              ; preds = %300
  %305 = load i32, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 225), align 8, !tbaa !31
  %306 = add nsw i32 %305, 1
  store i32 %306, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 225), align 8, !tbaa !31
  %307 = load ptr, ptr %1, align 8, !tbaa !5
  %308 = getelementptr inbounds %struct.facetT, ptr %307, i32 0, i32 15
  %309 = load i32, ptr %308, align 8
  %310 = and i32 %309, -1073741825
  %311 = or i32 %310, 1073741824
  store i32 %311, ptr %308, align 8
  br label %324

312:                                              ; preds = %300
  br label %313

313:                                              ; preds = %312, %286
  br label %314

314:                                              ; preds = %313
  %315 = load ptr, ptr %1, align 8, !tbaa !5
  %316 = getelementptr inbounds %struct.facetT, ptr %315, i32 0, i32 10
  %317 = load ptr, ptr %316, align 8, !tbaa !43
  %318 = getelementptr inbounds %struct.setT, ptr %317, i32 0, i32 1
  %319 = load i32, ptr %14, align 4, !tbaa !14
  %320 = add nsw i32 %319, 1
  store i32 %320, ptr %14, align 4, !tbaa !14
  %321 = sext i32 %320 to i64
  %322 = getelementptr inbounds [1 x %union.setelemT], ptr %318, i64 0, i64 %321
  %323 = load ptr, ptr %322, align 8, !tbaa !31
  store ptr %323, ptr %4, align 8, !tbaa !5
  br label %266, !llvm.loop !44

324:                                              ; preds = %304, %266
  br label %325

325:                                              ; preds = %324, %250
  br label %326

326:                                              ; preds = %325, %243, %236
  br label %327

327:                                              ; preds = %326
  %328 = load ptr, ptr %1, align 8, !tbaa !5
  %329 = getelementptr inbounds %struct.facetT, ptr %328, i32 0, i32 7
  %330 = load ptr, ptr %329, align 8, !tbaa !24
  store ptr %330, ptr %1, align 8, !tbaa !5
  br label %226, !llvm.loop !45

331:                                              ; preds = %234
  br label %332

332:                                              ; preds = %331, %221
  %333 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !16
  %334 = icmp sge i32 %333, 4
  br i1 %334, label %335, label %336

335:                                              ; preds = %332
  call void @qh_printlists()
  br label %336

336:                                              ; preds = %335, %332
  %337 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !16
  %338 = icmp sge i32 %337, 2
  br i1 %338, label %339, label %341

339:                                              ; preds = %336
  %340 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !17
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %340, i32 noundef 2052, ptr noundef @.str.219)
  br label %341

341:                                              ; preds = %339, %336
  store ptr null, ptr %3, align 8, !tbaa !5
  store ptr null, ptr %5, align 8, !tbaa !5
  %342 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %342, ptr %1, align 8, !tbaa !5
  br label %343

343:                                              ; preds = %485, %341
  %344 = load ptr, ptr %1, align 8, !tbaa !5
  %345 = icmp ne ptr %344, null
  br i1 %345, label %346, label %351

346:                                              ; preds = %343
  %347 = load ptr, ptr %1, align 8, !tbaa !5
  %348 = getelementptr inbounds %struct.facetT, ptr %347, i32 0, i32 7
  %349 = load ptr, ptr %348, align 8, !tbaa !24
  %350 = icmp ne ptr %349, null
  br label %351

351:                                              ; preds = %346, %343
  %352 = phi i1 [ false, %343 ], [ %350, %346 ]
  br i1 %352, label %353, label %487

353:                                              ; preds = %351
  %354 = load ptr, ptr %1, align 8, !tbaa !5
  %355 = getelementptr inbounds %struct.facetT, ptr %354, i32 0, i32 7
  %356 = load ptr, ptr %355, align 8, !tbaa !24
  store ptr %356, ptr %2, align 8, !tbaa !5
  %357 = load ptr, ptr %1, align 8, !tbaa !5
  %358 = getelementptr inbounds %struct.facetT, ptr %357, i32 0, i32 15
  %359 = load i32, ptr %358, align 8
  %360 = lshr i32 %359, 11
  %361 = and i32 %360, 1
  %362 = icmp ne i32 %361, 0
  br i1 %362, label %363, label %395

363:                                              ; preds = %353
  %364 = load ptr, ptr %1, align 8, !tbaa !5
  %365 = getelementptr inbounds %struct.facetT, ptr %364, i32 0, i32 15
  %366 = load i32, ptr %365, align 8
  %367 = lshr i32 %366, 9
  %368 = and i32 %367, 1
  %369 = icmp ne i32 %368, 0
  br i1 %369, label %370, label %374

370:                                              ; preds = %363
  %371 = load ptr, ptr %1, align 8, !tbaa !5
  call void @qh_delfacet(ptr noundef %371)
  %372 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 168), align 8, !tbaa !46
  %373 = add nsw i32 %372, -1
  store i32 %373, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 168), align 8, !tbaa !46
  br label %394

374:                                              ; preds = %363
  %375 = load ptr, ptr %5, align 8, !tbaa !5
  %376 = icmp ne ptr %375, null
  br i1 %376, label %377, label %392

377:                                              ; preds = %374
  %378 = load ptr, ptr %3, align 8, !tbaa !5
  %379 = icmp ne ptr %378, null
  br i1 %379, label %392, label %380

380:                                              ; preds = %377
  %381 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !16
  %382 = icmp sge i32 %381, 2
  br i1 %382, label %383, label %388

383:                                              ; preds = %380
  %384 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !17
  %385 = load ptr, ptr %5, align 8, !tbaa !5
  %386 = getelementptr inbounds %struct.facetT, ptr %385, i32 0, i32 14
  %387 = load i32, ptr %386, align 4, !tbaa !28
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %384, i32 noundef 2053, ptr noundef @.str.220, i32 noundef %387)
  br label %388

388:                                              ; preds = %383, %380
  %389 = load ptr, ptr %5, align 8, !tbaa !5
  call void @qh_delfacet(ptr noundef %389)
  %390 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 168), align 8, !tbaa !46
  %391 = add nsw i32 %390, -1
  store i32 %391, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 168), align 8, !tbaa !46
  br label %392

392:                                              ; preds = %388, %377, %374
  %393 = load ptr, ptr %1, align 8, !tbaa !5
  store ptr %393, ptr %5, align 8, !tbaa !5
  store ptr null, ptr %3, align 8, !tbaa !5
  br label %394

394:                                              ; preds = %392, %370
  br label %479

395:                                              ; preds = %353
  %396 = load ptr, ptr %1, align 8, !tbaa !5
  %397 = getelementptr inbounds %struct.facetT, ptr %396, i32 0, i32 15
  %398 = load i32, ptr %397, align 8
  %399 = lshr i32 %398, 9
  %400 = and i32 %399, 1
  %401 = icmp ne i32 %400, 0
  br i1 %401, label %402, label %478

402:                                              ; preds = %395
  %403 = load ptr, ptr %1, align 8, !tbaa !5
  %404 = getelementptr inbounds %struct.facetT, ptr %403, i32 0, i32 4
  %405 = load ptr, ptr %404, align 8, !tbaa !31
  %406 = load ptr, ptr %5, align 8, !tbaa !5
  %407 = icmp ne ptr %405, %406
  br i1 %407, label %411, label %408

408:                                              ; preds = %402
  %409 = load ptr, ptr %5, align 8, !tbaa !5
  %410 = icmp eq ptr %409, null
  br i1 %410, label %411, label %427

411:                                              ; preds = %408, %402
  %412 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !17
  %413 = load ptr, ptr %1, align 8, !tbaa !5
  %414 = getelementptr inbounds %struct.facetT, ptr %413, i32 0, i32 14
  %415 = load i32, ptr %414, align 4, !tbaa !28
  %416 = load ptr, ptr %5, align 8, !tbaa !5
  %417 = icmp ne ptr %416, null
  br i1 %417, label %418, label %422

418:                                              ; preds = %411
  %419 = load ptr, ptr %5, align 8, !tbaa !5
  %420 = getelementptr inbounds %struct.facetT, ptr %419, i32 0, i32 14
  %421 = load i32, ptr %420, align 4, !tbaa !28
  br label %423

422:                                              ; preds = %411
  br label %423

423:                                              ; preds = %422, %418
  %424 = phi i32 [ %421, %418 ], [ -1, %422 ]
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %412, i32 noundef 6162, ptr noundef @.str.221, i32 noundef %415, i32 noundef %424)
  %425 = load ptr, ptr %1, align 8, !tbaa !5
  %426 = load ptr, ptr %5, align 8, !tbaa !5
  call void @qh_errexit2(i32 noundef 5, ptr noundef %425, ptr noundef %426)
  br label %427

427:                                              ; preds = %423, %408
  %428 = load ptr, ptr %3, align 8, !tbaa !5
  %429 = icmp ne ptr %428, null
  br i1 %429, label %430, label %434

430:                                              ; preds = %427
  %431 = load ptr, ptr %3, align 8, !tbaa !5
  %432 = load ptr, ptr %1, align 8, !tbaa !5
  %433 = getelementptr inbounds %struct.facetT, ptr %432, i32 0, i32 4
  store ptr %431, ptr %433, align 8, !tbaa !31
  br label %477

434:                                              ; preds = %427
  %435 = load ptr, ptr %1, align 8, !tbaa !5
  %436 = getelementptr inbounds %struct.facetT, ptr %435, i32 0, i32 15
  %437 = load i32, ptr %436, align 8
  %438 = lshr i32 %437, 30
  %439 = and i32 %438, 1
  %440 = icmp ne i32 %439, 0
  br i1 %440, label %476, label %441

441:                                              ; preds = %434
  %442 = load ptr, ptr %1, align 8, !tbaa !5
  store ptr %442, ptr %3, align 8, !tbaa !5
  %443 = load ptr, ptr %5, align 8, !tbaa !5
  %444 = getelementptr inbounds %struct.facetT, ptr %443, i32 0, i32 7
  %445 = load ptr, ptr %444, align 8, !tbaa !24
  store ptr %445, ptr %2, align 8, !tbaa !5
  %446 = load ptr, ptr %1, align 8, !tbaa !5
  %447 = getelementptr inbounds %struct.facetT, ptr %446, i32 0, i32 15
  %448 = load i32, ptr %447, align 8
  %449 = and i32 %448, -268435457
  %450 = or i32 %449, 268435456
  store i32 %450, ptr %447, align 8
  %451 = load ptr, ptr %5, align 8, !tbaa !5
  %452 = getelementptr inbounds %struct.facetT, ptr %451, i32 0, i32 12
  %453 = load ptr, ptr %452, align 8, !tbaa !47
  %454 = load ptr, ptr %1, align 8, !tbaa !5
  %455 = getelementptr inbounds %struct.facetT, ptr %454, i32 0, i32 12
  store ptr %453, ptr %455, align 8, !tbaa !47
  %456 = load ptr, ptr %5, align 8, !tbaa !5
  %457 = getelementptr inbounds %struct.facetT, ptr %456, i32 0, i32 11
  %458 = load ptr, ptr %457, align 8, !tbaa !48
  %459 = load ptr, ptr %1, align 8, !tbaa !5
  %460 = getelementptr inbounds %struct.facetT, ptr %459, i32 0, i32 11
  store ptr %458, ptr %460, align 8, !tbaa !48
  %461 = load ptr, ptr %5, align 8, !tbaa !5
  %462 = getelementptr inbounds %struct.facetT, ptr %461, i32 0, i32 12
  store ptr null, ptr %462, align 8, !tbaa !47
  %463 = load ptr, ptr %5, align 8, !tbaa !5
  %464 = getelementptr inbounds %struct.facetT, ptr %463, i32 0, i32 11
  store ptr null, ptr %464, align 8, !tbaa !48
  %465 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 98), align 8, !tbaa !49
  %466 = icmp ne i32 %465, 0
  br i1 %466, label %472, label %467

467:                                              ; preds = %441
  %468 = load ptr, ptr %5, align 8, !tbaa !5
  %469 = getelementptr inbounds %struct.facetT, ptr %468, i32 0, i32 5
  store ptr null, ptr %469, align 8, !tbaa !50
  %470 = load ptr, ptr %5, align 8, !tbaa !5
  %471 = getelementptr inbounds %struct.facetT, ptr %470, i32 0, i32 3
  store ptr null, ptr %471, align 8, !tbaa !51
  br label %472

472:                                              ; preds = %467, %441
  %473 = load ptr, ptr %5, align 8, !tbaa !5
  call void @qh_delfacet(ptr noundef %473)
  %474 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 168), align 8, !tbaa !46
  %475 = add nsw i32 %474, -1
  store i32 %475, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 168), align 8, !tbaa !46
  br label %476

476:                                              ; preds = %472, %434
  br label %477

477:                                              ; preds = %476, %430
  br label %478

478:                                              ; preds = %477, %395
  br label %479

479:                                              ; preds = %478, %394
  %480 = load ptr, ptr %1, align 8, !tbaa !5
  %481 = getelementptr inbounds %struct.facetT, ptr %480, i32 0, i32 15
  %482 = load i32, ptr %481, align 8
  %483 = and i32 %482, -1073741825
  %484 = or i32 %483, 0
  store i32 %484, ptr %481, align 8
  br label %485

485:                                              ; preds = %479
  %486 = load ptr, ptr %2, align 8, !tbaa !5
  store ptr %486, ptr %1, align 8, !tbaa !5
  br label %343, !llvm.loop !52

487:                                              ; preds = %351
  %488 = load ptr, ptr %5, align 8, !tbaa !5
  %489 = icmp ne ptr %488, null
  br i1 %489, label %490, label %505

490:                                              ; preds = %487
  %491 = load ptr, ptr %3, align 8, !tbaa !5
  %492 = icmp ne ptr %491, null
  br i1 %492, label %505, label %493

493:                                              ; preds = %490
  %494 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !16
  %495 = icmp sge i32 %494, 2
  br i1 %495, label %496, label %501

496:                                              ; preds = %493
  %497 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !17
  %498 = load ptr, ptr %5, align 8, !tbaa !5
  %499 = getelementptr inbounds %struct.facetT, ptr %498, i32 0, i32 14
  %500 = load i32, ptr %499, align 4, !tbaa !28
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %497, i32 noundef 2054, ptr noundef @.str.222, i32 noundef %500)
  br label %501

501:                                              ; preds = %496, %493
  %502 = load ptr, ptr %5, align 8, !tbaa !5
  call void @qh_delfacet(ptr noundef %502)
  %503 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 168), align 8, !tbaa !46
  %504 = add nsw i32 %503, -1
  store i32 %504, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 168), align 8, !tbaa !46
  br label %505

505:                                              ; preds = %501, %490, %487
  %506 = load i32, ptr %16, align 4, !tbaa !14
  store i32 %506, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 48), align 4, !tbaa !9
  %507 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 14), align 4, !tbaa !53
  %508 = icmp ne i32 %507, 0
  br i1 %508, label %509, label %511

509:                                              ; preds = %505
  %510 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 163), align 8, !tbaa !23
  call void @qh_checkpolygon(ptr noundef %510)
  br label %511

511:                                              ; preds = %509, %505
  store i32 1, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 195), align 4, !tbaa !15
  store i32 0, ptr %17, align 4
  br label %512

512:                                              ; preds = %511, %30, %21
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #3
  %513 = load i32, ptr %17, align 4
  switch i32 %513, label %515 [
    i32 0, label %514
    i32 1, label %514
  ]

514:                                              ; preds = %512, %512
  ret void

515:                                              ; preds = %512
  unreachable
}

declare void @qh_initmergesets() #1

; Function Attrs: nounwind uwtable
declare dso_local void @qh_triangulate_facet(ptr noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local void @qh_triangulate_null(ptr noundef) #2

declare ptr @qh_setdellast(ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local void @qh_triangulate_mirror(ptr noundef, ptr noundef) #2

declare void @qh_freemergesets() #1

declare void @qh_update_vertexneighbors() #1

declare void @qh_delfacet(ptr noundef) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { 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 }

!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/C++ TBAA"}
!9 = !{!10, !11, i64 236}
!10 = !{!"qhT", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !12, i64 24, !11, i64 32, !11, i64 36, !11, i64 40, !11, i64 44, !11, i64 48, !11, i64 52, !11, i64 56, !11, i64 60, !12, i64 64, !12, i64 72, !11, i64 80, !11, i64 84, !11, i64 88, !11, i64 92, !11, i64 96, !11, i64 100, !6, i64 104, !11, i64 112, !11, i64 116, !6, i64 120, !11, i64 128, !11, i64 132, !11, i64 136, !11, i64 140, !11, i64 144, !11, i64 148, !11, i64 152, !12, i64 160, !12, i64 168, !11, i64 176, !11, i64 180, !11, i64 184, !11, i64 188, !12, i64 192, !12, i64 200, !11, i64 208, !11, i64 212, !12, i64 216, !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, !11, i64 296, !7, i64 300, !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, !11, i64 544, !12, i64 552, !11, i64 560, !11, i64 564, !11, i64 568, !11, i64 572, !11, i64 576, !11, i64 580, !11, i64 584, !11, i64 588, !12, i64 592, !11, i64 600, !6, i64 608, !6, i64 616, !11, i64 624, !11, i64 628, !11, i64 632, !11, i64 636, !11, i64 640, !6, i64 648, !11, i64 656, !6, i64 664, !11, i64 672, !7, i64 676, !11, i64 932, !7, i64 936, !7, i64 1192, !11, i64 1704, !11, i64 1708, !11, i64 1712, !11, i64 1716, !11, i64 1720, !11, i64 1724, !6, i64 1728, !6, i64 1736, !6, i64 1744, !6, 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, !12, i64 1856, !12, i64 1864, !6, i64 1872, !12, i64 1880, !12, i64 1888, !12, i64 1896, !12, i64 1904, !11, i64 1912, !7, i64 1916, !7, i64 1928, !7, i64 2128, !7, i64 2168, !7, i64 2368, !6, i64 2408, !6, i64 2416, !6, i64 2424, !6, i64 2432, !11, i64 2440, !11, i64 2444, !11, i64 2448, !6, i64 2456, !6, i64 2464, !6, i64 2472, !6, i64 2480, !6, i64 2488, !11, i64 2496, !11, i64 2500, !6, i64 2504, !11, i64 2512, !6, i64 2520, !11, i64 2528, !6, i64 2536, !6, i64 2544, !6, i64 2552, !6, i64 2560, !11, i64 2568, !11, i64 2572, !11, i64 2576, !11, i64 2580, !11, i64 2584, !11, i64 2588, !11, i64 2592, !11, i64 2596, !13, i64 2600, !11, i64 2608, !11, i64 2612, !11, i64 2616, !11, i64 2620, !11, i64 2624, !6, i64 2632, !6, i64 2640, !11, i64 2648, !11, i64 2652, !11, i64 2656, !12, i64 2664, !11, i64 2672, !12, i64 2680, !12, i64 2688, !12, i64 2696, !11, i64 2704, !11, i64 2708, !11, i64 2712, !11, i64 2716, !11, i64 2720, !12, i64 2728, !12, i64 2736, !11, i64 2744, !11, i64 2748, !11, i64 2752, !11, i64 2756, !11, i64 2760, !11, i64 2764, !12, i64 2768, !12, i64 2776, !11, i64 2784, !11, i64 2788, !11, i64 2792, !11, i64 2796, !6, i64 2800, !6, i64 2808, !6, i64 2816, !6, i64 2824, !6, i64 2832, !6, i64 2840, !6, i64 2848, !6, i64 2856, !6, i64 2864, !11, i64 2872, !6, i64 2880, !6, i64 2888, !11, i64 2896, !11, i64 2900, !11, i64 2904, !6, i64 2912, !12, i64 2920, !12, i64 2928, !12, i64 2936, !12, i64 2944, !11, i64 2952, !11, i64 2956, !11, i64 2960, !11, i64 2964, !11, i64 2968, !11, i64 2972, !6, i64 2976, !6, i64 2984, !11, i64 2992}
!11 = !{!"int", !7, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!"long", !7, i64 0}
!14 = !{!11, !11, i64 0}
!15 = !{!10, !11, i64 2652}
!16 = !{!10, !11, i64 136}
!17 = !{!10, !6, i64 2424}
!18 = !{!10, !11, i64 632}
!19 = !{!10, !11, i64 588}
!20 = !{!10, !11, i64 2784}
!21 = !{!10, !6, i64 2552}
!22 = !{!10, !6, i64 2560}
!23 = !{!10, !6, i64 2456}
!24 = !{!25, !6, i64 56}
!25 = !{!"facetT", !12, i64 0, !12, i64 8, !12, i64 16, !6, i64 24, !7, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !11, i64 104, !11, i64 108, !11, i64 112, !11, i64 113, !11, i64 113, !11, i64 113, !11, i64 113, !11, i64 113, !11, i64 113, !11, i64 113, !11, i64 114, !11, i64 114, !11, i64 114, !11, i64 114, !11, i64 114, !11, i64 114, !11, i64 114, !11, i64 114, !11, i64 115, !11, i64 115, !11, i64 115, !11, i64 115, !11, i64 115, !11, i64 115, !11, i64 115, !11, i64 115}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}
!28 = !{!25, !11, i64 108}
!29 = !{!25, !6, i64 72}
!30 = !{!25, !6, i64 64}
!31 = !{!7, !7, i64 0}
!32 = distinct !{!32, !27}
!33 = !{!10, !6, i64 2808}
!34 = !{!10, !6, i64 2464}
!35 = !{!10, !6, i64 2488}
!36 = !{!37, !6, i64 16}
!37 = !{!"mergeT", !12, i64 0, !12, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !11, i64 64}
!38 = !{!37, !6, i64 24}
!39 = !{!37, !11, i64 64}
!40 = distinct !{!40, !27}
!41 = !{!42, !11, i64 32}
!42 = !{!"vertexT", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !11, i64 32, !11, i64 36, !11, i64 40, !11, i64 40, !11, i64 40, !11, i64 40, !11, i64 40, !11, i64 40}
!43 = !{!25, !6, i64 80}
!44 = distinct !{!44, !27}
!45 = distinct !{!45, !27}
!46 = !{!10, !11, i64 2496}
!47 = !{!25, !6, i64 96}
!48 = !{!25, !6, i64 88}
!49 = !{!10, !11, i64 568}
!50 = !{!25, !6, i64 40}
!51 = !{!25, !6, i64 24}
!52 = distinct !{!52, !27}
!53 = !{!10, !11, i64 60}


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

%struct.qhT = type { i32, i32, i32, i32, i32, i32, double, i32, i32, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, i32, i32, ptr, i32, i32, ptr, i32, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, double, double, i32, i32, double, 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, double, double, double, i32, 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, double, ptr, double, double, double, double, i32, [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, i32, ptr, ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i64, i32, i32, i32, i32, i32, ptr, ptr, i32, i32, i32, double, i32, double, double, double, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, ptr, ptr, i32, i32, i32, ptr, double, double, double, double, i32, i32, i32, i32, i32, i32, ptr, ptr, i32 }
%struct.__jmp_buf_tag = type { [8 x i64], i32, %struct.__sigset_t }
%struct.__sigset_t = type { [16 x i64] }
%struct.qhstatT = type { [249 x %union.intrealT], [259 x i8], [249 x ptr], [249 x i16], [249 x i8], [249 x i8], [9 x %union.intrealT], i32, i32, i32, i32, double }
%union.intrealT = type { double }
%union.setelemT = type { ptr }

@qh_qh = external local_unnamed_addr global %struct.qhT, align 8
@qh_qhstat = external local_unnamed_addr global %struct.qhstatT, align 8
@.str.212 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.213 = external hidden unnamed_addr constant [116 x i8], align 1
@.str.214 = external hidden unnamed_addr constant [69 x i8], align 1
@.str.215 = external hidden unnamed_addr constant [112 x i8], align 1
@.str.216 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.217 = external hidden unnamed_addr constant [65 x i8], align 1
@.str.218 = external hidden unnamed_addr constant [101 x i8], align 1
@.str.219 = external hidden unnamed_addr constant [84 x i8], align 1
@.str.220 = external hidden unnamed_addr constant [89 x i8], align 1
@.str.221 = external hidden unnamed_addr constant [113 x i8], align 1
@.str.222 = external hidden unnamed_addr constant [85 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

declare i32 @qh_setsize(ptr noundef) local_unnamed_addr #1

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

declare void @qh_fprintf(ptr noundef, i32 noundef, ptr noundef, ...) local_unnamed_addr #1

declare void @qh_errexit2(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare void @qh_errexit(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local void @qh_checkpolygon(ptr noundef) local_unnamed_addr #2

declare void @qh_memfree(ptr noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local void @qh_printlists() local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local void @qh_clearcenters(i32 noundef) local_unnamed_addr #2

declare void @qh_setfree(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local void @qh_vertexneighbors() local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local void @qh_resetlists(i32 noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local void @qh_triangulate() local_unnamed_addr #2 {
  %1 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #4
  store ptr null, ptr %1, align 8, !tbaa !5
  %2 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 236), align 4, !tbaa !9
  %3 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2652), align 4, !tbaa !14
  %.not = icmp eq i32 %3, 0
  br i1 %.not, label %4, label %246

4:                                                ; preds = %0
  %5 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !15
  %6 = icmp sgt i32 %5, 0
  br i1 %6, label %7, label %9

7:                                                ; preds = %4
  %8 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !16
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %8, i32 noundef 1034, ptr noundef nonnull @.str.212) #4
  br label %9

9:                                                ; preds = %7, %4
  %10 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 632), align 8, !tbaa !17
  %11 = icmp eq i32 %10, 2
  br i1 %11, label %246, label %12

12:                                               ; preds = %9
  %13 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 588), align 4, !tbaa !18
  %.not134 = icmp eq i32 %13, 0
  br i1 %.not134, label %15, label %14

14:                                               ; preds = %12
  tail call void @qh_clearcenters(i32 noundef 1)
  tail call void @qh_vertexneighbors()
  br label %15

15:                                               ; preds = %14, %12
  store i32 0, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 236), align 4, !tbaa !9
  %16 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2784), align 8, !tbaa !19
  %17 = add i32 %16, 1
  store i32 %17, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2784), align 8, !tbaa !19
  tail call void @qh_initmergesets() #4
  %18 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2552), align 8, !tbaa !20
  store ptr %18, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2560), align 8, !tbaa !21
  %19 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2456), align 8, !tbaa !22
  %.not135170 = icmp eq ptr %19, null
  br i1 %.not135170, label %.critedge.thread, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %15
  %20 = getelementptr inbounds i8, ptr %19, i64 56
  %21 = load ptr, ptr %20, align 8, !tbaa !23
  %.not136228 = icmp eq ptr %21, null
  br i1 %.not136228, label %.critedge, label %.lr.ph231

.lr.ph231:                                        ; preds = %.lr.ph.preheader, %.lr.ph
  %22 = phi ptr [ %28, %.lr.ph ], [ %21, %.lr.ph.preheader ]
  %.0122171230 = phi ptr [ %.2124, %.lr.ph ], [ null, %.lr.ph.preheader ]
  %.0172229 = phi ptr [ %22, %.lr.ph ], [ %19, %.lr.ph.preheader ]
  %23 = getelementptr inbounds i8, ptr %.0172229, i64 112
  %24 = load i32, ptr %23, align 8
  %25 = and i32 %24, 10240
  %or.cond166 = icmp eq i32 %25, 0
  br i1 %or.cond166, label %26, label %.lr.ph

26:                                               ; preds = %.lr.ph231
  %.not165 = icmp eq ptr %.0122171230, null
  %spec.select = select i1 %.not165, ptr %.0172229, ptr %.0122171230
  call void @qh_triangulate_facet(ptr noundef nonnull %.0172229, ptr noundef nonnull %1)
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph231, %26
  %.2124 = phi ptr [ %.0122171230, %.lr.ph231 ], [ %spec.select, %26 ]
  %27 = getelementptr inbounds i8, ptr %22, i64 56
  %28 = load ptr, ptr %27, align 8, !tbaa !23
  %.not136 = icmp eq ptr %28, null
  br i1 %.not136, label %.critedge, label %.lr.ph231

.critedge:                                        ; preds = %.lr.ph, %.lr.ph.preheader
  %.0122171.lcssa = phi ptr [ null, %.lr.ph.preheader ], [ %.2124, %.lr.ph ]
  %29 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !15
  %30 = icmp sgt i32 %29, 1
  br i1 %30, label %34, label %42

.critedge.thread:                                 ; preds = %15
  %31 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !15
  %32 = icmp sgt i32 %31, 1
  br i1 %32, label %.thread211, label %.critedge2.thread

.thread211:                                       ; preds = %.critedge.thread
  %33 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !16
  br label %39

34:                                               ; preds = %.critedge
  %35 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !16
  %.not137 = icmp eq ptr %.0122171.lcssa, null
  br i1 %.not137, label %39, label %36

36:                                               ; preds = %34
  %37 = getelementptr inbounds i8, ptr %.0122171.lcssa, i64 108
  %38 = load i32, ptr %37, align 4, !tbaa !25
  br label %39

39:                                               ; preds = %.thread211, %34, %36
  %40 = phi ptr [ %35, %36 ], [ %35, %34 ], [ %33, %.thread211 ]
  %.0122.lcssa209214 = phi ptr [ %.0122171.lcssa, %36 ], [ null, %34 ], [ null, %.thread211 ]
  %41 = phi i32 [ %38, %36 ], [ -1, %34 ], [ -1, %.thread211 ]
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %40, i32 noundef 2047, ptr noundef nonnull @.str.213, i32 noundef %41) #4
  br label %42

42:                                               ; preds = %39, %.critedge
  %.0122.lcssa208 = phi ptr [ %.0122.lcssa209214, %39 ], [ %.0122171.lcssa, %.critedge ]
  %.not138175 = icmp eq ptr %.0122.lcssa208, null
  br i1 %.not138175, label %.critedge2, label %.lr.ph177.preheader

.lr.ph177.preheader:                              ; preds = %42
  %43 = getelementptr inbounds i8, ptr %.0122.lcssa208, i64 56
  %44 = load ptr, ptr %43, align 8, !tbaa !23
  %.not139232 = icmp eq ptr %44, null
  br i1 %.not139232, label %.critedge2, label %.lr.ph234

.lr.ph234:                                        ; preds = %.lr.ph177.preheader, %.lr.ph177
  %45 = phi ptr [ %72, %.lr.ph177 ], [ %44, %.lr.ph177.preheader ]
  %.1176233 = phi ptr [ %45, %.lr.ph177 ], [ %.0122.lcssa208, %.lr.ph177.preheader ]
  %46 = getelementptr inbounds i8, ptr %.1176233, i64 112
  %47 = load i32, ptr %46, align 8
  %48 = and i32 %47, 2048
  %.not161 = icmp eq i32 %48, 0
  br i1 %.not161, label %49, label %.lr.ph177

49:                                               ; preds = %.lr.ph234
  %50 = getelementptr inbounds i8, ptr %.1176233, i64 72
  %51 = load ptr, ptr %50, align 8, !tbaa !26
  %.not162 = icmp eq ptr %51, null
  br i1 %.not162, label %60, label %52

52:                                               ; preds = %49
  %53 = call i32 @qh_setsize(ptr noundef nonnull %51) #4
  %54 = icmp sgt i32 %53, 0
  br i1 %54, label %55, label %59

55:                                               ; preds = %52
  %56 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !16
  %57 = getelementptr inbounds i8, ptr %.1176233, i64 108
  %58 = load i32, ptr %57, align 4, !tbaa !25
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %56, i32 noundef 6161, ptr noundef nonnull @.str.214, i32 noundef %58) #4
  call void @qh_errexit(i32 noundef 5, ptr noundef nonnull %.1176233, ptr noundef null) #4
  br label %59

59:                                               ; preds = %55, %52
  call void @qh_setfree(ptr noundef nonnull %50) #4
  br label %60

60:                                               ; preds = %59, %49
  %61 = getelementptr inbounds i8, ptr %.1176233, i64 64
  %62 = load ptr, ptr %61, align 8, !tbaa !27
  %63 = getelementptr inbounds i8, ptr %62, i64 8
  %64 = load ptr, ptr %63, align 8, !tbaa !28
  %65 = getelementptr inbounds i8, ptr %62, i64 16
  %66 = load ptr, ptr %65, align 8, !tbaa !28
  %67 = icmp eq ptr %64, %66
  br i1 %67, label %68, label %.lr.ph177

68:                                               ; preds = %60
  %69 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1816), align 8, !tbaa !28
  %70 = add nsw i32 %69, 1
  store i32 %70, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1816), align 8, !tbaa !28
  call void @qh_triangulate_null(ptr noundef nonnull %.1176233)
  br label %.lr.ph177

.lr.ph177:                                        ; preds = %60, %68, %.lr.ph234
  %71 = getelementptr inbounds i8, ptr %45, i64 56
  %72 = load ptr, ptr %71, align 8, !tbaa !23
  %.not139 = icmp eq ptr %72, null
  br i1 %.not139, label %.critedge2, label %.lr.ph234

.critedge2:                                       ; preds = %.lr.ph177, %.lr.ph177.preheader, %42
  %.pr220 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !15
  %73 = icmp sgt i32 %.pr220, 1
  br i1 %73, label %74, label %.critedge2.thread

74:                                               ; preds = %.critedge2
  %75 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !16
  %76 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2808), align 8, !tbaa !29
  %77 = call i32 @qh_setsize(ptr noundef %76) #4
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %75, i32 noundef 2048, ptr noundef nonnull @.str.215, i32 noundef %77) #4
  br label %.critedge2.thread

.critedge2.thread:                                ; preds = %.critedge.thread, %74, %.critedge2
  %.0122.lcssa208218224 = phi ptr [ %.0122.lcssa208, %74 ], [ %.0122.lcssa208, %.critedge2 ], [ null, %.critedge.thread ]
  %.not138175219223 = phi i1 [ %.not138175, %74 ], [ %.not138175, %.critedge2 ], [ true, %.critedge.thread ]
  %78 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2464), align 8, !tbaa !30
  store ptr %78, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2488), align 8, !tbaa !31
  %79 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2808), align 8, !tbaa !29
  %80 = call ptr @qh_setdellast(ptr noundef %79) #4
  %.not140179 = icmp eq ptr %80, null
  br i1 %.not140179, label %._crit_edge, label %.lr.ph180

.lr.ph180:                                        ; preds = %.critedge2.thread, %92
  %81 = phi ptr [ %94, %92 ], [ %80, %.critedge2.thread ]
  %82 = getelementptr inbounds i8, ptr %81, i64 16
  %83 = load ptr, ptr %82, align 8, !tbaa !32
  %84 = getelementptr inbounds i8, ptr %81, i64 24
  %85 = load ptr, ptr %84, align 8, !tbaa !34
  %86 = getelementptr inbounds i8, ptr %81, i64 64
  %87 = load i32, ptr %86, align 8, !tbaa !35
  call void @qh_memfree(ptr noundef nonnull %81, i32 noundef 72) #4
  %88 = icmp eq i32 %87, 12
  br i1 %88, label %89, label %92

89:                                               ; preds = %.lr.ph180
  %90 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1808), align 8, !tbaa !28
  %91 = add nsw i32 %90, 1
  store i32 %91, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1808), align 8, !tbaa !28
  call void @qh_triangulate_mirror(ptr noundef %83, ptr noundef %85)
  br label %92

92:                                               ; preds = %89, %.lr.ph180
  %93 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2808), align 8, !tbaa !29
  %94 = call ptr @qh_setdellast(ptr noundef %93) #4
  %.not140 = icmp eq ptr %94, null
  br i1 %.not140, label %._crit_edge, label %.lr.ph180, !llvm.loop !36

._crit_edge:                                      ; preds = %92, %.critedge2.thread
  call void @qh_freemergesets() #4
  %95 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !15
  %96 = icmp sgt i32 %95, 1
  br i1 %96, label %97, label %105

97:                                               ; preds = %._crit_edge
  %98 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !16
  %99 = load ptr, ptr %1, align 8, !tbaa !5
  %.not141 = icmp eq ptr %99, null
  br i1 %.not141, label %103, label %100

100:                                              ; preds = %97
  %101 = getelementptr inbounds i8, ptr %99, i64 32
  %102 = load i32, ptr %101, align 8, !tbaa !38
  br label %103

103:                                              ; preds = %97, %100
  %104 = phi i32 [ %102, %100 ], [ -1, %97 ]
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %98, i32 noundef 2049, ptr noundef nonnull @.str.216, i32 noundef %104) #4
  br label %105

105:                                              ; preds = %103, %._crit_edge
  %106 = load ptr, ptr %1, align 8, !tbaa !5
  store ptr %106, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2560), align 8, !tbaa !21
  store ptr null, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2488), align 8, !tbaa !31
  call void @qh_update_vertexneighbors() #4
  call void @qh_resetlists(i32 noundef 0, i32 noundef 0)
  %107 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !15
  %108 = icmp sgt i32 %107, 1
  br i1 %108, label %109, label %.thread

109:                                              ; preds = %105
  %110 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !16
  br i1 %.not138175219223, label %114, label %111

111:                                              ; preds = %109
  %112 = getelementptr inbounds i8, ptr %.0122.lcssa208218224, i64 108
  %113 = load i32, ptr %112, align 4, !tbaa !25
  br label %114

114:                                              ; preds = %111, %109
  %115 = phi i32 [ %113, %111 ], [ -1, %109 ]
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %110, i32 noundef 2050, ptr noundef nonnull @.str.217, i32 noundef %115) #4
  %.pr = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !15
  %116 = icmp sgt i32 %.pr, 1
  br i1 %116, label %117, label %.thread

117:                                              ; preds = %114
  %118 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !16
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %118, i32 noundef 2051, ptr noundef nonnull @.str.218) #4
  br label %.thread

.thread:                                          ; preds = %105, %117, %114
  br i1 %.not138175219223, label %.critedge4, label %.preheader

.preheader:                                       ; preds = %.thread, %.loopexit
  %.2188 = phi ptr [ %159, %.loopexit ], [ %.0122.lcssa208218224, %.thread ]
  %119 = getelementptr inbounds i8, ptr %.2188, i64 56
  %120 = load ptr, ptr %119, align 8, !tbaa !23
  %.not145 = icmp eq ptr %120, null
  br i1 %.not145, label %.critedge4, label %121

121:                                              ; preds = %.preheader
  %122 = getelementptr inbounds i8, ptr %.2188, i64 112
  %123 = load i32, ptr %122, align 8
  %124 = and i32 %123, 2560
  %or.cond167 = icmp eq i32 %124, 512
  br i1 %or.cond167, label %125, label %.loopexit

125:                                              ; preds = %121
  %126 = getelementptr inbounds i8, ptr %.2188, i64 80
  %127 = load ptr, ptr %126, align 8, !tbaa !40
  %.not158 = icmp eq ptr %127, null
  br i1 %.not158, label %.loopexit, label %128

128:                                              ; preds = %125
  %129 = getelementptr inbounds i8, ptr %127, i64 8
  %130 = load ptr, ptr %129, align 8, !tbaa !28
  %131 = call i32 @qh_setsize(ptr noundef nonnull %127) #4
  %132 = icmp sgt i32 %131, 0
  br i1 %132, label %133, label %.loopexit

133:                                              ; preds = %128
  %wide.trip.count = zext nneg i32 %131 to i64
  %134 = getelementptr inbounds i8, ptr %130, i64 112
  %135 = load i32, ptr %134, align 8
  %136 = and i32 %135, 512
  %.not160.peel = icmp eq i32 %136, 0
  br i1 %.not160.peel, label %140, label %137

137:                                              ; preds = %133
  %138 = getelementptr inbounds i8, ptr %130, i64 32
  %139 = load ptr, ptr %138, align 8, !tbaa !28
  br label %140

140:                                              ; preds = %137, %133
  %.2120.peel = phi ptr [ %139, %137 ], [ %130, %133 ]
  %141 = load ptr, ptr %126, align 8, !tbaa !40
  %142 = getelementptr inbounds i8, ptr %141, i64 8
  %exitcond.peel.not = icmp eq i32 %131, 1
  br i1 %exitcond.peel.not, label %.loopexit, label %.lr.ph185.peel.next

.lr.ph185.peel.next:                              ; preds = %140
  %143 = getelementptr inbounds i8, ptr %141, i64 16
  br label %144

144:                                              ; preds = %157, %.lr.ph185.peel.next
  %indvars.iv = phi i64 [ 1, %.lr.ph185.peel.next ], [ %indvars.iv.next, %157 ]
  %.0116182.in = phi ptr [ %143, %.lr.ph185.peel.next ], [ %158, %157 ]
  %.0116182 = load ptr, ptr %.0116182.in, align 8, !tbaa !28
  %145 = getelementptr inbounds i8, ptr %.0116182, i64 112
  %146 = load i32, ptr %145, align 8
  %147 = and i32 %146, 512
  %.not159 = icmp eq i32 %147, 0
  br i1 %.not159, label %151, label %148

148:                                              ; preds = %144
  %149 = getelementptr inbounds i8, ptr %.0116182, i64 32
  %150 = load ptr, ptr %149, align 8, !tbaa !28
  br label %151

151:                                              ; preds = %144, %148
  %.0117 = phi ptr [ %150, %148 ], [ %.0116182, %144 ]
  %152 = icmp eq ptr %.2120.peel, %.0117
  br i1 %152, label %.loopexit203, label %157

.loopexit203:                                     ; preds = %151
  %153 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1800), align 8, !tbaa !28
  %154 = add nsw i32 %153, 1
  store i32 %154, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1800), align 8, !tbaa !28
  %155 = load i32, ptr %122, align 8
  %156 = or i32 %155, 1073741824
  store i32 %156, ptr %122, align 8
  br label %.loopexit

157:                                              ; preds = %151
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %158 = getelementptr inbounds [1 x %union.setelemT], ptr %142, i64 0, i64 %indvars.iv.next
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.loopexit, label %144, !llvm.loop !41

.loopexit:                                        ; preds = %157, %140, %128, %121, %.loopexit203, %125
  %159 = load ptr, ptr %119, align 8, !tbaa !23
  %.not144 = icmp eq ptr %159, null
  br i1 %.not144, label %.critedge4, label %.preheader, !llvm.loop !43

.critedge4:                                       ; preds = %.preheader, %.loopexit, %.thread
  %160 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !15
  %161 = icmp sgt i32 %160, 3
  br i1 %161, label %162, label %163

162:                                              ; preds = %.critedge4
  call void @qh_printlists()
  %.pr168 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !15
  br label %163

163:                                              ; preds = %162, %.critedge4
  %164 = phi i32 [ %.pr168, %162 ], [ %160, %.critedge4 ]
  %165 = icmp sgt i32 %164, 1
  br i1 %165, label %166, label %168

166:                                              ; preds = %163
  %167 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !16
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %167, i32 noundef 2052, ptr noundef nonnull @.str.219) #4
  br label %168

168:                                              ; preds = %166, %163
  br i1 %.not138175219223, label %.critedge6.thread, label %.lr.ph194

.lr.ph194:                                        ; preds = %168, %227
  %.3192 = phi ptr [ %.0112, %227 ], [ %.0122.lcssa208218224, %168 ]
  %.0114191 = phi ptr [ %.1115, %227 ], [ null, %168 ]
  %.0125190 = phi ptr [ %.1126, %227 ], [ null, %168 ]
  %169 = getelementptr inbounds i8, ptr %.3192, i64 56
  %170 = load ptr, ptr %169, align 8, !tbaa !23
  %.not147 = icmp eq ptr %170, null
  br i1 %.not147, label %.critedge6, label %171

171:                                              ; preds = %.lr.ph194
  %172 = getelementptr inbounds i8, ptr %.3192, i64 112
  %173 = load i32, ptr %172, align 8
  %174 = and i32 %173, 2048
  %.not149 = icmp eq i32 %174, 0
  %175 = and i32 %173, 512
  %.not150 = icmp eq i32 %175, 0
  br i1 %.not149, label %193, label %176

176:                                              ; preds = %171
  br i1 %.not150, label %180, label %177

177:                                              ; preds = %176
  call void @qh_delfacet(ptr noundef nonnull %.3192) #4
  %178 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2496), align 8, !tbaa !44
  %179 = add nsw i32 %178, -1
  store i32 %179, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2496), align 8, !tbaa !44
  br label %227

180:                                              ; preds = %176
  %181 = icmp eq ptr %.0125190, null
  %182 = icmp ne ptr %.0114191, null
  %or.cond = select i1 %181, i1 true, i1 %182
  br i1 %or.cond, label %227, label %183

183:                                              ; preds = %180
  %184 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !15
  %185 = icmp sgt i32 %184, 1
  br i1 %185, label %186, label %190

186:                                              ; preds = %183
  %187 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !16
  %188 = getelementptr inbounds i8, ptr %.0125190, i64 108
  %189 = load i32, ptr %188, align 4, !tbaa !25
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %187, i32 noundef 2053, ptr noundef nonnull @.str.220, i32 noundef %189) #4
  br label %190

190:                                              ; preds = %186, %183
  call void @qh_delfacet(ptr noundef nonnull %.0125190) #4
  %191 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2496), align 8, !tbaa !44
  %192 = add nsw i32 %191, -1
  store i32 %192, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2496), align 8, !tbaa !44
  br label %227

193:                                              ; preds = %171
  br i1 %.not150, label %227, label %194

194:                                              ; preds = %193
  %195 = getelementptr inbounds i8, ptr %.3192, i64 32
  %196 = load ptr, ptr %195, align 8, !tbaa !28
  %197 = icmp ne ptr %196, %.0125190
  %198 = icmp eq ptr %.0125190, null
  %or.cond9 = or i1 %198, %197
  br i1 %or.cond9, label %199, label %208

199:                                              ; preds = %194
  %200 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !16
  %201 = getelementptr inbounds i8, ptr %.3192, i64 108
  %202 = load i32, ptr %201, align 4, !tbaa !25
  br i1 %198, label %206, label %203

203:                                              ; preds = %199
  %204 = getelementptr inbounds i8, ptr %.0125190, i64 108
  %205 = load i32, ptr %204, align 4, !tbaa !25
  br label %206

206:                                              ; preds = %199, %203
  %207 = phi i32 [ %205, %203 ], [ -1, %199 ]
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %200, i32 noundef 6162, ptr noundef nonnull @.str.221, i32 noundef %202, i32 noundef %207) #4
  call void @qh_errexit2(i32 noundef 5, ptr noundef nonnull %.3192, ptr noundef %.0125190) #4
  br label %208

208:                                              ; preds = %194, %206
  %.not152 = icmp eq ptr %.0114191, null
  br i1 %.not152, label %210, label %209

209:                                              ; preds = %208
  store ptr %.0114191, ptr %195, align 8, !tbaa !28
  br label %227

210:                                              ; preds = %208
  %211 = load i32, ptr %172, align 8
  %212 = and i32 %211, 1073741824
  %.not153 = icmp eq i32 %212, 0
  br i1 %.not153, label %213, label %227

213:                                              ; preds = %210
  %214 = getelementptr inbounds i8, ptr %.0125190, i64 56
  %215 = load ptr, ptr %214, align 8, !tbaa !23
  %216 = or i32 %211, 268435456
  store i32 %216, ptr %172, align 8
  %217 = getelementptr inbounds i8, ptr %.0125190, i64 88
  %218 = getelementptr inbounds i8, ptr %.3192, i64 88
  %219 = load <2 x ptr>, ptr %217, align 8, !tbaa !5
  store <2 x ptr> %219, ptr %218, align 8, !tbaa !5
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %217, i8 0, i64 16, i1 false)
  %220 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 568), align 8, !tbaa !45
  %.not154 = icmp eq i32 %220, 0
  br i1 %.not154, label %221, label %224

221:                                              ; preds = %213
  %222 = getelementptr inbounds i8, ptr %.0125190, i64 40
  store ptr null, ptr %222, align 8, !tbaa !46
  %223 = getelementptr inbounds i8, ptr %.0125190, i64 24
  store ptr null, ptr %223, align 8, !tbaa !47
  br label %224

224:                                              ; preds = %221, %213
  call void @qh_delfacet(ptr noundef nonnull %.0125190) #4
  %225 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2496), align 8, !tbaa !44
  %226 = add nsw i32 %225, -1
  store i32 %226, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2496), align 8, !tbaa !44
  br label %227

227:                                              ; preds = %180, %190, %193, %210, %224, %209, %177
  %.1126 = phi ptr [ %.0125190, %177 ], [ %.0125190, %209 ], [ %.0125190, %210 ], [ %.0125190, %224 ], [ %.0125190, %193 ], [ %.3192, %190 ], [ %.3192, %180 ]
  %.1115 = phi ptr [ %.0114191, %177 ], [ %.0114191, %209 ], [ null, %210 ], [ %.3192, %224 ], [ %.0114191, %193 ], [ null, %190 ], [ null, %180 ]
  %.0112 = phi ptr [ %170, %177 ], [ %170, %209 ], [ %170, %210 ], [ %215, %224 ], [ %170, %193 ], [ %170, %190 ], [ %170, %180 ]
  %228 = load i32, ptr %172, align 8
  %229 = and i32 %228, -1073741825
  store i32 %229, ptr %172, align 8
  %.not146 = icmp eq ptr %.0112, null
  br i1 %.not146, label %.critedge6, label %.lr.ph194, !llvm.loop !48

.critedge6:                                       ; preds = %.lr.ph194, %227
  %.0125.lcssa.ph = phi ptr [ %.0125190, %.lr.ph194 ], [ %.1126, %227 ]
  %.0114.lcssa.ph = phi ptr [ %.0114191, %.lr.ph194 ], [ %.1115, %227 ]
  %230 = icmp ne ptr %.0114.lcssa.ph, null
  %231 = icmp eq ptr %.0125.lcssa.ph, null
  %or.cond11 = select i1 %231, i1 true, i1 %230
  br i1 %or.cond11, label %.critedge6.thread, label %232

232:                                              ; preds = %.critedge6
  %233 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !15
  %234 = icmp sgt i32 %233, 1
  br i1 %234, label %235, label %239

235:                                              ; preds = %232
  %236 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !16
  %237 = getelementptr inbounds i8, ptr %.0125.lcssa.ph, i64 108
  %238 = load i32, ptr %237, align 4, !tbaa !25
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %236, i32 noundef 2054, ptr noundef nonnull @.str.222, i32 noundef %238) #4
  br label %239

239:                                              ; preds = %235, %232
  call void @qh_delfacet(ptr noundef nonnull %.0125.lcssa.ph) #4
  %240 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2496), align 8, !tbaa !44
  %241 = add nsw i32 %240, -1
  store i32 %241, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2496), align 8, !tbaa !44
  br label %.critedge6.thread

.critedge6.thread:                                ; preds = %168, %239, %.critedge6
  store i32 %2, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 236), align 4, !tbaa !9
  %242 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 60), align 4, !tbaa !49
  %.not148 = icmp eq i32 %242, 0
  br i1 %.not148, label %245, label %243

243:                                              ; preds = %.critedge6.thread
  %244 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2456), align 8, !tbaa !22
  call void @qh_checkpolygon(ptr noundef %244)
  br label %245

245:                                              ; preds = %243, %.critedge6.thread
  store i32 1, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2652), align 4, !tbaa !14
  br label %246

246:                                              ; preds = %9, %0, %245
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #4
  ret void
}

declare void @qh_initmergesets() local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local void @qh_triangulate_facet(ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local void @qh_triangulate_null(ptr noundef) local_unnamed_addr #2

declare ptr @qh_setdellast(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local void @qh_triangulate_mirror(ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @qh_freemergesets() local_unnamed_addr #1

declare void @qh_update_vertexneighbors() local_unnamed_addr #1

declare void @qh_delfacet(ptr noundef) local_unnamed_addr #1

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { 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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 236}
!10 = !{!"qhT", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !12, i64 24, !11, i64 32, !11, i64 36, !11, i64 40, !11, i64 44, !11, i64 48, !11, i64 52, !11, i64 56, !11, i64 60, !12, i64 64, !12, i64 72, !11, i64 80, !11, i64 84, !11, i64 88, !11, i64 92, !11, i64 96, !11, i64 100, !6, i64 104, !11, i64 112, !11, i64 116, !6, i64 120, !11, i64 128, !11, i64 132, !11, i64 136, !11, i64 140, !11, i64 144, !11, i64 148, !11, i64 152, !12, i64 160, !12, i64 168, !11, i64 176, !11, i64 180, !11, i64 184, !11, i64 188, !12, i64 192, !12, i64 200, !11, i64 208, !11, i64 212, !12, i64 216, !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, !11, i64 296, !7, i64 300, !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, !11, i64 544, !12, i64 552, !11, i64 560, !11, i64 564, !11, i64 568, !11, i64 572, !11, i64 576, !11, i64 580, !11, i64 584, !11, i64 588, !12, i64 592, !11, i64 600, !6, i64 608, !6, i64 616, !11, i64 624, !11, i64 628, !11, i64 632, !11, i64 636, !11, i64 640, !6, i64 648, !11, i64 656, !6, i64 664, !11, i64 672, !7, i64 676, !11, i64 932, !7, i64 936, !7, i64 1192, !11, i64 1704, !11, i64 1708, !11, i64 1712, !11, i64 1716, !11, i64 1720, !11, i64 1724, !6, i64 1728, !6, i64 1736, !6, i64 1744, !6, 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, !12, i64 1856, !12, i64 1864, !6, i64 1872, !12, i64 1880, !12, i64 1888, !12, i64 1896, !12, i64 1904, !11, i64 1912, !7, i64 1916, !7, i64 1928, !7, i64 2128, !7, i64 2168, !7, i64 2368, !6, i64 2408, !6, i64 2416, !6, i64 2424, !6, i64 2432, !11, i64 2440, !11, i64 2444, !11, i64 2448, !6, i64 2456, !6, i64 2464, !6, i64 2472, !6, i64 2480, !6, i64 2488, !11, i64 2496, !11, i64 2500, !6, i64 2504, !11, i64 2512, !6, i64 2520, !11, i64 2528, !6, i64 2536, !6, i64 2544, !6, i64 2552, !6, i64 2560, !11, i64 2568, !11, i64 2572, !11, i64 2576, !11, i64 2580, !11, i64 2584, !11, i64 2588, !11, i64 2592, !11, i64 2596, !13, i64 2600, !11, i64 2608, !11, i64 2612, !11, i64 2616, !11, i64 2620, !11, i64 2624, !6, i64 2632, !6, i64 2640, !11, i64 2648, !11, i64 2652, !11, i64 2656, !12, i64 2664, !11, i64 2672, !12, i64 2680, !12, i64 2688, !12, i64 2696, !11, i64 2704, !11, i64 2708, !11, i64 2712, !11, i64 2716, !11, i64 2720, !12, i64 2728, !12, i64 2736, !11, i64 2744, !11, i64 2748, !11, i64 2752, !11, i64 2756, !11, i64 2760, !11, i64 2764, !12, i64 2768, !12, i64 2776, !11, i64 2784, !11, i64 2788, !11, i64 2792, !11, i64 2796, !6, i64 2800, !6, i64 2808, !6, i64 2816, !6, i64 2824, !6, i64 2832, !6, i64 2840, !6, i64 2848, !6, i64 2856, !6, i64 2864, !11, i64 2872, !6, i64 2880, !6, i64 2888, !11, i64 2896, !11, i64 2900, !11, i64 2904, !6, i64 2912, !12, i64 2920, !12, i64 2928, !12, i64 2936, !12, i64 2944, !11, i64 2952, !11, i64 2956, !11, i64 2960, !11, i64 2964, !11, i64 2968, !11, i64 2972, !6, i64 2976, !6, i64 2984, !11, i64 2992}
!11 = !{!"int", !7, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!"long", !7, i64 0}
!14 = !{!10, !11, i64 2652}
!15 = !{!10, !11, i64 136}
!16 = !{!10, !6, i64 2424}
!17 = !{!10, !11, i64 632}
!18 = !{!10, !11, i64 588}
!19 = !{!10, !11, i64 2784}
!20 = !{!10, !6, i64 2552}
!21 = !{!10, !6, i64 2560}
!22 = !{!10, !6, i64 2456}
!23 = !{!24, !6, i64 56}
!24 = !{!"facetT", !12, i64 0, !12, i64 8, !12, i64 16, !6, i64 24, !7, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !11, i64 104, !11, i64 108, !11, i64 112, !11, i64 113, !11, i64 113, !11, i64 113, !11, i64 113, !11, i64 113, !11, i64 113, !11, i64 113, !11, i64 114, !11, i64 114, !11, i64 114, !11, i64 114, !11, i64 114, !11, i64 114, !11, i64 114, !11, i64 114, !11, i64 115, !11, i64 115, !11, i64 115, !11, i64 115, !11, i64 115, !11, i64 115, !11, i64 115, !11, i64 115}
!25 = !{!24, !11, i64 108}
!26 = !{!24, !6, i64 72}
!27 = !{!24, !6, i64 64}
!28 = !{!7, !7, i64 0}
!29 = !{!10, !6, i64 2808}
!30 = !{!10, !6, i64 2464}
!31 = !{!10, !6, i64 2488}
!32 = !{!33, !6, i64 16}
!33 = !{!"mergeT", !12, i64 0, !12, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !11, i64 64}
!34 = !{!33, !6, i64 24}
!35 = !{!33, !11, i64 64}
!36 = distinct !{!36, !37}
!37 = !{!"llvm.loop.mustprogress"}
!38 = !{!39, !11, i64 32}
!39 = !{!"vertexT", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !11, i64 32, !11, i64 36, !11, i64 40, !11, i64 40, !11, i64 40, !11, i64 40, !11, i64 40, !11, i64 40}
!40 = !{!24, !6, i64 80}
!41 = distinct !{!41, !37, !42}
!42 = !{!"llvm.loop.peeled.count", i32 1}
!43 = distinct !{!43, !37}
!44 = !{!10, !11, i64 2496}
!45 = !{!10, !11, i64 568}
!46 = !{!24, !6, i64 40}
!47 = !{!24, !6, i64 24}
!48 = distinct !{!48, !37}
!49 = !{!10, !11, i64 60}


; Effective O3 passes: BDCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopFullUnrollPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,MemCpyOptPass,ReassociatePass,SCCPPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass