; LLVM IR from jrl-umi3218/mc_rtc :: 3rd-party/qhull/src/libqhull_r (geom_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 }

@.str = external hidden unnamed_addr constant [15 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [17 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @qh_distplane(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca double, align 8
  %12 = alloca i32, align 4
  %13 = 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 ptr %3, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %14 = load ptr, ptr %7, align 8, !tbaa !5
  %15 = getelementptr inbounds %struct.facetT, ptr %14, i32 0, i32 3
  %16 = load ptr, ptr %15, align 8, !tbaa !9
  store ptr %16, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  %17 = load ptr, ptr %5, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.qhT, ptr %17, i32 0, i32 110
  %19 = load i32, ptr %18, align 8, !tbaa !13
  switch i32 %19, label %300 [
    i32 2, label %20
    i32 3, label %39
    i32 4, label %65
    i32 5, label %98
    i32 6, label %138
    i32 7, label %185
    i32 8, label %239
  ]

20:                                               ; preds = %4
  %21 = load ptr, ptr %7, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.facetT, ptr %21, i32 0, i32 2
  %23 = load double, ptr %22, align 8, !tbaa !18
  %24 = load ptr, ptr %6, align 8, !tbaa !5
  %25 = getelementptr inbounds double, ptr %24, i64 0
  %26 = load double, ptr %25, align 8, !tbaa !19
  %27 = load ptr, ptr %9, align 8, !tbaa !5
  %28 = getelementptr inbounds double, ptr %27, i64 0
  %29 = load double, ptr %28, align 8, !tbaa !19
  %30 = call double @llvm.fmuladd.f64(double %26, double %29, double %23)
  %31 = load ptr, ptr %6, align 8, !tbaa !5
  %32 = getelementptr inbounds double, ptr %31, i64 1
  %33 = load double, ptr %32, align 8, !tbaa !19
  %34 = load ptr, ptr %9, align 8, !tbaa !5
  %35 = getelementptr inbounds double, ptr %34, i64 1
  %36 = load double, ptr %35, align 8, !tbaa !19
  %37 = call double @llvm.fmuladd.f64(double %33, double %36, double %30)
  %38 = load ptr, ptr %8, align 8, !tbaa !5
  store double %37, ptr %38, align 8, !tbaa !19
  br label %324

39:                                               ; preds = %4
  %40 = load ptr, ptr %7, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.facetT, ptr %40, i32 0, i32 2
  %42 = load double, ptr %41, align 8, !tbaa !18
  %43 = load ptr, ptr %6, align 8, !tbaa !5
  %44 = getelementptr inbounds double, ptr %43, i64 0
  %45 = load double, ptr %44, align 8, !tbaa !19
  %46 = load ptr, ptr %9, align 8, !tbaa !5
  %47 = getelementptr inbounds double, ptr %46, i64 0
  %48 = load double, ptr %47, align 8, !tbaa !19
  %49 = call double @llvm.fmuladd.f64(double %45, double %48, double %42)
  %50 = load ptr, ptr %6, align 8, !tbaa !5
  %51 = getelementptr inbounds double, ptr %50, i64 1
  %52 = load double, ptr %51, align 8, !tbaa !19
  %53 = load ptr, ptr %9, align 8, !tbaa !5
  %54 = getelementptr inbounds double, ptr %53, i64 1
  %55 = load double, ptr %54, align 8, !tbaa !19
  %56 = call double @llvm.fmuladd.f64(double %52, double %55, double %49)
  %57 = load ptr, ptr %6, align 8, !tbaa !5
  %58 = getelementptr inbounds double, ptr %57, i64 2
  %59 = load double, ptr %58, align 8, !tbaa !19
  %60 = load ptr, ptr %9, align 8, !tbaa !5
  %61 = getelementptr inbounds double, ptr %60, i64 2
  %62 = load double, ptr %61, align 8, !tbaa !19
  %63 = call double @llvm.fmuladd.f64(double %59, double %62, double %56)
  %64 = load ptr, ptr %8, align 8, !tbaa !5
  store double %63, ptr %64, align 8, !tbaa !19
  br label %324

65:                                               ; preds = %4
  %66 = load ptr, ptr %7, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.facetT, ptr %66, i32 0, i32 2
  %68 = load double, ptr %67, align 8, !tbaa !18
  %69 = load ptr, ptr %6, align 8, !tbaa !5
  %70 = getelementptr inbounds double, ptr %69, i64 0
  %71 = load double, ptr %70, align 8, !tbaa !19
  %72 = load ptr, ptr %9, align 8, !tbaa !5
  %73 = getelementptr inbounds double, ptr %72, i64 0
  %74 = load double, ptr %73, align 8, !tbaa !19
  %75 = call double @llvm.fmuladd.f64(double %71, double %74, double %68)
  %76 = load ptr, ptr %6, align 8, !tbaa !5
  %77 = getelementptr inbounds double, ptr %76, i64 1
  %78 = load double, ptr %77, align 8, !tbaa !19
  %79 = load ptr, ptr %9, align 8, !tbaa !5
  %80 = getelementptr inbounds double, ptr %79, i64 1
  %81 = load double, ptr %80, align 8, !tbaa !19
  %82 = call double @llvm.fmuladd.f64(double %78, double %81, double %75)
  %83 = load ptr, ptr %6, align 8, !tbaa !5
  %84 = getelementptr inbounds double, ptr %83, i64 2
  %85 = load double, ptr %84, align 8, !tbaa !19
  %86 = load ptr, ptr %9, align 8, !tbaa !5
  %87 = getelementptr inbounds double, ptr %86, i64 2
  %88 = load double, ptr %87, align 8, !tbaa !19
  %89 = call double @llvm.fmuladd.f64(double %85, double %88, double %82)
  %90 = load ptr, ptr %6, align 8, !tbaa !5
  %91 = getelementptr inbounds double, ptr %90, i64 3
  %92 = load double, ptr %91, align 8, !tbaa !19
  %93 = load ptr, ptr %9, align 8, !tbaa !5
  %94 = getelementptr inbounds double, ptr %93, i64 3
  %95 = load double, ptr %94, align 8, !tbaa !19
  %96 = call double @llvm.fmuladd.f64(double %92, double %95, double %89)
  %97 = load ptr, ptr %8, align 8, !tbaa !5
  store double %96, ptr %97, align 8, !tbaa !19
  br label %324

98:                                               ; preds = %4
  %99 = load ptr, ptr %7, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.facetT, ptr %99, i32 0, i32 2
  %101 = load double, ptr %100, align 8, !tbaa !18
  %102 = load ptr, ptr %6, align 8, !tbaa !5
  %103 = getelementptr inbounds double, ptr %102, i64 0
  %104 = load double, ptr %103, align 8, !tbaa !19
  %105 = load ptr, ptr %9, align 8, !tbaa !5
  %106 = getelementptr inbounds double, ptr %105, i64 0
  %107 = load double, ptr %106, align 8, !tbaa !19
  %108 = call double @llvm.fmuladd.f64(double %104, double %107, double %101)
  %109 = load ptr, ptr %6, align 8, !tbaa !5
  %110 = getelementptr inbounds double, ptr %109, i64 1
  %111 = load double, ptr %110, align 8, !tbaa !19
  %112 = load ptr, ptr %9, align 8, !tbaa !5
  %113 = getelementptr inbounds double, ptr %112, i64 1
  %114 = load double, ptr %113, align 8, !tbaa !19
  %115 = call double @llvm.fmuladd.f64(double %111, double %114, double %108)
  %116 = load ptr, ptr %6, align 8, !tbaa !5
  %117 = getelementptr inbounds double, ptr %116, i64 2
  %118 = load double, ptr %117, align 8, !tbaa !19
  %119 = load ptr, ptr %9, align 8, !tbaa !5
  %120 = getelementptr inbounds double, ptr %119, i64 2
  %121 = load double, ptr %120, align 8, !tbaa !19
  %122 = call double @llvm.fmuladd.f64(double %118, double %121, double %115)
  %123 = load ptr, ptr %6, align 8, !tbaa !5
  %124 = getelementptr inbounds double, ptr %123, i64 3
  %125 = load double, ptr %124, align 8, !tbaa !19
  %126 = load ptr, ptr %9, align 8, !tbaa !5
  %127 = getelementptr inbounds double, ptr %126, i64 3
  %128 = load double, ptr %127, align 8, !tbaa !19
  %129 = call double @llvm.fmuladd.f64(double %125, double %128, double %122)
  %130 = load ptr, ptr %6, align 8, !tbaa !5
  %131 = getelementptr inbounds double, ptr %130, i64 4
  %132 = load double, ptr %131, align 8, !tbaa !19
  %133 = load ptr, ptr %9, align 8, !tbaa !5
  %134 = getelementptr inbounds double, ptr %133, i64 4
  %135 = load double, ptr %134, align 8, !tbaa !19
  %136 = call double @llvm.fmuladd.f64(double %132, double %135, double %129)
  %137 = load ptr, ptr %8, align 8, !tbaa !5
  store double %136, ptr %137, align 8, !tbaa !19
  br label %324

138:                                              ; preds = %4
  %139 = load ptr, ptr %7, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.facetT, ptr %139, i32 0, i32 2
  %141 = load double, ptr %140, align 8, !tbaa !18
  %142 = load ptr, ptr %6, align 8, !tbaa !5
  %143 = getelementptr inbounds double, ptr %142, i64 0
  %144 = load double, ptr %143, align 8, !tbaa !19
  %145 = load ptr, ptr %9, align 8, !tbaa !5
  %146 = getelementptr inbounds double, ptr %145, i64 0
  %147 = load double, ptr %146, align 8, !tbaa !19
  %148 = call double @llvm.fmuladd.f64(double %144, double %147, double %141)
  %149 = load ptr, ptr %6, align 8, !tbaa !5
  %150 = getelementptr inbounds double, ptr %149, i64 1
  %151 = load double, ptr %150, align 8, !tbaa !19
  %152 = load ptr, ptr %9, align 8, !tbaa !5
  %153 = getelementptr inbounds double, ptr %152, i64 1
  %154 = load double, ptr %153, align 8, !tbaa !19
  %155 = call double @llvm.fmuladd.f64(double %151, double %154, double %148)
  %156 = load ptr, ptr %6, align 8, !tbaa !5
  %157 = getelementptr inbounds double, ptr %156, i64 2
  %158 = load double, ptr %157, align 8, !tbaa !19
  %159 = load ptr, ptr %9, align 8, !tbaa !5
  %160 = getelementptr inbounds double, ptr %159, i64 2
  %161 = load double, ptr %160, align 8, !tbaa !19
  %162 = call double @llvm.fmuladd.f64(double %158, double %161, double %155)
  %163 = load ptr, ptr %6, align 8, !tbaa !5
  %164 = getelementptr inbounds double, ptr %163, i64 3
  %165 = load double, ptr %164, align 8, !tbaa !19
  %166 = load ptr, ptr %9, align 8, !tbaa !5
  %167 = getelementptr inbounds double, ptr %166, i64 3
  %168 = load double, ptr %167, align 8, !tbaa !19
  %169 = call double @llvm.fmuladd.f64(double %165, double %168, double %162)
  %170 = load ptr, ptr %6, align 8, !tbaa !5
  %171 = getelementptr inbounds double, ptr %170, i64 4
  %172 = load double, ptr %171, align 8, !tbaa !19
  %173 = load ptr, ptr %9, align 8, !tbaa !5
  %174 = getelementptr inbounds double, ptr %173, i64 4
  %175 = load double, ptr %174, align 8, !tbaa !19
  %176 = call double @llvm.fmuladd.f64(double %172, double %175, double %169)
  %177 = load ptr, ptr %6, align 8, !tbaa !5
  %178 = getelementptr inbounds double, ptr %177, i64 5
  %179 = load double, ptr %178, align 8, !tbaa !19
  %180 = load ptr, ptr %9, align 8, !tbaa !5
  %181 = getelementptr inbounds double, ptr %180, i64 5
  %182 = load double, ptr %181, align 8, !tbaa !19
  %183 = call double @llvm.fmuladd.f64(double %179, double %182, double %176)
  %184 = load ptr, ptr %8, align 8, !tbaa !5
  store double %183, ptr %184, align 8, !tbaa !19
  br label %324

185:                                              ; preds = %4
  %186 = load ptr, ptr %7, align 8, !tbaa !5
  %187 = getelementptr inbounds %struct.facetT, ptr %186, i32 0, i32 2
  %188 = load double, ptr %187, align 8, !tbaa !18
  %189 = load ptr, ptr %6, align 8, !tbaa !5
  %190 = getelementptr inbounds double, ptr %189, i64 0
  %191 = load double, ptr %190, align 8, !tbaa !19
  %192 = load ptr, ptr %9, align 8, !tbaa !5
  %193 = getelementptr inbounds double, ptr %192, i64 0
  %194 = load double, ptr %193, align 8, !tbaa !19
  %195 = call double @llvm.fmuladd.f64(double %191, double %194, double %188)
  %196 = load ptr, ptr %6, align 8, !tbaa !5
  %197 = getelementptr inbounds double, ptr %196, i64 1
  %198 = load double, ptr %197, align 8, !tbaa !19
  %199 = load ptr, ptr %9, align 8, !tbaa !5
  %200 = getelementptr inbounds double, ptr %199, i64 1
  %201 = load double, ptr %200, align 8, !tbaa !19
  %202 = call double @llvm.fmuladd.f64(double %198, double %201, double %195)
  %203 = load ptr, ptr %6, align 8, !tbaa !5
  %204 = getelementptr inbounds double, ptr %203, i64 2
  %205 = load double, ptr %204, align 8, !tbaa !19
  %206 = load ptr, ptr %9, align 8, !tbaa !5
  %207 = getelementptr inbounds double, ptr %206, i64 2
  %208 = load double, ptr %207, align 8, !tbaa !19
  %209 = call double @llvm.fmuladd.f64(double %205, double %208, double %202)
  %210 = load ptr, ptr %6, align 8, !tbaa !5
  %211 = getelementptr inbounds double, ptr %210, i64 3
  %212 = load double, ptr %211, align 8, !tbaa !19
  %213 = load ptr, ptr %9, align 8, !tbaa !5
  %214 = getelementptr inbounds double, ptr %213, i64 3
  %215 = load double, ptr %214, align 8, !tbaa !19
  %216 = call double @llvm.fmuladd.f64(double %212, double %215, double %209)
  %217 = load ptr, ptr %6, align 8, !tbaa !5
  %218 = getelementptr inbounds double, ptr %217, i64 4
  %219 = load double, ptr %218, align 8, !tbaa !19
  %220 = load ptr, ptr %9, align 8, !tbaa !5
  %221 = getelementptr inbounds double, ptr %220, i64 4
  %222 = load double, ptr %221, align 8, !tbaa !19
  %223 = call double @llvm.fmuladd.f64(double %219, double %222, double %216)
  %224 = load ptr, ptr %6, align 8, !tbaa !5
  %225 = getelementptr inbounds double, ptr %224, i64 5
  %226 = load double, ptr %225, align 8, !tbaa !19
  %227 = load ptr, ptr %9, align 8, !tbaa !5
  %228 = getelementptr inbounds double, ptr %227, i64 5
  %229 = load double, ptr %228, align 8, !tbaa !19
  %230 = call double @llvm.fmuladd.f64(double %226, double %229, double %223)
  %231 = load ptr, ptr %6, align 8, !tbaa !5
  %232 = getelementptr inbounds double, ptr %231, i64 6
  %233 = load double, ptr %232, align 8, !tbaa !19
  %234 = load ptr, ptr %9, align 8, !tbaa !5
  %235 = getelementptr inbounds double, ptr %234, i64 6
  %236 = load double, ptr %235, align 8, !tbaa !19
  %237 = call double @llvm.fmuladd.f64(double %233, double %236, double %230)
  %238 = load ptr, ptr %8, align 8, !tbaa !5
  store double %237, ptr %238, align 8, !tbaa !19
  br label %324

239:                                              ; preds = %4
  %240 = load ptr, ptr %7, align 8, !tbaa !5
  %241 = getelementptr inbounds %struct.facetT, ptr %240, i32 0, i32 2
  %242 = load double, ptr %241, align 8, !tbaa !18
  %243 = load ptr, ptr %6, align 8, !tbaa !5
  %244 = getelementptr inbounds double, ptr %243, i64 0
  %245 = load double, ptr %244, align 8, !tbaa !19
  %246 = load ptr, ptr %9, align 8, !tbaa !5
  %247 = getelementptr inbounds double, ptr %246, i64 0
  %248 = load double, ptr %247, align 8, !tbaa !19
  %249 = call double @llvm.fmuladd.f64(double %245, double %248, double %242)
  %250 = load ptr, ptr %6, align 8, !tbaa !5
  %251 = getelementptr inbounds double, ptr %250, i64 1
  %252 = load double, ptr %251, align 8, !tbaa !19
  %253 = load ptr, ptr %9, align 8, !tbaa !5
  %254 = getelementptr inbounds double, ptr %253, i64 1
  %255 = load double, ptr %254, align 8, !tbaa !19
  %256 = call double @llvm.fmuladd.f64(double %252, double %255, double %249)
  %257 = load ptr, ptr %6, align 8, !tbaa !5
  %258 = getelementptr inbounds double, ptr %257, i64 2
  %259 = load double, ptr %258, align 8, !tbaa !19
  %260 = load ptr, ptr %9, align 8, !tbaa !5
  %261 = getelementptr inbounds double, ptr %260, i64 2
  %262 = load double, ptr %261, align 8, !tbaa !19
  %263 = call double @llvm.fmuladd.f64(double %259, double %262, double %256)
  %264 = load ptr, ptr %6, align 8, !tbaa !5
  %265 = getelementptr inbounds double, ptr %264, i64 3
  %266 = load double, ptr %265, align 8, !tbaa !19
  %267 = load ptr, ptr %9, align 8, !tbaa !5
  %268 = getelementptr inbounds double, ptr %267, i64 3
  %269 = load double, ptr %268, align 8, !tbaa !19
  %270 = call double @llvm.fmuladd.f64(double %266, double %269, double %263)
  %271 = load ptr, ptr %6, align 8, !tbaa !5
  %272 = getelementptr inbounds double, ptr %271, i64 4
  %273 = load double, ptr %272, align 8, !tbaa !19
  %274 = load ptr, ptr %9, align 8, !tbaa !5
  %275 = getelementptr inbounds double, ptr %274, i64 4
  %276 = load double, ptr %275, align 8, !tbaa !19
  %277 = call double @llvm.fmuladd.f64(double %273, double %276, double %270)
  %278 = load ptr, ptr %6, align 8, !tbaa !5
  %279 = getelementptr inbounds double, ptr %278, i64 5
  %280 = load double, ptr %279, align 8, !tbaa !19
  %281 = load ptr, ptr %9, align 8, !tbaa !5
  %282 = getelementptr inbounds double, ptr %281, i64 5
  %283 = load double, ptr %282, align 8, !tbaa !19
  %284 = call double @llvm.fmuladd.f64(double %280, double %283, double %277)
  %285 = load ptr, ptr %6, align 8, !tbaa !5
  %286 = getelementptr inbounds double, ptr %285, i64 6
  %287 = load double, ptr %286, align 8, !tbaa !19
  %288 = load ptr, ptr %9, align 8, !tbaa !5
  %289 = getelementptr inbounds double, ptr %288, i64 6
  %290 = load double, ptr %289, align 8, !tbaa !19
  %291 = call double @llvm.fmuladd.f64(double %287, double %290, double %284)
  %292 = load ptr, ptr %6, align 8, !tbaa !5
  %293 = getelementptr inbounds double, ptr %292, i64 7
  %294 = load double, ptr %293, align 8, !tbaa !19
  %295 = load ptr, ptr %9, align 8, !tbaa !5
  %296 = getelementptr inbounds double, ptr %295, i64 7
  %297 = load double, ptr %296, align 8, !tbaa !19
  %298 = call double @llvm.fmuladd.f64(double %294, double %297, double %291)
  %299 = load ptr, ptr %8, align 8, !tbaa !5
  store double %298, ptr %299, align 8, !tbaa !19
  br label %324

300:                                              ; preds = %4
  %301 = load ptr, ptr %7, align 8, !tbaa !5
  %302 = getelementptr inbounds %struct.facetT, ptr %301, i32 0, i32 2
  %303 = load double, ptr %302, align 8, !tbaa !18
  %304 = load ptr, ptr %8, align 8, !tbaa !5
  store double %303, ptr %304, align 8, !tbaa !19
  %305 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %305, ptr %10, align 8, !tbaa !5
  %306 = load ptr, ptr %5, align 8, !tbaa !5
  %307 = getelementptr inbounds %struct.qhT, ptr %306, i32 0, i32 110
  %308 = load i32, ptr %307, align 8, !tbaa !13
  store i32 %308, ptr %12, align 4, !tbaa !20
  br label %309

309:                                              ; preds = %313, %300
  %310 = load i32, ptr %12, align 4, !tbaa !20
  %311 = add nsw i32 %310, -1
  store i32 %311, ptr %12, align 4, !tbaa !20
  %312 = icmp ne i32 %310, 0
  br i1 %312, label %313, label %323

313:                                              ; preds = %309
  %314 = load ptr, ptr %10, align 8, !tbaa !5
  %315 = getelementptr inbounds double, ptr %314, i32 1
  store ptr %315, ptr %10, align 8, !tbaa !5
  %316 = load double, ptr %314, align 8, !tbaa !19
  %317 = load ptr, ptr %9, align 8, !tbaa !5
  %318 = getelementptr inbounds double, ptr %317, i32 1
  store ptr %318, ptr %9, align 8, !tbaa !5
  %319 = load double, ptr %317, align 8, !tbaa !19
  %320 = load ptr, ptr %8, align 8, !tbaa !5
  %321 = load double, ptr %320, align 8, !tbaa !19
  %322 = call double @llvm.fmuladd.f64(double %316, double %319, double %321)
  store double %322, ptr %320, align 8, !tbaa !19
  br label %309, !llvm.loop !21

323:                                              ; preds = %309
  br label %324

324:                                              ; preds = %323, %239, %185, %138, %98, %65, %39, %20
  %325 = load ptr, ptr %5, align 8, !tbaa !5
  %326 = getelementptr inbounds %struct.qhT, ptr %325, i32 0, i32 258
  %327 = getelementptr inbounds %struct.qhstatT, ptr %326, i32 0, i32 0
  %328 = getelementptr inbounds [249 x %union.intrealT], ptr %327, i64 0, i64 61
  %329 = load i32, ptr %328, align 8, !tbaa !23
  %330 = add nsw i32 %329, 1
  store i32 %330, ptr %328, align 8, !tbaa !23
  %331 = load ptr, ptr %5, align 8, !tbaa !5
  %332 = getelementptr inbounds %struct.qhT, ptr %331, i32 0, i32 72
  %333 = load i32, ptr %332, align 4, !tbaa !24
  %334 = icmp ne i32 %333, 0
  br i1 %334, label %341, label %335

335:                                              ; preds = %324
  %336 = load ptr, ptr %5, align 8, !tbaa !5
  %337 = getelementptr inbounds %struct.qhT, ptr %336, i32 0, i32 29
  %338 = load i32, ptr %337, align 8, !tbaa !25
  %339 = icmp slt i32 %338, 4
  br i1 %339, label %340, label %341

340:                                              ; preds = %335
  store i32 1, ptr %13, align 4
  br label %391

341:                                              ; preds = %335, %324
  %342 = load ptr, ptr %5, align 8, !tbaa !5
  %343 = getelementptr inbounds %struct.qhT, ptr %342, i32 0, i32 72
  %344 = load i32, ptr %343, align 4, !tbaa !24
  %345 = icmp ne i32 %344, 0
  br i1 %345, label %346, label %364

346:                                              ; preds = %341
  %347 = load ptr, ptr %5, align 8, !tbaa !5
  %348 = call i32 @qh_rand(ptr noundef %347)
  %349 = sitofp i32 %348 to double
  store double %349, ptr %11, align 8, !tbaa !19
  %350 = load double, ptr %11, align 8, !tbaa !19
  %351 = fmul double 2.000000e+00, %350
  %352 = fdiv double %351, 0x41DFFFFFFF800000
  %353 = fsub double %352, 1.000000e+00
  %354 = load ptr, ptr %5, align 8, !tbaa !5
  %355 = getelementptr inbounds %struct.qhT, ptr %354, i32 0, i32 73
  %356 = load double, ptr %355, align 8, !tbaa !26
  %357 = fmul double %353, %356
  %358 = load ptr, ptr %5, align 8, !tbaa !5
  %359 = getelementptr inbounds %struct.qhT, ptr %358, i32 0, i32 135
  %360 = load double, ptr %359, align 8, !tbaa !27
  %361 = load ptr, ptr %8, align 8, !tbaa !5
  %362 = load double, ptr %361, align 8, !tbaa !19
  %363 = call double @llvm.fmuladd.f64(double %357, double %360, double %362)
  store double %363, ptr %361, align 8, !tbaa !19
  br label %364

364:                                              ; preds = %346, %341
  %365 = load ptr, ptr %5, align 8, !tbaa !5
  %366 = getelementptr inbounds %struct.qhT, ptr %365, i32 0, i32 29
  %367 = load i32, ptr %366, align 8, !tbaa !25
  %368 = icmp sge i32 %367, 4
  br i1 %368, label %369, label %390

369:                                              ; preds = %364
  %370 = load ptr, ptr %5, align 8, !tbaa !5
  %371 = load ptr, ptr %5, align 8, !tbaa !5
  %372 = getelementptr inbounds %struct.qhT, ptr %371, i32 0, i32 158
  %373 = load ptr, ptr %372, align 8, !tbaa !28
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %370, ptr noundef %373, i32 noundef 8001, ptr noundef @.str)
  %374 = load ptr, ptr %5, align 8, !tbaa !5
  %375 = load ptr, ptr %5, align 8, !tbaa !5
  %376 = getelementptr inbounds %struct.qhT, ptr %375, i32 0, i32 158
  %377 = load ptr, ptr %376, align 8, !tbaa !28
  %378 = load ptr, ptr %8, align 8, !tbaa !5
  %379 = load double, ptr %378, align 8, !tbaa !19
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %374, ptr noundef %377, i32 noundef 8002, ptr noundef @.str.1, double noundef %379)
  %380 = load ptr, ptr %5, align 8, !tbaa !5
  %381 = load ptr, ptr %5, align 8, !tbaa !5
  %382 = getelementptr inbounds %struct.qhT, ptr %381, i32 0, i32 158
  %383 = load ptr, ptr %382, align 8, !tbaa !28
  %384 = load ptr, ptr %5, align 8, !tbaa !5
  %385 = load ptr, ptr %6, align 8, !tbaa !5
  %386 = call i32 @qh_pointid(ptr noundef %384, ptr noundef %385)
  %387 = load ptr, ptr %7, align 8, !tbaa !5
  %388 = getelementptr inbounds %struct.facetT, ptr %387, i32 0, i32 14
  %389 = load i32, ptr %388, align 4, !tbaa !29
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %380, ptr noundef %383, i32 noundef 8003, ptr noundef @.str.2, i32 noundef %386, i32 noundef %389)
  br label %390

