; LLVM IR from sourceryinstitute/MORFEUS-Source :: src/FV/src/mesh_optimize/OptMS (SMorient)

; 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"

; Function Attrs: nounwind uwtable
define dso_local i32 @iOrient3D(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca double, align 8
  %11 = alloca double, align 8
  %12 = alloca double, 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 double, align 8
  %21 = alloca double, align 8
  %22 = alloca double, align 8
  %23 = alloca double, align 8
  %24 = alloca double, align 8
  %25 = alloca double, align 8
  %26 = alloca double, align 8
  %27 = alloca double, align 8
  %28 = alloca double, align 8
  %29 = alloca double, align 8
  %30 = alloca double, align 8
  %31 = alloca double, align 8
  %32 = alloca double, align 8
  %33 = alloca double, align 8
  %34 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %35 = load ptr, ptr %6, align 8, !tbaa !5
  %36 = getelementptr inbounds double, ptr %35, i64 0
  %37 = load double, ptr %36, align 8, !tbaa !9
  store double %37, ptr %10, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  %38 = load ptr, ptr %6, align 8, !tbaa !5
  %39 = getelementptr inbounds double, ptr %38, i64 1
  %40 = load double, ptr %39, align 8, !tbaa !9
  store double %40, ptr %11, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %41 = load ptr, ptr %6, align 8, !tbaa !5
  %42 = getelementptr inbounds double, ptr %41, i64 2
  %43 = load double, ptr %42, align 8, !tbaa !9
  store double %43, ptr %12, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %44 = load ptr, ptr %7, align 8, !tbaa !5
  %45 = getelementptr inbounds double, ptr %44, i64 0
  %46 = load double, ptr %45, align 8, !tbaa !9
  store double %46, ptr %13, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  %47 = load ptr, ptr %7, align 8, !tbaa !5
  %48 = getelementptr inbounds double, ptr %47, i64 1
  %49 = load double, ptr %48, align 8, !tbaa !9
  store double %49, ptr %14, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  %50 = load ptr, ptr %7, align 8, !tbaa !5
  %51 = getelementptr inbounds double, ptr %50, i64 2
  %52 = load double, ptr %51, align 8, !tbaa !9
  store double %52, ptr %15, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  %53 = load ptr, ptr %8, align 8, !tbaa !5
  %54 = getelementptr inbounds double, ptr %53, i64 0
  %55 = load double, ptr %54, align 8, !tbaa !9
  store double %55, ptr %16, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  %56 = load ptr, ptr %8, align 8, !tbaa !5
  %57 = getelementptr inbounds double, ptr %56, i64 1
  %58 = load double, ptr %57, align 8, !tbaa !9
  store double %58, ptr %17, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  %59 = load ptr, ptr %8, align 8, !tbaa !5
  %60 = getelementptr inbounds double, ptr %59, i64 2
  %61 = load double, ptr %60, align 8, !tbaa !9
  store double %61, ptr %18, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  %62 = load ptr, ptr %9, align 8, !tbaa !5
  %63 = getelementptr inbounds double, ptr %62, i64 0
  %64 = load double, ptr %63, align 8, !tbaa !9
  store double %64, ptr %19, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  %65 = load ptr, ptr %9, align 8, !tbaa !5
  %66 = getelementptr inbounds double, ptr %65, i64 1
  %67 = load double, ptr %66, align 8, !tbaa !9
  store double %67, ptr %20, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  %68 = load ptr, ptr %9, align 8, !tbaa !5
  %69 = getelementptr inbounds double, ptr %68, i64 2
  %70 = load double, ptr %69, align 8, !tbaa !9
  store double %70, ptr %21, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #4
  %71 = load double, ptr %13, align 8, !tbaa !9
  %72 = load double, ptr %10, align 8, !tbaa !9
  %73 = fsub double %71, %72
  store double %73, ptr %22, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #4
  %74 = load double, ptr %16, align 8, !tbaa !9
  %75 = load double, ptr %10, align 8, !tbaa !9
  %76 = fsub double %74, %75
  store double %76, ptr %23, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #4
  %77 = load double, ptr %19, align 8, !tbaa !9
  %78 = load double, ptr %10, align 8, !tbaa !9
  %79 = fsub double %77, %78
  store double %79, ptr %24, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #4
  %80 = load double, ptr %14, align 8, !tbaa !9
  %81 = load double, ptr %11, align 8, !tbaa !9
  %82 = fsub double %80, %81
  store double %82, ptr %25, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #4
  %83 = load double, ptr %17, align 8, !tbaa !9
  %84 = load double, ptr %11, align 8, !tbaa !9
  %85 = fsub double %83, %84
  store double %85, ptr %26, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #4
  %86 = load double, ptr %20, align 8, !tbaa !9
  %87 = load double, ptr %11, align 8, !tbaa !9
  %88 = fsub double %86, %87
  store double %88, ptr %27, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #4
  %89 = load double, ptr %15, align 8, !tbaa !9
  %90 = load double, ptr %12, align 8, !tbaa !9
  %91 = fsub double %89, %90
  store double %91, ptr %28, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #4
  %92 = load double, ptr %18, align 8, !tbaa !9
  %93 = load double, ptr %12, align 8, !tbaa !9
  %94 = fsub double %92, %93
  store double %94, ptr %29, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #4
  %95 = load double, ptr %21, align 8, !tbaa !9
  %96 = load double, ptr %12, align 8, !tbaa !9
  %97 = fsub double %95, %96
  store double %97, ptr %30, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #4
  %98 = load double, ptr %22, align 8, !tbaa !9
  %99 = load double, ptr %26, align 8, !tbaa !9
  %100 = fmul double %98, %99
  %101 = load double, ptr %30, align 8, !tbaa !9
  %102 = load double, ptr %23, align 8, !tbaa !9
  %103 = load double, ptr %27, align 8, !tbaa !9
  %104 = fmul double %102, %103
  %105 = load double, ptr %28, align 8, !tbaa !9
  %106 = fmul double %104, %105
  %107 = call double @llvm.fmuladd.f64(double %100, double %101, double %106)
  %108 = load double, ptr %24, align 8, !tbaa !9
  %109 = load double, ptr %25, align 8, !tbaa !9
  %110 = fmul double %108, %109
  %111 = load double, ptr %29, align 8, !tbaa !9
  %112 = call double @llvm.fmuladd.f64(double %110, double %111, double %107)
  %113 = load double, ptr %28, align 8, !tbaa !9
  %114 = load double, ptr %26, align 8, !tbaa !9
  %115 = fmul double %113, %114
  %116 = load double, ptr %24, align 8, !tbaa !9
  %117 = fneg double %115
  %118 = call double @llvm.fmuladd.f64(double %117, double %116, double %112)
  %119 = load double, ptr %29, align 8, !tbaa !9
  %120 = load double, ptr %27, align 8, !tbaa !9
  %121 = fmul double %119, %120
  %122 = load double, ptr %22, align 8, !tbaa !9
  %123 = fneg double %121
  %124 = call double @llvm.fmuladd.f64(double %123, double %122, double %118)
  %125 = load double, ptr %30, align 8, !tbaa !9
  %126 = load double, ptr %25, align 8, !tbaa !9
  %127 = fmul double %125, %126
  %128 = load double, ptr %23, align 8, !tbaa !9
  %129 = fneg double %127
  %130 = call double @llvm.fmuladd.f64(double %129, double %128, double %124)
  store double %130, ptr %31, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #4
  %131 = load double, ptr %10, align 8, !tbaa !9
  %132 = load double, ptr %13, align 8, !tbaa !9
  %133 = fsub double %131, %132
  %134 = load double, ptr %10, align 8, !tbaa !9
  %135 = load double, ptr %13, align 8, !tbaa !9
  %136 = fsub double %134, %135
  %137 = load double, ptr %11, align 8, !tbaa !9
  %138 = load double, ptr %14, align 8, !tbaa !9
  %139 = fsub double %137, %138
  %140 = load double, ptr %11, align 8, !tbaa !9
  %141 = load double, ptr %14, align 8, !tbaa !9
  %142 = fsub double %140, %141
  %143 = fmul double %139, %142
  %144 = call double @llvm.fmuladd.f64(double %133, double %136, double %143)
  %145 = load double, ptr %12, align 8, !tbaa !9
  %146 = load double, ptr %15, align 8, !tbaa !9
  %147 = fsub double %145, %146
  %148 = load double, ptr %12, align 8, !tbaa !9
  %149 = load double, ptr %15, align 8, !tbaa !9
  %150 = fsub double %148, %149
  %151 = call double @llvm.fmuladd.f64(double %147, double %150, double %144)
  %152 = call double @sqrt(double noundef %151) #4
  %153 = load double, ptr %10, align 8, !tbaa !9
  %154 = load double, ptr %16, align 8, !tbaa !9
  %155 = fsub double %153, %154
  %156 = load double, ptr %10, align 8, !tbaa !9
  %157 = load double, ptr %16, align 8, !tbaa !9
  %158 = fsub double %156, %157
  %159 = load double, ptr %11, align 8, !tbaa !9
  %160 = load double, ptr %17, align 8, !tbaa !9
  %161 = fsub double %159, %160
  %162 = load double, ptr %11, align 8, !tbaa !9
  %163 = load double, ptr %17, align 8, !tbaa !9
  %164 = fsub double %162, %163
  %165 = fmul double %161, %164
  %166 = call double @llvm.fmuladd.f64(double %155, double %158, double %165)
  %167 = load double, ptr %12, align 8, !tbaa !9
  %168 = load double, ptr %18, align 8, !tbaa !9
  %169 = fsub double %167, %168
  %170 = load double, ptr %12, align 8, !tbaa !9
  %171 = load double, ptr %18, align 8, !tbaa !9
  %172 = fsub double %170, %171
  %173 = call double @llvm.fmuladd.f64(double %169, double %172, double %166)
  %174 = call double @sqrt(double noundef %173) #4
  %175 = fadd double %152, %174
  %176 = load double, ptr %10, align 8, !tbaa !9
  %177 = load double, ptr %19, align 8, !tbaa !9
  %178 = fsub double %176, %177
  %179 = load double, ptr %10, align 8, !tbaa !9
  %180 = load double, ptr %19, align 8, !tbaa !9
  %181 = fsub double %179, %180
  %182 = load double, ptr %11, align 8, !tbaa !9
  %183 = load double, ptr %20, align 8, !tbaa !9
  %184 = fsub double %182, %183
  %185 = load double, ptr %11, align 8, !tbaa !9
  %186 = load double, ptr %20, align 8, !tbaa !9
  %187 = fsub double %185, %186
  %188 = fmul double %184, %187
  %189 = call double @llvm.fmuladd.f64(double %178, double %181, double %188)
  %190 = load double, ptr %12, align 8, !tbaa !9
  %191 = load double, ptr %21, align 8, !tbaa !9
  %192 = fsub double %190, %191
  %193 = load double, ptr %12, align 8, !tbaa !9
  %194 = load double, ptr %21, align 8, !tbaa !9
  %195 = fsub double %193, %194
  %196 = call double @llvm.fmuladd.f64(double %192, double %195, double %189)
  %197 = call double @sqrt(double noundef %196) #4
  %198 = fadd double %175, %197
  %199 = load double, ptr %13, align 8, !tbaa !9
  %200 = load double, ptr %16, align 8, !tbaa !9
  %201 = fsub double %199, %200
  %202 = load double, ptr %13, align 8, !tbaa !9
  %203 = load double, ptr %16, align 8, !tbaa !9
  %204 = fsub double %202, %203
  %205 = load double, ptr %14, align 8, !tbaa !9
  %206 = load double, ptr %17, align 8, !tbaa !9
  %207 = fsub double %205, %206
  %208 = load double, ptr %14, align 8, !tbaa !9
  %209 = load double, ptr %17, align 8, !tbaa !9
  %210 = fsub double %208, %209
  %211 = fmul double %207, %210
  %212 = call double @llvm.fmuladd.f64(double %201, double %204, double %211)
  %213 = load double, ptr %15, align 8, !tbaa !9
  %214 = load double, ptr %18, align 8, !tbaa !9
  %215 = fsub double %213, %214
  %216 = load double, ptr %15, align 8, !tbaa !9
  %217 = load double, ptr %18, align 8, !tbaa !9
  %218 = fsub double %216, %217
  %219 = call double @llvm.fmuladd.f64(double %215, double %218, double %212)
  %220 = call double @sqrt(double noundef %219) #4
  %221 = fadd double %198, %220
  %222 = load double, ptr %13, align 8, !tbaa !9
  %223 = load double, ptr %19, align 8, !tbaa !9
  %224 = fsub double %222, %223
  %225 = load double, ptr %13, align 8, !tbaa !9
  %226 = load double, ptr %19, align 8, !tbaa !9
  %227 = fsub double %225, %226
  %228 = load double, ptr %14, align 8, !tbaa !9
  %229 = load double, ptr %20, align 8, !tbaa !9
  %230 = fsub double %228, %229
  %231 = load double, ptr %14, align 8, !tbaa !9
  %232 = load double, ptr %20, align 8, !tbaa !9
  %233 = fsub double %231, %232
  %234 = fmul double %230, %233
  %235 = call double @llvm.fmuladd.f64(double %224, double %227, double %234)
  %236 = load double, ptr %15, align 8, !tbaa !9
  %237 = load double, ptr %21, align 8, !tbaa !9
  %238 = fsub double %236, %237
  %239 = load double, ptr %15, align 8, !tbaa !9
  %240 = load double, ptr %21, align 8, !tbaa !9
  %241 = fsub double %239, %240
  %242 = call double @llvm.fmuladd.f64(double %238, double %241, double %235)
  %243 = call double @sqrt(double noundef %242) #4
  %244 = fadd double %221, %243
  %245 = load double, ptr %16, align 8, !tbaa !9
  %246 = load double, ptr %19, align 8, !tbaa !9
  %247 = fsub double %245, %246
  %248 = load double, ptr %16, align 8, !tbaa !9
  %249 = load double, ptr %19, align 8, !tbaa !9
  %250 = fsub double %248, %249
  %251 = load double, ptr %17, align 8, !tbaa !9
  %252 = load double, ptr %20, align 8, !tbaa !9
  %253 = fsub double %251, %252
  %254 = load double, ptr %17, align 8, !tbaa !9
  %255 = load double, ptr %20, align 8, !tbaa !9
  %256 = fsub double %254, %255
  %257 = fmul double %253, %256
  %258 = call double @llvm.fmuladd.f64(double %247, double %250, double %257)
  %259 = load double, ptr %18, align 8, !tbaa !9
  %260 = load double, ptr %21, align 8, !tbaa !9
  %261 = fsub double %259, %260
  %262 = load double, ptr %18, align 8, !tbaa !9
  %263 = load double, ptr %21, align 8, !tbaa !9
  %264 = fsub double %262, %263
  %265 = call double @llvm.fmuladd.f64(double %261, double %264, double %258)
  %266 = call double @sqrt(double noundef %265) #4
  %267 = fadd double %244, %266
  %268 = fdiv double %267, 6.000000e+00
  store double %268, ptr %32, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #4
  store double 1.000000e-13, ptr %33, align 8, !tbaa !9
  %269 = load double, ptr %32, align 8, !tbaa !9
  %270 = load double, ptr %32, align 8, !tbaa !9
  %271 = fmul double %269, %270
  %272 = load double, ptr %32, align 8, !tbaa !9
  %273 = fmul double %271, %272
  %274 = load double, ptr %31, align 8, !tbaa !9
  %275 = fdiv double %274, %273
  store double %275, ptr %31, align 8, !tbaa !9
  %276 = load double, ptr %31, align 8, !tbaa !9
  %277 = load double, ptr %33, align 8, !tbaa !9
  %278 = fcmp ogt double %276, %277
  br i1 %278, label %279, label %280

279:                                              ; preds = %4
  store i32 1, ptr %5, align 4
  store i32 1, ptr %34, align 4
  br label %287

280:                                              ; preds = %4
  %281 = load double, ptr %31, align 8, !tbaa !9
  %282 = load double, ptr %33, align 8, !tbaa !9
  %283 = fneg double %282
  %284 = fcmp olt double %281, %283
  br i1 %284, label %285, label %286

285:                                              ; preds = %280
  store i32 -1, ptr %5, align 4
  store i32 1, ptr %34, align 4
  br label %287

286:                                              ; preds = %280
  store i32 0, ptr %5, align 4
  store i32 1, ptr %34, align 4
  br label %287

287:                                              ; preds = %286, %285, %279
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 8, 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 8, 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
  call void @llvm.lifetime.end.p0(i64 8, 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
  %288 = load i32, ptr %5, align 4
  ret i32 %288
}

; 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

; Function Attrs: nounwind
declare double @sqrt(double 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 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}


; 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"

; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: read) uwtable
define dso_local range(i32 -1, 2) i32 @iOrient3D(ptr nocapture noundef readonly %0, ptr nocapture noundef readonly %1, ptr nocapture noundef readonly %2, ptr nocapture noundef readonly %3) local_unnamed_addr #0 {
  %5 = getelementptr inbounds i8, ptr %0, i64 16
  %6 = load double, ptr %5, align 8, !tbaa !5
  %7 = load double, ptr %1, align 8, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %1, i64 8
  %9 = load double, ptr %8, align 8, !tbaa !5
  %10 = getelementptr inbounds i8, ptr %1, i64 16
  %11 = load double, ptr %10, align 8, !tbaa !5
  %12 = load double, ptr %2, align 8, !tbaa !5
  %13 = getelementptr inbounds i8, ptr %2, i64 8
  %14 = load double, ptr %13, align 8, !tbaa !5
  %15 = getelementptr inbounds i8, ptr %2, i64 16
  %16 = load double, ptr %15, align 8, !tbaa !5
  %17 = load double, ptr %3, align 8, !tbaa !5
  %18 = getelementptr inbounds i8, ptr %3, i64 8
  %19 = load double, ptr %18, align 8, !tbaa !5
  %20 = getelementptr inbounds i8, ptr %3, i64 16
  %21 = load double, ptr %20, align 8, !tbaa !5
  %22 = load <2 x double>, ptr %0, align 8, !tbaa !5
  %23 = extractelement <2 x double> %22, i64 0
  %24 = fsub double %7, %23
  %25 = fsub double %12, %23
  %26 = insertelement <2 x double> poison, double %17, i64 0
  %27 = insertelement <2 x double> %26, double %9, i64 1
  %28 = fsub <2 x double> %27, %22
  %29 = extractelement <2 x double> %22, i64 1
  %30 = fsub double %14, %29
  %31 = fsub double %19, %29
  %32 = fsub double %11, %6
  %33 = fsub double %16, %6
  %34 = fsub double %21, %6
  %35 = fmul double %24, %30
  %36 = fmul double %25, %31
  %37 = fmul double %32, %36
  %38 = tail call double @llvm.fmuladd.f64(double %35, double %34, double %37)
  %39 = extractelement <2 x double> %28, i64 0
  %40 = extractelement <2 x double> %28, i64 1
  %41 = fmul double %40, %39
  %42 = tail call double @llvm.fmuladd.f64(double %41, double %33, double %38)
  %43 = fneg double %32
  %44 = fmul double %30, %43
  %45 = tail call double @llvm.fmuladd.f64(double %44, double %39, double %42)
  %46 = fneg double %33
  %47 = fmul double %31, %46
  %48 = tail call double @llvm.fmuladd.f64(double %47, double %24, double %45)
  %49 = fneg double %34
  %50 = fmul double %40, %49
  %51 = tail call double @llvm.fmuladd.f64(double %50, double %25, double %48)
  %52 = shufflevector <2 x double> %22, <2 x double> poison, <2 x i32> zeroinitializer
  %53 = insertelement <2 x double> poison, double %7, i64 0
  %54 = insertelement <2 x double> %53, double %12, i64 1
  %55 = fsub <2 x double> %52, %54
  %56 = shufflevector <2 x double> %22, <2 x double> poison, <2 x i32> <i32 1, i32 1>
  %57 = insertelement <2 x double> poison, double %9, i64 0
  %58 = insertelement <2 x double> %57, double %14, i64 1
  %59 = fsub <2 x double> %56, %58
  %60 = fmul <2 x double> %59, %59
  %61 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %55, <2 x double> %55, <2 x double> %60)
  %62 = insertelement <2 x double> poison, double %6, i64 0
  %63 = shufflevector <2 x double> %62, <2 x double> poison, <2 x i32> zeroinitializer
  %64 = insertelement <2 x double> poison, double %11, i64 0
  %65 = insertelement <2 x double> %64, double %16, i64 1
  %66 = fsub <2 x double> %63, %65
  %67 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %66, <2 x double> %66, <2 x double> %61)
  %68 = tail call <2 x double> @llvm.sqrt.v2f64(<2 x double> %67)
  %shift = shufflevector <2 x double> %68, <2 x double> poison, <2 x i32> <i32 1, i32 poison>
  %69 = fadd <2 x double> %68, %shift
  %70 = extractelement <2 x double> %69, i64 0
  %71 = fsub double %23, %17
  %72 = fsub double %29, %19
  %73 = fmul double %72, %72
  %74 = tail call double @llvm.fmuladd.f64(double %71, double %71, double %73)
  %75 = fsub double %6, %21
  %76 = tail call double @llvm.fmuladd.f64(double %75, double %75, double %74)
  %sqrt131 = tail call double @llvm.sqrt.f64(double %76)
  %77 = fadd double %70, %sqrt131
  %78 = fsub double %7, %12
  %79 = fsub double %9, %14
  %80 = fmul double %79, %79
  %81 = tail call double @llvm.fmuladd.f64(double %78, double %78, double %80)
  %82 = fsub double %11, %16
  %83 = tail call double @llvm.fmuladd.f64(double %82, double %82, double %81)
  %sqrt130 = tail call double @llvm.sqrt.f64(double %83)
  %84 = fadd double %sqrt130, %77
  %85 = fsub double %7, %17
  %86 = fsub double %9, %19
  %87 = fmul double %86, %86
  %88 = tail call double @llvm.fmuladd.f64(double %85, double %85, double %87)
  %89 = fsub double %11, %21
  %90 = tail call double @llvm.fmuladd.f64(double %89, double %89, double %88)
  %sqrt129 = tail call double @llvm.sqrt.f64(double %90)
  %91 = fadd double %sqrt129, %84
  %92 = fsub double %12, %17
  %93 = fsub double %14, %19
  %94 = fmul double %93, %93
  %95 = tail call double @llvm.fmuladd.f64(double %92, double %92, double %94)
  %96 = fsub double %16, %21
  %97 = tail call double @llvm.fmuladd.f64(double %96, double %96, double %95)
  %sqrt = tail call double @llvm.sqrt.f64(double %97)
  %98 = fadd double %sqrt, %91
  %99 = fdiv double %98, 6.000000e+00
  %100 = fmul double %99, %99
  %101 = fmul double %99, %100
  %102 = fdiv double %51, %101
  %103 = fcmp ogt double %102, 1.000000e-13
  %104 = fcmp olt double %102, -1.000000e-13
  %. = sext i1 %104 to i32
  %.0 = select i1 %103, i32 1, i32 %.
  ret i32 %.0
}

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

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

; 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>) #2

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

attributes #0 = { mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: read) 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}


; Effective O3 passes: AggressiveInstCombinePass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass,VectorCombinePass