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

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

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

@qh_qh = external global %struct.qhT, align 8
@qh_qhstat = external global %struct.qhstatT, align 8
@.str.67 = external hidden unnamed_addr constant [2 x i8], align 1
@qhmem = external global %struct.qhmemT, align 8
@.str.135 = external hidden unnamed_addr constant [78 x i8], align 1
@.str.136 = external hidden unnamed_addr constant [89 x i8], align 1
@.str.137 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.138 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.139 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.140 = external hidden unnamed_addr constant [95 x i8], align 1
@.str.141 = external hidden unnamed_addr constant [35 x i8], align 1

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

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

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @qh_checkdelridge() #2

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

declare void @qh_vertexneighbors() #1

; Function Attrs: nounwind uwtable
define dso_local void @qh_mergecycle(ptr noundef %0, ptr noundef %1) #2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  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 4, ptr %5) #3
  store i32 0, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #3
  store i32 0, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  %9 = load i32, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 216), align 8, !tbaa !11
  %10 = add nsw i32 %9, 1
  store i32 %10, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 216), align 8, !tbaa !11
  %11 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 78), align 8, !tbaa !12
  %12 = icmp ne i32 %11, 0
  br i1 %12, label %13, label %24

13:                                               ; preds = %2
  %14 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 209), align 8, !tbaa !16
  %15 = icmp ne i32 %14, 0
  br i1 %15, label %16, label %24

16:                                               ; preds = %13
  %17 = load i32, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 216), align 8, !tbaa !11
  %18 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 246), align 4, !tbaa !17
  %19 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 78), align 8, !tbaa !12
  %20 = add nsw i32 %18, %19
  %21 = icmp sgt i32 %17, %20
  br i1 %21, label %22, label %23

22:                                               ; preds = %16
  call void @qh_tracemerging()
  br label %23

23:                                               ; preds = %22, %16
  br label %24

24:                                               ; preds = %23, %13, %2
  %25 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 96), align 8, !tbaa !18
  %26 = load i32, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 216), align 8, !tbaa !11
  %27 = icmp eq i32 %25, %26
  br i1 %27, label %28, label %30

28:                                               ; preds = %24
  %29 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 92), align 8, !tbaa !19
  store i32 %29, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !20
  store i32 %29, ptr getelementptr inbounds (%struct.qhmemT, ptr @qhmem, i32 0, i32 14), align 8, !tbaa !21
  br label %30

30:                                               ; preds = %28, %24
  %31 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !20
  %32 = icmp sge i32 %31, 2
  br i1 %32, label %33, label %42

33:                                               ; preds = %30
  %34 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !23
  %35 = load i32, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 216), align 8, !tbaa !11
  %36 = load ptr, ptr %3, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.facetT, ptr %36, i32 0, i32 14
  %38 = load i32, ptr %37, align 4, !tbaa !24
  %39 = load ptr, ptr %4, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.facetT, ptr %39, i32 0, i32 14
  %41 = load i32, ptr %40, align 4, !tbaa !24
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %34, i32 noundef 2030, ptr noundef @.str.135, i32 noundef %35, i32 noundef %38, i32 noundef %41)
  br label %42

42:                                               ; preds = %33, %30
  %43 = load ptr, ptr %4, align 8, !tbaa !5
  %44 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 170), align 8, !tbaa !26
  %45 = icmp eq ptr %43, %44
  br i1 %45, label %46, label %57

46:                                               ; preds = %42
  %47 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !20
  store i32 %47, ptr %6, align 4, !tbaa !9
  store i32 4, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !20
  %48 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !23
  %49 = load i32, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 216), align 8, !tbaa !11
  %50 = load ptr, ptr %3, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.facetT, ptr %50, i32 0, i32 14
  %52 = load i32, ptr %51, align 4, !tbaa !24
  %53 = load ptr, ptr %4, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.facetT, ptr %53, i32 0, i32 14
  %55 = load i32, ptr %54, align 4, !tbaa !24
  %56 = 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 %48, i32 noundef 8068, ptr noundef @.str.136, i32 noundef %49, i32 noundef %52, i32 noundef %55, i32 noundef %56)
  store i32 1, ptr %5, align 4, !tbaa !9
  br label %57

57:                                               ; preds = %46, %42
  %58 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !20
  %59 = icmp sge i32 %58, 4
  br i1 %59, label %60, label %86

60:                                               ; preds = %57
  %61 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !23
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %61, i32 noundef 8069, ptr noundef @.str.137)
  %62 = load ptr, ptr %3, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.facetT, ptr %62, i32 0, i32 4
  %64 = load ptr, ptr %63, align 8, !tbaa !11
  store ptr %64, ptr %8, align 8, !tbaa !5
  br label %65

65:                                               ; preds = %82, %60
  %66 = load ptr, ptr %8, align 8, !tbaa !5
  %67 = icmp ne ptr %66, null
  br i1 %67, label %68, label %84

68:                                               ; preds = %65
  %69 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !23
  %70 = load ptr, ptr %8, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.facetT, ptr %70, i32 0, i32 14
  %72 = load i32, ptr %71, align 4, !tbaa !24
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %69, i32 noundef 8070, ptr noundef @.str.138, i32 noundef %72)
  br label %73

73:                                               ; preds = %68
  %74 = load ptr, ptr %8, align 8, !tbaa !5
  %75 = load ptr, ptr %3, align 8, !tbaa !5
  %76 = icmp eq ptr %74, %75
  br i1 %76, label %77, label %78

77:                                               ; preds = %73
  br label %82

78:                                               ; preds = %73
  %79 = load ptr, ptr %8, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.facetT, ptr %79, i32 0, i32 4
  %81 = load ptr, ptr %80, align 8, !tbaa !11
  br label %82

82:                                               ; preds = %78, %77
  %83 = phi ptr [ null, %77 ], [ %81, %78 ]
  store ptr %83, ptr %8, align 8, !tbaa !5
  br label %65, !llvm.loop !28

84:                                               ; preds = %65
  %85 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !23
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %85, i32 noundef 8071, ptr noundef @.str.67)
  br label %86

86:                                               ; preds = %84, %57
  %87 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !20
  %88 = icmp sge i32 %87, 4
  br i1 %88, label %89, label %92

89:                                               ; preds = %86
  %90 = load ptr, ptr %3, align 8, !tbaa !5
  %91 = load ptr, ptr %4, align 8, !tbaa !5
  call void @qh_errprint(ptr noundef @.str.139, ptr noundef %90, ptr noundef %91, ptr noundef null, ptr noundef null)
  br label %92

92:                                               ; preds = %89, %86
  %93 = load ptr, ptr %4, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.facetT, ptr %93, i32 0, i32 15
  %95 = load i32, ptr %94, align 8
  %96 = lshr i32 %95, 9
  %97 = and i32 %96, 1
  %98 = icmp ne i32 %97, 0
  br i1 %98, label %99, label %116

99:                                               ; preds = %92
  %100 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 98), align 8, !tbaa !30
  %101 = icmp ne i32 %100, 0
  br i1 %101, label %105, label %102

102:                                              ; preds = %99
  %103 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !23
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %103, i32 noundef 6224, ptr noundef @.str.140)
  %104 = load ptr, ptr %4, align 8, !tbaa !5
  call void @qh_errexit(i32 noundef 5, ptr noundef %104, ptr noundef null)
  br label %105

105:                                              ; preds = %102, %99
  %106 = load ptr, ptr %4, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.facetT, ptr %106, i32 0, i32 15
  %108 = load i32, ptr %107, align 8
  %109 = and i32 %108, -513
  %110 = or i32 %109, 0
  store i32 %110, ptr %107, align 8
  %111 = load ptr, ptr %4, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.facetT, ptr %111, i32 0, i32 15
  %113 = load i32, ptr %112, align 8
  %114 = and i32 %113, -268435457
  %115 = or i32 %114, 0
  store i32 %115, ptr %112, align 8
  br label %116

116:                                              ; preds = %105, %92
  %117 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 14), align 4, !tbaa !31
  %118 = icmp ne i32 %117, 0
  br i1 %118, label %119, label %120

119:                                              ; preds = %116
  call void @qh_checkdelridge()
  br label %120

120:                                              ; preds = %119, %116
  %121 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 125), align 8, !tbaa !32
  %122 = icmp ne i32 %121, 0
  br i1 %122, label %124, label %123

123:                                              ; preds = %120
  call void @qh_vertexneighbors()
  br label %124

124:                                              ; preds = %123, %120
  %125 = load ptr, ptr %3, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.facetT, ptr %125, i32 0, i32 8
  %127 = load ptr, ptr %126, align 8, !tbaa !33
  %128 = getelementptr inbounds %struct.setT, ptr %127, i32 0, i32 1
  %129 = getelementptr inbounds [1 x %union.setelemT], ptr %128, i64 0, i64 0
  %130 = load ptr, ptr %129, align 8, !tbaa !11
  store ptr %130, ptr %7, align 8, !tbaa !5
  %131 = load ptr, ptr %4, align 8, !tbaa !5
  call void @qh_makeridges(ptr noundef %131)
  %132 = load ptr, ptr %3, align 8, !tbaa !5
  %133 = load ptr, ptr %4, align 8, !tbaa !5
  call void @qh_mergecycle_neighbors(ptr noundef %132, ptr noundef %133)
  %134 = load ptr, ptr %3, align 8, !tbaa !5
  %135 = load ptr, ptr %4, align 8, !tbaa !5
  call void @qh_mergecycle_ridges(ptr noundef %134, ptr noundef %135)
  %136 = load ptr, ptr %3, align 8, !tbaa !5
  %137 = load ptr, ptr %4, align 8, !tbaa !5
  call void @qh_mergecycle_vneighbors(ptr noundef %136, ptr noundef %137)
  %138 = load ptr, ptr %4, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.facetT, ptr %138, i32 0, i32 8
  %140 = load ptr, ptr %139, align 8, !tbaa !33
  %141 = getelementptr inbounds %struct.setT, ptr %140, i32 0, i32 1
  %142 = getelementptr inbounds [1 x %union.setelemT], ptr %141, i64 0, i64 0
  %143 = load ptr, ptr %142, align 8, !tbaa !11
  %144 = load ptr, ptr %7, align 8, !tbaa !5
  %145 = icmp ne ptr %143, %144
  br i1 %145, label %146, label %150

146:                                              ; preds = %124
  %147 = load ptr, ptr %4, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.facetT, ptr %147, i32 0, i32 8
  %149 = load ptr, ptr %7, align 8, !tbaa !5
  call void @qh_setaddnth(ptr noundef %148, i32 noundef 0, ptr noundef %149)
  br label %150

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

157:                                              ; preds = %150
  %158 = load ptr, ptr %4, align 8, !tbaa !5
  %159 = getelementptr inbounds %struct.facetT, ptr %158, i32 0, i32 8
  %160 = load ptr, ptr %159, align 8, !tbaa !33
  call void @qh_newvertices(ptr noundef %160)
  br label %161

161:                                              ; preds = %157, %150
  %162 = load ptr, ptr %3, align 8, !tbaa !5
  %163 = load ptr, ptr %4, align 8, !tbaa !5
  call void @qh_mergecycle_facets(ptr noundef %162, ptr noundef %163)
  %164 = load ptr, ptr %3, align 8, !tbaa !5
  %165 = load ptr, ptr %4, align 8, !tbaa !5
  call void @qh_tracemerge(ptr noundef %164, ptr noundef %165, i32 noundef 13)
  %166 = load i32, ptr %5, align 4, !tbaa !9
  %167 = icmp ne i32 %166, 0
  br i1 %167, label %168, label %171

168:                                              ; preds = %161
  %169 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !23
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %169, i32 noundef 8072, ptr noundef @.str.141)
  %170 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %170, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !20
  br label %171

171:                                              ; preds = %168, %161
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #3
  ret void
}

; Function Attrs: nounwind uwtable
declare dso_local void @qh_tracemerging() #2

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

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

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

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

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }

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

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


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

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

@qh_qh = external local_unnamed_addr global %struct.qhT, align 8
@qh_qhstat = external local_unnamed_addr global %struct.qhstatT, align 8
@.str.67 = external hidden unnamed_addr constant [2 x i8], align 1
@qhmem = external local_unnamed_addr global %struct.qhmemT, align 8
@.str.135 = external hidden unnamed_addr constant [78 x i8], align 1
@.str.136 = external hidden unnamed_addr constant [89 x i8], align 1
@.str.137 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.138 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.139 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.140 = external hidden unnamed_addr constant [95 x i8], align 1
@.str.141 = external hidden unnamed_addr constant [35 x i8], align 1

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

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

declare void @qh_setaddnth(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local void @qh_checkdelridge() local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local void @qh_makeridges(ptr noundef) local_unnamed_addr #1

declare void @qh_vertexneighbors() local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local void @qh_mergecycle(ptr noundef %0, ptr noundef %1) local_unnamed_addr #1 {
  %3 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1728), align 8, !tbaa !5
  %4 = add nsw i32 %3, 1
  store i32 %4, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1728), align 8, !tbaa !5
  %5 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 480), align 8, !tbaa !8
  %6 = icmp ne i32 %5, 0
  %7 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2744), align 8
  %8 = icmp ne i32 %7, 0
  %or.cond = select i1 %6, i1 %8, i1 false
  br i1 %or.cond, label %9, label %13

9:                                                ; preds = %2
  %10 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2972), align 4, !tbaa !14
  %11 = add nsw i32 %10, %5
  %.not = icmp slt i32 %3, %11
  br i1 %.not, label %13, label %12

12:                                               ; preds = %9
  tail call void @qh_tracemerging()
  %.pre = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1728), align 8, !tbaa !5
  br label %13

13:                                               ; preds = %9, %12, %2
  %14 = phi i32 [ %4, %9 ], [ %.pre, %12 ], [ %4, %2 ]
  %15 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 560), align 8, !tbaa !15
  %16 = icmp eq i32 %15, %14
  br i1 %16, label %17, label %thread-pre-split

17:                                               ; preds = %13
  %18 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 536), align 8, !tbaa !16
  store i32 %18, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !17
  store i32 %18, ptr getelementptr inbounds (i8, ptr @qhmem, i64 88), align 8, !tbaa !18
  br label %19

thread-pre-split:                                 ; preds = %13
  %.pr = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !17
  br label %19

19:                                               ; preds = %thread-pre-split, %17
  %20 = phi i32 [ %.pr, %thread-pre-split ], [ %18, %17 ]
  %21 = icmp sgt i32 %20, 1
  br i1 %21, label %22, label %28

22:                                               ; preds = %19
  %23 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !20
  %24 = getelementptr inbounds i8, ptr %0, i64 108
  %25 = load i32, ptr %24, align 4, !tbaa !21
  %26 = getelementptr inbounds i8, ptr %1, i64 108
  %27 = load i32, ptr %26, align 4, !tbaa !21
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %23, i32 noundef 2030, ptr noundef nonnull @.str.135, i32 noundef %14, i32 noundef %25, i32 noundef %27) #2
  %.pre55.pre = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !17
  br label %28

28:                                               ; preds = %22, %19
  %.pre55 = phi i32 [ %.pre55.pre, %22 ], [ %20, %19 ]
  %29 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2504), align 8, !tbaa !23
  %.not50 = icmp eq ptr %29, %1
  br i1 %.not50, label %30, label %38

30:                                               ; preds = %28
  store i32 4, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !17
  %31 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !20
  %32 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1728), align 8, !tbaa !5
  %33 = getelementptr inbounds i8, ptr %0, i64 108
  %34 = load i32, ptr %33, align 4, !tbaa !21
  %35 = getelementptr inbounds i8, ptr %1, i64 108
  %36 = load i32, ptr %35, align 4, !tbaa !21
  %37 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2620), align 4, !tbaa !24
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %31, i32 noundef 8068, ptr noundef nonnull @.str.136, i32 noundef %32, i32 noundef %34, i32 noundef %36, i32 noundef %37) #2
  %.pre54 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !17
  br label %38

38:                                               ; preds = %30, %28
  %39 = phi i32 [ %.pre54, %30 ], [ %.pre55, %28 ]
  %.038 = phi i32 [ %.pre55, %30 ], [ 0, %28 ]
  %40 = icmp sgt i32 %39, 3
  br i1 %40, label %41, label %.thread

41:                                               ; preds = %38
  %42 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !20
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %42, i32 noundef 8069, ptr noundef nonnull @.str.137) #2
  %43 = getelementptr inbounds i8, ptr %0, i64 32
  %44 = load ptr, ptr %43, align 8, !tbaa !5
  %.not4252 = icmp eq ptr %44, null
  br i1 %.not4252, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %41, %49
  %.053 = phi ptr [ %51, %49 ], [ %44, %41 ]
  %45 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !20
  %46 = getelementptr inbounds i8, ptr %.053, i64 108
  %47 = load i32, ptr %46, align 4, !tbaa !21
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %45, i32 noundef 8070, ptr noundef nonnull @.str.138, i32 noundef %47) #2
  %48 = icmp eq ptr %.053, %0
  br i1 %48, label %._crit_edge, label %49

49:                                               ; preds = %.lr.ph
  %50 = getelementptr inbounds i8, ptr %.053, i64 32
  %51 = load ptr, ptr %50, align 8, !tbaa !5
  %.not42 = icmp eq ptr %51, null
  br i1 %.not42, label %._crit_edge, label %.lr.ph, !llvm.loop !25

._crit_edge:                                      ; preds = %.lr.ph, %49, %41
  %52 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !20
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %52, i32 noundef 8071, ptr noundef nonnull @.str.67) #2
  %.pr51 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !17
  %53 = icmp sgt i32 %.pr51, 3
  br i1 %53, label %54, label %.thread

54:                                               ; preds = %._crit_edge
  tail call void @qh_errprint(ptr noundef nonnull @.str.139, ptr noundef %0, ptr noundef %1, ptr noundef null, ptr noundef null) #2
  br label %.thread

.thread:                                          ; preds = %38, %54, %._crit_edge
  %55 = getelementptr inbounds i8, ptr %1, i64 112
  %56 = load i32, ptr %55, align 8
  %57 = and i32 %56, 512
  %.not43 = icmp eq i32 %57, 0
  br i1 %.not43, label %65, label %58

58:                                               ; preds = %.thread
  %59 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 568), align 8, !tbaa !27
  %.not44 = icmp eq i32 %59, 0
  br i1 %.not44, label %60, label %62

60:                                               ; preds = %58
  %61 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !20
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %61, i32 noundef 6224, ptr noundef nonnull @.str.140) #2
  tail call void @qh_errexit(i32 noundef 5, ptr noundef nonnull %1, ptr noundef null) #2
  %.pre56 = load i32, ptr %55, align 8
  br label %62

62:                                               ; preds = %60, %58
  %63 = phi i32 [ %.pre56, %60 ], [ %56, %58 ]
  %64 = and i32 %63, -268435969
  store i32 %64, ptr %55, align 8
  br label %65

65:                                               ; preds = %62, %.thread
  %66 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 60), align 4, !tbaa !28
  %.not45 = icmp eq i32 %66, 0
  br i1 %.not45, label %68, label %67

67:                                               ; preds = %65
  tail call void @qh_checkdelridge()
  br label %68

68:                                               ; preds = %67, %65
  %69 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 1720), align 8, !tbaa !29
  %.not46 = icmp eq i32 %69, 0
  br i1 %.not46, label %70, label %71

70:                                               ; preds = %68
  tail call void @qh_vertexneighbors() #2
  br label %71

71:                                               ; preds = %70, %68
  %72 = getelementptr inbounds i8, ptr %0, i64 64
  %73 = load ptr, ptr %72, align 8, !tbaa !30
  %74 = getelementptr inbounds i8, ptr %73, i64 8
  %75 = load ptr, ptr %74, align 8, !tbaa !5
  tail call void @qh_makeridges(ptr noundef nonnull %1)
  tail call void @qh_mergecycle_neighbors(ptr noundef %0, ptr noundef nonnull %1)
  tail call void @qh_mergecycle_ridges(ptr noundef %0, ptr noundef nonnull %1)
  tail call void @qh_mergecycle_vneighbors(ptr noundef %0, ptr noundef nonnull %1)
  %76 = getelementptr inbounds i8, ptr %1, i64 64
  %77 = load ptr, ptr %76, align 8, !tbaa !30
  %78 = getelementptr inbounds i8, ptr %77, i64 8
  %79 = load ptr, ptr %78, align 8, !tbaa !5
  %.not47 = icmp eq ptr %79, %75
  br i1 %.not47, label %81, label %80

80:                                               ; preds = %71
  tail call void @qh_setaddnth(ptr noundef nonnull %76, i32 noundef 0, ptr noundef %75) #2
  br label %81

81:                                               ; preds = %80, %71
  %82 = load i32, ptr %55, align 8
  %83 = and i32 %82, 1024
  %.not48 = icmp eq i32 %83, 0
  br i1 %.not48, label %84, label %86

84:                                               ; preds = %81
  %85 = load ptr, ptr %76, align 8, !tbaa !30
  tail call void @qh_newvertices(ptr noundef %85)
  br label %86

86:                                               ; preds = %84, %81
  tail call void @qh_mergecycle_facets(ptr noundef nonnull %0, ptr noundef nonnull %1)
  tail call void @qh_tracemerge(ptr noundef nonnull %0, ptr noundef nonnull %1, i32 noundef 13)
  br i1 %.not50, label %87, label %89

87:                                               ; preds = %86
  %88 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !20
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %88, i32 noundef 8072, ptr noundef nonnull @.str.141) #2
  store i32 %.038, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !17
  br label %89

89:                                               ; preds = %87, %86
  ret void
}

; Function Attrs: nounwind uwtable
declare dso_local void @qh_tracemerging() local_unnamed_addr #1

declare void @qh_errprint(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @qh_newvertices(ptr noundef) local_unnamed_addr #1

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

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

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


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