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

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

@qh_qh = external global %struct.qhT, align 8
@qh_qhstat = external global %struct.qhstatT, align 8
@.str.17 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.149 = external hidden unnamed_addr constant [104 x i8], align 1
@.str.150 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.151 = external hidden unnamed_addr constant [35 x i8], align 1
@qh_version = external constant [0 x i8], align 1
@.str.152 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.153 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.154 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.155 = external hidden unnamed_addr constant [15 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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @qh_printfacets(ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4) #2 {
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca double, align 8
  %22 = alloca double, align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store i32 %1, ptr %7, align 4, !tbaa !9
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  store i32 %4, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #3
  call void @llvm.lifetime.start.p0(i64 4, 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
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #3
  %23 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 72), align 4, !tbaa !11
  store i32 %23, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 235), align 8, !tbaa !15
  store i32 0, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 72), align 4, !tbaa !11
  %24 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 12), align 4, !tbaa !16
  %25 = icmp ne i32 %24, 0
  br i1 %25, label %26, label %37

26:                                               ; preds = %5
  %27 = load i32, ptr %7, align 4, !tbaa !9
  %28 = icmp eq i32 %27, 4
  br i1 %28, label %35, label %29

29:                                               ; preds = %26
  %30 = load i32, ptr %7, align 4, !tbaa !9
  %31 = icmp eq i32 %30, 19
  br i1 %31, label %35, label %32

32:                                               ; preds = %29
  %33 = load i32, ptr %7, align 4, !tbaa !9
  %34 = icmp eq i32 %33, 17
  br i1 %34, label %35, label %37

35:                                               ; preds = %32, %29, %26
  %36 = 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 %36, i32 noundef 7056, ptr noundef @.str.149)
  br label %37

37:                                               ; preds = %35, %32, %5
  %38 = load i32, ptr %7, align 4, !tbaa !9
  %39 = icmp eq i32 %38, 0
  br i1 %39, label %40, label %41

40:                                               ; preds = %37
  br label %273

41:                                               ; preds = %37
  %42 = load i32, ptr %7, align 4, !tbaa !9
  %43 = icmp eq i32 %42, 2
  br i1 %43, label %44, label %58

44:                                               ; preds = %41
  %45 = load ptr, ptr %8, align 8, !tbaa !5
  %46 = load ptr, ptr %9, align 8, !tbaa !5
  %47 = load i32, ptr %10, align 4, !tbaa !9
  %48 = call ptr @qh_facetvertices(ptr noundef %45, ptr noundef %46, i32 noundef %47)
  store ptr %48, ptr %19, align 8, !tbaa !5
  %49 = load ptr, ptr %19, align 8, !tbaa !5
  %50 = call ptr @qh_getcenter(ptr noundef %49)
  store ptr %50, ptr %20, align 8, !tbaa !5
  %51 = load ptr, ptr %6, align 8, !tbaa !5
  %52 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 110), align 8, !tbaa !18
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %51, i32 noundef 9186, ptr noundef @.str.150, i32 noundef %52)
  %53 = load ptr, ptr %6, align 8, !tbaa !5
  %54 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 110), align 8, !tbaa !18
  %55 = load ptr, ptr %20, align 8, !tbaa !5
  call void @qh_printpointid(ptr noundef %53, ptr noundef null, i32 noundef %54, ptr noundef %55, i32 noundef -1)
  %56 = load ptr, ptr %20, align 8, !tbaa !5
  %57 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 160), align 8, !tbaa !19
  call void @qh_memfree(ptr noundef %56, i32 noundef %57)
  call void @qh_settempfree(ptr noundef %19)
  br label %272

58:                                               ; preds = %41
  %59 = load i32, ptr %7, align 4, !tbaa !9
  %60 = icmp eq i32 %59, 28
  br i1 %60, label %61, label %84

61:                                               ; preds = %58
  %62 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 17), align 8, !tbaa !20
  %63 = icmp ne i32 %62, 0
  br i1 %63, label %64, label %69

64:                                               ; preds = %61
  %65 = load ptr, ptr %6, align 8, !tbaa !5
  %66 = load ptr, ptr %8, align 8, !tbaa !5
  %67 = load ptr, ptr %9, align 8, !tbaa !5
  %68 = load i32, ptr %10, align 4, !tbaa !9
  call void @qh_printextremes_d(ptr noundef %65, ptr noundef %66, ptr noundef %67, i32 noundef %68)
  br label %83

69:                                               ; preds = %61
  %70 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 110), align 8, !tbaa !18
  %71 = icmp eq i32 %70, 2
  br i1 %71, label %72, label %77

72:                                               ; preds = %69
  %73 = load ptr, ptr %6, align 8, !tbaa !5
  %74 = load ptr, ptr %8, align 8, !tbaa !5
  %75 = load ptr, ptr %9, align 8, !tbaa !5
  %76 = load i32, ptr %10, align 4, !tbaa !9
  call void @qh_printextremes_2d(ptr noundef %73, ptr noundef %74, ptr noundef %75, i32 noundef %76)
  br label %82

77:                                               ; preds = %69
  %78 = load ptr, ptr %6, align 8, !tbaa !5
  %79 = load ptr, ptr %8, align 8, !tbaa !5
  %80 = load ptr, ptr %9, align 8, !tbaa !5
  %81 = load i32, ptr %10, align 4, !tbaa !9
  call void @qh_printextremes(ptr noundef %78, ptr noundef %79, ptr noundef %80, i32 noundef %81)
  br label %82

82:                                               ; preds = %77, %72
  br label %83

83:                                               ; preds = %82, %64
  br label %271

84:                                               ; preds = %58
  %85 = load i32, ptr %7, align 4, !tbaa !9
  %86 = icmp eq i32 %85, 18
  br i1 %86, label %87, label %89

87:                                               ; preds = %84
  %88 = load ptr, ptr %6, align 8, !tbaa !5
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %88, i32 noundef 9187, ptr noundef @.str.151, ptr noundef @qh_version, ptr noundef getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 120))
  br label %270

89:                                               ; preds = %84
  %90 = load i32, ptr %7, align 4, !tbaa !9
  %91 = icmp eq i32 %90, 21
  br i1 %91, label %92, label %100

92:                                               ; preds = %89
  %93 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 103), align 4, !tbaa !21
  %94 = icmp ne i32 %93, 0
  br i1 %94, label %100, label %95

95:                                               ; preds = %92
  %96 = load ptr, ptr %6, align 8, !tbaa !5
  %97 = load ptr, ptr %8, align 8, !tbaa !5
  %98 = load ptr, ptr %9, align 8, !tbaa !5
  %99 = load i32, ptr %10, align 4, !tbaa !9
  call void @qh_printpoints_out(ptr noundef %96, ptr noundef %97, ptr noundef %98, i32 noundef %99)
  br label %269

100:                                              ; preds = %92, %89
  %101 = load i32, ptr %7, align 4, !tbaa !9
  %102 = icmp eq i32 %101, 22
  br i1 %102, label %103, label %105

103:                                              ; preds = %100
  %104 = load ptr, ptr %6, align 8, !tbaa !5
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %104, i32 noundef 9188, ptr noundef @.str.152, ptr noundef getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 119), ptr noundef getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 117))
  br label %268

105:                                              ; preds = %100
  %106 = load i32, ptr %7, align 4, !tbaa !9
  %107 = icmp eq i32 %106, 23
  br i1 %107, label %108, label %115

108:                                              ; preds = %105
  %109 = load ptr, ptr %6, align 8, !tbaa !5
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %109, i32 noundef 9189, ptr noundef @.str.153)
  %110 = load ptr, ptr %6, align 8, !tbaa !5
  %111 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 215), align 8, !tbaa !22
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %110, i32 noundef 9190, ptr noundef @.str.17, double noundef %111)
  %112 = load ptr, ptr %6, align 8, !tbaa !5
  %113 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 216), align 8, !tbaa !23
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %112, i32 noundef 9191, ptr noundef @.str.17, double noundef %113)
  %114 = load ptr, ptr %6, align 8, !tbaa !5
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %114, i32 noundef 9192, ptr noundef @.str.18)
  br label %267

115:                                              ; preds = %105
  %116 = load i32, ptr %7, align 4, !tbaa !9
  %117 = icmp eq i32 %116, 24
  br i1 %117, label %118, label %148

118:                                              ; preds = %115
  %119 = load ptr, ptr %8, align 8, !tbaa !5
  %120 = load ptr, ptr %9, align 8, !tbaa !5
  %121 = load i32, ptr %10, align 4, !tbaa !9
  call void @qh_countfacets(ptr noundef %119, ptr noundef %120, i32 noundef %121, ptr noundef %11, ptr noundef %12, ptr noundef %14, ptr noundef %13, ptr noundef %15, ptr noundef %16)
  %122 = load ptr, ptr %8, align 8, !tbaa !5
  %123 = load ptr, ptr %9, align 8, !tbaa !5
  %124 = load i32, ptr %10, align 4, !tbaa !9
  %125 = call ptr @qh_facetvertices(ptr noundef %122, ptr noundef %123, i32 noundef %124)
  store ptr %125, ptr %19, align 8, !tbaa !5
  %126 = load ptr, ptr %6, align 8, !tbaa !5
  %127 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 110), align 8, !tbaa !18
  %128 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 112), align 8, !tbaa !24
  %129 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 225), align 8, !tbaa !25
  %130 = call i32 @qh_setsize(ptr noundef %129)
  %131 = add nsw i32 %128, %130
  %132 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 179), align 4, !tbaa !26
  %133 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 178), align 8, !tbaa !27
  %134 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 168), align 8, !tbaa !28
  %135 = sub nsw i32 %133, %134
  %136 = load ptr, ptr %19, align 8, !tbaa !5
  %137 = call i32 @qh_setsize(ptr noundef %136)
  %138 = load i32, ptr %11, align 4, !tbaa !9
  %139 = load i32, ptr %15, align 4, !tbaa !9
  %140 = load i32, ptr %11, align 4, !tbaa !9
  %141 = load i32, ptr %12, align 4, !tbaa !9
  %142 = sub nsw i32 %140, %141
  %143 = load i32, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 53), align 8, !tbaa !29
  %144 = load i32, ptr %16, align 4, !tbaa !9
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %126, i32 noundef 9193, ptr noundef @.str.154, i32 noundef %127, i32 noundef %131, i32 noundef %132, i32 noundef %135, i32 noundef %137, i32 noundef %138, i32 noundef %139, i32 noundef %142, i32 noundef %143, i32 noundef %144)
  call void @qh_settempfree(ptr noundef %19)
  call void @qh_outerinner(ptr noundef null, ptr noundef %21, ptr noundef %22)
  %145 = load ptr, ptr %6, align 8, !tbaa !5
  %146 = load double, ptr %21, align 8, !tbaa !30
  %147 = load double, ptr %22, align 8, !tbaa !30
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %145, i32 noundef 9194, ptr noundef @.str.155, double noundef %146, double noundef %147)
  br label %266

148:                                              ; preds = %115
  %149 = load i32, ptr %7, align 4, !tbaa !9
  %150 = icmp eq i32 %149, 27
  br i1 %150, label %151, label %156

151:                                              ; preds = %148
  %152 = load ptr, ptr %6, align 8, !tbaa !5
  %153 = load ptr, ptr %8, align 8, !tbaa !5
  %154 = load ptr, ptr %9, align 8, !tbaa !5
  %155 = load i32, ptr %10, align 4, !tbaa !9
  call void @qh_printvneighbors(ptr noundef %152, ptr noundef %153, ptr noundef %154, i32 noundef %155)
  br label %265

156:                                              ; preds = %148
  %157 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 103), align 4, !tbaa !21
  %158 = icmp ne i32 %157, 0
  br i1 %158, label %159, label %168

159:                                              ; preds = %156
  %160 = load i32, ptr %7, align 4, !tbaa !9
  %161 = icmp eq i32 %160, 17
  br i1 %161, label %162, label %168

162:                                              ; preds = %159
  %163 = load ptr, ptr %6, align 8, !tbaa !5
  %164 = load i32, ptr %7, align 4, !tbaa !9
  %165 = load ptr, ptr %8, align 8, !tbaa !5
  %166 = load ptr, ptr %9, align 8, !tbaa !5
  %167 = load i32, ptr %10, align 4, !tbaa !9
  call void @qh_printvoronoi(ptr noundef %163, i32 noundef %164, ptr noundef %165, ptr noundef %166, i32 noundef %167)
  br label %264

168:                                              ; preds = %159, %156
  %169 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 103), align 4, !tbaa !21
  %170 = icmp ne i32 %169, 0
  br i1 %170, label %171, label %190

171:                                              ; preds = %168
  %172 = load i32, ptr %7, align 4, !tbaa !9
  %173 = icmp eq i32 %172, 7
  br i1 %173, label %174, label %190

174:                                              ; preds = %171
  %175 = load ptr, ptr %6, align 8, !tbaa !5
  %176 = load i32, ptr %7, align 4, !tbaa !9
  %177 = load ptr, ptr %8, align 8, !tbaa !5
  %178 = load ptr, ptr %9, align 8, !tbaa !5
  %179 = load i32, ptr %10, align 4, !tbaa !9
  call void @qh_printbegin(ptr noundef %175, i32 noundef %176, ptr noundef %177, ptr noundef %178, i32 noundef %179)
  %180 = load ptr, ptr %6, align 8, !tbaa !5
  %181 = load i32, ptr %7, align 4, !tbaa !9
  %182 = load ptr, ptr %8, align 8, !tbaa !5
  %183 = load ptr, ptr %9, align 8, !tbaa !5
  %184 = load i32, ptr %10, align 4, !tbaa !9
  call void @qh_printvoronoi(ptr noundef %180, i32 noundef %181, ptr noundef %182, ptr noundef %183, i32 noundef %184)
  %185 = load ptr, ptr %6, align 8, !tbaa !5
  %186 = load i32, ptr %7, align 4, !tbaa !9
  %187 = load ptr, ptr %8, align 8, !tbaa !5
  %188 = load ptr, ptr %9, align 8, !tbaa !5
  %189 = load i32, ptr %10, align 4, !tbaa !9
  call void @qh_printend(ptr noundef %185, i32 noundef %186, ptr noundef %187, ptr noundef %188, i32 noundef %189)
  br label %263

190:                                              ; preds = %171, %168
  %191 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 103), align 4, !tbaa !21
  %192 = icmp ne i32 %191, 0
  br i1 %192, label %193, label %208

193:                                              ; preds = %190
  %194 = load i32, ptr %7, align 4, !tbaa !9
  %195 = icmp eq i32 %194, 26
  br i1 %195, label %202, label %196

196:                                              ; preds = %193
  %197 = load i32, ptr %7, align 4, !tbaa !9
  %198 = icmp eq i32 %197, 9
  br i1 %198, label %202, label %199

199:                                              ; preds = %196
  %200 = load i32, ptr %7, align 4, !tbaa !9
  %201 = icmp eq i32 %200, 12
  br i1 %201, label %202, label %208

202:                                              ; preds = %199, %196, %193
  %203 = load ptr, ptr %6, align 8, !tbaa !5
  %204 = load i32, ptr %7, align 4, !tbaa !9
  %205 = load ptr, ptr %8, align 8, !tbaa !5
  %206 = load ptr, ptr %9, align 8, !tbaa !5
  %207 = load i32, ptr %10, align 4, !tbaa !9
  call void @qh_printvdiagram(ptr noundef %203, i32 noundef %204, ptr noundef %205, ptr noundef %206, i32 noundef %207)
  br label %262

208:                                              ; preds = %199, %190
  %209 = load ptr, ptr %6, align 8, !tbaa !5
  %210 = load i32, ptr %7, align 4, !tbaa !9
  %211 = load ptr, ptr %8, align 8, !tbaa !5
  %212 = load ptr, ptr %9, align 8, !tbaa !5
  %213 = load i32, ptr %10, align 4, !tbaa !9
  call void @qh_printbegin(ptr noundef %209, i32 noundef %210, ptr noundef %211, ptr noundef %212, i32 noundef %213)
  %214 = load ptr, ptr %8, align 8, !tbaa !5
  %215 = icmp ne ptr %214, null
  br i1 %215, label %216, label %238

216:                                              ; preds = %208
  %217 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %217, ptr %17, align 8, !tbaa !5
  br label %218

218:                                              ; preds = %233, %216
  %219 = load ptr, ptr %17, align 8, !tbaa !5
  %220 = icmp ne ptr %219, null
  br i1 %220, label %221, label %226

221:                                              ; preds = %218
  %222 = load ptr, ptr %17, align 8, !tbaa !5
  %223 = getelementptr inbounds %struct.facetT, ptr %222, i32 0, i32 7
  %224 = load ptr, ptr %223, align 8, !tbaa !31
  %225 = icmp ne ptr %224, null
  br label %226

226:                                              ; preds = %221, %218
  %227 = phi i1 [ false, %218 ], [ %225, %221 ]
  br i1 %227, label %228, label %237

228:                                              ; preds = %226
  %229 = load ptr, ptr %6, align 8, !tbaa !5
  %230 = load i32, ptr %7, align 4, !tbaa !9
  %231 = load ptr, ptr %17, align 8, !tbaa !5
  %232 = load i32, ptr %10, align 4, !tbaa !9
  call void @qh_printafacet(ptr noundef %229, i32 noundef %230, ptr noundef %231, i32 noundef %232)
  br label %233

233:                                              ; preds = %228
  %234 = load ptr, ptr %17, align 8, !tbaa !5
  %235 = getelementptr inbounds %struct.facetT, ptr %234, i32 0, i32 7
  %236 = load ptr, ptr %235, align 8, !tbaa !31
  store ptr %236, ptr %17, align 8, !tbaa !5
  br label %218, !llvm.loop !33

237:                                              ; preds = %226
  br label %238

238:                                              ; preds = %237, %208
  store ptr null, ptr %17, align 8, !tbaa !5
  %239 = load ptr, ptr %9, align 8, !tbaa !5
  %240 = icmp ne ptr %239, null
  br i1 %240, label %241, label %256

241:                                              ; preds = %238
  %242 = load ptr, ptr %9, align 8, !tbaa !5
  %243 = getelementptr inbounds %struct.setT, ptr %242, i32 0, i32 1
  %244 = getelementptr inbounds [1 x %union.setelemT], ptr %243, i64 0, i64 0
  store ptr %244, ptr %18, align 8, !tbaa !5
  br label %245

245:                                              ; preds = %250, %241
  %246 = load ptr, ptr %18, align 8, !tbaa !5
  %247 = getelementptr inbounds ptr, ptr %246, i32 1
  store ptr %247, ptr %18, align 8, !tbaa !5
  %248 = load ptr, ptr %246, align 8, !tbaa !5
  store ptr %248, ptr %17, align 8, !tbaa !5
  %249 = icmp ne ptr %248, null
  br i1 %249, label %250, label %255

250:                                              ; preds = %245
  %251 = load ptr, ptr %6, align 8, !tbaa !5
  %252 = load i32, ptr %7, align 4, !tbaa !9
  %253 = load ptr, ptr %17, align 8, !tbaa !5
  %254 = load i32, ptr %10, align 4, !tbaa !9
  call void @qh_printafacet(ptr noundef %251, i32 noundef %252, ptr noundef %253, i32 noundef %254)
  br label %245, !llvm.loop !35

255:                                              ; preds = %245
  br label %256

256:                                              ; preds = %255, %238
  %257 = load ptr, ptr %6, align 8, !tbaa !5
  %258 = load i32, ptr %7, align 4, !tbaa !9
  %259 = load ptr, ptr %8, align 8, !tbaa !5
  %260 = load ptr, ptr %9, align 8, !tbaa !5
  %261 = load i32, ptr %10, align 4, !tbaa !9
  call void @qh_printend(ptr noundef %257, i32 noundef %258, ptr noundef %259, ptr noundef %260, i32 noundef %261)
  br label %262

262:                                              ; preds = %256, %202
  br label %263

263:                                              ; preds = %262, %174
  br label %264

264:                                              ; preds = %263, %162
  br label %265

265:                                              ; preds = %264, %151
  br label %266

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

267:                                              ; preds = %266, %108
  br label %268

268:                                              ; preds = %267, %103
  br label %269

269:                                              ; preds = %268, %95
  br label %270

270:                                              ; preds = %269, %87
  br label %271

271:                                              ; preds = %270, %83
  br label %272

272:                                              ; preds = %271, %44
  br label %273

273:                                              ; preds = %272, %40
  %274 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 235), align 8, !tbaa !15
  store i32 %274, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 72), align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #3
  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 4, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  ret void
}

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

declare void @qh_settempfree(ptr noundef) #1

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

declare void @qh_outerinner(ptr noundef, ptr noundef, ptr noundef) #1

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

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

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

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

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

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

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

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

declare ptr @qh_getcenter(ptr noundef) #1

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

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

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

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

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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 444}
!12 = !{!"qhT", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !13, i64 24, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !10, i64 48, !10, i64 52, !10, i64 56, !10, i64 60, !13, i64 64, !13, i64 72, !10, i64 80, !10, i64 84, !10, i64 88, !10, i64 92, !10, i64 96, !10, i64 100, !6, i64 104, !10, i64 112, !10, i64 116, !6, i64 120, !10, i64 128, !10, i64 132, !10, i64 136, !10, i64 140, !10, i64 144, !10, i64 148, !10, i64 152, !13, i64 160, !13, i64 168, !10, i64 176, !10, i64 180, !10, i64 184, !10, i64 188, !13, i64 192, !13, i64 200, !10, i64 208, !10, i64 212, !13, i64 216, !10, i64 224, !10, i64 228, !10, i64 232, !10, i64 236, !10, i64 240, !10, i64 244, !10, i64 248, !10, i64 252, !10, i64 256, !10, i64 260, !10, i64 264, !10, i64 268, !10, i64 272, !10, i64 276, !10, i64 280, !10, i64 284, !10, i64 288, !10, i64 292, !10, i64 296, !7, i64 300, !10, i64 416, !10, i64 420, !10, i64 424, !10, i64 428, !10, i64 432, !10, i64 436, !10, i64 440, !10, i64 444, !13, i64 448, !13, i64 456, !13, i64 464, !10, i64 472, !10, i64 476, !10, i64 480, !10, i64 484, !10, i64 488, !10, i64 492, !10, i64 496, !10, i64 500, !10, i64 504, !10, i64 508, !10, i64 512, !10, i64 516, !10, i64 520, !10, i64 524, !10, i64 528, !10, i64 532, !10, i64 536, !10, i64 540, !10, i64 544, !13, i64 552, !10, i64 560, !10, i64 564, !10, i64 568, !10, i64 572, !10, i64 576, !10, i64 580, !10, i64 584, !10, i64 588, !13, i64 592, !10, i64 600, !6, i64 608, !6, i64 616, !10, i64 624, !10, i64 628, !10, i64 632, !10, i64 636, !10, i64 640, !6, i64 648, !10, i64 656, !6, i64 664, !10, i64 672, !7, i64 676, !10, i64 932, !7, i64 936, !7, i64 1192, !10, i64 1704, !10, i64 1708, !10, i64 1712, !10, i64 1716, !10, i64 1720, !10, i64 1724, !6, i64 1728, !6, i64 1736, !6, i64 1744, !6, i64 1752, !13, i64 1760, !13, i64 1768, !13, i64 1776, !13, i64 1784, !13, i64 1792, !13, i64 1800, !13, i64 1808, !13, i64 1816, !13, i64 1824, !13, i64 1832, !13, i64 1840, !13, i64 1848, !13, i64 1856, !13, i64 1864, !6, i64 1872, !13, i64 1880, !13, i64 1888, !13, i64 1896, !13, i64 1904, !10, 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, !10, i64 2440, !10, i64 2444, !10, i64 2448, !6, i64 2456, !6, i64 2464, !6, i64 2472, !6, i64 2480, !6, i64 2488, !10, i64 2496, !10, i64 2500, !6, i64 2504, !10, i64 2512, !6, i64 2520, !10, i64 2528, !6, i64 2536, !6, i64 2544, !6, i64 2552, !6, i64 2560, !10, i64 2568, !10, i64 2572, !10, i64 2576, !10, i64 2580, !10, i64 2584, !10, i64 2588, !10, i64 2592, !10, i64 2596, !14, i64 2600, !10, i64 2608, !10, i64 2612, !10, i64 2616, !10, i64 2620, !10, i64 2624, !6, i64 2632, !6, i64 2640, !10, i64 2648, !10, i64 2652, !10, i64 2656, !13, i64 2664, !10, i64 2672, !13, i64 2680, !13, i64 2688, !13, i64 2696, !10, i64 2704, !10, i64 2708, !10, i64 2712, !10, i64 2716, !10, i64 2720, !13, i64 2728, !13, i64 2736, !10, i64 2744, !10, i64 2748, !10, i64 2752, !10, i64 2756, !10, i64 2760, !10, i64 2764, !13, i64 2768, !13, i64 2776, !10, i64 2784, !10, i64 2788, !10, i64 2792, !10, 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, !10, i64 2872, !6, i64 2880, !6, i64 2888, !10, i64 2896, !10, i64 2900, !10, i64 2904, !6, i64 2912, !13, i64 2920, !13, i64 2928, !13, i64 2936, !13, i64 2944, !10, i64 2952, !10, i64 2956, !10, i64 2960, !10, i64 2964, !10, i64 2968, !10, i64 2972, !6, i64 2976, !6, i64 2984, !10, i64 2992}
!13 = !{!"double", !7, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!12, !10, i64 2904}
!16 = !{!12, !10, i64 52}
!17 = !{!12, !6, i64 2424}
!18 = !{!12, !10, i64 632}
!19 = !{!12, !10, i64 2440}
!20 = !{!12, !10, i64 80}
!21 = !{!12, !10, i64 588}
!22 = !{!12, !13, i64 2768}
!23 = !{!12, !13, i64 2776}
!24 = !{!12, !10, i64 640}
!25 = !{!12, !6, i64 2832}
!26 = !{!12, !10, i64 2572}
!27 = !{!12, !10, i64 2568}
!28 = !{!12, !10, i64 2496}
!29 = !{!7, !7, i64 0}
!30 = !{!13, !13, i64 0}
!31 = !{!32, !6, i64 56}
!32 = !{!"facetT", !13, i64 0, !13, i64 8, !13, 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, !10, i64 104, !10, i64 108, !10, i64 112, !10, i64 113, !10, i64 113, !10, i64 113, !10, i64 113, !10, i64 113, !10, i64 113, !10, i64 113, !10, i64 114, !10, i64 114, !10, i64 114, !10, i64 114, !10, i64 114, !10, i64 114, !10, i64 114, !10, i64 114, !10, i64 115, !10, i64 115, !10, i64 115, !10, i64 115, !10, i64 115, !10, i64 115, !10, i64 115, !10, i64 115}
!33 = distinct !{!33, !34}
!34 = !{!"llvm.loop.mustprogress"}
!35 = distinct !{!35, !34}


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

@qh_qh = external global %struct.qhT, align 8
@qh_qhstat = external local_unnamed_addr global %struct.qhstatT, align 8
@.str.17 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.149 = external hidden unnamed_addr constant [104 x i8], align 1
@.str.150 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.151 = external hidden unnamed_addr constant [35 x i8], align 1
@qh_version = external constant [0 x i8], align 1
@.str.152 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.153 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.154 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.155 = external hidden unnamed_addr constant [15 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

declare void @qh_fprintf(ptr noundef, i32 noundef, 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

; Function Attrs: nounwind uwtable
define dso_local void @qh_printfacets(ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4) local_unnamed_addr #2 {
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #3
  %15 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 444), align 4, !tbaa !5
  store i32 %15, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2904), align 8, !tbaa !13
  store i32 0, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 444), align 4, !tbaa !5
  %16 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 52), align 4, !tbaa !14
  %.not = icmp eq i32 %16, 0
  br i1 %.not, label %20, label %17

17:                                               ; preds = %5
  switch i32 %1, label %36 [
    i32 19, label %18
    i32 17, label %18
    i32 4, label %18
    i32 0, label %85
    i32 2, label %21
    i32 28, label %27
    i32 18, label %35
  ]

18:                                               ; preds = %17, %17, %17
  %19 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !15
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %19, i32 noundef 7056, ptr noundef nonnull @.str.149) #3
  br label %20

20:                                               ; preds = %18, %5
  switch i32 %1, label %36 [
    i32 0, label %85
    i32 2, label %21
    i32 28, label %27
    i32 18, label %35
  ]

21:                                               ; preds = %17, %20
  %22 = tail call ptr @qh_facetvertices(ptr noundef %2, ptr noundef %3, i32 noundef %4)
  store ptr %22, ptr %12, align 8, !tbaa !16
  %23 = tail call ptr @qh_getcenter(ptr noundef %22) #3
  %24 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 632), align 8, !tbaa !17
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, i32 noundef 9186, ptr noundef nonnull @.str.150, i32 noundef %24) #3
  %25 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 632), align 8, !tbaa !17
  tail call void @qh_printpointid(ptr noundef %0, ptr noundef null, i32 noundef %25, ptr noundef %23, i32 noundef -1)
  %26 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2440), align 8, !tbaa !18
  tail call void @qh_memfree(ptr noundef %23, i32 noundef %26) #3
  call void @qh_settempfree(ptr noundef nonnull %12) #3
  br label %85

27:                                               ; preds = %17, %20
  %28 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 80), align 8, !tbaa !19
  %.not131 = icmp eq i32 %28, 0
  br i1 %.not131, label %30, label %29

29:                                               ; preds = %27
  tail call void @qh_printextremes_d(ptr noundef %0, ptr noundef %2, ptr noundef %3, i32 noundef %4)
  br label %85

30:                                               ; preds = %27
  %31 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 632), align 8, !tbaa !17
  %32 = icmp eq i32 %31, 2
  br i1 %32, label %33, label %34

33:                                               ; preds = %30
  tail call void @qh_printextremes_2d(ptr noundef %0, ptr noundef %2, ptr noundef %3, i32 noundef %4)
  br label %85

34:                                               ; preds = %30
  tail call void @qh_printextremes(ptr noundef %0, ptr noundef %2, ptr noundef %3, i32 noundef %4)
  br label %85

35:                                               ; preds = %17, %20
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, i32 noundef 9187, ptr noundef nonnull @.str.151, ptr noundef nonnull @qh_version, ptr noundef nonnull getelementptr inbounds (i8, ptr @qh_qh, i64 1192)) #3
  br label %85

36:                                               ; preds = %17, %20
  %37 = icmp ne i32 %1, 21
  %38 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 588), align 4
  %39 = icmp ne i32 %38, 0
  %or.cond5 = select i1 %37, i1 true, i1 %39
  br i1 %or.cond5, label %41, label %40

40:                                               ; preds = %36
  tail call void @qh_printpoints_out(ptr noundef %0, ptr noundef %2, ptr noundef %3, i32 noundef %4)
  br label %85

41:                                               ; preds = %36
  switch i32 %1, label %68 [
    i32 22, label %42
    i32 23, label %43
    i32 24, label %46
    i32 27, label %67
  ]

42:                                               ; preds = %41
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, i32 noundef 9188, ptr noundef nonnull @.str.152, ptr noundef nonnull getelementptr inbounds (i8, ptr @qh_qh, i64 936), ptr noundef nonnull getelementptr inbounds (i8, ptr @qh_qh, i64 676)) #3
  br label %85

43:                                               ; preds = %41
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, i32 noundef 9189, ptr noundef nonnull @.str.153) #3
  %44 = load double, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2768), align 8, !tbaa !20
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, i32 noundef 9190, ptr noundef nonnull @.str.17, double noundef %44) #3
  %45 = load double, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2776), align 8, !tbaa !21
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, i32 noundef 9191, ptr noundef nonnull @.str.17, double noundef %45) #3
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, i32 noundef 9192, ptr noundef nonnull @.str.18) #3
  br label %85

46:                                               ; preds = %41
  call void @qh_countfacets(ptr noundef %2, ptr noundef %3, i32 noundef %4, ptr noundef nonnull %6, ptr noundef nonnull %7, ptr noundef nonnull %9, ptr noundef nonnull %8, ptr noundef nonnull %10, ptr noundef nonnull %11)
  %47 = call ptr @qh_facetvertices(ptr noundef %2, ptr noundef %3, i32 noundef %4)
  store ptr %47, ptr %12, align 8, !tbaa !16
  %48 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 632), align 8, !tbaa !17
  %49 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 640), align 8, !tbaa !22
  %50 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2832), align 8, !tbaa !23
  %51 = call i32 @qh_setsize(ptr noundef %50) #3
  %52 = add nsw i32 %51, %49
  %53 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2572), align 4, !tbaa !24
  %54 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2568), align 8, !tbaa !25
  %55 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2496), align 8, !tbaa !26
  %56 = sub nsw i32 %54, %55
  %57 = load ptr, ptr %12, align 8, !tbaa !16
  %58 = call i32 @qh_setsize(ptr noundef %57) #3
  %59 = load i32, ptr %6, align 4, !tbaa !27
  %60 = load i32, ptr %10, align 4, !tbaa !27
  %61 = load i32, ptr %7, align 4, !tbaa !27
  %62 = sub nsw i32 %59, %61
  %63 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 424), align 8, !tbaa !28
  %64 = load i32, ptr %11, align 4, !tbaa !27
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, i32 noundef 9193, ptr noundef nonnull @.str.154, i32 noundef %48, i32 noundef %52, i32 noundef %53, i32 noundef %56, i32 noundef %58, i32 noundef %59, i32 noundef %60, i32 noundef %62, i32 noundef %63, i32 noundef %64) #3
  call void @qh_settempfree(ptr noundef nonnull %12) #3
  call void @qh_outerinner(ptr noundef null, ptr noundef nonnull %13, ptr noundef nonnull %14) #3
  %65 = load double, ptr %13, align 8, !tbaa !29
  %66 = load double, ptr %14, align 8, !tbaa !29
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, i32 noundef 9194, ptr noundef nonnull @.str.155, double noundef %65, double noundef %66) #3
  br label %85

67:                                               ; preds = %41
  tail call void @qh_printvneighbors(ptr noundef %0, ptr noundef %2, ptr noundef %3, i32 noundef %4)
  br label %85

68:                                               ; preds = %41
  %69 = icmp eq i32 %1, 17
  %or.cond7 = and i1 %69, %39
  br i1 %or.cond7, label %70, label %71

70:                                               ; preds = %68
  tail call void @qh_printvoronoi(ptr noundef %0, i32 noundef 17, ptr noundef %2, ptr noundef %3, i32 noundef %4)
  br label %85

71:                                               ; preds = %68
  %72 = icmp eq i32 %1, 7
  %or.cond9 = and i1 %72, %39
  br i1 %or.cond9, label %73, label %74

73:                                               ; preds = %71
  tail call void @qh_printbegin(ptr noundef %0, i32 noundef 7, ptr noundef %2, ptr noundef %3, i32 noundef %4)
  tail call void @qh_printvoronoi(ptr noundef %0, i32 noundef 7, ptr noundef %2, ptr noundef %3, i32 noundef %4)
  tail call void @qh_printend(ptr noundef %0, i32 noundef 7, ptr noundef %2, ptr noundef %3, i32 noundef %4)
  br label %85

74:                                               ; preds = %71
  br i1 %39, label %75, label %77

75:                                               ; preds = %74
  switch i32 %1, label %77 [
    i32 26, label %76
    i32 12, label %76
    i32 9, label %76
  ]

76:                                               ; preds = %75, %75, %75
  tail call void @qh_printvdiagram(ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4)
  br label %85

77:                                               ; preds = %75, %74
  tail call void @qh_printbegin(ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4)
  %.not126 = icmp eq ptr %2, null
  br i1 %.not126, label %.critedge, label %.preheader132

.preheader132:                                    ; preds = %77, %80
  %.0133 = phi ptr [ %81, %80 ], [ %2, %77 ]
  %78 = getelementptr inbounds i8, ptr %.0133, i64 56
  %79 = load ptr, ptr %78, align 8, !tbaa !30
  %.not128 = icmp eq ptr %79, null
  br i1 %.not128, label %.critedge, label %80

80:                                               ; preds = %.preheader132
  tail call void @qh_printafacet(ptr noundef %0, i32 noundef %1, ptr noundef nonnull %.0133, i32 noundef %4)
  %81 = load ptr, ptr %78, align 8, !tbaa !30
  %.not127 = icmp eq ptr %81, null
  br i1 %.not127, label %.critedge, label %.preheader132, !llvm.loop !32

.critedge:                                        ; preds = %.preheader132, %80, %77
  %.not129 = icmp eq ptr %3, null
  br i1 %.not129, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %.critedge
  %.0121134 = getelementptr inbounds i8, ptr %3, i64 8
  %82 = load ptr, ptr %.0121134, align 8, !tbaa !16
  %.not130135 = icmp eq ptr %82, null
  br i1 %.not130135, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader, %.lr.ph
  %83 = phi ptr [ %84, %.lr.ph ], [ %82, %.preheader ]
  %.0121136 = phi ptr [ %.0121, %.lr.ph ], [ %.0121134, %.preheader ]
  tail call void @qh_printafacet(ptr noundef %0, i32 noundef %1, ptr noundef nonnull %83, i32 noundef %4)
  %.0121 = getelementptr inbounds i8, ptr %.0121136, i64 8
  %84 = load ptr, ptr %.0121, align 8, !tbaa !16
  %.not130 = icmp eq ptr %84, null
  br i1 %.not130, label %.loopexit, label %.lr.ph, !llvm.loop !34

.loopexit:                                        ; preds = %.lr.ph, %.preheader, %.critedge
  tail call void @qh_printend(ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4)
  br label %85

85:                                               ; preds = %17, %20, %21, %35, %42, %46, %70, %76, %.loopexit, %73, %67, %43, %40, %29, %34, %33
  %86 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2904), align 8, !tbaa !13
  store i32 %86, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 444), align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #3
  ret void
}

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

declare void @qh_settempfree(ptr noundef) local_unnamed_addr #1

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

declare void @qh_outerinner(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local void @qh_printafacet(ptr noundef, i32 noundef, ptr noundef, i32 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_printbegin(ptr noundef, i32 noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

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

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

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

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

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

declare ptr @qh_getcenter(ptr noundef) local_unnamed_addr #1

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

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

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

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

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


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass