; LLVM IR from Ubpa/USTC_CG :: Homeworks/6_MassSpring/documents/tetgen/src/TetGene (tetgen)

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

%"class.tetgenmesh::triface" = type <{ ptr, i32, [4 x i8] }>
%class.tetgenmesh = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.tetgenmesh::triface", %"class.tetgenmesh::face", ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i64, i64, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, [8 x [3 x [8 x i32]]], [8 x i32] }
%"class.tetgenmesh::face" = type <{ ptr, i32, [4 x i8] }>
%class.tetgenbehavior = type <{ i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, double, double, double, double, double, double, double, double, double, double, double, double, [1024 x i8], [1024 x i8], [1024 x i8], [1024 x i8], [1024 x i8], i32, [4 x i8] }>

@_ZN10tetgenmesh7fsymtblE = external dso_local global [12 x [12 x i32]], align 16

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z15terminatetetgenP10tetgenmeshi(ptr noundef, i32 noundef) #1

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

; Function Attrs: nounwind
declare double @sqrt(double noundef) #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZN10tetgenmesh3dotEPdS0_(ptr noundef nonnull align 8 dereferenceable(1536), ptr noundef, ptr noundef) #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZN10tetgenmesh8distanceEPdS0_(ptr noundef nonnull align 8 dereferenceable(1536), ptr noundef, ptr noundef) #3 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN10tetgenmesh8lu_decmpEPA4_diPiPdi(ptr noundef nonnull align 8 dereferenceable(1536), ptr noundef, i32 noundef, ptr noundef, ptr noundef, i32 noundef) #5 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN10tetgenmesh8lu_solveEPA4_diPiPdi(ptr noundef nonnull align 8 dereferenceable(1536), ptr noundef, i32 noundef, ptr noundef, ptr noundef, i32 noundef) #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN10tetgenmesh5crossEPdS0_S0_(ptr noundef nonnull align 8 dereferenceable(1536), ptr noundef, ptr noundef, ptr noundef) #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN10tetgenmesh4sorgERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536), ptr noundef nonnull align 8 dereferenceable(12)) #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN10tetgenmesh5sdestERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536), ptr noundef nonnull align 8 dereferenceable(12)) #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN10tetgenmesh5sapexERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536), ptr noundef nonnull align 8 dereferenceable(12)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN10tetgenmesh7trifaceC2Ev(ptr noundef nonnull align 8 dereferenceable(12)) unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN10tetgenmesh4oppoERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536), ptr noundef nonnull align 8 dereferenceable(12)) #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZN10tetgenmesh11volumeboundEPPPd(ptr noundef nonnull align 8 dereferenceable(1536), ptr noundef) #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN10tetgenmesh9sesymselfERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536), ptr noundef nonnull align 8 dereferenceable(12)) #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN10tetgenmesh6decodeEPPdRNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536), ptr noundef, ptr noundef nonnull align 8 dereferenceable(12)) #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN10tetgenmesh7stpivotERNS_4faceERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536), ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 8 dereferenceable(12)) #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN10tetgenmesh9ishulltetERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536), ptr noundef nonnull align 8 dereferenceable(12)) #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZN10tetgenmesh9areaboundERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536), ptr noundef nonnull align 8 dereferenceable(12)) #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN10tetgenmesh14checkfac4splitEPNS_4faceERPdRiS2_(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %1, ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef %4) #6 align 2 {
  %6 = alloca i32, align 4
  %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 ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca [4 x [4 x double]], align 16
  %19 = alloca [4 x double], align 16
  %20 = alloca double, align 8
  %21 = alloca [4 x i32], align 16
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca %"class.tetgenmesh::triface", align 8
  %25 = alloca double, align 8
  %26 = alloca i32, align 4
  %27 = alloca %"class.tetgenmesh::triface", align 8
  %28 = alloca double, align 8
  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
  %29 = load ptr, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.start.p0(i64 128, ptr %18) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr %19) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #7
  %30 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr null, ptr %30, align 8, !tbaa !5
  %31 = load ptr, ptr %10, align 8, !tbaa !5
  store i32 0, ptr %31, align 4, !tbaa !9
  %32 = load ptr, ptr %8, align 8, !tbaa !5
  %33 = call noundef ptr @_ZN10tetgenmesh4sorgERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %29, ptr noundef nonnull align 8 dereferenceable(12) %32)
  store ptr %33, ptr %12, align 8, !tbaa !5
  %34 = load ptr, ptr %8, align 8, !tbaa !5
  %35 = call noundef ptr @_ZN10tetgenmesh5sdestERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %29, ptr noundef nonnull align 8 dereferenceable(12) %34)
  store ptr %35, ptr %13, align 8, !tbaa !5
  %36 = load ptr, ptr %8, align 8, !tbaa !5
  %37 = call noundef ptr @_ZN10tetgenmesh5sapexERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %29, ptr noundef nonnull align 8 dereferenceable(12) %36)
  store ptr %37, ptr %14, align 8, !tbaa !5
  %38 = load ptr, ptr %13, align 8, !tbaa !5
  %39 = getelementptr inbounds double, ptr %38, i64 0
  %40 = load double, ptr %39, align 8, !tbaa !11
  %41 = load ptr, ptr %12, align 8, !tbaa !5
  %42 = getelementptr inbounds double, ptr %41, i64 0
  %43 = load double, ptr %42, align 8, !tbaa !11
  %44 = fsub double %40, %43
  %45 = getelementptr inbounds [4 x [4 x double]], ptr %18, i64 0, i64 0
  %46 = getelementptr inbounds [4 x double], ptr %45, i64 0, i64 0
  store double %44, ptr %46, align 16, !tbaa !11
  %47 = load ptr, ptr %13, align 8, !tbaa !5
  %48 = getelementptr inbounds double, ptr %47, i64 1
  %49 = load double, ptr %48, align 8, !tbaa !11
  %50 = load ptr, ptr %12, align 8, !tbaa !5
  %51 = getelementptr inbounds double, ptr %50, i64 1
  %52 = load double, ptr %51, align 8, !tbaa !11
  %53 = fsub double %49, %52
  %54 = getelementptr inbounds [4 x [4 x double]], ptr %18, i64 0, i64 0
  %55 = getelementptr inbounds [4 x double], ptr %54, i64 0, i64 1
  store double %53, ptr %55, align 8, !tbaa !11
  %56 = load ptr, ptr %13, align 8, !tbaa !5
  %57 = getelementptr inbounds double, ptr %56, i64 2
  %58 = load double, ptr %57, align 8, !tbaa !11
  %59 = load ptr, ptr %12, align 8, !tbaa !5
  %60 = getelementptr inbounds double, ptr %59, i64 2
  %61 = load double, ptr %60, align 8, !tbaa !11
  %62 = fsub double %58, %61
  %63 = getelementptr inbounds [4 x [4 x double]], ptr %18, i64 0, i64 0
  %64 = getelementptr inbounds [4 x double], ptr %63, i64 0, i64 2
  store double %62, ptr %64, align 16, !tbaa !11
  %65 = load ptr, ptr %14, align 8, !tbaa !5
  %66 = getelementptr inbounds double, ptr %65, i64 0
  %67 = load double, ptr %66, align 8, !tbaa !11
  %68 = load ptr, ptr %12, align 8, !tbaa !5
  %69 = getelementptr inbounds double, ptr %68, i64 0
  %70 = load double, ptr %69, align 8, !tbaa !11
  %71 = fsub double %67, %70
  %72 = getelementptr inbounds [4 x [4 x double]], ptr %18, i64 0, i64 1
  %73 = getelementptr inbounds [4 x double], ptr %72, i64 0, i64 0
  store double %71, ptr %73, align 16, !tbaa !11
  %74 = load ptr, ptr %14, align 8, !tbaa !5
  %75 = getelementptr inbounds double, ptr %74, i64 1
  %76 = load double, ptr %75, align 8, !tbaa !11
  %77 = load ptr, ptr %12, align 8, !tbaa !5
  %78 = getelementptr inbounds double, ptr %77, i64 1
  %79 = load double, ptr %78, align 8, !tbaa !11
  %80 = fsub double %76, %79
  %81 = getelementptr inbounds [4 x [4 x double]], ptr %18, i64 0, i64 1
  %82 = getelementptr inbounds [4 x double], ptr %81, i64 0, i64 1
  store double %80, ptr %82, align 8, !tbaa !11
  %83 = load ptr, ptr %14, align 8, !tbaa !5
  %84 = getelementptr inbounds double, ptr %83, i64 2
  %85 = load double, ptr %84, align 8, !tbaa !11
  %86 = load ptr, ptr %12, align 8, !tbaa !5
  %87 = getelementptr inbounds double, ptr %86, i64 2
  %88 = load double, ptr %87, align 8, !tbaa !11
  %89 = fsub double %85, %88
  %90 = getelementptr inbounds [4 x [4 x double]], ptr %18, i64 0, i64 1
  %91 = getelementptr inbounds [4 x double], ptr %90, i64 0, i64 2
  store double %89, ptr %91, align 16, !tbaa !11
  %92 = getelementptr inbounds [4 x [4 x double]], ptr %18, i64 0, i64 0
  %93 = getelementptr inbounds [4 x double], ptr %92, i64 0, i64 0
  %94 = getelementptr inbounds [4 x [4 x double]], ptr %18, i64 0, i64 1
  %95 = getelementptr inbounds [4 x double], ptr %94, i64 0, i64 0
  %96 = getelementptr inbounds [4 x [4 x double]], ptr %18, i64 0, i64 2
  %97 = getelementptr inbounds [4 x double], ptr %96, i64 0, i64 0
  call void @_ZN10tetgenmesh5crossEPdS0_S0_(ptr noundef nonnull align 8 dereferenceable(1536) %29, ptr noundef %93, ptr noundef %95, ptr noundef %97)
  %98 = getelementptr inbounds [4 x [4 x double]], ptr %18, i64 0, i64 2
  %99 = getelementptr inbounds [4 x double], ptr %98, i64 0, i64 0
  %100 = getelementptr inbounds [4 x [4 x double]], ptr %18, i64 0, i64 2
  %101 = getelementptr inbounds [4 x double], ptr %100, i64 0, i64 0
  %102 = call noundef double @_ZN10tetgenmesh3dotEPdS0_(ptr noundef nonnull align 8 dereferenceable(1536) %29, ptr noundef %99, ptr noundef %101)
  %103 = call double @sqrt(double noundef %102) #7
  %104 = fmul double 5.000000e-01, %103
  store double %104, ptr %15, align 8, !tbaa !11
  %105 = getelementptr inbounds [4 x [4 x double]], ptr %18, i64 0, i64 0
  %106 = getelementptr inbounds [4 x double], ptr %105, i64 0, i64 0
  %107 = getelementptr inbounds [4 x [4 x double]], ptr %18, i64 0, i64 0
  %108 = getelementptr inbounds [4 x double], ptr %107, i64 0, i64 0
  %109 = call noundef double @_ZN10tetgenmesh3dotEPdS0_(ptr noundef nonnull align 8 dereferenceable(1536) %29, ptr noundef %106, ptr noundef %108)
  %110 = fmul double 5.000000e-01, %109
  %111 = getelementptr inbounds [4 x double], ptr %19, i64 0, i64 0
  store double %110, ptr %111, align 16, !tbaa !11
  %112 = getelementptr inbounds [4 x [4 x double]], ptr %18, i64 0, i64 1
  %113 = getelementptr inbounds [4 x double], ptr %112, i64 0, i64 0
  %114 = getelementptr inbounds [4 x [4 x double]], ptr %18, i64 0, i64 1
  %115 = getelementptr inbounds [4 x double], ptr %114, i64 0, i64 0
  %116 = call noundef double @_ZN10tetgenmesh3dotEPdS0_(ptr noundef nonnull align 8 dereferenceable(1536) %29, ptr noundef %113, ptr noundef %115)
  %117 = fmul double 5.000000e-01, %116
  %118 = getelementptr inbounds [4 x double], ptr %19, i64 0, i64 1
  store double %117, ptr %118, align 8, !tbaa !11
  %119 = getelementptr inbounds [4 x double], ptr %19, i64 0, i64 2
  store double 0.000000e+00, ptr %119, align 16, !tbaa !11
  %120 = getelementptr inbounds [4 x [4 x double]], ptr %18, i64 0, i64 0
  %121 = getelementptr inbounds [4 x i32], ptr %21, i64 0, i64 0
  %122 = call noundef zeroext i1 @_ZN10tetgenmesh8lu_decmpEPA4_diPiPdi(ptr noundef nonnull align 8 dereferenceable(1536) %29, ptr noundef %120, i32 noundef 3, ptr noundef %121, ptr noundef %20, i32 noundef 0)
  br i1 %122, label %124, label %123

123:                                              ; preds = %5
  call void @_Z15terminatetetgenP10tetgenmeshi(ptr noundef %29, i32 noundef 2)
  br label %124

124:                                              ; preds = %123, %5
  %125 = getelementptr inbounds [4 x [4 x double]], ptr %18, i64 0, i64 0
  %126 = getelementptr inbounds [4 x i32], ptr %21, i64 0, i64 0
  %127 = getelementptr inbounds [4 x double], ptr %19, i64 0, i64 0
  call void @_ZN10tetgenmesh8lu_solveEPA4_diPiPdi(ptr noundef nonnull align 8 dereferenceable(1536) %29, ptr noundef %125, i32 noundef 3, ptr noundef %126, ptr noundef %127, i32 noundef 0)
  %128 = load ptr, ptr %12, align 8, !tbaa !5
  %129 = getelementptr inbounds double, ptr %128, i64 0
  %130 = load double, ptr %129, align 8, !tbaa !11
  %131 = getelementptr inbounds [4 x double], ptr %19, i64 0, i64 0
  %132 = load double, ptr %131, align 16, !tbaa !11
  %133 = fadd double %130, %132
  %134 = load ptr, ptr %11, align 8, !tbaa !5
  %135 = getelementptr inbounds double, ptr %134, i64 0
  store double %133, ptr %135, align 8, !tbaa !11
  %136 = load ptr, ptr %12, align 8, !tbaa !5
  %137 = getelementptr inbounds double, ptr %136, i64 1
  %138 = load double, ptr %137, align 8, !tbaa !11
  %139 = getelementptr inbounds [4 x double], ptr %19, i64 0, i64 1
  %140 = load double, ptr %139, align 8, !tbaa !11
  %141 = fadd double %138, %140
  %142 = load ptr, ptr %11, align 8, !tbaa !5
  %143 = getelementptr inbounds double, ptr %142, i64 1
  store double %141, ptr %143, align 8, !tbaa !11
  %144 = load ptr, ptr %12, align 8, !tbaa !5
  %145 = getelementptr inbounds double, ptr %144, i64 2
  %146 = load double, ptr %145, align 8, !tbaa !11
  %147 = getelementptr inbounds [4 x double], ptr %19, i64 0, i64 2
  %148 = load double, ptr %147, align 16, !tbaa !11
  %149 = fadd double %146, %148
  %150 = load ptr, ptr %11, align 8, !tbaa !5
  %151 = getelementptr inbounds double, ptr %150, i64 2
  store double %149, ptr %151, align 8, !tbaa !11
  %152 = getelementptr inbounds [4 x double], ptr %19, i64 0, i64 0
  %153 = load double, ptr %152, align 16, !tbaa !11
  %154 = getelementptr inbounds [4 x double], ptr %19, i64 0, i64 0
  %155 = load double, ptr %154, align 16, !tbaa !11
  %156 = getelementptr inbounds [4 x double], ptr %19, i64 0, i64 1
  %157 = load double, ptr %156, align 8, !tbaa !11
  %158 = getelementptr inbounds [4 x double], ptr %19, i64 0, i64 1
  %159 = load double, ptr %158, align 8, !tbaa !11
  %160 = fmul double %157, %159
  %161 = call double @llvm.fmuladd.f64(double %153, double %155, double %160)
  %162 = getelementptr inbounds [4 x double], ptr %19, i64 0, i64 2
  %163 = load double, ptr %162, align 16, !tbaa !11
  %164 = getelementptr inbounds [4 x double], ptr %19, i64 0, i64 2
  %165 = load double, ptr %164, align 16, !tbaa !11
  %166 = call double @llvm.fmuladd.f64(double %163, double %165, double %161)
  %167 = call double @sqrt(double noundef %166) #7
  store double %167, ptr %16, align 8, !tbaa !11
  %168 = getelementptr inbounds %class.tetgenmesh, ptr %29, i32 0, i32 54
  %169 = load i32, ptr %168, align 4, !tbaa !13
  %170 = icmp ne i32 %169, 0
  br i1 %170, label %171, label %183

171:                                              ; preds = %124
  %172 = load ptr, ptr %8, align 8, !tbaa !5
  %173 = call noundef double @_ZN10tetgenmesh9areaboundERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %29, ptr noundef nonnull align 8 dereferenceable(12) %172)
  %174 = fcmp ogt double %173, 0.000000e+00
  br i1 %174, label %175, label %183

175:                                              ; preds = %171
  %176 = load double, ptr %15, align 8, !tbaa !11
  %177 = load ptr, ptr %8, align 8, !tbaa !5
  %178 = call noundef double @_ZN10tetgenmesh9areaboundERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %29, ptr noundef nonnull align 8 dereferenceable(12) %177)
  %179 = fcmp ogt double %176, %178
  br i1 %179, label %180, label %182

180:                                              ; preds = %175
  %181 = load ptr, ptr %10, align 8, !tbaa !5
  store i32 1, ptr %181, align 4, !tbaa !9
  store i32 1, ptr %6, align 4
  store i32 1, ptr %23, align 4
  br label %384

182:                                              ; preds = %175
  br label %183

183:                                              ; preds = %182, %171, %124
  %184 = getelementptr inbounds %class.tetgenmesh, ptr %29, i32 0, i32 2
  %185 = load ptr, ptr %184, align 8, !tbaa !18
  %186 = getelementptr inbounds %class.tetgenbehavior, ptr %185, i32 0, i32 12
  %187 = load i32, ptr %186, align 8, !tbaa !19
  %188 = icmp ne i32 %187, 0
  br i1 %188, label %189, label %202

189:                                              ; preds = %183
  %190 = load double, ptr %15, align 8, !tbaa !11
  %191 = load double, ptr %15, align 8, !tbaa !11
  %192 = call double @sqrt(double noundef %191) #7
  %193 = fmul double %190, %192
  %194 = getelementptr inbounds %class.tetgenmesh, ptr %29, i32 0, i32 2
  %195 = load ptr, ptr %194, align 8, !tbaa !18
  %196 = getelementptr inbounds %class.tetgenbehavior, ptr %195, i32 0, i32 64
  %197 = load double, ptr %196, align 8, !tbaa !22
  %198 = fcmp ogt double %193, %197
  br i1 %198, label %199, label %201

199:                                              ; preds = %189
  %200 = load ptr, ptr %10, align 8, !tbaa !5
  store i32 1, ptr %200, align 4, !tbaa !9
  store i32 1, ptr %6, align 4
  store i32 1, ptr %23, align 4
  br label %384

201:                                              ; preds = %189
  br label %202

202:                                              ; preds = %201, %183
  %203 = getelementptr inbounds %class.tetgenmesh, ptr %29, i32 0, i32 2
  %204 = load ptr, ptr %203, align 8, !tbaa !18
  %205 = getelementptr inbounds %class.tetgenbehavior, ptr %204, i32 0, i32 11
  %206 = load i32, ptr %205, align 4, !tbaa !23
  %207 = icmp ne i32 %206, 0
  br i1 %207, label %208, label %268

208:                                              ; preds = %202
  call void @llvm.lifetime.start.p0(i64 16, ptr %24) #7
  call void @_ZN10tetgenmesh7trifaceC2Ev(ptr noundef nonnull align 8 dereferenceable(12) %24)
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #7
  %209 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN10tetgenmesh7stpivotERNS_4faceERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %29, ptr noundef nonnull align 8 dereferenceable(12) %209, ptr noundef nonnull align 8 dereferenceable(12) %24)
  %210 = call noundef zeroext i1 @_ZN10tetgenmesh9ishulltetERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %29, ptr noundef nonnull align 8 dereferenceable(12) %24)
  br i1 %210, label %227, label %211

211:                                              ; preds = %208
  %212 = getelementptr inbounds %"class.tetgenmesh::triface", ptr %24, i32 0, i32 0
  %213 = load ptr, ptr %212, align 8, !tbaa !24
  %214 = call noundef double @_ZN10tetgenmesh11volumeboundEPPPd(ptr noundef nonnull align 8 dereferenceable(1536) %29, ptr noundef %213)
  store double %214, ptr %25, align 8, !tbaa !11
  %215 = load double, ptr %25, align 8, !tbaa !11
  %216 = fcmp ogt double %215, 0.000000e+00
  br i1 %216, label %217, label %226

217:                                              ; preds = %211
  %218 = load double, ptr %15, align 8, !tbaa !11
  %219 = load double, ptr %15, align 8, !tbaa !11
  %220 = call double @sqrt(double noundef %219) #7
  %221 = fmul double %218, %220
  %222 = load double, ptr %25, align 8, !tbaa !11
  %223 = fcmp ogt double %221, %222
  br i1 %223, label %224, label %226

224:                                              ; preds = %217
  %225 = load ptr, ptr %10, align 8, !tbaa !5
  store i32 1, ptr %225, align 4, !tbaa !9
  store i32 1, ptr %6, align 4
  store i32 1, ptr %23, align 4
  br label %265

226:                                              ; preds = %217, %211
  br label %227

227:                                              ; preds = %226, %208
  %228 = getelementptr inbounds %"class.tetgenmesh::triface", ptr %24, i32 0, i32 1
  %229 = load i32, ptr %228, align 8, !tbaa !25
  store i32 %229, ptr %26, align 4, !tbaa !9
  %230 = getelementptr inbounds %"class.tetgenmesh::triface", ptr %24, i32 0, i32 0
  %231 = load ptr, ptr %230, align 8, !tbaa !24
  %232 = getelementptr inbounds %"class.tetgenmesh::triface", ptr %24, i32 0, i32 1
  %233 = load i32, ptr %232, align 8, !tbaa !25
  %234 = and i32 %233, 3
  %235 = sext i32 %234 to i64
  %236 = getelementptr inbounds ptr, ptr %231, i64 %235
  %237 = load ptr, ptr %236, align 8, !tbaa !5
  call void @_ZN10tetgenmesh6decodeEPPdRNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %29, ptr noundef %237, ptr noundef nonnull align 8 dereferenceable(12) %24)
  %238 = load i32, ptr %26, align 4, !tbaa !9
  %239 = sext i32 %238 to i64
  %240 = getelementptr inbounds [12 x [12 x i32]], ptr @_ZN10tetgenmesh7fsymtblE, i64 0, i64 %239
  %241 = getelementptr inbounds %"class.tetgenmesh::triface", ptr %24, i32 0, i32 1
  %242 = load i32, ptr %241, align 8, !tbaa !25
  %243 = sext i32 %242 to i64
  %244 = getelementptr inbounds [12 x i32], ptr %240, i64 0, i64 %243
  %245 = load i32, ptr %244, align 4, !tbaa !9
  %246 = getelementptr inbounds %"class.tetgenmesh::triface", ptr %24, i32 0, i32 1
  store i32 %245, ptr %246, align 8, !tbaa !25
  %247 = call noundef zeroext i1 @_ZN10tetgenmesh9ishulltetERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %29, ptr noundef nonnull align 8 dereferenceable(12) %24)
  br i1 %247, label %264, label %248

248:                                              ; preds = %227
  %249 = getelementptr inbounds %"class.tetgenmesh::triface", ptr %24, i32 0, i32 0
  %250 = load ptr, ptr %249, align 8, !tbaa !24
  %251 = call noundef double @_ZN10tetgenmesh11volumeboundEPPPd(ptr noundef nonnull align 8 dereferenceable(1536) %29, ptr noundef %250)
  store double %251, ptr %25, align 8, !tbaa !11
  %252 = load double, ptr %25, align 8, !tbaa !11
  %253 = fcmp ogt double %252, 0.000000e+00
  br i1 %253, label %254, label %263

254:                                              ; preds = %248
  %255 = load double, ptr %15, align 8, !tbaa !11
  %256 = load double, ptr %15, align 8, !tbaa !11
  %257 = call double @sqrt(double noundef %256) #7
  %258 = fmul double %255, %257
  %259 = load double, ptr %25, align 8, !tbaa !11
  %260 = fcmp ogt double %258, %259
  br i1 %260, label %261, label %263

261:                                              ; preds = %254
  %262 = load ptr, ptr %10, align 8, !tbaa !5
  store i32 1, ptr %262, align 4, !tbaa !9
  store i32 1, ptr %6, align 4
  store i32 1, ptr %23, align 4
  br label %265

263:                                              ; preds = %254, %248
  br label %264

264:                                              ; preds = %263, %227
  store i32 0, ptr %23, align 4
  br label %265

265:                                              ; preds = %264, %261, %224
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #7
  %266 = load i32, ptr %23, align 4
  switch i32 %266, label %384 [
    i32 0, label %267
  ]

267:                                              ; preds = %265
  br label %268

268:                                              ; preds = %267, %202
  %269 = getelementptr inbounds %class.tetgenmesh, ptr %29, i32 0, i32 2
  %270 = load ptr, ptr %269, align 8, !tbaa !18
  %271 = getelementptr inbounds %class.tetgenbehavior, ptr %270, i32 0, i32 10
  %272 = load i32, ptr %271, align 8, !tbaa !26
  %273 = icmp ne i32 %272, 0
  br i1 %273, label %274, label %328

274:                                              ; preds = %268
  %275 = load ptr, ptr %12, align 8, !tbaa !5
  %276 = getelementptr inbounds %class.tetgenmesh, ptr %29, i32 0, i32 42
  %277 = load i32, ptr %276, align 4, !tbaa !27
  %278 = sext i32 %277 to i64
  %279 = getelementptr inbounds double, ptr %275, i64 %278
  %280 = load double, ptr %279, align 8, !tbaa !11
  %281 = fcmp ogt double %280, 0.000000e+00
  br i1 %281, label %282, label %291

282:                                              ; preds = %274
  %283 = load double, ptr %16, align 8, !tbaa !11
  %284 = load ptr, ptr %12, align 8, !tbaa !5
  %285 = getelementptr inbounds %class.tetgenmesh, ptr %29, i32 0, i32 42
  %286 = load i32, ptr %285, align 4, !tbaa !27
  %287 = sext i32 %286 to i64
  %288 = getelementptr inbounds double, ptr %284, i64 %287
  %289 = load double, ptr %288, align 8, !tbaa !11
  %290 = fcmp ogt double %283, %289
  br i1 %290, label %325, label %291

291:                                              ; preds = %282, %274
  %292 = load ptr, ptr %13, align 8, !tbaa !5
  %293 = getelementptr inbounds %class.tetgenmesh, ptr %29, i32 0, i32 42
  %294 = load i32, ptr %293, align 4, !tbaa !27
  %295 = sext i32 %294 to i64
  %296 = getelementptr inbounds double, ptr %292, i64 %295
  %297 = load double, ptr %296, align 8, !tbaa !11
  %298 = fcmp ogt double %297, 0.000000e+00
  br i1 %298, label %299, label %308

299:                                              ; preds = %291
  %300 = load double, ptr %16, align 8, !tbaa !11
  %301 = load ptr, ptr %13, align 8, !tbaa !5
  %302 = getelementptr inbounds %class.tetgenmesh, ptr %29, i32 0, i32 42
  %303 = load i32, ptr %302, align 4, !tbaa !27
  %304 = sext i32 %303 to i64
  %305 = getelementptr inbounds double, ptr %301, i64 %304
  %306 = load double, ptr %305, align 8, !tbaa !11
  %307 = fcmp ogt double %300, %306
  br i1 %307, label %325, label %308

308:                                              ; preds = %299, %291
  %309 = load ptr, ptr %14, align 8, !tbaa !5
  %310 = getelementptr inbounds %class.tetgenmesh, ptr %29, i32 0, i32 42
  %311 = load i32, ptr %310, align 4, !tbaa !27
  %312 = sext i32 %311 to i64
  %313 = getelementptr inbounds double, ptr %309, i64 %312
  %314 = load double, ptr %313, align 8, !tbaa !11
  %315 = fcmp ogt double %314, 0.000000e+00
  br i1 %315, label %316, label %327

316:                                              ; preds = %308
  %317 = load double, ptr %16, align 8, !tbaa !11
  %318 = load ptr, ptr %14, align 8, !tbaa !5
  %319 = getelementptr inbounds %class.tetgenmesh, ptr %29, i32 0, i32 42
  %320 = load i32, ptr %319, align 4, !tbaa !27
  %321 = sext i32 %320 to i64
  %322 = getelementptr inbounds double, ptr %318, i64 %321
  %323 = load double, ptr %322, align 8, !tbaa !11
  %324 = fcmp ogt double %317, %323
  br i1 %324, label %325, label %327

325:                                              ; preds = %316, %299, %282
  %326 = load ptr, ptr %10, align 8, !tbaa !5
  store i32 1, ptr %326, align 4, !tbaa !9
  store i32 1, ptr %6, align 4
  store i32 1, ptr %23, align 4
  br label %384

327:                                              ; preds = %316, %308
  br label %328

328:                                              ; preds = %327, %268
  call void @llvm.lifetime.start.p0(i64 16, ptr %27) #7
  call void @_ZN10tetgenmesh7trifaceC2Ev(ptr noundef nonnull align 8 dereferenceable(12) %27)
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #7
  store double 0.000000e+00, ptr %28, align 8, !tbaa !11
  store i32 0, ptr %22, align 4, !tbaa !9
  br label %329

329:                                              ; preds = %376, %328
  %330 = load i32, ptr %22, align 4, !tbaa !9
  %331 = icmp slt i32 %330, 2
  br i1 %331, label %332, label %379

332:                                              ; preds = %329
  %333 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN10tetgenmesh7stpivotERNS_4faceERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %29, ptr noundef nonnull align 8 dereferenceable(12) %333, ptr noundef nonnull align 8 dereferenceable(12) %27)
  %334 = call noundef zeroext i1 @_ZN10tetgenmesh9ishulltetERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %29, ptr noundef nonnull align 8 dereferenceable(12) %27)
  br i1 %334, label %374, label %335

335:                                              ; preds = %332
  %336 = call noundef ptr @_ZN10tetgenmesh4oppoERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %29, ptr noundef nonnull align 8 dereferenceable(12) %27)
  %337 = load ptr, ptr %11, align 8, !tbaa !5
  %338 = call noundef double @_ZN10tetgenmesh8distanceEPdS0_(ptr noundef nonnull align 8 dereferenceable(1536) %29, ptr noundef %336, ptr noundef %337)
  store double %338, ptr %17, align 8, !tbaa !11
  %339 = load double, ptr %17, align 8, !tbaa !11
  %340 = load double, ptr %16, align 8, !tbaa !11
  %341 = fsub double %339, %340
  %342 = call double @llvm.fabs.f64(double %341)
  %343 = load double, ptr %16, align 8, !tbaa !11
  %344 = fdiv double %342, %343
  %345 = getelementptr inbounds %class.tetgenmesh, ptr %29, i32 0, i32 2
  %346 = load ptr, ptr %345, align 8, !tbaa !18
  %347 = getelementptr inbounds %class.tetgenbehavior, ptr %346, i32 0, i32 70
  %348 = load double, ptr %347, align 8, !tbaa !28
  %349 = fcmp olt double %344, %348
  br i1 %349, label %350, label %352

350:                                              ; preds = %335
  %351 = load double, ptr %16, align 8, !tbaa !11
  store double %351, ptr %17, align 8, !tbaa !11
  br label %352

352:                                              ; preds = %350, %335
  %353 = load double, ptr %17, align 8, !tbaa !11
  %354 = load double, ptr %16, align 8, !tbaa !11
  %355 = fcmp olt double %353, %354
  br i1 %355, label %356, label %373

356:                                              ; preds = %352
  %357 = load double, ptr %28, align 8, !tbaa !11
  %358 = fcmp oeq double %357, 0.000000e+00
  br i1 %358, label %359, label %363

359:                                              ; preds = %356
  %360 = load double, ptr %17, align 8, !tbaa !11
  store double %360, ptr %28, align 8, !tbaa !11
  %361 = call noundef ptr @_ZN10tetgenmesh4oppoERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %29, ptr noundef nonnull align 8 dereferenceable(12) %27)
  %362 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr %361, ptr %362, align 8, !tbaa !5
  br label %372

363:                                              ; preds = %356
  %364 = load double, ptr %17, align 8, !tbaa !11
  %365 = load double, ptr %28, align 8, !tbaa !11
  %366 = fcmp olt double %364, %365
  br i1 %366, label %367, label %371

367:                                              ; preds = %363
  %368 = load double, ptr %17, align 8, !tbaa !11
  store double %368, ptr %28, align 8, !tbaa !11
  %369 = call noundef ptr @_ZN10tetgenmesh4oppoERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %29, ptr noundef nonnull align 8 dereferenceable(12) %27)
  %370 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr %369, ptr %370, align 8, !tbaa !5
  br label %371

371:                                              ; preds = %367, %363
  br label %372

372:                                              ; preds = %371, %359
  br label %373

373:                                              ; preds = %372, %352
  br label %374

374:                                              ; preds = %373, %332
  %375 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN10tetgenmesh9sesymselfERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %29, ptr noundef nonnull align 8 dereferenceable(12) %375)
  br label %376

376:                                              ; preds = %374
  %377 = load i32, ptr %22, align 4, !tbaa !9
  %378 = add nsw i32 %377, 1
  store i32 %378, ptr %22, align 4, !tbaa !9
  br label %329, !llvm.loop !29

379:                                              ; preds = %329
  %380 = load ptr, ptr %9, align 8, !tbaa !5
  %381 = load ptr, ptr %380, align 8, !tbaa !5
  %382 = icmp ne ptr %381, null
  %383 = zext i1 %382 to i32
  store i32 %383, ptr %6, align 4
  store i32 1, ptr %23, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #7
  br label %384

384:                                              ; preds = %379, %325, %265, %199, %180
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 128, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  %385 = load i32, ptr %6, align 4
  ret i32 %385
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind "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 = { inlinehint mustprogress 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 = { mustprogress 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 #6 = { mustprogress 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 #7 = { 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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!14, !10, i64 388}
!14 = !{!"_ZTS10tetgenmesh", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, 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, !6, i64 104, !6, i64 112, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !6, i64 184, !6, i64 192, !6, i64 200, !6, i64 208, !6, i64 216, !6, i64 224, !6, i64 232, !6, i64 240, !6, i64 248, !6, i64 256, !6, i64 264, !6, i64 272, !6, i64 280, !15, i64 288, !16, i64 304, !6, i64 320, !10, i64 328, !10, i64 332, !10, i64 336, !10, i64 340, !10, i64 344, !10, i64 348, !10, i64 352, !10, i64 356, !10, i64 360, !10, i64 364, !10, i64 368, !10, i64 372, !10, i64 376, !10, i64 380, !10, i64 384, !10, i64 388, !10, i64 392, !10, i64 396, !10, i64 400, !17, i64 408, !17, i64 416, !12, i64 424, !12, i64 432, !12, i64 440, !12, i64 448, !12, i64 456, !12, i64 464, !12, i64 472, !12, i64 480, !12, i64 488, !12, i64 496, !12, i64 504, !12, i64 512, !12, i64 520, !12, i64 528, !12, i64 536, !17, i64 544, !17, i64 552, !17, i64 560, !17, i64 568, !17, i64 576, !17, i64 584, !17, i64 592, !17, i64 600, !17, i64 608, !17, i64 616, !17, i64 624, !17, i64 632, !17, i64 640, !17, i64 648, !17, i64 656, !17, i64 664, !17, i64 672, !17, i64 680, !17, i64 688, !17, i64 696, !17, i64 704, !17, i64 712, !17, i64 720, !17, i64 728, !7, i64 736, !7, i64 1504}
!15 = !{!"_ZTSN10tetgenmesh7trifaceE", !6, i64 0, !10, i64 8}
!16 = !{!"_ZTSN10tetgenmesh4faceE", !6, i64 0, !10, i64 8}
!17 = !{!"long", !7, i64 0}
!18 = !{!14, !6, i64 16}
!19 = !{!20, !10, i64 48}
!20 = !{!"_ZTS14tetgenbehavior", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !10, i64 48, !10, i64 52, !10, i64 56, !10, i64 60, !10, i64 64, !10, i64 68, !10, i64 72, !10, i64 76, !10, i64 80, !10, i64 84, !10, i64 88, !10, i64 92, !10, i64 96, !10, i64 100, !10, i64 104, !10, i64 108, !10, i64 112, !10, i64 116, !10, i64 120, !10, i64 124, !10, i64 128, !10, i64 132, !10, i64 136, !10, i64 140, !10, i64 144, !10, i64 148, !10, i64 152, !10, i64 156, !10, i64 160, !10, i64 164, !10, i64 168, !10, i64 172, !10, i64 176, !10, i64 180, !10, i64 184, !10, i64 188, !10, i64 192, !10, i64 196, !10, i64 200, !10, i64 204, !10, i64 208, !10, i64 212, !10, i64 216, !10, i64 220, !10, i64 224, !10, i64 228, !10, i64 232, !10, i64 236, !12, i64 240, !12, i64 248, !12, i64 256, !12, i64 264, !12, i64 272, !12, i64 280, !12, i64 288, !12, i64 296, !12, i64 304, !12, i64 312, !12, i64 320, !12, i64 328, !7, i64 336, !7, i64 1360, !7, i64 2384, !7, i64 3408, !7, i64 4432, !21, i64 5456}
!21 = !{!"_ZTSN14tetgenbehavior10objecttypeE", !7, i64 0}
!22 = !{!20, !12, i64 272}
!23 = !{!20, !10, i64 44}
!24 = !{!15, !6, i64 0}
!25 = !{!15, !10, i64 8}
!26 = !{!20, !10, i64 40}
!27 = !{!14, !10, i64 340}
!28 = !{!20, !12, i64 320}
!29 = distinct !{!29, !30}
!30 = !{!"llvm.loop.mustprogress"}


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

%"class.tetgenmesh::triface" = type <{ ptr, i32, [4 x i8] }>

@_ZN10tetgenmesh7fsymtblE = external dso_local local_unnamed_addr global [12 x [12 x i32]], align 16

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z15terminatetetgenP10tetgenmeshi(ptr noundef, i32 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

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @sqrt(double noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZN10tetgenmesh3dotEPdS0_(ptr noundef nonnull align 8 dereferenceable(1536), ptr noundef, ptr noundef) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZN10tetgenmesh8distanceEPdS0_(ptr noundef nonnull align 8 dereferenceable(1536), ptr noundef, ptr noundef) local_unnamed_addr #3 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN10tetgenmesh8lu_decmpEPA4_diPiPdi(ptr noundef nonnull align 8 dereferenceable(1536), ptr noundef, i32 noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #5 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN10tetgenmesh8lu_solveEPA4_diPiPdi(ptr noundef nonnull align 8 dereferenceable(1536), ptr noundef, i32 noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN10tetgenmesh5crossEPdS0_S0_(ptr noundef nonnull align 8 dereferenceable(1536), ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN10tetgenmesh4sorgERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536), ptr noundef nonnull align 8 dereferenceable(12)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN10tetgenmesh5sdestERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536), ptr noundef nonnull align 8 dereferenceable(12)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN10tetgenmesh5sapexERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536), ptr noundef nonnull align 8 dereferenceable(12)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN10tetgenmesh7trifaceC2Ev(ptr noundef nonnull align 8 dereferenceable(12)) unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN10tetgenmesh4oppoERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536), ptr noundef nonnull align 8 dereferenceable(12)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZN10tetgenmesh11volumeboundEPPPd(ptr noundef nonnull align 8 dereferenceable(1536), ptr noundef) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN10tetgenmesh9sesymselfERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536), ptr noundef nonnull align 8 dereferenceable(12)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN10tetgenmesh6decodeEPPdRNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536), ptr noundef, ptr noundef nonnull align 8 dereferenceable(12)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN10tetgenmesh7stpivotERNS_4faceERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536), ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 8 dereferenceable(12)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN10tetgenmesh9ishulltetERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536), ptr noundef nonnull align 8 dereferenceable(12)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZN10tetgenmesh9areaboundERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536), ptr noundef nonnull align 8 dereferenceable(12)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef range(i32 0, 2) i32 @_ZN10tetgenmesh14checkfac4splitEPNS_4faceERPdRiS2_(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull %1, ptr nocapture noundef nonnull align 8 dereferenceable(8) %2, ptr nocapture noundef nonnull writeonly align 4 dereferenceable(4) %3, ptr noundef %4) local_unnamed_addr #6 align 2 {
  %6 = alloca [4 x [4 x double]], align 16
  %7 = alloca [4 x double], align 16
  %8 = alloca double, align 8
  %9 = alloca [4 x i32], align 16
  %10 = alloca %"class.tetgenmesh::triface", align 8
  %11 = alloca %"class.tetgenmesh::triface", align 8
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %6) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #8
  store ptr null, ptr %2, align 8, !tbaa !5
  store i32 0, ptr %3, align 4, !tbaa !9
  %12 = tail call noundef ptr @_ZN10tetgenmesh4sorgERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %1)
  %13 = tail call noundef ptr @_ZN10tetgenmesh5sdestERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %1)
  %14 = tail call noundef ptr @_ZN10tetgenmesh5sapexERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %1)
  %15 = getelementptr inbounds i8, ptr %12, i64 8
  %16 = load <2 x double>, ptr %13, align 8, !tbaa !11
  %17 = load <2 x double>, ptr %12, align 8, !tbaa !11
  %18 = fsub <2 x double> %16, %17
  store <2 x double> %18, ptr %6, align 16, !tbaa !11
  %19 = getelementptr inbounds i8, ptr %13, i64 16
  %20 = load double, ptr %19, align 8, !tbaa !11
  %21 = getelementptr inbounds i8, ptr %12, i64 16
  %22 = load double, ptr %21, align 8, !tbaa !11
  %23 = fsub double %20, %22
  %24 = getelementptr inbounds i8, ptr %6, i64 16
  store double %23, ptr %24, align 16, !tbaa !11
  %25 = load double, ptr %14, align 8, !tbaa !11
  %26 = extractelement <2 x double> %17, i64 0
  %27 = fsub double %25, %26
  %28 = getelementptr inbounds i8, ptr %6, i64 32
  store double %27, ptr %28, align 16, !tbaa !11
  %29 = getelementptr inbounds i8, ptr %14, i64 8
  %30 = load double, ptr %29, align 8, !tbaa !11
  %31 = extractelement <2 x double> %17, i64 1
  %32 = fsub double %30, %31
  %33 = getelementptr inbounds i8, ptr %6, i64 40
  store double %32, ptr %33, align 8, !tbaa !11
  %34 = getelementptr inbounds i8, ptr %14, i64 16
  %35 = load double, ptr %34, align 8, !tbaa !11
  %36 = fsub double %35, %22
  %37 = getelementptr inbounds i8, ptr %6, i64 48
  store double %36, ptr %37, align 16, !tbaa !11
  %38 = getelementptr inbounds i8, ptr %6, i64 64
  call void @_ZN10tetgenmesh5crossEPdS0_S0_(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull %6, ptr noundef nonnull %28, ptr noundef nonnull %38)
  %39 = call noundef double @_ZN10tetgenmesh3dotEPdS0_(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull %38, ptr noundef nonnull %38)
  %40 = call double @sqrt(double noundef %39) #8
  %41 = fmul double %40, 5.000000e-01
  %42 = call noundef double @_ZN10tetgenmesh3dotEPdS0_(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull %6, ptr noundef nonnull %6)
  %43 = fmul double %42, 5.000000e-01
  store double %43, ptr %7, align 16, !tbaa !11
  %44 = call noundef double @_ZN10tetgenmesh3dotEPdS0_(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull %28, ptr noundef nonnull %28)
  %45 = fmul double %44, 5.000000e-01
  %46 = getelementptr inbounds i8, ptr %7, i64 8
  store double %45, ptr %46, align 8, !tbaa !11
  %47 = getelementptr inbounds i8, ptr %7, i64 16
  store double 0.000000e+00, ptr %47, align 16, !tbaa !11
  %48 = call noundef zeroext i1 @_ZN10tetgenmesh8lu_decmpEPA4_diPiPdi(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull %6, i32 noundef 3, ptr noundef nonnull %9, ptr noundef nonnull %8, i32 noundef 0)
  br i1 %48, label %50, label %49

49:                                               ; preds = %5
  call void @_Z15terminatetetgenP10tetgenmeshi(ptr noundef nonnull %0, i32 noundef 2)
  br label %50

50:                                               ; preds = %49, %5
  call void @_ZN10tetgenmesh8lu_solveEPA4_diPiPdi(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull %6, i32 noundef 3, ptr noundef nonnull %9, ptr noundef nonnull %7, i32 noundef 0)
  %51 = load double, ptr %12, align 8, !tbaa !11
  %52 = load double, ptr %7, align 16, !tbaa !11
  %53 = fadd double %51, %52
  store double %53, ptr %4, align 8, !tbaa !11
  %54 = load double, ptr %15, align 8, !tbaa !11
  %55 = load double, ptr %46, align 8, !tbaa !11
  %56 = fadd double %54, %55
  %57 = getelementptr inbounds i8, ptr %4, i64 8
  store double %56, ptr %57, align 8, !tbaa !11
  %58 = load double, ptr %21, align 8, !tbaa !11
  %59 = load double, ptr %47, align 16, !tbaa !11
  %60 = fadd double %58, %59
  %61 = getelementptr inbounds i8, ptr %4, i64 16
  store double %60, ptr %61, align 8, !tbaa !11
  %62 = fmul double %55, %55
  %63 = call double @llvm.fmuladd.f64(double %52, double %52, double %62)
  %64 = call double @llvm.fmuladd.f64(double %59, double %59, double %63)
  %sqrt = call double @llvm.sqrt.f64(double %64)
  %65 = getelementptr inbounds i8, ptr %0, i64 388
  %66 = load i32, ptr %65, align 4, !tbaa !13
  %.not = icmp eq i32 %66, 0
  br i1 %.not, label %74, label %67

67:                                               ; preds = %50
  %68 = call noundef double @_ZN10tetgenmesh9areaboundERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %1)
  %69 = fcmp ogt double %68, 0.000000e+00
  br i1 %69, label %70, label %74

70:                                               ; preds = %67
  %71 = call noundef double @_ZN10tetgenmesh9areaboundERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %1)
  %72 = fcmp ogt double %41, %71
  br i1 %72, label %73, label %74

73:                                               ; preds = %70
  store i32 1, ptr %3, align 4, !tbaa !9
  br label %183

74:                                               ; preds = %70, %67, %50
  %75 = getelementptr inbounds i8, ptr %0, i64 16
  %76 = load ptr, ptr %75, align 8, !tbaa !18
  %77 = getelementptr inbounds i8, ptr %76, i64 48
  %78 = load i32, ptr %77, align 8, !tbaa !19
  %.not83 = icmp eq i32 %78, 0
  br i1 %.not83, label %87, label %79

79:                                               ; preds = %74
  %80 = call double @sqrt(double noundef %41) #8
  %81 = fmul double %41, %80
  %82 = load ptr, ptr %75, align 8, !tbaa !18
  %83 = getelementptr inbounds i8, ptr %82, i64 272
  %84 = load double, ptr %83, align 8, !tbaa !22
  %85 = fcmp ogt double %81, %84
  br i1 %85, label %86, label %87

86:                                               ; preds = %79
  store i32 1, ptr %3, align 4, !tbaa !9
  br label %183

87:                                               ; preds = %79, %74
  %88 = phi ptr [ %82, %79 ], [ %76, %74 ]
  %89 = getelementptr inbounds i8, ptr %88, i64 44
  %90 = load i32, ptr %89, align 4, !tbaa !23
  %.not84 = icmp eq i32 %90, 0
  br i1 %.not84, label %124, label %91

91:                                               ; preds = %87
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #8
  call void @_ZN10tetgenmesh7trifaceC2Ev(ptr noundef nonnull align 8 dereferenceable(12) %10)
  call void @_ZN10tetgenmesh7stpivotERNS_4faceERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %1, ptr noundef nonnull align 8 dereferenceable(12) %10)
  %92 = call noundef zeroext i1 @_ZN10tetgenmesh9ishulltetERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %10)
  br i1 %92, label %101, label %93

93:                                               ; preds = %91
  %94 = load ptr, ptr %10, align 8, !tbaa !24
  %95 = call noundef double @_ZN10tetgenmesh11volumeboundEPPPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %94)
  %96 = fcmp ogt double %95, 0.000000e+00
  br i1 %96, label %97, label %101

97:                                               ; preds = %93
  %98 = call double @sqrt(double noundef %41) #8
  %99 = fmul double %41, %98
  %100 = fcmp ogt double %99, %95
  br i1 %100, label %.critedge, label %101

101:                                              ; preds = %93, %97, %91
  %102 = getelementptr inbounds i8, ptr %10, i64 8
  %103 = load i32, ptr %102, align 8, !tbaa !25
  %104 = load ptr, ptr %10, align 8, !tbaa !24
  %105 = and i32 %103, 3
  %106 = zext nneg i32 %105 to i64
  %107 = getelementptr inbounds ptr, ptr %104, i64 %106
  %108 = load ptr, ptr %107, align 8, !tbaa !5
  call void @_ZN10tetgenmesh6decodeEPPdRNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %108, ptr noundef nonnull align 8 dereferenceable(12) %10)
  %109 = sext i32 %103 to i64
  %110 = load i32, ptr %102, align 8, !tbaa !25
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds [12 x [12 x i32]], ptr @_ZN10tetgenmesh7fsymtblE, i64 0, i64 %109, i64 %111
  %113 = load i32, ptr %112, align 4, !tbaa !9
  store i32 %113, ptr %102, align 8, !tbaa !25
  %114 = call noundef zeroext i1 @_ZN10tetgenmesh9ishulltetERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %10)
  br i1 %114, label %123, label %115

115:                                              ; preds = %101
  %116 = load ptr, ptr %10, align 8, !tbaa !24
  %117 = call noundef double @_ZN10tetgenmesh11volumeboundEPPPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %116)
  %118 = fcmp ogt double %117, 0.000000e+00
  br i1 %118, label %119, label %123

119:                                              ; preds = %115
  %120 = call double @sqrt(double noundef %41) #8
  %121 = fmul double %41, %120
  %122 = fcmp ogt double %121, %117
  br i1 %122, label %.critedge, label %123

123:                                              ; preds = %101, %119, %115
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #8
  %.pre = load ptr, ptr %75, align 8, !tbaa !18
  br label %124

124:                                              ; preds = %123, %87
  %125 = phi ptr [ %.pre, %123 ], [ %88, %87 ]
  %126 = getelementptr inbounds i8, ptr %125, i64 40
  %127 = load i32, ptr %126, align 8, !tbaa !26
  %.not85 = icmp eq i32 %127, 0
  br i1 %.not85, label %147, label %128

128:                                              ; preds = %124
  %129 = getelementptr inbounds i8, ptr %0, i64 340
  %130 = load i32, ptr %129, align 4, !tbaa !27
  %131 = sext i32 %130 to i64
  %132 = getelementptr inbounds double, ptr %12, i64 %131
  %133 = load double, ptr %132, align 8, !tbaa !11
  %134 = fcmp ogt double %133, 0.000000e+00
  %135 = fcmp ogt double %sqrt, %133
  %or.cond = select i1 %134, i1 %135, i1 false
  br i1 %or.cond, label %146, label %136

136:                                              ; preds = %128
  %137 = getelementptr inbounds double, ptr %13, i64 %131
  %138 = load double, ptr %137, align 8, !tbaa !11
  %139 = fcmp ogt double %138, 0.000000e+00
  %140 = fcmp ogt double %sqrt, %138
  %or.cond86 = select i1 %139, i1 %140, i1 false
  br i1 %or.cond86, label %146, label %141

141:                                              ; preds = %136
  %142 = getelementptr inbounds double, ptr %14, i64 %131
  %143 = load double, ptr %142, align 8, !tbaa !11
  %144 = fcmp ogt double %143, 0.000000e+00
  %145 = fcmp ogt double %sqrt, %143
  %or.cond87 = select i1 %144, i1 %145, i1 false
  br i1 %or.cond87, label %146, label %147

146:                                              ; preds = %141, %136, %128
  store i32 1, ptr %3, align 4, !tbaa !9
  br label %183

147:                                              ; preds = %141, %124
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #8
  call void @_ZN10tetgenmesh7trifaceC2Ev(ptr noundef nonnull align 8 dereferenceable(12) %11)
  call void @_ZN10tetgenmesh7stpivotERNS_4faceERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %1, ptr noundef nonnull align 8 dereferenceable(12) %11)
  %148 = call noundef zeroext i1 @_ZN10tetgenmesh9ishulltetERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %11)
  br i1 %148, label %162, label %149

149:                                              ; preds = %147
  %150 = call noundef ptr @_ZN10tetgenmesh4oppoERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %11)
  %151 = call noundef double @_ZN10tetgenmesh8distanceEPdS0_(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %150, ptr noundef nonnull %4)
  %152 = fsub double %151, %sqrt
  %153 = call double @llvm.fabs.f64(double %152)
  %154 = fdiv double %153, %sqrt
  %155 = load ptr, ptr %75, align 8, !tbaa !18
  %156 = getelementptr inbounds i8, ptr %155, i64 320
  %157 = load double, ptr %156, align 8, !tbaa !28
  %158 = fcmp olt double %154, %157
  %.077 = select i1 %158, double %sqrt, double %151
  %159 = fcmp olt double %.077, %sqrt
  br i1 %159, label %160, label %162

160:                                              ; preds = %149
  %161 = call noundef ptr @_ZN10tetgenmesh4oppoERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %11)
  store ptr %161, ptr %2, align 8, !tbaa !5
  br label %162

162:                                              ; preds = %149, %160, %147
  %.1 = phi double [ 0.000000e+00, %147 ], [ %.077, %160 ], [ 0.000000e+00, %149 ]
  call void @_ZN10tetgenmesh9sesymselfERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %1)
  call void @_ZN10tetgenmesh7stpivotERNS_4faceERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %1, ptr noundef nonnull align 8 dereferenceable(12) %11)
  %163 = call noundef zeroext i1 @_ZN10tetgenmesh9ishulltetERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %11)
  br i1 %163, label %179, label %164

164:                                              ; preds = %162
  %165 = call noundef ptr @_ZN10tetgenmesh4oppoERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %11)
  %166 = call noundef double @_ZN10tetgenmesh8distanceEPdS0_(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %165, ptr noundef nonnull %4)
  %167 = fsub double %166, %sqrt
  %168 = call double @llvm.fabs.f64(double %167)
  %169 = fdiv double %168, %sqrt
  %170 = load ptr, ptr %75, align 8, !tbaa !18
  %171 = getelementptr inbounds i8, ptr %170, i64 320
  %172 = load double, ptr %171, align 8, !tbaa !28
  %173 = fcmp olt double %169, %172
  %.077.1 = select i1 %173, double %sqrt, double %166
  %174 = fcmp olt double %.077.1, %sqrt
  br i1 %174, label %175, label %179

175:                                              ; preds = %164
  %176 = fcmp oeq double %.1, 0.000000e+00
  %177 = fcmp olt double %.077.1, %.1
  %or.cond90 = or i1 %176, %177
  br i1 %or.cond90, label %.sink.split, label %179

.sink.split:                                      ; preds = %175
  %178 = call noundef ptr @_ZN10tetgenmesh4oppoERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %11)
  store ptr %178, ptr %2, align 8, !tbaa !5
  br label %179

179:                                              ; preds = %175, %.sink.split, %164, %162
  call void @_ZN10tetgenmesh9sesymselfERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %1)
  %180 = load ptr, ptr %2, align 8, !tbaa !5
  %181 = icmp ne ptr %180, null
  %182 = zext i1 %181 to i32
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #8
  br label %183

.critedge:                                        ; preds = %119, %97
  store i32 1, ptr %3, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #8
  br label %183

183:                                              ; preds = %.critedge, %179, %146, %86, %73
  %.174 = phi i32 [ 1, %73 ], [ 1, %86 ], [ 1, %146 ], [ %182, %179 ], [ 1, %.critedge ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %6) #8
  ret i32 %.174
}

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nofree nounwind willreturn memory(write) "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 = { inlinehint mustprogress 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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { mustprogress 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 #6 = { mustprogress 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 #7 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #8 = { 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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!14, !10, i64 388}
!14 = !{!"_ZTS10tetgenmesh", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, 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, !6, i64 104, !6, i64 112, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !6, i64 184, !6, i64 192, !6, i64 200, !6, i64 208, !6, i64 216, !6, i64 224, !6, i64 232, !6, i64 240, !6, i64 248, !6, i64 256, !6, i64 264, !6, i64 272, !6, i64 280, !15, i64 288, !16, i64 304, !6, i64 320, !10, i64 328, !10, i64 332, !10, i64 336, !10, i64 340, !10, i64 344, !10, i64 348, !10, i64 352, !10, i64 356, !10, i64 360, !10, i64 364, !10, i64 368, !10, i64 372, !10, i64 376, !10, i64 380, !10, i64 384, !10, i64 388, !10, i64 392, !10, i64 396, !10, i64 400, !17, i64 408, !17, i64 416, !12, i64 424, !12, i64 432, !12, i64 440, !12, i64 448, !12, i64 456, !12, i64 464, !12, i64 472, !12, i64 480, !12, i64 488, !12, i64 496, !12, i64 504, !12, i64 512, !12, i64 520, !12, i64 528, !12, i64 536, !17, i64 544, !17, i64 552, !17, i64 560, !17, i64 568, !17, i64 576, !17, i64 584, !17, i64 592, !17, i64 600, !17, i64 608, !17, i64 616, !17, i64 624, !17, i64 632, !17, i64 640, !17, i64 648, !17, i64 656, !17, i64 664, !17, i64 672, !17, i64 680, !17, i64 688, !17, i64 696, !17, i64 704, !17, i64 712, !17, i64 720, !17, i64 728, !7, i64 736, !7, i64 1504}
!15 = !{!"_ZTSN10tetgenmesh7trifaceE", !6, i64 0, !10, i64 8}
!16 = !{!"_ZTSN10tetgenmesh4faceE", !6, i64 0, !10, i64 8}
!17 = !{!"long", !7, i64 0}
!18 = !{!14, !6, i64 16}
!19 = !{!20, !10, i64 48}
!20 = !{!"_ZTS14tetgenbehavior", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !10, i64 48, !10, i64 52, !10, i64 56, !10, i64 60, !10, i64 64, !10, i64 68, !10, i64 72, !10, i64 76, !10, i64 80, !10, i64 84, !10, i64 88, !10, i64 92, !10, i64 96, !10, i64 100, !10, i64 104, !10, i64 108, !10, i64 112, !10, i64 116, !10, i64 120, !10, i64 124, !10, i64 128, !10, i64 132, !10, i64 136, !10, i64 140, !10, i64 144, !10, i64 148, !10, i64 152, !10, i64 156, !10, i64 160, !10, i64 164, !10, i64 168, !10, i64 172, !10, i64 176, !10, i64 180, !10, i64 184, !10, i64 188, !10, i64 192, !10, i64 196, !10, i64 200, !10, i64 204, !10, i64 208, !10, i64 212, !10, i64 216, !10, i64 220, !10, i64 224, !10, i64 228, !10, i64 232, !10, i64 236, !12, i64 240, !12, i64 248, !12, i64 256, !12, i64 264, !12, i64 272, !12, i64 280, !12, i64 288, !12, i64 296, !12, i64 304, !12, i64 312, !12, i64 320, !12, i64 328, !7, i64 336, !7, i64 1360, !7, i64 2384, !7, i64 3408, !7, i64 4432, !21, i64 5456}
!21 = !{!"_ZTSN14tetgenbehavior10objecttypeE", !7, i64 0}
!22 = !{!20, !12, i64 272}
!23 = !{!20, !10, i64 44}
!24 = !{!15, !6, i64 0}
!25 = !{!15, !10, i64 8}
!26 = !{!20, !10, i64 40}
!27 = !{!14, !10, i64 340}
!28 = !{!20, !12, i64 320}


; Effective O3 passes: AggressiveInstCombinePass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,PostOrderFunctionAttrsPass,SCCPPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass