; LLVM IR from Discngine/fpocket :: src/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, 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, ptr, i32 }
%struct.__jmp_buf_tag = type { [8 x i64], i32, %struct.__sigset_t }
%struct.__sigset_t = type { [16 x i64] }
%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 }
%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, 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.141 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.142 = external hidden unnamed_addr constant [75 x i8], align 1
@.str.143 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.144 = external hidden unnamed_addr constant [80 x i8], align 1
@.str.145 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.146 = external hidden unnamed_addr constant [65 x i8], align 1
@.str.147 = external hidden unnamed_addr constant [101 x i8], align 1
@.str.148 = external hidden unnamed_addr constant [84 x i8], align 1
@.str.149 = external hidden unnamed_addr constant [80 x i8], align 1
@.str.150 = external hidden unnamed_addr constant [104 x i8], align 1
@.str.151 = 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

; 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 i32 @qh_setsize(ptr noundef) #1

declare void @qh_settempfree(ptr noundef) #1

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

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

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

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

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

declare ptr @qh_settemp(i32 noundef) #1

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

declare ptr @qh_setdellast(ptr noundef) #1

; 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 i32, align 4
  %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 ptr, align 8
  %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 4, ptr %4) #3
  %18 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 42), align 8, !tbaa !5
  store i32 %18, ptr %4, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #3
  store ptr null, ptr %6, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  store ptr null, ptr %9, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  store ptr null, ptr %10, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  store ptr null, ptr %12, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, 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
  %19 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 183), 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 %505

22:                                               ; preds = %0
  %23 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 24), 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 151), align 8, !tbaa !17
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %26, i32 noundef 1034, ptr noundef @.str.141)
  br label %27

27:                                               ; preds = %25, %22
  %28 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 104), 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 %505

31:                                               ; preds = %27
  %32 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 97), 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 42), align 8, !tbaa !5
  %36 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 201), align 8, !tbaa !20
  %37 = add i32 %36, 1
  store i32 %37, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 201), align 8, !tbaa !20
  store i32 1, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 189), align 8, !tbaa !21
  %38 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 155), align 8, !tbaa !22
  %39 = call ptr @qh_settemp(i32 noundef %38)
  store ptr %39, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 206), align 8, !tbaa !23
  %40 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 167), align 8, !tbaa !24
  store ptr %40, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 168), align 8, !tbaa !25
  %41 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 156), align 8, !tbaa !26
  store ptr %41, ptr %1, align 8, !tbaa !14
  br label %42

42:                                               ; preds = %77, %35
  %43 = load ptr, ptr %1, align 8, !tbaa !14
  %44 = icmp ne ptr %43, null
  br i1 %44, label %45, label %50

45:                                               ; preds = %42
  %46 = load ptr, ptr %1, align 8, !tbaa !14
  %47 = getelementptr inbounds %struct.facetT, ptr %46, i32 0, i32 7
  %48 = load ptr, ptr %47, align 8, !tbaa !27
  %49 = icmp ne ptr %48, null
  br label %50

50:                                               ; preds = %45, %42
  %51 = phi i1 [ false, %42 ], [ %49, %45 ]
  br i1 %51, label %52, label %79

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

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

69:                                               ; preds = %62, %52
  br label %77

70:                                               ; preds = %62
  %71 = load ptr, ptr %9, align 8, !tbaa !14
  %72 = icmp ne ptr %71, null
  br i1 %72, label %75, label %73

73:                                               ; preds = %70
  %74 = load ptr, ptr %1, align 8, !tbaa !14
  store ptr %74, ptr %9, align 8, !tbaa !14
  br label %75

75:                                               ; preds = %73, %70
  %76 = load ptr, ptr %1, align 8, !tbaa !14
  call void @qh_triangulate_facet(ptr noundef %76, ptr noundef %12)
  br label %77

77:                                               ; preds = %75, %69
  %78 = load ptr, ptr %2, align 8, !tbaa !14
  store ptr %78, ptr %1, align 8, !tbaa !14
  br label %42, !llvm.loop !29

79:                                               ; preds = %50
  %80 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 24), align 8, !tbaa !16
  %81 = icmp sge i32 %80, 2
  br i1 %81, label %82, label %93

82:                                               ; preds = %79
  %83 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 151), align 8, !tbaa !17
  %84 = load ptr, ptr %9, align 8, !tbaa !14
  %85 = icmp ne ptr %84, null
  br i1 %85, label %86, label %90

86:                                               ; preds = %82
  %87 = load ptr, ptr %9, align 8, !tbaa !14
  %88 = getelementptr inbounds %struct.facetT, ptr %87, i32 0, i32 14
  %89 = load i32, ptr %88, align 4, !tbaa !31
  br label %91

90:                                               ; preds = %82
  br label %91

91:                                               ; preds = %90, %86
  %92 = phi i32 [ %89, %86 ], [ -1, %90 ]
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %83, i32 noundef 2047, ptr noundef @.str.142, i32 noundef %92)
  br label %93

93:                                               ; preds = %91, %79
  %94 = load ptr, ptr %9, align 8, !tbaa !14
  store ptr %94, ptr %1, align 8, !tbaa !14
  br label %95

95:                                               ; preds = %155, %93
  %96 = load ptr, ptr %1, align 8, !tbaa !14
  %97 = icmp ne ptr %96, null
  br i1 %97, label %98, label %103

98:                                               ; preds = %95
  %99 = load ptr, ptr %1, align 8, !tbaa !14
  %100 = getelementptr inbounds %struct.facetT, ptr %99, i32 0, i32 7
  %101 = load ptr, ptr %100, align 8, !tbaa !27
  %102 = icmp ne ptr %101, null
  br label %103

103:                                              ; preds = %98, %95
  %104 = phi i1 [ false, %95 ], [ %102, %98 ]
  br i1 %104, label %105, label %157

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

115:                                              ; preds = %105
  br label %155

116:                                              ; preds = %105
  %117 = load ptr, ptr %1, align 8, !tbaa !14
  %118 = getelementptr inbounds %struct.facetT, ptr %117, i32 0, i32 9
  %119 = load ptr, ptr %118, align 8, !tbaa !32
  %120 = icmp ne ptr %119, null
  br i1 %120, label %121, label %136

121:                                              ; preds = %116
  %122 = load ptr, ptr %1, align 8, !tbaa !14
  %123 = getelementptr inbounds %struct.facetT, ptr %122, i32 0, i32 9
  %124 = load ptr, ptr %123, align 8, !tbaa !32
  %125 = call i32 @qh_setsize(ptr noundef %124)
  %126 = icmp sgt i32 %125, 0
  br i1 %126, label %127, label %133

127:                                              ; preds = %121
  %128 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 151), align 8, !tbaa !17
  %129 = load ptr, ptr %1, align 8, !tbaa !14
  %130 = getelementptr inbounds %struct.facetT, ptr %129, i32 0, i32 14
  %131 = load i32, ptr %130, align 4, !tbaa !31
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %128, i32 noundef 6161, ptr noundef @.str.143, i32 noundef %131)
  %132 = load ptr, ptr %1, align 8, !tbaa !14
  call void @qh_errexit(i32 noundef 5, ptr noundef %132, ptr noundef null)
  br label %133

133:                                              ; preds = %127, %121
  %134 = load ptr, ptr %1, align 8, !tbaa !14
  %135 = getelementptr inbounds %struct.facetT, ptr %134, i32 0, i32 9
  call void @qh_setfree(ptr noundef %135)
  br label %136

