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

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

@qh_qh = external global %struct.qhT, align 8
@qhmem = external global %struct.qhmemT, align 8
@qh_qhstat = external global %struct.qhstatT, align 8
@.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, i32 noundef, ptr noundef, ...) #2

; Function Attrs: nounwind uwtable
define dso_local void @qh_buildtracing(ptr noundef %0, ptr noundef %1) #3 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca double, align 8
  %6 = alloca double, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i64, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = 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) #4
  store double 0.000000e+00, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  %13 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 72), align 4, !tbaa !11
  store i32 %13, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 235), align 8, !tbaa !15
  store i32 0, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 72), align 4, !tbaa !11
  %14 = load ptr, ptr %3, align 8, !tbaa !5
  %15 = icmp ne ptr %14, null
  br i1 %15, label %48, label %16

16:                                               ; preds = %2
  %17 = call i64 @time(ptr noundef %9) #4
  %18 = call ptr @localtime(ptr noundef %9) #4
  store ptr %18, ptr %10, align 8, !tbaa !5
  %19 = call i64 @clock() #4
  %20 = uitofp i64 %19 to double
  %21 = load i64, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 186), align 8, !tbaa !16
  %22 = uitofp i64 %21 to double
  %23 = fsub double %20, %22
  store double %23, ptr %6, align 8, !tbaa !9
  %24 = load double, ptr %6, align 8, !tbaa !9
  %25 = fdiv double %24, 1.000000e+06
  store double %25, ptr %6, align 8, !tbaa !9
  %26 = load i32, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 216), align 8, !tbaa !17
  %27 = load i32, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 45), align 8, !tbaa !17
  %28 = sub nsw i32 %26, %27
  %29 = load i32, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 44), align 8, !tbaa !17
  %30 = add nsw i32 %28, %29
  store i32 %30, ptr %7, align 4, !tbaa !18
  %31 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !19
  %32 = load ptr, ptr %10, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.tm, ptr %32, i32 0, i32 2
  %34 = load i32, ptr %33, align 8, !tbaa !20
  %35 = load ptr, ptr %10, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.tm, ptr %35, i32 0, i32 1
  %37 = load i32, ptr %36, align 4, !tbaa !22
  %38 = load ptr, ptr %10, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.tm, ptr %38, i32 0, i32 0
  %40 = load i32, ptr %39, align 8, !tbaa !23
  %41 = load double, ptr %6, align 8, !tbaa !9
  %42 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 182), align 8, !tbaa !24
  %43 = sub i32 %42, 1
  %44 = load i32, ptr %7, align 4, !tbaa !18
  %45 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 178), align 8, !tbaa !25
  %46 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 179), align 4, !tbaa !26
  %47 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 190), align 4, !tbaa !27
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %31, i32 noundef 8118, ptr noundef @.str.22, i32 noundef %34, i32 noundef %37, i32 noundef %40, double noundef %41, i32 noundef %43, i32 noundef %44, i32 noundef %45, i32 noundef %46, i32 noundef %47)
  store i32 1, ptr %12, align 4
  br label %278

48:                                               ; preds = %2
  %49 = load ptr, ptr %3, align 8, !tbaa !5
  %50 = call i32 @qh_pointid(ptr noundef %49)
  store i32 %50, ptr %8, align 4, !tbaa !18
  %51 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 94), align 8, !tbaa !28
  %52 = load i32, ptr %8, align 4, !tbaa !18
  %53 = icmp eq i32 %51, %52
  br i1 %53, label %54, label %67

54:                                               ; preds = %48
  %55 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !29
  %56 = icmp sge i32 %55, 1
  br i1 %56, label %57, label %64

57:                                               ; preds = %54
  %58 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !19
  %59 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 92), align 8, !tbaa !30
  %60 = load i32, ptr %8, align 4, !tbaa !18
  %61 = load ptr, ptr %4, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.facetT, ptr %61, i32 0, i32 14
  %63 = load i32, ptr %62, align 4, !tbaa !31
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %58, i32 noundef 1053, ptr noundef @.str.23, i32 noundef %59, i32 noundef %60, i32 noundef %63)
  br label %64

64:                                               ; preds = %57, %54
  %65 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 92), align 8, !tbaa !30
  store i32 %65, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !29
  %66 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 92), align 8, !tbaa !30
  store i32 %66, ptr getelementptr inbounds (%struct.qhmemT, ptr @qhmem, i32 0, i32 14), align 8, !tbaa !33
  br label %75

67:                                               ; preds = %48
  %68 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 94), align 8, !tbaa !28
  %69 = icmp ne i32 %68, -3
  br i1 %69, label %70, label %74

70:                                               ; preds = %67
  %71 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 95), align 8, !tbaa !35
  %72 = fcmp olt double %71, 0x7FDFFFFFFFFFFFFF
  br i1 %72, label %73, label %74