390:                                              ; preds = %369, %364
  store i32 1, ptr %13, align 4
  br label %391

391:                                              ; preds = %390, %340
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  ret void
}

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

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

declare i32 @qh_rand(ptr noundef) #3

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

declare i32 @qh_pointid(ptr noundef, ptr noundef) #3

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

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { "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 = !{!14, !12, i64 632}
!14 = !{!"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, !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, !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, !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, !11, i64 5336}
!18 = !{!10, !11, i64 16}
!19 = !{!11, !11, i64 0}
!20 = !{!12, !12, i64 0}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = !{!7, !7, i64 0}
!24 = !{!14, !12, i64 444}
!25 = !{!14, !12, i64 136}
!26 = !{!14, !11, i64 448}
!27 = !{!14, !11, i64 1792}
!28 = !{!14, !6, i64 2424}
!29 = !{!10, !12, i64 108}


; 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 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [17 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @qh_distplane(ptr noundef %0, ptr noundef %1, ptr nocapture noundef readonly %2, ptr nocapture noundef %3) local_unnamed_addr #0 {
  %5 = getelementptr inbounds i8, ptr %2, i64 24
  %6 = load ptr, ptr %5, align 8, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %0, i64 632
  %8 = load i32, ptr %7, align 8, !tbaa !12
  %9 = getelementptr inbounds i8, ptr %2, i64 16
  %10 = load double, ptr %9, align 8, !tbaa !17
  switch i32 %8, label %144 [
    i32 2, label %11
    i32 3, label %15
    i32 4, label %24
    i32 5, label %38
    i32 6, label %57
    i32 7, label %81
    i32 8, label %110
  ]

11:                                               ; preds = %4
  %12 = load double, ptr %1, align 8, !tbaa !18
  %13 = load double, ptr %6, align 8, !tbaa !18
  %14 = tail call double @llvm.fmuladd.f64(double %12, double %13, double %10)
  br label %.loopexit.sink.split

15:                                               ; preds = %4
  %16 = load double, ptr %1, align 8, !tbaa !18
  %17 = load double, ptr %6, align 8, !tbaa !18
  %18 = tail call double @llvm.fmuladd.f64(double %16, double %17, double %10)
  %19 = getelementptr inbounds i8, ptr %1, i64 8
  %20 = load double, ptr %19, align 8, !tbaa !18
  %21 = getelementptr inbounds i8, ptr %6, i64 8
  %22 = load double, ptr %21, align 8, !tbaa !18
  %23 = tail call double @llvm.fmuladd.f64(double %20, double %22, double %18)
  br label %.loopexit.sink.split

24:                                               ; preds = %4
  %25 = load double, ptr %1, align 8, !tbaa !18
  %26 = load double, ptr %6, align 8, !tbaa !18
  %27 = tail call double @llvm.fmuladd.f64(double %25, double %26, double %10)
  %28 = getelementptr inbounds i8, ptr %1, i64 8
  %29 = load double, ptr %28, align 8, !tbaa !18
  %30 = getelementptr inbounds i8, ptr %6, i64 8
  %31 = load double, ptr %30, align 8, !tbaa !18
  %32 = tail call double @llvm.fmuladd.f64(double %29, double %31, double %27)
  %33 = getelementptr inbounds i8, ptr %1, i64 16
  %34 = load double, ptr %33, align 8, !tbaa !18
  %35 = getelementptr inbounds i8, ptr %6, i64 16
  %36 = load double, ptr %35, align 8, !tbaa !18
  %37 = tail call double @llvm.fmuladd.f64(double %34, double %36, double %32)
  br label %.loopexit.sink.split

38:                                               ; preds = %4
  %39 = load double, ptr %1, align 8, !tbaa !18
  %40 = load double, ptr %6, align 8, !tbaa !18
  %41 = tail call double @llvm.fmuladd.f64(double %39, double %40, double %10)
  %42 = getelementptr inbounds i8, ptr %1, i64 8
  %43 = load double, ptr %42, align 8, !tbaa !18
  %44 = getelementptr inbounds i8, ptr %6, i64 8
  %45 = load double, ptr %44, align 8, !tbaa !18
  %46 = tail call double @llvm.fmuladd.f64(double %43, double %45, double %41)
  %47 = getelementptr inbounds i8, ptr %1, i64 16
  %48 = load double, ptr %47, align 8, !tbaa !18
  %49 = getelementptr inbounds i8, ptr %6, i64 16
  %50 = load double, ptr %49, align 8, !tbaa !18
  %51 = tail call double @llvm.fmuladd.f64(double %48, double %50, double %46)
  %52 = getelementptr inbounds i8, ptr %1, i64 24
  %53 = load double, ptr %52, align 8, !tbaa !18
  %54 = getelementptr inbounds i8, ptr %6, i64 24
  %55 = load double, ptr %54, align 8, !tbaa !18
  %56 = tail call double @llvm.fmuladd.f64(double %53, double %55, double %51)
  br label %.loopexit.sink.split

57:                                               ; preds = %4
  %58 = load double, ptr %1, align 8, !tbaa !18
  %59 = load double, ptr %6, align 8, !tbaa !18
  %60 = tail call double @llvm.fmuladd.f64(double %58, double %59, double %10)
  %61 = getelementptr inbounds i8, ptr %1, i64 8
  %62 = load double, ptr %61, align 8, !tbaa !18
  %63 = getelementptr inbounds i8, ptr %6, i64 8
  %64 = load double, ptr %63, align 8, !tbaa !18
  %65 = tail call double @llvm.fmuladd.f64(double %62, double %64, double %60)
  %66 = getelementptr inbounds i8, ptr %1, i64 16
  %67 = load double, ptr %66, align 8, !tbaa !18
  %68 = getelementptr inbounds i8, ptr %6, i64 16
  %69 = load double, ptr %68, align 8, !tbaa !18
  %70 = tail call double @llvm.fmuladd.f64(double %67, double %69, double %65)
  %71 = getelementptr inbounds i8, ptr %1, i64 24
  %72 = load double, ptr %71, align 8, !tbaa !18
  %73 = getelementptr inbounds i8, ptr %6, i64 24
  %74 = load double, ptr %73, align 8, !tbaa !18
  %75 = tail call double @llvm.fmuladd.f64(double %72, double %74, double %70)
  %76 = getelementptr inbounds i8, ptr %1, i64 32
  %77 = load double, ptr %76, align 8, !tbaa !18
  %78 = getelementptr inbounds i8, ptr %6, i64 32
  %79 = load double, ptr %78, align 8, !tbaa !18
  %80 = tail call double @llvm.fmuladd.f64(double %77, double %79, double %75)
  br label %.loopexit.sink.split

81:                                               ; preds = %4
  %82 = load double, ptr %1, align 8, !tbaa !18
  %83 = load double, ptr %6, align 8, !tbaa !18
  %84 = tail call double @llvm.fmuladd.f64(double %82, double %83, double %10)
  %85 = getelementptr inbounds i8, ptr %1, i64 8
  %86 = load double, ptr %85, align 8, !tbaa !18
  %87 = getelementptr inbounds i8, ptr %6, i64 8
  %88 = load double, ptr %87, align 8, !tbaa !18
  %89 = tail call double @llvm.fmuladd.f64(double %86, double %88, double %84)
  %90 = getelementptr inbounds i8, ptr %1, i64 16
  %91 = load double, ptr %90, align 8, !tbaa !18
  %92 = getelementptr inbounds i8, ptr %6, i64 16
  %93 = load double, ptr %92, align 8, !tbaa !18
  %94 = tail call double @llvm.fmuladd.f64(double %91, double %93, double %89)
  %95 = getelementptr inbounds i8, ptr %1, i64 24
  %96 = load double, ptr %95, align 8, !tbaa !18
  %97 = getelementptr inbounds i8, ptr %6, i64 24
  %98 = load double, ptr %97, align 8, !tbaa !18
  %99 = tail call double @llvm.fmuladd.f64(double %96, double %98, double %94)
  %100 = getelementptr inbounds i8, ptr %1, i64 32
  %101 = load double, ptr %100, align 8, !tbaa !18
  %102 = getelementptr inbounds i8, ptr %6, i64 32
  %103 = load double, ptr %102, align 8, !tbaa !18
  %104 = tail call double @llvm.fmuladd.f64(double %101, double %103, double %99)
  %105 = getelementptr inbounds i8, ptr %1, i64 40
  %106 = load double, ptr %105, align 8, !tbaa !18
  %107 = getelementptr inbounds i8, ptr %6, i64 40
  %108 = load double, ptr %107, align 8, !tbaa !18
  %109 = tail call double @llvm.fmuladd.f64(double %106, double %108, double %104)
  br label %.loopexit.sink.split

110:                                              ; preds = %4
  %111 = load double, ptr %1, align 8, !tbaa !18
  %112 = load double, ptr %6, align 8, !tbaa !18
  %113 = tail call double @llvm.fmuladd.f64(double %111, double %112, double %10)
  %114 = getelementptr inbounds i8, ptr %1, i64 8
  %115 = load double, ptr %114, align 8, !tbaa !18
  %116 = getelementptr inbounds i8, ptr %6, i64 8
  %117 = load double, ptr %116, align 8, !tbaa !18
  %118 = tail call double @llvm.fmuladd.f64(double %115, double %117, double %113)
  %119 = getelementptr inbounds i8, ptr %1, i64 16
  %120 = load double, ptr %119, align 8, !tbaa !18
  %121 = getelementptr inbounds i8, ptr %6, i64 16
  %122 = load double, ptr %121, align 8, !tbaa !18
  %123 = tail call double @llvm.fmuladd.f64(double %120, double %122, double %118)
  %124 = getelementptr inbounds i8, ptr %1, i64 24
  %125 = load double, ptr %124, align 8, !tbaa !18
  %126 = getelementptr inbounds i8, ptr %6, i64 24
  %127 = load double, ptr %126, align 8, !tbaa !18
  %128 = tail call double @llvm.fmuladd.f64(double %125, double %127, double %123)
  %129 = getelementptr inbounds i8, ptr %1, i64 32
  %130 = load double, ptr %129, align 8, !tbaa !18
  %131 = getelementptr inbounds i8, ptr %6, i64 32
  %132 = load double, ptr %131, align 8, !tbaa !18
  %133 = tail call double @llvm.fmuladd.f64(double %130, double %132, double %128)
  %134 = getelementptr inbounds i8, ptr %1, i64 40
  %135 = load double, ptr %134, align 8, !tbaa !18
  %136 = getelementptr inbounds i8, ptr %6, i64 40
  %137 = load double, ptr %136, align 8, !tbaa !18
  %138 = tail call double @llvm.fmuladd.f64(double %135, double %137, double %133)
  %139 = getelementptr inbounds i8, ptr %1, i64 48
  %140 = load double, ptr %139, align 8, !tbaa !18
  %141 = getelementptr inbounds i8, ptr %6, i64 48
  %142 = load double, ptr %141, align 8, !tbaa !18
  %143 = tail call double @llvm.fmuladd.f64(double %140, double %142, double %138)
  br label %.loopexit.sink.split

144:                                              ; preds = %4
  store double %10, ptr %3, align 8, !tbaa !18
  %.not117 = icmp eq i32 %8, 0
  br i1 %.not117, label %.loopexit, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %144
  %xtraiter = and i32 %8, 3
  %lcmp.mod.not = icmp eq i32 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.lr.ph.prol.loopexit, label %.lr.ph.prol

.lr.ph.prol:                                      ; preds = %.lr.ph.preheader, %.lr.ph.prol
  %.0121.prol = phi i32 [ %145, %.lr.ph.prol ], [ %8, %.lr.ph.preheader ]
  %.0113120.prol = phi ptr [ %148, %.lr.ph.prol ], [ %6, %.lr.ph.preheader ]
  %.0114119.prol = phi ptr [ %146, %.lr.ph.prol ], [ %1, %.lr.ph.preheader ]
  %storemerge118.prol = phi double [ %150, %.lr.ph.prol ], [ %10, %.lr.ph.preheader ]
  %prol.iter = phi i32 [ %prol.iter.next, %.lr.ph.prol ], [ 0, %.lr.ph.preheader ]
  %145 = add nsw i32 %.0121.prol, -1
  %146 = getelementptr inbounds i8, ptr %.0114119.prol, i64 8
  %147 = load double, ptr %.0114119.prol, align 8, !tbaa !18
  %148 = getelementptr inbounds i8, ptr %.0113120.prol, i64 8
  %149 = load double, ptr %.0113120.prol, align 8, !tbaa !18
  %150 = tail call double @llvm.fmuladd.f64(double %147, double %149, double %storemerge118.prol)
  store double %150, ptr %3, align 8, !tbaa !18
  %prol.iter.next = add i32 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i32 %prol.iter.next, %xtraiter
  br i1 %prol.iter.cmp.not, label %.lr.ph.prol.loopexit, label %.lr.ph.prol, !llvm.loop !19

.lr.ph.prol.loopexit:                             ; preds = %.lr.ph.prol, %.lr.ph.preheader
  %.0121.unr = phi i32 [ %8, %.lr.ph.preheader ], [ %145, %.lr.ph.prol ]
  %.0113120.unr = phi ptr [ %6, %.lr.ph.preheader ], [ %148, %.lr.ph.prol ]
  %.0114119.unr = phi ptr [ %1, %.lr.ph.preheader ], [ %146, %.lr.ph.prol ]
  %storemerge118.unr = phi double [ %10, %.lr.ph.preheader ], [ %150, %.lr.ph.prol ]
  %151 = icmp ult i32 %8, 4
  br i1 %151, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.prol.loopexit, %.lr.ph
  %.0121 = phi i32 [ %167, %.lr.ph ], [ %.0121.unr, %.lr.ph.prol.loopexit ]
  %.0113120 = phi ptr [ %170, %.lr.ph ], [ %.0113120.unr, %.lr.ph.prol.loopexit ]
  %.0114119 = phi ptr [ %168, %.lr.ph ], [ %.0114119.unr, %.lr.ph.prol.loopexit ]
  %storemerge118 = phi double [ %172, %.lr.ph ], [ %storemerge118.unr, %.lr.ph.prol.loopexit ]
  %152 = getelementptr inbounds i8, ptr %.0114119, i64 8
  %153 = load double, ptr %.0114119, align 8, !tbaa !18
  %154 = getelementptr inbounds i8, ptr %.0113120, i64 8
  %155 = load double, ptr %.0113120, align 8, !tbaa !18
  %156 = tail call double @llvm.fmuladd.f64(double %153, double %155, double %storemerge118)
  store double %156, ptr %3, align 8, !tbaa !18
  %157 = getelementptr inbounds i8, ptr %.0114119, i64 16
  %158 = load double, ptr %152, align 8, !tbaa !18
  %159 = getelementptr inbounds i8, ptr %.0113120, i64 16
  %160 = load double, ptr %154, align 8, !tbaa !18
  %161 = tail call double @llvm.fmuladd.f64(double %158, double %160, double %156)
  store double %161, ptr %3, align 8, !tbaa !18
  %162 = getelementptr inbounds i8, ptr %.0114119, i64 24
  %163 = load double, ptr %157, align 8, !tbaa !18
  %164 = getelementptr inbounds i8, ptr %.0113120, i64 24
  %165 = load double, ptr %159, align 8, !tbaa !18
  %166 = tail call double @llvm.fmuladd.f64(double %163, double %165, double %161)
  store double %166, ptr %3, align 8, !tbaa !18
  %167 = add nsw i32 %.0121, -4
  %168 = getelementptr inbounds i8, ptr %.0114119, i64 32
  %169 = load double, ptr %162, align 8, !tbaa !18
  %170 = getelementptr inbounds i8, ptr %.0113120, i64 32
  %171 = load double, ptr %164, align 8, !tbaa !18
  %172 = tail call double @llvm.fmuladd.f64(double %169, double %171, double %166)
  store double %172, ptr %3, align 8, !tbaa !18
  %.not.3 = icmp eq i32 %167, 0
  br i1 %.not.3, label %.loopexit, label %.lr.ph, !llvm.loop !21

.loopexit.sink.split:                             ; preds = %11, %15, %24, %38, %57, %81, %110
  %.sink126 = phi i64 [ 56, %110 ], [ 48, %81 ], [ 40, %57 ], [ 32, %38 ], [ 24, %24 ], [ 16, %15 ], [ 8, %11 ]
  %.sink124 = phi double [ %143, %110 ], [ %109, %81 ], [ %80, %57 ], [ %56, %38 ], [ %37, %24 ], [ %23, %15 ], [ %14, %11 ]
  %173 = getelementptr inbounds i8, ptr %1, i64 %.sink126
  %174 = load double, ptr %173, align 8, !tbaa !18
  %175 = getelementptr inbounds i8, ptr %6, i64 %.sink126
  %176 = load double, ptr %175, align 8, !tbaa !18
  %177 = tail call double @llvm.fmuladd.f64(double %174, double %176, double %.sink124)
  store double %177, ptr %3, align 8, !tbaa !18
  br label %.loopexit

.loopexit:                                        ; preds = %.lr.ph.prol.loopexit, %.lr.ph, %.loopexit.sink.split, %144
  %178 = getelementptr inbounds i8, ptr %0, i64 3912
  %179 = load i32, ptr %178, align 8, !tbaa !23
  %180 = add nsw i32 %179, 1
  store i32 %180, ptr %178, align 8, !tbaa !23
  %181 = getelementptr inbounds i8, ptr %0, i64 444
  %182 = load i32, ptr %181, align 4, !tbaa !24
  %.not115 = icmp eq i32 %182, 0
  br i1 %.not115, label %183, label %.thread

183:                                              ; preds = %.loopexit
  %184 = getelementptr inbounds i8, ptr %0, i64 136
  %185 = load i32, ptr %184, align 8, !tbaa !25
  %186 = icmp slt i32 %185, 4
  br i1 %186, label %208, label %.thread.thread

.thread:                                          ; preds = %.loopexit
  %187 = tail call i32 @qh_rand(ptr noundef nonnull %0) #3
  %188 = sitofp i32 %187 to double
  %189 = fmul double %188, 2.000000e+00
  %190 = fdiv double %189, 0x41DFFFFFFF800000
  %191 = fadd double %190, -1.000000e+00
  %192 = getelementptr inbounds i8, ptr %0, i64 448
  %193 = load double, ptr %192, align 8, !tbaa !26
  %194 = fmul double %193, %191
  %195 = getelementptr inbounds i8, ptr %0, i64 1792
  %196 = load double, ptr %195, align 8, !tbaa !27
  %197 = load double, ptr %3, align 8, !tbaa !18
  %198 = tail call double @llvm.fmuladd.f64(double %194, double %196, double %197)
  store double %198, ptr %3, align 8, !tbaa !18
  %.phi.trans.insert = getelementptr inbounds i8, ptr %0, i64 136
  %.pre = load i32, ptr %.phi.trans.insert, align 8, !tbaa !25
  %199 = icmp sgt i32 %.pre, 3
  br i1 %199, label %.thread.thread, label %208

.thread.thread:                                   ; preds = %183, %.thread
  %200 = getelementptr inbounds i8, ptr %0, i64 2424
  %201 = load ptr, ptr %200, align 8, !tbaa !28
  tail call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %201, i32 noundef 8001, ptr noundef nonnull @.str) #3
  %202 = load ptr, ptr %200, align 8, !tbaa !28
  %203 = load double, ptr %3, align 8, !tbaa !18
  tail call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %202, i32 noundef 8002, ptr noundef nonnull @.str.1, double noundef %203) #3
  %204 = load ptr, ptr %200, align 8, !tbaa !28
  %205 = tail call i32 @qh_pointid(ptr noundef nonnull %0, ptr noundef %1) #3
  %206 = getelementptr inbounds i8, ptr %2, i64 108
  %207 = load i32, ptr %206, align 4, !tbaa !29
  tail call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %204, i32 noundef 8003, ptr noundef nonnull @.str.2, i32 noundef %205, i32 noundef %207) #3
  br label %208

208:                                              ; preds = %.thread, %.thread.thread, %183
  ret void
}

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

declare i32 @qh_rand(ptr noundef) local_unnamed_addr #2

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

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

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

!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 = !{!6, !7, i64 16}
!18 = !{!7, !7, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.unroll.disable"}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = !{!8, !8, i64 0}
!24 = !{!13, !11, i64 444}
!25 = !{!13, !11, i64 136}
!26 = !{!13, !7, i64 448}
!27 = !{!13, !7, i64 1792}
!28 = !{!13, !10, i64 2424}
!29 = !{!6, !11, i64 108}


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