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

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

%struct.qhT = type { i32, i32, i32, i32, i32, i32, double, i32, i32, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, i32, i32, ptr, i32, i32, ptr, i32, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, double, double, i32, i32, double, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [29 x i32], i32, i32, i32, i32, i32, i32, i32, i32, double, double, double, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, double, i32, i32, i32, i32, i32, i32, i32, i32, double, i32, ptr, ptr, i32, i32, i32, i32, i32, ptr, i32, ptr, i32, [256 x i8], i32, [256 x i8], [512 x i8], i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, double, double, double, double, double, double, double, double, double, double, double, double, double, double, ptr, double, double, double, double, i32, [6 x i8], [1 x %struct.__jmp_buf_tag], [40 x i8], [1 x %struct.__jmp_buf_tag], [40 x i8], ptr, ptr, ptr, ptr, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, i32, i32, ptr, i32, ptr, i32, ptr, ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i64, i32, i32, i32, i32, i32, ptr, ptr, i32, i32, i32, double, i32, double, double, double, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, ptr, ptr, i32, i32, i32, ptr, double, double, double, double, i32, i32, i32, i32, i32, i32, ptr, i32, i32, [1 x %struct.__jmp_buf_tag], [40 x i8], i32, double, ptr, ptr, ptr, %struct.qhmemT, %struct.qhstatT }
%struct.__jmp_buf_tag = type { [8 x i64], i32, %struct.__sigset_t }
%struct.__sigset_t = type { [16 x i64] }
%struct.qhmemT = type { i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, i32, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%struct.qhstatT = type { [249 x %union.intrealT], [259 x i8], [249 x ptr], [249 x i16], [249 x i8], [249 x i8], [9 x %union.intrealT], i32, i32, i32, i32, double }
%union.intrealT = type { double }
%struct.tm = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i64, ptr }
%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.vertexT = type { ptr, ptr, ptr, ptr, i32, i32, i8 }