73:                                               ; preds = %70
  store i32 0, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !29
  store i32 0, ptr getelementptr inbounds (%struct.qhmemT, ptr @qhmem, i32 0, i32 14), align 8, !tbaa !33
  br label %74

74:                                               ; preds = %73, %70, %67
  br label %75

75:                                               ; preds = %74, %64
  %76 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 77), align 4, !tbaa !36
  %77 = icmp ne i32 %76, 0
  br i1 %77, label %78, label %136

78:                                               ; preds = %75
  %79 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 182), align 8, !tbaa !24
  %80 = sub i32 %79, 1
  %81 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 245), align 8, !tbaa !37
  %82 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 77), align 4, !tbaa !36
  %83 = add i32 %81, %82
  %84 = icmp ugt i32 %80, %83
  br i1 %84, label %85, label %136

85:                                               ; preds = %78
  %86 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 182), align 8, !tbaa !24
  %87 = sub i32 %86, 1
  store i32 %87, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 245), align 8, !tbaa !37
  %88 = call i64 @time(ptr noundef %9) #4
  %89 = call ptr @localtime(ptr noundef %9) #4
  store ptr %89, ptr %10, align 8, !tbaa !5
  %90 = call i64 @clock() #4
  %91 = uitofp i64 %90 to double
  %92 = load i64, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 186), align 8, !tbaa !16
  %93 = uitofp i64 %92 to double
  %94 = fsub double %91, %93
  store double %94, ptr %6, align 8, !tbaa !9
  %95 = load double, ptr %6, align 8, !tbaa !9
  %96 = fdiv double %95, 1.000000e+06
  store double %96, ptr %6, align 8, !tbaa !9
  %97 = load i32, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 216), align 8, !tbaa !17
  %98 = load i32, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 45), align 8, !tbaa !17
  %99 = sub nsw i32 %97, %98
  %100 = load i32, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 44), align 8, !tbaa !17
  %101 = add nsw i32 %99, %100
  store i32 %101, ptr %7, align 4, !tbaa !18
  %102 = load i32, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 60), align 8, !tbaa !17
  %103 = add nsw i32 %102, 1
  store i32 %103, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 60), align 8, !tbaa !17
  %104 = load ptr, ptr %3, align 8, !tbaa !5
  %105 = load ptr, ptr %4, align 8, !tbaa !5
  call void @qh_distplane(ptr noundef %104, ptr noundef %105, ptr noundef %5)
  %106 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !19
  %107 = load ptr, ptr %10, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.tm, ptr %107, i32 0, i32 2
  %109 = load i32, ptr %108, align 8, !tbaa !20
  %110 = load ptr, ptr %10, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.tm, ptr %110, i32 0, i32 1
  %112 = load i32, ptr %111, align 4, !tbaa !22
  %113 = load ptr, ptr %10, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.tm, ptr %113, i32 0, i32 0
  %115 = load i32, ptr %114, align 8, !tbaa !23
  %116 = load double, ptr %6, align 8, !tbaa !9
  %117 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 182), align 8, !tbaa !24
  %118 = sub i32 %117, 1
  %119 = load i32, ptr %7, align 4, !tbaa !18
  %120 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 178), align 8, !tbaa !25
  %121 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 179), align 4, !tbaa !26
  %122 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 180), align 8, !tbaa !38
  %123 = add nsw i32 %122, 1
  %124 = load i32, ptr %8, align 4, !tbaa !18
  %125 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 184), align 8, !tbaa !39
  %126 = load double, ptr %5, align 8, !tbaa !9
  %127 = load ptr, ptr %4, align 8, !tbaa !5
  %128 = icmp ne ptr %127, null
  br i1 %128, label %129, label %133

129:                                              ; preds = %85
  %130 = load ptr, ptr %4, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.facetT, ptr %130, i32 0, i32 14
  %132 = load i32, ptr %131, align 4, !tbaa !31
  br label %134

133:                                              ; preds = %85
  br label %134

134:                                              ; preds = %133, %129
  %135 = phi i32 [ %132, %129 ], [ -1, %133 ]
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %106, i32 noundef 8119, ptr noundef @.str.24, i32 noundef %109, i32 noundef %112, i32 noundef %115, double noundef %116, i32 noundef %118, i32 noundef %119, i32 noundef %120, i32 noundef %121, i32 noundef %123, i32 noundef %124, i32 noundef %125, double noundef %126, i32 noundef %135)
  br label %192

136:                                              ; preds = %78, %75
  %137 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !29
  %138 = icmp sge i32 %137, 1
  br i1 %138, label %139, label %191

