; 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::insertvertexflags" = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [4 x i8], %"class.tetgenmesh::triface", %"class.tetgenmesh::face", i32, double, ptr }
%"class.tetgenmesh::face" = type <{ ptr, i32, [4 x i8] }>
%"class.tetgenmesh::flipconstraints" = type { i32, i32, i32, i32, i32, i32, double, double, i32, double, double, i32, [2 x ptr], [3 x ptr], ptr }
%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.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] }>
%"class.tetgenmesh::arraypool" = type { i32, i32, i32, i32, i32, ptr, i64, i64 }
%"class.tetgenmesh::memorypool" = type { ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, i32, i32, i64, i64, i32, i32 }
%"class.tetgenmesh::badface" = type { %"class.tetgenmesh::triface", %"class.tetgenmesh::face", double, [6 x double], ptr, ptr, ptr, ptr, ptr, ptr }

@.str.485 = external hidden unnamed_addr constant [43 x i8], align 1

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

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

declare i32 @printf(ptr noundef, ...) #2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN10tetgenmesh9arraypool7restartEv(ptr noundef nonnull align 8 dereferenceable(48)) #3 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536), ptr noundef) #4 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10tetgenmesh9makepointEPPdNS_8verttypeE(ptr noundef nonnull align 8 dereferenceable(1536), ptr noundef, i32 noundef) #5 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) #4 align 2

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN10tetgenmesh15flipconstraintsC2Ev(ptr noundef nonnull align 8 dereferenceable(120)) unnamed_addr #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZN10tetgenmesh12lawsonflip3dEPNS_15flipconstraintsE(ptr noundef nonnull align 8 dereferenceable(1536), ptr noundef) #5 align 2

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN10tetgenmesh16splittetrahedronEPNS_7trifaceEiPdi(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, i32 noundef %4) #5 align 2 {
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca %"class.tetgenmesh::triface", align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca %"class.tetgenmesh::insertvertexflags", align 8
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca double, align 8
  %21 = alloca i32, align 4
  %22 = alloca %"class.tetgenmesh::face", align 8
  %23 = alloca [3 x double], align 16
  %24 = alloca i32, align 4
  %25 = alloca [3 x double], align 16
  %26 = alloca double, align 8
  %27 = alloca %"class.tetgenmesh::flipconstraints", align 8
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store i32 %2, ptr %9, align 4, !tbaa !9
  store ptr %3, ptr %10, align 8, !tbaa !5
  store i32 %4, ptr %11, align 4, !tbaa !9
  %28 = load ptr, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #6
  call void @_ZN10tetgenmesh7trifaceC2Ev(ptr noundef nonnull align 8 dereferenceable(12) %12)
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.start.p0(i64 112, ptr %17) #6
  call void @_ZN10tetgenmesh17insertvertexflagsC2Ev(ptr noundef nonnull align 8 dereferenceable(112) %17)
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  store i32 0, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  store double 0.000000e+00, ptr %20, align 8, !tbaa !11
  call void @_ZN10tetgenmesh9makepointEPPdNS_8verttypeE(ptr noundef nonnull align 8 dereferenceable(1536) %28, ptr noundef %14, i32 noundef 8)
  store i32 0, ptr %19, align 4, !tbaa !9
  br label %29

29:                                               ; preds = %42, %5
  %30 = load i32, ptr %19, align 4, !tbaa !9
  %31 = icmp slt i32 %30, 3
  br i1 %31, label %32, label %45

32:                                               ; preds = %29
  %33 = load ptr, ptr %10, align 8, !tbaa !5
  %34 = load i32, ptr %19, align 4, !tbaa !9
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds double, ptr %33, i64 %35
  %37 = load double, ptr %36, align 8, !tbaa !11
  %38 = load ptr, ptr %14, align 8, !tbaa !5
  %39 = load i32, ptr %19, align 4, !tbaa !9
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds double, ptr %38, i64 %40
  store double %37, ptr %41, align 8, !tbaa !11
  br label %42

42:                                               ; preds = %32
  %43 = load i32, ptr %19, align 4, !tbaa !9
  %44 = add nsw i32 %43, 1
  store i32 %44, ptr %19, align 4, !tbaa !9
  br label %29, !llvm.loop !13

45:                                               ; preds = %29
  %46 = getelementptr inbounds %class.tetgenmesh, ptr %28, i32 0, i32 57
  %47 = load i32, ptr %46, align 8, !tbaa !15
  %48 = icmp ne i32 %47, 0
  br i1 %48, label %49, label %56

49:                                               ; preds = %45
  %50 = load ptr, ptr %14, align 8, !tbaa !5
  %51 = load ptr, ptr %8, align 8, !tbaa !5
  %52 = call noundef ptr @_ZN10tetgenmesh3orgERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %28, ptr noundef nonnull align 8 dereferenceable(12) %51)
  %53 = call noundef double @_ZN10tetgenmesh8distanceEPdS0_(ptr noundef nonnull align 8 dereferenceable(1536) %28, ptr noundef %50, ptr noundef %52)
  store double %53, ptr %20, align 8, !tbaa !11
  %54 = load ptr, ptr %14, align 8, !tbaa !5
  %55 = load double, ptr %20, align 8, !tbaa !11
  call void @_ZN10tetgenmesh17setpointinsradiusEPdd(ptr noundef nonnull align 8 dereferenceable(1536) %28, ptr noundef %54, double noundef %55)
  br label %56

56:                                               ; preds = %49, %45
  %57 = load ptr, ptr %8, align 8, !tbaa !5
  %58 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZN10tetgenmesh7trifaceaSERKS0_(ptr noundef nonnull align 8 dereferenceable(12) %12, ptr noundef nonnull align 8 dereferenceable(12) %57)
  %59 = getelementptr inbounds %"class.tetgenmesh::insertvertexflags", ptr %17, i32 0, i32 0
  store i32 1, ptr %59, align 8, !tbaa !20
  %60 = load ptr, ptr %14, align 8, !tbaa !5
  %61 = call noundef i32 @_ZN10tetgenmesh6locateEPdPNS_7trifaceEi(ptr noundef nonnull align 8 dereferenceable(1536) %28, ptr noundef %60, ptr noundef %12, i32 noundef 1)
  %62 = getelementptr inbounds %"class.tetgenmesh::insertvertexflags", ptr %17, i32 0, i32 0
  store i32 %61, ptr %62, align 8, !tbaa !20
  %63 = getelementptr inbounds %"class.tetgenmesh::insertvertexflags", ptr %17, i32 0, i32 0
  %64 = load i32, ptr %63, align 8, !tbaa !20
  %65 = icmp eq i32 %64, 1
  br i1 %65, label %70, label %66

66:                                               ; preds = %56
  %67 = getelementptr inbounds %"class.tetgenmesh::insertvertexflags", ptr %17, i32 0, i32 0
  %68 = load i32, ptr %67, align 8, !tbaa !20
  %69 = icmp eq i32 %68, 8
  br i1 %69, label %70, label %170

70:                                               ; preds = %66, %56
  %71 = getelementptr inbounds %class.tetgenmesh, ptr %28, i32 0, i32 2
  %72 = load ptr, ptr %71, align 8, !tbaa !22
  %73 = getelementptr inbounds %class.tetgenbehavior, ptr %72, i32 0, i32 37
  %74 = load i32, ptr %73, align 4, !tbaa !23
  %75 = icmp sgt i32 %74, 2
  br i1 %75, label %76, label %80

76:                                               ; preds = %70
  %77 = load ptr, ptr %14, align 8, !tbaa !5
  %78 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %28, ptr noundef %77)
  %79 = call i32 (ptr, ...) @printf(ptr noundef @.str.485, i32 noundef %78)
  br label %80

80:                                               ; preds = %76, %70
  %81 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN10tetgenmesh12pointdeallocEPd(ptr noundef nonnull align 8 dereferenceable(1536) %28, ptr noundef %81)
  %82 = getelementptr inbounds %class.tetgenmesh, ptr %28, i32 0, i32 2
  %83 = load ptr, ptr %82, align 8, !tbaa !22
  %84 = getelementptr inbounds %class.tetgenbehavior, ptr %83, i32 0, i32 4
  %85 = load i32, ptr %84, align 8, !tbaa !26
  %86 = icmp ne i32 %85, 0
  br i1 %86, label %87, label %88

87:                                               ; preds = %80
  store i32 0, ptr %6, align 4
  store i32 1, ptr %21, align 4
  br label %428