@.str.22 = external hidden unnamed_addr constant [155 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [65 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [208 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [206 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [71 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [75 x i8], align 1

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

; Function Attrs: nounwind
declare i64 @clock() #1

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

; Function Attrs: nounwind uwtable
define dso_local void @qh_buildtracing(ptr noundef %0, ptr noundef %1, ptr noundef %2) #3 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca double, align 8
  %8 = alloca double, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i64, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  store double 0.000000e+00, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %15 = load ptr, ptr %4, align 8, !tbaa !5
  %16 = getelementptr inbounds %struct.qhT, ptr %15, i32 0, i32 72
  %17 = load i32, ptr %16, align 4, !tbaa !11
  %18 = load ptr, ptr %4, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct.qhT, ptr %18, i32 0, i32 235
  store i32 %17, ptr %19, align 8, !tbaa !17
  %20 = load ptr, ptr %4, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.qhT, ptr %20, i32 0, i32 72
  store i32 0, ptr %21, align 4, !tbaa !11
  %22 = load ptr, ptr %5, align 8, !tbaa !5
  %23 = icmp ne ptr %22, null
  br i1 %23, label %81, label %24

24:                                               ; preds = %3
  %25 = call i64 @time(ptr noundef %11) #4
  %26 = call ptr @localtime(ptr noundef %11) #4
  store ptr %26, ptr %12, align 8, !tbaa !5
  %27 = call i64 @clock() #4
  %28 = uitofp i64 %27 to double
  %29 = load ptr, ptr %4, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.qhT, ptr %29, i32 0, i32 186
  %31 = load i64, ptr %30, align 8, !tbaa !18
  %32 = uitofp i64 %31 to double
  %33 = fsub double %28, %32
  store double %33, ptr %8, align 8, !tbaa !9
  %34 = load double, ptr %8, align 8, !tbaa !9
  %35 = fdiv double %34, 1.000000e+06
  store double %35, ptr %8, align 8, !tbaa !9
  %36 = load ptr, ptr %4, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.qhT, ptr %36, i32 0, i32 258
  %38 = getelementptr inbounds %struct.qhstatT, ptr %37, i32 0, i32 0
  %39 = getelementptr inbounds [249 x %union.intrealT], ptr %38, i64 0, i64 216
  %40 = load i32, ptr %39, align 8, !tbaa !19
  %41 = load ptr, ptr %4, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.qhT, ptr %41, i32 0, i32 258
  %43 = getelementptr inbounds %struct.qhstatT, ptr %42, i32 0, i32 0
  %44 = getelementptr inbounds [249 x %union.intrealT], ptr %43, i64 0, i64 45
  %45 = load i32, ptr %44, align 8, !tbaa !19
  %46 = sub nsw i32 %40, %45
  %47 = load ptr, ptr %4, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.qhT, ptr %47, i32 0, i32 258
  %49 = getelementptr inbounds %struct.qhstatT, ptr %48, i32 0, i32 0
  %50 = getelementptr inbounds [249 x %union.intrealT], ptr %49, i64 0, i64 44
  %51 = load i32, ptr %50, align 8, !tbaa !19
  %52 = add nsw i32 %46, %51
  store i32 %52, ptr %9, align 4, !tbaa !20
  %53 = load ptr, ptr %4, align 8, !tbaa !5
  %54 = load ptr, ptr %4, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.qhT, ptr %54, i32 0, i32 158
  %56 = load ptr, ptr %55, align 8, !tbaa !21
  %57 = load ptr, ptr %12, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.tm, ptr %57, i32 0, i32 2
  %59 = load i32, ptr %58, align 8, !tbaa !22
  %60 = load ptr, ptr %12, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.tm, ptr %60, i32 0, i32 1
  %62 = load i32, ptr %61, align 4, !tbaa !24
  %63 = load ptr, ptr %12, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.tm, ptr %63, i32 0, i32 0
  %65 = load i32, ptr %64, align 8, !tbaa !25
  %66 = load double, ptr %8, align 8, !tbaa !9
  %67 = load ptr, ptr %4, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.qhT, ptr %67, i32 0, i32 182
  %69 = load i32, ptr %68, align 8, !tbaa !26
  %70 = sub i32 %69, 1
  %71 = load i32, ptr %9, align 4, !tbaa !20
  %72 = load ptr, ptr %4, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.qhT, ptr %72, i32 0, i32 178
  %74 = load i32, ptr %73, align 8, !tbaa !27
  %75 = load ptr, ptr %4, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.qhT, ptr %75, i32 0, i32 179
  %77 = load i32, ptr %76, align 4, !tbaa !28
  %78 = load ptr, ptr %4, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.qhT, ptr %78, i32 0, i32 190
  %80 = load i32, ptr %79, align 4, !tbaa !29
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %53, ptr noundef %56, i32 noundef 8118, ptr noundef @.str.22, i32 noundef %59, i32 noundef %62, i32 noundef %65, double noundef %66, i32 noundef %70, i32 noundef %71, i32 noundef %74, i32 noundef %77, i32 noundef %80)
  store i32 1, ptr %14, align 4
  br label %525

81:                                               ; preds = %3
  %82 = load ptr, ptr %4, align 8, !tbaa !5
  %83 = load ptr, ptr %5, align 8, !tbaa !5
  %84 = call i32 @qh_pointid(ptr noundef %82, ptr noundef %83)
  store i32 %84, ptr %10, align 4, !tbaa !20
  %85 = load ptr, ptr %4, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.qhT, ptr %85, i32 0, i32 94
  %87 = load i32, ptr %86, align 8, !tbaa !30
  %88 = load i32, ptr %10, align 4, !tbaa !20
  %89 = icmp eq i32 %87, %88
  br i1 %89, label %90, label %119

90:                                               ; preds = %81
  %91 = load ptr, ptr %4, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.qhT, ptr %91, i32 0, i32 29
  %93 = load i32, ptr %92, align 8, !tbaa !31
  %94 = icmp sge i32 %93, 1
  br i1 %94, label %95, label %107

95:                                               ; preds = %90
  %96 = load ptr, ptr %4, align 8, !tbaa !5
  %97 = load ptr, ptr %4, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.qhT, ptr %97, i32 0, i32 158
  %99 = load ptr, ptr %98, align 8, !tbaa !21
  %100 = load ptr, ptr %4, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.qhT, ptr %100, i32 0, i32 92
  %102 = load i32, ptr %101, align 8, !tbaa !32
  %103 = load i32, ptr %10, align 4, !tbaa !20
  %104 = load ptr, ptr %6, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.facetT, ptr %104, i32 0, i32 14
  %106 = load i32, ptr %105, align 4, !tbaa !33
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %96, ptr noundef %99, i32 noundef 1053, ptr noundef @.str.23, i32 noundef %102, i32 noundef %103, i32 noundef %106)
  br label %107

107:                                              ; preds = %95, %90
  %108 = load ptr, ptr %4, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.qhT, ptr %108, i32 0, i32 92
  %110 = load i32, ptr %109, align 8, !tbaa !32
  %111 = load ptr, ptr %4, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.qhT, ptr %111, i32 0, i32 29
  store i32 %110, ptr %112, align 8, !tbaa !31
  %113 = load ptr, ptr %4, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.qhT, ptr %113, i32 0, i32 92
  %115 = load i32, ptr %114, align 8, !tbaa !32
  %116 = load ptr, ptr %4, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.qhT, ptr %116, i32 0, i32 257
  %118 = getelementptr inbounds %struct.qhmemT, ptr %117, i32 0, i32 14
  store i32 %115, ptr %118, align 8, !tbaa !35
  br label %136

119:                                              ; preds = %81
  %120 = load ptr, ptr %4, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.qhT, ptr %120, i32 0, i32 94
  %122 = load i32, ptr %121, align 8, !tbaa !30
  %123 = icmp ne i32 %122, -3
  br i1 %123, label %124, label %135

124:                                              ; preds = %119
  %125 = load ptr, ptr %4, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.qhT, ptr %125, i32 0, i32 95
  %127 = load double, ptr %126, align 8, !tbaa !36
  %128 = fcmp olt double %127, 0x7FDFFFFFFFFFFFFF
  br i1 %128, label %129, label %135

129:                                              ; preds = %124
  %130 = load ptr, ptr %4, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.qhT, ptr %130, i32 0, i32 29
  store i32 0, ptr %131, align 8, !tbaa !31
  %132 = load ptr, ptr %4, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.qhT, ptr %132, i32 0, i32 257
  %134 = getelementptr inbounds %struct.qhmemT, ptr %133, i32 0, i32 14
  store i32 0, ptr %134, align 8, !tbaa !35
  br label %135

135:                                              ; preds = %129, %124, %119
  br label %136

136:                                              ; preds = %135, %107
  %137 = load ptr, ptr %4, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.qhT, ptr %137, i32 0, i32 77
  %139 = load i32, ptr %138, align 4, !tbaa !37
  %140 = icmp ne i32 %139, 0
  br i1 %140, label %141, label %241

141:                                              ; preds = %136
  %142 = load ptr, ptr %4, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.qhT, ptr %142, i32 0, i32 182
  %144 = load i32, ptr %143, align 8, !tbaa !26
  %145 = sub i32 %144, 1
  %146 = load ptr, ptr %4, align 8, !tbaa !5
  %147 = getelementptr inbounds %struct.qhT, ptr %146, i32 0, i32 245
  %148 = load i32, ptr %147, align 8, !tbaa !38
  %149 = load ptr, ptr %4, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct.qhT, ptr %149, i32 0, i32 77
  %151 = load i32, ptr %150, align 4, !tbaa !37
  %152 = add i32 %148, %151
  %153 = icmp ugt i32 %145, %152
  br i1 %153, label %154, label %241

154:                                              ; preds = %141
  %155 = load ptr, ptr %4, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct.qhT, ptr %155, i32 0, i32 182
  %157 = load i32, ptr %156, align 8, !tbaa !26
  %158 = sub i32 %157, 1
  %159 = load ptr, ptr %4, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.qhT, ptr %159, i32 0, i32 245
  store i32 %158, ptr %160, align 8, !tbaa !38
  %161 = call i64 @time(ptr noundef %11) #4
  %162 = call ptr @localtime(ptr noundef %11) #4
  store ptr %162, ptr %12, align 8, !tbaa !5
  %163 = call i64 @clock() #4
  %164 = uitofp i64 %163 to double
  %165 = load ptr, ptr %4, align 8, !tbaa !5
  %166 = getelementptr inbounds %struct.qhT, ptr %165, i32 0, i32 186
  %167 = load i64, ptr %166, align 8, !tbaa !18
  %168 = uitofp i64 %167 to double
  %169 = fsub double %164, %168
  store double %169, ptr %8, align 8, !tbaa !9
  %170 = load double, ptr %8, align 8, !tbaa !9
  %171 = fdiv double %170, 1.000000e+06
  store double %171, ptr %8, align 8, !tbaa !9
  %172 = load ptr, ptr %4, align 8, !tbaa !5
  %173 = getelementptr inbounds %struct.qhT, ptr %172, i32 0, i32 258
  %174 = getelementptr inbounds %struct.qhstatT, ptr %173, i32 0, i32 0
  %175 = getelementptr inbounds [249 x %union.intrealT], ptr %174, i64 0, i64 216
  %176 = load i32, ptr %175, align 8, !tbaa !19
  %177 = load ptr, ptr %4, align 8, !tbaa !5
  %178 = getelementptr inbounds %struct.qhT, ptr %177, i32 0, i32 258
  %179 = getelementptr inbounds %struct.qhstatT, ptr %178, i32 0, i32 0
  %180 = getelementptr inbounds [249 x %union.intrealT], ptr %179, i64 0, i64 45
  %181 = load i32, ptr %180, align 8, !tbaa !19
  %182 = sub nsw i32 %176, %181
  %183 = load ptr, ptr %4, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct.qhT, ptr %183, i32 0, i32 258
  %185 = getelementptr inbounds %struct.qhstatT, ptr %184, i32 0, i32 0
  %186 = getelementptr inbounds [249 x %union.intrealT], ptr %185, i64 0, i64 44
  %187 = load i32, ptr %186, align 8, !tbaa !19
  %188 = add nsw i32 %182, %187
  store i32 %188, ptr %9, align 4, !tbaa !20
  %189 = load ptr, ptr %4, align 8, !tbaa !5
  %190 = getelementptr inbounds %struct.qhT, ptr %189, i32 0, i32 258
  %191 = getelementptr inbounds %struct.qhstatT, ptr %190, i32 0, i32 0
  %192 = getelementptr inbounds [249 x %union.intrealT], ptr %191, i64 0, i64 60
  %193 = load i32, ptr %192, align 8, !tbaa !19
  %194 = add nsw i32 %193, 1
  store i32 %194, ptr %192, align 8, !tbaa !19
  %195 = load ptr, ptr %4, align 8, !tbaa !5
  %196 = load ptr, ptr %5, align 8, !tbaa !5
  %197 = load ptr, ptr %6, align 8, !tbaa !5
  call void @qh_distplane(ptr noundef %195, ptr noundef %196, ptr noundef %197, ptr noundef %7)
  %198 = load ptr, ptr %4, align 8, !tbaa !5
  %199 = load ptr, ptr %4, align 8, !tbaa !5
  %200 = getelementptr inbounds %struct.qhT, ptr %199, i32 0, i32 158
  %201 = load ptr, ptr %200, align 8, !tbaa !21
  %202 = load ptr, ptr %12, align 8, !tbaa !5
  %203 = getelementptr inbounds %struct.tm, ptr %202, i32 0, i32 2
  %204 = load i32, ptr %203, align 8, !tbaa !22
  %205 = load ptr, ptr %12, align 8, !tbaa !5
  %206 = getelementptr inbounds %struct.tm, ptr %205, i32 0, i32 1
  %207 = load i32, ptr %206, align 4, !tbaa !24
  %208 = load ptr, ptr %12, align 8, !tbaa !5
  %209 = getelementptr inbounds %struct.tm, ptr %208, i32 0, i32 0
  %210 = load i32, ptr %209, align 8, !tbaa !25
  %211 = load double, ptr %8, align 8, !tbaa !9
  %212 = load ptr, ptr %4, align 8, !tbaa !5
  %213 = getelementptr inbounds %struct.qhT, ptr %212, i32 0, i32 182
  %214 = load i32, ptr %213, align 8, !tbaa !26
  %215 = sub i32 %214, 1
  %216 = load i32, ptr %9, align 4, !tbaa !20
  %217 = load ptr, ptr %4, align 8, !tbaa !5
  %218 = getelementptr inbounds %struct.qhT, ptr %217, i32 0, i32 178
  %219 = load i32, ptr %218, align 8, !tbaa !27
  %220 = load ptr, ptr %4, align 8, !tbaa !5
  %221 = getelementptr inbounds %struct.qhT, ptr %220, i32 0, i32 179
  %222 = load i32, ptr %221, align 4, !tbaa !28
  %223 = load ptr, ptr %4, align 8, !tbaa !5
  %224 = getelementptr inbounds %struct.qhT, ptr %223, i32 0, i32 180
  %225 = load i32, ptr %224, align 8, !tbaa !39
  %226 = add nsw i32 %225, 1
  %227 = load i32, ptr %10, align 4, !tbaa !20
  %228 = load ptr, ptr %4, align 8, !tbaa !5
  %229 = getelementptr inbounds %struct.qhT, ptr %228, i32 0, i32 184
  %230 = load i32, ptr %229, align 8, !tbaa !40
  %231 = load double, ptr %7, align 8, !tbaa !9
  %232 = load ptr, ptr %6, align 8, !tbaa !5
  %233 = icmp ne ptr %232, null
  br i1 %233, label %234, label %238

234:                                              ; preds = %154
  %235 = load ptr, ptr %6, align 8, !tbaa !5
  %236 = getelementptr inbounds %struct.facetT, ptr %235, i32 0, i32 14
  %237 = load i32, ptr %236, align 4, !tbaa !33
  br label %239

238:                                              ; preds = %154
  br label %239

239:                                              ; preds = %238, %234
  %240 = phi i32 [ %237, %234 ], [ -1, %238 ]
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %198, ptr noundef %201, i32 noundef 8119, ptr noundef @.str.24, i32 noundef %204, i32 noundef %207, i32 noundef %210, double noundef %211, i32 noundef %215, i32 noundef %216, i32 noundef %219, i32 noundef %222, i32 noundef %226, i32 noundef %227, i32 noundef %230, double noundef %231, i32 noundef %240)
  br label %369

241:                                              ; preds = %141, %136
  %242 = load ptr, ptr %4, align 8, !tbaa !5
  %243 = getelementptr inbounds %struct.qhT, ptr %242, i32 0, i32 29
  %244 = load i32, ptr %243, align 8, !tbaa !31
  %245 = icmp sge i32 %244, 1
  br i1 %245, label %246, label %368

246:                                              ; preds = %241
  %247 = call i64 @clock() #4
  %248 = uitofp i64 %247 to double
  %249 = load ptr, ptr %4, align 8, !tbaa !5
  %250 = getelementptr inbounds %struct.qhT, ptr %249, i32 0, i32 186
  %251 = load i64, ptr %250, align 8, !tbaa !18
  %252 = uitofp i64 %251 to double
  %253 = fsub double %248, %252
  store double %253, ptr %8, align 8, !tbaa !9
  %254 = load double, ptr %8, align 8, !tbaa !9
  %255 = fdiv double %254, 1.000000e+06
  store double %255, ptr %8, align 8, !tbaa !9
  %256 = load ptr, ptr %4, align 8, !tbaa !5
  %257 = load ptr, ptr %5, align 8, !tbaa !5
  %258 = load ptr, ptr %6, align 8, !tbaa !5
  call void @qh_distplane(ptr noundef %256, ptr noundef %257, ptr noundef %258, ptr noundef %7)
  %259 = load ptr, ptr %4, align 8, !tbaa !5
  %260 = load ptr, ptr %4, align 8, !tbaa !5
  %261 = getelementptr inbounds %struct.qhT, ptr %260, i32 0, i32 158
  %262 = load ptr, ptr %261, align 8, !tbaa !21
  %263 = load i32, ptr %10, align 4, !tbaa !20
  %264 = load ptr, ptr %4, align 8, !tbaa !5
  %265 = getelementptr inbounds %struct.qhT, ptr %264, i32 0, i32 184
  %266 = load i32, ptr %265, align 8, !tbaa !40
  %267 = load double, ptr %7, align 8, !tbaa !9
  %268 = load ptr, ptr %6, align 8, !tbaa !5
  %269 = icmp ne ptr %268, null
  br i1 %269, label %270, label %274

270:                                              ; preds = %246
  %271 = load ptr, ptr %6, align 8, !tbaa !5
  %272 = getelementptr inbounds %struct.facetT, ptr %271, i32 0, i32 14
  %273 = load i32, ptr %272, align 4, !tbaa !33
  br label %275

274:                                              ; preds = %246
  br label %275

275:                                              ; preds = %274, %270
  %276 = phi i32 [ %273, %270 ], [ -1, %274 ]
  %277 = load ptr, ptr %4, align 8, !tbaa !5
  %278 = getelementptr inbounds %struct.qhT, ptr %277, i32 0, i32 178
  %279 = load i32, ptr %278, align 8, !tbaa !27
  %280 = load ptr, ptr %4, align 8, !tbaa !5
  %281 = getelementptr inbounds %struct.qhT, ptr %280, i32 0, i32 258
  %282 = getelementptr inbounds %struct.qhstatT, ptr %281, i32 0, i32 0
  %283 = getelementptr inbounds [249 x %union.intrealT], ptr %282, i64 0, i64 216
  %284 = load i32, ptr %283, align 8, !tbaa !19
  %285 = load ptr, ptr %4, align 8, !tbaa !5
  %286 = getelementptr inbounds %struct.qhT, ptr %285, i32 0, i32 180
  %287 = load i32, ptr %286, align 8, !tbaa !39
  %288 = add nsw i32 %287, 1
  %289 = load double, ptr %8, align 8, !tbaa !9
  %290 = load ptr, ptr %4, align 8, !tbaa !5
  %291 = getelementptr inbounds %struct.qhT, ptr %290, i32 0, i32 190
  %292 = load i32, ptr %291, align 4, !tbaa !29
  %293 = load ptr, ptr %4, align 8, !tbaa !5
  %294 = getelementptr inbounds %struct.qhT, ptr %293, i32 0, i32 184
  %295 = load i32, ptr %294, align 8, !tbaa !40
  %296 = sub i32 %295, 1
  %297 = load double, ptr %8, align 8, !tbaa !9
  %298 = load ptr, ptr %4, align 8, !tbaa !5
  %299 = getelementptr inbounds %struct.qhT, ptr %298, i32 0, i32 240
  %300 = load double, ptr %299, align 8, !tbaa !41
  %301 = fsub double %297, %300
  %302 = load ptr, ptr %4, align 8, !tbaa !5
  %303 = getelementptr inbounds %struct.qhT, ptr %302, i32 0, i32 178
  %304 = load i32, ptr %303, align 8, !tbaa !27
  %305 = load ptr, ptr %4, align 8, !tbaa !5
  %306 = getelementptr inbounds %struct.qhT, ptr %305, i32 0, i32 241
  %307 = load i32, ptr %306, align 8, !tbaa !42
  %308 = sub nsw i32 %304, %307
  %309 = load ptr, ptr %4, align 8, !tbaa !5
  %310 = getelementptr inbounds %struct.qhT, ptr %309, i32 0, i32 258
  %311 = getelementptr inbounds %struct.qhstatT, ptr %310, i32 0, i32 0
  %312 = getelementptr inbounds [249 x %union.intrealT], ptr %311, i64 0, i64 216
  %313 = load i32, ptr %312, align 8, !tbaa !19
  %314 = load ptr, ptr %4, align 8, !tbaa !5
  %315 = getelementptr inbounds %struct.qhT, ptr %314, i32 0, i32 242
  %316 = load i32, ptr %315, align 4, !tbaa !43
  %317 = sub nsw i32 %313, %316
  %318 = load ptr, ptr %4, align 8, !tbaa !5
  %319 = getelementptr inbounds %struct.qhT, ptr %318, i32 0, i32 258
  %320 = getelementptr inbounds %struct.qhstatT, ptr %319, i32 0, i32 0
  %321 = getelementptr inbounds [249 x %union.intrealT], ptr %320, i64 0, i64 212
  %322 = load i32, ptr %321, align 8, !tbaa !19
  %323 = load ptr, ptr %4, align 8, !tbaa !5
  %324 = getelementptr inbounds %struct.qhT, ptr %323, i32 0, i32 243
  %325 = load i32, ptr %324, align 8, !tbaa !44
  %326 = sub nsw i32 %322, %325
  %327 = load ptr, ptr %4, align 8, !tbaa !5
  %328 = getelementptr inbounds %struct.qhT, ptr %327, i32 0, i32 258
  %329 = getelementptr inbounds %struct.qhstatT, ptr %328, i32 0, i32 0
  %330 = getelementptr inbounds [249 x %union.intrealT], ptr %329, i64 0, i64 61
  %331 = load i32, ptr %330, align 8, !tbaa !19
  %332 = load ptr, ptr %4, align 8, !tbaa !5
  %333 = getelementptr inbounds %struct.qhT, ptr %332, i32 0, i32 244
  %334 = load i32, ptr %333, align 4, !tbaa !45
  %335 = sub nsw i32 %331, %334
  %336 = load ptr, ptr %4, align 8, !tbaa !5
  %337 = getelementptr inbounds %struct.qhT, ptr %336, i32 0, i32 213
  %338 = load i32, ptr %337, align 8, !tbaa !46
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %259, ptr noundef %262, i32 noundef 1049, ptr noundef @.str.25, i32 noundef %263, i32 noundef %266, double noundef %267, i32 noundef %276, i32 noundef %279, i32 noundef %284, i32 noundef %288, double noundef %289, i32 noundef %292, i32 noundef %296, double noundef %301, i32 noundef %308, i32 noundef %317, i32 noundef %326, i32 noundef %335, i32 noundef %338)
  %339 = load double, ptr %8, align 8, !tbaa !9
  %340 = load ptr, ptr %4, align 8, !tbaa !5
  %341 = getelementptr inbounds %struct.qhT, ptr %340, i32 0, i32 240
  store double %339, ptr %341, align 8, !tbaa !41
  %342 = load ptr, ptr %4, align 8, !tbaa !5
  %343 = getelementptr inbounds %struct.qhT, ptr %342, i32 0, i32 178
  %344 = load i32, ptr %343, align 8, !tbaa !27
  %345 = load ptr, ptr %4, align 8, !tbaa !5
  %346 = getelementptr inbounds %struct.qhT, ptr %345, i32 0, i32 241
  store i32 %344, ptr %346, align 8, !tbaa !42
  %347 = load ptr, ptr %4, align 8, !tbaa !5
  %348 = getelementptr inbounds %struct.qhT, ptr %347, i32 0, i32 258
  %349 = getelementptr inbounds %struct.qhstatT, ptr %348, i32 0, i32 0
  %350 = getelementptr inbounds [249 x %union.intrealT], ptr %349, i64 0, i64 216
  %351 = load i32, ptr %350, align 8, !tbaa !19
  %352 = load ptr, ptr %4, align 8, !tbaa !5
  %353 = getelementptr inbounds %struct.qhT, ptr %352, i32 0, i32 242
  store i32 %351, ptr %353, align 4, !tbaa !43
  %354 = load ptr, ptr %4, align 8, !tbaa !5
  %355 = getelementptr inbounds %struct.qhT, ptr %354, i32 0, i32 258
  %356 = getelementptr inbounds %struct.qhstatT, ptr %355, i32 0, i32 0
  %357 = getelementptr inbounds [249 x %union.intrealT], ptr %356, i64 0, i64 212
  %358 = load i32, ptr %357, align 8, !tbaa !19
  %359 = load ptr, ptr %4, align 8, !tbaa !5
  %360 = getelementptr inbounds %struct.qhT, ptr %359, i32 0, i32 243
  store i32 %358, ptr %360, align 8, !tbaa !44
  %361 = load ptr, ptr %4, align 8, !tbaa !5
  %362 = getelementptr inbounds %struct.qhT, ptr %361, i32 0, i32 258
  %363 = getelementptr inbounds %struct.qhstatT, ptr %362, i32 0, i32 0
  %364 = getelementptr inbounds [249 x %union.intrealT], ptr %363, i64 0, i64 61
  %365 = load i32, ptr %364, align 8, !tbaa !19
  %366 = load ptr, ptr %4, align 8, !tbaa !5
  %367 = getelementptr inbounds %struct.qhT, ptr %366, i32 0, i32 244
  store i32 %365, ptr %367, align 4, !tbaa !45
  br label %368

368:                                              ; preds = %275, %241
  br label %369

369:                                              ; preds = %368, %239
  %370 = load ptr, ptr %4, align 8, !tbaa !5
  %371 = getelementptr inbounds %struct.qhT, ptr %370, i32 0, i32 258
  %372 = getelementptr inbounds %struct.qhstatT, ptr %371, i32 0, i32 0
  %373 = getelementptr inbounds [249 x %union.intrealT], ptr %372, i64 0, i64 242
  %374 = load i32, ptr %373, align 8, !tbaa !19
  %375 = load ptr, ptr %4, align 8, !tbaa !5
  %376 = getelementptr inbounds %struct.qhT, ptr %375, i32 0, i32 217
  %377 = load i32, ptr %376, align 8, !tbaa !47
  %378 = sdiv i32 %377, 2
  %379 = icmp slt i32 %374, %378
  br i1 %379, label %380, label %389

380:                                              ; preds = %369
  %381 = load ptr, ptr %4, align 8, !tbaa !5
  %382 = getelementptr inbounds %struct.qhT, ptr %381, i32 0, i32 217
  %383 = load i32, ptr %382, align 8, !tbaa !47
  %384 = sdiv i32 %383, 2
  %385 = load ptr, ptr %4, align 8, !tbaa !5
  %386 = getelementptr inbounds %struct.qhT, ptr %385, i32 0, i32 258
  %387 = getelementptr inbounds %struct.qhstatT, ptr %386, i32 0, i32 0
  %388 = getelementptr inbounds [249 x %union.intrealT], ptr %387, i64 0, i64 242
  store i32 %384, ptr %388, align 8, !tbaa !19
  br label %389

389:                                              ; preds = %380, %369
  %390 = load ptr, ptr %4, align 8, !tbaa !5
  %391 = getelementptr inbounds %struct.qhT, ptr %390, i32 0, i32 217
  %392 = load i32, ptr %391, align 8, !tbaa !47
  %393 = icmp ugt i32 %392, 2147483647
  br i1 %393, label %394, label %440

394:                                              ; preds = %389
  %395 = load ptr, ptr %4, align 8, !tbaa !5
  %396 = getelementptr inbounds %struct.qhT, ptr %395, i32 0, i32 258
  %397 = getelementptr inbounds %struct.qhstatT, ptr %396, i32 0, i32 0
  %398 = getelementptr inbounds [249 x %union.intrealT], ptr %397, i64 0, i64 241
  %399 = load i32, ptr %398, align 8, !tbaa !19
  %400 = add nsw i32 %399, 1
  store i32 %400, ptr %398, align 8, !tbaa !19
  %401 = load ptr, ptr %4, align 8, !tbaa !5
  %402 = load ptr, ptr %4, align 8, !tbaa !5
  %403 = getelementptr inbounds %struct.qhT, ptr %402, i32 0, i32 163
  %404 = load ptr, ptr %403, align 8, !tbaa !48
  %405 = call i32 @qh_checklists(ptr noundef %401, ptr noundef %404)
  %406 = icmp ne i32 %405, 0
  br i1 %406, label %416, label %407

407:                                              ; preds = %394
  %408 = load ptr, ptr %4, align 8, !tbaa !5
  %409 = load ptr, ptr %4, align 8, !tbaa !5
  %410 = getelementptr inbounds %struct.qhT, ptr %409, i32 0, i32 158
  %411 = load ptr, ptr %410, align 8, !tbaa !21
  %412 = load ptr, ptr %4, align 8, !tbaa !5
  %413 = getelementptr inbounds %struct.qhT, ptr %412, i32 0, i32 217
  %414 = load i32, ptr %413, align 8, !tbaa !47
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %408, ptr noundef %411, i32 noundef 6370, ptr noundef @.str.26, i32 noundef %414)
  %415 = load ptr, ptr %4, align 8, !tbaa !5
  call void @qh_errexit(ptr noundef %415, i32 noundef 5, ptr noundef null, ptr noundef null)
  br label %416