139:                                              ; preds = %136
  %140 = call i64 @clock() #4
  %141 = uitofp i64 %140 to double
  %142 = load i64, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 186), align 8, !tbaa !16
  %143 = uitofp i64 %142 to double
  %144 = fsub double %141, %143
  store double %144, ptr %6, align 8, !tbaa !9
  %145 = load double, ptr %6, align 8, !tbaa !9
  %146 = fdiv double %145, 1.000000e+06
  store double %146, ptr %6, align 8, !tbaa !9
  %147 = load ptr, ptr %3, align 8, !tbaa !5
  %148 = load ptr, ptr %4, align 8, !tbaa !5
  call void @qh_distplane(ptr noundef %147, ptr noundef %148, ptr noundef %5)
  %149 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !19
  %150 = load i32, ptr %8, align 4, !tbaa !18
  %151 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 184), align 8, !tbaa !39
  %152 = load double, ptr %5, align 8, !tbaa !9
  %153 = load ptr, ptr %4, align 8, !tbaa !5
  %154 = icmp ne ptr %153, null
  br i1 %154, label %155, label %159

155:                                              ; preds = %139
  %156 = load ptr, ptr %4, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.facetT, ptr %156, i32 0, i32 14
  %158 = load i32, ptr %157, align 4, !tbaa !31
  br label %160

159:                                              ; preds = %139
  br label %160

160:                                              ; preds = %159, %155
  %161 = phi i32 [ %158, %155 ], [ -1, %159 ]
  %162 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 178), align 8, !tbaa !25
  %163 = load i32, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 216), align 8, !tbaa !17
  %164 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 180), align 8, !tbaa !38
  %165 = add nsw i32 %164, 1
  %166 = load double, ptr %6, align 8, !tbaa !9
  %167 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 190), align 4, !tbaa !27
  %168 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 184), align 8, !tbaa !39
  %169 = sub i32 %168, 1
  %170 = load double, ptr %6, align 8, !tbaa !9
  %171 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 240), align 8, !tbaa !40
  %172 = fsub double %170, %171
  %173 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 178), align 8, !tbaa !25
  %174 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 241), align 8, !tbaa !41
  %175 = sub nsw i32 %173, %174
  %176 = load i32, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 216), align 8, !tbaa !17
  %177 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 242), align 4, !tbaa !42
  %178 = sub nsw i32 %176, %177
  %179 = load i32, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 212), align 8, !tbaa !17
  %180 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 243), align 8, !tbaa !43
  %181 = sub nsw i32 %179, %180
  %182 = load i32, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 61), align 8, !tbaa !17
  %183 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 244), align 4, !tbaa !44
  %184 = sub nsw i32 %182, %183
  %185 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 213), align 8, !tbaa !45
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %149, i32 noundef 1049, ptr noundef @.str.25, i32 noundef %150, i32 noundef %151, double noundef %152, i32 noundef %161, i32 noundef %162, i32 noundef %163, i32 noundef %165, double noundef %166, i32 noundef %167, i32 noundef %169, double noundef %172, i32 noundef %175, i32 noundef %178, i32 noundef %181, i32 noundef %184, i32 noundef %185)
  %186 = load double, ptr %6, align 8, !tbaa !9
  store double %186, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 240), align 8, !tbaa !40
  %187 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 178), align 8, !tbaa !25
  store i32 %187, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 241), align 8, !tbaa !41
  %188 = load i32, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 216), align 8, !tbaa !17
  store i32 %188, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 242), align 4, !tbaa !42
  %189 = load i32, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 212), align 8, !tbaa !17
  store i32 %189, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 243), align 8, !tbaa !43
  %190 = load i32, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 61), align 8, !tbaa !17
  store i32 %190, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 244), align 4, !tbaa !44
  br label %191

191:                                              ; preds = %160, %136
  br label %192

192:                                              ; preds = %191, %134
  %193 = load i32, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 242), align 8, !tbaa !17
  %194 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 217), align 8, !tbaa !46
  %195 = sdiv i32 %194, 2
  %196 = icmp slt i32 %193, %195
  br i1 %196, label %197, label %200

197:                                              ; preds = %192
  %198 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 217), align 8, !tbaa !46
  %199 = sdiv i32 %198, 2
  store i32 %199, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 242), align 8, !tbaa !17
  br label %200

200:                                              ; preds = %197, %192
  %201 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 217), align 8, !tbaa !46
  %202 = icmp ugt i32 %201, 2147483647
  br i1 %202, label %203, label %232

203:                                              ; preds = %200
  %204 = load i32, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 241), align 8, !tbaa !17
  %205 = add nsw i32 %204, 1
  store i32 %205, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 241), align 8, !tbaa !17
  %206 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 163), align 8, !tbaa !47
  %207 = call i32 @qh_checklists(ptr noundef %206)
  %208 = icmp ne i32 %207, 0
  br i1 %208, label %212, label %209

209:                                              ; preds = %203
  %210 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !19
  %211 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 217), align 8, !tbaa !46
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %210, i32 noundef 6370, ptr noundef @.str.26, i32 noundef %211)
  call void @qh_errexit(i32 noundef 5, ptr noundef null, ptr noundef null)
  br label %212

212:                                              ; preds = %209, %203
  store i32 0, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 217), align 8, !tbaa !46
  %213 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 163), align 8, !tbaa !47
  store ptr %213, ptr %4, align 8, !tbaa !5
  br label %214

214:                                              ; preds = %227, %212
  %215 = load ptr, ptr %4, align 8, !tbaa !5
  %216 = icmp ne ptr %215, null
  br i1 %216, label %217, label %222

217:                                              ; preds = %214
  %218 = load ptr, ptr %4, align 8, !tbaa !5
  %219 = getelementptr inbounds %struct.facetT, ptr %218, i32 0, i32 7
  %220 = load ptr, ptr %219, align 8, !tbaa !48
  %221 = icmp ne ptr %220, null
  br label %222

222:                                              ; preds = %217, %214
  %223 = phi i1 [ false, %214 ], [ %221, %217 ]
  br i1 %223, label %224, label %231

224:                                              ; preds = %222
  %225 = load ptr, ptr %4, align 8, !tbaa !5
  %226 = getelementptr inbounds %struct.facetT, ptr %225, i32 0, i32 13
  store i32 0, ptr %226, align 8, !tbaa !49
  br label %227

227:                                              ; preds = %224
  %228 = load ptr, ptr %4, align 8, !tbaa !5
  %229 = getelementptr inbounds %struct.facetT, ptr %228, i32 0, i32 7
  %230 = load ptr, ptr %229, align 8, !tbaa !48
  store ptr %230, ptr %4, align 8, !tbaa !5
  br label %214, !llvm.loop !50

231:                                              ; preds = %222
  br label %232

232:                                              ; preds = %231, %200
  %233 = load i32, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 246), align 8, !tbaa !17
  %234 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 218), align 4, !tbaa !52
  %235 = sdiv i32 %234, 2
  %236 = icmp slt i32 %233, %235
  br i1 %236, label %237, label %240

237:                                              ; preds = %232
  %238 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 218), align 4, !tbaa !52
  %239 = sdiv i32 %238, 2
  store i32 %239, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 246), align 8, !tbaa !17
  br label %240

240:                                              ; preds = %237, %232
  %241 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 218), align 4, !tbaa !52
  %242 = icmp ugt i32 %241, 2147483647
  br i1 %242, label %243, label %275

243:                                              ; preds = %240
  %244 = load i32, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 245), align 8, !tbaa !17
  %245 = add nsw i32 %244, 1
  store i32 %245, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 245), align 8, !tbaa !17
  %246 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 217), align 8, !tbaa !46
  %247 = icmp ne i32 %246, 0
  br i1 %247, label %248, label %255

248:                                              ; preds = %243
  %249 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 163), align 8, !tbaa !47
  %250 = call i32 @qh_checklists(ptr noundef %249)
  %251 = icmp ne i32 %250, 0
  br i1 %251, label %255, label %252

252:                                              ; preds = %248
  %253 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !19
  %254 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 218), align 4, !tbaa !52
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %253, i32 noundef 6371, ptr noundef @.str.27, i32 noundef %254)
  call void @qh_errexit(i32 noundef 5, ptr noundef null, ptr noundef null)
  br label %255

255:                                              ; preds = %252, %248, %243
  store i32 0, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 218), align 4, !tbaa !52
  %256 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 175), align 8, !tbaa !53
  store ptr %256, ptr %11, align 8, !tbaa !5
  br label %257

257:                                              ; preds = %270, %255
  %258 = load ptr, ptr %11, align 8, !tbaa !5
  %259 = icmp ne ptr %258, null
  br i1 %259, label %260, label %265

260:                                              ; preds = %257
  %261 = load ptr, ptr %11, align 8, !tbaa !5
  %262 = getelementptr inbounds %struct.vertexT, ptr %261, i32 0, i32 0
  %263 = load ptr, ptr %262, align 8, !tbaa !54
  %264 = icmp ne ptr %263, null
  br label %265

265:                                              ; preds = %260, %257
  %266 = phi i1 [ false, %257 ], [ %264, %260 ]
  br i1 %266, label %267, label %274

267:                                              ; preds = %265
  %268 = load ptr, ptr %11, align 8, !tbaa !5
  %269 = getelementptr inbounds %struct.vertexT, ptr %268, i32 0, i32 5
  store i32 0, ptr %269, align 4, !tbaa !56
  br label %270

270:                                              ; preds = %267
  %271 = load ptr, ptr %11, align 8, !tbaa !5
  %272 = getelementptr inbounds %struct.vertexT, ptr %271, i32 0, i32 0
  %273 = load ptr, ptr %272, align 8, !tbaa !54
  store ptr %273, ptr %11, align 8, !tbaa !5
  br label %257, !llvm.loop !57

274:                                              ; preds = %265
  br label %275

275:                                              ; preds = %274, %240
  %276 = load i32, ptr %8, align 4, !tbaa !18
  store i32 %276, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 190), align 4, !tbaa !27
  %277 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 235), align 8, !tbaa !15
  store i32 %277, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 72), align 4, !tbaa !11
  store i32 0, ptr %12, align 4
  br label %278

278:                                              ; preds = %275, %16
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  %279 = load i32, ptr %12, align 4
  switch i32 %279, label %281 [
    i32 0, label %280
    i32 1, label %280
  ]

280:                                              ; preds = %278, %278
  ret void

281:                                              ; preds = %278
  unreachable
}

declare void @qh_errexit(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) #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) #2

declare i32 @qh_checklists(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, !6, i64 2984, !13, i64 2992}
!13 = !{!"int", !7, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!12, !13, i64 2904}
!16 = !{!12, !14, i64 2600}
!17 = !{!7, !7, i64 0}
!18 = !{!13, !13, i64 0}
!19 = !{!12, !6, i64 2424}
!20 = !{!21, !13, i64 8}
!21 = !{!"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}
!22 = !{!21, !13, i64 4}
!23 = !{!21, !13, i64 0}
!24 = !{!12, !13, i64 2584}
!25 = !{!12, !13, i64 2568}
!26 = !{!12, !13, i64 2572}
!27 = !{!12, !13, i64 2620}
!28 = !{!12, !13, i64 544}
!29 = !{!12, !13, i64 136}
!30 = !{!12, !13, i64 536}
!31 = !{!32, !13, i64 108}
!32 = !{!"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}
!33 = !{!34, !13, i64 88}
!34 = !{!"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}
!35 = !{!12, !10, i64 552}
!36 = !{!12, !13, i64 476}
!37 = !{!12, !13, i64 2968}
!38 = !{!12, !13, i64 2576}
!39 = !{!12, !13, i64 2592}
!40 = !{!12, !10, i64 2944}
!41 = !{!12, !13, i64 2952}
!42 = !{!12, !13, i64 2956}
!43 = !{!12, !13, i64 2960}
!44 = !{!12, !13, i64 2964}
!45 = !{!12, !13, i64 2760}
!46 = !{!12, !13, i64 2784}
!47 = !{!12, !6, i64 2456}
!48 = !{!32, !6, i64 56}
!49 = !{!32, !13, i64 104}
!50 = distinct !{!50, !51}
!51 = !{!"llvm.loop.mustprogress"}
!52 = !{!12, !13, i64 2788}
!53 = !{!12, !6, i64 2544}
!54 = !{!55, !6, i64 0}
!55 = !{!"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}
!56 = !{!55, !13, i64 36}
!57 = distinct !{!57, !51}


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

@qh_qh = external local_unnamed_addr global %struct.qhT, align 8
@qhmem = external local_unnamed_addr global %struct.qhmemT, align 8
@qh_qhstat = external local_unnamed_addr global %struct.qhstatT, align 8
@.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, i32 noundef, ptr noundef, ...) local_unnamed_addr #2

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

6:                                                ; preds = %2
  %7 = call i64 @time(ptr noundef nonnull %4) #4
  %8 = call ptr @localtime(ptr noundef nonnull %4) #4
  %9 = call i64 @clock() #4
  %10 = uitofp i64 %9 to double
  %11 = load i64, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2600), align 8, !tbaa !15
  %12 = uitofp i64 %11 to double
  %13 = fsub double %10, %12
  %14 = fdiv double %13, 1.000000e+06
  %15 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1728), align 8, !tbaa !16
  %16 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 360), align 8, !tbaa !16
  %17 = sub i32 %15, %16
  %18 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 352), align 8, !tbaa !16
  %19 = add nsw i32 %17, %18
  %20 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !17
  %21 = getelementptr inbounds i8, ptr %8, i64 8
  %22 = load i32, ptr %21, align 8, !tbaa !18
  %23 = getelementptr inbounds i8, ptr %8, i64 4
  %24 = load i32, ptr %23, align 4, !tbaa !20
  %25 = load i32, ptr %8, align 8, !tbaa !21
  %26 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2584), align 8, !tbaa !22
  %27 = add i32 %26, -1
  %28 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2568), align 8, !tbaa !23
  %29 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2572), align 4, !tbaa !24
  %30 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2620), align 4, !tbaa !25
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %20, i32 noundef 8118, ptr noundef nonnull @.str.22, i32 noundef %22, i32 noundef %24, i32 noundef %25, double noundef %14, i32 noundef %27, i32 noundef %19, i32 noundef %28, i32 noundef %29, i32 noundef %30) #4
  br label %179

31:                                               ; preds = %2
  %32 = tail call i32 @qh_pointid(ptr noundef nonnull %0) #4
  %33 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 544), align 8, !tbaa !26
  %34 = icmp eq i32 %33, %32
  br i1 %34, label %35, label %45

35:                                               ; preds = %31
  %36 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !27
  %37 = icmp sgt i32 %36, 0
  br i1 %37, label %38, label %43

38:                                               ; preds = %35
  %39 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !17
  %40 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 536), align 8, !tbaa !28
  %41 = getelementptr inbounds i8, ptr %1, i64 108
  %42 = load i32, ptr %41, align 4, !tbaa !29
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %39, i32 noundef 1053, ptr noundef nonnull @.str.23, i32 noundef %40, i32 noundef %32, i32 noundef %42) #4
  br label %43

43:                                               ; preds = %38, %35
  %44 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 536), align 8, !tbaa !28
  br label %.sink.split

45:                                               ; preds = %31
  %46 = icmp ne i32 %33, -3
  %47 = load double, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 552), align 8
  %48 = fcmp olt double %47, 0x7FDFFFFFFFFFFFFF
  %or.cond = select i1 %46, i1 %48, i1 false
  br i1 %or.cond, label %.sink.split, label %49

.sink.split:                                      ; preds = %45, %43
  %.sink69 = phi i32 [ %44, %43 ], [ 0, %45 ]
  store i32 %.sink69, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !27
  store i32 %.sink69, ptr getelementptr inbounds (i8, ptr @qhmem, i64 88), align 8, !tbaa !31
  br label %49

49:                                               ; preds = %.sink.split, %45
  %50 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 476), align 4, !tbaa !33
  %.not51 = icmp eq i32 %50, 0
  br i1 %.not51, label %92, label %51

51:                                               ; preds = %49
  %52 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2584), align 8, !tbaa !22
  %53 = add i32 %52, -1
  %54 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2968), align 8, !tbaa !34
  %55 = add i32 %54, %50
  %56 = icmp ugt i32 %53, %55
  br i1 %56, label %57, label %92

57:                                               ; preds = %51
  store i32 %53, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2968), align 8, !tbaa !34
  %58 = call i64 @time(ptr noundef nonnull %4) #4
  %59 = call ptr @localtime(ptr noundef nonnull %4) #4
  %60 = call i64 @clock() #4
  %61 = uitofp i64 %60 to double
  %62 = load i64, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2600), align 8, !tbaa !15
  %63 = uitofp i64 %62 to double
  %64 = fsub double %61, %63
  %65 = fdiv double %64, 1.000000e+06
  %66 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1728), align 8, !tbaa !16
  %67 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 360), align 8, !tbaa !16
  %68 = sub i32 %66, %67
  %69 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 352), align 8, !tbaa !16
  %70 = add nsw i32 %68, %69
  %71 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 480), align 8, !tbaa !16
  %72 = add nsw i32 %71, 1
  store i32 %72, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 480), align 8, !tbaa !16
  call void @qh_distplane(ptr noundef nonnull %0, ptr noundef %1, ptr noundef nonnull %3) #4
  %73 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !17
  %74 = getelementptr inbounds i8, ptr %59, i64 8
  %75 = load i32, ptr %74, align 8, !tbaa !18
  %76 = getelementptr inbounds i8, ptr %59, i64 4
  %77 = load i32, ptr %76, align 4, !tbaa !20
  %78 = load i32, ptr %59, align 8, !tbaa !21
  %79 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2584), align 8, !tbaa !22
  %80 = add i32 %79, -1
  %81 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2568), align 8, !tbaa !23
  %82 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2572), align 4, !tbaa !24
  %83 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2576), align 8, !tbaa !35
  %84 = add nsw i32 %83, 1
  %85 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2592), align 8, !tbaa !36
  %86 = load double, ptr %3, align 8, !tbaa !5
  %.not53 = icmp eq ptr %1, null
  br i1 %.not53, label %90, label %87

87:                                               ; preds = %57
  %88 = getelementptr inbounds i8, ptr %1, i64 108
  %89 = load i32, ptr %88, align 4, !tbaa !29
  br label %90

90:                                               ; preds = %57, %87
  %91 = phi i32 [ %89, %87 ], [ -1, %57 ]
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %73, i32 noundef 8119, ptr noundef nonnull @.str.24, i32 noundef %75, i32 noundef %77, i32 noundef %78, double noundef %65, i32 noundef %80, i32 noundef %70, i32 noundef %81, i32 noundef %82, i32 noundef %84, i32 noundef %32, i32 noundef %85, double noundef %86, i32 noundef %91) #4
  br label %133

92:                                               ; preds = %51, %49
  %93 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !27
  %94 = icmp sgt i32 %93, 0
  br i1 %94, label %95, label %133

95:                                               ; preds = %92
  %96 = tail call i64 @clock() #4
  %97 = uitofp i64 %96 to double
  %98 = load i64, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2600), align 8, !tbaa !15
  %99 = uitofp i64 %98 to double
  %100 = fsub double %97, %99
  %101 = fdiv double %100, 1.000000e+06
  call void @qh_distplane(ptr noundef nonnull %0, ptr noundef %1, ptr noundef nonnull %3) #4
  %102 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !17
  %103 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2592), align 8, !tbaa !36
  %104 = load double, ptr %3, align 8, !tbaa !5
  %.not52 = icmp eq ptr %1, null
  br i1 %.not52, label %108, label %105

105:                                              ; preds = %95
  %106 = getelementptr inbounds i8, ptr %1, i64 108
  %107 = load i32, ptr %106, align 4, !tbaa !29
  br label %108

108:                                              ; preds = %95, %105
  %109 = phi i32 [ %107, %105 ], [ -1, %95 ]
  %110 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2568), align 8, !tbaa !23
  %111 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1728), align 8, !tbaa !16
  %112 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2576), align 8, !tbaa !35
  %113 = add nsw i32 %112, 1
  %114 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2620), align 4, !tbaa !25
  %115 = add i32 %103, -1
  %116 = load double, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2944), align 8, !tbaa !37
  %117 = fsub double %101, %116
  %118 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2952), align 8, !tbaa !38
  %119 = sub nsw i32 %110, %118
  %120 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2956), align 4, !tbaa !39
  %121 = sub nsw i32 %111, %120
  %122 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1696), align 8, !tbaa !16
  %123 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2960), align 8, !tbaa !40
  %124 = sub nsw i32 %122, %123
  %125 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 488), align 8, !tbaa !16
  %126 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2964), align 4, !tbaa !41
  %127 = sub nsw i32 %125, %126
  %128 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2760), align 8, !tbaa !42
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %102, i32 noundef 1049, ptr noundef nonnull @.str.25, i32 noundef %32, i32 noundef %103, double noundef %104, i32 noundef %109, i32 noundef %110, i32 noundef %111, i32 noundef %113, double noundef %101, i32 noundef %114, i32 noundef %115, double noundef %117, i32 noundef %119, i32 noundef %121, i32 noundef %124, i32 noundef %127, i32 noundef %128) #4
  store double %101, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2944), align 8, !tbaa !37
  %129 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2568), align 8, !tbaa !23
  store i32 %129, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2952), align 8, !tbaa !38
  %130 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1728), align 8, !tbaa !16
  store i32 %130, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2956), align 4, !tbaa !39
  %131 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1696), align 8, !tbaa !16
  store i32 %131, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2960), align 8, !tbaa !40
  %132 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 488), align 8, !tbaa !16
  store i32 %132, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2964), align 4, !tbaa !41
  br label %133

133:                                              ; preds = %92, %108, %90
  %134 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1936), align 8, !tbaa !16
  %135 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2784), align 8, !tbaa !43
  %136 = sdiv i32 %135, 2
  %137 = icmp slt i32 %134, %136
  br i1 %137, label %138, label %139

138:                                              ; preds = %133
  store i32 %136, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1936), align 8, !tbaa !16
  br label %139

139:                                              ; preds = %138, %133
  %140 = icmp slt i32 %135, 0
  br i1 %140, label %141, label %.critedge

141:                                              ; preds = %139
  %142 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1928), align 8, !tbaa !16
  %143 = add nsw i32 %142, 1
  store i32 %143, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1928), align 8, !tbaa !16
  %144 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2456), align 8, !tbaa !44
  %145 = call i32 @qh_checklists(ptr noundef %144) #4
  %.not54 = icmp eq i32 %145, 0
  br i1 %.not54, label %146, label %149

146:                                              ; preds = %141
  %147 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !17
  %148 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2784), align 8, !tbaa !43
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %147, i32 noundef 6370, ptr noundef nonnull @.str.26, i32 noundef %148) #4
  call void @qh_errexit(i32 noundef 5, ptr noundef null, ptr noundef null) #4
  br label %149

149:                                              ; preds = %146, %141
  store i32 0, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2784), align 8, !tbaa !43
  %.042.pr = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2456), align 8, !tbaa !45
  %.not5562 = icmp eq ptr %.042.pr, null
  br i1 %.not5562, label %.critedge, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %149
  %150 = getelementptr inbounds i8, ptr %.042.pr, i64 56
  %151 = load ptr, ptr %150, align 8, !tbaa !45
  %.not5670 = icmp eq ptr %151, null
  br i1 %.not5670, label %.critedge, label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %152 = phi ptr [ %155, %.lr.ph ], [ %151, %.lr.ph.preheader ]
  %.0426371 = phi ptr [ %152, %.lr.ph ], [ %.042.pr, %.lr.ph.preheader ]
  %153 = getelementptr inbounds i8, ptr %.0426371, i64 104
  store i32 0, ptr %153, align 8, !tbaa !46
  %154 = getelementptr inbounds i8, ptr %152, i64 56
  %155 = load ptr, ptr %154, align 8, !tbaa !45
  %.not56 = icmp eq ptr %155, null
  br i1 %.not56, label %.critedge, label %.lr.ph

.critedge:                                        ; preds = %.lr.ph, %.lr.ph.preheader, %149, %139
  %156 = phi i32 [ 0, %149 ], [ %135, %139 ], [ 0, %.lr.ph.preheader ], [ 0, %.lr.ph ]
  %157 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1968), align 8, !tbaa !16
  %158 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2788), align 4, !tbaa !47
  %159 = sdiv i32 %158, 2
  %160 = icmp slt i32 %157, %159
  br i1 %160, label %161, label %162

161:                                              ; preds = %.critedge
  store i32 %159, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1968), align 8, !tbaa !16
  br label %162

162:                                              ; preds = %161, %.critedge
  %163 = icmp slt i32 %158, 0
  br i1 %163, label %164, label %.critedge3

164:                                              ; preds = %162
  %165 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1960), align 8, !tbaa !16
  %166 = add nsw i32 %165, 1
  store i32 %166, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1960), align 8, !tbaa !16
  %.not57 = icmp eq i32 %156, 0
  br i1 %.not57, label %173, label %167

167:                                              ; preds = %164
  %168 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2456), align 8, !tbaa !44
  %169 = call i32 @qh_checklists(ptr noundef %168) #4
  %.not58 = icmp eq i32 %169, 0
  br i1 %.not58, label %170, label %173

170:                                              ; preds = %167
  %171 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !17
  %172 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2788), align 4, !tbaa !47
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %171, i32 noundef 6371, ptr noundef nonnull @.str.27, i32 noundef %172) #4
  call void @qh_errexit(i32 noundef 5, ptr noundef null, ptr noundef null) #4
  br label %173

173:                                              ; preds = %170, %167, %164
  store i32 0, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2788), align 4, !tbaa !47
  %.0.pr = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2544), align 8, !tbaa !45
  %.not5965 = icmp eq ptr %.0.pr, null
  br i1 %.not5965, label %.critedge3, label %.lr.ph67.preheader

.lr.ph67.preheader:                               ; preds = %173
  %174 = load ptr, ptr %.0.pr, align 8, !tbaa !45
  %.not6073 = icmp eq ptr %174, null
  br i1 %.not6073, label %.critedge3, label %.lr.ph67

.lr.ph67:                                         ; preds = %.lr.ph67.preheader, %.lr.ph67
  %175 = phi ptr [ %177, %.lr.ph67 ], [ %174, %.lr.ph67.preheader ]
  %.06674 = phi ptr [ %175, %.lr.ph67 ], [ %.0.pr, %.lr.ph67.preheader ]
  %176 = getelementptr inbounds i8, ptr %.06674, i64 36
  store i32 0, ptr %176, align 4, !tbaa !48
  %177 = load ptr, ptr %175, align 8, !tbaa !45
  %.not60 = icmp eq ptr %177, null
  br i1 %.not60, label %.critedge3, label %.lr.ph67

.critedge3:                                       ; preds = %.lr.ph67, %.lr.ph67.preheader, %173, %162
  store i32 %32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2620), align 4, !tbaa !25
  %178 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2904), align 8, !tbaa !14
  store i32 %178, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 444), align 4, !tbaa !9
  br label %179

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

declare void @qh_errexit(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) 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) local_unnamed_addr #2

declare i32 @qh_checklists(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, !12, i64 2984, !11, i64 2992}
!11 = !{!"int", !7, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!"long", !7, i64 0}
!14 = !{!10, !11, i64 2904}
!15 = !{!10, !13, i64 2600}
!16 = !{!7, !7, i64 0}
!17 = !{!10, !12, i64 2424}
!18 = !{!19, !11, i64 8}
!19 = !{!"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}
!20 = !{!19, !11, i64 4}
!21 = !{!19, !11, i64 0}
!22 = !{!10, !11, i64 2584}
!23 = !{!10, !11, i64 2568}
!24 = !{!10, !11, i64 2572}
!25 = !{!10, !11, i64 2620}
!26 = !{!10, !11, i64 544}
!27 = !{!10, !11, i64 136}
!28 = !{!10, !11, i64 536}
!29 = !{!30, !11, i64 108}
!30 = !{!"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}
!31 = !{!32, !11, i64 88}
!32 = !{!"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}
!33 = !{!10, !11, i64 476}
!34 = !{!10, !11, i64 2968}
!35 = !{!10, !11, i64 2576}
!36 = !{!10, !11, i64 2592}
!37 = !{!10, !6, i64 2944}
!38 = !{!10, !11, i64 2952}
!39 = !{!10, !11, i64 2956}
!40 = !{!10, !11, i64 2960}
!41 = !{!10, !11, i64 2964}
!42 = !{!10, !11, i64 2760}
!43 = !{!10, !11, i64 2784}
!44 = !{!10, !12, i64 2456}
!45 = !{!12, !12, i64 0}
!46 = !{!30, !11, i64 104}
!47 = !{!10, !11, i64 2788}
!48 = !{!49, !11, i64 36}
!49 = !{!"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: EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass