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

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

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

@__const.qh_printcentrum.green = external hidden unnamed_addr constant [3 x double], align 16
@.str.53 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.54 = external hidden unnamed_addr constant [173 x i8], align 1
@.str.55 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.56 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.57 = external hidden unnamed_addr constant [7 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, 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_distplane(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @qh_printcentrum(ptr noundef %0, ptr noundef %1, ptr noundef %2, double noundef %3) #2 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca double, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca [4 x double], align 16
  %13 = alloca [4 x double], align 16
  %14 = alloca [4 x double], align 16
  %15 = alloca double, align 8
  %16 = alloca [3 x double], align 16
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store double %3, ptr %8, align 8, !tbaa !9
  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 4, ptr %11) #4
  store i32 0, ptr %11, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 32, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 32, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 32, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr %16) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %16, ptr align 16 @__const.qh_printcentrum.green, i64 24, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  %19 = load ptr, ptr %5, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.qhT, ptr %19, i32 0, i32 189
  %21 = load i32, ptr %20, align 8, !tbaa !13
  %22 = icmp eq i32 %21, 2
  br i1 %22, label %23, label %38

23:                                               ; preds = %4
  %24 = load ptr, ptr %7, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.facetT, ptr %24, i32 0, i32 5
  %26 = load ptr, ptr %25, align 8, !tbaa !18
  %27 = icmp ne ptr %26, null
  br i1 %27, label %34, label %28

28:                                               ; preds = %23
  %29 = load ptr, ptr %5, align 8, !tbaa !5
  %30 = load ptr, ptr %7, align 8, !tbaa !5
  %31 = call ptr @qh_getcentrum(ptr noundef %29, ptr noundef %30)
  %32 = load ptr, ptr %7, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.facetT, ptr %32, i32 0, i32 5
  store ptr %31, ptr %33, align 8, !tbaa !18
  br label %34

34:                                               ; preds = %28, %23
  %35 = load ptr, ptr %7, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.facetT, ptr %35, i32 0, i32 5
  %37 = load ptr, ptr %36, align 8, !tbaa !18
  store ptr %37, ptr %9, align 8, !tbaa !5
  br label %42

38:                                               ; preds = %4
  %39 = load ptr, ptr %5, align 8, !tbaa !5
  %40 = load ptr, ptr %7, align 8, !tbaa !5
  %41 = call ptr @qh_getcentrum(ptr noundef %39, ptr noundef %40)
  store ptr %41, ptr %9, align 8, !tbaa !5
  store i32 1, ptr %11, align 4, !tbaa !11
  br label %42

42:                                               ; preds = %38, %34
  %43 = load ptr, ptr %5, align 8, !tbaa !5
  %44 = load ptr, ptr %6, align 8, !tbaa !5
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %43, ptr noundef %44, i32 noundef 9072, ptr noundef @.str.53)
  %45 = load ptr, ptr %5, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.qhT, ptr %45, i32 0, i32 234
  %47 = load i32, ptr %46, align 4, !tbaa !20
  %48 = icmp ne i32 %47, 0
  br i1 %48, label %49, label %57

49:                                               ; preds = %42
  %50 = load ptr, ptr %5, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.qhT, ptr %50, i32 0, i32 234
  store i32 0, ptr %51, align 4, !tbaa !20
  %52 = load ptr, ptr %5, align 8, !tbaa !5
  %53 = load ptr, ptr %6, align 8, !tbaa !5
  %54 = load ptr, ptr %7, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.facetT, ptr %54, i32 0, i32 14
  %56 = load i32, ptr %55, align 4, !tbaa !21
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %52, ptr noundef %53, i32 noundef 9073, ptr noundef @.str.54, i32 noundef %56)
  br label %63

57:                                               ; preds = %42
  %58 = load ptr, ptr %5, align 8, !tbaa !5
  %59 = load ptr, ptr %6, align 8, !tbaa !5
  %60 = load ptr, ptr %7, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.facetT, ptr %60, i32 0, i32 14
  %62 = load i32, ptr %61, align 4, !tbaa !21
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %58, ptr noundef %59, i32 noundef 9074, ptr noundef @.str.55, i32 noundef %62)
  br label %63

63:                                               ; preds = %57, %49
  %64 = load ptr, ptr %7, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.facetT, ptr %64, i32 0, i32 8
  %66 = load ptr, ptr %65, align 8, !tbaa !22
  %67 = getelementptr inbounds %struct.setT, ptr %66, i32 0, i32 1
  %68 = getelementptr inbounds [1 x %union.setelemT], ptr %67, i64 0, i64 0
  %69 = load ptr, ptr %68, align 8, !tbaa !23
  store ptr %69, ptr %17, align 8, !tbaa !5
  %70 = load ptr, ptr %5, align 8, !tbaa !5
  %71 = load ptr, ptr %17, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.vertexT, ptr %71, i32 0, i32 2
  %73 = load ptr, ptr %72, align 8, !tbaa !24
  %74 = load ptr, ptr %7, align 8, !tbaa !5
  call void @qh_distplane(ptr noundef %70, ptr noundef %73, ptr noundef %74, ptr noundef %15)
  %75 = load ptr, ptr %5, align 8, !tbaa !5
  %76 = load ptr, ptr %17, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.vertexT, ptr %76, i32 0, i32 2
  %78 = load ptr, ptr %77, align 8, !tbaa !24
  %79 = load ptr, ptr %7, align 8, !tbaa !5
  %80 = load double, ptr %15, align 8, !tbaa !9
  %81 = call ptr @qh_projectpoint(ptr noundef %75, ptr noundef %78, ptr noundef %79, double noundef %80)
  store ptr %81, ptr %10, align 8, !tbaa !5
  %82 = load ptr, ptr %5, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.qhT, ptr %82, i32 0, i32 110
  %84 = load i32, ptr %83, align 8, !tbaa !26
  store i32 %84, ptr %18, align 4, !tbaa !11
  br label %85

85:                                               ; preds = %89, %63
  %86 = load i32, ptr %18, align 4, !tbaa !11
  %87 = add nsw i32 %86, -1
  store i32 %87, ptr %18, align 4, !tbaa !11
  %88 = icmp ne i32 %86, 0
  br i1 %88, label %89, label %114

89:                                               ; preds = %85
  %90 = load ptr, ptr %10, align 8, !tbaa !5
  %91 = load i32, ptr %18, align 4, !tbaa !11
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds double, ptr %90, i64 %92
  %94 = load double, ptr %93, align 8, !tbaa !9
  %95 = load ptr, ptr %9, align 8, !tbaa !5
  %96 = load i32, ptr %18, align 4, !tbaa !11
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds double, ptr %95, i64 %97
  %99 = load double, ptr %98, align 8, !tbaa !9
  %100 = fsub double %94, %99
  %101 = load i32, ptr %18, align 4, !tbaa !11
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds [4 x double], ptr %12, i64 0, i64 %102
  store double %100, ptr %103, align 8, !tbaa !9
  %104 = load ptr, ptr %7, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.facetT, ptr %104, i32 0, i32 3
  %106 = load ptr, ptr %105, align 8, !tbaa !27
  %107 = load i32, ptr %18, align 4, !tbaa !11
  %108 = sext i32 %107 to i64
  %109 = getelementptr inbounds double, ptr %106, i64 %108
  %110 = load double, ptr %109, align 8, !tbaa !9
  %111 = load i32, ptr %18, align 4, !tbaa !11
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds [4 x double], ptr %14, i64 0, i64 %112
  store double %110, ptr %113, align 8, !tbaa !9
  br label %85, !llvm.loop !28

114:                                              ; preds = %85
  %115 = load ptr, ptr %5, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.qhT, ptr %115, i32 0, i32 110
  %117 = load i32, ptr %116, align 8, !tbaa !26
  %118 = icmp eq i32 %117, 2
  br i1 %118, label %119, label %122

119:                                              ; preds = %114
  %120 = getelementptr inbounds [4 x double], ptr %12, i64 0, i64 2
  store double 0.000000e+00, ptr %120, align 16, !tbaa !9
  %121 = getelementptr inbounds [4 x double], ptr %14, i64 0, i64 2
  store double 0.000000e+00, ptr %121, align 16, !tbaa !9
  br label %140

122:                                              ; preds = %114
  %123 = load ptr, ptr %5, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.qhT, ptr %123, i32 0, i32 110
  %125 = load i32, ptr %124, align 8, !tbaa !26
  %126 = icmp eq i32 %125, 4
  br i1 %126, label %127, label %139

127:                                              ; preds = %122
  %128 = load ptr, ptr %5, align 8, !tbaa !5
  %129 = getelementptr inbounds [4 x double], ptr %12, i64 0, i64 0
  %130 = getelementptr inbounds [4 x double], ptr %12, i64 0, i64 0
  call void @qh_projectdim3(ptr noundef %128, ptr noundef %129, ptr noundef %130)
  %131 = load ptr, ptr %5, align 8, !tbaa !5
  %132 = getelementptr inbounds [4 x double], ptr %14, i64 0, i64 0
  %133 = getelementptr inbounds [4 x double], ptr %14, i64 0, i64 0
  call void @qh_projectdim3(ptr noundef %131, ptr noundef %132, ptr noundef %133)
  %134 = load ptr, ptr %5, align 8, !tbaa !5
  %135 = getelementptr inbounds [4 x double], ptr %14, i64 0, i64 0
  %136 = load ptr, ptr %5, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.qhT, ptr %136, i32 0, i32 55
  %138 = load i32, ptr %137, align 8, !tbaa !30
  call void @qh_normalize2(ptr noundef %134, ptr noundef %135, i32 noundef %138, i32 noundef 1, ptr noundef null, ptr noundef null)
  br label %139

139:                                              ; preds = %127, %122
  br label %140

140:                                              ; preds = %139, %119
  %141 = getelementptr inbounds [4 x double], ptr %12, i64 0, i64 0
  %142 = getelementptr inbounds [4 x double], ptr %14, i64 0, i64 0
  %143 = getelementptr inbounds [4 x double], ptr %13, i64 0, i64 0
  call void @qh_crossproduct(i32 noundef 3, ptr noundef %141, ptr noundef %142, ptr noundef %143)
  %144 = load ptr, ptr %5, align 8, !tbaa !5
  %145 = load ptr, ptr %6, align 8, !tbaa !5
  %146 = getelementptr inbounds [4 x double], ptr %12, i64 0, i64 0
  %147 = load double, ptr %146, align 16, !tbaa !9
  %148 = getelementptr inbounds [4 x double], ptr %12, i64 0, i64 1
  %149 = load double, ptr %148, align 8, !tbaa !9
  %150 = getelementptr inbounds [4 x double], ptr %12, i64 0, i64 2
  %151 = load double, ptr %150, align 16, !tbaa !9
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %144, ptr noundef %145, i32 noundef 9075, ptr noundef @.str.56, double noundef %147, double noundef %149, double noundef %151)
  %152 = load ptr, ptr %5, align 8, !tbaa !5
  %153 = load ptr, ptr %6, align 8, !tbaa !5
  %154 = getelementptr inbounds [4 x double], ptr %13, i64 0, i64 0
  %155 = load double, ptr %154, align 16, !tbaa !9
  %156 = getelementptr inbounds [4 x double], ptr %13, i64 0, i64 1
  %157 = load double, ptr %156, align 8, !tbaa !9
  %158 = getelementptr inbounds [4 x double], ptr %13, i64 0, i64 2
  %159 = load double, ptr %158, align 16, !tbaa !9
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %152, ptr noundef %153, i32 noundef 9076, ptr noundef @.str.56, double noundef %155, double noundef %157, double noundef %159)
  %160 = load ptr, ptr %5, align 8, !tbaa !5
  %161 = load ptr, ptr %6, align 8, !tbaa !5
  %162 = getelementptr inbounds [4 x double], ptr %14, i64 0, i64 0
  %163 = load double, ptr %162, align 16, !tbaa !9
  %164 = getelementptr inbounds [4 x double], ptr %14, i64 0, i64 1
  %165 = load double, ptr %164, align 8, !tbaa !9
  %166 = getelementptr inbounds [4 x double], ptr %14, i64 0, i64 2
  %167 = load double, ptr %166, align 16, !tbaa !9
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %160, ptr noundef %161, i32 noundef 9077, ptr noundef @.str.56, double noundef %163, double noundef %165, double noundef %167)
  %168 = load ptr, ptr %5, align 8, !tbaa !5
  %169 = load ptr, ptr %6, align 8, !tbaa !5
  %170 = load ptr, ptr %9, align 8, !tbaa !5
  call void @qh_printpoint3(ptr noundef %168, ptr noundef %169, ptr noundef %170)
  %171 = load ptr, ptr %5, align 8, !tbaa !5
  %172 = load ptr, ptr %6, align 8, !tbaa !5
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %171, ptr noundef %172, i32 noundef 9078, ptr noundef @.str.57)
  %173 = load ptr, ptr %5, align 8, !tbaa !5
  %174 = load ptr, ptr %10, align 8, !tbaa !5
  %175 = load ptr, ptr %5, align 8, !tbaa !5
  %176 = getelementptr inbounds %struct.qhT, ptr %175, i32 0, i32 160
  %177 = load i32, ptr %176, align 8, !tbaa !31
  call void @qh_memfree(ptr noundef %173, ptr noundef %174, i32 noundef %177)
  %178 = load ptr, ptr %5, align 8, !tbaa !5
  %179 = load ptr, ptr %6, align 8, !tbaa !5
  %180 = load ptr, ptr %9, align 8, !tbaa !5
  %181 = load ptr, ptr %7, align 8, !tbaa !5
  %182 = getelementptr inbounds %struct.facetT, ptr %181, i32 0, i32 3
  %183 = load ptr, ptr %182, align 8, !tbaa !27
  %184 = load double, ptr %8, align 8, !tbaa !9
  %185 = getelementptr inbounds [3 x double], ptr %16, i64 0, i64 0
  call void @qh_printpointvect(ptr noundef %178, ptr noundef %179, ptr noundef %180, ptr noundef %183, ptr noundef null, double noundef %184, ptr noundef %185)
  %186 = load i32, ptr %11, align 4, !tbaa !11
  %187 = icmp ne i32 %186, 0
  br i1 %187, label %188, label %194

188:                                              ; preds = %140
  %189 = load ptr, ptr %5, align 8, !tbaa !5
  %190 = load ptr, ptr %9, align 8, !tbaa !5
  %191 = load ptr, ptr %5, align 8, !tbaa !5
  %192 = getelementptr inbounds %struct.qhT, ptr %191, i32 0, i32 160
  %193 = load i32, ptr %192, align 8, !tbaa !31
  call void @qh_memfree(ptr noundef %189, ptr noundef %190, i32 noundef %193)
  br label %194

194:                                              ; preds = %188, %140
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 4, 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
  ret void
}

declare ptr @qh_getcentrum(ptr noundef, ptr noundef) #1

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !12, i64 2616}
!14 = !{!"qhT", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !10, i64 24, !12, i64 32, !12, i64 36, !12, i64 40, !12, i64 44, !12, i64 48, !12, i64 52, !12, i64 56, !12, i64 60, !10, i64 64, !10, i64 72, !12, i64 80, !12, i64 84, !12, i64 88, !12, i64 92, !12, i64 96, !12, i64 100, !6, i64 104, !12, i64 112, !12, i64 116, !6, i64 120, !12, i64 128, !12, i64 132, !12, i64 136, !12, i64 140, !12, i64 144, !12, i64 148, !12, i64 152, !10, i64 160, !10, i64 168, !12, i64 176, !12, i64 180, !12, i64 184, !12, i64 188, !10, i64 192, !10, i64 200, !12, i64 208, !12, i64 212, !10, i64 216, !12, i64 224, !12, i64 228, !12, i64 232, !12, i64 236, !12, i64 240, !12, i64 244, !12, i64 248, !12, i64 252, !12, i64 256, !12, i64 260, !12, i64 264, !12, i64 268, !12, i64 272, !12, i64 276, !12, i64 280, !12, i64 284, !12, i64 288, !12, i64 292, !12, i64 296, !7, i64 300, !12, i64 416, !12, i64 420, !12, i64 424, !12, i64 428, !12, i64 432, !12, i64 436, !12, i64 440, !12, i64 444, !10, i64 448, !10, i64 456, !10, i64 464, !12, i64 472, !12, i64 476, !12, i64 480, !12, i64 484, !12, i64 488, !12, i64 492, !12, i64 496, !12, i64 500, !12, i64 504, !12, i64 508, !12, i64 512, !12, i64 516, !12, i64 520, !12, i64 524, !12, i64 528, !12, i64 532, !12, i64 536, !12, i64 540, !12, i64 544, !10, i64 552, !12, i64 560, !12, i64 564, !12, i64 568, !12, i64 572, !12, i64 576, !12, i64 580, !12, i64 584, !12, i64 588, !10, i64 592, !12, i64 600, !6, i64 608, !6, i64 616, !12, i64 624, !12, i64 628, !12, i64 632, !12, i64 636, !12, i64 640, !6, i64 648, !12, i64 656, !6, i64 664, !12, i64 672, !7, i64 676, !12, i64 932, !7, i64 936, !7, i64 1192, !12, i64 1704, !12, i64 1708, !12, i64 1712, !12, i64 1716, !12, i64 1720, !12, i64 1724, !6, i64 1728, !6, i64 1736, !6, i64 1744, !6, i64 1752, !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, !12, i64 1912, !7, i64 1916, !7, i64 1928, !7, i64 2128, !7, i64 2168, !7, i64 2368, !6, i64 2408, !6, i64 2416, !6, i64 2424, !6, i64 2432, !12, i64 2440, !12, i64 2444, !12, i64 2448, !6, i64 2456, !6, i64 2464, !6, i64 2472, !6, i64 2480, !6, i64 2488, !12, i64 2496, !12, i64 2500, !6, i64 2504, !12, i64 2512, !6, i64 2520, !12, i64 2528, !6, i64 2536, !6, i64 2544, !6, i64 2552, !6, i64 2560, !12, i64 2568, !12, i64 2572, !12, i64 2576, !12, i64 2580, !12, i64 2584, !12, i64 2588, !12, i64 2592, !12, i64 2596, !15, i64 2600, !12, i64 2608, !12, i64 2612, !12, i64 2616, !12, i64 2620, !12, i64 2624, !6, i64 2632, !6, i64 2640, !12, i64 2648, !12, i64 2652, !12, i64 2656, !10, i64 2664, !12, i64 2672, !10, i64 2680, !10, i64 2688, !10, i64 2696, !12, i64 2704, !12, i64 2708, !12, i64 2712, !12, i64 2716, !12, i64 2720, !10, i64 2728, !10, i64 2736, !12, i64 2744, !12, i64 2748, !12, i64 2752, !12, i64 2756, !12, i64 2760, !12, i64 2764, !10, i64 2768, !10, i64 2776, !12, i64 2784, !12, i64 2788, !12, i64 2792, !12, i64 2796, !6, i64 2800, !6, i64 2808, !6, i64 2816, !6, i64 2824, !6, i64 2832, !6, i64 2840, !6, i64 2848, !6, i64 2856, !6, i64 2864, !12, i64 2872, !6, i64 2880, !6, i64 2888, !12, i64 2896, !12, i64 2900, !12, i64 2904, !6, i64 2912, !10, i64 2920, !10, i64 2928, !10, i64 2936, !10, i64 2944, !12, i64 2952, !12, i64 2956, !12, i64 2960, !12, i64 2964, !12, i64 2968, !12, i64 2972, !6, i64 2976, !12, i64 2984, !12, i64 2988, !7, i64 2992, !7, i64 3192, !12, i64 3232, !10, i64 3240, !6, i64 3248, !6, i64 3256, !6, i64 3264, !16, i64 3272, !17, i64 3424}
!15 = !{!"long", !7, i64 0}
!16 = !{!"qhmemT", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !12, i64 64, !6, i64 72, !6, i64 80, !12, i64 88, !12, i64 92, !12, i64 96, !12, i64 100, !12, i64 104, !12, i64 108, !12, i64 112, !12, i64 116, !12, i64 120, !12, i64 124, !12, i64 128, !12, i64 132, !12, i64 136, !12, i64 140, !12, i64 144}
!17 = !{!"qhstatT", !7, i64 0, !7, i64 1992, !7, i64 2256, !7, i64 4248, !7, i64 4746, !7, i64 4995, !7, i64 5248, !12, i64 5320, !12, i64 5324, !12, i64 5328, !12, i64 5332, !10, i64 5336}
!18 = !{!19, !6, i64 40}
!19 = !{!"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, !12, i64 104, !12, i64 108, !12, i64 112, !12, i64 113, !12, i64 113, !12, i64 113, !12, i64 113, !12, i64 113, !12, i64 113, !12, i64 113, !12, i64 114, !12, i64 114, !12, i64 114, !12, i64 114, !12, i64 114, !12, i64 114, !12, i64 114, !12, i64 114, !12, i64 115, !12, i64 115, !12, i64 115, !12, i64 115, !12, i64 115, !12, i64 115, !12, i64 115, !12, i64 115}
!20 = !{!14, !12, i64 2900}
!21 = !{!19, !12, i64 108}
!22 = !{!19, !6, i64 64}
!23 = !{!7, !7, i64 0}
!24 = !{!25, !6, i64 16}
!25 = !{!"vertexT", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !12, i64 32, !12, i64 36, !12, i64 40, !12, i64 40, !12, i64 40, !12, i64 40, !12, i64 40, !12, i64 40}
!26 = !{!14, !12, i64 632}
!27 = !{!19, !6, i64 24}
!28 = distinct !{!28, !29}
!29 = !{!"llvm.loop.mustprogress"}
!30 = !{!14, !12, i64 264}
!31 = !{!14, !12, i64 2440}


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

@__const.qh_printcentrum.green = external hidden unnamed_addr constant [3 x double], align 16
@.str.53 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.54 = external hidden unnamed_addr constant [173 x i8], align 1
@.str.55 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.56 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.57 = external hidden unnamed_addr constant [7 x i8], align 1

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

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

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

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @qh_printcentrum(ptr noundef %0, ptr noundef %1, ptr noundef %2, double noundef %3) local_unnamed_addr #2 {
  %5 = alloca [4 x double], align 16
  %6 = ptrtoint ptr %5 to i64
  %7 = alloca [4 x double], align 16
  %8 = alloca [4 x double], align 16
  %9 = ptrtoint ptr %8 to i64
  %10 = alloca double, align 8
  %11 = alloca [3 x double], align 16
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #4
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #4
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #4
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(24) %11, ptr noundef nonnull align 16 dereferenceable(24) @__const.qh_printcentrum.green, i64 24, i1 false)
  %12 = getelementptr inbounds i8, ptr %0, i64 2616
  %13 = load i32, ptr %12, align 8, !tbaa !5
  %14 = icmp eq i32 %13, 2
  br i1 %14, label %15, label %20

15:                                               ; preds = %4
  %16 = getelementptr inbounds i8, ptr %2, i64 40
  %17 = load ptr, ptr %16, align 8, !tbaa !15
  %.not = icmp eq ptr %17, null
  br i1 %.not, label %18, label %22

18:                                               ; preds = %15
  %19 = tail call ptr @qh_getcentrum(ptr noundef nonnull %0, ptr noundef nonnull %2) #4
  store ptr %19, ptr %16, align 8, !tbaa !15
  br label %22

20:                                               ; preds = %4
  %21 = tail call ptr @qh_getcentrum(ptr noundef nonnull %0, ptr noundef %2) #4
  br label %22

22:                                               ; preds = %15, %18, %20
  %.063 = phi ptr [ %21, %20 ], [ %19, %18 ], [ %17, %15 ]
  %.06373 = ptrtoint ptr %.063 to i64
  tail call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %1, i32 noundef 9072, ptr noundef nonnull @.str.53) #4
  %23 = getelementptr inbounds i8, ptr %0, i64 2900
  %24 = load i32, ptr %23, align 4, !tbaa !17
  %.not66 = icmp eq i32 %24, 0
  br i1 %.not66, label %28, label %25

25:                                               ; preds = %22
  store i32 0, ptr %23, align 4, !tbaa !17
  %26 = getelementptr inbounds i8, ptr %2, i64 108
  %27 = load i32, ptr %26, align 4, !tbaa !18
  tail call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %1, i32 noundef 9073, ptr noundef nonnull @.str.54, i32 noundef %27) #4
  br label %31

28:                                               ; preds = %22
  %29 = getelementptr inbounds i8, ptr %2, i64 108
  %30 = load i32, ptr %29, align 4, !tbaa !18
  tail call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %1, i32 noundef 9074, ptr noundef nonnull @.str.55, i32 noundef %30) #4
  br label %31

31:                                               ; preds = %28, %25
  %32 = getelementptr inbounds i8, ptr %2, i64 64
  %33 = load ptr, ptr %32, align 8, !tbaa !19
  %34 = getelementptr inbounds i8, ptr %33, i64 8
  %35 = load ptr, ptr %34, align 8, !tbaa !20
  %36 = getelementptr inbounds i8, ptr %35, i64 16
  %37 = load ptr, ptr %36, align 8, !tbaa !21
  call void @qh_distplane(ptr noundef nonnull %0, ptr noundef %37, ptr noundef nonnull %2, ptr noundef nonnull %10) #4
  %38 = load ptr, ptr %36, align 8, !tbaa !21
  %39 = load double, ptr %10, align 8, !tbaa !23
  %40 = call ptr @qh_projectpoint(ptr noundef nonnull %0, ptr noundef %38, ptr noundef nonnull %2, double noundef %39) #4
  %41 = ptrtoint ptr %40 to i64
  %42 = getelementptr inbounds i8, ptr %0, i64 632
  %43 = load i32, ptr %42, align 8, !tbaa !24
  %cond = icmp eq i32 %43, 0
  br i1 %cond, label %92, label %.lr.ph

.lr.ph:                                           ; preds = %31
  %44 = getelementptr inbounds i8, ptr %2, i64 24
  %45 = load ptr, ptr %44, align 8, !tbaa !25
  %46 = sext i32 %43 to i64
  %min.iters.check = icmp ult i32 %43, 24
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.memcheck

vector.memcheck:                                  ; preds = %.lr.ph
  %47 = ptrtoint ptr %45 to i64
  %48 = sub i64 %41, %6
  %diff.check72 = icmp ult i64 %48, 16
  %49 = sub i64 %.06373, %6
  %diff.check74 = icmp ult i64 %49, 16
  %conflict.rdx75 = or i1 %diff.check72, %diff.check74
  %50 = sub i64 %6, %47
  %diff.check76 = icmp ult i64 %50, 16
  %conflict.rdx77 = or i1 %conflict.rdx75, %diff.check76
  %51 = sub i64 %41, %9
  %diff.check78 = icmp ult i64 %51, 16
  %conflict.rdx79 = or i1 %conflict.rdx77, %diff.check78
  %52 = sub i64 %.06373, %9
  %diff.check80 = icmp ult i64 %52, 16
  %conflict.rdx81 = or i1 %conflict.rdx79, %diff.check80
  %53 = sub i64 %47, %9
  %diff.check82 = icmp ult i64 %53, 16
  %conflict.rdx83 = or i1 %conflict.rdx81, %diff.check82
  br i1 %conflict.rdx83, label %scalar.ph.preheader, label %vector.ph

vector.ph:                                        ; preds = %vector.memcheck
  %n.vec = and i64 %46, -2
  %ind.end = and i64 %46, 1
  %invariant.gep = getelementptr i8, ptr %40, i64 -8
  %invariant.gep90 = getelementptr i8, ptr %.063, i64 -8
  %invariant.gep92 = getelementptr i8, ptr %5, i64 -8
  %invariant.gep94 = getelementptr i8, ptr %45, i64 -8
  %invariant.gep96 = getelementptr i8, ptr %8, i64 -8
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %54 = xor i64 %index, -1
  %55 = add i64 %54, %46
  %gep = getelementptr double, ptr %invariant.gep, i64 %55
  %wide.load = load <2 x double>, ptr %gep, align 8, !tbaa !23
  %gep91 = getelementptr double, ptr %invariant.gep90, i64 %55
  %wide.load84 = load <2 x double>, ptr %gep91, align 8, !tbaa !23
  %56 = fsub <2 x double> %wide.load, %wide.load84
  %gep93 = getelementptr [4 x double], ptr %invariant.gep92, i64 0, i64 %55
  store <2 x double> %56, ptr %gep93, align 8, !tbaa !23
  %gep95 = getelementptr double, ptr %invariant.gep94, i64 %55
  %wide.load87 = load <2 x double>, ptr %gep95, align 8, !tbaa !23
  %gep97 = getelementptr [4 x double], ptr %invariant.gep96, i64 0, i64 %55
  store <2 x double> %wide.load87, ptr %gep97, align 8, !tbaa !23
  %index.next = add nuw i64 %index, 2
  %57 = icmp eq i64 %index.next, %n.vec
  br i1 %57, label %middle.block, label %vector.body, !llvm.loop !26

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %46
  br i1 %cmp.n, label %._crit_edge, label %scalar.ph.preheader

scalar.ph.preheader:                              ; preds = %middle.block, %vector.memcheck, %.lr.ph
  %indvars.iv.ph = phi i64 [ %46, %vector.memcheck ], [ %46, %.lr.ph ], [ %ind.end, %middle.block ]
  %xtraiter = and i64 %indvars.iv.ph, 1
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %scalar.ph.prol.loopexit, label %scalar.ph.prol

scalar.ph.prol:                                   ; preds = %scalar.ph.preheader
  %indvars.iv.next.prol = add nsw i64 %indvars.iv.ph, -1
  %58 = getelementptr inbounds double, ptr %40, i64 %indvars.iv.next.prol
  %59 = load double, ptr %58, align 8, !tbaa !23
  %60 = getelementptr inbounds double, ptr %.063, i64 %indvars.iv.next.prol
  %61 = load double, ptr %60, align 8, !tbaa !23
  %62 = fsub double %59, %61
  %63 = getelementptr inbounds [4 x double], ptr %5, i64 0, i64 %indvars.iv.next.prol
  store double %62, ptr %63, align 8, !tbaa !23
  %64 = getelementptr inbounds double, ptr %45, i64 %indvars.iv.next.prol
  %65 = load double, ptr %64, align 8, !tbaa !23
  %66 = getelementptr inbounds [4 x double], ptr %8, i64 0, i64 %indvars.iv.next.prol
  store double %65, ptr %66, align 8, !tbaa !23
  br label %scalar.ph.prol.loopexit

scalar.ph.prol.loopexit:                          ; preds = %scalar.ph.prol, %scalar.ph.preheader
  %indvars.iv.unr = phi i64 [ %indvars.iv.ph, %scalar.ph.preheader ], [ %indvars.iv.next.prol, %scalar.ph.prol ]
  %67 = icmp eq i64 %indvars.iv.ph, 1
  br i1 %67, label %._crit_edge, label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph.prol.loopexit, %scalar.ph
  %indvars.iv = phi i64 [ %indvars.iv.next.1, %scalar.ph ], [ %indvars.iv.unr, %scalar.ph.prol.loopexit ]
  %indvars.iv.next = add nsw i64 %indvars.iv, -1
  %68 = getelementptr inbounds double, ptr %40, i64 %indvars.iv.next
  %69 = load double, ptr %68, align 8, !tbaa !23
  %70 = getelementptr inbounds double, ptr %.063, i64 %indvars.iv.next
  %71 = load double, ptr %70, align 8, !tbaa !23
  %72 = fsub double %69, %71
  %73 = getelementptr inbounds [4 x double], ptr %5, i64 0, i64 %indvars.iv.next
  store double %72, ptr %73, align 8, !tbaa !23
  %74 = getelementptr inbounds double, ptr %45, i64 %indvars.iv.next
  %75 = load double, ptr %74, align 8, !tbaa !23
  %76 = getelementptr inbounds [4 x double], ptr %8, i64 0, i64 %indvars.iv.next
  store double %75, ptr %76, align 8, !tbaa !23
  %indvars.iv.next.1 = add nsw i64 %indvars.iv, -2
  %77 = getelementptr inbounds double, ptr %40, i64 %indvars.iv.next.1
  %78 = load double, ptr %77, align 8, !tbaa !23
  %79 = getelementptr inbounds double, ptr %.063, i64 %indvars.iv.next.1
  %80 = load double, ptr %79, align 8, !tbaa !23
  %81 = fsub double %78, %80
  %82 = getelementptr inbounds [4 x double], ptr %5, i64 0, i64 %indvars.iv.next.1
  store double %81, ptr %82, align 8, !tbaa !23
  %83 = getelementptr inbounds double, ptr %45, i64 %indvars.iv.next.1
  %84 = load double, ptr %83, align 8, !tbaa !23
  %85 = getelementptr inbounds [4 x double], ptr %8, i64 0, i64 %indvars.iv.next.1
  store double %84, ptr %85, align 8, !tbaa !23
  %.not67.1 = icmp eq i64 %indvars.iv.next.1, 0
  br i1 %.not67.1, label %._crit_edge, label %scalar.ph, !llvm.loop !30

._crit_edge:                                      ; preds = %scalar.ph.prol.loopexit, %scalar.ph, %middle.block
  switch i32 %43, label %92 [
    i32 2, label %86
    i32 4, label %89
  ]

86:                                               ; preds = %._crit_edge
  %87 = getelementptr inbounds i8, ptr %5, i64 16
  store double 0.000000e+00, ptr %87, align 16, !tbaa !23
  %88 = getelementptr inbounds i8, ptr %8, i64 16
  store double 0.000000e+00, ptr %88, align 16, !tbaa !23
  br label %92

89:                                               ; preds = %._crit_edge
  call void @qh_projectdim3(ptr noundef %0, ptr noundef nonnull %5, ptr noundef nonnull %5)
  call void @qh_projectdim3(ptr noundef %0, ptr noundef nonnull %8, ptr noundef nonnull %8)
  %90 = getelementptr inbounds i8, ptr %0, i64 264
  %91 = load i32, ptr %90, align 8, !tbaa !31
  call void @qh_normalize2(ptr noundef %0, ptr noundef nonnull %8, i32 noundef %91, i32 noundef 1, ptr noundef null, ptr noundef null) #4
  br label %92

92:                                               ; preds = %31, %._crit_edge, %89, %86
  call void @qh_crossproduct(i32 noundef 3, ptr noundef nonnull %5, ptr noundef nonnull %8, ptr noundef nonnull %7) #4
  %93 = load double, ptr %5, align 16, !tbaa !23
  %94 = getelementptr inbounds i8, ptr %5, i64 8
  %95 = load double, ptr %94, align 8, !tbaa !23
  %96 = getelementptr inbounds i8, ptr %5, i64 16
  %97 = load double, ptr %96, align 16, !tbaa !23
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, ptr noundef %1, i32 noundef 9075, ptr noundef nonnull @.str.56, double noundef %93, double noundef %95, double noundef %97) #4
  %98 = load double, ptr %7, align 16, !tbaa !23
  %99 = getelementptr inbounds i8, ptr %7, i64 8
  %100 = load double, ptr %99, align 8, !tbaa !23
  %101 = getelementptr inbounds i8, ptr %7, i64 16
  %102 = load double, ptr %101, align 16, !tbaa !23
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, ptr noundef %1, i32 noundef 9076, ptr noundef nonnull @.str.56, double noundef %98, double noundef %100, double noundef %102) #4
  %103 = load double, ptr %8, align 16, !tbaa !23
  %104 = getelementptr inbounds i8, ptr %8, i64 8
  %105 = load double, ptr %104, align 8, !tbaa !23
  %106 = getelementptr inbounds i8, ptr %8, i64 16
  %107 = load double, ptr %106, align 16, !tbaa !23
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, ptr noundef %1, i32 noundef 9077, ptr noundef nonnull @.str.56, double noundef %103, double noundef %105, double noundef %107) #4
  call void @qh_printpoint3(ptr noundef %0, ptr noundef %1, ptr noundef %.063)
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, ptr noundef %1, i32 noundef 9078, ptr noundef nonnull @.str.57) #4
  %108 = getelementptr inbounds i8, ptr %0, i64 2440
  %109 = load i32, ptr %108, align 8, !tbaa !32
  call void @qh_memfree(ptr noundef %0, ptr noundef %40, i32 noundef %109) #4
  %110 = getelementptr inbounds i8, ptr %2, i64 24
  %111 = load ptr, ptr %110, align 8, !tbaa !25
  call void @qh_printpointvect(ptr noundef %0, ptr noundef %1, ptr noundef %.063, ptr noundef %111, ptr noundef null, double noundef %3, ptr noundef nonnull %11)
  br i1 %14, label %114, label %112

112:                                              ; preds = %92
  %113 = load i32, ptr %108, align 8, !tbaa !32
  call void @qh_memfree(ptr noundef nonnull %0, ptr noundef %.063, i32 noundef %113) #4
  br label %114

114:                                              ; preds = %112, %92
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #4
  ret void
}

declare ptr @qh_getcentrum(ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

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

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

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

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

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


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopLoadEliminationPass,LoopRotatePass,LoopUnrollPass,LoopVectorizePass,SROAPass,SimplifyCFGPass,TailCallElimPass