416:                                              ; preds = %407, %394
  %417 = load ptr, ptr %4, align 8, !tbaa !5
  %418 = getelementptr inbounds %struct.qhT, ptr %417, i32 0, i32 217
  store i32 0, ptr %418, align 8, !tbaa !47
  %419 = load ptr, ptr %4, align 8, !tbaa !5
  %420 = getelementptr inbounds %struct.qhT, ptr %419, i32 0, i32 163
  %421 = load ptr, ptr %420, align 8, !tbaa !48
  store ptr %421, ptr %6, align 8, !tbaa !5
  br label %422

422:                                              ; preds = %435, %416
  %423 = load ptr, ptr %6, align 8, !tbaa !5
  %424 = icmp ne ptr %423, null
  br i1 %424, label %425, label %430

425:                                              ; preds = %422
  %426 = load ptr, ptr %6, align 8, !tbaa !5
  %427 = getelementptr inbounds %struct.facetT, ptr %426, i32 0, i32 7
  %428 = load ptr, ptr %427, align 8, !tbaa !49
  %429 = icmp ne ptr %428, null
  br label %430

430:                                              ; preds = %425, %422
  %431 = phi i1 [ false, %422 ], [ %429, %425 ]
  br i1 %431, label %432, label %439

432:                                              ; preds = %430
  %433 = load ptr, ptr %6, align 8, !tbaa !5
  %434 = getelementptr inbounds %struct.facetT, ptr %433, i32 0, i32 13
  store i32 0, ptr %434, align 8, !tbaa !50
  br label %435

435:                                              ; preds = %432
  %436 = load ptr, ptr %6, align 8, !tbaa !5
  %437 = getelementptr inbounds %struct.facetT, ptr %436, i32 0, i32 7
  %438 = load ptr, ptr %437, align 8, !tbaa !49
  store ptr %438, ptr %6, align 8, !tbaa !5
  br label %422, !llvm.loop !51

439:                                              ; preds = %430
  br label %440

440:                                              ; preds = %439, %389
  %441 = load ptr, ptr %4, align 8, !tbaa !5
  %442 = getelementptr inbounds %struct.qhT, ptr %441, i32 0, i32 258
  %443 = getelementptr inbounds %struct.qhstatT, ptr %442, i32 0, i32 0
  %444 = getelementptr inbounds [249 x %union.intrealT], ptr %443, i64 0, i64 246
  %445 = load i32, ptr %444, align 8, !tbaa !19
  %446 = load ptr, ptr %4, align 8, !tbaa !5
  %447 = getelementptr inbounds %struct.qhT, ptr %446, i32 0, i32 218
  %448 = load i32, ptr %447, align 4, !tbaa !53
  %449 = sdiv i32 %448, 2
  %450 = icmp slt i32 %445, %449
  br i1 %450, label %451, label %460

451:                                              ; preds = %440
  %452 = load ptr, ptr %4, align 8, !tbaa !5
  %453 = getelementptr inbounds %struct.qhT, ptr %452, i32 0, i32 218
  %454 = load i32, ptr %453, align 4, !tbaa !53
  %455 = sdiv i32 %454, 2
  %456 = load ptr, ptr %4, align 8, !tbaa !5
  %457 = getelementptr inbounds %struct.qhT, ptr %456, i32 0, i32 258
  %458 = getelementptr inbounds %struct.qhstatT, ptr %457, i32 0, i32 0
  %459 = getelementptr inbounds [249 x %union.intrealT], ptr %458, i64 0, i64 246
  store i32 %455, ptr %459, align 8, !tbaa !19
  br label %460

460:                                              ; preds = %451, %440
  %461 = load ptr, ptr %4, align 8, !tbaa !5
  %462 = getelementptr inbounds %struct.qhT, ptr %461, i32 0, i32 218
  %463 = load i32, ptr %462, align 4, !tbaa !53
  %464 = icmp ugt i32 %463, 2147483647
  br i1 %464, label %465, label %516

465:                                              ; preds = %460
  %466 = load ptr, ptr %4, align 8, !tbaa !5
  %467 = getelementptr inbounds %struct.qhT, ptr %466, i32 0, i32 258
  %468 = getelementptr inbounds %struct.qhstatT, ptr %467, i32 0, i32 0
  %469 = getelementptr inbounds [249 x %union.intrealT], ptr %468, i64 0, i64 245
  %470 = load i32, ptr %469, align 8, !tbaa !19
  %471 = add nsw i32 %470, 1
  store i32 %471, ptr %469, align 8, !tbaa !19
  %472 = load ptr, ptr %4, align 8, !tbaa !5
  %473 = getelementptr inbounds %struct.qhT, ptr %472, i32 0, i32 217
  %474 = load i32, ptr %473, align 8, !tbaa !47
  %475 = icmp ne i32 %474, 0
  br i1 %475, label %476, label %492

476:                                              ; preds = %465
  %477 = load ptr, ptr %4, align 8, !tbaa !5
  %478 = load ptr, ptr %4, align 8, !tbaa !5
  %479 = getelementptr inbounds %struct.qhT, ptr %478, i32 0, i32 163
  %480 = load ptr, ptr %479, align 8, !tbaa !48
  %481 = call i32 @qh_checklists(ptr noundef %477, ptr noundef %480)
  %482 = icmp ne i32 %481, 0
  br i1 %482, label %492, label %483

483:                                              ; preds = %476
  %484 = load ptr, ptr %4, align 8, !tbaa !5
  %485 = load ptr, ptr %4, align 8, !tbaa !5
  %486 = getelementptr inbounds %struct.qhT, ptr %485, i32 0, i32 158
  %487 = load ptr, ptr %486, align 8, !tbaa !21
  %488 = load ptr, ptr %4, align 8, !tbaa !5
  %489 = getelementptr inbounds %struct.qhT, ptr %488, i32 0, i32 218
  %490 = load i32, ptr %489, align 4, !tbaa !53
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %484, ptr noundef %487, i32 noundef 6371, ptr noundef @.str.27, i32 noundef %490)
  %491 = load ptr, ptr %4, align 8, !tbaa !5
  call void @qh_errexit(ptr noundef %491, i32 noundef 5, ptr noundef null, ptr noundef null)
  br label %492

492:                                              ; preds = %483, %476, %465
  %493 = load ptr, ptr %4, align 8, !tbaa !5
  %494 = getelementptr inbounds %struct.qhT, ptr %493, i32 0, i32 218
  store i32 0, ptr %494, align 4, !tbaa !53
  %495 = load ptr, ptr %4, align 8, !tbaa !5
  %496 = getelementptr inbounds %struct.qhT, ptr %495, i32 0, i32 175
  %497 = load ptr, ptr %496, align 8, !tbaa !54
  store ptr %497, ptr %13, align 8, !tbaa !5
  br label %498

498:                                              ; preds = %511, %492
  %499 = load ptr, ptr %13, align 8, !tbaa !5
  %500 = icmp ne ptr %499, null
  br i1 %500, label %501, label %506

501:                                              ; preds = %498
  %502 = load ptr, ptr %13, align 8, !tbaa !5
  %503 = getelementptr inbounds %struct.vertexT, ptr %502, i32 0, i32 0
  %504 = load ptr, ptr %503, align 8, !tbaa !55
  %505 = icmp ne ptr %504, null
  br label %506

506:                                              ; preds = %501, %498
  %507 = phi i1 [ false, %498 ], [ %505, %501 ]
  br i1 %507, label %508, label %515

508:                                              ; preds = %506
  %509 = load ptr, ptr %13, align 8, !tbaa !5
  %510 = getelementptr inbounds %struct.vertexT, ptr %509, i32 0, i32 5
  store i32 0, ptr %510, align 4, !tbaa !57
  br label %511

511:                                              ; preds = %508
  %512 = load ptr, ptr %13, align 8, !tbaa !5
  %513 = getelementptr inbounds %struct.vertexT, ptr %512, i32 0, i32 0
  %514 = load ptr, ptr %513, align 8, !tbaa !55
  store ptr %514, ptr %13, align 8, !tbaa !5
  br label %498, !llvm.loop !58

515:                                              ; preds = %506
  br label %516

516:                                              ; preds = %515, %460
  %517 = load i32, ptr %10, align 4, !tbaa !20
  %518 = load ptr, ptr %4, align 8, !tbaa !5
  %519 = getelementptr inbounds %struct.qhT, ptr %518, i32 0, i32 190
  store i32 %517, ptr %519, align 4, !tbaa !29
  %520 = load ptr, ptr %4, align 8, !tbaa !5
  %521 = getelementptr inbounds %struct.qhT, ptr %520, i32 0, i32 235
  %522 = load i32, ptr %521, align 8, !tbaa !17
  %523 = load ptr, ptr %4, align 8, !tbaa !5
  %524 = getelementptr inbounds %struct.qhT, ptr %523, i32 0, i32 72
  store i32 %522, ptr %524, align 4, !tbaa !11
  store i32 0, ptr %14, align 4
  br label %525

525:                                              ; preds = %516, %24
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  %526 = load i32, ptr %14, align 4
  switch i32 %526, label %528 [
    i32 0, label %527
    i32 1, label %527
  ]

527:                                              ; preds = %525, %525
  ret void

528:                                              ; preds = %525
  unreachable
}

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

; 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, ptr noundef) #2

; Function Attrs: nounwind
declare i64 @time(ptr noundef) #1

; Function Attrs: nounwind
declare ptr @localtime(ptr noundef) #1

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

declare i32 @qh_checklists(ptr noundef, ptr noundef) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nounwind "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 = { "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 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 #4 = { nounwind }

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

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


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

@.str.22 = external hidden unnamed_addr constant [155 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [65 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [208 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [206 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [71 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [75 x i8], align 1

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

; Function Attrs: nounwind
declare i64 @clock() local_unnamed_addr #1

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

; Function Attrs: nounwind uwtable
define dso_local void @qh_buildtracing(ptr noundef %0, ptr noundef %1, ptr noundef %2) local_unnamed_addr #3 {
  %4 = alloca double, align 8
  %5 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #4
  store double 0.000000e+00, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #4
  %6 = getelementptr inbounds i8, ptr %0, i64 444
  %7 = load i32, ptr %6, align 4, !tbaa !9
  %8 = getelementptr inbounds i8, ptr %0, i64 2904
  store i32 %7, ptr %8, align 8, !tbaa !16
  store i32 0, ptr %6, align 4, !tbaa !9
  %.not = icmp eq ptr %1, null
  br i1 %.not, label %9, label %43

9:                                                ; preds = %3
  %10 = call i64 @time(ptr noundef nonnull %5) #4
  %11 = call ptr @localtime(ptr noundef nonnull %5) #4
  %12 = call i64 @clock() #4
  %13 = uitofp i64 %12 to double
  %14 = getelementptr inbounds i8, ptr %0, i64 2600
  %15 = load i64, ptr %14, align 8, !tbaa !17
  %16 = uitofp i64 %15 to double
  %17 = fsub double %13, %16
  %18 = fdiv double %17, 1.000000e+06
  %19 = getelementptr inbounds i8, ptr %0, i64 5152
  %20 = load i32, ptr %19, align 8, !tbaa !18
  %21 = getelementptr inbounds i8, ptr %0, i64 3784
  %22 = load i32, ptr %21, align 8, !tbaa !18
  %23 = sub i32 %20, %22
  %24 = getelementptr inbounds i8, ptr %0, i64 3776
  %25 = load i32, ptr %24, align 8, !tbaa !18
  %26 = add nsw i32 %23, %25
  %27 = getelementptr inbounds i8, ptr %0, i64 2424
  %28 = load ptr, ptr %27, align 8, !tbaa !19
  %29 = getelementptr inbounds i8, ptr %11, i64 8
  %30 = load i32, ptr %29, align 8, !tbaa !20
  %31 = getelementptr inbounds i8, ptr %11, i64 4
  %32 = load i32, ptr %31, align 4, !tbaa !22
  %33 = load i32, ptr %11, align 8, !tbaa !23
  %34 = getelementptr inbounds i8, ptr %0, i64 2584
  %35 = load i32, ptr %34, align 8, !tbaa !24
  %36 = add i32 %35, -1
  %37 = getelementptr inbounds i8, ptr %0, i64 2568
  %38 = load i32, ptr %37, align 8, !tbaa !25
  %39 = getelementptr inbounds i8, ptr %0, i64 2572
  %40 = load i32, ptr %39, align 4, !tbaa !26
  %41 = getelementptr inbounds i8, ptr %0, i64 2620
  %42 = load i32, ptr %41, align 4, !tbaa !27
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %28, i32 noundef 8118, ptr noundef nonnull @.str.22, i32 noundef %30, i32 noundef %32, i32 noundef %33, double noundef %18, i32 noundef %36, i32 noundef %26, i32 noundef %38, i32 noundef %40, i32 noundef %42) #4
  br label %241

43:                                               ; preds = %3
  %44 = tail call i32 @qh_pointid(ptr noundef nonnull %0, ptr noundef nonnull %1) #4
  %45 = getelementptr inbounds i8, ptr %0, i64 544
  %46 = load i32, ptr %45, align 8, !tbaa !28
  %47 = icmp eq i32 %46, %44
  br i1 %47, label %48, label %62

48:                                               ; preds = %43
  %49 = getelementptr inbounds i8, ptr %0, i64 136
  %50 = load i32, ptr %49, align 8, !tbaa !29
  %51 = icmp sgt i32 %50, 0
  br i1 %51, label %52, label %59

52:                                               ; preds = %48
  %53 = getelementptr inbounds i8, ptr %0, i64 2424
  %54 = load ptr, ptr %53, align 8, !tbaa !19
  %55 = getelementptr inbounds i8, ptr %0, i64 536
  %56 = load i32, ptr %55, align 8, !tbaa !30
  %57 = getelementptr inbounds i8, ptr %2, i64 108
  %58 = load i32, ptr %57, align 4, !tbaa !31
  tail call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %54, i32 noundef 1053, ptr noundef nonnull @.str.23, i32 noundef %56, i32 noundef %44, i32 noundef %58) #4
  br label %59

59:                                               ; preds = %52, %48
  %60 = getelementptr inbounds i8, ptr %0, i64 536
  %61 = load i32, ptr %60, align 8, !tbaa !30
  store i32 %61, ptr %49, align 8, !tbaa !29
  br label %.sink.split

62:                                               ; preds = %43
  %.not158 = icmp eq i32 %46, -3
  br i1 %.not158, label %70, label %63

63:                                               ; preds = %62
  %64 = getelementptr inbounds i8, ptr %0, i64 552
  %65 = load double, ptr %64, align 8, !tbaa !33
  %66 = fcmp olt double %65, 0x7FDFFFFFFFFFFFFF
  br i1 %66, label %67, label %70

67:                                               ; preds = %63
  %68 = getelementptr inbounds i8, ptr %0, i64 136
  store i32 0, ptr %68, align 8, !tbaa !29
  br label %.sink.split

.sink.split:                                      ; preds = %59, %67
  %.sink = phi i32 [ 0, %67 ], [ %61, %59 ]
  %69 = getelementptr inbounds i8, ptr %0, i64 3360
  store i32 %.sink, ptr %69, align 8, !tbaa !34
  br label %70

70:                                               ; preds = %.sink.split, %62, %63
  %71 = getelementptr inbounds i8, ptr %0, i64 476
  %72 = load i32, ptr %71, align 4, !tbaa !35
  %.not159 = icmp eq i32 %72, 0
  br i1 %.not159, label %126, label %73

73:                                               ; preds = %70
  %74 = getelementptr inbounds i8, ptr %0, i64 2584
  %75 = load i32, ptr %74, align 8, !tbaa !24
  %76 = add i32 %75, -1
  %77 = getelementptr inbounds i8, ptr %0, i64 2968
  %78 = load i32, ptr %77, align 8, !tbaa !36
  %79 = add i32 %78, %72
  %80 = icmp ugt i32 %76, %79
  br i1 %80, label %81, label %126

81:                                               ; preds = %73
  store i32 %76, ptr %77, align 8, !tbaa !36
  %82 = call i64 @time(ptr noundef nonnull %5) #4
  %83 = call ptr @localtime(ptr noundef nonnull %5) #4
  %84 = call i64 @clock() #4
  %85 = uitofp i64 %84 to double
  %86 = getelementptr inbounds i8, ptr %0, i64 2600
  %87 = load i64, ptr %86, align 8, !tbaa !17
  %88 = uitofp i64 %87 to double
  %89 = fsub double %85, %88
  %90 = fdiv double %89, 1.000000e+06
  %91 = getelementptr inbounds i8, ptr %0, i64 5152
  %92 = load i32, ptr %91, align 8, !tbaa !18
  %93 = getelementptr inbounds i8, ptr %0, i64 3784
  %94 = load i32, ptr %93, align 8, !tbaa !18
  %95 = sub i32 %92, %94
  %96 = getelementptr inbounds i8, ptr %0, i64 3776
  %97 = load i32, ptr %96, align 8, !tbaa !18
  %98 = add nsw i32 %95, %97
  %99 = getelementptr inbounds i8, ptr %0, i64 3904
  %100 = load i32, ptr %99, align 8, !tbaa !18
  %101 = add nsw i32 %100, 1
  store i32 %101, ptr %99, align 8, !tbaa !18
  call void @qh_distplane(ptr noundef nonnull %0, ptr noundef nonnull %1, ptr noundef %2, ptr noundef nonnull %4) #4
  %102 = getelementptr inbounds i8, ptr %0, i64 2424
  %103 = load ptr, ptr %102, align 8, !tbaa !19
  %104 = getelementptr inbounds i8, ptr %83, i64 8
  %105 = load i32, ptr %104, align 8, !tbaa !20
  %106 = getelementptr inbounds i8, ptr %83, i64 4
  %107 = load i32, ptr %106, align 4, !tbaa !22
  %108 = load i32, ptr %83, align 8, !tbaa !23
  %109 = load i32, ptr %74, align 8, !tbaa !24
  %110 = add i32 %109, -1
  %111 = getelementptr inbounds i8, ptr %0, i64 2568
  %112 = load i32, ptr %111, align 8, !tbaa !25
  %113 = getelementptr inbounds i8, ptr %0, i64 2572
  %114 = load i32, ptr %113, align 4, !tbaa !26
  %115 = getelementptr inbounds i8, ptr %0, i64 2576
  %116 = load i32, ptr %115, align 8, !tbaa !37
  %117 = add nsw i32 %116, 1
  %118 = getelementptr inbounds i8, ptr %0, i64 2592
  %119 = load i32, ptr %118, align 8, !tbaa !38
  %120 = load double, ptr %4, align 8, !tbaa !5
  %.not161 = icmp eq ptr %2, null
  br i1 %.not161, label %124, label %121

121:                                              ; preds = %81
  %122 = getelementptr inbounds i8, ptr %2, i64 108
  %123 = load i32, ptr %122, align 4, !tbaa !31
  br label %124

124:                                              ; preds = %81, %121
  %125 = phi i32 [ %123, %121 ], [ -1, %81 ]
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %103, i32 noundef 8119, ptr noundef nonnull @.str.24, i32 noundef %105, i32 noundef %107, i32 noundef %108, double noundef %90, i32 noundef %110, i32 noundef %98, i32 noundef %112, i32 noundef %114, i32 noundef %117, i32 noundef %44, i32 noundef %119, double noundef %120, i32 noundef %125) #4
  br label %183

126:                                              ; preds = %73, %70
  %127 = getelementptr inbounds i8, ptr %0, i64 136
  %128 = load i32, ptr %127, align 8, !tbaa !29
  %129 = icmp sgt i32 %128, 0
  br i1 %129, label %130, label %183

130:                                              ; preds = %126
  %131 = tail call i64 @clock() #4
  %132 = uitofp i64 %131 to double
  %133 = getelementptr inbounds i8, ptr %0, i64 2600
  %134 = load i64, ptr %133, align 8, !tbaa !17
  %135 = uitofp i64 %134 to double
  %136 = fsub double %132, %135
  %137 = fdiv double %136, 1.000000e+06
  call void @qh_distplane(ptr noundef nonnull %0, ptr noundef nonnull %1, ptr noundef %2, ptr noundef nonnull %4) #4
  %138 = getelementptr inbounds i8, ptr %0, i64 2424
  %139 = load ptr, ptr %138, align 8, !tbaa !19
  %140 = getelementptr inbounds i8, ptr %0, i64 2592
  %141 = load i32, ptr %140, align 8, !tbaa !38
  %142 = load double, ptr %4, align 8, !tbaa !5
  %.not160 = icmp eq ptr %2, null
  br i1 %.not160, label %146, label %143

143:                                              ; preds = %130
  %144 = getelementptr inbounds i8, ptr %2, i64 108
  %145 = load i32, ptr %144, align 4, !tbaa !31
  br label %146

146:                                              ; preds = %130, %143
  %147 = phi i32 [ %145, %143 ], [ -1, %130 ]
  %148 = getelementptr inbounds i8, ptr %0, i64 2568
  %149 = load i32, ptr %148, align 8, !tbaa !25
  %150 = getelementptr inbounds i8, ptr %0, i64 5152
  %151 = load i32, ptr %150, align 8, !tbaa !18
  %152 = getelementptr inbounds i8, ptr %0, i64 2576
  %153 = load i32, ptr %152, align 8, !tbaa !37
  %154 = add nsw i32 %153, 1
  %155 = getelementptr inbounds i8, ptr %0, i64 2620
  %156 = load i32, ptr %155, align 4, !tbaa !27
  %157 = add i32 %141, -1
  %158 = getelementptr inbounds i8, ptr %0, i64 2944
  %159 = load double, ptr %158, align 8, !tbaa !39
  %160 = fsub double %137, %159
  %161 = getelementptr inbounds i8, ptr %0, i64 2952
  %162 = load i32, ptr %161, align 8, !tbaa !40
  %163 = sub nsw i32 %149, %162
  %164 = getelementptr inbounds i8, ptr %0, i64 2956
  %165 = load i32, ptr %164, align 4, !tbaa !41
  %166 = sub nsw i32 %151, %165
  %167 = getelementptr inbounds i8, ptr %0, i64 5120
  %168 = load i32, ptr %167, align 8, !tbaa !18
  %169 = getelementptr inbounds i8, ptr %0, i64 2960
  %170 = load i32, ptr %169, align 8, !tbaa !42
  %171 = sub nsw i32 %168, %170
  %172 = getelementptr inbounds i8, ptr %0, i64 3912
  %173 = load i32, ptr %172, align 8, !tbaa !18
  %174 = getelementptr inbounds i8, ptr %0, i64 2964
  %175 = load i32, ptr %174, align 4, !tbaa !43
  %176 = sub nsw i32 %173, %175
  %177 = getelementptr inbounds i8, ptr %0, i64 2760
  %178 = load i32, ptr %177, align 8, !tbaa !44
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %139, i32 noundef 1049, ptr noundef nonnull @.str.25, i32 noundef %44, i32 noundef %141, double noundef %142, i32 noundef %147, i32 noundef %149, i32 noundef %151, i32 noundef %154, double noundef %137, i32 noundef %156, i32 noundef %157, double noundef %160, i32 noundef %163, i32 noundef %166, i32 noundef %171, i32 noundef %176, i32 noundef %178) #4
  store double %137, ptr %158, align 8, !tbaa !39
  %179 = load i32, ptr %148, align 8, !tbaa !25
  store i32 %179, ptr %161, align 8, !tbaa !40
  %180 = load i32, ptr %150, align 8, !tbaa !18
  store i32 %180, ptr %164, align 4, !tbaa !41
  %181 = load i32, ptr %167, align 8, !tbaa !18
  store i32 %181, ptr %169, align 8, !tbaa !42
  %182 = load i32, ptr %172, align 8, !tbaa !18
  store i32 %182, ptr %174, align 4, !tbaa !43
  br label %183

183:                                              ; preds = %126, %146, %124
  %184 = getelementptr inbounds i8, ptr %0, i64 5360
  %185 = load i32, ptr %184, align 8, !tbaa !18
  %186 = getelementptr inbounds i8, ptr %0, i64 2784
  %187 = load i32, ptr %186, align 8, !tbaa !45
  %188 = sdiv i32 %187, 2
  %189 = icmp slt i32 %185, %188
  br i1 %189, label %190, label %191

190:                                              ; preds = %183
  store i32 %188, ptr %184, align 8, !tbaa !18
  br label %191

191:                                              ; preds = %190, %183
  %192 = icmp slt i32 %187, 0
  br i1 %192, label %193, label %.critedge

193:                                              ; preds = %191
  %194 = getelementptr inbounds i8, ptr %0, i64 5352
  %195 = load i32, ptr %194, align 8, !tbaa !18
  %196 = add nsw i32 %195, 1
  store i32 %196, ptr %194, align 8, !tbaa !18
  %197 = getelementptr inbounds i8, ptr %0, i64 2456
  %198 = load ptr, ptr %197, align 8, !tbaa !46
  %199 = call i32 @qh_checklists(ptr noundef nonnull %0, ptr noundef %198) #4
  %.not162 = icmp eq i32 %199, 0
  br i1 %.not162, label %200, label %204

200:                                              ; preds = %193
  %201 = getelementptr inbounds i8, ptr %0, i64 2424
  %202 = load ptr, ptr %201, align 8, !tbaa !19
  %203 = load i32, ptr %186, align 8, !tbaa !45
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %202, i32 noundef 6370, ptr noundef nonnull @.str.26, i32 noundef %203) #4
  call void @qh_errexit(ptr noundef nonnull %0, i32 noundef 5, ptr noundef null, ptr noundef null) #4
  br label %204

204:                                              ; preds = %200, %193
  store i32 0, ptr %186, align 8, !tbaa !45
  %.0149.pr = load ptr, ptr %197, align 8, !tbaa !47
  %.not163170 = icmp eq ptr %.0149.pr, null
  br i1 %.not163170, label %.critedge, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %204
  %205 = getelementptr inbounds i8, ptr %.0149.pr, i64 56
  %206 = load ptr, ptr %205, align 8, !tbaa !47
  %.not164178 = icmp eq ptr %206, null
  br i1 %.not164178, label %.critedge, label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %207 = phi ptr [ %210, %.lr.ph ], [ %206, %.lr.ph.preheader ]
  %.0149171179 = phi ptr [ %207, %.lr.ph ], [ %.0149.pr, %.lr.ph.preheader ]
  %208 = getelementptr inbounds i8, ptr %.0149171179, i64 104
  store i32 0, ptr %208, align 8, !tbaa !48
  %209 = getelementptr inbounds i8, ptr %207, i64 56
  %210 = load ptr, ptr %209, align 8, !tbaa !47
  %.not164 = icmp eq ptr %210, null
  br i1 %.not164, label %.critedge, label %.lr.ph

.critedge:                                        ; preds = %.lr.ph, %.lr.ph.preheader, %204, %191
  %211 = phi i32 [ 0, %204 ], [ %187, %191 ], [ 0, %.lr.ph.preheader ], [ 0, %.lr.ph ]
  %212 = getelementptr inbounds i8, ptr %0, i64 5392
  %213 = load i32, ptr %212, align 8, !tbaa !18
  %214 = getelementptr inbounds i8, ptr %0, i64 2788
  %215 = load i32, ptr %214, align 4, !tbaa !49
  %216 = sdiv i32 %215, 2
  %217 = icmp slt i32 %213, %216
  br i1 %217, label %218, label %219

218:                                              ; preds = %.critedge
  store i32 %216, ptr %212, align 8, !tbaa !18
  br label %219

219:                                              ; preds = %218, %.critedge
  %220 = icmp slt i32 %215, 0
  br i1 %220, label %221, label %.critedge2

221:                                              ; preds = %219
  %222 = getelementptr inbounds i8, ptr %0, i64 5384
  %223 = load i32, ptr %222, align 8, !tbaa !18
  %224 = add nsw i32 %223, 1
  store i32 %224, ptr %222, align 8, !tbaa !18
  %.not165 = icmp eq i32 %211, 0
  br i1 %.not165, label %233, label %225

225:                                              ; preds = %221
  %226 = getelementptr inbounds i8, ptr %0, i64 2456
  %227 = load ptr, ptr %226, align 8, !tbaa !46
  %228 = call i32 @qh_checklists(ptr noundef nonnull %0, ptr noundef %227) #4
  %.not166 = icmp eq i32 %228, 0
  br i1 %.not166, label %229, label %233

229:                                              ; preds = %225
  %230 = getelementptr inbounds i8, ptr %0, i64 2424
  %231 = load ptr, ptr %230, align 8, !tbaa !19
  %232 = load i32, ptr %214, align 4, !tbaa !49
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %231, i32 noundef 6371, ptr noundef nonnull @.str.27, i32 noundef %232) #4
  call void @qh_errexit(ptr noundef nonnull %0, i32 noundef 5, ptr noundef null, ptr noundef null) #4
  br label %233

233:                                              ; preds = %229, %225, %221
  store i32 0, ptr %214, align 4, !tbaa !49
  %234 = getelementptr inbounds i8, ptr %0, i64 2544
  %.0.pr = load ptr, ptr %234, align 8, !tbaa !47
  %.not167173 = icmp eq ptr %.0.pr, null
  br i1 %.not167173, label %.critedge2, label %.lr.ph175.preheader

.lr.ph175.preheader:                              ; preds = %233
  %235 = load ptr, ptr %.0.pr, align 8, !tbaa !47
  %.not168181 = icmp eq ptr %235, null
  br i1 %.not168181, label %.critedge2, label %.lr.ph175

.lr.ph175:                                        ; preds = %.lr.ph175.preheader, %.lr.ph175
  %236 = phi ptr [ %238, %.lr.ph175 ], [ %235, %.lr.ph175.preheader ]
  %.0174182 = phi ptr [ %236, %.lr.ph175 ], [ %.0.pr, %.lr.ph175.preheader ]
  %237 = getelementptr inbounds i8, ptr %.0174182, i64 36
  store i32 0, ptr %237, align 4, !tbaa !50
  %238 = load ptr, ptr %236, align 8, !tbaa !47
  %.not168 = icmp eq ptr %238, null
  br i1 %.not168, label %.critedge2, label %.lr.ph175

.critedge2:                                       ; preds = %.lr.ph175, %.lr.ph175.preheader, %233, %219
  %239 = getelementptr inbounds i8, ptr %0, i64 2620
  store i32 %44, ptr %239, align 4, !tbaa !27
  %240 = load i32, ptr %8, align 8, !tbaa !16
  store i32 %240, ptr %6, align 4, !tbaa !9
  br label %241

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

declare void @qh_errexit(ptr noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

; 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, ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind
declare i64 @time(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind
declare ptr @localtime(ptr noundef) local_unnamed_addr #1

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

declare i32 @qh_checklists(ptr noundef, ptr noundef) local_unnamed_addr #2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"double", !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, !6, 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, !6, i64 64, !6, i64 72, !11, i64 80, !11, i64 84, !11, i64 88, !11, i64 92, !11, i64 96, !11, i64 100, !12, i64 104, !11, i64 112, !11, i64 116, !12, i64 120, !11, i64 128, !11, i64 132, !11, i64 136, !11, i64 140, !11, i64 144, !11, i64 148, !11, i64 152, !6, i64 160, !6, i64 168, !11, i64 176, !11, i64 180, !11, i64 184, !11, i64 188, !6, i64 192, !6, i64 200, !11, i64 208, !11, i64 212, !6, 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, !6, i64 448, !6, i64 456, !6, 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, !6, 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, !6, i64 592, !11, i64 600, !12, i64 608, !12, i64 616, !11, i64 624, !11, i64 628, !11, i64 632, !11, i64 636, !11, i64 640, !12, i64 648, !11, i64 656, !12, 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, !12, i64 1728, !12, i64 1736, !12, i64 1744, !12, i64 1752, !6, i64 1760, !6, i64 1768, !6, i64 1776, !6, i64 1784, !6, i64 1792, !6, i64 1800, !6, i64 1808, !6, i64 1816, !6, i64 1824, !6, i64 1832, !6, i64 1840, !6, i64 1848, !6, i64 1856, !6, i64 1864, !12, i64 1872, !6, i64 1880, !6, i64 1888, !6, i64 1896, !6, i64 1904, !11, i64 1912, !7, i64 1916, !7, i64 1928, !7, i64 2128, !7, i64 2168, !7, i64 2368, !12, i64 2408, !12, i64 2416, !12, i64 2424, !12, i64 2432, !11, i64 2440, !11, i64 2444, !11, i64 2448, !12, i64 2456, !12, i64 2464, !12, i64 2472, !12, i64 2480, !12, i64 2488, !11, i64 2496, !11, i64 2500, !12, i64 2504, !11, i64 2512, !12, i64 2520, !11, i64 2528, !12, i64 2536, !12, i64 2544, !12, i64 2552, !12, 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, !12, i64 2632, !12, i64 2640, !11, i64 2648, !11, i64 2652, !11, i64 2656, !6, i64 2664, !11, i64 2672, !6, i64 2680, !6, i64 2688, !6, i64 2696, !11, i64 2704, !11, i64 2708, !11, i64 2712, !11, i64 2716, !11, i64 2720, !6, i64 2728, !6, i64 2736, !11, i64 2744, !11, i64 2748, !11, i64 2752, !11, i64 2756, !11, i64 2760, !11, i64 2764, !6, i64 2768, !6, i64 2776, !11, i64 2784, !11, i64 2788, !11, i64 2792, !11, i64 2796, !12, i64 2800, !12, i64 2808, !12, i64 2816, !12, i64 2824, !12, i64 2832, !12, i64 2840, !12, i64 2848, !12, i64 2856, !12, i64 2864, !11, i64 2872, !12, i64 2880, !12, i64 2888, !11, i64 2896, !11, i64 2900, !11, i64 2904, !12, i64 2912, !6, i64 2920, !6, i64 2928, !6, i64 2936, !6, i64 2944, !11, i64 2952, !11, i64 2956, !11, i64 2960, !11, i64 2964, !11, i64 2968, !11, i64 2972, !12, i64 2976, !11, i64 2984, !11, i64 2988, !7, i64 2992, !7, i64 3192, !11, i64 3232, !6, i64 3240, !12, i64 3248, !12, i64 3256, !12, i64 3264, !14, i64 3272, !15, i64 3424}
!11 = !{!"int", !7, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!"long", !7, i64 0}
!14 = !{!"qhmemT", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !12, i64 24, !12, i64 32, !12, i64 40, !12, i64 48, !12, i64 56, !11, i64 64, !12, i64 72, !12, i64 80, !11, i64 88, !11, i64 92, !11, i64 96, !11, i64 100, !11, i64 104, !11, i64 108, !11, i64 112, !11, i64 116, !11, i64 120, !11, i64 124, !11, i64 128, !11, i64 132, !11, i64 136, !11, i64 140, !11, i64 144}
!15 = !{!"qhstatT", !7, i64 0, !7, i64 1992, !7, i64 2256, !7, i64 4248, !7, i64 4746, !7, i64 4995, !7, i64 5248, !11, i64 5320, !11, i64 5324, !11, i64 5328, !11, i64 5332, !6, i64 5336}
!16 = !{!10, !11, i64 2904}
!17 = !{!10, !13, i64 2600}
!18 = !{!7, !7, i64 0}
!19 = !{!10, !12, i64 2424}
!20 = !{!21, !11, i64 8}
!21 = !{!"tm", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !11, i64 32, !13, i64 40, !12, i64 48}
!22 = !{!21, !11, i64 4}
!23 = !{!21, !11, i64 0}
!24 = !{!10, !11, i64 2584}
!25 = !{!10, !11, i64 2568}
!26 = !{!10, !11, i64 2572}
!27 = !{!10, !11, i64 2620}
!28 = !{!10, !11, i64 544}
!29 = !{!10, !11, i64 136}
!30 = !{!10, !11, i64 536}
!31 = !{!32, !11, i64 108}
!32 = !{!"facetT", !6, i64 0, !6, i64 8, !6, i64 16, !12, i64 24, !7, i64 32, !12, i64 40, !12, i64 48, !12, i64 56, !12, i64 64, !12, i64 72, !12, i64 80, !12, i64 88, !12, i64 96, !11, i64 104, !11, i64 108, !11, i64 112, !11, i64 113, !11, i64 113, !11, i64 113, !11, i64 113, !11, i64 113, !11, i64 113, !11, i64 113, !11, i64 114, !11, i64 114, !11, i64 114, !11, i64 114, !11, i64 114, !11, i64 114, !11, i64 114, !11, i64 114, !11, i64 115, !11, i64 115, !11, i64 115, !11, i64 115, !11, i64 115, !11, i64 115, !11, i64 115, !11, i64 115}
!33 = !{!10, !6, i64 552}
!34 = !{!10, !11, i64 3360}
!35 = !{!10, !11, i64 476}
!36 = !{!10, !11, i64 2968}
!37 = !{!10, !11, i64 2576}
!38 = !{!10, !11, i64 2592}
!39 = !{!10, !6, i64 2944}
!40 = !{!10, !11, i64 2952}
!41 = !{!10, !11, i64 2956}
!42 = !{!10, !11, i64 2960}
!43 = !{!10, !11, i64 2964}
!44 = !{!10, !11, i64 2760}
!45 = !{!10, !11, i64 2784}
!46 = !{!10, !12, i64 2456}
!47 = !{!12, !12, i64 0}
!48 = !{!32, !11, i64 104}
!49 = !{!10, !11, i64 2788}
!50 = !{!51, !11, i64 36}
!51 = !{!"vertexT", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !11, i64 32, !11, i64 36, !11, i64 40, !11, i64 40, !11, i64 40, !11, i64 40, !11, i64 40, !11, i64 40}


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