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

; 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, i32, i32, [1 x %struct.__jmp_buf_tag], [40 x i8], i32, double, ptr, ptr, ptr, %struct.qhmemT, %struct.qhstatT }
%struct.__jmp_buf_tag = type { [8 x i64], i32, %struct.__sigset_t }
%struct.__sigset_t = type { [16 x i64] }
%struct.qhmemT = type { i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, i32, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%struct.qhstatT = type { [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.setT = type { i32, [1 x %union.setelemT] }
%union.setelemT = type { ptr }
%struct.vertexT = type { ptr, ptr, ptr, ptr, i32, i32, i8 }
%struct.facetT = type { double, double, double, ptr, %union.anon, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, i32 }
%union.anon = type { double }

@__const.qh_printfacet3geom_simplicial.green = external hidden unnamed_addr constant [3 x double], align 16

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @qh_printfacet3geom_simplicial(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #2 {
  %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 ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca double, align 8
  %18 = alloca double, align 8
  %19 = alloca [3 x double], align 16
  %20 = alloca [3 x double], align 16
  %21 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr %19) #5
  call void @llvm.memset.p0.i64(ptr align 16 %19, i8 0, i64 24, i1 false)
  call void @llvm.lifetime.start.p0(i64 24, ptr %20) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %20, ptr align 16 @__const.qh_printfacet3geom_simplicial.green, i64 24, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  %22 = load ptr, ptr %5, align 8, !tbaa !5
  %23 = load ptr, ptr %7, align 8, !tbaa !5
  call void @qh_geomplanes(ptr noundef %22, ptr noundef %23, ptr noundef %17, ptr noundef %18)
  %24 = load ptr, ptr %5, align 8, !tbaa !5
  %25 = load ptr, ptr %7, align 8, !tbaa !5
  %26 = call ptr @qh_facet3vertex(ptr noundef %24, ptr noundef %25)
  store ptr %26, ptr %10, align 8, !tbaa !5
  %27 = load ptr, ptr %5, align 8, !tbaa !5
  %28 = load ptr, ptr %5, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.qhT, ptr %28, i32 0, i32 162
  %30 = load i32, ptr %29, align 8, !tbaa !9
  %31 = call ptr @qh_settemp(ptr noundef %27, i32 noundef %30)
  store ptr %31, ptr %9, align 8, !tbaa !5
  store ptr null, ptr %11, align 8, !tbaa !5
  %32 = load ptr, ptr %10, align 8, !tbaa !5
  %33 = icmp ne ptr %32, null
  br i1 %33, label %34, label %49

34:                                               ; preds = %4
  %35 = load ptr, ptr %10, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.setT, ptr %35, i32 0, i32 1
  %37 = getelementptr inbounds [1 x %union.setelemT], ptr %36, i64 0, i64 0
  store ptr %37, ptr %12, align 8, !tbaa !5
  br label %38

38:                                               ; preds = %43, %34
  %39 = load ptr, ptr %12, align 8, !tbaa !5
  %40 = getelementptr inbounds ptr, ptr %39, i32 1
  store ptr %40, ptr %12, align 8, !tbaa !5
  %41 = load ptr, ptr %39, align 8, !tbaa !5
  store ptr %41, ptr %11, align 8, !tbaa !5
  %42 = icmp ne ptr %41, null
  br i1 %42, label %43, label %48

43:                                               ; preds = %38
  %44 = load ptr, ptr %5, align 8, !tbaa !5
  %45 = load ptr, ptr %11, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.vertexT, ptr %45, i32 0, i32 2
  %47 = load ptr, ptr %46, align 8, !tbaa !16
  call void @qh_setappend(ptr noundef %44, ptr noundef %9, ptr noundef %47)
  br label %38, !llvm.loop !18

48:                                               ; preds = %38
  br label %49

49:                                               ; preds = %48, %4
  %50 = load ptr, ptr %5, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.qhT, ptr %50, i32 0, i32 62
  %52 = load i32, ptr %51, align 4, !tbaa !20
  %53 = icmp ne i32 %52, 0
  br i1 %53, label %64, label %54

54:                                               ; preds = %49
  %55 = load ptr, ptr %5, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.qhT, ptr %55, i32 0, i32 60
  %57 = load i32, ptr %56, align 4, !tbaa !21
  %58 = icmp ne i32 %57, 0
  br i1 %58, label %71, label %59

59:                                               ; preds = %54
  %60 = load ptr, ptr %5, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.qhT, ptr %60, i32 0, i32 58
  %62 = load i32, ptr %61, align 4, !tbaa !22
  %63 = icmp ne i32 %62, 0
  br i1 %63, label %71, label %64

64:                                               ; preds = %59, %49
  %65 = load ptr, ptr %5, align 8, !tbaa !5
  %66 = load ptr, ptr %6, align 8, !tbaa !5
  %67 = load ptr, ptr %9, align 8, !tbaa !5
  %68 = load ptr, ptr %7, align 8, !tbaa !5
  %69 = load double, ptr %17, align 8, !tbaa !23
  %70 = load ptr, ptr %8, align 8, !tbaa !5
  call void @qh_printfacet3geom_points(ptr noundef %65, ptr noundef %66, ptr noundef %67, ptr noundef %68, double noundef %69, ptr noundef %70)
  br label %71

71:                                               ; preds = %64, %59, %54
  %72 = load ptr, ptr %5, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.qhT, ptr %72, i32 0, i32 58
  %74 = load i32, ptr %73, align 4, !tbaa !22
  %75 = icmp ne i32 %74, 0
  br i1 %75, label %96, label %76

76:                                               ; preds = %71
  %77 = load ptr, ptr %5, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.qhT, ptr %77, i32 0, i32 60
  %79 = load i32, ptr %78, align 4, !tbaa !21
  %80 = icmp ne i32 %79, 0
  br i1 %80, label %119, label %81

81:                                               ; preds = %76
  %82 = load ptr, ptr %5, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.qhT, ptr %82, i32 0, i32 62
  %84 = load i32, ptr %83, align 4, !tbaa !20
  %85 = icmp ne i32 %84, 0
  br i1 %85, label %119, label %86

86:                                               ; preds = %81
  %87 = load double, ptr %17, align 8, !tbaa !23
  %88 = load double, ptr %18, align 8, !tbaa !23
  %89 = fsub double %87, %88
  %90 = load ptr, ptr %5, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.qhT, ptr %90, i32 0, i32 135
  %92 = load double, ptr %91, align 8, !tbaa !24
  %93 = fmul double 2.000000e+00, %92
  %94 = fmul double %93, 2.000000e-03
  %95 = fcmp ogt double %89, %94
  br i1 %95, label %96, label %119

96:                                               ; preds = %86, %71
  store i32 3, ptr %21, align 4, !tbaa !25
  br label %97

97:                                               ; preds = %101, %96
  %98 = load i32, ptr %21, align 4, !tbaa !25
  %99 = add nsw i32 %98, -1
  store i32 %99, ptr %21, align 4, !tbaa !25
  %100 = icmp ne i32 %98, 0
  br i1 %100, label %101, label %112

101:                                              ; preds = %97
  %102 = load ptr, ptr %8, align 8, !tbaa !5
  %103 = load i32, ptr %21, align 4, !tbaa !25
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds double, ptr %102, i64 %104
  %106 = load double, ptr %105, align 8, !tbaa !23
  %107 = fsub double 1.000000e+00, %106
  %108 = load ptr, ptr %8, align 8, !tbaa !5
  %109 = load i32, ptr %21, align 4, !tbaa !25
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds double, ptr %108, i64 %110
  store double %107, ptr %111, align 8, !tbaa !23
  br label %97, !llvm.loop !26

112:                                              ; preds = %97
  %113 = load ptr, ptr %5, align 8, !tbaa !5
  %114 = load ptr, ptr %6, align 8, !tbaa !5
  %115 = load ptr, ptr %9, align 8, !tbaa !5
  %116 = load ptr, ptr %7, align 8, !tbaa !5
  %117 = load double, ptr %18, align 8, !tbaa !23
  %118 = load ptr, ptr %8, align 8, !tbaa !5
  call void @qh_printfacet3geom_points(ptr noundef %113, ptr noundef %114, ptr noundef %115, ptr noundef %116, double noundef %117, ptr noundef %118)
  br label %119

119:                                              ; preds = %112, %86, %81, %76
  %120 = load ptr, ptr %5, align 8, !tbaa !5
  call void @qh_settempfree(ptr noundef %120, ptr noundef %9)
  %121 = load ptr, ptr %5, align 8, !tbaa !5
  call void @qh_settempfree(ptr noundef %121, ptr noundef %10)
  %122 = load ptr, ptr %5, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.qhT, ptr %122, i32 0, i32 18
  %124 = load i32, ptr %123, align 4, !tbaa !27
  %125 = icmp ne i32 %124, 0
  br i1 %125, label %131, label %126

126:                                              ; preds = %119
  %127 = load ptr, ptr %5, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.qhT, ptr %127, i32 0, i32 65
  %129 = load i32, ptr %128, align 8, !tbaa !28
  %130 = icmp ne i32 %129, 0
  br i1 %130, label %131, label %231

131:                                              ; preds = %126, %119
  %132 = load ptr, ptr %7, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.facetT, ptr %132, i32 0, i32 15
  %134 = load i32, ptr %133, align 8
  %135 = lshr i32 %134, 11
  %136 = and i32 %135, 1
  %137 = icmp ne i32 %136, 0
  br i1 %137, label %138, label %143

138:                                              ; preds = %131
  %139 = load ptr, ptr %5, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.qhT, ptr %139, i32 0, i32 202
  %141 = load i32, ptr %140, align 8, !tbaa !29
  %142 = icmp ne i32 %141, 0
  br i1 %142, label %231, label %143

143:                                              ; preds = %138, %131
  %144 = load ptr, ptr %5, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.qhT, ptr %144, i32 0, i32 217
  %146 = load i32, ptr %145, align 8, !tbaa !30
  %147 = load ptr, ptr %7, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.facetT, ptr %147, i32 0, i32 13
  store i32 %146, ptr %148, align 8, !tbaa !31
  store ptr null, ptr %15, align 8, !tbaa !5
  %149 = load ptr, ptr %7, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct.facetT, ptr %149, i32 0, i32 10
  %151 = load ptr, ptr %150, align 8, !tbaa !33
  %152 = icmp ne ptr %151, null
  br i1 %152, label %153, label %230

153:                                              ; preds = %143
  %154 = load ptr, ptr %7, align 8, !tbaa !5
  %155 = getelementptr inbounds %struct.facetT, ptr %154, i32 0, i32 10
  %156 = load ptr, ptr %155, align 8, !tbaa !33
  %157 = getelementptr inbounds %struct.setT, ptr %156, i32 0, i32 1
  %158 = getelementptr inbounds [1 x %union.setelemT], ptr %157, i64 0, i64 0
  store ptr %158, ptr %16, align 8, !tbaa !5
  br label %159

159:                                              ; preds = %228, %153
  %160 = load ptr, ptr %16, align 8, !tbaa !5
  %161 = getelementptr inbounds ptr, ptr %160, i32 1
  store ptr %161, ptr %16, align 8, !tbaa !5
  %162 = load ptr, ptr %160, align 8, !tbaa !5
  store ptr %162, ptr %15, align 8, !tbaa !5
  %163 = icmp ne ptr %162, null
  br i1 %163, label %164, label %229

164:                                              ; preds = %159
  %165 = load ptr, ptr %15, align 8, !tbaa !5
  %166 = getelementptr inbounds %struct.facetT, ptr %165, i32 0, i32 13
  %167 = load i32, ptr %166, align 8, !tbaa !31
  %168 = load ptr, ptr %5, align 8, !tbaa !5
  %169 = getelementptr inbounds %struct.qhT, ptr %168, i32 0, i32 217
  %170 = load i32, ptr %169, align 8, !tbaa !30
  %171 = icmp ne i32 %167, %170
  br i1 %171, label %172, label %228

172:                                              ; preds = %164
  %173 = load ptr, ptr %5, align 8, !tbaa !5
  %174 = load ptr, ptr %7, align 8, !tbaa !5
  %175 = getelementptr inbounds %struct.facetT, ptr %174, i32 0, i32 8
  %176 = load ptr, ptr %175, align 8, !tbaa !34
  %177 = load ptr, ptr %5, align 8, !tbaa !5
  %178 = getelementptr inbounds %struct.qhT, ptr %177, i32 0, i32 110
  %179 = load i32, ptr %178, align 8, !tbaa !35
  %180 = load ptr, ptr %16, align 8, !tbaa !5
  %181 = load ptr, ptr %7, align 8, !tbaa !5
  %182 = getelementptr inbounds %struct.facetT, ptr %181, i32 0, i32 10
  %183 = load ptr, ptr %182, align 8, !tbaa !33
  %184 = getelementptr inbounds %struct.setT, ptr %183, i32 0, i32 1
  %185 = getelementptr inbounds [1 x %union.setelemT], ptr %184, i64 0, i64 1
  %186 = ptrtoint ptr %180 to i64
  %187 = ptrtoint ptr %185 to i64
  %188 = sub i64 %186, %187
  %189 = sdiv exact i64 %188, 8
  %190 = trunc i64 %189 to i32
  %191 = call ptr @qh_setnew_delnthsorted(ptr noundef %173, ptr noundef %176, i32 noundef %179, i32 noundef %190, i32 noundef 0)
  store ptr %191, ptr %10, align 8, !tbaa !5
  %192 = load ptr, ptr %5, align 8, !tbaa !5
  %193 = getelementptr inbounds %struct.qhT, ptr %192, i32 0, i32 18
  %194 = load i32, ptr %193, align 4, !tbaa !27
  %195 = icmp ne i32 %194, 0
  br i1 %195, label %196, label %203

196:                                              ; preds = %172
  %197 = load ptr, ptr %5, align 8, !tbaa !5
  %198 = load ptr, ptr %6, align 8, !tbaa !5
  %199 = load ptr, ptr %7, align 8, !tbaa !5
  %200 = load ptr, ptr %15, align 8, !tbaa !5
  %201 = load ptr, ptr %10, align 8, !tbaa !5
  %202 = getelementptr inbounds [3 x double], ptr %19, i64 0, i64 0
  call void @qh_printhyperplaneintersection(ptr noundef %197, ptr noundef %198, ptr noundef %199, ptr noundef %200, ptr noundef %201, ptr noundef %202)
  br label %203

203:                                              ; preds = %196, %172
  %204 = load ptr, ptr %5, align 8, !tbaa !5
  %205 = getelementptr inbounds %struct.qhT, ptr %204, i32 0, i32 65
  %206 = load i32, ptr %205, align 8, !tbaa !28
  %207 = icmp ne i32 %206, 0
  br i1 %207, label %208, label %226

208:                                              ; preds = %203
  %209 = load ptr, ptr %10, align 8, !tbaa !5
  %210 = getelementptr inbounds %struct.setT, ptr %209, i32 0, i32 1
  %211 = getelementptr inbounds [1 x %union.setelemT], ptr %210, i64 0, i64 0
  %212 = load ptr, ptr %211, align 8, !tbaa !36
  store ptr %212, ptr %13, align 8, !tbaa !5
  %213 = load ptr, ptr %10, align 8, !tbaa !5
  %214 = getelementptr inbounds %struct.setT, ptr %213, i32 0, i32 1
  %215 = getelementptr inbounds [1 x %union.setelemT], ptr %214, i64 0, i64 1
  %216 = load ptr, ptr %215, align 8, !tbaa !36
  store ptr %216, ptr %14, align 8, !tbaa !5
  %217 = load ptr, ptr %5, align 8, !tbaa !5
  %218 = load ptr, ptr %6, align 8, !tbaa !5
  %219 = load ptr, ptr %13, align 8, !tbaa !5
  %220 = getelementptr inbounds %struct.vertexT, ptr %219, i32 0, i32 2
  %221 = load ptr, ptr %220, align 8, !tbaa !16
  %222 = load ptr, ptr %14, align 8, !tbaa !5
  %223 = getelementptr inbounds %struct.vertexT, ptr %222, i32 0, i32 2
  %224 = load ptr, ptr %223, align 8, !tbaa !16
  %225 = getelementptr inbounds [3 x double], ptr %20, i64 0, i64 0
  call void @qh_printline3geom(ptr noundef %217, ptr noundef %218, ptr noundef %221, ptr noundef %224, ptr noundef %225)
  br label %226

226:                                              ; preds = %208, %203
  %227 = load ptr, ptr %5, align 8, !tbaa !5
  call void @qh_setfree(ptr noundef %227, ptr noundef %10)
  br label %228

228:                                              ; preds = %226, %164
  br label %159, !llvm.loop !37

229:                                              ; preds = %159
  br label %230

230:                                              ; preds = %229, %143
  br label %231

231:                                              ; preds = %230, %138, %126
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  ret void
}

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

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

declare ptr @qh_facet3vertex(ptr noundef, ptr noundef) #1

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

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

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

declare ptr @qh_setnew_delnthsorted(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 2448}
!10 = !{!"qhT", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !12, i64 24, !11, i64 32, !11, i64 36, !11, i64 40, !11, i64 44, !11, i64 48, !11, i64 52, !11, i64 56, !11, i64 60, !12, i64 64, !12, i64 72, !11, i64 80, !11, i64 84, !11, i64 88, !11, i64 92, !11, i64 96, !11, i64 100, !6, i64 104, !11, i64 112, !11, i64 116, !6, i64 120, !11, i64 128, !11, i64 132, !11, i64 136, !11, i64 140, !11, i64 144, !11, i64 148, !11, i64 152, !12, i64 160, !12, i64 168, !11, i64 176, !11, i64 180, !11, i64 184, !11, i64 188, !12, i64 192, !12, i64 200, !11, i64 208, !11, i64 212, !12, i64 216, !11, i64 224, !11, i64 228, !11, i64 232, !11, i64 236, !11, i64 240, !11, i64 244, !11, i64 248, !11, i64 252, !11, i64 256, !11, i64 260, !11, i64 264, !11, i64 268, !11, i64 272, !11, i64 276, !11, i64 280, !11, i64 284, !11, i64 288, !11, i64 292, !11, i64 296, !7, i64 300, !11, i64 416, !11, i64 420, !11, i64 424, !11, i64 428, !11, i64 432, !11, i64 436, !11, i64 440, !11, i64 444, !12, i64 448, !12, i64 456, !12, i64 464, !11, i64 472, !11, i64 476, !11, i64 480, !11, i64 484, !11, i64 488, !11, i64 492, !11, i64 496, !11, i64 500, !11, i64 504, !11, i64 508, !11, i64 512, !11, i64 516, !11, i64 520, !11, i64 524, !11, i64 528, !11, i64 532, !11, i64 536, !11, i64 540, !11, i64 544, !12, i64 552, !11, i64 560, !11, i64 564, !11, i64 568, !11, i64 572, !11, i64 576, !11, i64 580, !11, i64 584, !11, i64 588, !12, i64 592, !11, i64 600, !6, i64 608, !6, i64 616, !11, i64 624, !11, i64 628, !11, i64 632, !11, i64 636, !11, i64 640, !6, i64 648, !11, i64 656, !6, i64 664, !11, i64 672, !7, i64 676, !11, i64 932, !7, i64 936, !7, i64 1192, !11, i64 1704, !11, i64 1708, !11, i64 1712, !11, i64 1716, !11, i64 1720, !11, i64 1724, !6, i64 1728, !6, i64 1736, !6, i64 1744, !6, i64 1752, !12, i64 1760, !12, i64 1768, !12, i64 1776, !12, i64 1784, !12, i64 1792, !12, i64 1800, !12, i64 1808, !12, i64 1816, !12, i64 1824, !12, i64 1832, !12, i64 1840, !12, i64 1848, !12, i64 1856, !12, i64 1864, !6, i64 1872, !12, i64 1880, !12, i64 1888, !12, i64 1896, !12, i64 1904, !11, i64 1912, !7, i64 1916, !7, i64 1928, !7, i64 2128, !7, i64 2168, !7, i64 2368, !6, i64 2408, !6, i64 2416, !6, i64 2424, !6, i64 2432, !11, i64 2440, !11, i64 2444, !11, i64 2448, !6, i64 2456, !6, i64 2464, !6, i64 2472, !6, i64 2480, !6, i64 2488, !11, i64 2496, !11, i64 2500, !6, i64 2504, !11, i64 2512, !6, i64 2520, !11, i64 2528, !6, i64 2536, !6, i64 2544, !6, i64 2552, !6, i64 2560, !11, i64 2568, !11, i64 2572, !11, i64 2576, !11, i64 2580, !11, i64 2584, !11, i64 2588, !11, i64 2592, !11, i64 2596, !13, i64 2600, !11, i64 2608, !11, i64 2612, !11, i64 2616, !11, i64 2620, !11, i64 2624, !6, i64 2632, !6, i64 2640, !11, i64 2648, !11, i64 2652, !11, i64 2656, !12, i64 2664, !11, i64 2672, !12, i64 2680, !12, i64 2688, !12, i64 2696, !11, i64 2704, !11, i64 2708, !11, i64 2712, !11, i64 2716, !11, i64 2720, !12, i64 2728, !12, i64 2736, !11, i64 2744, !11, i64 2748, !11, i64 2752, !11, i64 2756, !11, i64 2760, !11, i64 2764, !12, i64 2768, !12, i64 2776, !11, i64 2784, !11, i64 2788, !11, i64 2792, !11, i64 2796, !6, i64 2800, !6, i64 2808, !6, i64 2816, !6, i64 2824, !6, i64 2832, !6, i64 2840, !6, i64 2848, !6, i64 2856, !6, i64 2864, !11, i64 2872, !6, i64 2880, !6, i64 2888, !11, i64 2896, !11, i64 2900, !11, i64 2904, !6, i64 2912, !12, i64 2920, !12, i64 2928, !12, i64 2936, !12, i64 2944, !11, i64 2952, !11, i64 2956, !11, i64 2960, !11, i64 2964, !11, i64 2968, !11, i64 2972, !6, i64 2976, !11, i64 2984, !11, i64 2988, !7, i64 2992, !7, i64 3192, !11, i64 3232, !12, i64 3240, !6, i64 3248, !6, i64 3256, !6, i64 3264, !14, i64 3272, !15, i64 3424}
!11 = !{!"int", !7, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!"long", !7, i64 0}
!14 = !{!"qhmemT", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !11, i64 64, !6, i64 72, !6, i64 80, !11, i64 88, !11, i64 92, !11, i64 96, !11, i64 100, !11, i64 104, !11, i64 108, !11, i64 112, !11, i64 116, !11, i64 120, !11, i64 124, !11, i64 128, !11, i64 132, !11, i64 136, !11, i64 140, !11, i64 144}
!15 = !{!"qhstatT", !7, i64 0, !7, i64 1992, !7, i64 2256, !7, i64 4248, !7, i64 4746, !7, i64 4995, !7, i64 5248, !11, i64 5320, !11, i64 5324, !11, i64 5328, !11, i64 5332, !12, i64 5336}
!16 = !{!17, !6, i64 16}
!17 = !{!"vertexT", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !11, i64 32, !11, i64 36, !11, i64 40, !11, i64 40, !11, i64 40, !11, i64 40, !11, i64 40, !11, i64 40}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!10, !11, i64 292}
!21 = !{!10, !11, i64 284}
!22 = !{!10, !11, i64 276}
!23 = !{!12, !12, i64 0}
!24 = !{!10, !12, i64 1792}
!25 = !{!11, !11, i64 0}
!26 = distinct !{!26, !19}
!27 = !{!10, !11, i64 84}
!28 = !{!10, !11, i64 416}
!29 = !{!10, !11, i64 2704}
!30 = !{!10, !11, i64 2784}
!31 = !{!32, !11, i64 104}
!32 = !{!"facetT", !12, i64 0, !12, i64 8, !12, i64 16, !6, i64 24, !7, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !11, i64 104, !11, i64 108, !11, i64 112, !11, i64 113, !11, i64 113, !11, i64 113, !11, i64 113, !11, i64 113, !11, i64 113, !11, i64 113, !11, i64 114, !11, i64 114, !11, i64 114, !11, i64 114, !11, i64 114, !11, i64 114, !11, i64 114, !11, i64 114, !11, i64 115, !11, i64 115, !11, i64 115, !11, i64 115, !11, i64 115, !11, i64 115, !11, i64 115, !11, i64 115}
!33 = !{!32, !6, i64 80}
!34 = !{!32, !6, i64 64}
!35 = !{!10, !11, i64 632}
!36 = !{!7, !7, i64 0}
!37 = distinct !{!37, !19}


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

@__const.qh_printfacet3geom_simplicial.green = external hidden unnamed_addr constant [3 x double], align 16

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @qh_printfacet3geom_simplicial(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) local_unnamed_addr #2 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca double, align 8
  %8 = alloca double, align 8
  %9 = alloca [3 x double], align 16
  %10 = alloca [3 x double], align 16
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #5
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(24) %9, i8 0, i64 24, i1 false)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %10) #5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(24) %10, ptr noundef nonnull align 16 dereferenceable(24) @__const.qh_printfacet3geom_simplicial.green, i64 24, i1 false)
  call void @qh_geomplanes(ptr noundef %0, ptr noundef %2, ptr noundef nonnull %7, ptr noundef nonnull %8)
  %11 = call ptr @qh_facet3vertex(ptr noundef %0, ptr noundef %2) #5
  store ptr %11, ptr %6, align 8, !tbaa !5
  %12 = getelementptr inbounds i8, ptr %0, i64 2448
  %13 = load i32, ptr %12, align 8, !tbaa !9
  %14 = call ptr @qh_settemp(ptr noundef %0, i32 noundef %13) #5
  store ptr %14, ptr %5, align 8, !tbaa !5
  %.not = icmp eq ptr %11, null
  br i1 %.not, label %.loopexit80, label %.preheader

.preheader:                                       ; preds = %4
  %.05881 = getelementptr inbounds i8, ptr %11, i64 8
  %15 = load ptr, ptr %.05881, align 8, !tbaa !5
  %.not6382 = icmp eq ptr %15, null
  br i1 %.not6382, label %.loopexit80, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader, %.lr.ph
  %16 = phi ptr [ %19, %.lr.ph ], [ %15, %.preheader ]
  %.05883 = phi ptr [ %.058, %.lr.ph ], [ %.05881, %.preheader ]
  %17 = getelementptr inbounds i8, ptr %16, i64 16
  %18 = load ptr, ptr %17, align 8, !tbaa !16
  call void @qh_setappend(ptr noundef %0, ptr noundef nonnull %5, ptr noundef %18) #5
  %.058 = getelementptr inbounds i8, ptr %.05883, i64 8
  %19 = load ptr, ptr %.058, align 8, !tbaa !5
  %.not63 = icmp eq ptr %19, null
  br i1 %.not63, label %.loopexit80, label %.lr.ph, !llvm.loop !18

.loopexit80:                                      ; preds = %.lr.ph, %.preheader, %4
  %20 = getelementptr inbounds i8, ptr %0, i64 292
  %21 = load i32, ptr %20, align 4, !tbaa !20
  %.not64 = icmp eq i32 %21, 0
  br i1 %.not64, label %22, label %28

22:                                               ; preds = %.loopexit80
  %23 = getelementptr inbounds i8, ptr %0, i64 284
  %24 = load i32, ptr %23, align 4, !tbaa !21
  %.not65 = icmp eq i32 %24, 0
  br i1 %.not65, label %25, label %31

25:                                               ; preds = %22
  %26 = getelementptr inbounds i8, ptr %0, i64 276
  %27 = load i32, ptr %26, align 4, !tbaa !22
  %.not66 = icmp eq i32 %27, 0
  br i1 %.not66, label %28, label %31

28:                                               ; preds = %25, %.loopexit80
  %29 = load ptr, ptr %5, align 8, !tbaa !5
  %30 = load double, ptr %7, align 8, !tbaa !23
  call void @qh_printfacet3geom_points(ptr noundef nonnull %0, ptr noundef %1, ptr noundef %29, ptr noundef %2, double noundef %30, ptr noundef %3)
  br label %31

31:                                               ; preds = %28, %25, %22
  %32 = getelementptr inbounds i8, ptr %0, i64 276
  %33 = load i32, ptr %32, align 4, !tbaa !22
  %.not67 = icmp eq i32 %33, 0
  br i1 %.not67, label %34, label %._crit_edge

._crit_edge:                                      ; preds = %31
  %.pre = load double, ptr %8, align 8, !tbaa !23
  br label %48

34:                                               ; preds = %31
  %35 = getelementptr inbounds i8, ptr %0, i64 284
  %36 = load i32, ptr %35, align 4, !tbaa !21
  %.not68 = icmp eq i32 %36, 0
  br i1 %.not68, label %37, label %56

37:                                               ; preds = %34
  %38 = load i32, ptr %20, align 4, !tbaa !20
  %.not69 = icmp eq i32 %38, 0
  br i1 %.not69, label %39, label %56

39:                                               ; preds = %37
  %40 = load double, ptr %7, align 8, !tbaa !23
  %41 = load double, ptr %8, align 8, !tbaa !23
  %42 = fsub double %40, %41
  %43 = getelementptr inbounds i8, ptr %0, i64 1792
  %44 = load double, ptr %43, align 8, !tbaa !24
  %45 = fmul double %44, 2.000000e+00
  %46 = fmul double %45, 2.000000e-03
  %47 = fcmp ogt double %42, %46
  br i1 %47, label %48, label %56

48:                                               ; preds = %._crit_edge, %39
  %49 = phi double [ %.pre, %._crit_edge ], [ %41, %39 ]
  %50 = getelementptr inbounds i8, ptr %3, i64 16
  %51 = load double, ptr %50, align 8, !tbaa !23
  %52 = fsub double 1.000000e+00, %51
  store double %52, ptr %50, align 8, !tbaa !23
  %53 = load <2 x double>, ptr %3, align 8, !tbaa !23
  %54 = fsub <2 x double> <double 1.000000e+00, double 1.000000e+00>, %53
  store <2 x double> %54, ptr %3, align 8, !tbaa !23
  %55 = load ptr, ptr %5, align 8, !tbaa !5
  call void @qh_printfacet3geom_points(ptr noundef nonnull %0, ptr noundef %1, ptr noundef %55, ptr noundef %2, double noundef %49, ptr noundef nonnull %3)
  br label %56

56:                                               ; preds = %48, %39, %37, %34
  call void @qh_settempfree(ptr noundef nonnull %0, ptr noundef nonnull %5) #5
  call void @qh_settempfree(ptr noundef nonnull %0, ptr noundef nonnull %6) #5
  %57 = getelementptr inbounds i8, ptr %0, i64 84
  %58 = load i32, ptr %57, align 4, !tbaa !25
  %.not71 = icmp eq i32 %58, 0
  br i1 %.not71, label %59, label %62

59:                                               ; preds = %56
  %60 = getelementptr inbounds i8, ptr %0, i64 416
  %61 = load i32, ptr %60, align 8, !tbaa !26
  %.not72 = icmp eq i32 %61, 0
  br i1 %.not72, label %.loopexit, label %62

62:                                               ; preds = %59, %56
  %63 = getelementptr inbounds i8, ptr %2, i64 112
  %64 = load i32, ptr %63, align 8
  %65 = and i32 %64, 2048
  %.not73 = icmp eq i32 %65, 0
  br i1 %.not73, label %69, label %66

66:                                               ; preds = %62
  %67 = getelementptr inbounds i8, ptr %0, i64 2704
  %68 = load i32, ptr %67, align 8, !tbaa !27
  %.not74 = icmp eq i32 %68, 0
  br i1 %.not74, label %69, label %.loopexit

69:                                               ; preds = %66, %62
  %70 = getelementptr inbounds i8, ptr %0, i64 2784
  %71 = load i32, ptr %70, align 8, !tbaa !28
  %72 = getelementptr inbounds i8, ptr %2, i64 104
  store i32 %71, ptr %72, align 8, !tbaa !29
  %73 = getelementptr inbounds i8, ptr %2, i64 80
  %74 = load ptr, ptr %73, align 8, !tbaa !31
  %.not75 = icmp eq ptr %74, null
  br i1 %.not75, label %.loopexit, label %75

75:                                               ; preds = %69
  %76 = getelementptr inbounds i8, ptr %74, i64 8
  %77 = load ptr, ptr %76, align 8, !tbaa !5
  %.not7685 = icmp eq ptr %77, null
  br i1 %.not7685, label %.loopexit, label %.lr.ph86

.lr.ph86:                                         ; preds = %75
  %78 = getelementptr inbounds i8, ptr %74, i64 16
  %79 = getelementptr inbounds i8, ptr %2, i64 64
  %80 = getelementptr inbounds i8, ptr %0, i64 632
  %81 = getelementptr inbounds i8, ptr %0, i64 416
  br label %82

82:                                               ; preds = %.lr.ph86, %114
  %83 = phi ptr [ %77, %.lr.ph86 ], [ %116, %114 ]
  %84 = phi ptr [ %78, %.lr.ph86 ], [ %115, %114 ]
  %85 = getelementptr inbounds i8, ptr %83, i64 104
  %86 = load i32, ptr %85, align 8, !tbaa !29
  %87 = load i32, ptr %70, align 8, !tbaa !28
  %.not77 = icmp eq i32 %86, %87
  br i1 %.not77, label %114, label %88