88:                                               ; preds = %80
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #6
  call void @_ZN10tetgenmesh4faceC2Ev(ptr noundef nonnull align 8 dereferenceable(12) %22)
  call void @llvm.lifetime.start.p0(i64 24, ptr %23) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #6
  store i32 1, ptr %24, align 4, !tbaa !27
  call void @_ZN10tetgenmesh7tspivotERNS_7trifaceERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %28, ptr noundef nonnull align 8 dereferenceable(12) %12, ptr noundef nonnull align 8 dereferenceable(12) %22)
  %89 = getelementptr inbounds %"class.tetgenmesh::face", ptr %22, i32 0, i32 0
  %90 = load ptr, ptr %89, align 8, !tbaa !29
  %91 = getelementptr inbounds ptr, ptr %90, i64 3
  store ptr %91, ptr %15, align 8, !tbaa !5
  %92 = load ptr, ptr %10, align 8, !tbaa !5
  %93 = load ptr, ptr %15, align 8, !tbaa !5
  %94 = getelementptr inbounds ptr, ptr %93, i64 0
  %95 = load ptr, ptr %94, align 8, !tbaa !5
  %96 = load ptr, ptr %15, align 8, !tbaa !5
  %97 = getelementptr inbounds ptr, ptr %96, i64 1
  %98 = load ptr, ptr %97, align 8, !tbaa !5
  %99 = load ptr, ptr %15, align 8, !tbaa !5
  %100 = getelementptr inbounds ptr, ptr %99, i64 2
  %101 = load ptr, ptr %100, align 8, !tbaa !5
  %102 = getelementptr inbounds [3 x double], ptr %23, i64 0, i64 0
  call void @_ZN10tetgenmesh11projpt2faceEPdS0_S0_S0_S0_(ptr noundef nonnull align 8 dereferenceable(1536) %28, ptr noundef %92, ptr noundef %95, ptr noundef %98, ptr noundef %101, ptr noundef %102)
  %103 = getelementptr inbounds [3 x double], ptr %23, i64 0, i64 0
  %104 = call noundef i32 @_ZN10tetgenmesh7slocateEPdPNS_4faceEiii(ptr noundef nonnull align 8 dereferenceable(1536) %28, ptr noundef %103, ptr noundef %22, i32 noundef 0, i32 noundef 0, i32 noundef 1)
  store i32 %104, ptr %24, align 4, !tbaa !27
  %105 = load i32, ptr %24, align 4, !tbaa !27
  %106 = icmp eq i32 %105, 4
  br i1 %106, label %110, label %107

107:                                              ; preds = %88
  %108 = load i32, ptr %24, align 4, !tbaa !27
  %109 = icmp eq i32 %108, 3
  br i1 %109, label %110, label %142

110:                                              ; preds = %107, %88
  call void @llvm.lifetime.start.p0(i64 24, ptr %25) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #6
  store double 0.000000e+00, ptr %26, align 8, !tbaa !11
  %111 = getelementptr inbounds %"class.tetgenmesh::face", ptr %22, i32 0, i32 0
  %112 = load ptr, ptr %111, align 8, !tbaa !29
  %113 = getelementptr inbounds ptr, ptr %112, i64 3
  store ptr %113, ptr %15, align 8, !tbaa !5
  %114 = load ptr, ptr %15, align 8, !tbaa !5
  %115 = getelementptr inbounds ptr, ptr %114, i64 0
  %116 = load ptr, ptr %115, align 8, !tbaa !5
  %117 = load ptr, ptr %15, align 8, !tbaa !5
  %118 = getelementptr inbounds ptr, ptr %117, i64 1
  %119 = load ptr, ptr %118, align 8, !tbaa !5
  %120 = load ptr, ptr %15, align 8, !tbaa !5
  %121 = getelementptr inbounds ptr, ptr %120, i64 2
  %122 = load ptr, ptr %121, align 8, !tbaa !5
  %123 = load ptr, ptr %10, align 8, !tbaa !5
  %124 = getelementptr inbounds [3 x double], ptr %25, i64 0, i64 0
  %125 = call noundef i32 @_ZN10tetgenmesh17checkfac4encroachEPdS0_S0_S0_S0_S0_(ptr noundef nonnull align 8 dereferenceable(1536) %28, ptr noundef %116, ptr noundef %119, ptr noundef %122, ptr noundef %123, ptr noundef %124, ptr noundef %26)
  %126 = icmp ne i32 %125, 0
  br i1 %126, label %127, label %141

127:                                              ; preds = %110
  %128 = load ptr, ptr %8, align 8, !tbaa !5
  %129 = call noundef ptr @_ZN10tetgenmesh3orgERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %28, ptr noundef nonnull align 8 dereferenceable(12) %128)
  %130 = load i32, ptr %9, align 4, !tbaa !9
  %131 = getelementptr inbounds [3 x double], ptr %25, i64 0, i64 0
  %132 = load i32, ptr %11, align 4, !tbaa !9
  %133 = or i32 %132, 2
  %134 = call noundef i32 @_ZN10tetgenmesh12splitsubfaceEPNS_4faceEPdS2_iS2_i(ptr noundef nonnull align 8 dereferenceable(1536) %28, ptr noundef %22, ptr noundef null, ptr noundef %129, i32 noundef %130, ptr noundef %131, i32 noundef %133)
  store i32 %134, ptr %18, align 4, !tbaa !9
  %135 = load i32, ptr %18, align 4, !tbaa !9
  %136 = icmp ne i32 %135, 0
  br i1 %136, label %137, label %140

137:                                              ; preds = %127
  %138 = load i32, ptr %11, align 4, !tbaa !9
  %139 = or i32 %138, 2
  call void @_ZN10tetgenmesh13repairencfacsEi(ptr noundef nonnull align 8 dereferenceable(1536) %28, i32 noundef %139)
  br label %140

140:                                              ; preds = %137, %127
  br label %141

141:                                              ; preds = %140, %110
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %25) #6
  br label %150

142:                                              ; preds = %107
  %143 = load i32, ptr %24, align 4, !tbaa !27
  %144 = icmp eq i32 %143, 1
  br i1 %144, label %148, label %145

145:                                              ; preds = %142
  %146 = load i32, ptr %24, align 4, !tbaa !27
  %147 = icmp eq i32 %146, 7
  br i1 %147, label %148, label %149

148:                                              ; preds = %145, %142
  br label %149

149:                                              ; preds = %148, %145
  br label %150

150:                                              ; preds = %149, %141
  %151 = load i32, ptr %18, align 4, !tbaa !9
  %152 = icmp ne i32 %151, 0
  br i1 %152, label %153, label %168

153:                                              ; preds = %150
  %154 = load ptr, ptr %8, align 8, !tbaa !5
  %155 = getelementptr inbounds %"class.tetgenmesh::triface", ptr %154, i32 0, i32 0
  %156 = load ptr, ptr %155, align 8, !tbaa !30
  %157 = icmp ne ptr %156, null
  br i1 %157, label %158, label %167

158:                                              ; preds = %153
  %159 = load ptr, ptr %8, align 8, !tbaa !5
  %160 = getelementptr inbounds %"class.tetgenmesh::triface", ptr %159, i32 0, i32 0
  %161 = load ptr, ptr %160, align 8, !tbaa !30
  %162 = getelementptr inbounds ptr, ptr %161, i64 4
  %163 = load ptr, ptr %162, align 8, !tbaa !5
  %164 = icmp ne ptr %163, null
  br i1 %164, label %165, label %167

165:                                              ; preds = %158
  %166 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN10tetgenmesh18enqueuetetrahedronEPNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %28, ptr noundef %166)
  br label %167

167:                                              ; preds = %165, %158, %153
  br label %168

168:                                              ; preds = %167, %150
  %169 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %169, ptr %6, align 4
  store i32 1, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #6
  br label %428

170:                                              ; preds = %66
  %171 = getelementptr inbounds %"class.tetgenmesh::insertvertexflags", ptr %17, i32 0, i32 1
  store i32 3, ptr %171, align 4, !tbaa !31
  %172 = getelementptr inbounds %"class.tetgenmesh::insertvertexflags", ptr %17, i32 0, i32 2
  store i32 2, ptr %172, align 8, !tbaa !32
  %173 = getelementptr inbounds %"class.tetgenmesh::insertvertexflags", ptr %17, i32 0, i32 6
  store i32 3, ptr %173, align 8, !tbaa !33
  %174 = getelementptr inbounds %class.tetgenmesh, ptr %28, i32 0, i32 2
  %175 = load ptr, ptr %174, align 8, !tbaa !22
  %176 = getelementptr inbounds %class.tetgenbehavior, ptr %175, i32 0, i32 10
  %177 = load i32, ptr %176, align 8, !tbaa !34
  %178 = icmp ne i32 %177, 0
  br i1 %178, label %179, label %183

179:                                              ; preds = %170
  %180 = getelementptr inbounds %"class.tetgenmesh::insertvertexflags", ptr %17, i32 0, i32 6
  %181 = load i32, ptr %180, align 8, !tbaa !33
  %182 = or i32 %181, 4
  store i32 %182, ptr %180, align 8, !tbaa !33
  br label %183

183:                                              ; preds = %179, %170
  %184 = load i32, ptr %11, align 4, !tbaa !9
  %185 = getelementptr inbounds %"class.tetgenmesh::insertvertexflags", ptr %17, i32 0, i32 7
  store i32 %184, ptr %185, align 4, !tbaa !35
  %186 = getelementptr inbounds %"class.tetgenmesh::insertvertexflags", ptr %17, i32 0, i32 11
  store i32 0, ptr %186, align 4, !tbaa !36
  %187 = getelementptr inbounds %"class.tetgenmesh::insertvertexflags", ptr %17, i32 0, i32 10
  store i32 0, ptr %187, align 8, !tbaa !37
  %188 = getelementptr inbounds %"class.tetgenmesh::insertvertexflags", ptr %17, i32 0, i32 3
  store i32 0, ptr %188, align 4, !tbaa !38
  %189 = getelementptr inbounds %"class.tetgenmesh::insertvertexflags", ptr %17, i32 0, i32 4
  store i32 1, ptr %189, align 8, !tbaa !39
  %190 = getelementptr inbounds %"class.tetgenmesh::insertvertexflags", ptr %17, i32 0, i32 5
  store i32 1, ptr %190, align 4, !tbaa !40
  %191 = getelementptr inbounds %class.tetgenmesh, ptr %28, i32 0, i32 2
  %192 = load ptr, ptr %191, align 8, !tbaa !22
  %193 = getelementptr inbounds %class.tetgenbehavior, ptr %192, i32 0, i32 10
  %194 = load i32, ptr %193, align 8, !tbaa !34
  %195 = getelementptr inbounds %"class.tetgenmesh::insertvertexflags", ptr %17, i32 0, i32 9
  store i32 %194, ptr %195, align 4, !tbaa !41
  %196 = getelementptr inbounds %"class.tetgenmesh::insertvertexflags", ptr %17, i32 0, i32 12
  store i32 1, ptr %196, align 8, !tbaa !42
  %197 = load ptr, ptr %8, align 8, !tbaa !5
  %198 = getelementptr inbounds %"class.tetgenmesh::insertvertexflags", ptr %17, i32 0, i32 14
  %199 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZN10tetgenmesh7trifaceaSERKS0_(ptr noundef nonnull align 8 dereferenceable(12) %198, ptr noundef nonnull align 8 dereferenceable(12) %197)
  %200 = load ptr, ptr %14, align 8, !tbaa !5
  %201 = call noundef i32 @_ZN10tetgenmesh11insertpointEPdPNS_7trifaceEPNS_4faceES4_PNS_17insertvertexflagsE(ptr noundef nonnull align 8 dereferenceable(1536) %28, ptr noundef %200, ptr noundef %12, ptr noundef null, ptr noundef null, ptr noundef %17)
  %202 = icmp ne i32 %201, 0
  br i1 %202, label %203, label %226

203:                                              ; preds = %183
  %204 = getelementptr inbounds %class.tetgenmesh, ptr %28, i32 0, i32 85
  %205 = load i64, ptr %204, align 8, !tbaa !43
  %206 = add nsw i64 %205, 1
  store i64 %206, ptr %204, align 8, !tbaa !43
  %207 = getelementptr inbounds %class.tetgenmesh, ptr %28, i32 0, i32 79
  %208 = load i64, ptr %207, align 8, !tbaa !44
  %209 = icmp sgt i64 %208, 0
  br i1 %209, label %210, label %214

210:                                              ; preds = %203
  %211 = getelementptr inbounds %class.tetgenmesh, ptr %28, i32 0, i32 79
  %212 = load i64, ptr %211, align 8, !tbaa !44
  %213 = add nsw i64 %212, -1
  store i64 %213, ptr %211, align 8, !tbaa !44
  br label %214

214:                                              ; preds = %210, %203
  %215 = getelementptr inbounds %class.tetgenmesh, ptr %28, i32 0, i32 15
  %216 = load ptr, ptr %215, align 8, !tbaa !45
  %217 = icmp ne ptr %216, null
  br i1 %217, label %218, label %225

218:                                              ; preds = %214
  call void @llvm.lifetime.start.p0(i64 120, ptr %27) #6
  call void @_ZN10tetgenmesh15flipconstraintsC2Ev(ptr noundef nonnull align 8 dereferenceable(120) %27)
  %219 = load i32, ptr %11, align 4, !tbaa !9
  %220 = getelementptr inbounds %"class.tetgenmesh::flipconstraints", ptr %27, i32 0, i32 1
  store i32 %219, ptr %220, align 4, !tbaa !46
  %221 = getelementptr inbounds %"class.tetgenmesh::flipconstraints", ptr %27, i32 0, i32 0
  store i32 2, ptr %221, align 8, !tbaa !48
  %222 = call noundef i64 @_ZN10tetgenmesh12lawsonflip3dEPNS_15flipconstraintsE(ptr noundef nonnull align 8 dereferenceable(1536) %28, ptr noundef %27)
  %223 = getelementptr inbounds %class.tetgenmesh, ptr %28, i32 0, i32 14
  %224 = load ptr, ptr %223, align 8, !tbaa !49
  call void @_ZN10tetgenmesh9arraypool7restartEv(ptr noundef nonnull align 8 dereferenceable(48) %224)
  call void @llvm.lifetime.end.p0(i64 120, ptr %27) #6
  br label %225

225:                                              ; preds = %218, %214
  store i32 1, ptr %6, align 4
  store i32 1, ptr %21, align 4
  br label %428

226:                                              ; preds = %183
  %227 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN10tetgenmesh12pointdeallocEPd(ptr noundef nonnull align 8 dereferenceable(1536) %28, ptr noundef %227)
  %228 = getelementptr inbounds %"class.tetgenmesh::insertvertexflags", ptr %17, i32 0, i32 0
  %229 = load i32, ptr %228, align 8, !tbaa !20
  %230 = icmp eq i32 %229, 7
  br i1 %230, label %231, label %317

231:                                              ; preds = %226
  %232 = getelementptr inbounds %class.tetgenmesh, ptr %28, i32 0, i32 2
  %233 = load ptr, ptr %232, align 8, !tbaa !22
  %234 = getelementptr inbounds %class.tetgenbehavior, ptr %233, i32 0, i32 4
  %235 = load i32, ptr %234, align 8, !tbaa !26
  %236 = icmp ne i32 %235, 0
  br i1 %236, label %237, label %241

237:                                              ; preds = %231
  %238 = getelementptr inbounds %class.tetgenmesh, ptr %28, i32 0, i32 54
  %239 = load i32, ptr %238, align 4, !tbaa !50
  %240 = icmp ne i32 %239, 0
  br i1 %240, label %241, label %292

241:                                              ; preds = %237, %231
  store i32 0, ptr %19, align 4, !tbaa !9
  br label %242

242:                                              ; preds = %288, %241
  %243 = load i32, ptr %19, align 4, !tbaa !9
  %244 = sext i32 %243 to i64
  %245 = getelementptr inbounds %class.tetgenmesh, ptr %28, i32 0, i32 30
  %246 = load ptr, ptr %245, align 8, !tbaa !51
  %247 = getelementptr inbounds %"class.tetgenmesh::arraypool", ptr %246, i32 0, i32 6
  %248 = load i64, ptr %247, align 8, !tbaa !52
  %249 = icmp slt i64 %244, %248
  br i1 %249, label %250, label %291

250:                                              ; preds = %242
  %251 = getelementptr inbounds %class.tetgenmesh, ptr %28, i32 0, i32 30
  %252 = load ptr, ptr %251, align 8, !tbaa !51
  %253 = getelementptr inbounds %"class.tetgenmesh::arraypool", ptr %252, i32 0, i32 5
  %254 = load ptr, ptr %253, align 8, !tbaa !54
  %255 = load i32, ptr %19, align 4, !tbaa !9
  %256 = getelementptr inbounds %class.tetgenmesh, ptr %28, i32 0, i32 30
  %257 = load ptr, ptr %256, align 8, !tbaa !51
  %258 = getelementptr inbounds %"class.tetgenmesh::arraypool", ptr %257, i32 0, i32 2
  %259 = load i32, ptr %258, align 8, !tbaa !55
  %260 = ashr i32 %255, %259
  %261 = sext i32 %260 to i64
  %262 = getelementptr inbounds ptr, ptr %254, i64 %261
  %263 = load ptr, ptr %262, align 8, !tbaa !5
  %264 = load i32, ptr %19, align 4, !tbaa !9
  %265 = getelementptr inbounds %class.tetgenmesh, ptr %28, i32 0, i32 30
  %266 = load ptr, ptr %265, align 8, !tbaa !51
  %267 = getelementptr inbounds %"class.tetgenmesh::arraypool", ptr %266, i32 0, i32 3
  %268 = load i32, ptr %267, align 4, !tbaa !56
  %269 = and i32 %264, %268
  %270 = getelementptr inbounds %class.tetgenmesh, ptr %28, i32 0, i32 30
  %271 = load ptr, ptr %270, align 8, !tbaa !51
  %272 = getelementptr inbounds %"class.tetgenmesh::arraypool", ptr %271, i32 0, i32 0
  %273 = load i32, ptr %272, align 8, !tbaa !57
  %274 = mul nsw i32 %269, %273
  %275 = sext i32 %274 to i64
  %276 = getelementptr inbounds i8, ptr %263, i64 %275
  store ptr %276, ptr %13, align 8, !tbaa !5
  %277 = load ptr, ptr %13, align 8, !tbaa !5
  %278 = load double, ptr %20, align 8, !tbaa !11
  %279 = load ptr, ptr %8, align 8, !tbaa !5
  %280 = call noundef ptr @_ZN10tetgenmesh3orgERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %28, ptr noundef nonnull align 8 dereferenceable(12) %279)
  %281 = load i32, ptr %9, align 4, !tbaa !9
  %282 = load i32, ptr %11, align 4, !tbaa !9
  %283 = or i32 %282, 3
  %284 = call noundef i32 @_ZN10tetgenmesh12splitsegmentEPNS_4faceEPddS2_S2_ii(ptr noundef nonnull align 8 dereferenceable(1536) %28, ptr noundef %277, ptr noundef null, double noundef %278, ptr noundef %280, ptr noundef null, i32 noundef %281, i32 noundef %283)
  %285 = icmp ne i32 %284, 0
  br i1 %285, label %286, label %287

286:                                              ; preds = %250
  store i32 1, ptr %18, align 4, !tbaa !9
  br label %291

287:                                              ; preds = %250
  br label %288

288:                                              ; preds = %287
  %289 = load i32, ptr %19, align 4, !tbaa !9
  %290 = add nsw i32 %289, 1
  store i32 %290, ptr %19, align 4, !tbaa !9
  br label %242, !llvm.loop !58

291:                                              ; preds = %286, %242
  br label %292

292:                                              ; preds = %291, %237
  %293 = getelementptr inbounds %class.tetgenmesh, ptr %28, i32 0, i32 30
  %294 = load ptr, ptr %293, align 8, !tbaa !51
  call void @_ZN10tetgenmesh9arraypool7restartEv(ptr noundef nonnull align 8 dereferenceable(48) %294)
  %295 = load i32, ptr %18, align 4, !tbaa !9
  %296 = icmp ne i32 %295, 0
  br i1 %296, label %297, label %316

297:                                              ; preds = %292
  %298 = getelementptr inbounds %class.tetgenmesh, ptr %28, i32 0, i32 12
  %299 = load ptr, ptr %298, align 8, !tbaa !59
  %300 = getelementptr inbounds %"class.tetgenmesh::memorypool", ptr %299, i32 0, i32 10
  %301 = load i64, ptr %300, align 8, !tbaa !60
  %302 = icmp sgt i64 %301, 0
  br i1 %302, label %303, label %306

303:                                              ; preds = %297
  %304 = load i32, ptr %11, align 4, !tbaa !9
  %305 = or i32 %304, 3
  call void @_ZN10tetgenmesh13repairencsegsEi(ptr noundef nonnull align 8 dereferenceable(1536) %28, i32 noundef %305)
  br label %306

306:                                              ; preds = %303, %297
  %307 = getelementptr inbounds %class.tetgenmesh, ptr %28, i32 0, i32 11
  %308 = load ptr, ptr %307, align 8, !tbaa !62
  %309 = getelementptr inbounds %"class.tetgenmesh::memorypool", ptr %308, i32 0, i32 10
  %310 = load i64, ptr %309, align 8, !tbaa !60
  %311 = icmp sgt i64 %310, 0
  br i1 %311, label %312, label %315

312:                                              ; preds = %306
  %313 = load i32, ptr %11, align 4, !tbaa !9
  %314 = or i32 %313, 2
  call void @_ZN10tetgenmesh13repairencfacsEi(ptr noundef nonnull align 8 dereferenceable(1536) %28, i32 noundef %314)
  br label %315

315:                                              ; preds = %312, %306
  br label %316

316:                                              ; preds = %315, %292
  br label %408

317:                                              ; preds = %226
  %318 = getelementptr inbounds %"class.tetgenmesh::insertvertexflags", ptr %17, i32 0, i32 0
  %319 = load i32, ptr %318, align 8, !tbaa !20
  %320 = icmp eq i32 %319, 8
  br i1 %320, label %321, label %401

321:                                              ; preds = %317
  %322 = getelementptr inbounds %class.tetgenmesh, ptr %28, i32 0, i32 2
  %323 = load ptr, ptr %322, align 8, !tbaa !22
  %324 = getelementptr inbounds %class.tetgenbehavior, ptr %323, i32 0, i32 4
  %325 = load i32, ptr %324, align 8, !tbaa !26
  %326 = icmp ne i32 %325, 0
  br i1 %326, label %327, label %331

327:                                              ; preds = %321
  %328 = getelementptr inbounds %class.tetgenmesh, ptr %28, i32 0, i32 54
  %329 = load i32, ptr %328, align 4, !tbaa !50
  %330 = icmp ne i32 %329, 0
  br i1 %330, label %331, label %385

331:                                              ; preds = %327, %321
  store i32 0, ptr %19, align 4, !tbaa !9
  br label %332

332:                                              ; preds = %381, %331
  %333 = load i32, ptr %19, align 4, !tbaa !9
  %334 = sext i32 %333 to i64
  %335 = getelementptr inbounds %class.tetgenmesh, ptr %28, i32 0, i32 31
  %336 = load ptr, ptr %335, align 8, !tbaa !63
  %337 = getelementptr inbounds %"class.tetgenmesh::arraypool", ptr %336, i32 0, i32 6
  %338 = load i64, ptr %337, align 8, !tbaa !52
  %339 = icmp slt i64 %334, %338
  br i1 %339, label %340, label %384

340:                                              ; preds = %332
  %341 = getelementptr inbounds %class.tetgenmesh, ptr %28, i32 0, i32 31
  %342 = load ptr, ptr %341, align 8, !tbaa !63
  %343 = getelementptr inbounds %"class.tetgenmesh::arraypool", ptr %342, i32 0, i32 5
  %344 = load ptr, ptr %343, align 8, !tbaa !54
  %345 = load i32, ptr %19, align 4, !tbaa !9
  %346 = getelementptr inbounds %class.tetgenmesh, ptr %28, i32 0, i32 31
  %347 = load ptr, ptr %346, align 8, !tbaa !63
  %348 = getelementptr inbounds %"class.tetgenmesh::arraypool", ptr %347, i32 0, i32 2
  %349 = load i32, ptr %348, align 8, !tbaa !55
  %350 = ashr i32 %345, %349
  %351 = sext i32 %350 to i64
  %352 = getelementptr inbounds ptr, ptr %344, i64 %351
  %353 = load ptr, ptr %352, align 8, !tbaa !5
  %354 = load i32, ptr %19, align 4, !tbaa !9
  %355 = getelementptr inbounds %class.tetgenmesh, ptr %28, i32 0, i32 31
  %356 = load ptr, ptr %355, align 8, !tbaa !63
  %357 = getelementptr inbounds %"class.tetgenmesh::arraypool", ptr %356, i32 0, i32 3
  %358 = load i32, ptr %357, align 4, !tbaa !56
  %359 = and i32 %354, %358
  %360 = getelementptr inbounds %class.tetgenmesh, ptr %28, i32 0, i32 31
  %361 = load ptr, ptr %360, align 8, !tbaa !63
  %362 = getelementptr inbounds %"class.tetgenmesh::arraypool", ptr %361, i32 0, i32 0
  %363 = load i32, ptr %362, align 8, !tbaa !57
  %364 = mul nsw i32 %359, %363
  %365 = sext i32 %364 to i64
  %366 = getelementptr inbounds i8, ptr %353, i64 %365
  store ptr %366, ptr %16, align 8, !tbaa !5
  %367 = load ptr, ptr %16, align 8, !tbaa !5
  %368 = getelementptr inbounds %"class.tetgenmesh::badface", ptr %367, i32 0, i32 1
  %369 = load ptr, ptr %8, align 8, !tbaa !5
  %370 = call noundef ptr @_ZN10tetgenmesh3orgERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %28, ptr noundef nonnull align 8 dereferenceable(12) %369)
  %371 = load i32, ptr %9, align 4, !tbaa !9
  %372 = load ptr, ptr %16, align 8, !tbaa !5
  %373 = getelementptr inbounds %"class.tetgenmesh::badface", ptr %372, i32 0, i32 3
  %374 = getelementptr inbounds [6 x double], ptr %373, i64 0, i64 0
  %375 = load i32, ptr %11, align 4, !tbaa !9
  %376 = or i32 %375, 2
  %377 = call noundef i32 @_ZN10tetgenmesh12splitsubfaceEPNS_4faceEPdS2_iS2_i(ptr noundef nonnull align 8 dereferenceable(1536) %28, ptr noundef %368, ptr noundef null, ptr noundef %370, i32 noundef %371, ptr noundef %374, i32 noundef %376)
  %378 = icmp ne i32 %377, 0
  br i1 %378, label %379, label %380

379:                                              ; preds = %340
  store i32 1, ptr %18, align 4, !tbaa !9
  br label %384

380:                                              ; preds = %340
  br label %381

381:                                              ; preds = %380
  %382 = load i32, ptr %19, align 4, !tbaa !9
  %383 = add nsw i32 %382, 1
  store i32 %383, ptr %19, align 4, !tbaa !9
  br label %332, !llvm.loop !64

384:                                              ; preds = %379, %332
  br label %385

385:                                              ; preds = %384, %327
  %386 = getelementptr inbounds %class.tetgenmesh, ptr %28, i32 0, i32 31
  %387 = load ptr, ptr %386, align 8, !tbaa !63
  call void @_ZN10tetgenmesh9arraypool7restartEv(ptr noundef nonnull align 8 dereferenceable(48) %387)
  %388 = load i32, ptr %18, align 4, !tbaa !9
  %389 = icmp ne i32 %388, 0
  br i1 %389, label %390, label %400

390:                                              ; preds = %385
  %391 = getelementptr inbounds %class.tetgenmesh, ptr %28, i32 0, i32 11
  %392 = load ptr, ptr %391, align 8, !tbaa !62
  %393 = getelementptr inbounds %"class.tetgenmesh::memorypool", ptr %392, i32 0, i32 10
  %394 = load i64, ptr %393, align 8, !tbaa !60
  %395 = icmp sgt i64 %394, 0
  br i1 %395, label %396, label %399

396:                                              ; preds = %390
  %397 = load i32, ptr %11, align 4, !tbaa !9
  %398 = or i32 %397, 2
  call void @_ZN10tetgenmesh13repairencfacsEi(ptr noundef nonnull align 8 dereferenceable(1536) %28, i32 noundef %398)
  br label %399

399:                                              ; preds = %396, %390
  br label %400

400:                                              ; preds = %399, %385
  br label %407

401:                                              ; preds = %317
  %402 = getelementptr inbounds %"class.tetgenmesh::insertvertexflags", ptr %17, i32 0, i32 0
  %403 = load i32, ptr %402, align 8, !tbaa !20
  %404 = icmp eq i32 %403, 9
  br i1 %404, label %405, label %406

405:                                              ; preds = %401
  call void @_Z15terminatetetgenP10tetgenmeshi(ptr noundef %28, i32 noundef 2)
  br label %406

406:                                              ; preds = %405, %401
  br label %407

407:                                              ; preds = %406, %400
  br label %408

408:                                              ; preds = %407, %316
  %409 = load i32, ptr %18, align 4, !tbaa !9
  %410 = icmp ne i32 %409, 0
  br i1 %410, label %411, label %426

411:                                              ; preds = %408
  %412 = load ptr, ptr %8, align 8, !tbaa !5
  %413 = getelementptr inbounds %"class.tetgenmesh::triface", ptr %412, i32 0, i32 0
  %414 = load ptr, ptr %413, align 8, !tbaa !30
  %415 = icmp ne ptr %414, null
  br i1 %415, label %416, label %425

416:                                              ; preds = %411
  %417 = load ptr, ptr %8, align 8, !tbaa !5
  %418 = getelementptr inbounds %"class.tetgenmesh::triface", ptr %417, i32 0, i32 0
  %419 = load ptr, ptr %418, align 8, !tbaa !30
  %420 = getelementptr inbounds ptr, ptr %419, i64 4
  %421 = load ptr, ptr %420, align 8, !tbaa !5
  %422 = icmp ne ptr %421, null
  br i1 %422, label %423, label %425

423:                                              ; preds = %416
  %424 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN10tetgenmesh18enqueuetetrahedronEPNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %28, ptr noundef %424)
  br label %425

425:                                              ; preds = %423, %416, %411
  br label %426

426:                                              ; preds = %425, %408
  %427 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %427, ptr %6, align 4
  store i32 1, ptr %21, align 4
  br label %428

428:                                              ; preds = %426, %225, %168, %87
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 112, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #6
  %429 = load i32, ptr %6, align 4
  ret i32 %429
}

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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress 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 = { 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 #5 = { 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 #6 = { 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 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!16, !10, i64 400}
!16 = !{!"_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, !17, i64 288, !18, 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, !19, i64 408, !19, 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, !19, i64 544, !19, i64 552, !19, i64 560, !19, i64 568, !19, i64 576, !19, i64 584, !19, i64 592, !19, i64 600, !19, i64 608, !19, i64 616, !19, i64 624, !19, i64 632, !19, i64 640, !19, i64 648, !19, i64 656, !19, i64 664, !19, i64 672, !19, i64 680, !19, i64 688, !19, i64 696, !19, i64 704, !19, i64 712, !19, i64 720, !19, i64 728, !7, i64 736, !7, i64 1504}
!17 = !{!"_ZTSN10tetgenmesh7trifaceE", !6, i64 0, !10, i64 8}
!18 = !{!"_ZTSN10tetgenmesh4faceE", !6, i64 0, !10, i64 8}
!19 = !{!"long", !7, i64 0}
!20 = !{!21, !10, i64 0}
!21 = !{!"_ZTSN10tetgenmesh17insertvertexflagsE", !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, !17, i64 56, !18, i64 72, !10, i64 88, !12, i64 96, !6, i64 104}
!22 = !{!16, !6, i64 16}
!23 = !{!24, !10, i64 148}
!24 = !{!"_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, !25, i64 5456}
!25 = !{!"_ZTSN14tetgenbehavior10objecttypeE", !7, i64 0}
!26 = !{!24, !10, i64 16}
!27 = !{!28, !28, i64 0}
!28 = !{!"_ZTSN10tetgenmesh12locateresultE", !7, i64 0}
!29 = !{!18, !6, i64 0}
!30 = !{!17, !6, i64 0}
!31 = !{!21, !10, i64 4}
!32 = !{!21, !10, i64 8}
!33 = !{!21, !10, i64 24}
!34 = !{!24, !10, i64 40}
!35 = !{!21, !10, i64 28}
!36 = !{!21, !10, i64 44}
!37 = !{!21, !10, i64 40}
!38 = !{!21, !10, i64 12}
!39 = !{!21, !10, i64 16}
!40 = !{!21, !10, i64 20}
!41 = !{!21, !10, i64 36}
!42 = !{!21, !10, i64 48}
!43 = !{!16, !19, i64 624}
!44 = !{!16, !19, i64 576}
!45 = !{!16, !6, i64 120}
!46 = !{!47, !10, i64 4}
!47 = !{!"_ZTSN10tetgenmesh15flipconstraintsE", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !12, i64 24, !12, i64 32, !10, i64 40, !12, i64 48, !12, i64 56, !10, i64 64, !7, i64 72, !7, i64 88, !6, i64 112}
!48 = !{!47, !10, i64 0}
!49 = !{!16, !6, i64 112}
!50 = !{!16, !10, i64 388}
!51 = !{!16, !6, i64 240}
!52 = !{!53, !19, i64 32}
!53 = !{!"_ZTSN10tetgenmesh9arraypoolE", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !6, i64 24, !19, i64 32, !19, i64 40}
!54 = !{!53, !6, i64 24}
!55 = !{!53, !10, i64 8}
!56 = !{!53, !10, i64 12}
!57 = !{!53, !10, i64 0}
!58 = distinct !{!58, !14}
!59 = !{!16, !6, i64 96}
!60 = !{!61, !19, i64 64}
!61 = !{!"_ZTSN10tetgenmesh10memorypoolE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !10, i64 48, !10, i64 52, !10, i64 56, !10, i64 60, !19, i64 64, !19, i64 72, !10, i64 80, !10, i64 84}
!62 = !{!16, !6, i64 88}
!63 = !{!16, !6, i64 248}
!64 = distinct !{!64, !14}


; 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] }>
%"class.tetgenmesh::insertvertexflags" = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [4 x i8], %"class.tetgenmesh::triface", %"class.tetgenmesh::face", i32, double, ptr }
%"class.tetgenmesh::face" = type <{ ptr, i32, [4 x i8] }>
%"class.tetgenmesh::flipconstraints" = type { i32, i32, i32, i32, i32, i32, double, double, i32, double, double, i32, [2 x ptr], [3 x ptr], ptr }

@.str.485 = external hidden unnamed_addr constant [43 x i8], align 1

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

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

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2

; 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 nounwind uwtable
declare dso_local void @_ZN10tetgenmesh9arraypool7restartEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #3 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10tetgenmesh9makepointEPPdNS_8verttypeE(ptr noundef nonnull align 8 dereferenceable(1536), ptr noundef, i32 noundef) local_unnamed_addr #5 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 #4 align 2

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN10tetgenmesh15flipconstraintsC2Ev(ptr noundef nonnull align 8 dereferenceable(120)) unnamed_addr #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZN10tetgenmesh12lawsonflip3dEPNS_15flipconstraintsE(ptr noundef nonnull align 8 dereferenceable(1536), ptr noundef) local_unnamed_addr #5 align 2

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN10tetgenmesh16splittetrahedronEPNS_7trifaceEiPdi(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, i32 noundef %4) local_unnamed_addr #5 align 2 {
  %6 = alloca %"class.tetgenmesh::triface", align 8
  %7 = alloca ptr, align 8
  %8 = alloca %"class.tetgenmesh::insertvertexflags", align 8
  %9 = alloca %"class.tetgenmesh::face", align 8
  %10 = alloca [3 x double], align 16
  %11 = alloca [3 x double], align 16
  %12 = alloca double, align 8
  %13 = alloca %"class.tetgenmesh::flipconstraints", align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #6
  call void @_ZN10tetgenmesh7trifaceC2Ev(ptr noundef nonnull align 8 dereferenceable(12) %6)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  call void @llvm.lifetime.start.p0(i64 112, ptr nonnull %8) #6
  call void @_ZN10tetgenmesh17insertvertexflagsC2Ev(ptr noundef nonnull align 8 dereferenceable(112) %8)
  call void @_ZN10tetgenmesh9makepointEPPdNS_8verttypeE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull %7, i32 noundef 8)
  %14 = load ptr, ptr %7, align 8, !tbaa !5
  %15 = load double, ptr %3, align 8, !tbaa !9
  store double %15, ptr %14, align 8, !tbaa !9
  %16 = getelementptr inbounds i8, ptr %3, i64 8
  %17 = load double, ptr %16, align 8, !tbaa !9
  %18 = getelementptr inbounds i8, ptr %14, i64 8
  store double %17, ptr %18, align 8, !tbaa !9
  %19 = getelementptr inbounds i8, ptr %3, i64 16
  %20 = load double, ptr %19, align 8, !tbaa !9
  %21 = getelementptr inbounds i8, ptr %14, i64 16
  store double %20, ptr %21, align 8, !tbaa !9
  %22 = getelementptr inbounds i8, ptr %0, i64 400
  %23 = load i32, ptr %22, align 8, !tbaa !11
  %.not = icmp eq i32 %23, 0
  br i1 %.not, label %28, label %24

24:                                               ; preds = %5
  %25 = call noundef ptr @_ZN10tetgenmesh3orgERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %1)
  %26 = call noundef double @_ZN10tetgenmesh8distanceEPdS0_(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull %14, ptr noundef %25)
  %27 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZN10tetgenmesh17setpointinsradiusEPdd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %27, double noundef %26)
  br label %28

28:                                               ; preds = %24, %5
  %.0 = phi double [ %26, %24 ], [ 0.000000e+00, %5 ]
  %29 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZN10tetgenmesh7trifaceaSERKS0_(ptr noundef nonnull align 8 dereferenceable(12) %6, ptr noundef nonnull align 8 dereferenceable(12) %1)
  store i32 1, ptr %8, align 8, !tbaa !17
  %30 = load ptr, ptr %7, align 8, !tbaa !5
  %31 = call noundef i32 @_ZN10tetgenmesh6locateEPdPNS_7trifaceEi(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %30, ptr noundef nonnull %6, i32 noundef 1)
  store i32 %31, ptr %8, align 8, !tbaa !17
  switch i32 %31, label %76 [
    i32 8, label %32
    i32 1, label %32
  ]

32:                                               ; preds = %28, %28
  %33 = getelementptr inbounds i8, ptr %0, i64 16
  %34 = load ptr, ptr %33, align 8, !tbaa !19
  %35 = getelementptr inbounds i8, ptr %34, i64 148
  %36 = load i32, ptr %35, align 4, !tbaa !20
  %37 = icmp sgt i32 %36, 2
  br i1 %37, label %38, label %42

38:                                               ; preds = %32
  %39 = load ptr, ptr %7, align 8, !tbaa !5
  %40 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %39)
  %41 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.485, i32 noundef %40)
  br label %42

42:                                               ; preds = %38, %32
  %43 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZN10tetgenmesh12pointdeallocEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %43)
  %44 = load ptr, ptr %33, align 8, !tbaa !19
  %45 = getelementptr inbounds i8, ptr %44, i64 16
  %46 = load i32, ptr %45, align 8, !tbaa !23
  %.not94 = icmp eq i32 %46, 0
  br i1 %.not94, label %47, label %.thread112

47:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #6
  call void @_ZN10tetgenmesh4faceC2Ev(ptr noundef nonnull align 8 dereferenceable(12) %9)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %10) #6
  call void @_ZN10tetgenmesh7tspivotERNS_7trifaceERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %6, ptr noundef nonnull align 8 dereferenceable(12) %9)
  %48 = load ptr, ptr %9, align 8, !tbaa !24
  %49 = getelementptr inbounds i8, ptr %48, i64 24
  %50 = load ptr, ptr %49, align 8, !tbaa !5
  %51 = getelementptr inbounds i8, ptr %48, i64 32
  %52 = load ptr, ptr %51, align 8, !tbaa !5
  %53 = getelementptr inbounds i8, ptr %48, i64 40
  %54 = load ptr, ptr %53, align 8, !tbaa !5
  call void @_ZN10tetgenmesh11projpt2faceEPdS0_S0_S0_S0_(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull %3, ptr noundef %50, ptr noundef %52, ptr noundef %54, ptr noundef nonnull %10)
  %55 = call noundef i32 @_ZN10tetgenmesh7slocateEPdPNS_4faceEiii(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull %10, ptr noundef nonnull %9, i32 noundef 0, i32 noundef 0, i32 noundef 1)
  %56 = add i32 %55, -3
  %or.cond4 = icmp ult i32 %56, 2
  br i1 %or.cond4, label %57, label %.thread

57:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #6
  store double 0.000000e+00, ptr %12, align 8, !tbaa !9
  %58 = load ptr, ptr %9, align 8, !tbaa !24
  %59 = getelementptr inbounds i8, ptr %58, i64 24
  %60 = load ptr, ptr %59, align 8, !tbaa !5
  %61 = getelementptr inbounds i8, ptr %58, i64 32
  %62 = load ptr, ptr %61, align 8, !tbaa !5
  %63 = getelementptr inbounds i8, ptr %58, i64 40
  %64 = load ptr, ptr %63, align 8, !tbaa !5
  %65 = call noundef i32 @_ZN10tetgenmesh17checkfac4encroachEPdS0_S0_S0_S0_S0_(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %60, ptr noundef %62, ptr noundef %64, ptr noundef nonnull %3, ptr noundef nonnull %11, ptr noundef nonnull %12)
  %.not95 = icmp eq i32 %65, 0
  br i1 %.not95, label %.thread108, label %66

66:                                               ; preds = %57
  %67 = call noundef ptr @_ZN10tetgenmesh3orgERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %1)
  %68 = or i32 %4, 2
  %69 = call noundef i32 @_ZN10tetgenmesh12splitsubfaceEPNS_4faceEPdS2_iS2_i(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull %9, ptr noundef null, ptr noundef %67, i32 noundef %2, ptr noundef nonnull %11, i32 noundef %68)
  %.not96 = icmp eq i32 %69, 0
  br i1 %.not96, label %.thread108, label %70

.thread108:                                       ; preds = %66, %57
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #6
  br label %.thread

70:                                               ; preds = %66
  call void @_ZN10tetgenmesh13repairencfacsEi(ptr noundef nonnull align 8 dereferenceable(1536) %0, i32 noundef %68)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #6
  %71 = load ptr, ptr %1, align 8, !tbaa !25
  %.not98 = icmp eq ptr %71, null
  br i1 %.not98, label %.thread, label %72

72:                                               ; preds = %70
  %73 = getelementptr inbounds i8, ptr %71, i64 32
  %74 = load ptr, ptr %73, align 8, !tbaa !5
  %.not99 = icmp eq ptr %74, null
  br i1 %.not99, label %.thread, label %75

75:                                               ; preds = %72
  call void @_ZN10tetgenmesh18enqueuetetrahedronEPNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull %1)
  br label %.thread

.thread:                                          ; preds = %47, %.thread108, %70, %72, %75
  %.170107 = phi i32 [ %69, %70 ], [ %69, %72 ], [ %69, %75 ], [ 0, %.thread108 ], [ 0, %47 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #6
  br label %.thread112

76:                                               ; preds = %28
  %77 = getelementptr inbounds i8, ptr %8, i64 4
  %78 = getelementptr inbounds i8, ptr %8, i64 24
  %79 = getelementptr inbounds i8, ptr %0, i64 16
  %80 = load ptr, ptr %79, align 8, !tbaa !19
  %81 = getelementptr inbounds i8, ptr %80, i64 40
  %82 = load i32, ptr %81, align 8, !tbaa !26
  %.not80 = icmp eq i32 %82, 0
  %spec.store.select = select i1 %.not80, i32 3, i32 7
  store i32 %spec.store.select, ptr %78, align 8
  %83 = getelementptr inbounds i8, ptr %8, i64 28
  store i32 %4, ptr %83, align 4, !tbaa !27
  %84 = getelementptr inbounds i8, ptr %8, i64 44
  store i32 0, ptr %84, align 4, !tbaa !28
  %85 = getelementptr inbounds i8, ptr %8, i64 40
  store i32 0, ptr %85, align 8, !tbaa !29
  store <4 x i32> <i32 3, i32 2, i32 0, i32 1>, ptr %77, align 4, !tbaa !30
  %86 = getelementptr inbounds i8, ptr %8, i64 20
  store i32 1, ptr %86, align 4, !tbaa !31
  %87 = getelementptr inbounds i8, ptr %8, i64 36
  store i32 %82, ptr %87, align 4, !tbaa !32
  %88 = getelementptr inbounds i8, ptr %8, i64 48
  store i32 1, ptr %88, align 8, !tbaa !33
  %89 = getelementptr inbounds i8, ptr %8, i64 56
  %90 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZN10tetgenmesh7trifaceaSERKS0_(ptr noundef nonnull align 8 dereferenceable(12) %89, ptr noundef nonnull align 8 dereferenceable(12) %1)
  %91 = load ptr, ptr %7, align 8, !tbaa !5
  %92 = call noundef i32 @_ZN10tetgenmesh11insertpointEPdPNS_7trifaceEPNS_4faceES4_PNS_17insertvertexflagsE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %91, ptr noundef nonnull %6, ptr noundef null, ptr noundef null, ptr noundef nonnull %8)
  %.not81 = icmp eq i32 %92, 0
  br i1 %.not81, label %110, label %93

93:                                               ; preds = %76
  %94 = getelementptr inbounds i8, ptr %0, i64 624
  %95 = load i64, ptr %94, align 8, !tbaa !34
  %96 = add nsw i64 %95, 1
  store i64 %96, ptr %94, align 8, !tbaa !34
  %97 = getelementptr inbounds i8, ptr %0, i64 576
  %98 = load i64, ptr %97, align 8, !tbaa !35
  %99 = icmp sgt i64 %98, 0
  br i1 %99, label %100, label %102

100:                                              ; preds = %93
  %101 = add nsw i64 %98, -1
  store i64 %101, ptr %97, align 8, !tbaa !35
  br label %102

102:                                              ; preds = %100, %93
  %103 = getelementptr inbounds i8, ptr %0, i64 120
  %104 = load ptr, ptr %103, align 8, !tbaa !36
  %.not93 = icmp eq ptr %104, null
  br i1 %.not93, label %.thread112, label %105

105:                                              ; preds = %102
  call void @llvm.lifetime.start.p0(i64 120, ptr nonnull %13) #6
  call void @_ZN10tetgenmesh15flipconstraintsC2Ev(ptr noundef nonnull align 8 dereferenceable(120) %13)
  %106 = getelementptr inbounds i8, ptr %13, i64 4
  store i32 %4, ptr %106, align 4, !tbaa !37
  store i32 2, ptr %13, align 8, !tbaa !39
  %107 = call noundef i64 @_ZN10tetgenmesh12lawsonflip3dEPNS_15flipconstraintsE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull %13)
  %108 = getelementptr inbounds i8, ptr %0, i64 112
  %109 = load ptr, ptr %108, align 8, !tbaa !40
  call void @_ZN10tetgenmesh9arraypool7restartEv(ptr noundef nonnull align 8 dereferenceable(48) %109)
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %13) #6
  br label %.thread112

110:                                              ; preds = %76
  %111 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZN10tetgenmesh12pointdeallocEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %111)
  %112 = load i32, ptr %8, align 8, !tbaa !17
  switch i32 %112, label %.thread112 [
    i32 7, label %113
    i32 8, label %164
    i32 9, label %208
  ]

113:                                              ; preds = %110
  %114 = load ptr, ptr %79, align 8, !tbaa !19
  %115 = getelementptr inbounds i8, ptr %114, i64 16
  %116 = load i32, ptr %115, align 8, !tbaa !23
  %.not86 = icmp ne i32 %116, 0
  %117 = getelementptr inbounds i8, ptr %0, i64 388
  %118 = load i32, ptr %117, align 4
  %.not87 = icmp eq i32 %118, 0
  %or.cond = select i1 %.not86, i1 %.not87, i1 false
  %.phi.trans.insert129 = getelementptr inbounds i8, ptr %0, i64 240
  %.pre130 = load ptr, ptr %.phi.trans.insert129, align 8, !tbaa !41
  br i1 %or.cond, label %.critedge, label %.preheader

.preheader:                                       ; preds = %113
  %119 = getelementptr inbounds i8, ptr %.pre130, i64 32
  %120 = load i64, ptr %119, align 8, !tbaa !42
  %121 = icmp sgt i64 %120, 0
  br i1 %121, label %.lr.ph123, label %.critedge

.lr.ph123:                                        ; preds = %.preheader
  %122 = or i32 %4, 3
  br label %128

123:                                              ; preds = %128
  %indvars.iv.next127 = add nuw nsw i64 %indvars.iv126, 1
  %124 = load ptr, ptr %.phi.trans.insert129, align 8, !tbaa !41
  %125 = getelementptr inbounds i8, ptr %124, i64 32
  %126 = load i64, ptr %125, align 8, !tbaa !42
  %127 = icmp sgt i64 %126, %indvars.iv.next127
  br i1 %127, label %128, label %.critedge, !llvm.loop !44

128:                                              ; preds = %.lr.ph123, %123
  %indvars.iv126 = phi i64 [ 0, %.lr.ph123 ], [ %indvars.iv.next127, %123 ]
  %129 = phi ptr [ %.pre130, %.lr.ph123 ], [ %124, %123 ]
  %130 = getelementptr inbounds i8, ptr %129, i64 24
  %131 = load ptr, ptr %130, align 8, !tbaa !46
  %132 = getelementptr inbounds i8, ptr %129, i64 8
  %133 = load i32, ptr %132, align 8, !tbaa !47
  %134 = trunc nuw nsw i64 %indvars.iv126 to i32
  %135 = lshr i32 %134, %133
  %136 = zext nneg i32 %135 to i64
  %137 = getelementptr inbounds ptr, ptr %131, i64 %136
  %138 = load ptr, ptr %137, align 8, !tbaa !5
  %139 = getelementptr inbounds i8, ptr %129, i64 12
  %140 = load i32, ptr %139, align 4, !tbaa !48
  %141 = and i32 %140, %134
  %142 = load i32, ptr %129, align 8, !tbaa !49
  %143 = mul nsw i32 %141, %142
  %144 = sext i32 %143 to i64
  %145 = getelementptr inbounds i8, ptr %138, i64 %144
  %146 = call noundef ptr @_ZN10tetgenmesh3orgERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %1)
  %147 = call noundef i32 @_ZN10tetgenmesh12splitsegmentEPNS_4faceEPddS2_S2_ii(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %145, ptr noundef null, double noundef %.0, ptr noundef %146, ptr noundef null, i32 noundef %2, i32 noundef %122)
  %.not88 = icmp eq i32 %147, 0
  br i1 %.not88, label %123, label %148

148:                                              ; preds = %128
  %149 = load ptr, ptr %.phi.trans.insert129, align 8, !tbaa !41
  call void @_ZN10tetgenmesh9arraypool7restartEv(ptr noundef nonnull align 8 dereferenceable(48) %149)
  %150 = getelementptr inbounds i8, ptr %0, i64 96
  %151 = load ptr, ptr %150, align 8, !tbaa !50
  %152 = getelementptr inbounds i8, ptr %151, i64 64
  %153 = load i64, ptr %152, align 8, !tbaa !51
  %154 = icmp sgt i64 %153, 0
  br i1 %154, label %155, label %156

155:                                              ; preds = %148
  call void @_ZN10tetgenmesh13repairencsegsEi(ptr noundef nonnull align 8 dereferenceable(1536) %0, i32 noundef %122)
  br label %156

156:                                              ; preds = %155, %148
  %157 = getelementptr inbounds i8, ptr %0, i64 88
  %158 = load ptr, ptr %157, align 8, !tbaa !53
  %159 = getelementptr inbounds i8, ptr %158, i64 64
  %160 = load i64, ptr %159, align 8, !tbaa !51
  %161 = icmp sgt i64 %160, 0
  br i1 %161, label %162, label %211

162:                                              ; preds = %156
  %163 = or i32 %4, 2
  br label %.sink.split

164:                                              ; preds = %110
  %165 = load ptr, ptr %79, align 8, !tbaa !19
  %166 = getelementptr inbounds i8, ptr %165, i64 16
  %167 = load i32, ptr %166, align 8, !tbaa !23
  %.not82 = icmp ne i32 %167, 0
  %168 = getelementptr inbounds i8, ptr %0, i64 388
  %169 = load i32, ptr %168, align 4
  %.not83 = icmp eq i32 %169, 0
  %or.cond102 = select i1 %.not82, i1 %.not83, i1 false
  %.phi.trans.insert = getelementptr inbounds i8, ptr %0, i64 248
  %.pre = load ptr, ptr %.phi.trans.insert, align 8, !tbaa !54
  br i1 %or.cond102, label %.critedge104, label %.preheader115

.preheader115:                                    ; preds = %164
  %170 = getelementptr inbounds i8, ptr %.pre, i64 32
  %171 = load i64, ptr %170, align 8, !tbaa !42
  %172 = icmp sgt i64 %171, 0
  br i1 %172, label %.lr.ph, label %.critedge104

.lr.ph:                                           ; preds = %.preheader115
  %173 = or i32 %4, 2
  br label %179

174:                                              ; preds = %179
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %175 = load ptr, ptr %.phi.trans.insert, align 8, !tbaa !54
  %176 = getelementptr inbounds i8, ptr %175, i64 32
  %177 = load i64, ptr %176, align 8, !tbaa !42
  %178 = icmp sgt i64 %177, %indvars.iv.next
  br i1 %178, label %179, label %.critedge104, !llvm.loop !55

179:                                              ; preds = %.lr.ph, %174
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %174 ]
  %180 = phi ptr [ %.pre, %.lr.ph ], [ %175, %174 ]
  %181 = getelementptr inbounds i8, ptr %180, i64 24
  %182 = load ptr, ptr %181, align 8, !tbaa !46
  %183 = getelementptr inbounds i8, ptr %180, i64 8
  %184 = load i32, ptr %183, align 8, !tbaa !47
  %185 = trunc nuw nsw i64 %indvars.iv to i32
  %186 = lshr i32 %185, %184
  %187 = zext nneg i32 %186 to i64
  %188 = getelementptr inbounds ptr, ptr %182, i64 %187
  %189 = load ptr, ptr %188, align 8, !tbaa !5
  %190 = getelementptr inbounds i8, ptr %180, i64 12
  %191 = load i32, ptr %190, align 4, !tbaa !48
  %192 = and i32 %191, %185
  %193 = load i32, ptr %180, align 8, !tbaa !49
  %194 = mul nsw i32 %192, %193
  %195 = sext i32 %194 to i64
  %196 = getelementptr inbounds i8, ptr %189, i64 %195
  %197 = getelementptr inbounds i8, ptr %196, i64 16
  %198 = call noundef ptr @_ZN10tetgenmesh3orgERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %1)
  %199 = getelementptr inbounds i8, ptr %196, i64 40
  %200 = call noundef i32 @_ZN10tetgenmesh12splitsubfaceEPNS_4faceEPdS2_iS2_i(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull %197, ptr noundef null, ptr noundef %198, i32 noundef %2, ptr noundef nonnull %199, i32 noundef %173)
  %.not84 = icmp eq i32 %200, 0
  br i1 %.not84, label %174, label %201

201:                                              ; preds = %179
  %202 = load ptr, ptr %.phi.trans.insert, align 8, !tbaa !54
  call void @_ZN10tetgenmesh9arraypool7restartEv(ptr noundef nonnull align 8 dereferenceable(48) %202)
  %203 = getelementptr inbounds i8, ptr %0, i64 88
  %204 = load ptr, ptr %203, align 8, !tbaa !53
  %205 = getelementptr inbounds i8, ptr %204, i64 64
  %206 = load i64, ptr %205, align 8, !tbaa !51
  %207 = icmp sgt i64 %206, 0
  br i1 %207, label %.sink.split, label %211

208:                                              ; preds = %110
  call void @_Z15terminatetetgenP10tetgenmeshi(ptr noundef nonnull %0, i32 noundef 2)
  br label %.thread112

.critedge:                                        ; preds = %123, %113, %.preheader
  %209 = phi ptr [ %.pre130, %.preheader ], [ %.pre130, %113 ], [ %124, %123 ]
  call void @_ZN10tetgenmesh9arraypool7restartEv(ptr noundef nonnull align 8 dereferenceable(48) %209)
  br label %.thread112

.critedge104:                                     ; preds = %174, %164, %.preheader115
  %210 = phi ptr [ %.pre, %.preheader115 ], [ %.pre, %164 ], [ %175, %174 ]
  call void @_ZN10tetgenmesh9arraypool7restartEv(ptr noundef nonnull align 8 dereferenceable(48) %210)
  br label %.thread112

.sink.split:                                      ; preds = %201, %162
  %.sink = phi i32 [ %163, %162 ], [ %173, %201 ]
  call void @_ZN10tetgenmesh13repairencfacsEi(ptr noundef nonnull align 8 dereferenceable(1536) %0, i32 noundef %.sink)
  br label %211

211:                                              ; preds = %.sink.split, %156, %201
  %212 = load ptr, ptr %1, align 8, !tbaa !25
  %.not91 = icmp eq ptr %212, null
  br i1 %.not91, label %.thread112, label %213

213:                                              ; preds = %211
  %214 = getelementptr inbounds i8, ptr %212, i64 32
  %215 = load ptr, ptr %214, align 8, !tbaa !5
  %.not92 = icmp eq ptr %215, null
  br i1 %.not92, label %.thread112, label %216

216:                                              ; preds = %213
  call void @_ZN10tetgenmesh18enqueuetetrahedronEPNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull %1)
  br label %.thread112

.thread112:                                       ; preds = %110, %.critedge104, %.critedge, %208, %216, %213, %211, %102, %105, %42, %.thread
  %.072 = phi i32 [ %.170107, %.thread ], [ 0, %42 ], [ 1, %105 ], [ 1, %102 ], [ 1, %211 ], [ 1, %213 ], [ 1, %216 ], [ 0, %208 ], [ 0, %.critedge ], [ 0, %.critedge104 ], [ 0, %110 ]
  call void @llvm.lifetime.end.p0(i64 112, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #6
  ret i32 %.072
}

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 = { nofree 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 = { 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 = { 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 #5 = { 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 #6 = { 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 = !{!"double", !7, i64 0}
!11 = !{!12, !14, i64 400}
!12 = !{!"_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, !13, i64 288, !15, i64 304, !6, i64 320, !14, i64 328, !14, i64 332, !14, i64 336, !14, i64 340, !14, i64 344, !14, i64 348, !14, i64 352, !14, i64 356, !14, i64 360, !14, i64 364, !14, i64 368, !14, i64 372, !14, i64 376, !14, i64 380, !14, i64 384, !14, i64 388, !14, i64 392, !14, i64 396, !14, i64 400, !16, i64 408, !16, i64 416, !10, i64 424, !10, i64 432, !10, i64 440, !10, i64 448, !10, i64 456, !10, i64 464, !10, i64 472, !10, i64 480, !10, i64 488, !10, i64 496, !10, i64 504, !10, i64 512, !10, i64 520, !10, i64 528, !10, i64 536, !16, i64 544, !16, i64 552, !16, i64 560, !16, i64 568, !16, i64 576, !16, i64 584, !16, i64 592, !16, i64 600, !16, i64 608, !16, i64 616, !16, i64 624, !16, i64 632, !16, i64 640, !16, i64 648, !16, i64 656, !16, i64 664, !16, i64 672, !16, i64 680, !16, i64 688, !16, i64 696, !16, i64 704, !16, i64 712, !16, i64 720, !16, i64 728, !7, i64 736, !7, i64 1504}
!13 = !{!"_ZTSN10tetgenmesh7trifaceE", !6, i64 0, !14, i64 8}
!14 = !{!"int", !7, i64 0}
!15 = !{!"_ZTSN10tetgenmesh4faceE", !6, i64 0, !14, i64 8}
!16 = !{!"long", !7, i64 0}
!17 = !{!18, !14, i64 0}
!18 = !{!"_ZTSN10tetgenmesh17insertvertexflagsE", !14, i64 0, !14, i64 4, !14, i64 8, !14, i64 12, !14, i64 16, !14, i64 20, !14, i64 24, !14, i64 28, !14, i64 32, !14, i64 36, !14, i64 40, !14, i64 44, !14, i64 48, !13, i64 56, !15, i64 72, !14, i64 88, !10, i64 96, !6, i64 104}
!19 = !{!12, !6, i64 16}
!20 = !{!21, !14, i64 148}
!21 = !{!"_ZTS14tetgenbehavior", !14, i64 0, !14, i64 4, !14, i64 8, !14, i64 12, !14, i64 16, !14, i64 20, !14, i64 24, !14, i64 28, !14, i64 32, !14, i64 36, !14, i64 40, !14, i64 44, !14, i64 48, !14, i64 52, !14, i64 56, !14, i64 60, !14, i64 64, !14, i64 68, !14, i64 72, !14, i64 76, !14, i64 80, !14, i64 84, !14, i64 88, !14, i64 92, !14, i64 96, !14, i64 100, !14, i64 104, !14, i64 108, !14, i64 112, !14, i64 116, !14, i64 120, !14, i64 124, !14, i64 128, !14, i64 132, !14, i64 136, !14, i64 140, !14, i64 144, !14, i64 148, !14, i64 152, !14, i64 156, !14, i64 160, !14, i64 164, !14, i64 168, !14, i64 172, !14, i64 176, !14, i64 180, !14, i64 184, !14, i64 188, !14, i64 192, !14, i64 196, !14, i64 200, !14, i64 204, !14, i64 208, !14, i64 212, !14, i64 216, !14, i64 220, !14, i64 224, !14, i64 228, !14, i64 232, !14, i64 236, !10, i64 240, !10, i64 248, !10, i64 256, !10, i64 264, !10, i64 272, !10, i64 280, !10, i64 288, !10, i64 296, !10, i64 304, !10, i64 312, !10, i64 320, !10, i64 328, !7, i64 336, !7, i64 1360, !7, i64 2384, !7, i64 3408, !7, i64 4432, !22, i64 5456}
!22 = !{!"_ZTSN14tetgenbehavior10objecttypeE", !7, i64 0}
!23 = !{!21, !14, i64 16}
!24 = !{!15, !6, i64 0}
!25 = !{!13, !6, i64 0}
!26 = !{!21, !14, i64 40}
!27 = !{!18, !14, i64 28}
!28 = !{!18, !14, i64 44}
!29 = !{!18, !14, i64 40}
!30 = !{!14, !14, i64 0}
!31 = !{!18, !14, i64 20}
!32 = !{!18, !14, i64 36}
!33 = !{!18, !14, i64 48}
!34 = !{!12, !16, i64 624}
!35 = !{!12, !16, i64 576}
!36 = !{!12, !6, i64 120}
!37 = !{!38, !14, i64 4}
!38 = !{!"_ZTSN10tetgenmesh15flipconstraintsE", !14, i64 0, !14, i64 4, !14, i64 8, !14, i64 12, !14, i64 16, !14, i64 20, !10, i64 24, !10, i64 32, !14, i64 40, !10, i64 48, !10, i64 56, !14, i64 64, !7, i64 72, !7, i64 88, !6, i64 112}
!39 = !{!38, !14, i64 0}
!40 = !{!12, !6, i64 112}
!41 = !{!12, !6, i64 240}
!42 = !{!43, !16, i64 32}
!43 = !{!"_ZTSN10tetgenmesh9arraypoolE", !14, i64 0, !14, i64 4, !14, i64 8, !14, i64 12, !14, i64 16, !6, i64 24, !16, i64 32, !16, i64 40}
!44 = distinct !{!44, !45}
!45 = !{!"llvm.loop.mustprogress"}
!46 = !{!43, !6, i64 24}
!47 = !{!43, !14, i64 8}
!48 = !{!43, !14, i64 12}
!49 = !{!43, !14, i64 0}
!50 = !{!12, !6, i64 96}
!51 = !{!52, !16, i64 64}
!52 = !{!"_ZTSN10tetgenmesh10memorypoolE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !14, i64 48, !14, i64 52, !14, i64 56, !14, i64 60, !16, i64 64, !16, i64 72, !14, i64 80, !14, i64 84}
!53 = !{!12, !6, i64 88}
!54 = !{!12, !6, i64 248}
!55 = distinct !{!55, !45}


; Effective O3 passes: BDCEPass,CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass