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

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.qhT = type { i32, i32, i32, i32, i32, i32, double, i32, i32, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, i32, i32, ptr, i32, i32, ptr, i32, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, double, double, i32, i32, double, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [29 x i32], i32, i32, i32, i32, i32, i32, i32, i32, double, double, double, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, double, i32, i32, i32, i32, i32, i32, i32, i32, double, i32, ptr, ptr, i32, i32, i32, i32, i32, ptr, i32, ptr, i32, [256 x i8], i32, [256 x i8], [512 x i8], i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, double, double, double, double, double, double, double, double, double, double, double, double, double, double, ptr, double, double, double, double, i32, [6 x i8], [1 x %struct.__jmp_buf_tag], [40 x i8], [1 x %struct.__jmp_buf_tag], [40 x i8], ptr, ptr, ptr, ptr, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, i32, i32, ptr, i32, ptr, i32, ptr, ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i64, i32, i32, i32, i32, i32, ptr, ptr, i32, i32, i32, double, i32, double, double, double, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, ptr, ptr, i32, i32, i32, ptr, double, double, double, double, i32, i32, i32, i32, i32, i32, ptr, ptr, i32 }
%struct.__jmp_buf_tag = type { [8 x i64], i32, %struct.__sigset_t }
%struct.__sigset_t = type { [16 x i64] }
%struct.qhstatT = type { [249 x %union.intrealT], [259 x i8], [249 x ptr], [249 x i16], [249 x i8], [249 x i8], [9 x %union.intrealT], i32, i32, i32, i32, double }
%union.intrealT = type { double }
%struct.facetT = type { double, double, double, ptr, %union.anon, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, i32 }
%union.anon = type { double }
%struct.setT = type { i32, [1 x %union.setelemT] }
%union.setelemT = type { ptr }

@qh_qh = external global %struct.qhT, align 8
@qh_qhstat = external global %struct.qhstatT, align 8
@.str.18 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.89 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.90 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.91 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.92 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.93 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.94 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.95 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.96 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.97 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.98 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.99 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.100 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.101 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.102 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.103 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.104 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.105 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.106 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.107 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.108 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.109 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.110 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.111 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.112 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.113 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.114 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.115 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.116 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.117 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.118 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.119 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.120 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.121 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.122 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.123 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.124 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.125 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.126 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.127 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.128 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.129 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.130 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.131 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.132 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.133 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.134 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.135 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.136 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.137 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.138 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.139 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.140 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.141 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.142 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.143 = external hidden unnamed_addr constant [5 x i8], align 1

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

declare i32 @qh_setsize(ptr noundef) #1

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

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

declare i32 @qh_pointid(ptr noundef) #1

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

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

; Function Attrs: nounwind uwtable
define dso_local void @qh_printfacetheader(ptr noundef %0, ptr noundef %1) #2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca double, align 8
  %11 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  %12 = load ptr, ptr %4, align 8, !tbaa !5
  %13 = icmp eq ptr %12, inttoptr (i64 2 to ptr)
  br i1 %13, label %14, label %16

14:                                               ; preds = %2
  %15 = load ptr, ptr %3, align 8, !tbaa !5
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %15, i32 noundef 9133, ptr noundef @.str.89)
  store i32 1, ptr %11, align 4
  br label %596

16:                                               ; preds = %2
  %17 = load ptr, ptr %4, align 8, !tbaa !5
  %18 = icmp eq ptr %17, inttoptr (i64 1 to ptr)
  br i1 %18, label %19, label %21

19:                                               ; preds = %16
  %20 = load ptr, ptr %3, align 8, !tbaa !5
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %20, i32 noundef 9134, ptr noundef @.str.90)
  store i32 1, ptr %11, align 4
  br label %596

21:                                               ; preds = %16
  %22 = load ptr, ptr %4, align 8, !tbaa !5
  %23 = icmp ne ptr %22, null
  br i1 %23, label %26, label %24

24:                                               ; preds = %21
  %25 = load ptr, ptr %3, align 8, !tbaa !5
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %25, i32 noundef 9135, ptr noundef @.str.91)
  store i32 1, ptr %11, align 4
  br label %596

26:                                               ; preds = %21
  br label %27

27:                                               ; preds = %26
  br label %28

28:                                               ; preds = %27
  %29 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 72), align 4, !tbaa !9
  store i32 %29, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 235), align 8, !tbaa !14
  store i32 0, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 72), align 4, !tbaa !9
  %30 = load ptr, ptr %3, align 8, !tbaa !5
  %31 = load ptr, ptr %4, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.facetT, ptr %31, i32 0, i32 14
  %33 = load i32, ptr %32, align 4, !tbaa !15
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %30, i32 noundef 9136, ptr noundef @.str.92, i32 noundef %33)
  %34 = load ptr, ptr %3, align 8, !tbaa !5
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %34, i32 noundef 9137, ptr noundef @.str.93)
  %35 = load ptr, ptr %4, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.facetT, ptr %35, i32 0, i32 15
  %37 = load i32, ptr %36, align 8
  %38 = lshr i32 %37, 12
  %39 = and i32 %38, 1
  %40 = icmp ne i32 %39, 0
  br i1 %40, label %41, label %43

41:                                               ; preds = %28
  %42 = load ptr, ptr %3, align 8, !tbaa !5
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %42, i32 noundef 9138, ptr noundef @.str.94)
  br label %45

43:                                               ; preds = %28
  %44 = load ptr, ptr %3, align 8, !tbaa !5
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %44, i32 noundef 9139, ptr noundef @.str.95)
  br label %45

45:                                               ; preds = %43, %41
  %46 = load ptr, ptr %4, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.facetT, ptr %46, i32 0, i32 15
  %48 = load i32, ptr %47, align 8
  %49 = lshr i32 %48, 13
  %50 = and i32 %49, 1
  %51 = icmp ne i32 %50, 0
  br i1 %51, label %52, label %54

52:                                               ; preds = %45
  %53 = load ptr, ptr %3, align 8, !tbaa !5
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %53, i32 noundef 9140, ptr noundef @.str.96)
  br label %54

54:                                               ; preds = %52, %45
  %55 = load ptr, ptr %4, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.facetT, ptr %55, i32 0, i32 15
  %57 = load i32, ptr %56, align 8
  %58 = lshr i32 %57, 9
  %59 = and i32 %58, 1
  %60 = icmp ne i32 %59, 0
  br i1 %60, label %61, label %63

61:                                               ; preds = %54
  %62 = load ptr, ptr %3, align 8, !tbaa !5
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %62, i32 noundef 9141, ptr noundef @.str.97)
  br label %63

63:                                               ; preds = %61, %54
  %64 = load ptr, ptr %4, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.facetT, ptr %64, i32 0, i32 15
  %66 = load i32, ptr %65, align 8
  %67 = lshr i32 %66, 17
  %68 = and i32 %67, 1
  %69 = icmp ne i32 %68, 0
  br i1 %69, label %70, label %72

70:                                               ; preds = %63
  %71 = load ptr, ptr %3, align 8, !tbaa !5
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %71, i32 noundef 9142, ptr noundef @.str.98)
  br label %72

72:                                               ; preds = %70, %63
  %73 = load ptr, ptr %4, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.facetT, ptr %73, i32 0, i32 15
  %75 = load i32, ptr %74, align 8
  %76 = lshr i32 %75, 11
  %77 = and i32 %76, 1
  %78 = icmp ne i32 %77, 0
  br i1 %78, label %79, label %81

79:                                               ; preds = %72
  %80 = load ptr, ptr %3, align 8, !tbaa !5
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %80, i32 noundef 9143, ptr noundef @.str.99)
  br label %81

81:                                               ; preds = %79, %72
  %82 = load ptr, ptr %4, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.facetT, ptr %82, i32 0, i32 15
  %84 = load i32, ptr %83, align 8
  %85 = lshr i32 %84, 10
  %86 = and i32 %85, 1
  %87 = icmp ne i32 %86, 0
  br i1 %87, label %88, label %90

88:                                               ; preds = %81
  %89 = load ptr, ptr %3, align 8, !tbaa !5
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %89, i32 noundef 9144, ptr noundef @.str.100)
  br label %90

90:                                               ; preds = %88, %81
  %91 = load ptr, ptr %4, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.facetT, ptr %91, i32 0, i32 15
  %93 = load i32, ptr %92, align 8
  %94 = lshr i32 %93, 27
  %95 = and i32 %94, 1
  %96 = icmp ne i32 %95, 0
  br i1 %96, label %97, label %99

97:                                               ; preds = %90
  %98 = load ptr, ptr %3, align 8, !tbaa !5
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %98, i32 noundef 9145, ptr noundef @.str.101)
  br label %99

99:                                               ; preds = %97, %90
  %100 = load ptr, ptr %4, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.facetT, ptr %100, i32 0, i32 15
  %102 = load i32, ptr %101, align 8
  %103 = lshr i32 %102, 19
  %104 = and i32 %103, 1
  %105 = icmp ne i32 %104, 0
  br i1 %105, label %108, label %106

106:                                              ; preds = %99
  %107 = load ptr, ptr %3, align 8, !tbaa !5
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %107, i32 noundef 9146, ptr noundef @.str.102)
  br label %108

108:                                              ; preds = %106, %99
  %109 = load ptr, ptr %4, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.facetT, ptr %109, i32 0, i32 15
  %111 = load i32, ptr %110, align 8
  %112 = lshr i32 %111, 14
  %113 = and i32 %112, 1
  %114 = icmp ne i32 %113, 0
  br i1 %114, label %115, label %120

115:                                              ; preds = %108
  %116 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !17
  %117 = icmp ne i32 %116, 0
  br i1 %117, label %118, label %120

118:                                              ; preds = %115
  %119 = load ptr, ptr %3, align 8, !tbaa !5
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %119, i32 noundef 9147, ptr noundef @.str.103)
  br label %120

120:                                              ; preds = %118, %115, %108
  %121 = load ptr, ptr %4, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.facetT, ptr %121, i32 0, i32 15
  %123 = load i32, ptr %122, align 8
  %124 = lshr i32 %123, 15
  %125 = and i32 %124, 1
  %126 = icmp ne i32 %125, 0
  br i1 %126, label %127, label %132

127:                                              ; preds = %120
  %128 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !17
  %129 = icmp ne i32 %128, 0
  br i1 %129, label %130, label %132

130:                                              ; preds = %127
  %131 = load ptr, ptr %3, align 8, !tbaa !5
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %131, i32 noundef 9418, ptr noundef @.str.104)
  br label %132

132:                                              ; preds = %130, %127, %120
  %133 = load ptr, ptr %4, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.facetT, ptr %133, i32 0, i32 15
  %135 = load i32, ptr %134, align 8
  %136 = lshr i32 %135, 20
  %137 = and i32 %136, 1
  %138 = icmp ne i32 %137, 0
  br i1 %138, label %139, label %141

139:                                              ; preds = %132
  %140 = load ptr, ptr %3, align 8, !tbaa !5
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %140, i32 noundef 9419, ptr noundef @.str.105)
  br label %141

141:                                              ; preds = %139, %132
  %142 = load ptr, ptr %4, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.facetT, ptr %142, i32 0, i32 15
  %144 = load i32, ptr %143, align 8
  %145 = lshr i32 %144, 24
  %146 = and i32 %145, 1
  %147 = icmp ne i32 %146, 0
  br i1 %147, label %148, label %150

148:                                              ; preds = %141
  %149 = load ptr, ptr %3, align 8, !tbaa !5
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %149, i32 noundef 9148, ptr noundef @.str.106)
  br label %150

150:                                              ; preds = %148, %141
  %151 = load ptr, ptr %4, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct.facetT, ptr %151, i32 0, i32 15
  %153 = load i32, ptr %152, align 8
  %154 = lshr i32 %153, 25
  %155 = and i32 %154, 1
  %156 = icmp ne i32 %155, 0
  br i1 %156, label %157, label %159

157:                                              ; preds = %150
  %158 = load ptr, ptr %3, align 8, !tbaa !5
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %158, i32 noundef 9149, ptr noundef @.str.107)
  br label %159

159:                                              ; preds = %157, %150
  %160 = load ptr, ptr %4, align 8, !tbaa !5
  %161 = getelementptr inbounds %struct.facetT, ptr %160, i32 0, i32 15
  %162 = load i32, ptr %161, align 8
  %163 = lshr i32 %162, 26
  %164 = and i32 %163, 1
  %165 = icmp ne i32 %164, 0
  br i1 %165, label %166, label %168

166:                                              ; preds = %159
  %167 = load ptr, ptr %3, align 8, !tbaa !5
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %167, i32 noundef 9420, ptr noundef @.str.108)
  br label %168

168:                                              ; preds = %166, %159
  %169 = load ptr, ptr %4, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.facetT, ptr %169, i32 0, i32 15
  %171 = load i32, ptr %170, align 8
  %172 = lshr i32 %171, 28
  %173 = and i32 %172, 1
  %174 = icmp ne i32 %173, 0
  br i1 %174, label %175, label %177

175:                                              ; preds = %168
  %176 = load ptr, ptr %3, align 8, !tbaa !5
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %176, i32 noundef 9150, ptr noundef @.str.109)
  br label %177

177:                                              ; preds = %175, %168
  %178 = load ptr, ptr %4, align 8, !tbaa !5
  %179 = getelementptr inbounds %struct.facetT, ptr %178, i32 0, i32 15
  %180 = load i32, ptr %179, align 8
  %181 = lshr i32 %180, 21
  %182 = and i32 %181, 1
  %183 = icmp ne i32 %182, 0
  br i1 %183, label %184, label %186

184:                                              ; preds = %177
  %185 = load ptr, ptr %3, align 8, !tbaa !5
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %185, i32 noundef 9151, ptr noundef @.str.110)
  br label %186

186:                                              ; preds = %184, %177
  %187 = load ptr, ptr %4, align 8, !tbaa !5
  %188 = getelementptr inbounds %struct.facetT, ptr %187, i32 0, i32 15
  %189 = load i32, ptr %188, align 8
  %190 = lshr i32 %189, 22
  %191 = and i32 %190, 1
  %192 = icmp ne i32 %191, 0
  br i1 %192, label %193, label %202

193:                                              ; preds = %186
  %194 = load ptr, ptr %4, align 8, !tbaa !5
  %195 = getelementptr inbounds %struct.facetT, ptr %194, i32 0, i32 15
  %196 = load i32, ptr %195, align 8
  %197 = lshr i32 %196, 23
  %198 = and i32 %197, 1
  %199 = icmp ne i32 %198, 0
  br i1 %199, label %202, label %200

200:                                              ; preds = %193
  %201 = load ptr, ptr %3, align 8, !tbaa !5
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %201, i32 noundef 9152, ptr noundef @.str.111)
  br label %202

202:                                              ; preds = %200, %193, %186
  %203 = load ptr, ptr %4, align 8, !tbaa !5
  %204 = getelementptr inbounds %struct.facetT, ptr %203, i32 0, i32 15
  %205 = load i32, ptr %204, align 8
  %206 = lshr i32 %205, 23
  %207 = and i32 %206, 1
  %208 = icmp ne i32 %207, 0
  br i1 %208, label %209, label %211

209:                                              ; preds = %202
  %210 = load ptr, ptr %3, align 8, !tbaa !5
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %210, i32 noundef 9153, ptr noundef @.str.112)
  br label %211

211:                                              ; preds = %209, %202
  %212 = load ptr, ptr %4, align 8, !tbaa !5
  %213 = getelementptr inbounds %struct.facetT, ptr %212, i32 0, i32 15
  %214 = load i32, ptr %213, align 8
  %215 = lshr i32 %214, 29
  %216 = and i32 %215, 1
  %217 = icmp ne i32 %216, 0
  br i1 %217, label %218, label %220

218:                                              ; preds = %211
  %219 = load ptr, ptr %3, align 8, !tbaa !5
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %219, i32 noundef 9154, ptr noundef @.str.113)
  br label %220

220:                                              ; preds = %218, %211
  %221 = load ptr, ptr %4, align 8, !tbaa !5
  %222 = getelementptr inbounds %struct.facetT, ptr %221, i32 0, i32 15
  %223 = load i32, ptr %222, align 8
  %224 = lshr i32 %223, 16
  %225 = and i32 %224, 1
  %226 = icmp ne i32 %225, 0
  br i1 %226, label %227, label %229

227:                                              ; preds = %220
  %228 = load ptr, ptr %3, align 8, !tbaa !5
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %228, i32 noundef 9155, ptr noundef @.str.114)
  br label %229

229:                                              ; preds = %227, %220
  %230 = load ptr, ptr %4, align 8, !tbaa !5
  %231 = getelementptr inbounds %struct.facetT, ptr %230, i32 0, i32 15
  %232 = load i32, ptr %231, align 8
  %233 = lshr i32 %232, 18
  %234 = and i32 %233, 1
  %235 = icmp ne i32 %234, 0
  br i1 %235, label %236, label %238

236:                                              ; preds = %229
  %237 = load ptr, ptr %3, align 8, !tbaa !5
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %237, i32 noundef 9156, ptr noundef @.str.115)
  br label %238

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

245:                                              ; preds = %238
  %246 = load ptr, ptr %3, align 8, !tbaa !5
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %246, i32 noundef 9157, ptr noundef @.str.116)
  br label %247

247:                                              ; preds = %245, %238
  %248 = load ptr, ptr %4, align 8, !tbaa !5
  %249 = getelementptr inbounds %struct.facetT, ptr %248, i32 0, i32 15
  %250 = load i32, ptr %249, align 8
  %251 = lshr i32 %250, 31
  %252 = icmp ne i32 %251, 0
  br i1 %252, label %253, label %255

253:                                              ; preds = %247
  %254 = load ptr, ptr %3, align 8, !tbaa !5
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %254, i32 noundef 9158, ptr noundef @.str.117)
  br label %255

255:                                              ; preds = %253, %247
  %256 = load ptr, ptr %3, align 8, !tbaa !5
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %256, i32 noundef 9159, ptr noundef @.str.18)
  %257 = load ptr, ptr %4, align 8, !tbaa !5
  %258 = getelementptr inbounds %struct.facetT, ptr %257, i32 0, i32 15
  %259 = load i32, ptr %258, align 8
  %260 = lshr i32 %259, 20
  %261 = and i32 %260, 1
  %262 = icmp ne i32 %261, 0
  br i1 %262, label %263, label %268

263:                                              ; preds = %255
  %264 = load ptr, ptr %3, align 8, !tbaa !5
  %265 = load ptr, ptr %4, align 8, !tbaa !5
  %266 = getelementptr inbounds %struct.facetT, ptr %265, i32 0, i32 4
  %267 = load double, ptr %266, align 8, !tbaa !18
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %264, i32 noundef 9160, ptr noundef @.str.118, double noundef %267)
  br label %352

268:                                              ; preds = %255
  %269 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 202), align 8, !tbaa !19
  %270 = icmp ne i32 %269, 0
  br i1 %270, label %271, label %290

271:                                              ; preds = %268
  %272 = load ptr, ptr %4, align 8, !tbaa !5
  %273 = getelementptr inbounds %struct.facetT, ptr %272, i32 0, i32 15
  %274 = load i32, ptr %273, align 8
  %275 = lshr i32 %274, 11
  %276 = and i32 %275, 1
  %277 = icmp ne i32 %276, 0
  br i1 %277, label %278, label %290

278:                                              ; preds = %271
  %279 = load ptr, ptr %4, align 8, !tbaa !5
  %280 = getelementptr inbounds %struct.facetT, ptr %279, i32 0, i32 4
  %281 = load ptr, ptr %280, align 8, !tbaa !18
  %282 = icmp ne ptr %281, null
  br i1 %282, label %283, label %290

283:                                              ; preds = %278
  %284 = load ptr, ptr %3, align 8, !tbaa !5
  %285 = load ptr, ptr %4, align 8, !tbaa !5
  %286 = getelementptr inbounds %struct.facetT, ptr %285, i32 0, i32 4
  %287 = load ptr, ptr %286, align 8, !tbaa !18
  %288 = getelementptr inbounds %struct.facetT, ptr %287, i32 0, i32 14
  %289 = load i32, ptr %288, align 4, !tbaa !15
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %284, i32 noundef 9161, ptr noundef @.str.119, i32 noundef %289)
  br label %351

290:                                              ; preds = %278, %271, %268
  %291 = load ptr, ptr %4, align 8, !tbaa !5
  %292 = getelementptr inbounds %struct.facetT, ptr %291, i32 0, i32 15
  %293 = load i32, ptr %292, align 8
  %294 = lshr i32 %293, 10
  %295 = and i32 %294, 1
  %296 = icmp ne i32 %295, 0
  br i1 %296, label %297, label %316

297:                                              ; preds = %290
  %298 = load ptr, ptr %4, align 8, !tbaa !5
  %299 = getelementptr inbounds %struct.facetT, ptr %298, i32 0, i32 4
  %300 = load ptr, ptr %299, align 8, !tbaa !18
  %301 = icmp ne ptr %300, null
  br i1 %301, label %302, label %315

302:                                              ; preds = %297
  %303 = load ptr, ptr %4, align 8, !tbaa !5
  %304 = getelementptr inbounds %struct.facetT, ptr %303, i32 0, i32 4
  %305 = load ptr, ptr %304, align 8, !tbaa !18
  %306 = load ptr, ptr %4, align 8, !tbaa !5
  %307 = icmp ne ptr %305, %306
  br i1 %307, label %308, label %315

308:                                              ; preds = %302
  %309 = load ptr, ptr %3, align 8, !tbaa !5
  %310 = load ptr, ptr %4, align 8, !tbaa !5
  %311 = getelementptr inbounds %struct.facetT, ptr %310, i32 0, i32 4
  %312 = load ptr, ptr %311, align 8, !tbaa !18
  %313 = getelementptr inbounds %struct.facetT, ptr %312, i32 0, i32 14
  %314 = load i32, ptr %313, align 4, !tbaa !15
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %309, i32 noundef 9162, ptr noundef @.str.120, i32 noundef %314)
  br label %315

315:                                              ; preds = %308, %302, %297
  br label %350

316:                                              ; preds = %290
  %317 = load ptr, ptr %4, align 8, !tbaa !5
  %318 = getelementptr inbounds %struct.facetT, ptr %317, i32 0, i32 15
  %319 = load i32, ptr %318, align 8
  %320 = lshr i32 %319, 9
  %321 = and i32 %320, 1
  %322 = icmp ne i32 %321, 0
  br i1 %322, label %323, label %336

323:                                              ; preds = %316
  %324 = load ptr, ptr %4, align 8, !tbaa !5
  %325 = getelementptr inbounds %struct.facetT, ptr %324, i32 0, i32 4
  %326 = load ptr, ptr %325, align 8, !tbaa !18
  %327 = icmp ne ptr %326, null
  br i1 %327, label %328, label %335

328:                                              ; preds = %323
  %329 = load ptr, ptr %3, align 8, !tbaa !5
  %330 = load ptr, ptr %4, align 8, !tbaa !5
  %331 = getelementptr inbounds %struct.facetT, ptr %330, i32 0, i32 4
  %332 = load ptr, ptr %331, align 8, !tbaa !18
  %333 = getelementptr inbounds %struct.facetT, ptr %332, i32 0, i32 14
  %334 = load i32, ptr %333, align 4, !tbaa !15
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %329, i32 noundef 9163, ptr noundef @.str.121, i32 noundef %334)
  br label %335

335:                                              ; preds = %328, %323
  br label %349

336:                                              ; preds = %316
  %337 = load ptr, ptr %4, align 8, !tbaa !5
  %338 = getelementptr inbounds %struct.facetT, ptr %337, i32 0, i32 4
  %339 = load ptr, ptr %338, align 8, !tbaa !18
  %340 = icmp ne ptr %339, null
  br i1 %340, label %341, label %348

341:                                              ; preds = %336
  %342 = load ptr, ptr %3, align 8, !tbaa !5
  %343 = load ptr, ptr %4, align 8, !tbaa !5
  %344 = getelementptr inbounds %struct.facetT, ptr %343, i32 0, i32 4
  %345 = load ptr, ptr %344, align 8, !tbaa !18
  %346 = getelementptr inbounds %struct.facetT, ptr %345, i32 0, i32 14
  %347 = load i32, ptr %346, align 4, !tbaa !15
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %342, i32 noundef 9164, ptr noundef @.str.122, i32 noundef %347)
  br label %348

348:                                              ; preds = %341, %336
  br label %349

349:                                              ; preds = %348, %335
  br label %350

350:                                              ; preds = %349, %315
  br label %351

351:                                              ; preds = %350, %283
  br label %352

352:                                              ; preds = %351, %263
  %353 = load ptr, ptr %4, align 8, !tbaa !5
  %354 = getelementptr inbounds %struct.facetT, ptr %353, i32 0, i32 15
  %355 = load i32, ptr %354, align 8
  %356 = and i32 %355, 511
  %357 = icmp eq i32 %356, 511
  br i1 %357, label %358, label %360

358:                                              ; preds = %352
  %359 = load ptr, ptr %3, align 8, !tbaa !5
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %359, i32 noundef 9427, ptr noundef @.str.123, i32 noundef 511)
  br label %373

360:                                              ; preds = %352
  %361 = load ptr, ptr %4, align 8, !tbaa !5
  %362 = getelementptr inbounds %struct.facetT, ptr %361, i32 0, i32 15
  %363 = load i32, ptr %362, align 8
  %364 = and i32 %363, 511
  %365 = icmp ne i32 %364, 0
  br i1 %365, label %366, label %372

366:                                              ; preds = %360
  %367 = load ptr, ptr %3, align 8, !tbaa !5
  %368 = load ptr, ptr %4, align 8, !tbaa !5
  %369 = getelementptr inbounds %struct.facetT, ptr %368, i32 0, i32 15
  %370 = load i32, ptr %369, align 8
  %371 = and i32 %370, 511
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %367, i32 noundef 9165, ptr noundef @.str.124, i32 noundef %371)
  br label %372

372:                                              ; preds = %366, %360
  br label %373

373:                                              ; preds = %372, %358
  %374 = load ptr, ptr %3, align 8, !tbaa !5
  %375 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 110), align 8, !tbaa !20
  %376 = load ptr, ptr %4, align 8, !tbaa !5
  %377 = getelementptr inbounds %struct.facetT, ptr %376, i32 0, i32 3
  %378 = load ptr, ptr %377, align 8, !tbaa !21
  call void @qh_printpointid(ptr noundef %374, ptr noundef @.str.125, i32 noundef %375, ptr noundef %378, i32 noundef -1)
  %379 = load ptr, ptr %3, align 8, !tbaa !5
  %380 = load ptr, ptr %4, align 8, !tbaa !5
  %381 = getelementptr inbounds %struct.facetT, ptr %380, i32 0, i32 2
  %382 = load double, ptr %381, align 8, !tbaa !22
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %379, i32 noundef 9166, ptr noundef @.str.126, double noundef %382)
  %383 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 189), align 8, !tbaa !23
  %384 = icmp eq i32 %383, 1
  br i1 %384, label %390, label %385

385:                                              ; preds = %373
  %386 = load ptr, ptr %4, align 8, !tbaa !5
  %387 = getelementptr inbounds %struct.facetT, ptr %386, i32 0, i32 5
  %388 = load ptr, ptr %387, align 8, !tbaa !24
  %389 = icmp ne ptr %388, null
  br i1 %389, label %390, label %393

390:                                              ; preds = %385, %373
  %391 = load ptr, ptr %3, align 8, !tbaa !5
  %392 = load ptr, ptr %4, align 8, !tbaa !5
  call void @qh_printcenter(ptr noundef %391, i32 noundef 5, ptr noundef @.str.127, ptr noundef %392)
  br label %393

393:                                              ; preds = %390, %385
  %394 = load ptr, ptr %4, align 8, !tbaa !5
  %395 = getelementptr inbounds %struct.facetT, ptr %394, i32 0, i32 1
  %396 = load double, ptr %395, align 8, !tbaa !25
  %397 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 134), align 8, !tbaa !26
  %398 = fcmp ogt double %396, %397
  br i1 %398, label %399, label %404

399:                                              ; preds = %393
  %400 = load ptr, ptr %3, align 8, !tbaa !5
  %401 = load ptr, ptr %4, align 8, !tbaa !5
  %402 = getelementptr inbounds %struct.facetT, ptr %401, i32 0, i32 1
  %403 = load double, ptr %402, align 8, !tbaa !25
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %400, i32 noundef 9167, ptr noundef @.str.128, double noundef %403)
  br label %404

404:                                              ; preds = %399, %393
  %405 = load ptr, ptr %4, align 8, !tbaa !5
  %406 = getelementptr inbounds %struct.facetT, ptr %405, i32 0, i32 11
  %407 = load ptr, ptr %406, align 8, !tbaa !27
  %408 = icmp ne ptr %407, null
  br i1 %408, label %409, label %478

409:                                              ; preds = %404
  %410 = load ptr, ptr %4, align 8, !tbaa !5
  %411 = getelementptr inbounds %struct.facetT, ptr %410, i32 0, i32 11
  %412 = load ptr, ptr %411, align 8, !tbaa !27
  %413 = getelementptr inbounds %struct.setT, ptr %412, i32 0, i32 1
  %414 = getelementptr inbounds [1 x %union.setelemT], ptr %413, i64 0, i64 0
  %415 = load ptr, ptr %414, align 8, !tbaa !18
  %416 = icmp ne ptr %415, null
  br i1 %416, label %417, label %418

417:                                              ; preds = %409
  br i1 false, label %478, label %419

418:                                              ; preds = %409
  br i1 true, label %478, label %419

419:                                              ; preds = %418, %417
  %420 = load ptr, ptr %4, align 8, !tbaa !5
  %421 = getelementptr inbounds %struct.facetT, ptr %420, i32 0, i32 11
  %422 = load ptr, ptr %421, align 8, !tbaa !27
  %423 = call ptr @qh_setlast(ptr noundef %422)
  store ptr %423, ptr %7, align 8, !tbaa !5
  %424 = load ptr, ptr %4, align 8, !tbaa !5
  %425 = getelementptr inbounds %struct.facetT, ptr %424, i32 0, i32 11
  %426 = load ptr, ptr %425, align 8, !tbaa !27
  %427 = call i32 @qh_setsize(ptr noundef %426)
  %428 = icmp slt i32 %427, 6
  br i1 %428, label %429, label %453

429:                                              ; preds = %419
  %430 = load ptr, ptr %3, align 8, !tbaa !5
  %431 = load ptr, ptr %7, align 8, !tbaa !5
  %432 = call i32 @qh_pointid(ptr noundef %431)
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %430, i32 noundef 9168, ptr noundef @.str.129, i32 noundef %432)
  store ptr null, ptr %5, align 8, !tbaa !5
  %433 = load ptr, ptr %4, align 8, !tbaa !5
  %434 = getelementptr inbounds %struct.facetT, ptr %433, i32 0, i32 11
  %435 = load ptr, ptr %434, align 8, !tbaa !27
  %436 = icmp ne ptr %435, null
  br i1 %436, label %437, label %452

437:                                              ; preds = %429
  %438 = load ptr, ptr %4, align 8, !tbaa !5
  %439 = getelementptr inbounds %struct.facetT, ptr %438, i32 0, i32 11
  %440 = load ptr, ptr %439, align 8, !tbaa !27
  %441 = getelementptr inbounds %struct.setT, ptr %440, i32 0, i32 1
  %442 = getelementptr inbounds [1 x %union.setelemT], ptr %441, i64 0, i64 0
  store ptr %442, ptr %6, align 8, !tbaa !5
  br label %443

443:                                              ; preds = %448, %437
  %444 = load ptr, ptr %6, align 8, !tbaa !5
  %445 = getelementptr inbounds ptr, ptr %444, i32 1
  store ptr %445, ptr %6, align 8, !tbaa !5
  %446 = load ptr, ptr %444, align 8, !tbaa !5
  store ptr %446, ptr %5, align 8, !tbaa !5
  %447 = icmp ne ptr %446, null
  br i1 %447, label %448, label %451

448:                                              ; preds = %443
  %449 = load ptr, ptr %3, align 8, !tbaa !5
  %450 = load ptr, ptr %5, align 8, !tbaa !5
  call void @qh_printpoint(ptr noundef %449, ptr noundef @.str.130, ptr noundef %450)
  br label %443, !llvm.loop !28

451:                                              ; preds = %443
  br label %452

452:                                              ; preds = %451, %429
  br label %473

453:                                              ; preds = %419
  %454 = load ptr, ptr %4, align 8, !tbaa !5
  %455 = getelementptr inbounds %struct.facetT, ptr %454, i32 0, i32 11
  %456 = load ptr, ptr %455, align 8, !tbaa !27
  %457 = call i32 @qh_setsize(ptr noundef %456)
  %458 = icmp slt i32 %457, 21
  br i1 %458, label %459, label %464

459:                                              ; preds = %453
  %460 = load ptr, ptr %3, align 8, !tbaa !5
  %461 = load ptr, ptr %4, align 8, !tbaa !5
  %462 = getelementptr inbounds %struct.facetT, ptr %461, i32 0, i32 11
  %463 = load ptr, ptr %462, align 8, !tbaa !27
  call void @qh_printpoints(ptr noundef %460, ptr noundef @.str.131, ptr noundef %463)
  br label %472

464:                                              ; preds = %453
  %465 = load ptr, ptr %3, align 8, !tbaa !5
  %466 = load ptr, ptr %4, align 8, !tbaa !5
  %467 = getelementptr inbounds %struct.facetT, ptr %466, i32 0, i32 11
  %468 = load ptr, ptr %467, align 8, !tbaa !27
  %469 = call i32 @qh_setsize(ptr noundef %468)
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %465, i32 noundef 9169, ptr noundef @.str.132, i32 noundef %469)
  %470 = load ptr, ptr %3, align 8, !tbaa !5
  %471 = load ptr, ptr %7, align 8, !tbaa !5
  call void @qh_printpoint(ptr noundef %470, ptr noundef @.str.133, ptr noundef %471)
  br label %472

472:                                              ; preds = %464, %459
  br label %473

473:                                              ; preds = %472, %452
  %474 = load ptr, ptr %3, align 8, !tbaa !5
  %475 = load ptr, ptr %4, align 8, !tbaa !5
  %476 = getelementptr inbounds %struct.facetT, ptr %475, i32 0, i32 0
  %477 = load double, ptr %476, align 8, !tbaa !30
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %474, i32 noundef 9170, ptr noundef @.str.134, double noundef %477)
  br label %478

478:                                              ; preds = %473, %418, %417, %404
  %479 = load ptr, ptr %4, align 8, !tbaa !5
  %480 = getelementptr inbounds %struct.facetT, ptr %479, i32 0, i32 12
  %481 = load ptr, ptr %480, align 8, !tbaa !31
  %482 = icmp ne ptr %481, null
  br i1 %482, label %483, label %554

483:                                              ; preds = %478
  %484 = load ptr, ptr %4, align 8, !tbaa !5
  %485 = getelementptr inbounds %struct.facetT, ptr %484, i32 0, i32 12
  %486 = load ptr, ptr %485, align 8, !tbaa !31
  %487 = getelementptr inbounds %struct.setT, ptr %486, i32 0, i32 1
  %488 = getelementptr inbounds [1 x %union.setelemT], ptr %487, i64 0, i64 0
  %489 = load ptr, ptr %488, align 8, !tbaa !18
  %490 = icmp ne ptr %489, null
  br i1 %490, label %491, label %492

491:                                              ; preds = %483
  br i1 false, label %554, label %493

492:                                              ; preds = %483
  br i1 true, label %554, label %493

493:                                              ; preds = %492, %491
  %494 = load ptr, ptr %4, align 8, !tbaa !5
  %495 = getelementptr inbounds %struct.facetT, ptr %494, i32 0, i32 12
  %496 = load ptr, ptr %495, align 8, !tbaa !31
  %497 = call ptr @qh_setlast(ptr noundef %496)
  store ptr %497, ptr %7, align 8, !tbaa !5
  %498 = load ptr, ptr %4, align 8, !tbaa !5
  %499 = getelementptr inbounds %struct.facetT, ptr %498, i32 0, i32 12
  %500 = load ptr, ptr %499, align 8, !tbaa !31
  %501 = call i32 @qh_setsize(ptr noundef %500)
  %502 = icmp slt i32 %501, 6
  br i1 %502, label %503, label %527

503:                                              ; preds = %493
  %504 = load ptr, ptr %3, align 8, !tbaa !5
  %505 = load ptr, ptr %7, align 8, !tbaa !5
  %506 = call i32 @qh_pointid(ptr noundef %505)
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %504, i32 noundef 9171, ptr noundef @.str.135, i32 noundef %506)
  store ptr null, ptr %5, align 8, !tbaa !5
  %507 = load ptr, ptr %4, align 8, !tbaa !5
  %508 = getelementptr inbounds %struct.facetT, ptr %507, i32 0, i32 12
  %509 = load ptr, ptr %508, align 8, !tbaa !31
  %510 = icmp ne ptr %509, null
  br i1 %510, label %511, label %526

511:                                              ; preds = %503
  %512 = load ptr, ptr %4, align 8, !tbaa !5
  %513 = getelementptr inbounds %struct.facetT, ptr %512, i32 0, i32 12
  %514 = load ptr, ptr %513, align 8, !tbaa !31
  %515 = getelementptr inbounds %struct.setT, ptr %514, i32 0, i32 1
  %516 = getelementptr inbounds [1 x %union.setelemT], ptr %515, i64 0, i64 0
  store ptr %516, ptr %6, align 8, !tbaa !5
  br label %517

517:                                              ; preds = %522, %511
  %518 = load ptr, ptr %6, align 8, !tbaa !5
  %519 = getelementptr inbounds ptr, ptr %518, i32 1
  store ptr %519, ptr %6, align 8, !tbaa !5
  %520 = load ptr, ptr %518, align 8, !tbaa !5
  store ptr %520, ptr %5, align 8, !tbaa !5
  %521 = icmp ne ptr %520, null
  br i1 %521, label %522, label %525

522:                                              ; preds = %517
  %523 = load ptr, ptr %3, align 8, !tbaa !5
  %524 = load ptr, ptr %5, align 8, !tbaa !5
  call void @qh_printpoint(ptr noundef %523, ptr noundef @.str.130, ptr noundef %524)
  br label %517, !llvm.loop !32

525:                                              ; preds = %517
  br label %526

526:                                              ; preds = %525, %503
  br label %547

527:                                              ; preds = %493
  %528 = load ptr, ptr %4, align 8, !tbaa !5
  %529 = getelementptr inbounds %struct.facetT, ptr %528, i32 0, i32 12
  %530 = load ptr, ptr %529, align 8, !tbaa !31
  %531 = call i32 @qh_setsize(ptr noundef %530)
  %532 = icmp slt i32 %531, 21
  br i1 %532, label %533, label %538

533:                                              ; preds = %527
  %534 = load ptr, ptr %3, align 8, !tbaa !5
  %535 = load ptr, ptr %4, align 8, !tbaa !5
  %536 = getelementptr inbounds %struct.facetT, ptr %535, i32 0, i32 12
  %537 = load ptr, ptr %536, align 8, !tbaa !31
  call void @qh_printpoints(ptr noundef %534, ptr noundef @.str.136, ptr noundef %537)
  br label %546

538:                                              ; preds = %527
  %539 = load ptr, ptr %3, align 8, !tbaa !5
  %540 = load ptr, ptr %4, align 8, !tbaa !5
  %541 = getelementptr inbounds %struct.facetT, ptr %540, i32 0, i32 12
  %542 = load ptr, ptr %541, align 8, !tbaa !31
  %543 = call i32 @qh_setsize(ptr noundef %542)
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %539, i32 noundef 9172, ptr noundef @.str.137, i32 noundef %543)
  %544 = load ptr, ptr %3, align 8, !tbaa !5
  %545 = load ptr, ptr %7, align 8, !tbaa !5
  call void @qh_printpoint(ptr noundef %544, ptr noundef @.str.133, ptr noundef %545)
  br label %546

546:                                              ; preds = %538, %533
  br label %547

547:                                              ; preds = %546, %526
  %548 = load i32, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 60), align 8, !tbaa !18
  %549 = add nsw i32 %548, 1
  store i32 %549, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 60), align 8, !tbaa !18
  %550 = load ptr, ptr %7, align 8, !tbaa !5
  %551 = load ptr, ptr %4, align 8, !tbaa !5
  call void @qh_distplane(ptr noundef %550, ptr noundef %551, ptr noundef %10)
  %552 = load ptr, ptr %3, align 8, !tbaa !5
  %553 = load double, ptr %10, align 8, !tbaa !33
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %552, i32 noundef 9173, ptr noundef @.str.138, double noundef %553)
  br label %554

554:                                              ; preds = %547, %492, %491, %478
  %555 = load ptr, ptr %3, align 8, !tbaa !5
  %556 = load ptr, ptr %4, align 8, !tbaa !5
  %557 = getelementptr inbounds %struct.facetT, ptr %556, i32 0, i32 8
  %558 = load ptr, ptr %557, align 8, !tbaa !34
  call void @qh_printvertices(ptr noundef %555, ptr noundef @.str.139, ptr noundef %558)
  %559 = load ptr, ptr %3, align 8, !tbaa !5
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %559, i32 noundef 9174, ptr noundef @.str.140)
  store ptr null, ptr %8, align 8, !tbaa !5
  %560 = load ptr, ptr %4, align 8, !tbaa !5
  %561 = getelementptr inbounds %struct.facetT, ptr %560, i32 0, i32 10
  %562 = load ptr, ptr %561, align 8, !tbaa !35
  %563 = icmp ne ptr %562, null
  br i1 %563, label %564, label %593

564:                                              ; preds = %554
  %565 = load ptr, ptr %4, align 8, !tbaa !5
  %566 = getelementptr inbounds %struct.facetT, ptr %565, i32 0, i32 10
  %567 = load ptr, ptr %566, align 8, !tbaa !35
  %568 = getelementptr inbounds %struct.setT, ptr %567, i32 0, i32 1
  %569 = getelementptr inbounds [1 x %union.setelemT], ptr %568, i64 0, i64 0
  store ptr %569, ptr %9, align 8, !tbaa !5
  br label %570

570:                                              ; preds = %591, %564
  %571 = load ptr, ptr %9, align 8, !tbaa !5
  %572 = getelementptr inbounds ptr, ptr %571, i32 1
  store ptr %572, ptr %9, align 8, !tbaa !5
  %573 = load ptr, ptr %571, align 8, !tbaa !5
  store ptr %573, ptr %8, align 8, !tbaa !5
  %574 = icmp ne ptr %573, null
  br i1 %574, label %575, label %592

575:                                              ; preds = %570
  %576 = load ptr, ptr %8, align 8, !tbaa !5
  %577 = icmp eq ptr %576, inttoptr (i64 2 to ptr)
  br i1 %577, label %578, label %580

578:                                              ; preds = %575
  %579 = load ptr, ptr %3, align 8, !tbaa !5
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %579, i32 noundef 9175, ptr noundef @.str.141)
  br label %591

580:                                              ; preds = %575
  %581 = load ptr, ptr %8, align 8, !tbaa !5
  %582 = icmp eq ptr %581, inttoptr (i64 1 to ptr)
  br i1 %582, label %583, label %585

583:                                              ; preds = %580
  %584 = load ptr, ptr %3, align 8, !tbaa !5
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %584, i32 noundef 9176, ptr noundef @.str.142)
  br label %590

585:                                              ; preds = %580
  %586 = load ptr, ptr %3, align 8, !tbaa !5
  %587 = load ptr, ptr %8, align 8, !tbaa !5
  %588 = getelementptr inbounds %struct.facetT, ptr %587, i32 0, i32 14
  %589 = load i32, ptr %588, align 4, !tbaa !15
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %586, i32 noundef 9177, ptr noundef @.str.143, i32 noundef %589)
  br label %590

590:                                              ; preds = %585, %583
  br label %591

591:                                              ; preds = %590, %578
  br label %570, !llvm.loop !36

592:                                              ; preds = %570
  br label %593

593:                                              ; preds = %592, %554
  %594 = load ptr, ptr %3, align 8, !tbaa !5
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %594, i32 noundef 9178, ptr noundef @.str.18)
  %595 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 235), align 8, !tbaa !14
  store i32 %595, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 72), align 4, !tbaa !9
  store i32 0, ptr %11, align 4
  br label %596

596:                                              ; preds = %593, %24, %19, %14
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #3
  %597 = load i32, ptr %11, align 4
  switch i32 %597, label %599 [
    i32 0, label %598
    i32 1, label %598
  ]

598:                                              ; preds = %596, %596
  ret void

599:                                              ; preds = %596
  unreachable
}

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

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

declare ptr @qh_setlast(ptr noundef) #1

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

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


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.qhT = type { i32, i32, i32, i32, i32, i32, double, i32, i32, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, i32, i32, ptr, i32, i32, ptr, i32, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, double, double, i32, i32, double, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [29 x i32], i32, i32, i32, i32, i32, i32, i32, i32, double, double, double, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, double, i32, i32, i32, i32, i32, i32, i32, i32, double, i32, ptr, ptr, i32, i32, i32, i32, i32, ptr, i32, ptr, i32, [256 x i8], i32, [256 x i8], [512 x i8], i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, double, double, double, double, double, double, double, double, double, double, double, double, double, double, ptr, double, double, double, double, i32, [6 x i8], [1 x %struct.__jmp_buf_tag], [40 x i8], [1 x %struct.__jmp_buf_tag], [40 x i8], ptr, ptr, ptr, ptr, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, i32, i32, ptr, i32, ptr, i32, ptr, ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i64, i32, i32, i32, i32, i32, ptr, ptr, i32, i32, i32, double, i32, double, double, double, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, ptr, ptr, i32, i32, i32, ptr, double, double, double, double, i32, i32, i32, i32, i32, i32, ptr, ptr, i32 }
%struct.__jmp_buf_tag = type { [8 x i64], i32, %struct.__sigset_t }
%struct.__sigset_t = type { [16 x i64] }
%struct.qhstatT = type { [249 x %union.intrealT], [259 x i8], [249 x ptr], [249 x i16], [249 x i8], [249 x i8], [9 x %union.intrealT], i32, i32, i32, i32, double }
%union.intrealT = type { double }

@qh_qh = external local_unnamed_addr global %struct.qhT, align 8
@qh_qhstat = external local_unnamed_addr global %struct.qhstatT, align 8
@.str.18 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.89 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.90 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.91 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.92 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.93 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.94 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.95 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.96 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.97 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.98 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.99 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.100 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.101 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.102 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.103 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.104 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.105 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.106 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.107 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.108 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.109 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.110 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.111 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.112 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.113 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.114 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.115 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.116 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.117 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.118 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.119 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.120 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.121 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.122 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.123 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.124 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.125 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.126 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.127 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.128 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.129 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.130 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.131 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.132 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.133 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.134 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.135 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.136 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.137 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.138 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.139 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.140 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.141 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.142 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.143 = external hidden unnamed_addr constant [5 x i8], align 1

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

declare i32 @qh_setsize(ptr noundef) local_unnamed_addr #1

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

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

declare i32 @qh_pointid(ptr noundef) local_unnamed_addr #1

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

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

; Function Attrs: nounwind uwtable
define dso_local void @qh_printfacetheader(ptr noundef %0, ptr noundef %1) local_unnamed_addr #2 {
  %3 = alloca double, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #3
  %magicptr212 = ptrtoint ptr %1 to i64
  switch i64 %magicptr212, label %7 [
    i64 2, label %4
    i64 1, label %5
    i64 0, label %6
  ]

4:                                                ; preds = %2
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, i32 noundef 9133, ptr noundef nonnull @.str.89) #3
  br label %233

5:                                                ; preds = %2
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, i32 noundef 9134, ptr noundef nonnull @.str.90) #3
  br label %233

6:                                                ; preds = %2
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, i32 noundef 9135, ptr noundef nonnull @.str.91) #3
  br label %233

7:                                                ; preds = %2
  %8 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 444), align 4, !tbaa !5
  store i32 %8, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2904), align 8, !tbaa !13
  store i32 0, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 444), align 4, !tbaa !5
  %9 = getelementptr inbounds i8, ptr %1, i64 108
  %10 = load i32, ptr %9, align 4, !tbaa !14
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, i32 noundef 9136, ptr noundef nonnull @.str.92, i32 noundef %10) #3
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, i32 noundef 9137, ptr noundef nonnull @.str.93) #3
  %11 = getelementptr inbounds i8, ptr %1, i64 112
  %12 = load i32, ptr %11, align 8
  %13 = and i32 %12, 4096
  %.not166 = icmp eq i32 %13, 0
  br i1 %.not166, label %15, label %14

14:                                               ; preds = %7
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, i32 noundef 9138, ptr noundef nonnull @.str.94) #3
  br label %16

15:                                               ; preds = %7
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, i32 noundef 9139, ptr noundef nonnull @.str.95) #3
  br label %16

16:                                               ; preds = %15, %14
  %17 = load i32, ptr %11, align 8
  %18 = and i32 %17, 8192
  %.not167 = icmp eq i32 %18, 0
  br i1 %.not167, label %20, label %19

19:                                               ; preds = %16
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, i32 noundef 9140, ptr noundef nonnull @.str.96) #3
  %.pre = load i32, ptr %11, align 8
  br label %20

20:                                               ; preds = %19, %16
  %21 = phi i32 [ %.pre, %19 ], [ %17, %16 ]
  %22 = and i32 %21, 512
  %.not168 = icmp eq i32 %22, 0
  br i1 %.not168, label %24, label %23

23:                                               ; preds = %20
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, i32 noundef 9141, ptr noundef nonnull @.str.97) #3
  %.pre228 = load i32, ptr %11, align 8
  br label %24

24:                                               ; preds = %23, %20
  %25 = phi i32 [ %.pre228, %23 ], [ %21, %20 ]
  %26 = and i32 %25, 131072
  %.not169 = icmp eq i32 %26, 0
  br i1 %.not169, label %28, label %27

27:                                               ; preds = %24
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, i32 noundef 9142, ptr noundef nonnull @.str.98) #3
  %.pre229 = load i32, ptr %11, align 8
  br label %28

28:                                               ; preds = %27, %24
  %29 = phi i32 [ %.pre229, %27 ], [ %25, %24 ]
  %30 = and i32 %29, 2048
  %.not170 = icmp eq i32 %30, 0
  br i1 %.not170, label %32, label %31

31:                                               ; preds = %28
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, i32 noundef 9143, ptr noundef nonnull @.str.99) #3
  %.pre230 = load i32, ptr %11, align 8
  br label %32

32:                                               ; preds = %31, %28
  %33 = phi i32 [ %.pre230, %31 ], [ %29, %28 ]
  %34 = and i32 %33, 1024
  %.not171 = icmp eq i32 %34, 0
  br i1 %.not171, label %36, label %35

35:                                               ; preds = %32
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, i32 noundef 9144, ptr noundef nonnull @.str.100) #3
  %.pre231 = load i32, ptr %11, align 8
  br label %36

36:                                               ; preds = %35, %32
  %37 = phi i32 [ %.pre231, %35 ], [ %33, %32 ]
  %38 = and i32 %37, 134217728
  %.not172 = icmp eq i32 %38, 0
  br i1 %.not172, label %40, label %39

39:                                               ; preds = %36
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, i32 noundef 9145, ptr noundef nonnull @.str.101) #3
  %.pre232 = load i32, ptr %11, align 8
  br label %40

40:                                               ; preds = %39, %36
  %41 = phi i32 [ %.pre232, %39 ], [ %37, %36 ]
  %42 = and i32 %41, 524288
  %.not173 = icmp eq i32 %42, 0
  br i1 %.not173, label %43, label %44

43:                                               ; preds = %40
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, i32 noundef 9146, ptr noundef nonnull @.str.102) #3
  %.pre233 = load i32, ptr %11, align 8
  br label %44

44:                                               ; preds = %43, %40
  %45 = phi i32 [ %.pre233, %43 ], [ %41, %40 ]
  %46 = and i32 %45, 16384
  %47 = icmp ne i32 %46, 0
  %48 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8
  %49 = icmp ne i32 %48, 0
  %or.cond = select i1 %47, i1 %49, i1 false
  br i1 %or.cond, label %50, label %51

50:                                               ; preds = %44
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, i32 noundef 9147, ptr noundef nonnull @.str.103) #3
  %.pre234 = load i32, ptr %11, align 8
  %.pre235 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8
  br label %51

51:                                               ; preds = %50, %44
  %52 = phi i32 [ %.pre235, %50 ], [ %48, %44 ]
  %53 = phi i32 [ %.pre234, %50 ], [ %45, %44 ]
  %54 = and i32 %53, 32768
  %55 = icmp ne i32 %54, 0
  %56 = icmp ne i32 %52, 0
  %or.cond3 = select i1 %55, i1 %56, i1 false
  br i1 %or.cond3, label %57, label %58

57:                                               ; preds = %51
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, i32 noundef 9418, ptr noundef nonnull @.str.104) #3
  %.pre236 = load i32, ptr %11, align 8
  br label %58

58:                                               ; preds = %57, %51
  %59 = phi i32 [ %.pre236, %57 ], [ %53, %51 ]
  %60 = and i32 %59, 1048576
  %.not174 = icmp eq i32 %60, 0
  br i1 %.not174, label %62, label %61

61:                                               ; preds = %58
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, i32 noundef 9419, ptr noundef nonnull @.str.105) #3
  %.pre237 = load i32, ptr %11, align 8
  br label %62

62:                                               ; preds = %61, %58
  %63 = phi i32 [ %.pre237, %61 ], [ %59, %58 ]
  %64 = and i32 %63, 16777216
  %.not175 = icmp eq i32 %64, 0
  br i1 %.not175, label %66, label %65

65:                                               ; preds = %62
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, i32 noundef 9148, ptr noundef nonnull @.str.106) #3
  %.pre238 = load i32, ptr %11, align 8
  br label %66

66:                                               ; preds = %65, %62
  %67 = phi i32 [ %.pre238, %65 ], [ %63, %62 ]
  %68 = and i32 %67, 33554432
  %.not176 = icmp eq i32 %68, 0
  br i1 %.not176, label %70, label %69

69:                                               ; preds = %66
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, i32 noundef 9149, ptr noundef nonnull @.str.107) #3
  %.pre239 = load i32, ptr %11, align 8
  br label %70

70:                                               ; preds = %69, %66
  %71 = phi i32 [ %.pre239, %69 ], [ %67, %66 ]
  %72 = and i32 %71, 67108864
  %.not177 = icmp eq i32 %72, 0
  br i1 %.not177, label %74, label %73

73:                                               ; preds = %70
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, i32 noundef 9420, ptr noundef nonnull @.str.108) #3
  %.pre240 = load i32, ptr %11, align 8
  br label %74

74:                                               ; preds = %73, %70
  %75 = phi i32 [ %.pre240, %73 ], [ %71, %70 ]
  %76 = and i32 %75, 268435456
  %.not178 = icmp eq i32 %76, 0
  br i1 %.not178, label %78, label %77

77:                                               ; preds = %74
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, i32 noundef 9150, ptr noundef nonnull @.str.109) #3
  %.pre241 = load i32, ptr %11, align 8
  br label %78

78:                                               ; preds = %77, %74
  %79 = phi i32 [ %.pre241, %77 ], [ %75, %74 ]
  %80 = and i32 %79, 2097152
  %.not179 = icmp eq i32 %80, 0
  br i1 %.not179, label %82, label %81

81:                                               ; preds = %78
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, i32 noundef 9151, ptr noundef nonnull @.str.110) #3
  %.pre242 = load i32, ptr %11, align 8
  br label %82

82:                                               ; preds = %81, %78
  %83 = phi i32 [ %.pre242, %81 ], [ %79, %78 ]
  %84 = and i32 %83, 12582912
  %or.cond213 = icmp eq i32 %84, 4194304
  br i1 %or.cond213, label %85, label %86

85:                                               ; preds = %82
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, i32 noundef 9152, ptr noundef nonnull @.str.111) #3
  %.pre243 = load i32, ptr %11, align 8
  br label %86

86:                                               ; preds = %85, %82
  %87 = phi i32 [ %.pre243, %85 ], [ %83, %82 ]
  %88 = and i32 %87, 8388608
  %.not182 = icmp eq i32 %88, 0
  br i1 %.not182, label %90, label %89

89:                                               ; preds = %86
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, i32 noundef 9153, ptr noundef nonnull @.str.112) #3
  %.pre244 = load i32, ptr %11, align 8
  br label %90

90:                                               ; preds = %89, %86
  %91 = phi i32 [ %.pre244, %89 ], [ %87, %86 ]
  %92 = and i32 %91, 536870912
  %.not183 = icmp eq i32 %92, 0
  br i1 %.not183, label %94, label %93

93:                                               ; preds = %90
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, i32 noundef 9154, ptr noundef nonnull @.str.113) #3
  %.pre245 = load i32, ptr %11, align 8
  br label %94

94:                                               ; preds = %93, %90
  %95 = phi i32 [ %.pre245, %93 ], [ %91, %90 ]
  %96 = and i32 %95, 65536
  %.not184 = icmp eq i32 %96, 0
  br i1 %.not184, label %98, label %97

97:                                               ; preds = %94
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, i32 noundef 9155, ptr noundef nonnull @.str.114) #3
  %.pre246 = load i32, ptr %11, align 8
  br label %98

98:                                               ; preds = %97, %94
  %99 = phi i32 [ %.pre246, %97 ], [ %95, %94 ]
  %100 = and i32 %99, 262144
  %.not185 = icmp eq i32 %100, 0
  br i1 %.not185, label %102, label %101

101:                                              ; preds = %98
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, i32 noundef 9156, ptr noundef nonnull @.str.115) #3
  %.pre247 = load i32, ptr %11, align 8
  br label %102

102:                                              ; preds = %101, %98
  %103 = phi i32 [ %.pre247, %101 ], [ %99, %98 ]
  %104 = and i32 %103, 1073741824
  %.not186 = icmp eq i32 %104, 0
  br i1 %.not186, label %106, label %105

105:                                              ; preds = %102
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, i32 noundef 9157, ptr noundef nonnull @.str.116) #3
  %.pr = load i32, ptr %11, align 8
  br label %106

106:                                              ; preds = %105, %102
  %107 = phi i32 [ %.pr, %105 ], [ %103, %102 ]
  %.not187 = icmp sgt i32 %107, -1
  br i1 %.not187, label %109, label %108

108:                                              ; preds = %106
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, i32 noundef 9158, ptr noundef nonnull @.str.117) #3
  br label %109

109:                                              ; preds = %108, %106
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, i32 noundef 9159, ptr noundef nonnull @.str.18) #3
  %110 = load i32, ptr %11, align 8
  %111 = and i32 %110, 1048576
  %.not188 = icmp eq i32 %111, 0
  br i1 %.not188, label %115, label %112

112:                                              ; preds = %109
  %113 = getelementptr inbounds i8, ptr %1, i64 32
  %114 = load double, ptr %113, align 8, !tbaa !16
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, i32 noundef 9160, ptr noundef nonnull @.str.118, double noundef %114) #3
  br label %144

115:                                              ; preds = %109
  %116 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2704), align 8, !tbaa !17
  %.not189 = icmp eq i32 %116, 0
  %117 = and i32 %110, 2048
  %.not190 = icmp eq i32 %117, 0
  %or.cond214 = or i1 %.not190, %.not189
  br i1 %or.cond214, label %124, label %118

118:                                              ; preds = %115
  %119 = getelementptr inbounds i8, ptr %1, i64 32
  %120 = load ptr, ptr %119, align 8, !tbaa !16
  %.not191 = icmp eq ptr %120, null
  br i1 %.not191, label %124, label %121

121:                                              ; preds = %118
  %122 = getelementptr inbounds i8, ptr %120, i64 108
  %123 = load i32, ptr %122, align 4, !tbaa !14
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, i32 noundef 9161, ptr noundef nonnull @.str.119, i32 noundef %123) #3
  br label %144

124:                                              ; preds = %118, %115
  %125 = and i32 %110, 1024
  %.not192 = icmp eq i32 %125, 0
  br i1 %.not192, label %132, label %126

126:                                              ; preds = %124
  %127 = getelementptr inbounds i8, ptr %1, i64 32
  %128 = load ptr, ptr %127, align 8, !tbaa !16
  %.not196 = icmp eq ptr %128, null
  %.not197 = icmp eq ptr %128, %1
  %or.cond215 = or i1 %.not196, %.not197
  br i1 %or.cond215, label %144, label %129

129:                                              ; preds = %126
  %130 = getelementptr inbounds i8, ptr %128, i64 108
  %131 = load i32, ptr %130, align 4, !tbaa !14
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, i32 noundef 9162, ptr noundef nonnull @.str.120, i32 noundef %131) #3
  br label %144

132:                                              ; preds = %124
  %133 = and i32 %110, 512
  %.not193 = icmp eq i32 %133, 0
  %134 = getelementptr inbounds i8, ptr %1, i64 32
  %135 = load ptr, ptr %134, align 8, !tbaa !16
  %.not194 = icmp eq ptr %135, null
  br i1 %.not193, label %140, label %136

136:                                              ; preds = %132
  br i1 %.not194, label %144, label %137

137:                                              ; preds = %136
  %138 = getelementptr inbounds i8, ptr %135, i64 108
  %139 = load i32, ptr %138, align 4, !tbaa !14
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, i32 noundef 9163, ptr noundef nonnull @.str.121, i32 noundef %139) #3
  br label %144

140:                                              ; preds = %132
  br i1 %.not194, label %144, label %141

141:                                              ; preds = %140
  %142 = getelementptr inbounds i8, ptr %135, i64 108
  %143 = load i32, ptr %142, align 4, !tbaa !14
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, i32 noundef 9164, ptr noundef nonnull @.str.122, i32 noundef %143) #3
  br label %144

144:                                              ; preds = %121, %137, %136, %141, %140, %126, %129, %112
  %145 = load i32, ptr %11, align 8
  %146 = and i32 %145, 511
  switch i32 %146, label %148 [
    i32 511, label %147
    i32 0, label %149
  ]

147:                                              ; preds = %144
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, i32 noundef 9427, ptr noundef nonnull @.str.123, i32 noundef 511) #3
  br label %149

148:                                              ; preds = %144
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, i32 noundef 9165, ptr noundef nonnull @.str.124, i32 noundef %146) #3
  br label %149

149:                                              ; preds = %144, %148, %147
  %150 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 632), align 8, !tbaa !18
  %151 = getelementptr inbounds i8, ptr %1, i64 24
  %152 = load ptr, ptr %151, align 8, !tbaa !19
  tail call void @qh_printpointid(ptr noundef %0, ptr noundef nonnull @.str.125, i32 noundef %150, ptr noundef %152, i32 noundef -1)
  %153 = getelementptr inbounds i8, ptr %1, i64 16
  %154 = load double, ptr %153, align 8, !tbaa !20
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, i32 noundef 9166, ptr noundef nonnull @.str.126, double noundef %154) #3
  %155 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2616), align 8, !tbaa !21
  %156 = icmp eq i32 %155, 1
  br i1 %156, label %160, label %157

157:                                              ; preds = %149
  %158 = getelementptr inbounds i8, ptr %1, i64 40
  %159 = load ptr, ptr %158, align 8, !tbaa !22
  %.not199 = icmp eq ptr %159, null
  br i1 %.not199, label %161, label %160

160:                                              ; preds = %157, %149
  tail call void @qh_printcenter(ptr noundef %0, i32 noundef 5, ptr noundef nonnull @.str.127, ptr noundef nonnull %1)
  br label %161

161:                                              ; preds = %160, %157
  %162 = getelementptr inbounds i8, ptr %1, i64 8
  %163 = load double, ptr %162, align 8, !tbaa !23
  %164 = load double, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 1784), align 8, !tbaa !24
  %165 = fcmp ogt double %163, %164
  br i1 %165, label %166, label %167

166:                                              ; preds = %161
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, i32 noundef 9167, ptr noundef nonnull @.str.128, double noundef %163) #3
  br label %167

167:                                              ; preds = %166, %161
  %168 = getelementptr inbounds i8, ptr %1, i64 88
  %169 = load ptr, ptr %168, align 8, !tbaa !25
  %.not200 = icmp eq ptr %169, null
  br i1 %.not200, label %193, label %170

170:                                              ; preds = %167
  %171 = getelementptr inbounds i8, ptr %169, i64 8
  %172 = load ptr, ptr %171, align 8, !tbaa !16
  %.not201 = icmp eq ptr %172, null
  br i1 %.not201, label %193, label %173

173:                                              ; preds = %170
  %174 = tail call ptr @qh_setlast(ptr noundef nonnull %169) #3
  %175 = load ptr, ptr %168, align 8, !tbaa !25
  %176 = tail call i32 @qh_setsize(ptr noundef %175) #3
  %177 = icmp slt i32 %176, 6
  br i1 %177, label %178, label %184

178:                                              ; preds = %173
  %179 = tail call i32 @qh_pointid(ptr noundef %174) #3
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, i32 noundef 9168, ptr noundef nonnull @.str.129, i32 noundef %179) #3
  %180 = load ptr, ptr %168, align 8, !tbaa !25
  %.not202 = icmp eq ptr %180, null
  br i1 %.not202, label %.loopexit220, label %.preheader219

.preheader219:                                    ; preds = %178
  %.0150221 = getelementptr inbounds i8, ptr %180, i64 8
  %181 = load ptr, ptr %.0150221, align 8, !tbaa !26
  %.not203222 = icmp eq ptr %181, null
  br i1 %.not203222, label %.loopexit220, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader219, %.lr.ph
  %182 = phi ptr [ %183, %.lr.ph ], [ %181, %.preheader219 ]
  %.0150223 = phi ptr [ %.0150, %.lr.ph ], [ %.0150221, %.preheader219 ]
  tail call void @qh_printpoint(ptr noundef %0, ptr noundef nonnull @.str.130, ptr noundef nonnull %182)
  %.0150 = getelementptr inbounds i8, ptr %.0150223, i64 8
  %183 = load ptr, ptr %.0150, align 8, !tbaa !26
  %.not203 = icmp eq ptr %183, null
  br i1 %.not203, label %.loopexit220, label %.lr.ph, !llvm.loop !27

184:                                              ; preds = %173
  %185 = load ptr, ptr %168, align 8, !tbaa !25
  %186 = tail call i32 @qh_setsize(ptr noundef %185) #3
  %187 = icmp slt i32 %186, 21
  %188 = load ptr, ptr %168, align 8, !tbaa !25
  br i1 %187, label %189, label %190

189:                                              ; preds = %184
  tail call void @qh_printpoints(ptr noundef %0, ptr noundef nonnull @.str.131, ptr noundef %188) #3
  br label %.loopexit220

190:                                              ; preds = %184
  %191 = tail call i32 @qh_setsize(ptr noundef %188) #3
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, i32 noundef 9169, ptr noundef nonnull @.str.132, i32 noundef %191) #3
  tail call void @qh_printpoint(ptr noundef %0, ptr noundef nonnull @.str.133, ptr noundef %174)
  br label %.loopexit220

.loopexit220:                                     ; preds = %.lr.ph, %.preheader219, %189, %190, %178
  %192 = load double, ptr %1, align 8, !tbaa !29
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, i32 noundef 9170, ptr noundef nonnull @.str.134, double noundef %192) #3
  br label %193

193:                                              ; preds = %170, %.loopexit220, %167
  %194 = getelementptr inbounds i8, ptr %1, i64 96
  %195 = load ptr, ptr %194, align 8, !tbaa !30
  %.not204 = icmp eq ptr %195, null
  br i1 %.not204, label %221, label %196

196:                                              ; preds = %193
  %197 = getelementptr inbounds i8, ptr %195, i64 8
  %198 = load ptr, ptr %197, align 8, !tbaa !16
  %.not205 = icmp eq ptr %198, null
  br i1 %.not205, label %221, label %199

199:                                              ; preds = %196
  %200 = tail call ptr @qh_setlast(ptr noundef nonnull %195) #3
  %201 = load ptr, ptr %194, align 8, !tbaa !30
  %202 = tail call i32 @qh_setsize(ptr noundef %201) #3
  %203 = icmp slt i32 %202, 6
  br i1 %203, label %204, label %210

204:                                              ; preds = %199
  %205 = tail call i32 @qh_pointid(ptr noundef %200) #3
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, i32 noundef 9171, ptr noundef nonnull @.str.135, i32 noundef %205) #3
  %206 = load ptr, ptr %194, align 8, !tbaa !30
  %.not206 = icmp eq ptr %206, null
  br i1 %.not206, label %.loopexit218, label %.preheader217

.preheader217:                                    ; preds = %204
  %.1224 = getelementptr inbounds i8, ptr %206, i64 8
  %207 = load ptr, ptr %.1224, align 8, !tbaa !26
  %.not208225 = icmp eq ptr %207, null
  br i1 %.not208225, label %.loopexit218, label %.lr.ph227

.lr.ph227:                                        ; preds = %.preheader217, %.lr.ph227
  %208 = phi ptr [ %209, %.lr.ph227 ], [ %207, %.preheader217 ]
  %.1226 = phi ptr [ %.1, %.lr.ph227 ], [ %.1224, %.preheader217 ]
  tail call void @qh_printpoint(ptr noundef %0, ptr noundef nonnull @.str.130, ptr noundef nonnull %208)
  %.1 = getelementptr inbounds i8, ptr %.1226, i64 8
  %209 = load ptr, ptr %.1, align 8, !tbaa !26
  %.not208 = icmp eq ptr %209, null
  br i1 %.not208, label %.loopexit218, label %.lr.ph227, !llvm.loop !31

210:                                              ; preds = %199
  %211 = load ptr, ptr %194, align 8, !tbaa !30
  %212 = tail call i32 @qh_setsize(ptr noundef %211) #3
  %213 = icmp slt i32 %212, 21
  %214 = load ptr, ptr %194, align 8, !tbaa !30
  br i1 %213, label %215, label %216

215:                                              ; preds = %210
  tail call void @qh_printpoints(ptr noundef %0, ptr noundef nonnull @.str.136, ptr noundef %214) #3
  br label %.loopexit218

216:                                              ; preds = %210
  %217 = tail call i32 @qh_setsize(ptr noundef %214) #3
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, i32 noundef 9172, ptr noundef nonnull @.str.137, i32 noundef %217) #3
  tail call void @qh_printpoint(ptr noundef %0, ptr noundef nonnull @.str.133, ptr noundef %200)
  br label %.loopexit218

.loopexit218:                                     ; preds = %.lr.ph227, %.preheader217, %215, %216, %204
  %218 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 480), align 8, !tbaa !16
  %219 = add nsw i32 %218, 1
  store i32 %219, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 480), align 8, !tbaa !16
  call void @qh_distplane(ptr noundef %200, ptr noundef nonnull %1, ptr noundef nonnull %3) #3
  %220 = load double, ptr %3, align 8, !tbaa !32
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, i32 noundef 9173, ptr noundef nonnull @.str.138, double noundef %220) #3
  br label %221

221:                                              ; preds = %196, %.loopexit218, %193
  %222 = getelementptr inbounds i8, ptr %1, i64 64
  %223 = load ptr, ptr %222, align 8, !tbaa !33
  call void @qh_printvertices(ptr noundef %0, ptr noundef nonnull @.str.139, ptr noundef %223)
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, i32 noundef 9174, ptr noundef nonnull @.str.140) #3
  %224 = getelementptr inbounds i8, ptr %1, i64 80
  %225 = load ptr, ptr %224, align 8, !tbaa !34
  %.not209 = icmp eq ptr %225, null
  br i1 %.not209, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %221, %.preheader.backedge
  %.pn210 = phi ptr [ %.0, %.preheader.backedge ], [ %225, %221 ]
  %.0 = getelementptr inbounds i8, ptr %.pn210, i64 8
  %226 = load ptr, ptr %.0, align 8, !tbaa !26
  %magicptr216 = ptrtoint ptr %226 to i64
  switch i64 %magicptr216, label %229 [
    i64 0, label %.loopexit
    i64 2, label %227
    i64 1, label %228
  ]

227:                                              ; preds = %.preheader
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, i32 noundef 9175, ptr noundef nonnull @.str.141) #3
  br label %.preheader.backedge

228:                                              ; preds = %.preheader
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, i32 noundef 9176, ptr noundef nonnull @.str.142) #3
  br label %.preheader.backedge

.preheader.backedge:                              ; preds = %228, %229, %227
  br label %.preheader, !llvm.loop !35

229:                                              ; preds = %.preheader
  %230 = getelementptr inbounds i8, ptr %226, i64 108
  %231 = load i32, ptr %230, align 4, !tbaa !14
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, i32 noundef 9177, ptr noundef nonnull @.str.143, i32 noundef %231) #3
  br label %.preheader.backedge

.loopexit:                                        ; preds = %.preheader, %221
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, i32 noundef 9178, ptr noundef nonnull @.str.18) #3
  %232 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2904), align 8, !tbaa !13
  store i32 %232, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 444), align 4, !tbaa !5
  br label %233

233:                                              ; preds = %.loopexit, %6, %5, %4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #3
  ret void
}

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

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

declare ptr @qh_setlast(ptr noundef) local_unnamed_addr #1

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

; Function Attrs: nounwind uwtable
declare dso_local void @qh_printvertices(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 = { nounwind }

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

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


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