; 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.facetT = type { double, double, double, ptr, %union.anon, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, i32 }
%union.anon = type { double }
%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.setT = type { i32, [1 x %union.setelemT] }
%union.setelemT = type { ptr }
%struct.vertexT = type { ptr, ptr, ptr, ptr, i32, i32, i8 }

@.str.68 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.156 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.157 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.158 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.159 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.160 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.161 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.162 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.163 = external hidden unnamed_addr constant [31 x i8], align 1

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

declare i32 @qh_setsize(ptr noundef, ptr noundef) #1

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 i32 @qh_pointid(ptr noundef, ptr noundef) #1

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2

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

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

; Function Attrs: nounwind uwtable
define dso_local void @qh_printhyperplaneintersection(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5) #3 {
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca double, align 8
  %19 = alloca double, align 8
  %20 = alloca [4 x double], align 16
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store ptr %2, ptr %9, align 8, !tbaa !5
  store ptr %3, ptr %10, align 8, !tbaa !5
  store ptr %4, ptr %11, align 8, !tbaa !5
  store ptr %5, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.start.p0(i64 32, ptr %20) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #4
  %27 = load ptr, ptr %7, align 8, !tbaa !5
  %28 = load ptr, ptr %9, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.facetT, ptr %28, i32 0, i32 3
  %30 = load ptr, ptr %29, align 8, !tbaa !9
  %31 = load ptr, ptr %10, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.facetT, ptr %31, i32 0, i32 3
  %33 = load ptr, ptr %32, align 8, !tbaa !9
  %34 = call double @qh_getangle(ptr noundef %27, ptr noundef %30, ptr noundef %33)
  store double %34, ptr %13, align 8, !tbaa !13
  %35 = load double, ptr %13, align 8, !tbaa !13
  %36 = load double, ptr %13, align 8, !tbaa !13
  %37 = fneg double %35
  %38 = call double @llvm.fmuladd.f64(double %37, double %36, double 1.000000e+00)
  store double %38, ptr %14, align 8, !tbaa !13
  %39 = load ptr, ptr %7, align 8, !tbaa !5
  %40 = load ptr, ptr %11, align 8, !tbaa !5
  %41 = call i32 @qh_setsize(ptr noundef %39, ptr noundef %40)
  store i32 %41, ptr %23, align 4, !tbaa !14
  %42 = load ptr, ptr %7, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.qhT, ptr %42, i32 0, i32 110
  %44 = load i32, ptr %43, align 8, !tbaa !15
  %45 = icmp eq i32 %44, 3
  br i1 %45, label %46, label %51

46:                                               ; preds = %6
  %47 = load ptr, ptr %7, align 8, !tbaa !5
  %48 = load ptr, ptr %8, align 8, !tbaa !5
  %49 = load i32, ptr %23, align 4, !tbaa !14
  %50 = load i32, ptr %23, align 4, !tbaa !14
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %47, ptr noundef %48, i32 noundef 9195, ptr noundef @.str.156, i32 noundef %49, i32 noundef %50)
  br label %70

51:                                               ; preds = %6
  %52 = load ptr, ptr %7, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.qhT, ptr %52, i32 0, i32 110
  %54 = load i32, ptr %53, align 8, !tbaa !15
  %55 = icmp eq i32 %54, 4
  br i1 %55, label %56, label %64

56:                                               ; preds = %51
  %57 = load ptr, ptr %7, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.qhT, ptr %57, i32 0, i32 19
  %59 = load i32, ptr %58, align 8, !tbaa !20
  %60 = icmp sge i32 %59, 0
  br i1 %60, label %61, label %64

61:                                               ; preds = %56
  %62 = load ptr, ptr %7, align 8, !tbaa !5
  %63 = load ptr, ptr %8, align 8, !tbaa !5
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %62, ptr noundef %63, i32 noundef 9196, ptr noundef @.str.157)
  br label %69

64:                                               ; preds = %56, %51
  %65 = load ptr, ptr %7, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.qhT, ptr %65, i32 0, i32 210
  %67 = load i32, ptr %66, align 4, !tbaa !21
  %68 = add nsw i32 %67, 1
  store i32 %68, ptr %66, align 4, !tbaa !21
  br label %69

69:                                               ; preds = %64, %61
  br label %70

70:                                               ; preds = %69, %46
  %71 = load ptr, ptr %7, align 8, !tbaa !5
  %72 = load ptr, ptr %8, align 8, !tbaa !5
  %73 = load ptr, ptr %9, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.facetT, ptr %73, i32 0, i32 14
  %75 = load i32, ptr %74, align 4, !tbaa !22
  %76 = load ptr, ptr %10, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.facetT, ptr %76, i32 0, i32 14
  %78 = load i32, ptr %77, align 4, !tbaa !22
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %71, ptr noundef %72, i32 noundef 9197, ptr noundef @.str.158, i32 noundef %75, i32 noundef %78)
  %79 = load ptr, ptr %7, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.qhT, ptr %79, i32 0, i32 135
  %81 = load double, ptr %80, align 8, !tbaa !23
  %82 = fmul double 1.000000e+01, %81
  %83 = fdiv double 1.000000e+00, %82
  store double %83, ptr %19, align 8, !tbaa !13
  store ptr null, ptr %21, align 8, !tbaa !5
  %84 = load ptr, ptr %11, align 8, !tbaa !5
  %85 = icmp ne ptr %84, null
  br i1 %85, label %86, label %222

86:                                               ; preds = %70
  %87 = load ptr, ptr %11, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.setT, ptr %87, i32 0, i32 1
  %89 = getelementptr inbounds [1 x %union.setelemT], ptr %88, i64 0, i64 0
  store ptr %89, ptr %22, align 8, !tbaa !5
  br label %90

90:                                               ; preds = %220, %86
  %91 = load ptr, ptr %22, align 8, !tbaa !5
  %92 = getelementptr inbounds ptr, ptr %91, i32 1
  store ptr %92, ptr %22, align 8, !tbaa !5
  %93 = load ptr, ptr %91, align 8, !tbaa !5
  store ptr %93, ptr %21, align 8, !tbaa !5
  %94 = icmp ne ptr %93, null
  br i1 %94, label %95, label %221

95:                                               ; preds = %90
  %96 = load ptr, ptr %7, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.qhT, ptr %96, i32 0, i32 258
  %98 = getelementptr inbounds %struct.qhstatT, ptr %97, i32 0, i32 0
  %99 = getelementptr inbounds [249 x %union.intrealT], ptr %98, i64 0, i64 60
  %100 = load i32, ptr %99, align 8, !tbaa !24
  %101 = add nsw i32 %100, 2
  store i32 %101, ptr %99, align 8, !tbaa !24
  %102 = load ptr, ptr %7, align 8, !tbaa !5
  %103 = load ptr, ptr %21, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.vertexT, ptr %103, i32 0, i32 2
  %105 = load ptr, ptr %104, align 8, !tbaa !25
  %106 = load ptr, ptr %9, align 8, !tbaa !5
  call void @qh_distplane(ptr noundef %102, ptr noundef %105, ptr noundef %106, ptr noundef %15)
  %107 = load ptr, ptr %7, align 8, !tbaa !5
  %108 = load ptr, ptr %21, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.vertexT, ptr %108, i32 0, i32 2
  %110 = load ptr, ptr %109, align 8, !tbaa !25
  %111 = load ptr, ptr %10, align 8, !tbaa !5
  call void @qh_distplane(ptr noundef %107, ptr noundef %110, ptr noundef %111, ptr noundef %16)
  %112 = load double, ptr %15, align 8, !tbaa !13
  %113 = fneg double %112
  %114 = load double, ptr %13, align 8, !tbaa !13
  %115 = load double, ptr %16, align 8, !tbaa !13
  %116 = call double @llvm.fmuladd.f64(double %114, double %115, double %113)
  %117 = load double, ptr %14, align 8, !tbaa !13
  %118 = load double, ptr %19, align 8, !tbaa !13
  %119 = call double @qh_divzero(double noundef %116, double noundef %117, double noundef %118, ptr noundef %25)
  store double %119, ptr %17, align 8, !tbaa !13
  %120 = load double, ptr %16, align 8, !tbaa !13
  %121 = fneg double %120
  %122 = load double, ptr %13, align 8, !tbaa !13
  %123 = load double, ptr %15, align 8, !tbaa !13
  %124 = call double @llvm.fmuladd.f64(double %122, double %123, double %121)
  %125 = load double, ptr %14, align 8, !tbaa !13
  %126 = load double, ptr %19, align 8, !tbaa !13
  %127 = call double @qh_divzero(double noundef %124, double noundef %125, double noundef %126, ptr noundef %26)
  store double %127, ptr %18, align 8, !tbaa !13
  %128 = load i32, ptr %25, align 4, !tbaa !14
  %129 = icmp ne i32 %128, 0
  br i1 %129, label %133, label %130

130:                                              ; preds = %95
  %131 = load i32, ptr %26, align 4, !tbaa !14
  %132 = icmp ne i32 %131, 0
  br i1 %132, label %133, label %134

133:                                              ; preds = %130, %95
  store double 0.000000e+00, ptr %18, align 8, !tbaa !13
  store double 0.000000e+00, ptr %17, align 8, !tbaa !13
  br label %134

134:                                              ; preds = %133, %130
  %135 = load ptr, ptr %7, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.qhT, ptr %135, i32 0, i32 110
  %137 = load i32, ptr %136, align 8, !tbaa !15
  store i32 %137, ptr %24, align 4, !tbaa !14
  br label %138

138:                                              ; preds = %142, %134
  %139 = load i32, ptr %24, align 4, !tbaa !14
  %140 = add nsw i32 %139, -1
  store i32 %140, ptr %24, align 4, !tbaa !14
  %141 = icmp ne i32 %139, 0
  br i1 %141, label %142, label %171

142:                                              ; preds = %138
  %143 = load ptr, ptr %21, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.vertexT, ptr %143, i32 0, i32 2
  %145 = load ptr, ptr %144, align 8, !tbaa !25
  %146 = load i32, ptr %24, align 4, !tbaa !14
  %147 = sext i32 %146 to i64
  %148 = getelementptr inbounds double, ptr %145, i64 %147
  %149 = load double, ptr %148, align 8, !tbaa !13
  %150 = load ptr, ptr %9, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct.facetT, ptr %150, i32 0, i32 3
  %152 = load ptr, ptr %151, align 8, !tbaa !9
  %153 = load i32, ptr %24, align 4, !tbaa !14
  %154 = sext i32 %153 to i64
  %155 = getelementptr inbounds double, ptr %152, i64 %154
  %156 = load double, ptr %155, align 8, !tbaa !13
  %157 = load double, ptr %17, align 8, !tbaa !13
  %158 = call double @llvm.fmuladd.f64(double %156, double %157, double %149)
  %159 = load ptr, ptr %10, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.facetT, ptr %159, i32 0, i32 3
  %161 = load ptr, ptr %160, align 8, !tbaa !9
  %162 = load i32, ptr %24, align 4, !tbaa !14
  %163 = sext i32 %162 to i64
  %164 = getelementptr inbounds double, ptr %161, i64 %163
  %165 = load double, ptr %164, align 8, !tbaa !13
  %166 = load double, ptr %18, align 8, !tbaa !13
  %167 = call double @llvm.fmuladd.f64(double %165, double %166, double %158)
  %168 = load i32, ptr %24, align 4, !tbaa !14
  %169 = sext i32 %168 to i64
  %170 = getelementptr inbounds [4 x double], ptr %20, i64 0, i64 %169
  store double %167, ptr %170, align 8, !tbaa !13
  br label %138, !llvm.loop !27

171:                                              ; preds = %138
  %172 = load ptr, ptr %7, align 8, !tbaa !5
  %173 = getelementptr inbounds %struct.qhT, ptr %172, i32 0, i32 55
  %174 = load i32, ptr %173, align 8, !tbaa !29
  %175 = icmp sle i32 %174, 3
  br i1 %175, label %176, label %188

176:                                              ; preds = %171
  %177 = load ptr, ptr %7, align 8, !tbaa !5
  %178 = getelementptr inbounds [4 x double], ptr %20, i64 0, i64 0
  %179 = getelementptr inbounds [4 x double], ptr %20, i64 0, i64 0
  call void @qh_projectdim3(ptr noundef %177, ptr noundef %178, ptr noundef %179)
  %180 = load ptr, ptr %7, align 8, !tbaa !5
  %181 = load ptr, ptr %8, align 8, !tbaa !5
  %182 = getelementptr inbounds [4 x double], ptr %20, i64 0, i64 0
  %183 = load double, ptr %182, align 16, !tbaa !13
  %184 = getelementptr inbounds [4 x double], ptr %20, i64 0, i64 1
  %185 = load double, ptr %184, align 8, !tbaa !13
  %186 = getelementptr inbounds [4 x double], ptr %20, i64 0, i64 2
  %187 = load double, ptr %186, align 16, !tbaa !13
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %180, ptr noundef %181, i32 noundef 9198, ptr noundef @.str.159, double noundef %183, double noundef %185, double noundef %187)
  br label %199

188:                                              ; preds = %171
  %189 = load ptr, ptr %7, align 8, !tbaa !5
  %190 = load ptr, ptr %8, align 8, !tbaa !5
  %191 = getelementptr inbounds [4 x double], ptr %20, i64 0, i64 0
  %192 = load double, ptr %191, align 16, !tbaa !13
  %193 = getelementptr inbounds [4 x double], ptr %20, i64 0, i64 1
  %194 = load double, ptr %193, align 8, !tbaa !13
  %195 = getelementptr inbounds [4 x double], ptr %20, i64 0, i64 2
  %196 = load double, ptr %195, align 16, !tbaa !13
  %197 = getelementptr inbounds [4 x double], ptr %20, i64 0, i64 3
  %198 = load double, ptr %197, align 8, !tbaa !13
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %189, ptr noundef %190, i32 noundef 9199, ptr noundef @.str.160, double noundef %192, double noundef %194, double noundef %196, double noundef %198)
  br label %199

199:                                              ; preds = %188, %176
  %200 = load i32, ptr %25, align 4, !tbaa !14
  %201 = load i32, ptr %26, align 4, !tbaa !14
  %202 = add i32 %200, %201
  %203 = icmp ne i32 %202, 0
  br i1 %203, label %204, label %212

204:                                              ; preds = %199
  %205 = load ptr, ptr %7, align 8, !tbaa !5
  %206 = load ptr, ptr %8, align 8, !tbaa !5
  %207 = load ptr, ptr %7, align 8, !tbaa !5
  %208 = load ptr, ptr %21, align 8, !tbaa !5
  %209 = getelementptr inbounds %struct.vertexT, ptr %208, i32 0, i32 2
  %210 = load ptr, ptr %209, align 8, !tbaa !25
  %211 = call i32 @qh_pointid(ptr noundef %207, ptr noundef %210)
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %205, ptr noundef %206, i32 noundef 9200, ptr noundef @.str.161, i32 noundef %211)
  br label %220

212:                                              ; preds = %199
  %213 = load ptr, ptr %7, align 8, !tbaa !5
  %214 = load ptr, ptr %8, align 8, !tbaa !5
  %215 = load ptr, ptr %7, align 8, !tbaa !5
  %216 = load ptr, ptr %21, align 8, !tbaa !5
  %217 = getelementptr inbounds %struct.vertexT, ptr %216, i32 0, i32 2
  %218 = load ptr, ptr %217, align 8, !tbaa !25
  %219 = call i32 @qh_pointid(ptr noundef %215, ptr noundef %218)
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %213, ptr noundef %214, i32 noundef 9201, ptr noundef @.str.162, i32 noundef %219)
  br label %220

220:                                              ; preds = %212, %204
  br label %90, !llvm.loop !30

221:                                              ; preds = %90
  br label %222

222:                                              ; preds = %221, %70
  %223 = load ptr, ptr %7, align 8, !tbaa !5
  %224 = getelementptr inbounds %struct.qhT, ptr %223, i32 0, i32 110
  %225 = load i32, ptr %224, align 8, !tbaa !15
  %226 = icmp eq i32 %225, 3
  br i1 %226, label %227, label %239

227:                                              ; preds = %222
  %228 = load ptr, ptr %7, align 8, !tbaa !5
  %229 = load ptr, ptr %8, align 8, !tbaa !5
  %230 = load ptr, ptr %12, align 8, !tbaa !5
  %231 = getelementptr inbounds double, ptr %230, i64 0
  %232 = load double, ptr %231, align 8, !tbaa !13
  %233 = load ptr, ptr %12, align 8, !tbaa !5
  %234 = getelementptr inbounds double, ptr %233, i64 1
  %235 = load double, ptr %234, align 8, !tbaa !13
  %236 = load ptr, ptr %12, align 8, !tbaa !5
  %237 = getelementptr inbounds double, ptr %236, i64 2
  %238 = load double, ptr %237, align 8, !tbaa !13
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %228, ptr noundef %229, i32 noundef 9202, ptr noundef @.str.68, double noundef %232, double noundef %235, double noundef %238)
  br label %262

239:                                              ; preds = %222
  %240 = load ptr, ptr %7, align 8, !tbaa !5
  %241 = getelementptr inbounds %struct.qhT, ptr %240, i32 0, i32 110
  %242 = load i32, ptr %241, align 8, !tbaa !15
  %243 = icmp eq i32 %242, 4
  br i1 %243, label %244, label %261

244:                                              ; preds = %239
  %245 = load ptr, ptr %7, align 8, !tbaa !5
  %246 = getelementptr inbounds %struct.qhT, ptr %245, i32 0, i32 19
  %247 = load i32, ptr %246, align 8, !tbaa !20
  %248 = icmp sge i32 %247, 0
  br i1 %248, label %249, label %261

249:                                              ; preds = %244
  %250 = load ptr, ptr %7, align 8, !tbaa !5
  %251 = load ptr, ptr %8, align 8, !tbaa !5
  %252 = load ptr, ptr %12, align 8, !tbaa !5
  %253 = getelementptr inbounds double, ptr %252, i64 0
  %254 = load double, ptr %253, align 8, !tbaa !13
  %255 = load ptr, ptr %12, align 8, !tbaa !5
  %256 = getelementptr inbounds double, ptr %255, i64 1
  %257 = load double, ptr %256, align 8, !tbaa !13
  %258 = load ptr, ptr %12, align 8, !tbaa !5
  %259 = getelementptr inbounds double, ptr %258, i64 2
  %260 = load double, ptr %259, align 8, !tbaa !13
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %250, ptr noundef %251, i32 noundef 9203, ptr noundef @.str.163, double noundef %254, double noundef %257, double noundef %260)
  br label %261

261:                                              ; preds = %249, %244, %239
  br label %262

262:                                              ; preds = %261, %227
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  ret void
}

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

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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 24}
!10 = !{!"facetT", !11, i64 0, !11, i64 8, !11, 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}
!11 = !{!"double", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!11, !11, i64 0}
!14 = !{!12, !12, i64 0}
!15 = !{!16, !12, i64 632}
!16 = !{!"qhT", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !11, 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, !11, i64 64, !11, 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, !11, i64 160, !11, i64 168, !12, i64 176, !12, i64 180, !12, i64 184, !12, i64 188, !11, i64 192, !11, i64 200, !12, i64 208, !12, i64 212, !11, 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, !11, i64 448, !11, i64 456, !11, 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, !11, 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, !11, 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, !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, !6, i64 1872, !11, i64 1880, !11, i64 1888, !11, i64 1896, !11, 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, !17, 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, !11, i64 2664, !12, i64 2672, !11, i64 2680, !11, i64 2688, !11, i64 2696, !12, i64 2704, !12, i64 2708, !12, i64 2712, !12, i64 2716, !12, i64 2720, !11, i64 2728, !11, i64 2736, !12, i64 2744, !12, i64 2748, !12, i64 2752, !12, i64 2756, !12, i64 2760, !12, i64 2764, !11, i64 2768, !11, 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, !11, i64 2920, !11, i64 2928, !11, i64 2936, !11, 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, !11, i64 3240, !6, i64 3248, !6, i64 3256, !6, i64 3264, !18, i64 3272, !19, i64 3424}
!17 = !{!"long", !7, i64 0}
!18 = !{!"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}
!19 = !{!"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, !11, i64 5336}
!20 = !{!16, !12, i64 88}
!21 = !{!16, !12, i64 2748}
!22 = !{!10, !12, i64 108}
!23 = !{!16, !11, i64 1792}
!24 = !{!7, !7, i64 0}
!25 = !{!26, !6, i64 16}
!26 = !{!"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}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}
!29 = !{!16, !12, i64 264}
!30 = distinct !{!30, !28}


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

@.str.68 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.156 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.157 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.158 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.159 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.160 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.161 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.162 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.163 = external hidden unnamed_addr constant [31 x i8], align 1

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

declare i32 @qh_setsize(ptr noundef, ptr noundef) local_unnamed_addr #1

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 i32 @qh_pointid(ptr noundef, ptr noundef) local_unnamed_addr #1

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2

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

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

; Function Attrs: nounwind uwtable
define dso_local void @qh_printhyperplaneintersection(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr nocapture noundef readonly %5) local_unnamed_addr #3 {
  %7 = alloca double, align 8
  %8 = alloca double, align 8
  %9 = alloca [4 x double], align 16
  %10 = ptrtoint ptr %9 to i64
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #5
  %13 = getelementptr inbounds i8, ptr %2, i64 24
  %14 = load ptr, ptr %13, align 8, !tbaa !5
  %15 = getelementptr inbounds i8, ptr %3, i64 24
  %16 = load ptr, ptr %15, align 8, !tbaa !5
  %17 = tail call double @qh_getangle(ptr noundef %0, ptr noundef %14, ptr noundef %16) #5
  %18 = fneg double %17
  %19 = tail call double @llvm.fmuladd.f64(double %18, double %17, double 1.000000e+00)
  %20 = tail call i32 @qh_setsize(ptr noundef %0, ptr noundef %4) #5
  %21 = getelementptr inbounds i8, ptr %0, i64 632
  %22 = load i32, ptr %21, align 8, !tbaa !12
  switch i32 %22, label %29 [
    i32 3, label %23
    i32 4, label %24
  ]

23:                                               ; preds = %6
  tail call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %1, i32 noundef 9195, ptr noundef nonnull @.str.156, i32 noundef %20, i32 noundef %20) #5
  br label %33

24:                                               ; preds = %6
  %25 = getelementptr inbounds i8, ptr %0, i64 88
  %26 = load i32, ptr %25, align 8, !tbaa !17
  %27 = icmp sgt i32 %26, -1
  br i1 %27, label %28, label %29

28:                                               ; preds = %24
  tail call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %1, i32 noundef 9196, ptr noundef nonnull @.str.157) #5
  br label %33

29:                                               ; preds = %6, %24
  %30 = getelementptr inbounds i8, ptr %0, i64 2748
  %31 = load i32, ptr %30, align 4, !tbaa !18
  %32 = add nsw i32 %31, 1
  store i32 %32, ptr %30, align 4, !tbaa !18
  br label %33

33:                                               ; preds = %28, %29, %23
  %34 = getelementptr inbounds i8, ptr %2, i64 108
  %35 = load i32, ptr %34, align 4, !tbaa !19
  %36 = getelementptr inbounds i8, ptr %3, i64 108
  %37 = load i32, ptr %36, align 4, !tbaa !19
  tail call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %1, i32 noundef 9197, ptr noundef nonnull @.str.158, i32 noundef %35, i32 noundef %37) #5
  %38 = getelementptr inbounds i8, ptr %0, i64 1792
  %39 = load double, ptr %38, align 8, !tbaa !20
  %40 = fmul double %39, 1.000000e+01
  %41 = fdiv double 1.000000e+00, %40
  %.not = icmp eq ptr %4, null
  br i1 %.not, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %33
  %.07788 = getelementptr inbounds i8, ptr %4, i64 8
  %42 = load ptr, ptr %.07788, align 8, !tbaa !21
  %.not8389 = icmp eq ptr %42, null
  br i1 %.not8389, label %.loopexit, label %.lr.ph91

.lr.ph91:                                         ; preds = %.preheader
  %43 = getelementptr inbounds i8, ptr %0, i64 3904
  %44 = getelementptr inbounds i8, ptr %0, i64 264
  %45 = getelementptr inbounds i8, ptr %9, i64 8
  %46 = getelementptr inbounds i8, ptr %9, i64 16
  %47 = getelementptr inbounds i8, ptr %9, i64 24
  br label %48

48:                                               ; preds = %.lr.ph91, %148
  %49 = phi ptr [ %42, %.lr.ph91 ], [ %149, %148 ]
  %.07790 = phi ptr [ %.07788, %.lr.ph91 ], [ %.077, %148 ]
  %50 = load i32, ptr %43, align 8, !tbaa !22
  %51 = add nsw i32 %50, 2
  store i32 %51, ptr %43, align 8, !tbaa !22
  %52 = getelementptr inbounds i8, ptr %49, i64 16
  %53 = load ptr, ptr %52, align 8, !tbaa !23
  call void @qh_distplane(ptr noundef nonnull %0, ptr noundef %53, ptr noundef %2, ptr noundef nonnull %7) #5
  %54 = load ptr, ptr %52, align 8, !tbaa !23
  call void @qh_distplane(ptr noundef nonnull %0, ptr noundef %54, ptr noundef %3, ptr noundef nonnull %8) #5
  %55 = load double, ptr %7, align 8, !tbaa !25
  %56 = fneg double %55
  %57 = load double, ptr %8, align 8, !tbaa !25
  %58 = call double @llvm.fmuladd.f64(double %17, double %57, double %56)
  %59 = call double @qh_divzero(double noundef %58, double noundef %19, double noundef %41, ptr noundef nonnull %11) #5
  %60 = load double, ptr %8, align 8, !tbaa !25
  %61 = fneg double %60
  %62 = load double, ptr %7, align 8, !tbaa !25
  %63 = call double @llvm.fmuladd.f64(double %17, double %62, double %61)
  %64 = call double @qh_divzero(double noundef %63, double noundef %19, double noundef %41, ptr noundef nonnull %12) #5
  %65 = load i32, ptr %11, align 4, !tbaa !26
  %66 = icmp ne i32 %65, 0
  %67 = load i32, ptr %12, align 4
  %68 = icmp ne i32 %67, 0
  %or.cond = select i1 %66, i1 true, i1 %68
  %.078 = select i1 %or.cond, double 0.000000e+00, double %64
  %.076 = select i1 %or.cond, double 0.000000e+00, double %59
  %69 = load i32, ptr %21, align 8, !tbaa !12
  %.not8486 = icmp eq i32 %69, 0
  br i1 %.not8486, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %48
  %70 = load ptr, ptr %52, align 8, !tbaa !23
  %71 = load ptr, ptr %13, align 8, !tbaa !5
  %72 = load ptr, ptr %15, align 8, !tbaa !5
  %73 = sext i32 %69 to i64
  %min.iters.check = icmp ult i32 %69, 4
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.memcheck

vector.memcheck:                                  ; preds = %.lr.ph
  %74 = ptrtoint ptr %72 to i64
  %75 = ptrtoint ptr %71 to i64
  %76 = ptrtoint ptr %70 to i64
  %77 = sub i64 %76, %10
  %diff.check = icmp ult i64 %77, 32
  %78 = sub i64 %75, %10
  %diff.check93 = icmp ult i64 %78, 32
  %conflict.rdx = or i1 %diff.check, %diff.check93
  %79 = sub i64 %74, %10
  %diff.check94 = icmp ult i64 %79, 32
  %conflict.rdx95 = or i1 %conflict.rdx, %diff.check94
  br i1 %conflict.rdx95, label %scalar.ph.preheader, label %vector.ph

vector.ph:                                        ; preds = %vector.memcheck
  %n.vec = and i64 %73, -4
  %ind.end = and i64 %73, 3
  %broadcast.splatinsert = insertelement <2 x double> poison, double %.076, i64 0
  %broadcast.splatinsert106 = insertelement <2 x double> poison, double %.078, i64 0
  %80 = shufflevector <2 x double> %broadcast.splatinsert106, <2 x double> poison, <2 x i32> zeroinitializer
  %81 = shufflevector <2 x double> %broadcast.splatinsert, <2 x double> poison, <2 x i32> zeroinitializer
  %82 = shufflevector <2 x double> %broadcast.splatinsert106, <2 x double> poison, <2 x i32> zeroinitializer
  %83 = shufflevector <2 x double> %broadcast.splatinsert, <2 x double> poison, <2 x i32> zeroinitializer
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %84 = xor i64 %index, -1
  %85 = add i64 %84, %73
  %86 = getelementptr inbounds double, ptr %70, i64 %85
  %87 = getelementptr inbounds i8, ptr %86, i64 -8
  %88 = getelementptr inbounds i8, ptr %86, i64 -24
  %wide.load = load <2 x double>, ptr %87, align 8, !tbaa !25
  %wide.load96 = load <2 x double>, ptr %88, align 8, !tbaa !25
  %89 = getelementptr inbounds double, ptr %71, i64 %85
  %90 = getelementptr inbounds i8, ptr %89, i64 -8
  %91 = getelementptr inbounds i8, ptr %89, i64 -24
  %wide.load98 = load <2 x double>, ptr %90, align 8, !tbaa !25
  %wide.load100 = load <2 x double>, ptr %91, align 8, !tbaa !25
  %92 = getelementptr inbounds double, ptr %72, i64 %85
  %93 = getelementptr inbounds i8, ptr %92, i64 -8
  %94 = getelementptr inbounds i8, ptr %92, i64 -24
  %wide.load102 = load <2 x double>, ptr %93, align 8, !tbaa !25
  %wide.load104 = load <2 x double>, ptr %94, align 8, !tbaa !25
  %95 = getelementptr inbounds [4 x double], ptr %9, i64 0, i64 %85
  %96 = getelementptr inbounds i8, ptr %95, i64 -8
  %97 = getelementptr inbounds i8, ptr %95, i64 -24
  %98 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %wide.load98, <2 x double> %81, <2 x double> %wide.load)
  %reverse108 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %wide.load102, <2 x double> %80, <2 x double> %98)
  store <2 x double> %reverse108, ptr %96, align 8, !tbaa !25
  %99 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %wide.load100, <2 x double> %83, <2 x double> %wide.load96)
  %reverse109 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %wide.load104, <2 x double> %82, <2 x double> %99)
  store <2 x double> %reverse109, ptr %97, align 8, !tbaa !25
  %index.next = add nuw i64 %index, 4
  %100 = icmp eq i64 %index.next, %n.vec
  br i1 %100, label %middle.block, label %vector.body, !llvm.loop !27

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %73
  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 [ %73, %vector.memcheck ], [ %73, %.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
  %101 = getelementptr inbounds double, ptr %70, i64 %indvars.iv.next.prol
  %102 = load double, ptr %101, align 8, !tbaa !25
  %103 = getelementptr inbounds double, ptr %71, i64 %indvars.iv.next.prol
  %104 = load double, ptr %103, align 8, !tbaa !25
  %105 = call double @llvm.fmuladd.f64(double %104, double %.076, double %102)
  %106 = getelementptr inbounds double, ptr %72, i64 %indvars.iv.next.prol
  %107 = load double, ptr %106, align 8, !tbaa !25
  %108 = call double @llvm.fmuladd.f64(double %107, double %.078, double %105)
  %109 = getelementptr inbounds [4 x double], ptr %9, i64 0, i64 %indvars.iv.next.prol
  store double %108, ptr %109, align 8, !tbaa !25
  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 ]
  %110 = icmp eq i64 %indvars.iv.ph, 1
  br i1 %110, 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
  %111 = getelementptr inbounds double, ptr %70, i64 %indvars.iv.next
  %112 = load double, ptr %111, align 8, !tbaa !25
  %113 = getelementptr inbounds double, ptr %71, i64 %indvars.iv.next
  %114 = load double, ptr %113, align 8, !tbaa !25
  %115 = call double @llvm.fmuladd.f64(double %114, double %.076, double %112)
  %116 = getelementptr inbounds double, ptr %72, i64 %indvars.iv.next
  %117 = load double, ptr %116, align 8, !tbaa !25
  %118 = call double @llvm.fmuladd.f64(double %117, double %.078, double %115)
  %119 = getelementptr inbounds [4 x double], ptr %9, i64 0, i64 %indvars.iv.next
  store double %118, ptr %119, align 8, !tbaa !25
  %indvars.iv.next.1 = add nsw i64 %indvars.iv, -2
  %120 = getelementptr inbounds double, ptr %70, i64 %indvars.iv.next.1
  %121 = load double, ptr %120, align 8, !tbaa !25
  %122 = getelementptr inbounds double, ptr %71, i64 %indvars.iv.next.1
  %123 = load double, ptr %122, align 8, !tbaa !25
  %124 = call double @llvm.fmuladd.f64(double %123, double %.076, double %121)
  %125 = getelementptr inbounds double, ptr %72, i64 %indvars.iv.next.1
  %126 = load double, ptr %125, align 8, !tbaa !25
  %127 = call double @llvm.fmuladd.f64(double %126, double %.078, double %124)
  %128 = getelementptr inbounds [4 x double], ptr %9, i64 0, i64 %indvars.iv.next.1
  store double %127, ptr %128, align 8, !tbaa !25
  %.not84.1 = icmp eq i64 %indvars.iv.next.1, 0
  br i1 %.not84.1, label %._crit_edge, label %scalar.ph, !llvm.loop !31

._crit_edge:                                      ; preds = %scalar.ph.prol.loopexit, %scalar.ph, %middle.block, %48
  %129 = load i32, ptr %44, align 8, !tbaa !32
  %130 = icmp slt i32 %129, 4
  br i1 %130, label %131, label %135

131:                                              ; preds = %._crit_edge
  call void @qh_projectdim3(ptr noundef nonnull %0, ptr noundef nonnull %9, ptr noundef nonnull %9)
  %132 = load double, ptr %9, align 16, !tbaa !25
  %133 = load double, ptr %45, align 8, !tbaa !25
  %134 = load double, ptr %46, align 16, !tbaa !25
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %1, i32 noundef 9198, ptr noundef nonnull @.str.159, double noundef %132, double noundef %133, double noundef %134) #5
  br label %140

135:                                              ; preds = %._crit_edge
  %136 = load double, ptr %9, align 16, !tbaa !25
  %137 = load double, ptr %45, align 8, !tbaa !25
  %138 = load double, ptr %46, align 16, !tbaa !25
  %139 = load double, ptr %47, align 8, !tbaa !25
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %1, i32 noundef 9199, ptr noundef nonnull @.str.160, double noundef %136, double noundef %137, double noundef %138, double noundef %139) #5
  br label %140

140:                                              ; preds = %135, %131
  %141 = load i32, ptr %11, align 4, !tbaa !26
  %142 = load i32, ptr %12, align 4, !tbaa !26
  %143 = sub i32 0, %142
  %.not85 = icmp eq i32 %141, %143
  %144 = load ptr, ptr %52, align 8, !tbaa !23
  %145 = call i32 @qh_pointid(ptr noundef nonnull %0, ptr noundef %144) #5
  br i1 %.not85, label %147, label %146

146:                                              ; preds = %140
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %1, i32 noundef 9200, ptr noundef nonnull @.str.161, i32 noundef %145) #5
  br label %148

147:                                              ; preds = %140
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %1, i32 noundef 9201, ptr noundef nonnull @.str.162, i32 noundef %145) #5
  br label %148

148:                                              ; preds = %147, %146
  %.077 = getelementptr inbounds i8, ptr %.07790, i64 8
  %149 = load ptr, ptr %.077, align 8, !tbaa !21
  %.not83 = icmp eq ptr %149, null
  br i1 %.not83, label %.loopexit, label %48, !llvm.loop !33

.loopexit:                                        ; preds = %148, %.preheader, %33
  %150 = load i32, ptr %21, align 8, !tbaa !12
  switch i32 %150, label %167 [
    i32 3, label %151
    i32 4, label %157
  ]

151:                                              ; preds = %.loopexit
  %152 = load double, ptr %5, align 8, !tbaa !25
  %153 = getelementptr inbounds i8, ptr %5, i64 8
  %154 = load double, ptr %153, align 8, !tbaa !25
  %155 = getelementptr inbounds i8, ptr %5, i64 16
  %156 = load double, ptr %155, align 8, !tbaa !25
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %1, i32 noundef 9202, ptr noundef nonnull @.str.68, double noundef %152, double noundef %154, double noundef %156) #5
  br label %167

157:                                              ; preds = %.loopexit
  %158 = getelementptr inbounds i8, ptr %0, i64 88
  %159 = load i32, ptr %158, align 8, !tbaa !17
  %160 = icmp sgt i32 %159, -1
  br i1 %160, label %161, label %167

161:                                              ; preds = %157
  %162 = load double, ptr %5, align 8, !tbaa !25
  %163 = getelementptr inbounds i8, ptr %5, i64 8
  %164 = load double, ptr %163, align 8, !tbaa !25
  %165 = getelementptr inbounds i8, ptr %5, i64 16
  %166 = load double, ptr %165, align 8, !tbaa !25
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %1, i32 noundef 9203, ptr noundef nonnull @.str.163, double noundef %162, double noundef %164, double noundef %166) #5
  br label %167

167:                                              ; preds = %.loopexit, %157, %161, %151
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  ret void
}

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x double> @llvm.fmuladd.v2f64(<2 x double>, <2 x double>, <2 x double>) #4

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


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