136:                                              ; preds = %133, %116
  %137 = load ptr, ptr %1, align 8, !tbaa !14
  %138 = getelementptr inbounds %struct.facetT, ptr %137, i32 0, i32 8
  %139 = load ptr, ptr %138, align 8, !tbaa !33
  %140 = getelementptr inbounds %struct.setT, ptr %139, i32 0, i32 1
  %141 = getelementptr inbounds [1 x %union.setelemT], ptr %140, i64 0, i64 0
  %142 = load ptr, ptr %141, align 8, !tbaa !34
  %143 = load ptr, ptr %1, align 8, !tbaa !14
  %144 = getelementptr inbounds %struct.facetT, ptr %143, i32 0, i32 8
  %145 = load ptr, ptr %144, align 8, !tbaa !33
  %146 = getelementptr inbounds %struct.setT, ptr %145, i32 0, i32 1
  %147 = getelementptr inbounds [1 x %union.setelemT], ptr %146, i64 0, i64 1
  %148 = load ptr, ptr %147, align 8, !tbaa !34
  %149 = icmp eq ptr %142, %148
  br i1 %149, label %150, label %154

150:                                              ; preds = %136
  %151 = load i32, ptr getelementptr inbounds ([227 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 210), align 8, !tbaa !34
  %152 = add nsw i32 %151, 1
  store i32 %152, ptr getelementptr inbounds ([227 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 210), align 8, !tbaa !34
  %153 = load ptr, ptr %1, align 8, !tbaa !14
  call void @qh_triangulate_null(ptr noundef %153)
  br label %154

154:                                              ; preds = %150, %136
  br label %155

155:                                              ; preds = %154, %115
  %156 = load ptr, ptr %2, align 8, !tbaa !14
  store ptr %156, ptr %1, align 8, !tbaa !14
  br label %95, !llvm.loop !35

157:                                              ; preds = %103
  %158 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 24), align 8, !tbaa !16
  %159 = icmp sge i32 %158, 2
  br i1 %159, label %160, label %164

160:                                              ; preds = %157
  %161 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 151), align 8, !tbaa !17
  %162 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 206), align 8, !tbaa !23
  %163 = call i32 @qh_setsize(ptr noundef %162)
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %161, i32 noundef 2048, ptr noundef @.str.144, i32 noundef %163)
  br label %164

164:                                              ; preds = %160, %157
  %165 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 157), align 8, !tbaa !36
  store ptr %165, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 160), align 8, !tbaa !37
  br label %166

166:                                              ; preds = %188, %164
  %167 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 206), align 8, !tbaa !23
  %168 = call ptr @qh_setdellast(ptr noundef %167)
  store ptr %168, ptr %13, align 8, !tbaa !14
  %169 = icmp ne ptr %168, null
  br i1 %169, label %170, label %189

170:                                              ; preds = %166
  %171 = load ptr, ptr %13, align 8, !tbaa !14
  %172 = getelementptr inbounds %struct.mergeT, ptr %171, i32 0, i32 1
  %173 = load ptr, ptr %172, align 8, !tbaa !38
  store ptr %173, ptr %7, align 8, !tbaa !14
  %174 = load ptr, ptr %13, align 8, !tbaa !14
  %175 = getelementptr inbounds %struct.mergeT, ptr %174, i32 0, i32 2
  %176 = load ptr, ptr %175, align 8, !tbaa !40
  store ptr %176, ptr %8, align 8, !tbaa !14
  %177 = load ptr, ptr %13, align 8, !tbaa !14
  %178 = getelementptr inbounds %struct.mergeT, ptr %177, i32 0, i32 3
  %179 = load i32, ptr %178, align 8, !tbaa !41
  store i32 %179, ptr %14, align 4, !tbaa !13
  %180 = load ptr, ptr %13, align 8, !tbaa !14
  call void @qh_memfree(ptr noundef %180, i32 noundef 32)
  %181 = load i32, ptr %14, align 4, !tbaa !13
  %182 = icmp eq i32 %181, 8
  br i1 %182, label %183, label %188

183:                                              ; preds = %170
  %184 = load i32, ptr getelementptr inbounds ([227 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 209), align 8, !tbaa !34
  %185 = add nsw i32 %184, 1
  store i32 %185, ptr getelementptr inbounds ([227 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 209), align 8, !tbaa !34
  %186 = load ptr, ptr %7, align 8, !tbaa !14
  %187 = load ptr, ptr %8, align 8, !tbaa !14
  call void @qh_triangulate_mirror(ptr noundef %186, ptr noundef %187)
  br label %188

188:                                              ; preds = %183, %170
  br label %166, !llvm.loop !42

189:                                              ; preds = %166
  call void @qh_settempfree(ptr noundef getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 206))
  %190 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 24), align 8, !tbaa !16
  %191 = icmp sge i32 %190, 2
  br i1 %191, label %192, label %203

192:                                              ; preds = %189
  %193 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 151), align 8, !tbaa !17
  %194 = load ptr, ptr %12, align 8, !tbaa !14
  %195 = icmp ne ptr %194, null
  br i1 %195, label %196, label %200

196:                                              ; preds = %192
  %197 = load ptr, ptr %12, align 8, !tbaa !14
  %198 = getelementptr inbounds %struct.vertexT, ptr %197, i32 0, i32 4
  %199 = load i32, ptr %198, align 8, !tbaa !43
  br label %201

200:                                              ; preds = %192
  br label %201

201:                                              ; preds = %200, %196
  %202 = phi i32 [ %199, %196 ], [ -1, %200 ]
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %193, i32 noundef 2049, ptr noundef @.str.145, i32 noundef %202)
  br label %203

203:                                              ; preds = %201, %189
  %204 = load ptr, ptr %12, align 8, !tbaa !14
  store ptr %204, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 168), align 8, !tbaa !25
  store ptr null, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 160), align 8, !tbaa !37
  call void @qh_updatevertices()
  call void @qh_resetlists(i32 noundef 0, i32 noundef 0)
  %205 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 24), align 8, !tbaa !16
  %206 = icmp sge i32 %205, 2
  br i1 %206, label %207, label %218

207:                                              ; preds = %203
  %208 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 151), align 8, !tbaa !17
  %209 = load ptr, ptr %9, align 8, !tbaa !14
  %210 = icmp ne ptr %209, null
  br i1 %210, label %211, label %215

211:                                              ; preds = %207
  %212 = load ptr, ptr %9, align 8, !tbaa !14
  %213 = getelementptr inbounds %struct.facetT, ptr %212, i32 0, i32 14
  %214 = load i32, ptr %213, align 4, !tbaa !31
  br label %216

215:                                              ; preds = %207
  br label %216

216:                                              ; preds = %215, %211
  %217 = phi i32 [ %214, %211 ], [ -1, %215 ]
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %208, i32 noundef 2050, ptr noundef @.str.146, i32 noundef %217)
  br label %218

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

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

223:                                              ; preds = %221, %218
  %224 = load ptr, ptr %9, align 8, !tbaa !14
  %225 = icmp ne ptr %224, null
  br i1 %225, label %226, label %334

226:                                              ; preds = %223
  %227 = load ptr, ptr %9, align 8, !tbaa !14
  store ptr %227, ptr %1, align 8, !tbaa !14
  br label %228

228:                                              ; preds = %329, %226
  %229 = load ptr, ptr %1, align 8, !tbaa !14
  %230 = icmp ne ptr %229, null
  br i1 %230, label %231, label %236

231:                                              ; preds = %228
  %232 = load ptr, ptr %1, align 8, !tbaa !14
  %233 = getelementptr inbounds %struct.facetT, ptr %232, i32 0, i32 7
  %234 = load ptr, ptr %233, align 8, !tbaa !27
  %235 = icmp ne ptr %234, null
  br label %236

236:                                              ; preds = %231, %228
  %237 = phi i1 [ false, %228 ], [ %235, %231 ]
  br i1 %237, label %238, label %333

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

245:                                              ; preds = %238
  %246 = load ptr, ptr %1, align 8, !tbaa !14
  %247 = getelementptr inbounds %struct.facetT, ptr %246, i32 0, i32 15
  %248 = load i32, ptr %247, align 8
  %249 = lshr i32 %248, 11
  %250 = and i32 %249, 1
  %251 = icmp ne i32 %250, 0
  br i1 %251, label %328, label %252

252:                                              ; preds = %245
  store ptr null, ptr %5, align 8, !tbaa !14
  %253 = load ptr, ptr %1, align 8, !tbaa !14
  %254 = getelementptr inbounds %struct.facetT, ptr %253, i32 0, i32 10
  %255 = load ptr, ptr %254, align 8, !tbaa !45
  %256 = icmp ne ptr %255, null
  br i1 %256, label %257, label %327

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

268:                                              ; preds = %316, %257
  %269 = load i32, ptr %15, align 4, !tbaa !13
  %270 = load i32, ptr %16, align 4, !tbaa !13
  %271 = icmp slt i32 %269, %270
  br i1 %271, label %272, label %326

272:                                              ; preds = %268
  %273 = load i32, ptr %15, align 4, !tbaa !13
  %274 = icmp eq i32 %273, 0
  br i1 %274, label %275, label %289

275:                                              ; preds = %272
  %276 = load ptr, ptr %5, align 8, !tbaa !14
  %277 = getelementptr inbounds %struct.facetT, ptr %276, i32 0, i32 15
  %278 = load i32, ptr %277, align 8
  %279 = lshr i32 %278, 9
  %280 = and i32 %279, 1
  %281 = icmp ne i32 %280, 0
  br i1 %281, label %282, label %286

282:                                              ; preds = %275
  %283 = load ptr, ptr %5, align 8, !tbaa !14
  %284 = getelementptr inbounds %struct.facetT, ptr %283, i32 0, i32 4
  %285 = load ptr, ptr %284, align 8, !tbaa !34
  store ptr %285, ptr %10, align 8, !tbaa !14
  br label %288

286:                                              ; preds = %275
  %287 = load ptr, ptr %5, align 8, !tbaa !14
  store ptr %287, ptr %10, align 8, !tbaa !14
  br label %288

288:                                              ; preds = %286, %282
  br label %315

289:                                              ; preds = %272
  %290 = load ptr, ptr %5, align 8, !tbaa !14
  %291 = getelementptr inbounds %struct.facetT, ptr %290, i32 0, i32 15
  %292 = load i32, ptr %291, align 8
  %293 = lshr i32 %292, 9
  %294 = and i32 %293, 1
  %295 = icmp ne i32 %294, 0
  br i1 %295, label %296, label %300

296:                                              ; preds = %289
  %297 = load ptr, ptr %5, align 8, !tbaa !14
  %298 = getelementptr inbounds %struct.facetT, ptr %297, i32 0, i32 4
  %299 = load ptr, ptr %298, align 8, !tbaa !34
  store ptr %299, ptr %11, align 8, !tbaa !14
  br label %302

300:                                              ; preds = %289
  %301 = load ptr, ptr %5, align 8, !tbaa !14
  store ptr %301, ptr %11, align 8, !tbaa !14
  br label %302

302:                                              ; preds = %300, %296
  %303 = load ptr, ptr %10, align 8, !tbaa !14
  %304 = load ptr, ptr %11, align 8, !tbaa !14
  %305 = icmp eq ptr %303, %304
  br i1 %305, label %306, label %314

306:                                              ; preds = %302
  %307 = load i32, ptr getelementptr inbounds ([227 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 208), align 8, !tbaa !34
  %308 = add nsw i32 %307, 1
  store i32 %308, ptr getelementptr inbounds ([227 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 208), align 8, !tbaa !34
  %309 = load ptr, ptr %1, align 8, !tbaa !14
  %310 = getelementptr inbounds %struct.facetT, ptr %309, i32 0, i32 15
  %311 = load i32, ptr %310, align 8
  %312 = and i32 %311, -1073741825
  %313 = or i32 %312, 1073741824
  store i32 %313, ptr %310, align 8
  br label %326

314:                                              ; preds = %302
  br label %315

315:                                              ; preds = %314, %288
  br label %316

316:                                              ; preds = %315
  %317 = load ptr, ptr %1, align 8, !tbaa !14
  %318 = getelementptr inbounds %struct.facetT, ptr %317, i32 0, i32 10
  %319 = load ptr, ptr %318, align 8, !tbaa !45
  %320 = getelementptr inbounds %struct.setT, ptr %319, i32 0, i32 1
  %321 = load i32, ptr %15, align 4, !tbaa !13
  %322 = add nsw i32 %321, 1
  store i32 %322, ptr %15, align 4, !tbaa !13
  %323 = sext i32 %322 to i64
  %324 = getelementptr inbounds [1 x %union.setelemT], ptr %320, i64 0, i64 %323
  %325 = load ptr, ptr %324, align 8, !tbaa !34
  store ptr %325, ptr %5, align 8, !tbaa !14
  br label %268, !llvm.loop !46

326:                                              ; preds = %306, %268
  br label %327

327:                                              ; preds = %326, %252
  br label %328

328:                                              ; preds = %327, %245, %238
  br label %329

329:                                              ; preds = %328
  %330 = load ptr, ptr %1, align 8, !tbaa !14
  %331 = getelementptr inbounds %struct.facetT, ptr %330, i32 0, i32 7
  %332 = load ptr, ptr %331, align 8, !tbaa !27
  store ptr %332, ptr %1, align 8, !tbaa !14
  br label %228, !llvm.loop !47

333:                                              ; preds = %236
  br label %334

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

337:                                              ; preds = %334
  %338 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 151), align 8, !tbaa !17
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %338, i32 noundef 2052, ptr noundef @.str.148)
  br label %339

339:                                              ; preds = %337, %334
  store ptr null, ptr %3, align 8, !tbaa !14
  store ptr null, ptr %6, align 8, !tbaa !14
  %340 = load ptr, ptr %9, align 8, !tbaa !14
  store ptr %340, ptr %1, align 8, !tbaa !14
  br label %341

341:                                              ; preds = %478, %339
  %342 = load ptr, ptr %1, align 8, !tbaa !14
  %343 = icmp ne ptr %342, null
  br i1 %343, label %344, label %349

344:                                              ; preds = %341
  %345 = load ptr, ptr %1, align 8, !tbaa !14
  %346 = getelementptr inbounds %struct.facetT, ptr %345, i32 0, i32 7
  %347 = load ptr, ptr %346, align 8, !tbaa !27
  %348 = icmp ne ptr %347, null
  br label %349

349:                                              ; preds = %344, %341
  %350 = phi i1 [ false, %341 ], [ %348, %344 ]
  br i1 %350, label %351, label %480

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

361:                                              ; preds = %351
  %362 = load ptr, ptr %1, align 8, !tbaa !14
  %363 = getelementptr inbounds %struct.facetT, ptr %362, i32 0, i32 15
  %364 = load i32, ptr %363, align 8
  %365 = lshr i32 %364, 9
  %366 = and i32 %365, 1
  %367 = icmp ne i32 %366, 0
  br i1 %367, label %368, label %372

368:                                              ; preds = %361
  %369 = load ptr, ptr %1, align 8, !tbaa !14
  call void @qh_delfacet(ptr noundef %369)
  %370 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 161), align 8, !tbaa !48
  %371 = add nsw i32 %370, -1
  store i32 %371, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 161), align 8, !tbaa !48
  br label %392

372:                                              ; preds = %361
  %373 = load ptr, ptr %6, align 8, !tbaa !14
  %374 = icmp ne ptr %373, null
  br i1 %374, label %375, label %390

375:                                              ; preds = %372
  %376 = load ptr, ptr %3, align 8, !tbaa !14
  %377 = icmp ne ptr %376, null
  br i1 %377, label %390, label %378

378:                                              ; preds = %375
  %379 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 24), align 8, !tbaa !16
  %380 = icmp sge i32 %379, 2
  br i1 %380, label %381, label %386

381:                                              ; preds = %378
  %382 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 151), align 8, !tbaa !17
  %383 = load ptr, ptr %6, align 8, !tbaa !14
  %384 = getelementptr inbounds %struct.facetT, ptr %383, i32 0, i32 14
  %385 = load i32, ptr %384, align 4, !tbaa !31
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %382, i32 noundef 2053, ptr noundef @.str.149, i32 noundef %385)
  br label %386

386:                                              ; preds = %381, %378
  %387 = load ptr, ptr %6, align 8, !tbaa !14
  call void @qh_delfacet(ptr noundef %387)
  %388 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 161), align 8, !tbaa !48
  %389 = add nsw i32 %388, -1
  store i32 %389, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 161), align 8, !tbaa !48
  br label %390

390:                                              ; preds = %386, %375, %372
  %391 = load ptr, ptr %1, align 8, !tbaa !14
  store ptr %391, ptr %6, align 8, !tbaa !14
  store ptr null, ptr %3, align 8, !tbaa !14
  br label %392

392:                                              ; preds = %390, %368
  br label %477

393:                                              ; preds = %351
  %394 = load ptr, ptr %1, align 8, !tbaa !14
  %395 = getelementptr inbounds %struct.facetT, ptr %394, i32 0, i32 15
  %396 = load i32, ptr %395, align 8
  %397 = lshr i32 %396, 9
  %398 = and i32 %397, 1
  %399 = icmp ne i32 %398, 0
  br i1 %399, label %400, label %476

400:                                              ; preds = %393
  %401 = load ptr, ptr %1, align 8, !tbaa !14
  %402 = getelementptr inbounds %struct.facetT, ptr %401, i32 0, i32 4
  %403 = load ptr, ptr %402, align 8, !tbaa !34
  %404 = load ptr, ptr %6, align 8, !tbaa !14
  %405 = icmp ne ptr %403, %404
  br i1 %405, label %409, label %406

406:                                              ; preds = %400
  %407 = load ptr, ptr %6, align 8, !tbaa !14
  %408 = icmp eq ptr %407, null
  br i1 %408, label %409, label %425

409:                                              ; preds = %406, %400
  %410 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 151), align 8, !tbaa !17
  %411 = load ptr, ptr %1, align 8, !tbaa !14
  %412 = getelementptr inbounds %struct.facetT, ptr %411, i32 0, i32 14
  %413 = load i32, ptr %412, align 4, !tbaa !31
  %414 = load ptr, ptr %6, align 8, !tbaa !14
  %415 = icmp ne ptr %414, null
  br i1 %415, label %416, label %420

416:                                              ; preds = %409
  %417 = load ptr, ptr %6, align 8, !tbaa !14
  %418 = getelementptr inbounds %struct.facetT, ptr %417, i32 0, i32 14
  %419 = load i32, ptr %418, align 4, !tbaa !31
  br label %421

420:                                              ; preds = %409
  br label %421

421:                                              ; preds = %420, %416
  %422 = phi i32 [ %419, %416 ], [ -1, %420 ]
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %410, i32 noundef 6162, ptr noundef @.str.150, i32 noundef %413, i32 noundef %422)
  %423 = load ptr, ptr %1, align 8, !tbaa !14
  %424 = load ptr, ptr %6, align 8, !tbaa !14
  call void @qh_errexit2(i32 noundef 5, ptr noundef %423, ptr noundef %424)
  br label %425

425:                                              ; preds = %421, %406
  %426 = load ptr, ptr %3, align 8, !tbaa !14
  %427 = icmp ne ptr %426, null
  br i1 %427, label %428, label %432

428:                                              ; preds = %425
  %429 = load ptr, ptr %3, align 8, !tbaa !14
  %430 = load ptr, ptr %1, align 8, !tbaa !14
  %431 = getelementptr inbounds %struct.facetT, ptr %430, i32 0, i32 4
  store ptr %429, ptr %431, align 8, !tbaa !34
  br label %475

432:                                              ; preds = %425
  %433 = load ptr, ptr %1, align 8, !tbaa !14
  %434 = getelementptr inbounds %struct.facetT, ptr %433, i32 0, i32 15
  %435 = load i32, ptr %434, align 8
  %436 = lshr i32 %435, 30
  %437 = and i32 %436, 1
  %438 = icmp ne i32 %437, 0
  br i1 %438, label %474, label %439

439:                                              ; preds = %432
  %440 = load ptr, ptr %1, align 8, !tbaa !14
  store ptr %440, ptr %3, align 8, !tbaa !14
  %441 = load ptr, ptr %6, align 8, !tbaa !14
  %442 = getelementptr inbounds %struct.facetT, ptr %441, i32 0, i32 7
  %443 = load ptr, ptr %442, align 8, !tbaa !27
  store ptr %443, ptr %2, align 8, !tbaa !14
  %444 = load ptr, ptr %1, align 8, !tbaa !14
  %445 = getelementptr inbounds %struct.facetT, ptr %444, i32 0, i32 15
  %446 = load i32, ptr %445, align 8
  %447 = and i32 %446, -268435457
  %448 = or i32 %447, 268435456
  store i32 %448, ptr %445, align 8
  %449 = load ptr, ptr %6, align 8, !tbaa !14
  %450 = getelementptr inbounds %struct.facetT, ptr %449, i32 0, i32 12
  %451 = load ptr, ptr %450, align 8, !tbaa !49
  %452 = load ptr, ptr %1, align 8, !tbaa !14
  %453 = getelementptr inbounds %struct.facetT, ptr %452, i32 0, i32 12
  store ptr %451, ptr %453, align 8, !tbaa !49
  %454 = load ptr, ptr %6, align 8, !tbaa !14
  %455 = getelementptr inbounds %struct.facetT, ptr %454, i32 0, i32 11
  %456 = load ptr, ptr %455, align 8, !tbaa !50
  %457 = load ptr, ptr %1, align 8, !tbaa !14
  %458 = getelementptr inbounds %struct.facetT, ptr %457, i32 0, i32 11
  store ptr %456, ptr %458, align 8, !tbaa !50
  %459 = load ptr, ptr %6, align 8, !tbaa !14
  %460 = getelementptr inbounds %struct.facetT, ptr %459, i32 0, i32 12
  store ptr null, ptr %460, align 8, !tbaa !49
  %461 = load ptr, ptr %6, align 8, !tbaa !14
  %462 = getelementptr inbounds %struct.facetT, ptr %461, i32 0, i32 11
  store ptr null, ptr %462, align 8, !tbaa !50
  %463 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 92), align 8, !tbaa !51
  %464 = icmp ne i32 %463, 0
  br i1 %464, label %470, label %465

465:                                              ; preds = %439
  %466 = load ptr, ptr %6, align 8, !tbaa !14
  %467 = getelementptr inbounds %struct.facetT, ptr %466, i32 0, i32 5
  store ptr null, ptr %467, align 8, !tbaa !52
  %468 = load ptr, ptr %6, align 8, !tbaa !14
  %469 = getelementptr inbounds %struct.facetT, ptr %468, i32 0, i32 3
  store ptr null, ptr %469, align 8, !tbaa !53
  br label %470

470:                                              ; preds = %465, %439
  %471 = load ptr, ptr %6, align 8, !tbaa !14
  call void @qh_delfacet(ptr noundef %471)
  %472 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 161), align 8, !tbaa !48
  %473 = add nsw i32 %472, -1
  store i32 %473, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 161), align 8, !tbaa !48
  br label %474

474:                                              ; preds = %470, %432
  br label %475

475:                                              ; preds = %474, %428
  br label %476

476:                                              ; preds = %475, %393
  br label %477

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

478:                                              ; preds = %477
  %479 = load ptr, ptr %2, align 8, !tbaa !14
  store ptr %479, ptr %1, align 8, !tbaa !14
  br label %341, !llvm.loop !54

480:                                              ; preds = %349
  %481 = load ptr, ptr %6, align 8, !tbaa !14
  %482 = icmp ne ptr %481, null
  br i1 %482, label %483, label %498

483:                                              ; preds = %480
  %484 = load ptr, ptr %3, align 8, !tbaa !14
  %485 = icmp ne ptr %484, null
  br i1 %485, label %498, label %486

486:                                              ; preds = %483
  %487 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 24), align 8, !tbaa !16
  %488 = icmp sge i32 %487, 2
  br i1 %488, label %489, label %494

489:                                              ; preds = %486
  %490 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 151), align 8, !tbaa !17
  %491 = load ptr, ptr %6, align 8, !tbaa !14
  %492 = getelementptr inbounds %struct.facetT, ptr %491, i32 0, i32 14
  %493 = load i32, ptr %492, align 4, !tbaa !31
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %490, i32 noundef 2054, ptr noundef @.str.151, i32 noundef %493)
  br label %494

494:                                              ; preds = %489, %486
  %495 = load ptr, ptr %6, align 8, !tbaa !14
  call void @qh_delfacet(ptr noundef %495)
  %496 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 161), align 8, !tbaa !48
  %497 = add nsw i32 %496, -1
  store i32 %497, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 161), align 8, !tbaa !48
  br label %498

498:                                              ; preds = %494, %483, %480
  store i32 0, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 189), align 8, !tbaa !21
  %499 = load i32, ptr %4, align 4, !tbaa !13
  store i32 %499, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 42), align 8, !tbaa !5
  %500 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 10), align 8, !tbaa !55
  %501 = icmp ne i32 %500, 0
  br i1 %501, label %502, label %504

502:                                              ; preds = %498
  %503 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 156), align 8, !tbaa !26
  call void @qh_checkpolygon(ptr noundef %503)
  br label %504

504:                                              ; preds = %502, %498
  store i32 1, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 183), align 4, !tbaa !15
  store i32 0, ptr %17, align 4
  br label %505

505:                                              ; preds = %504, %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 8, 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 4, 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
  %506 = load i32, ptr %17, align 4
  switch i32 %506, label %508 [
    i32 0, label %507
    i32 1, label %507
  ]

507:                                              ; preds = %505, %505
  ret void

508:                                              ; preds = %505
  unreachable
}

; 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

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

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


; 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, 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, ptr, i32 }
%struct.__jmp_buf_tag = type { [8 x i64], i32, %struct.__sigset_t }
%struct.__sigset_t = type { [16 x i64] }
%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 }
%union.setelemT = type { ptr }

@qh_qh = external global %struct.qhT, align 8
@qh_qhstat = external local_unnamed_addr global %struct.qhstatT, align 8
@.str.141 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.142 = external hidden unnamed_addr constant [75 x i8], align 1
@.str.143 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.144 = external hidden unnamed_addr constant [80 x i8], align 1
@.str.145 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.146 = external hidden unnamed_addr constant [65 x i8], align 1
@.str.147 = external hidden unnamed_addr constant [101 x i8], align 1
@.str.148 = external hidden unnamed_addr constant [84 x i8], align 1
@.str.149 = external hidden unnamed_addr constant [80 x i8], align 1
@.str.150 = external hidden unnamed_addr constant [104 x i8], align 1
@.str.151 = 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

; 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 i32 @qh_setsize(ptr noundef) local_unnamed_addr #1

declare void @qh_settempfree(ptr noundef) local_unnamed_addr #1

declare void @qh_errexit2(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_errexit(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

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

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

declare ptr @qh_settemp(i32 noundef) local_unnamed_addr #1

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

declare ptr @qh_setdellast(ptr noundef) local_unnamed_addr #1

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

4:                                                ; preds = %0
  %5 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 128), 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 2408), align 8, !tbaa !16
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %8, i32 noundef 1034, ptr noundef nonnull @.str.141) #4
  br label %9

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

12:                                               ; preds = %9
  %13 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 580), align 4, !tbaa !18
  %.not133 = icmp eq i32 %13, 0
  br i1 %.not133, 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 232), align 8, !tbaa !5
  %16 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2712), align 8, !tbaa !19
  %17 = add i32 %16, 1
  store i32 %17, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2712), align 8, !tbaa !19
  store i32 1, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2648), align 8, !tbaa !20
  %18 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2432), align 8, !tbaa !21
  %19 = tail call ptr @qh_settemp(i32 noundef %18) #4
  store ptr %19, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2736), align 8, !tbaa !22
  %20 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2520), align 8, !tbaa !23
  store ptr %20, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2528), align 8, !tbaa !24
  %21 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2440), align 8, !tbaa !25
  %.not134168 = icmp eq ptr %21, null
  br i1 %.not134168, label %.critedge.thread, label %.lr.ph.preheader

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

.lr.ph231:                                        ; preds = %.lr.ph.preheader, %.lr.ph
  %24 = phi ptr [ %30, %.lr.ph ], [ %23, %.lr.ph.preheader ]
  %.0120169230 = phi ptr [ %.2122, %.lr.ph ], [ null, %.lr.ph.preheader ]
  %.0170229 = phi ptr [ %24, %.lr.ph ], [ %21, %.lr.ph.preheader ]
  %25 = getelementptr inbounds i8, ptr %.0170229, i64 112
  %26 = load i32, ptr %25, align 8
  %27 = and i32 %26, 10240
  %or.cond165 = icmp eq i32 %27, 0
  br i1 %or.cond165, label %28, label %.lr.ph

28:                                               ; preds = %.lr.ph231
  %.not164 = icmp eq ptr %.0120169230, null
  %spec.select = select i1 %.not164, ptr %.0170229, ptr %.0120169230
  call void @qh_triangulate_facet(ptr noundef nonnull %.0170229, ptr noundef nonnull %1)
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph231, %28
  %.2122 = phi ptr [ %.0120169230, %.lr.ph231 ], [ %spec.select, %28 ]
  %29 = getelementptr inbounds i8, ptr %24, i64 56
  %30 = load ptr, ptr %29, align 8, !tbaa !26
  %.not135 = icmp eq ptr %30, null
  br i1 %.not135, label %.critedge, label %.lr.ph231

.critedge:                                        ; preds = %.lr.ph, %.lr.ph.preheader
  %.0120169.lcssa = phi ptr [ null, %.lr.ph.preheader ], [ %.2122, %.lr.ph ]
  %31 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 128), align 8, !tbaa !15
  %32 = icmp sgt i32 %31, 1
  br i1 %32, label %36, label %44

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

.critedge2.thread:                                ; preds = %.critedge.thread
  %.pre202222 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2736), align 8, !tbaa !22
  br label %79

.thread210:                                       ; preds = %.critedge.thread
  %35 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2408), align 8, !tbaa !16
  br label %41

36:                                               ; preds = %.critedge
  %37 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2408), align 8, !tbaa !16
  %.not136 = icmp eq ptr %.0120169.lcssa, null
  br i1 %.not136, label %41, label %38

38:                                               ; preds = %36
  %39 = getelementptr inbounds i8, ptr %.0120169.lcssa, i64 108
  %40 = load i32, ptr %39, align 4, !tbaa !28
  br label %41

41:                                               ; preds = %.thread210, %36, %38
  %42 = phi ptr [ %37, %38 ], [ %37, %36 ], [ %35, %.thread210 ]
  %.0120.lcssa208213 = phi ptr [ %.0120169.lcssa, %38 ], [ null, %36 ], [ null, %.thread210 ]
  %43 = phi i32 [ %40, %38 ], [ -1, %36 ], [ -1, %.thread210 ]
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %42, i32 noundef 2047, ptr noundef nonnull @.str.142, i32 noundef %43) #4
  br label %44

44:                                               ; preds = %41, %.critedge
  %.0120.lcssa207 = phi ptr [ %.0120.lcssa208213, %41 ], [ %.0120169.lcssa, %.critedge ]
  %.not137173 = icmp eq ptr %.0120.lcssa207, null
  br i1 %.not137173, label %.critedge2, label %.lr.ph175.preheader

.lr.ph175.preheader:                              ; preds = %44
  %45 = getelementptr inbounds i8, ptr %.0120.lcssa207, i64 56
  %46 = load ptr, ptr %45, align 8, !tbaa !26
  %.not138232 = icmp eq ptr %46, null
  br i1 %.not138232, label %.critedge2, label %.lr.ph234

.lr.ph234:                                        ; preds = %.lr.ph175.preheader, %.lr.ph175
  %47 = phi ptr [ %74, %.lr.ph175 ], [ %46, %.lr.ph175.preheader ]
  %.1174233 = phi ptr [ %47, %.lr.ph175 ], [ %.0120.lcssa207, %.lr.ph175.preheader ]
  %48 = getelementptr inbounds i8, ptr %.1174233, i64 112
  %49 = load i32, ptr %48, align 8
  %50 = and i32 %49, 2048
  %.not160 = icmp eq i32 %50, 0
  br i1 %.not160, label %51, label %.lr.ph175

51:                                               ; preds = %.lr.ph234
  %52 = getelementptr inbounds i8, ptr %.1174233, i64 72
  %53 = load ptr, ptr %52, align 8, !tbaa !29
  %.not161 = icmp eq ptr %53, null
  br i1 %.not161, label %62, label %54

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

57:                                               ; preds = %54
  %58 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2408), align 8, !tbaa !16
  %59 = getelementptr inbounds i8, ptr %.1174233, i64 108
  %60 = load i32, ptr %59, align 4, !tbaa !28
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %58, i32 noundef 6161, ptr noundef nonnull @.str.143, i32 noundef %60) #4
  call void @qh_errexit(i32 noundef 5, ptr noundef nonnull %.1174233, ptr noundef null) #4
  br label %61

61:                                               ; preds = %57, %54
  call void @qh_setfree(ptr noundef nonnull %52) #4
  br label %62

62:                                               ; preds = %61, %51
  %63 = getelementptr inbounds i8, ptr %.1174233, i64 64
  %64 = load ptr, ptr %63, align 8, !tbaa !30
  %65 = getelementptr inbounds i8, ptr %64, i64 8
  %66 = load ptr, ptr %65, align 8, !tbaa !31
  %67 = getelementptr inbounds i8, ptr %64, i64 16
  %68 = load ptr, ptr %67, align 8, !tbaa !31
  %69 = icmp eq ptr %66, %68
  br i1 %69, label %70, label %.lr.ph175

70:                                               ; preds = %62
  %71 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1680), align 8, !tbaa !31
  %72 = add nsw i32 %71, 1
  store i32 %72, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1680), align 8, !tbaa !31
  call void @qh_triangulate_null(ptr noundef nonnull %.1174233)
  br label %.lr.ph175

.lr.ph175:                                        ; preds = %62, %70, %.lr.ph234
  %73 = getelementptr inbounds i8, ptr %47, i64 56
  %74 = load ptr, ptr %73, align 8, !tbaa !26
  %.not138 = icmp eq ptr %74, null
  br i1 %.not138, label %.critedge2, label %.lr.ph234

.critedge2:                                       ; preds = %.lr.ph175, %.lr.ph175.preheader, %44
  %.pr219 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 128), align 8, !tbaa !15
  %75 = icmp sgt i32 %.pr219, 1
  %.pre202 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2736), align 8, !tbaa !22
  br i1 %75, label %76, label %79

76:                                               ; preds = %.critedge2
  %77 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2408), align 8, !tbaa !16
  %78 = call i32 @qh_setsize(ptr noundef %.pre202) #4
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %77, i32 noundef 2048, ptr noundef nonnull @.str.144, i32 noundef %78) #4
  %.pre = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2736), align 8, !tbaa !22
  br label %79

79:                                               ; preds = %.critedge2.thread, %76, %.critedge2
  %.0120.lcssa207217224 = phi ptr [ %.0120.lcssa207, %76 ], [ %.0120.lcssa207, %.critedge2 ], [ null, %.critedge2.thread ]
  %.not137173218223 = phi i1 [ %.not137173, %76 ], [ %.not137173, %.critedge2 ], [ true, %.critedge2.thread ]
  %80 = phi ptr [ %.pre, %76 ], [ %.pre202, %.critedge2 ], [ %.pre202222, %.critedge2.thread ]
  %81 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2448), align 8, !tbaa !32
  store ptr %81, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2472), align 8, !tbaa !33
  %82 = call ptr @qh_setdellast(ptr noundef %80) #4
  %.not139177 = icmp eq ptr %82, null
  br i1 %.not139177, label %._crit_edge, label %.lr.ph178

.lr.ph178:                                        ; preds = %79, %94
  %83 = phi ptr [ %96, %94 ], [ %82, %79 ]
  %84 = getelementptr inbounds i8, ptr %83, i64 8
  %85 = load ptr, ptr %84, align 8, !tbaa !34
  %86 = getelementptr inbounds i8, ptr %83, i64 16
  %87 = load ptr, ptr %86, align 8, !tbaa !36
  %88 = getelementptr inbounds i8, ptr %83, i64 24
  %89 = load i32, ptr %88, align 8, !tbaa !37
  call void @qh_memfree(ptr noundef nonnull %83, i32 noundef 32) #4
  %90 = icmp eq i32 %89, 8
  br i1 %90, label %91, label %94

91:                                               ; preds = %.lr.ph178
  %92 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1672), align 8, !tbaa !31
  %93 = add nsw i32 %92, 1
  store i32 %93, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1672), align 8, !tbaa !31
  call void @qh_triangulate_mirror(ptr noundef %85, ptr noundef %87)
  br label %94

94:                                               ; preds = %91, %.lr.ph178
  %95 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2736), align 8, !tbaa !22
  %96 = call ptr @qh_setdellast(ptr noundef %95) #4
  %.not139 = icmp eq ptr %96, null
  br i1 %.not139, label %._crit_edge, label %.lr.ph178, !llvm.loop !38

._crit_edge:                                      ; preds = %94, %79
  call void @qh_settempfree(ptr noundef nonnull getelementptr inbounds (i8, ptr @qh_qh, i64 2736)) #4
  %97 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 128), align 8, !tbaa !15
  %98 = icmp sgt i32 %97, 1
  br i1 %98, label %99, label %107

99:                                               ; preds = %._crit_edge
  %100 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2408), align 8, !tbaa !16
  %101 = load ptr, ptr %1, align 8, !tbaa !13
  %.not140 = icmp eq ptr %101, null
  br i1 %.not140, label %105, label %102

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

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

107:                                              ; preds = %105, %._crit_edge
  %108 = load ptr, ptr %1, align 8, !tbaa !13
  store ptr %108, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2528), align 8, !tbaa !24
  store ptr null, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2472), align 8, !tbaa !33
  call void @qh_updatevertices() #4
  call void @qh_resetlists(i32 noundef 0, i32 noundef 0)
  %109 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 128), align 8, !tbaa !15
  %110 = icmp sgt i32 %109, 1
  br i1 %110, label %111, label %.thread

111:                                              ; preds = %107
  %112 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2408), align 8, !tbaa !16
  br i1 %.not137173218223, label %116, label %113

113:                                              ; preds = %111
  %114 = getelementptr inbounds i8, ptr %.0120.lcssa207217224, i64 108
  %115 = load i32, ptr %114, align 4, !tbaa !28
  br label %116

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

119:                                              ; preds = %116
  %120 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2408), align 8, !tbaa !16
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %120, i32 noundef 2051, ptr noundef nonnull @.str.147) #4
  br label %.thread

.thread:                                          ; preds = %107, %119, %116
  br i1 %.not137173218223, label %.critedge4, label %.preheader

.preheader:                                       ; preds = %.thread, %.loopexit
  %.2186 = phi ptr [ %161, %.loopexit ], [ %.0120.lcssa207217224, %.thread ]
  %121 = getelementptr inbounds i8, ptr %.2186, i64 56
  %122 = load ptr, ptr %121, align 8, !tbaa !26
  %.not144 = icmp eq ptr %122, null
  br i1 %.not144, label %.critedge4, label %123

123:                                              ; preds = %.preheader
  %124 = getelementptr inbounds i8, ptr %.2186, i64 112
  %125 = load i32, ptr %124, align 8
  %126 = and i32 %125, 2560
  %or.cond166 = icmp eq i32 %126, 512
  br i1 %or.cond166, label %127, label %.loopexit

127:                                              ; preds = %123
  %128 = getelementptr inbounds i8, ptr %.2186, i64 80
  %129 = load ptr, ptr %128, align 8, !tbaa !42
  %.not157 = icmp eq ptr %129, null
  br i1 %.not157, label %.loopexit, label %130

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

135:                                              ; preds = %130
  %wide.trip.count = zext nneg i32 %133 to i64
  %136 = getelementptr inbounds i8, ptr %132, i64 112
  %137 = load i32, ptr %136, align 8
  %138 = and i32 %137, 512
  %.not159.peel = icmp eq i32 %138, 0
  br i1 %.not159.peel, label %142, label %139

139:                                              ; preds = %135
  %140 = getelementptr inbounds i8, ptr %132, i64 32
  %141 = load ptr, ptr %140, align 8, !tbaa !31
  br label %142

142:                                              ; preds = %139, %135
  %.2118.peel = phi ptr [ %141, %139 ], [ %132, %135 ]
  %143 = load ptr, ptr %128, align 8, !tbaa !42
  %144 = getelementptr inbounds i8, ptr %143, i64 8
  %exitcond.peel.not = icmp eq i32 %133, 1
  br i1 %exitcond.peel.not, label %.loopexit, label %.lr.ph183.peel.next

.lr.ph183.peel.next:                              ; preds = %142
  %145 = getelementptr inbounds i8, ptr %143, i64 16
  br label %146

146:                                              ; preds = %159, %.lr.ph183.peel.next
  %indvars.iv = phi i64 [ 1, %.lr.ph183.peel.next ], [ %indvars.iv.next, %159 ]
  %.0123179.in = phi ptr [ %145, %.lr.ph183.peel.next ], [ %160, %159 ]
  %.0123179 = load ptr, ptr %.0123179.in, align 8, !tbaa !31
  %147 = getelementptr inbounds i8, ptr %.0123179, i64 112
  %148 = load i32, ptr %147, align 8
  %149 = and i32 %148, 512
  %.not158 = icmp eq i32 %149, 0
  br i1 %.not158, label %153, label %150

150:                                              ; preds = %146
  %151 = getelementptr inbounds i8, ptr %.0123179, i64 32
  %152 = load ptr, ptr %151, align 8, !tbaa !31
  br label %153

153:                                              ; preds = %146, %150
  %.0115 = phi ptr [ %152, %150 ], [ %.0123179, %146 ]
  %154 = icmp eq ptr %.2118.peel, %.0115
  br i1 %154, label %.loopexit201, label %159

.loopexit201:                                     ; preds = %153
  %155 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1664), align 8, !tbaa !31
  %156 = add nsw i32 %155, 1
  store i32 %156, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1664), align 8, !tbaa !31
  %157 = load i32, ptr %124, align 8
  %158 = or i32 %157, 1073741824
  store i32 %158, ptr %124, align 8
  br label %.loopexit

159:                                              ; preds = %153
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %160 = getelementptr inbounds [1 x %union.setelemT], ptr %144, i64 0, i64 %indvars.iv.next
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.loopexit, label %146, !llvm.loop !43

.loopexit:                                        ; preds = %159, %142, %130, %123, %.loopexit201, %127
  %161 = load ptr, ptr %121, align 8, !tbaa !26
  %.not143 = icmp eq ptr %161, null
  br i1 %.not143, label %.critedge4, label %.preheader, !llvm.loop !45

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

164:                                              ; preds = %.critedge4
  %165 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2408), align 8, !tbaa !16
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %165, i32 noundef 2052, ptr noundef nonnull @.str.148) #4
  br label %166

166:                                              ; preds = %164, %.critedge4
  br i1 %.not137173218223, label %.critedge6.thread, label %.lr.ph192

.lr.ph192:                                        ; preds = %166, %225
  %.3190 = phi ptr [ %.0112, %225 ], [ %.0120.lcssa207217224, %166 ]
  %.0113189 = phi ptr [ %.1114, %225 ], [ null, %166 ]
  %.0124188 = phi ptr [ %.1125, %225 ], [ null, %166 ]
  %167 = getelementptr inbounds i8, ptr %.3190, i64 56
  %168 = load ptr, ptr %167, align 8, !tbaa !26
  %.not146 = icmp eq ptr %168, null
  br i1 %.not146, label %.critedge6, label %169

169:                                              ; preds = %.lr.ph192
  %170 = getelementptr inbounds i8, ptr %.3190, i64 112
  %171 = load i32, ptr %170, align 8
  %172 = and i32 %171, 2048
  %.not148 = icmp eq i32 %172, 0
  %173 = and i32 %171, 512
  %.not149 = icmp eq i32 %173, 0
  br i1 %.not148, label %191, label %174

174:                                              ; preds = %169
  br i1 %.not149, label %178, label %175

175:                                              ; preds = %174
  call void @qh_delfacet(ptr noundef nonnull %.3190) #4
  %176 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2480), align 8, !tbaa !46
  %177 = add nsw i32 %176, -1
  store i32 %177, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2480), align 8, !tbaa !46
  br label %225

178:                                              ; preds = %174
  %179 = icmp eq ptr %.0124188, null
  %180 = icmp ne ptr %.0113189, null
  %or.cond = select i1 %179, i1 true, i1 %180
  br i1 %or.cond, label %225, label %181

181:                                              ; preds = %178
  %182 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 128), align 8, !tbaa !15
  %183 = icmp sgt i32 %182, 1
  br i1 %183, label %184, label %188

184:                                              ; preds = %181
  %185 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2408), align 8, !tbaa !16
  %186 = getelementptr inbounds i8, ptr %.0124188, i64 108
  %187 = load i32, ptr %186, align 4, !tbaa !28
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %185, i32 noundef 2053, ptr noundef nonnull @.str.149, i32 noundef %187) #4
  br label %188

188:                                              ; preds = %184, %181
  call void @qh_delfacet(ptr noundef nonnull %.0124188) #4
  %189 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2480), align 8, !tbaa !46
  %190 = add nsw i32 %189, -1
  store i32 %190, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2480), align 8, !tbaa !46
  br label %225

191:                                              ; preds = %169
  br i1 %.not149, label %225, label %192

192:                                              ; preds = %191
  %193 = getelementptr inbounds i8, ptr %.3190, i64 32
  %194 = load ptr, ptr %193, align 8, !tbaa !31
  %195 = icmp ne ptr %194, %.0124188
  %196 = icmp eq ptr %.0124188, null
  %or.cond9 = or i1 %196, %195
  br i1 %or.cond9, label %197, label %206

197:                                              ; preds = %192
  %198 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2408), align 8, !tbaa !16
  %199 = getelementptr inbounds i8, ptr %.3190, i64 108
  %200 = load i32, ptr %199, align 4, !tbaa !28
  br i1 %196, label %204, label %201

201:                                              ; preds = %197
  %202 = getelementptr inbounds i8, ptr %.0124188, i64 108
  %203 = load i32, ptr %202, align 4, !tbaa !28
  br label %204

204:                                              ; preds = %197, %201
  %205 = phi i32 [ %203, %201 ], [ -1, %197 ]
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %198, i32 noundef 6162, ptr noundef nonnull @.str.150, i32 noundef %200, i32 noundef %205) #4
  call void @qh_errexit2(i32 noundef 5, ptr noundef nonnull %.3190, ptr noundef %.0124188) #4
  br label %206

206:                                              ; preds = %192, %204
  %.not151 = icmp eq ptr %.0113189, null
  br i1 %.not151, label %208, label %207

207:                                              ; preds = %206
  store ptr %.0113189, ptr %193, align 8, !tbaa !31
  br label %225

208:                                              ; preds = %206
  %209 = load i32, ptr %170, align 8
  %210 = and i32 %209, 1073741824
  %.not152 = icmp eq i32 %210, 0
  br i1 %.not152, label %211, label %225

211:                                              ; preds = %208
  %212 = getelementptr inbounds i8, ptr %.0124188, i64 56
  %213 = load ptr, ptr %212, align 8, !tbaa !26
  %214 = or i32 %209, 268435456
  store i32 %214, ptr %170, align 8
  %215 = getelementptr inbounds i8, ptr %.0124188, i64 88
  %216 = getelementptr inbounds i8, ptr %.3190, i64 88
  %217 = load <2 x ptr>, ptr %215, align 8, !tbaa !13
  store <2 x ptr> %217, ptr %216, align 8, !tbaa !13
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %215, i8 0, i64 16, i1 false)
  %218 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 560), align 8, !tbaa !47
  %.not153 = icmp eq i32 %218, 0
  br i1 %.not153, label %219, label %222

219:                                              ; preds = %211
  %220 = getelementptr inbounds i8, ptr %.0124188, i64 40
  store ptr null, ptr %220, align 8, !tbaa !48
  %221 = getelementptr inbounds i8, ptr %.0124188, i64 24
  store ptr null, ptr %221, align 8, !tbaa !49
  br label %222

222:                                              ; preds = %219, %211
  call void @qh_delfacet(ptr noundef nonnull %.0124188) #4
  %223 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2480), align 8, !tbaa !46
  %224 = add nsw i32 %223, -1
  store i32 %224, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2480), align 8, !tbaa !46
  br label %225

225:                                              ; preds = %178, %188, %175, %207, %222, %208, %191
  %.1125 = phi ptr [ %.0124188, %175 ], [ %.0124188, %207 ], [ %.0124188, %208 ], [ %.0124188, %222 ], [ %.0124188, %191 ], [ %.3190, %188 ], [ %.3190, %178 ]
  %.1114 = phi ptr [ %.0113189, %175 ], [ %.0113189, %207 ], [ null, %208 ], [ %.3190, %222 ], [ %.0113189, %191 ], [ null, %188 ], [ null, %178 ]
  %.0112 = phi ptr [ %168, %175 ], [ %168, %207 ], [ %168, %208 ], [ %213, %222 ], [ %168, %191 ], [ %168, %188 ], [ %168, %178 ]
  %.not145 = icmp eq ptr %.0112, null
  br i1 %.not145, label %.critedge6, label %.lr.ph192, !llvm.loop !50

.critedge6:                                       ; preds = %.lr.ph192, %225
  %.0124.lcssa.ph = phi ptr [ %.0124188, %.lr.ph192 ], [ %.1125, %225 ]
  %.0113.lcssa.ph = phi ptr [ %.0113189, %.lr.ph192 ], [ %.1114, %225 ]
  %226 = icmp ne ptr %.0113.lcssa.ph, null
  %227 = icmp eq ptr %.0124.lcssa.ph, null
  %or.cond11 = select i1 %227, i1 true, i1 %226
  br i1 %or.cond11, label %.critedge6.thread, label %228

228:                                              ; preds = %.critedge6
  %229 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 128), align 8, !tbaa !15
  %230 = icmp sgt i32 %229, 1
  br i1 %230, label %231, label %235

231:                                              ; preds = %228
  %232 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2408), align 8, !tbaa !16
  %233 = getelementptr inbounds i8, ptr %.0124.lcssa.ph, i64 108
  %234 = load i32, ptr %233, align 4, !tbaa !28
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %232, i32 noundef 2054, ptr noundef nonnull @.str.151, i32 noundef %234) #4
  br label %235

235:                                              ; preds = %231, %228
  call void @qh_delfacet(ptr noundef nonnull %.0124.lcssa.ph) #4
  %236 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2480), align 8, !tbaa !46
  %237 = add nsw i32 %236, -1
  store i32 %237, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2480), align 8, !tbaa !46
  br label %.critedge6.thread

.critedge6.thread:                                ; preds = %166, %235, %.critedge6
  store i32 0, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2648), align 8, !tbaa !20
  store i32 %2, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 232), align 8, !tbaa !5
  %238 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 48), align 8, !tbaa !51
  %.not147 = icmp eq i32 %238, 0
  br i1 %.not147, label %241, label %239

239:                                              ; preds = %.critedge6.thread
  %240 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2440), align 8, !tbaa !25
  call void @qh_checkpolygon(ptr noundef %240)
  br label %241

241:                                              ; preds = %239, %.critedge6.thread
  store i32 1, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2604), align 4, !tbaa !14
  br label %242

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

; 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

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

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


; 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