; 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.setT = type { i32, [1 x %union.setelemT] }
%union.setelemT = type { ptr }
%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.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 }
%struct.ridgeT = type { ptr, ptr, ptr, i32, i8 }

@__const.qh_printfacet3geom_nonsimplicial.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

declare i32 @qh_setsize(ptr 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

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

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

declare ptr @qh_projectpoint(ptr noundef, ptr noundef, ptr noundef, double noundef) #1

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

; Function Attrs: nounwind uwtable
define dso_local void @qh_printfacet3geom_nonsimplicial(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 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
  %23 = alloca double, align 8
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca [3 x double], align 16
  %27 = alloca [3 x double], align 16
  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 8, ptr %19) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr %26) #5
  call void @llvm.memset.p0.i64(ptr align 16 %26, i8 0, i64 24, i1 false)
  call void @llvm.lifetime.start.p0(i64 24, ptr %27) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %27, ptr align 16 @__const.qh_printfacet3geom_nonsimplicial.green, i64 24, i1 false)
  %28 = load ptr, ptr %5, align 8, !tbaa !5
  %29 = load ptr, ptr %7, align 8, !tbaa !5
  call void @qh_geomplanes(ptr noundef %28, ptr noundef %29, ptr noundef %22, ptr noundef %23)
  %30 = load ptr, ptr %5, align 8, !tbaa !5
  %31 = load ptr, ptr %7, align 8, !tbaa !5
  %32 = call ptr @qh_facet3vertex(ptr noundef %30, ptr noundef %31)
  store ptr %32, ptr %12, align 8, !tbaa !5
  %33 = load ptr, ptr %5, align 8, !tbaa !5
  %34 = load ptr, ptr %12, align 8, !tbaa !5
  %35 = call i32 @qh_setsize(ptr noundef %33, ptr noundef %34)
  store i32 %35, ptr %24, align 4, !tbaa !9
  %36 = load ptr, ptr %5, align 8, !tbaa !5
  %37 = load i32, ptr %24, align 4, !tbaa !9
  %38 = call ptr @qh_settemp(ptr noundef %36, i32 noundef %37)
  store ptr %38, ptr %11, align 8, !tbaa !5
  store ptr null, ptr %13, align 8, !tbaa !5
  %39 = load ptr, ptr %12, align 8, !tbaa !5
  %40 = icmp ne ptr %39, null
  br i1 %40, label %41, label %72

41:                                               ; preds = %4
  %42 = load ptr, ptr %12, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.setT, ptr %42, i32 0, i32 1
  %44 = getelementptr inbounds [1 x %union.setelemT], ptr %43, i64 0, i64 0
  store ptr %44, ptr %14, align 8, !tbaa !5
  br label %45

45:                                               ; preds = %50, %41
  %46 = load ptr, ptr %14, align 8, !tbaa !5
  %47 = getelementptr inbounds ptr, ptr %46, i32 1
  store ptr %47, ptr %14, align 8, !tbaa !5
  %48 = load ptr, ptr %46, align 8, !tbaa !5
  store ptr %48, ptr %13, align 8, !tbaa !5
  %49 = icmp ne ptr %48, null
  br i1 %49, label %50, label %71

50:                                               ; preds = %45
  %51 = load ptr, ptr %5, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.qhT, ptr %51, i32 0, i32 258
  %53 = getelementptr inbounds %struct.qhstatT, ptr %52, i32 0, i32 0
  %54 = getelementptr inbounds [249 x %union.intrealT], ptr %53, i64 0, i64 60
  %55 = load i32, ptr %54, align 8, !tbaa !11
  %56 = add nsw i32 %55, 1
  store i32 %56, ptr %54, align 8, !tbaa !11
  %57 = load ptr, ptr %5, align 8, !tbaa !5
  %58 = load ptr, ptr %13, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.vertexT, ptr %58, i32 0, i32 2
  %60 = load ptr, ptr %59, align 8, !tbaa !12
  %61 = load ptr, ptr %7, align 8, !tbaa !5
  call void @qh_distplane(ptr noundef %57, ptr noundef %60, ptr noundef %61, ptr noundef %21)
  %62 = load ptr, ptr %5, align 8, !tbaa !5
  %63 = load ptr, ptr %13, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.vertexT, ptr %63, i32 0, i32 2
  %65 = load ptr, ptr %64, align 8, !tbaa !12
  %66 = load ptr, ptr %7, align 8, !tbaa !5
  %67 = load double, ptr %21, align 8, !tbaa !14
  %68 = call ptr @qh_projectpoint(ptr noundef %62, ptr noundef %65, ptr noundef %66, double noundef %67)
  store ptr %68, ptr %17, align 8, !tbaa !5
  %69 = load ptr, ptr %5, align 8, !tbaa !5
  %70 = load ptr, ptr %17, align 8, !tbaa !5
  call void @qh_setappend(ptr noundef %69, ptr noundef %11, ptr noundef %70)
  br label %45, !llvm.loop !16

71:                                               ; preds = %45
  br label %72

72:                                               ; preds = %71, %4
  %73 = load ptr, ptr %5, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.qhT, ptr %73, i32 0, i32 62
  %75 = load i32, ptr %74, align 4, !tbaa !18
  %76 = icmp ne i32 %75, 0
  br i1 %76, label %87, label %77

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

82:                                               ; preds = %77
  %83 = load ptr, ptr %5, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.qhT, ptr %83, i32 0, i32 58
  %85 = load i32, ptr %84, align 4, !tbaa !24
  %86 = icmp ne i32 %85, 0
  br i1 %86, label %94, label %87

87:                                               ; preds = %82, %72
  %88 = load ptr, ptr %5, align 8, !tbaa !5
  %89 = load ptr, ptr %6, align 8, !tbaa !5
  %90 = load ptr, ptr %11, align 8, !tbaa !5
  %91 = load ptr, ptr %7, align 8, !tbaa !5
  %92 = load double, ptr %22, align 8, !tbaa !14
  %93 = load ptr, ptr %8, align 8, !tbaa !5
  call void @qh_printfacet3geom_points(ptr noundef %88, ptr noundef %89, ptr noundef %90, ptr noundef %91, double noundef %92, ptr noundef %93)
  br label %94

94:                                               ; preds = %87, %82, %77
  %95 = load ptr, ptr %5, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.qhT, ptr %95, i32 0, i32 58
  %97 = load i32, ptr %96, align 4, !tbaa !24
  %98 = icmp ne i32 %97, 0
  br i1 %98, label %119, label %99

99:                                               ; preds = %94
  %100 = load ptr, ptr %5, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.qhT, ptr %100, i32 0, i32 60
  %102 = load i32, ptr %101, align 4, !tbaa !23
  %103 = icmp ne i32 %102, 0
  br i1 %103, label %142, label %104

104:                                              ; preds = %99
  %105 = load ptr, ptr %5, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.qhT, ptr %105, i32 0, i32 62
  %107 = load i32, ptr %106, align 4, !tbaa !18
  %108 = icmp ne i32 %107, 0
  br i1 %108, label %142, label %109

109:                                              ; preds = %104
  %110 = load double, ptr %22, align 8, !tbaa !14
  %111 = load double, ptr %23, align 8, !tbaa !14
  %112 = fsub double %110, %111
  %113 = load ptr, ptr %5, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.qhT, ptr %113, i32 0, i32 135
  %115 = load double, ptr %114, align 8, !tbaa !25
  %116 = fmul double 2.000000e+00, %115
  %117 = fmul double %116, 2.000000e-03
  %118 = fcmp ogt double %112, %117
  br i1 %118, label %119, label %142

119:                                              ; preds = %109, %94
  store i32 3, ptr %25, align 4, !tbaa !9
  br label %120

120:                                              ; preds = %124, %119
  %121 = load i32, ptr %25, align 4, !tbaa !9
  %122 = add nsw i32 %121, -1
  store i32 %122, ptr %25, align 4, !tbaa !9
  %123 = icmp ne i32 %121, 0
  br i1 %123, label %124, label %135

124:                                              ; preds = %120
  %125 = load ptr, ptr %8, align 8, !tbaa !5
  %126 = load i32, ptr %25, align 4, !tbaa !9
  %127 = sext i32 %126 to i64
  %128 = getelementptr inbounds double, ptr %125, i64 %127
  %129 = load double, ptr %128, align 8, !tbaa !14
  %130 = fsub double 1.000000e+00, %129
  %131 = load ptr, ptr %8, align 8, !tbaa !5
  %132 = load i32, ptr %25, align 4, !tbaa !9
  %133 = sext i32 %132 to i64
  %134 = getelementptr inbounds double, ptr %131, i64 %133
  store double %130, ptr %134, align 8, !tbaa !14
  br label %120, !llvm.loop !26

135:                                              ; preds = %120
  %136 = load ptr, ptr %5, align 8, !tbaa !5
  %137 = load ptr, ptr %6, align 8, !tbaa !5
  %138 = load ptr, ptr %11, align 8, !tbaa !5
  %139 = load ptr, ptr %7, align 8, !tbaa !5
  %140 = load double, ptr %23, align 8, !tbaa !14
  %141 = load ptr, ptr %8, align 8, !tbaa !5
  call void @qh_printfacet3geom_points(ptr noundef %136, ptr noundef %137, ptr noundef %138, ptr noundef %139, double noundef %140, ptr noundef %141)
  br label %142

142:                                              ; preds = %135, %109, %104, %99
  store ptr null, ptr %18, align 8, !tbaa !5
  %143 = load ptr, ptr %11, align 8, !tbaa !5
  %144 = icmp ne ptr %143, null
  br i1 %144, label %145, label %161

145:                                              ; preds = %142
  %146 = load ptr, ptr %11, align 8, !tbaa !5
  %147 = getelementptr inbounds %struct.setT, ptr %146, i32 0, i32 1
  %148 = getelementptr inbounds [1 x %union.setelemT], ptr %147, i64 0, i64 0
  store ptr %148, ptr %19, align 8, !tbaa !5
  br label %149

149:                                              ; preds = %154, %145
  %150 = load ptr, ptr %19, align 8, !tbaa !5
  %151 = getelementptr inbounds ptr, ptr %150, i32 1
  store ptr %151, ptr %19, align 8, !tbaa !5
  %152 = load ptr, ptr %150, align 8, !tbaa !5
  store ptr %152, ptr %18, align 8, !tbaa !5
  %153 = icmp ne ptr %152, null
  br i1 %153, label %154, label %160

154:                                              ; preds = %149
  %155 = load ptr, ptr %5, align 8, !tbaa !5
  %156 = load ptr, ptr %18, align 8, !tbaa !5
  %157 = load ptr, ptr %5, align 8, !tbaa !5
  %158 = getelementptr inbounds %struct.qhT, ptr %157, i32 0, i32 160
  %159 = load i32, ptr %158, align 8, !tbaa !27
  call void @qh_memfree(ptr noundef %155, ptr noundef %156, i32 noundef %159)
  br label %149, !llvm.loop !28

160:                                              ; preds = %149
  br label %161

161:                                              ; preds = %160, %142
  %162 = load ptr, ptr %5, align 8, !tbaa !5
  call void @qh_settempfree(ptr noundef %162, ptr noundef %11)
  %163 = load ptr, ptr %5, align 8, !tbaa !5
  call void @qh_settempfree(ptr noundef %163, ptr noundef %12)
  %164 = load ptr, ptr %5, align 8, !tbaa !5
  %165 = getelementptr inbounds %struct.qhT, ptr %164, i32 0, i32 18
  %166 = load i32, ptr %165, align 4, !tbaa !29
  %167 = icmp ne i32 %166, 0
  br i1 %167, label %173, label %168

168:                                              ; preds = %161
  %169 = load ptr, ptr %5, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.qhT, ptr %169, i32 0, i32 65
  %171 = load i32, ptr %170, align 8, !tbaa !30
  %172 = icmp ne i32 %171, 0
  br i1 %172, label %173, label %274

173:                                              ; preds = %168, %161
  %174 = load ptr, ptr %7, align 8, !tbaa !5
  %175 = getelementptr inbounds %struct.facetT, ptr %174, i32 0, i32 15
  %176 = load i32, ptr %175, align 8
  %177 = lshr i32 %176, 11
  %178 = and i32 %177, 1
  %179 = icmp ne i32 %178, 0
  br i1 %179, label %180, label %185

180:                                              ; preds = %173
  %181 = load ptr, ptr %5, align 8, !tbaa !5
  %182 = getelementptr inbounds %struct.qhT, ptr %181, i32 0, i32 202
  %183 = load i32, ptr %182, align 8, !tbaa !31
  %184 = icmp ne i32 %183, 0
  br i1 %184, label %274, label %185

185:                                              ; preds = %180, %173
  %186 = load ptr, ptr %5, align 8, !tbaa !5
  %187 = getelementptr inbounds %struct.qhT, ptr %186, i32 0, i32 217
  %188 = load i32, ptr %187, align 8, !tbaa !32
  %189 = load ptr, ptr %7, align 8, !tbaa !5
  %190 = getelementptr inbounds %struct.facetT, ptr %189, i32 0, i32 13
  store i32 %188, ptr %190, align 8, !tbaa !33
  store ptr null, ptr %9, align 8, !tbaa !5
  %191 = load ptr, ptr %7, align 8, !tbaa !5
  %192 = getelementptr inbounds %struct.facetT, ptr %191, i32 0, i32 9
  %193 = load ptr, ptr %192, align 8, !tbaa !35
  %194 = icmp ne ptr %193, null
  br i1 %194, label %195, label %273

195:                                              ; preds = %185
  %196 = load ptr, ptr %7, align 8, !tbaa !5
  %197 = getelementptr inbounds %struct.facetT, ptr %196, i32 0, i32 9
  %198 = load ptr, ptr %197, align 8, !tbaa !35
  %199 = getelementptr inbounds %struct.setT, ptr %198, i32 0, i32 1
  %200 = getelementptr inbounds [1 x %union.setelemT], ptr %199, i64 0, i64 0
  store ptr %200, ptr %10, align 8, !tbaa !5
  br label %201

201:                                              ; preds = %271, %195
  %202 = load ptr, ptr %10, align 8, !tbaa !5
  %203 = getelementptr inbounds ptr, ptr %202, i32 1
  store ptr %203, ptr %10, align 8, !tbaa !5
  %204 = load ptr, ptr %202, align 8, !tbaa !5
  store ptr %204, ptr %9, align 8, !tbaa !5
  %205 = icmp ne ptr %204, null
  br i1 %205, label %206, label %272

206:                                              ; preds = %201
  %207 = load ptr, ptr %9, align 8, !tbaa !5
  %208 = getelementptr inbounds %struct.ridgeT, ptr %207, i32 0, i32 1
  %209 = load ptr, ptr %208, align 8, !tbaa !36
  %210 = load ptr, ptr %7, align 8, !tbaa !5
  %211 = icmp eq ptr %209, %210
  br i1 %211, label %212, label %216

212:                                              ; preds = %206
  %213 = load ptr, ptr %9, align 8, !tbaa !5
  %214 = getelementptr inbounds %struct.ridgeT, ptr %213, i32 0, i32 2
  %215 = load ptr, ptr %214, align 8, !tbaa !38
  br label %220

216:                                              ; preds = %206
  %217 = load ptr, ptr %9, align 8, !tbaa !5
  %218 = getelementptr inbounds %struct.ridgeT, ptr %217, i32 0, i32 1
  %219 = load ptr, ptr %218, align 8, !tbaa !36
  br label %220

220:                                              ; preds = %216, %212
  %221 = phi ptr [ %215, %212 ], [ %219, %216 ]
  store ptr %221, ptr %20, align 8, !tbaa !5
  %222 = load ptr, ptr %20, align 8, !tbaa !5
  %223 = getelementptr inbounds %struct.facetT, ptr %222, i32 0, i32 13
  %224 = load i32, ptr %223, align 8, !tbaa !33
  %225 = load ptr, ptr %5, align 8, !tbaa !5
  %226 = getelementptr inbounds %struct.qhT, ptr %225, i32 0, i32 217
  %227 = load i32, ptr %226, align 8, !tbaa !32
  %228 = icmp ne i32 %224, %227
  br i1 %228, label %229, label %271

229:                                              ; preds = %220
  %230 = load ptr, ptr %5, align 8, !tbaa !5
  %231 = getelementptr inbounds %struct.qhT, ptr %230, i32 0, i32 18
  %232 = load i32, ptr %231, align 4, !tbaa !29
  %233 = icmp ne i32 %232, 0
  br i1 %233, label %234, label %243

234:                                              ; preds = %229
  %235 = load ptr, ptr %5, align 8, !tbaa !5
  %236 = load ptr, ptr %6, align 8, !tbaa !5
  %237 = load ptr, ptr %7, align 8, !tbaa !5
  %238 = load ptr, ptr %20, align 8, !tbaa !5
  %239 = load ptr, ptr %9, align 8, !tbaa !5
  %240 = getelementptr inbounds %struct.ridgeT, ptr %239, i32 0, i32 0
  %241 = load ptr, ptr %240, align 8, !tbaa !39
  %242 = getelementptr inbounds [3 x double], ptr %26, i64 0, i64 0
  call void @qh_printhyperplaneintersection(ptr noundef %235, ptr noundef %236, ptr noundef %237, ptr noundef %238, ptr noundef %241, ptr noundef %242)
  br label %243

243:                                              ; preds = %234, %229
  %244 = load ptr, ptr %5, align 8, !tbaa !5
  %245 = getelementptr inbounds %struct.qhT, ptr %244, i32 0, i32 65
  %246 = load i32, ptr %245, align 8, !tbaa !30
  %247 = icmp ne i32 %246, 0
  br i1 %247, label %248, label %270

248:                                              ; preds = %243
  %249 = load ptr, ptr %9, align 8, !tbaa !5
  %250 = getelementptr inbounds %struct.ridgeT, ptr %249, i32 0, i32 0
  %251 = load ptr, ptr %250, align 8, !tbaa !39
  %252 = getelementptr inbounds %struct.setT, ptr %251, i32 0, i32 1
  %253 = getelementptr inbounds [1 x %union.setelemT], ptr %252, i64 0, i64 0
  %254 = load ptr, ptr %253, align 8, !tbaa !11
  store ptr %254, ptr %15, align 8, !tbaa !5
  %255 = load ptr, ptr %9, align 8, !tbaa !5
  %256 = getelementptr inbounds %struct.ridgeT, ptr %255, i32 0, i32 0
  %257 = load ptr, ptr %256, align 8, !tbaa !39
  %258 = getelementptr inbounds %struct.setT, ptr %257, i32 0, i32 1
  %259 = getelementptr inbounds [1 x %union.setelemT], ptr %258, i64 0, i64 1
  %260 = load ptr, ptr %259, align 8, !tbaa !11
  store ptr %260, ptr %16, align 8, !tbaa !5
  %261 = load ptr, ptr %5, align 8, !tbaa !5
  %262 = load ptr, ptr %6, align 8, !tbaa !5
  %263 = load ptr, ptr %15, align 8, !tbaa !5
  %264 = getelementptr inbounds %struct.vertexT, ptr %263, i32 0, i32 2
  %265 = load ptr, ptr %264, align 8, !tbaa !12
  %266 = load ptr, ptr %16, align 8, !tbaa !5
  %267 = getelementptr inbounds %struct.vertexT, ptr %266, i32 0, i32 2
  %268 = load ptr, ptr %267, align 8, !tbaa !12
  %269 = getelementptr inbounds [3 x double], ptr %27, i64 0, i64 0
  call void @qh_printline3geom(ptr noundef %261, ptr noundef %262, ptr noundef %265, ptr noundef %268, ptr noundef %269)
  br label %270

270:                                              ; preds = %248, %243
  br label %271

271:                                              ; preds = %270, %220
  br label %201, !llvm.loop !40

272:                                              ; preds = %201
  br label %273

273:                                              ; preds = %272, %185
  br label %274

274:                                              ; preds = %273, %180, %168
  call void @llvm.lifetime.end.p0(i64 24, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, 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
}

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

; 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

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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !6, i64 16}
!13 = !{!"vertexT", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 40, !10, i64 40, !10, i64 40, !10, i64 40, !10, i64 40}
!14 = !{!15, !15, i64 0}
!15 = !{!"double", !7, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!19, !10, i64 292}
!19 = !{!"qhT", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !15, 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, !15, i64 64, !15, 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, !15, i64 160, !15, i64 168, !10, i64 176, !10, i64 180, !10, i64 184, !10, i64 188, !15, i64 192, !15, i64 200, !10, i64 208, !10, i64 212, !15, 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, !15, i64 448, !15, i64 456, !15, 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, !15, 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, !15, 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, !15, i64 1760, !15, i64 1768, !15, i64 1776, !15, i64 1784, !15, i64 1792, !15, i64 1800, !15, i64 1808, !15, i64 1816, !15, i64 1824, !15, i64 1832, !15, i64 1840, !15, i64 1848, !15, i64 1856, !15, i64 1864, !6, i64 1872, !15, i64 1880, !15, i64 1888, !15, i64 1896, !15, 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, !20, 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, !15, i64 2664, !10, i64 2672, !15, i64 2680, !15, i64 2688, !15, i64 2696, !10, i64 2704, !10, i64 2708, !10, i64 2712, !10, i64 2716, !10, i64 2720, !15, i64 2728, !15, i64 2736, !10, i64 2744, !10, i64 2748, !10, i64 2752, !10, i64 2756, !10, i64 2760, !10, i64 2764, !15, i64 2768, !15, 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, !15, i64 2920, !15, i64 2928, !15, i64 2936, !15, i64 2944, !10, i64 2952, !10, i64 2956, !10, i64 2960, !10, i64 2964, !10, i64 2968, !10, i64 2972, !6, i64 2976, !10, i64 2984, !10, i64 2988, !7, i64 2992, !7, i64 3192, !10, i64 3232, !15, i64 3240, !6, i64 3248, !6, i64 3256, !6, i64 3264, !21, i64 3272, !22, i64 3424}
!20 = !{!"long", !7, i64 0}
!21 = !{!"qhmemT", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !10, i64 64, !6, i64 72, !6, i64 80, !10, i64 88, !10, i64 92, !10, i64 96, !10, i64 100, !10, i64 104, !10, i64 108, !10, i64 112, !10, i64 116, !10, i64 120, !10, i64 124, !10, i64 128, !10, i64 132, !10, i64 136, !10, i64 140, !10, i64 144}
!22 = !{!"qhstatT", !7, i64 0, !7, i64 1992, !7, i64 2256, !7, i64 4248, !7, i64 4746, !7, i64 4995, !7, i64 5248, !10, i64 5320, !10, i64 5324, !10, i64 5328, !10, i64 5332, !15, i64 5336}
!23 = !{!19, !10, i64 284}
!24 = !{!19, !10, i64 276}
!25 = !{!19, !15, i64 1792}
!26 = distinct !{!26, !17}
!27 = !{!19, !10, i64 2440}
!28 = distinct !{!28, !17}
!29 = !{!19, !10, i64 84}
!30 = !{!19, !10, i64 416}
!31 = !{!19, !10, i64 2704}
!32 = !{!19, !10, i64 2784}
!33 = !{!34, !10, i64 104}
!34 = !{!"facetT", !15, i64 0, !15, i64 8, !15, 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}
!35 = !{!34, !6, i64 72}
!36 = !{!37, !6, i64 8}
!37 = !{!"ridgeT", !6, i64 0, !6, i64 8, !6, i64 16, !10, i64 24, !10, i64 28, !10, i64 28, !10, i64 28, !10, i64 28, !10, i64 28, !10, i64 28, !10, i64 28}
!38 = !{!37, !6, i64 16}
!39 = !{!37, !6, i64 0}
!40 = distinct !{!40, !17}


; 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_nonsimplicial.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

declare i32 @qh_setsize(ptr 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

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

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

declare ptr @qh_projectpoint(ptr noundef, ptr noundef, ptr noundef, double 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

; Function Attrs: nounwind uwtable
define dso_local void @qh_printfacet3geom_nonsimplicial(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 double, align 8
  %10 = alloca [3 x double], align 16
  %11 = 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 8, ptr nonnull %9) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %10) #5
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(24) %10, i8 0, i64 24, i1 false)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(24) %11, ptr noundef nonnull align 16 dereferenceable(24) @__const.qh_printfacet3geom_nonsimplicial.green, i64 24, i1 false)
  call void @qh_geomplanes(ptr noundef %0, ptr noundef %2, ptr noundef nonnull %8, ptr noundef nonnull %9)
  %12 = call ptr @qh_facet3vertex(ptr noundef %0, ptr noundef %2) #5
  store ptr %12, ptr %6, align 8, !tbaa !5
  %13 = call i32 @qh_setsize(ptr noundef %0, ptr noundef %12) #5
  %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 %12, null
  br i1 %.not, label %.loopexit104, label %.preheader103

.preheader103:                                    ; preds = %4
  %.072105 = getelementptr inbounds i8, ptr %12, i64 8
  %15 = load ptr, ptr %.072105, align 8, !tbaa !5
  %.not80106 = icmp eq ptr %15, null
  br i1 %.not80106, label %.loopexit104, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader103
  %16 = getelementptr inbounds i8, ptr %0, i64 3904
  br label %17

17:                                               ; preds = %.lr.ph, %17
  %18 = phi ptr [ %15, %.lr.ph ], [ %26, %17 ]
  %.072107 = phi ptr [ %.072105, %.lr.ph ], [ %.072, %17 ]
  %19 = load i32, ptr %16, align 8, !tbaa !9
  %20 = add nsw i32 %19, 1
  store i32 %20, ptr %16, align 8, !tbaa !9
  %21 = getelementptr inbounds i8, ptr %18, i64 16
  %22 = load ptr, ptr %21, align 8, !tbaa !10
  call void @qh_distplane(ptr noundef %0, ptr noundef %22, ptr noundef %2, ptr noundef nonnull %7) #5
  %23 = load ptr, ptr %21, align 8, !tbaa !10
  %24 = load double, ptr %7, align 8, !tbaa !13
  %25 = call ptr @qh_projectpoint(ptr noundef %0, ptr noundef %23, ptr noundef %2, double noundef %24) #5
  call void @qh_setappend(ptr noundef %0, ptr noundef nonnull %5, ptr noundef %25) #5
  %.072 = getelementptr inbounds i8, ptr %.072107, i64 8
  %26 = load ptr, ptr %.072, align 8, !tbaa !5
  %.not80 = icmp eq ptr %26, null
  br i1 %.not80, label %.loopexit104, label %17, !llvm.loop !15

.loopexit104:                                     ; preds = %17, %.preheader103, %4
  %27 = getelementptr inbounds i8, ptr %0, i64 292
  %28 = load i32, ptr %27, align 4, !tbaa !17
  %.not81 = icmp eq i32 %28, 0
  br i1 %.not81, label %29, label %35

29:                                               ; preds = %.loopexit104
  %30 = getelementptr inbounds i8, ptr %0, i64 284
  %31 = load i32, ptr %30, align 4, !tbaa !22
  %.not82 = icmp eq i32 %31, 0
  br i1 %.not82, label %32, label %38

32:                                               ; preds = %29
  %33 = getelementptr inbounds i8, ptr %0, i64 276
  %34 = load i32, ptr %33, align 4, !tbaa !23
  %.not83 = icmp eq i32 %34, 0
  br i1 %.not83, label %35, label %38

35:                                               ; preds = %32, %.loopexit104
  %36 = load ptr, ptr %5, align 8, !tbaa !5
  %37 = load double, ptr %8, align 8, !tbaa !13
  call void @qh_printfacet3geom_points(ptr noundef nonnull %0, ptr noundef %1, ptr noundef %36, ptr noundef %2, double noundef %37, ptr noundef %3)
  br label %38

38:                                               ; preds = %35, %32, %29
  %39 = getelementptr inbounds i8, ptr %0, i64 276
  %40 = load i32, ptr %39, align 4, !tbaa !23
  %.not84 = icmp eq i32 %40, 0
  br i1 %.not84, label %41, label %._crit_edge

._crit_edge:                                      ; preds = %38
  %.pre = load double, ptr %9, align 8, !tbaa !13
  br label %55

41:                                               ; preds = %38
  %42 = getelementptr inbounds i8, ptr %0, i64 284
  %43 = load i32, ptr %42, align 4, !tbaa !22
  %.not85 = icmp eq i32 %43, 0
  br i1 %.not85, label %44, label %63

44:                                               ; preds = %41
  %45 = load i32, ptr %27, align 4, !tbaa !17
  %.not86 = icmp eq i32 %45, 0
  br i1 %.not86, label %46, label %63

46:                                               ; preds = %44
  %47 = load double, ptr %8, align 8, !tbaa !13
  %48 = load double, ptr %9, align 8, !tbaa !13
  %49 = fsub double %47, %48
  %50 = getelementptr inbounds i8, ptr %0, i64 1792
  %51 = load double, ptr %50, align 8, !tbaa !24
  %52 = fmul double %51, 2.000000e+00
  %53 = fmul double %52, 2.000000e-03
  %54 = fcmp ogt double %49, %53
  br i1 %54, label %55, label %63

55:                                               ; preds = %._crit_edge, %46
  %56 = phi double [ %.pre, %._crit_edge ], [ %48, %46 ]
  %57 = getelementptr inbounds i8, ptr %3, i64 16
  %58 = load double, ptr %57, align 8, !tbaa !13
  %59 = fsub double 1.000000e+00, %58
  store double %59, ptr %57, align 8, !tbaa !13
  %60 = load <2 x double>, ptr %3, align 8, !tbaa !13
  %61 = fsub <2 x double> <double 1.000000e+00, double 1.000000e+00>, %60
  store <2 x double> %61, ptr %3, align 8, !tbaa !13
  %62 = load ptr, ptr %5, align 8, !tbaa !5
  call void @qh_printfacet3geom_points(ptr noundef nonnull %0, ptr noundef %1, ptr noundef %62, ptr noundef %2, double noundef %56, ptr noundef nonnull %3)
  br label %63

63:                                               ; preds = %55, %46, %44, %41
  %64 = load ptr, ptr %5, align 8, !tbaa !5
  %.not88 = icmp eq ptr %64, null
  br i1 %.not88, label %.loopexit102, label %.preheader101

.preheader101:                                    ; preds = %63
  %.071109 = getelementptr inbounds i8, ptr %64, i64 8
  %65 = load ptr, ptr %.071109, align 8, !tbaa !5
  %.not90110 = icmp eq ptr %65, null
  br i1 %.not90110, label %.loopexit102, label %.lr.ph112

.lr.ph112:                                        ; preds = %.preheader101
  %66 = getelementptr inbounds i8, ptr %0, i64 2440
  br label %67

67:                                               ; preds = %.lr.ph112, %67
  %68 = phi ptr [ %65, %.lr.ph112 ], [ %70, %67 ]
  %.071111 = phi ptr [ %.071109, %.lr.ph112 ], [ %.071, %67 ]
  %69 = load i32, ptr %66, align 8, !tbaa !25
  call void @qh_memfree(ptr noundef nonnull %0, ptr noundef nonnull %68, i32 noundef %69) #5
  %.071 = getelementptr inbounds i8, ptr %.071111, i64 8
  %70 = load ptr, ptr %.071, align 8, !tbaa !5
  %.not90 = icmp eq ptr %70, null
  br i1 %.not90, label %.loopexit102, label %67, !llvm.loop !26

.loopexit102:                                     ; preds = %67, %.preheader101, %63
  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
  %71 = getelementptr inbounds i8, ptr %0, i64 84
  %72 = load i32, ptr %71, align 4, !tbaa !27
  %.not91 = icmp eq i32 %72, 0
  br i1 %.not91, label %73, label %76

73:                                               ; preds = %.loopexit102
  %74 = getelementptr inbounds i8, ptr %0, i64 416
  %75 = load i32, ptr %74, align 8, !tbaa !28
  %.not92 = icmp eq i32 %75, 0
  br i1 %.not92, label %.loopexit, label %76

76:                                               ; preds = %73, %.loopexit102
  %77 = getelementptr inbounds i8, ptr %2, i64 112
  %78 = load i32, ptr %77, align 8
  %79 = and i32 %78, 2048
  %.not93 = icmp eq i32 %79, 0
  br i1 %.not93, label %83, label %80

80:                                               ; preds = %76
  %81 = getelementptr inbounds i8, ptr %0, i64 2704
  %82 = load i32, ptr %81, align 8, !tbaa !29
  %.not94 = icmp eq i32 %82, 0
  br i1 %.not94, label %83, label %.loopexit

83:                                               ; preds = %80, %76
  %84 = getelementptr inbounds i8, ptr %0, i64 2784
  %85 = load i32, ptr %84, align 8, !tbaa !30
  %86 = getelementptr inbounds i8, ptr %2, i64 104
  store i32 %85, ptr %86, align 8, !tbaa !31
  %87 = getelementptr inbounds i8, ptr %2, i64 72
  %88 = load ptr, ptr %87, align 8, !tbaa !33
  %.not95 = icmp eq ptr %88, null
  br i1 %.not95, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %83
  %.070113 = getelementptr inbounds i8, ptr %88, i64 8
  %89 = load ptr, ptr %.070113, align 8, !tbaa !5
  %.not97114 = icmp eq ptr %89, null
  br i1 %.not97114, label %.loopexit, label %.lr.ph116

.lr.ph116:                                        ; preds = %.preheader
  %90 = getelementptr inbounds i8, ptr %0, i64 416
  br label %91

91:                                               ; preds = %.lr.ph116, %120
  %92 = phi ptr [ %89, %.lr.ph116 ], [ %121, %120 ]
  %.070115 = phi ptr [ %.070113, %.lr.ph116 ], [ %.070, %120 ]
  %93 = getelementptr inbounds i8, ptr %92, i64 8
  %94 = load ptr, ptr %93, align 8, !tbaa !34
  %95 = icmp eq ptr %94, %2
  br i1 %95, label %96, label %99

96:                                               ; preds = %91
  %97 = getelementptr inbounds i8, ptr %92, i64 16
  %98 = load ptr, ptr %97, align 8, !tbaa !36
  br label %99

99:                                               ; preds = %91, %96
  %100 = phi ptr [ %98, %96 ], [ %94, %91 ]
  %101 = getelementptr inbounds i8, ptr %100, i64 104
  %102 = load i32, ptr %101, align 8, !tbaa !31
  %103 = load i32, ptr %84, align 8, !tbaa !30
  %.not98 = icmp eq i32 %102, %103
  br i1 %.not98, label %120, label %104

104:                                              ; preds = %99
  %105 = load i32, ptr %71, align 4, !tbaa !27
  %.not99 = icmp eq i32 %105, 0
  br i1 %.not99, label %108, label %106

106:                                              ; preds = %104
  %107 = load ptr, ptr %92, align 8, !tbaa !37
  call void @qh_printhyperplaneintersection(ptr noundef nonnull %0, ptr noundef %1, ptr noundef %2, ptr noundef nonnull %100, ptr noundef %107, ptr noundef nonnull %10)
  br label %108

108:                                              ; preds = %106, %104
  %109 = load i32, ptr %90, align 8, !tbaa !28
  %.not100 = icmp eq i32 %109, 0
  br i1 %.not100, label %120, label %110

110:                                              ; preds = %108
  %111 = load ptr, ptr %92, align 8, !tbaa !37
  %112 = getelementptr inbounds i8, ptr %111, i64 8
  %113 = load ptr, ptr %112, align 8, !tbaa !9
  %114 = getelementptr inbounds i8, ptr %111, i64 16
  %115 = load ptr, ptr %114, align 8, !tbaa !9
  %116 = getelementptr inbounds i8, ptr %113, i64 16
  %117 = load ptr, ptr %116, align 8, !tbaa !10
  %118 = getelementptr inbounds i8, ptr %115, i64 16
  %119 = load ptr, ptr %118, align 8, !tbaa !10
  call void @qh_printline3geom(ptr noundef nonnull %0, ptr noundef %1, ptr noundef %117, ptr noundef %119, ptr noundef nonnull %11)
  br label %120

120:                                              ; preds = %108, %110, %99
  %.070 = getelementptr inbounds i8, ptr %.070115, i64 8
  %121 = load ptr, ptr %.070, align 8, !tbaa !5
  %.not97 = icmp eq ptr %121, null
  br i1 %.not97, label %.loopexit, label %91, !llvm.loop !38

.loopexit:                                        ; preds = %120, %.preheader, %83, %80, %73
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 8, 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
}

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

; 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

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


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