88:                                               ; preds = %82
  %89 = load ptr, ptr %79, align 8, !tbaa !32
  %90 = load i32, ptr %80, align 8, !tbaa !33
  %91 = load ptr, ptr %73, align 8, !tbaa !31
  %92 = getelementptr inbounds i8, ptr %91, i64 16
  %93 = ptrtoint ptr %84 to i64
  %94 = ptrtoint ptr %92 to i64
  %95 = sub i64 %93, %94
  %96 = lshr exact i64 %95, 3
  %97 = trunc i64 %96 to i32
  %98 = call ptr @qh_setnew_delnthsorted(ptr noundef nonnull %0, ptr noundef %89, i32 noundef %90, i32 noundef %97, i32 noundef 0) #5
  store ptr %98, ptr %6, align 8, !tbaa !5
  %99 = load i32, ptr %57, align 4, !tbaa !25
  %.not78 = icmp eq i32 %99, 0
  br i1 %.not78, label %101, label %100

100:                                              ; preds = %88
  call void @qh_printhyperplaneintersection(ptr noundef nonnull %0, ptr noundef %1, ptr noundef nonnull %2, ptr noundef nonnull %83, ptr noundef %98, ptr noundef nonnull %9)
  br label %101

101:                                              ; preds = %100, %88
  %102 = load i32, ptr %81, align 8, !tbaa !26
  %.not79 = icmp eq i32 %102, 0
  br i1 %.not79, label %113, label %103

103:                                              ; preds = %101
  %104 = load ptr, ptr %6, align 8, !tbaa !5
  %105 = getelementptr inbounds i8, ptr %104, i64 8
  %106 = load ptr, ptr %105, align 8, !tbaa !34
  %107 = getelementptr inbounds i8, ptr %104, i64 16
  %108 = load ptr, ptr %107, align 8, !tbaa !34
  %109 = getelementptr inbounds i8, ptr %106, i64 16
  %110 = load ptr, ptr %109, align 8, !tbaa !16
  %111 = getelementptr inbounds i8, ptr %108, i64 16
  %112 = load ptr, ptr %111, align 8, !tbaa !16
  call void @qh_printline3geom(ptr noundef nonnull %0, ptr noundef %1, ptr noundef %110, ptr noundef %112, ptr noundef nonnull %10)
  br label %113

113:                                              ; preds = %103, %101
  call void @qh_setfree(ptr noundef nonnull %0, ptr noundef nonnull %6) #5
  br label %114

114:                                              ; preds = %113, %82
  %115 = getelementptr inbounds i8, ptr %84, i64 8
  %116 = load ptr, ptr %84, align 8, !tbaa !5
  %.not76 = icmp eq ptr %116, null
  br i1 %.not76, label %.loopexit, label %82, !llvm.loop !35

.loopexit:                                        ; preds = %114, %75, %69, %66, %59
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  ret void
}

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

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

declare ptr @qh_facet3vertex(ptr noundef, ptr noundef) local_unnamed_addr #1

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

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

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

declare ptr @qh_setnew_delnthsorted(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 2448}
!10 = !{!"qhT", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !12, i64 24, !11, i64 32, !11, i64 36, !11, i64 40, !11, i64 44, !11, i64 48, !11, i64 52, !11, i64 56, !11, i64 60, !12, i64 64, !12, i64 72, !11, i64 80, !11, i64 84, !11, i64 88, !11, i64 92, !11, i64 96, !11, i64 100, !6, i64 104, !11, i64 112, !11, i64 116, !6, i64 120, !11, i64 128, !11, i64 132, !11, i64 136, !11, i64 140, !11, i64 144, !11, i64 148, !11, i64 152, !12, i64 160, !12, i64 168, !11, i64 176, !11, i64 180, !11, i64 184, !11, i64 188, !12, i64 192, !12, i64 200, !11, i64 208, !11, i64 212, !12, i64 216, !11, i64 224, !11, i64 228, !11, i64 232, !11, i64 236, !11, i64 240, !11, i64 244, !11, i64 248, !11, i64 252, !11, i64 256, !11, i64 260, !11, i64 264, !11, i64 268, !11, i64 272, !11, i64 276, !11, i64 280, !11, i64 284, !11, i64 288, !11, i64 292, !11, i64 296, !7, i64 300, !11, i64 416, !11, i64 420, !11, i64 424, !11, i64 428, !11, i64 432, !11, i64 436, !11, i64 440, !11, i64 444, !12, i64 448, !12, i64 456, !12, i64 464, !11, i64 472, !11, i64 476, !11, i64 480, !11, i64 484, !11, i64 488, !11, i64 492, !11, i64 496, !11, i64 500, !11, i64 504, !11, i64 508, !11, i64 512, !11, i64 516, !11, i64 520, !11, i64 524, !11, i64 528, !11, i64 532, !11, i64 536, !11, i64 540, !11, i64 544, !12, i64 552, !11, i64 560, !11, i64 564, !11, i64 568, !11, i64 572, !11, i64 576, !11, i64 580, !11, i64 584, !11, i64 588, !12, i64 592, !11, i64 600, !6, i64 608, !6, i64 616, !11, i64 624, !11, i64 628, !11, i64 632, !11, i64 636, !11, i64 640, !6, i64 648, !11, i64 656, !6, i64 664, !11, i64 672, !7, i64 676, !11, i64 932, !7, i64 936, !7, i64 1192, !11, i64 1704, !11, i64 1708, !11, i64 1712, !11, i64 1716, !11, i64 1720, !11, i64 1724, !6, i64 1728, !6, i64 1736, !6, i64 1744, !6, i64 1752, !12, i64 1760, !12, i64 1768, !12, i64 1776, !12, i64 1784, !12, i64 1792, !12, i64 1800, !12, i64 1808, !12, i64 1816, !12, i64 1824, !12, i64 1832, !12, i64 1840, !12, i64 1848, !12, i64 1856, !12, i64 1864, !6, i64 1872, !12, i64 1880, !12, i64 1888, !12, i64 1896, !12, i64 1904, !11, i64 1912, !7, i64 1916, !7, i64 1928, !7, i64 2128, !7, i64 2168, !7, i64 2368, !6, i64 2408, !6, i64 2416, !6, i64 2424, !6, i64 2432, !11, i64 2440, !11, i64 2444, !11, i64 2448, !6, i64 2456, !6, i64 2464, !6, i64 2472, !6, i64 2480, !6, i64 2488, !11, i64 2496, !11, i64 2500, !6, i64 2504, !11, i64 2512, !6, i64 2520, !11, i64 2528, !6, i64 2536, !6, i64 2544, !6, i64 2552, !6, i64 2560, !11, i64 2568, !11, i64 2572, !11, i64 2576, !11, i64 2580, !11, i64 2584, !11, i64 2588, !11, i64 2592, !11, i64 2596, !13, i64 2600, !11, i64 2608, !11, i64 2612, !11, i64 2616, !11, i64 2620, !11, i64 2624, !6, i64 2632, !6, i64 2640, !11, i64 2648, !11, i64 2652, !11, i64 2656, !12, i64 2664, !11, i64 2672, !12, i64 2680, !12, i64 2688, !12, i64 2696, !11, i64 2704, !11, i64 2708, !11, i64 2712, !11, i64 2716, !11, i64 2720, !12, i64 2728, !12, i64 2736, !11, i64 2744, !11, i64 2748, !11, i64 2752, !11, i64 2756, !11, i64 2760, !11, i64 2764, !12, i64 2768, !12, i64 2776, !11, i64 2784, !11, i64 2788, !11, i64 2792, !11, i64 2796, !6, i64 2800, !6, i64 2808, !6, i64 2816, !6, i64 2824, !6, i64 2832, !6, i64 2840, !6, i64 2848, !6, i64 2856, !6, i64 2864, !11, i64 2872, !6, i64 2880, !6, i64 2888, !11, i64 2896, !11, i64 2900, !11, i64 2904, !6, i64 2912, !12, i64 2920, !12, i64 2928, !12, i64 2936, !12, i64 2944, !11, i64 2952, !11, i64 2956, !11, i64 2960, !11, i64 2964, !11, i64 2968, !11, i64 2972, !6, i64 2976, !11, i64 2984, !11, i64 2988, !7, i64 2992, !7, i64 3192, !11, i64 3232, !12, i64 3240, !6, i64 3248, !6, i64 3256, !6, i64 3264, !14, i64 3272, !15, i64 3424}
!11 = !{!"int", !7, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!"long", !7, i64 0}
!14 = !{!"qhmemT", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !11, i64 64, !6, i64 72, !6, i64 80, !11, i64 88, !11, i64 92, !11, i64 96, !11, i64 100, !11, i64 104, !11, i64 108, !11, i64 112, !11, i64 116, !11, i64 120, !11, i64 124, !11, i64 128, !11, i64 132, !11, i64 136, !11, i64 140, !11, i64 144}
!15 = !{!"qhstatT", !7, i64 0, !7, i64 1992, !7, i64 2256, !7, i64 4248, !7, i64 4746, !7, i64 4995, !7, i64 5248, !11, i64 5320, !11, i64 5324, !11, i64 5328, !11, i64 5332, !12, i64 5336}
!16 = !{!17, !6, i64 16}
!17 = !{!"vertexT", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !11, i64 32, !11, i64 36, !11, i64 40, !11, i64 40, !11, i64 40, !11, i64 40, !11, i64 40, !11, i64 40}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!10, !11, i64 292}
!21 = !{!10, !11, i64 284}
!22 = !{!10, !11, i64 276}
!23 = !{!12, !12, i64 0}
!24 = !{!10, !12, i64 1792}
!25 = !{!10, !11, i64 84}
!26 = !{!10, !11, i64 416}
!27 = !{!10, !11, i64 2704}
!28 = !{!10, !11, i64 2784}
!29 = !{!30, !11, i64 104}
!30 = !{!"facetT", !12, i64 0, !12, i64 8, !12, i64 16, !6, i64 24, !7, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !11, i64 104, !11, i64 108, !11, i64 112, !11, i64 113, !11, i64 113, !11, i64 113, !11, i64 113, !11, i64 113, !11, i64 113, !11, i64 113, !11, i64 114, !11, i64 114, !11, i64 114, !11, i64 114, !11, i64 114, !11, i64 114, !11, i64 114, !11, i64 114, !11, i64 115, !11, i64 115, !11, i64 115, !11, i64 115, !11, i64 115, !11, i64 115, !11, i64 115, !11, i64 115}
!31 = !{!30, !6, i64 80}
!32 = !{!30, !6, i64 64}
!33 = !{!10, !11, i64 632}
!34 = !{!7, !7, i64 0}
!35 = distinct !{!35, !19}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass