; 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::face" = 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.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] }>

@_ZN10tetgenmesh10facepivot1E = external dso_local global [12 x i32], align 16
@_ZN10tetgenmesh10facepivot2E = external dso_local global [12 x [12 x i32]], align 16
@_ZN10tetgenmesh8edge2verE = external dso_local global [6 x i32], align 16
@.str.572 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.573 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.574 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.575 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.576 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.577 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.578 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.579 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.580 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.581 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.582 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.583 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.584 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.585 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.586 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.587 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.588 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.589 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.590 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.591 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.592 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.593 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.594 = external hidden unnamed_addr constant [36 x i8], align 1

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

declare i32 @printf(ptr 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: mustprogress nounwind uwtable
declare dso_local void @_ZN10tetgenmesh10memorypool13traversalinitEv(ptr noundef nonnull align 8 dereferenceable(88)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN10tetgenmesh13pointtraverseEv(ptr noundef nonnull align 8 dereferenceable(1536)) #3 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN10tetgenmesh17shellfacetraverseEPNS_10memorypoolE(ptr noundef nonnull align 8 dereferenceable(1536), ptr noundef) #2 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 nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(12) ptr @_ZN10tetgenmesh4faceaSERKS0_(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 8 dereferenceable(12)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN10tetgenmesh19tetrahedrontraverseEv(ptr noundef nonnull align 8 dereferenceable(1536)) #2 align 2

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN10tetgenmesh4apexERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536), ptr noundef nonnull align 8 dereferenceable(12)) #4 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)) #4 align 2

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN10tetgenmesh13checksegmentsEv(ptr noundef nonnull align 8 dereferenceable(1536) %0) #3 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca %"class.tetgenmesh::triface", align 8
  %4 = alloca %"class.tetgenmesh::triface", align 8
  %5 = alloca %"class.tetgenmesh::triface", align 8
  %6 = alloca ptr, align 8
  %7 = alloca %"class.tetgenmesh::face", align 8
  %8 = alloca %"class.tetgenmesh::face", align 8
  %9 = alloca %"class.tetgenmesh::face", align 8
  %10 = alloca %"class.tetgenmesh::face", align 8
  %11 = alloca %"class.tetgenmesh::face", align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %18 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %3) #6
  call void @_ZN10tetgenmesh7trifaceC2Ev(ptr noundef nonnull align 8 dereferenceable(12) %3)
  call void @llvm.lifetime.start.p0(i64 16, ptr %4) #6
  call void @_ZN10tetgenmesh7trifaceC2Ev(ptr noundef nonnull align 8 dereferenceable(12) %4)
  call void @llvm.lifetime.start.p0(i64 16, ptr %5) #6
  call void @_ZN10tetgenmesh7trifaceC2Ev(ptr noundef nonnull align 8 dereferenceable(12) %5)
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #6
  call void @_ZN10tetgenmesh4faceC2Ev(ptr noundef nonnull align 8 dereferenceable(12) %7)
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #6
  call void @_ZN10tetgenmesh4faceC2Ev(ptr noundef nonnull align 8 dereferenceable(12) %8)
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #6
  call void @_ZN10tetgenmesh4faceC2Ev(ptr noundef nonnull align 8 dereferenceable(12) %9)
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #6
  call void @_ZN10tetgenmesh4faceC2Ev(ptr noundef nonnull align 8 dereferenceable(12) %10)
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #6
  call void @_ZN10tetgenmesh4faceC2Ev(ptr noundef nonnull align 8 dereferenceable(12) %11)
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  %19 = getelementptr inbounds %class.tetgenmesh, ptr %18, i32 0, i32 2
  %20 = load ptr, ptr %19, align 8, !tbaa !9
  %21 = getelementptr inbounds %class.tetgenbehavior, ptr %20, i32 0, i32 36
  %22 = load i32, ptr %21, align 8, !tbaa !16
  %23 = icmp ne i32 %22, 0
  br i1 %23, label %26, label %24

24:                                               ; preds = %1
  %25 = call i32 (ptr, ...) @printf(ptr noundef @.str.572)
  br label %26

26:                                               ; preds = %24, %1
  store i32 0, ptr %16, align 4, !tbaa !19
  %27 = getelementptr inbounds %class.tetgenmesh, ptr %18, i32 0, i32 4
  %28 = load ptr, ptr %27, align 8, !tbaa !20
  call void @_ZN10tetgenmesh10memorypool13traversalinitEv(ptr noundef nonnull align 8 dereferenceable(88) %28)
  %29 = call noundef ptr @_ZN10tetgenmesh19tetrahedrontraverseEv(ptr noundef nonnull align 8 dereferenceable(1536) %18)
  %30 = getelementptr inbounds %"class.tetgenmesh::triface", ptr %3, i32 0, i32 0
  store ptr %29, ptr %30, align 8, !tbaa !21
  br label %31

31:                                               ; preds = %316, %26
  %32 = getelementptr inbounds %"class.tetgenmesh::triface", ptr %3, i32 0, i32 0
  %33 = load ptr, ptr %32, align 8, !tbaa !21
  %34 = icmp ne ptr %33, null
  br i1 %34, label %35, label %319

35:                                               ; preds = %31
  %36 = getelementptr inbounds %"class.tetgenmesh::triface", ptr %3, i32 0, i32 0
  %37 = load ptr, ptr %36, align 8, !tbaa !21
  %38 = getelementptr inbounds ptr, ptr %37, i64 8
  %39 = load ptr, ptr %38, align 8, !tbaa !5
  %40 = icmp ne ptr %39, null
  br i1 %40, label %41, label %232

41:                                               ; preds = %35
  %42 = getelementptr inbounds %"class.tetgenmesh::triface", ptr %3, i32 0, i32 0
  %43 = load ptr, ptr %42, align 8, !tbaa !21
  %44 = getelementptr inbounds ptr, ptr %43, i64 8
  %45 = load ptr, ptr %44, align 8, !tbaa !5
  store ptr %45, ptr %6, align 8, !tbaa !5
  store i32 0, ptr %17, align 4, !tbaa !19
  br label %46

46:                                               ; preds = %228, %41
  %47 = load i32, ptr %17, align 4, !tbaa !19
  %48 = icmp slt i32 %47, 6
  br i1 %48, label %49, label %231

49:                                               ; preds = %46
  %50 = load ptr, ptr %6, align 8, !tbaa !5
  %51 = load i32, ptr %17, align 4, !tbaa !19
  %52 = sext i32 %51 to i64
  %53 = getelementptr inbounds ptr, ptr %50, i64 %52
  %54 = load ptr, ptr %53, align 8, !tbaa !5
  call void @_ZN10tetgenmesh7sdecodeEPPdRNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef %54, ptr noundef nonnull align 8 dereferenceable(12) %10)
  %55 = getelementptr inbounds %"class.tetgenmesh::face", ptr %10, i32 0, i32 0
  %56 = load ptr, ptr %55, align 8, !tbaa !22
  %57 = icmp ne ptr %56, null
  br i1 %57, label %58, label %227

58:                                               ; preds = %49
  %59 = load i32, ptr %17, align 4, !tbaa !19
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds [6 x i32], ptr @_ZN10tetgenmesh8edge2verE, i64 0, i64 %60
  %62 = load i32, ptr %61, align 4, !tbaa !19
  %63 = getelementptr inbounds %"class.tetgenmesh::triface", ptr %3, i32 0, i32 1
  store i32 %62, ptr %63, align 8, !tbaa !23
  %64 = getelementptr inbounds %"class.tetgenmesh::face", ptr %10, i32 0, i32 0
  %65 = load ptr, ptr %64, align 8, !tbaa !22
  %66 = getelementptr inbounds ptr, ptr %65, i64 3
  %67 = load ptr, ptr %66, align 8, !tbaa !5
  store ptr %67, ptr %12, align 8, !tbaa !5
  %68 = getelementptr inbounds %"class.tetgenmesh::face", ptr %10, i32 0, i32 0
  %69 = load ptr, ptr %68, align 8, !tbaa !22
  %70 = getelementptr inbounds ptr, ptr %69, i64 4
  %71 = load ptr, ptr %70, align 8, !tbaa !5
  store ptr %71, ptr %13, align 8, !tbaa !5
  %72 = call noundef ptr @_ZN10tetgenmesh3orgERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef nonnull align 8 dereferenceable(12) %3)
  %73 = load ptr, ptr %12, align 8, !tbaa !5
  %74 = icmp eq ptr %72, %73
  br i1 %74, label %75, label %79

75:                                               ; preds = %58
  %76 = call noundef ptr @_ZN10tetgenmesh4destERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef nonnull align 8 dereferenceable(12) %3)
  %77 = load ptr, ptr %13, align 8, !tbaa !5
  %78 = icmp eq ptr %76, %77
  br i1 %78, label %110, label %79

79:                                               ; preds = %75, %58
  %80 = call noundef ptr @_ZN10tetgenmesh3orgERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef nonnull align 8 dereferenceable(12) %3)
  %81 = load ptr, ptr %13, align 8, !tbaa !5
  %82 = icmp eq ptr %80, %81
  br i1 %82, label %83, label %87

83:                                               ; preds = %79
  %84 = call noundef ptr @_ZN10tetgenmesh4destERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef nonnull align 8 dereferenceable(12) %3)
  %85 = load ptr, ptr %12, align 8, !tbaa !5
  %86 = icmp eq ptr %84, %85
  br i1 %86, label %110, label %87

87:                                               ; preds = %83, %79
  %88 = call i32 (ptr, ...) @printf(ptr noundef @.str.573)
  %89 = getelementptr inbounds %"class.tetgenmesh::triface", ptr %3, i32 0, i32 0
  %90 = load ptr, ptr %89, align 8, !tbaa !21
  %91 = ptrtoint ptr %90 to i64
  %92 = call noundef ptr @_ZN10tetgenmesh3orgERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef nonnull align 8 dereferenceable(12) %3)
  %93 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef %92)
  %94 = call noundef ptr @_ZN10tetgenmesh4destERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef nonnull align 8 dereferenceable(12) %3)
  %95 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef %94)
  %96 = call noundef ptr @_ZN10tetgenmesh4apexERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef nonnull align 8 dereferenceable(12) %3)
  %97 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef %96)
  %98 = call noundef ptr @_ZN10tetgenmesh4oppoERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef nonnull align 8 dereferenceable(12) %3)
  %99 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef %98)
  %100 = getelementptr inbounds %"class.tetgenmesh::face", ptr %10, i32 0, i32 0
  %101 = load ptr, ptr %100, align 8, !tbaa !22
  %102 = ptrtoint ptr %101 to i64
  %103 = load ptr, ptr %12, align 8, !tbaa !5
  %104 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef %103)
  %105 = load ptr, ptr %13, align 8, !tbaa !5
  %106 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef %105)
  %107 = call i32 (ptr, ...) @printf(ptr noundef @.str.574, i64 noundef %91, i32 noundef %93, i32 noundef %95, i32 noundef %97, i32 noundef %99, i64 noundef %102, i32 noundef %104, i32 noundef %106)
  %108 = load i32, ptr %16, align 4, !tbaa !19
  %109 = add nsw i32 %108, 1
  store i32 %109, ptr %16, align 4, !tbaa !19
  br label %178

110:                                              ; preds = %83, %75
  %111 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZN10tetgenmesh7trifaceaSERKS0_(ptr noundef nonnull align 8 dereferenceable(12) %4, ptr noundef nonnull align 8 dereferenceable(12) %3)
  br label %112

112:                                              ; preds = %171, %110
  call void @_ZN10tetgenmesh9tsspivot1ERNS_7trifaceERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef nonnull align 8 dereferenceable(12) %4, ptr noundef nonnull align 8 dereferenceable(12) %11)
  %113 = getelementptr inbounds %"class.tetgenmesh::face", ptr %11, i32 0, i32 0
  %114 = load ptr, ptr %113, align 8, !tbaa !22
  %115 = getelementptr inbounds %"class.tetgenmesh::face", ptr %10, i32 0, i32 0
  %116 = load ptr, ptr %115, align 8, !tbaa !22
  %117 = icmp ne ptr %114, %116
  br i1 %117, label %118, label %149

118:                                              ; preds = %112
  %119 = call i32 (ptr, ...) @printf(ptr noundef @.str.575)
  %120 = getelementptr inbounds %"class.tetgenmesh::triface", ptr %4, i32 0, i32 0
  %121 = load ptr, ptr %120, align 8, !tbaa !21
  %122 = ptrtoint ptr %121 to i64
  %123 = call noundef ptr @_ZN10tetgenmesh3orgERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef nonnull align 8 dereferenceable(12) %4)
  %124 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef %123)
  %125 = call noundef ptr @_ZN10tetgenmesh4destERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef nonnull align 8 dereferenceable(12) %4)
  %126 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef %125)
  %127 = call noundef ptr @_ZN10tetgenmesh4apexERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef nonnull align 8 dereferenceable(12) %4)
  %128 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef %127)
  %129 = call noundef ptr @_ZN10tetgenmesh4oppoERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef nonnull align 8 dereferenceable(12) %4)
  %130 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef %129)
  %131 = call i32 (ptr, ...) @printf(ptr noundef @.str.576, i64 noundef %122, i32 noundef %124, i32 noundef %126, i32 noundef %128, i32 noundef %130)
  %132 = getelementptr inbounds %"class.tetgenmesh::face", ptr %11, i32 0, i32 0
  %133 = load ptr, ptr %132, align 8, !tbaa !22
  %134 = icmp ne ptr %133, null
  br i1 %134, label %135, label %144

135:                                              ; preds = %118
  %136 = getelementptr inbounds %"class.tetgenmesh::face", ptr %11, i32 0, i32 0
  %137 = load ptr, ptr %136, align 8, !tbaa !22
  %138 = ptrtoint ptr %137 to i64
  %139 = call noundef ptr @_ZN10tetgenmesh4sorgERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef nonnull align 8 dereferenceable(12) %11)
  %140 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef %139)
  %141 = call noundef ptr @_ZN10tetgenmesh5sdestERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef nonnull align 8 dereferenceable(12) %11)
  %142 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef %141)
  %143 = call i32 (ptr, ...) @printf(ptr noundef @.str.577, i64 noundef %138, i32 noundef %140, i32 noundef %142)
  br label %146

144:                                              ; preds = %118
  %145 = call i32 (ptr, ...) @printf(ptr noundef @.str.578)
  br label %146

146:                                              ; preds = %144, %135
  %147 = load i32, ptr %16, align 4, !tbaa !19
  %148 = add nsw i32 %147, 1
  store i32 %148, ptr %16, align 4, !tbaa !19
  br label %149

149:                                              ; preds = %146, %112
  %150 = getelementptr inbounds %"class.tetgenmesh::triface", ptr %4, i32 0, i32 1
  %151 = load i32, ptr %150, align 8, !tbaa !23
  store i32 %151, ptr %15, align 4, !tbaa !19
  %152 = getelementptr inbounds %"class.tetgenmesh::triface", ptr %4, i32 0, i32 0
  %153 = load ptr, ptr %152, align 8, !tbaa !21
  %154 = getelementptr inbounds %"class.tetgenmesh::triface", ptr %4, i32 0, i32 1
  %155 = load i32, ptr %154, align 8, !tbaa !23
  %156 = sext i32 %155 to i64
  %157 = getelementptr inbounds [12 x i32], ptr @_ZN10tetgenmesh10facepivot1E, i64 0, i64 %156
  %158 = load i32, ptr %157, align 4, !tbaa !19
  %159 = sext i32 %158 to i64
  %160 = getelementptr inbounds ptr, ptr %153, i64 %159
  %161 = load ptr, ptr %160, align 8, !tbaa !5
  call void @_ZN10tetgenmesh6decodeEPPdRNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef %161, ptr noundef nonnull align 8 dereferenceable(12) %4)
  %162 = load i32, ptr %15, align 4, !tbaa !19
  %163 = sext i32 %162 to i64
  %164 = getelementptr inbounds [12 x [12 x i32]], ptr @_ZN10tetgenmesh10facepivot2E, i64 0, i64 %163
  %165 = getelementptr inbounds %"class.tetgenmesh::triface", ptr %4, i32 0, i32 1
  %166 = load i32, ptr %165, align 8, !tbaa !23
  %167 = sext i32 %166 to i64
  %168 = getelementptr inbounds [12 x i32], ptr %164, i64 0, i64 %167
  %169 = load i32, ptr %168, align 4, !tbaa !19
  %170 = getelementptr inbounds %"class.tetgenmesh::triface", ptr %4, i32 0, i32 1
  store i32 %169, ptr %170, align 8, !tbaa !23
  br label %171

171:                                              ; preds = %149
  %172 = getelementptr inbounds %"class.tetgenmesh::triface", ptr %4, i32 0, i32 0
  %173 = load ptr, ptr %172, align 8, !tbaa !21
  %174 = getelementptr inbounds %"class.tetgenmesh::triface", ptr %3, i32 0, i32 0
  %175 = load ptr, ptr %174, align 8, !tbaa !21
  %176 = icmp ne ptr %173, %175
  br i1 %176, label %112, label %177, !llvm.loop !24

177:                                              ; preds = %171
  br label %178

178:                                              ; preds = %177, %87
  call void @_ZN10tetgenmesh9sstpivot1ERNS_4faceERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef nonnull align 8 dereferenceable(12) %10, ptr noundef nonnull align 8 dereferenceable(12) %4)
  %179 = getelementptr inbounds %"class.tetgenmesh::triface", ptr %4, i32 0, i32 0
  %180 = load ptr, ptr %179, align 8, !tbaa !21
  %181 = icmp eq ptr %180, null
  br i1 %181, label %182, label %186

182:                                              ; preds = %178
  %183 = call i32 (ptr, ...) @printf(ptr noundef @.str.579)
  %184 = load i32, ptr %16, align 4, !tbaa !19
  %185 = add nsw i32 %184, 1
  store i32 %185, ptr %16, align 4, !tbaa !19
  br label %226

186:                                              ; preds = %178
  %187 = call noundef ptr @_ZN10tetgenmesh3orgERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef nonnull align 8 dereferenceable(12) %4)
  %188 = load ptr, ptr %12, align 8, !tbaa !5
  %189 = icmp eq ptr %187, %188
  br i1 %189, label %190, label %194

190:                                              ; preds = %186
  %191 = call noundef ptr @_ZN10tetgenmesh4destERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef nonnull align 8 dereferenceable(12) %4)
  %192 = load ptr, ptr %13, align 8, !tbaa !5
  %193 = icmp eq ptr %191, %192
  br i1 %193, label %225, label %194

194:                                              ; preds = %190, %186
  %195 = call noundef ptr @_ZN10tetgenmesh3orgERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef nonnull align 8 dereferenceable(12) %4)
  %196 = load ptr, ptr %13, align 8, !tbaa !5
  %197 = icmp eq ptr %195, %196
  br i1 %197, label %198, label %202

198:                                              ; preds = %194
  %199 = call noundef ptr @_ZN10tetgenmesh4destERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef nonnull align 8 dereferenceable(12) %4)
  %200 = load ptr, ptr %12, align 8, !tbaa !5
  %201 = icmp eq ptr %199, %200
  br i1 %201, label %225, label %202

202:                                              ; preds = %198, %194
  %203 = call i32 (ptr, ...) @printf(ptr noundef @.str.580)
  %204 = getelementptr inbounds %"class.tetgenmesh::triface", ptr %4, i32 0, i32 0
  %205 = load ptr, ptr %204, align 8, !tbaa !21
  %206 = ptrtoint ptr %205 to i64
  %207 = call noundef ptr @_ZN10tetgenmesh3orgERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef nonnull align 8 dereferenceable(12) %4)
  %208 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef %207)
  %209 = call noundef ptr @_ZN10tetgenmesh4destERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef nonnull align 8 dereferenceable(12) %4)
  %210 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef %209)
  %211 = call noundef ptr @_ZN10tetgenmesh4apexERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef nonnull align 8 dereferenceable(12) %4)
  %212 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef %211)
  %213 = call noundef ptr @_ZN10tetgenmesh4oppoERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef nonnull align 8 dereferenceable(12) %4)
  %214 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef %213)
  %215 = getelementptr inbounds %"class.tetgenmesh::face", ptr %10, i32 0, i32 0
  %216 = load ptr, ptr %215, align 8, !tbaa !22
  %217 = ptrtoint ptr %216 to i64
  %218 = load ptr, ptr %12, align 8, !tbaa !5
  %219 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef %218)
  %220 = load ptr, ptr %13, align 8, !tbaa !5
  %221 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef %220)
  %222 = call i32 (ptr, ...) @printf(ptr noundef @.str.574, i64 noundef %206, i32 noundef %208, i32 noundef %210, i32 noundef %212, i32 noundef %214, i64 noundef %217, i32 noundef %219, i32 noundef %221)
  %223 = load i32, ptr %16, align 4, !tbaa !19
  %224 = add nsw i32 %223, 1
  store i32 %224, ptr %16, align 4, !tbaa !19
  br label %225

225:                                              ; preds = %202, %198, %190
  br label %226

226:                                              ; preds = %225, %182
  br label %227

227:                                              ; preds = %226, %49
  br label %228

228:                                              ; preds = %227
  %229 = load i32, ptr %17, align 4, !tbaa !19
  %230 = add nsw i32 %229, 1
  store i32 %230, ptr %17, align 4, !tbaa !19
  br label %46, !llvm.loop !26

231:                                              ; preds = %46
  br label %232

232:                                              ; preds = %231, %35
  %233 = getelementptr inbounds %"class.tetgenmesh::triface", ptr %3, i32 0, i32 0
  %234 = load ptr, ptr %233, align 8, !tbaa !21
  %235 = getelementptr inbounds %"class.tetgenmesh::triface", ptr %4, i32 0, i32 0
  store ptr %234, ptr %235, align 8, !tbaa !21
  store i32 0, ptr %17, align 4, !tbaa !19
  br label %236

236:                                              ; preds = %313, %232
  %237 = load i32, ptr %17, align 4, !tbaa !19
  %238 = icmp slt i32 %237, 6
  br i1 %238, label %239, label %316

239:                                              ; preds = %236
  %240 = load i32, ptr %17, align 4, !tbaa !19
  %241 = sext i32 %240 to i64
  %242 = getelementptr inbounds [6 x i32], ptr @_ZN10tetgenmesh8edge2verE, i64 0, i64 %241
  %243 = load i32, ptr %242, align 4, !tbaa !19
  %244 = getelementptr inbounds %"class.tetgenmesh::triface", ptr %4, i32 0, i32 1
  store i32 %243, ptr %244, align 8, !tbaa !23
  %245 = call noundef zeroext i1 @_ZN10tetgenmesh10edgemarkedERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef nonnull align 8 dereferenceable(12) %4)
  br i1 %245, label %246, label %312

246:                                              ; preds = %239
  %247 = call noundef ptr @_ZN10tetgenmesh3orgERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef nonnull align 8 dereferenceable(12) %4)
  %248 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef %247)
  %249 = call noundef ptr @_ZN10tetgenmesh4destERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef nonnull align 8 dereferenceable(12) %4)
  %250 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef %249)
  %251 = call noundef ptr @_ZN10tetgenmesh4apexERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef nonnull align 8 dereferenceable(12) %4)
  %252 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef %251)
  %253 = call noundef ptr @_ZN10tetgenmesh4oppoERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef nonnull align 8 dereferenceable(12) %4)
  %254 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef %253)
  %255 = getelementptr inbounds %"class.tetgenmesh::triface", ptr %4, i32 0, i32 0
  %256 = load ptr, ptr %255, align 8, !tbaa !21
  %257 = ptrtoint ptr %256 to i64
  %258 = getelementptr inbounds %"class.tetgenmesh::triface", ptr %4, i32 0, i32 1
  %259 = load i32, ptr %258, align 8, !tbaa !23
  %260 = call i32 (ptr, ...) @printf(ptr noundef @.str.581, i32 noundef %248, i32 noundef %250, i32 noundef %252, i32 noundef %254, i64 noundef %257, i32 noundef %259)
  %261 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZN10tetgenmesh7trifaceaSERKS0_(ptr noundef nonnull align 8 dereferenceable(12) %5, ptr noundef nonnull align 8 dereferenceable(12) %4)
  br label %262

262:                                              ; preds = %310, %246
  br label %263

263:                                              ; preds = %262
  %264 = getelementptr inbounds %"class.tetgenmesh::triface", ptr %5, i32 0, i32 1
  %265 = load i32, ptr %264, align 8, !tbaa !23
  store i32 %265, ptr %15, align 4, !tbaa !19
  %266 = getelementptr inbounds %"class.tetgenmesh::triface", ptr %5, i32 0, i32 0
  %267 = load ptr, ptr %266, align 8, !tbaa !21
  %268 = getelementptr inbounds %"class.tetgenmesh::triface", ptr %5, i32 0, i32 1
  %269 = load i32, ptr %268, align 8, !tbaa !23
  %270 = sext i32 %269 to i64
  %271 = getelementptr inbounds [12 x i32], ptr @_ZN10tetgenmesh10facepivot1E, i64 0, i64 %270
  %272 = load i32, ptr %271, align 4, !tbaa !19
  %273 = sext i32 %272 to i64
  %274 = getelementptr inbounds ptr, ptr %267, i64 %273
  %275 = load ptr, ptr %274, align 8, !tbaa !5
  call void @_ZN10tetgenmesh6decodeEPPdRNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef %275, ptr noundef nonnull align 8 dereferenceable(12) %5)
  %276 = load i32, ptr %15, align 4, !tbaa !19
  %277 = sext i32 %276 to i64
  %278 = getelementptr inbounds [12 x [12 x i32]], ptr @_ZN10tetgenmesh10facepivot2E, i64 0, i64 %277
  %279 = getelementptr inbounds %"class.tetgenmesh::triface", ptr %5, i32 0, i32 1
  %280 = load i32, ptr %279, align 8, !tbaa !23
  %281 = sext i32 %280 to i64
  %282 = getelementptr inbounds [12 x i32], ptr %278, i64 0, i64 %281
  %283 = load i32, ptr %282, align 4, !tbaa !19
  %284 = getelementptr inbounds %"class.tetgenmesh::triface", ptr %5, i32 0, i32 1
  store i32 %283, ptr %284, align 8, !tbaa !23
  %285 = call noundef zeroext i1 @_ZN10tetgenmesh10edgemarkedERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef nonnull align 8 dereferenceable(12) %5)
  br i1 %285, label %303, label %286

286:                                              ; preds = %263
  %287 = call noundef ptr @_ZN10tetgenmesh3orgERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef nonnull align 8 dereferenceable(12) %5)
  %288 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef %287)
  %289 = call noundef ptr @_ZN10tetgenmesh4destERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef nonnull align 8 dereferenceable(12) %5)
  %290 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef %289)
  %291 = call noundef ptr @_ZN10tetgenmesh4apexERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef nonnull align 8 dereferenceable(12) %5)
  %292 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef %291)
  %293 = call noundef ptr @_ZN10tetgenmesh4oppoERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef nonnull align 8 dereferenceable(12) %5)
  %294 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef %293)
  %295 = getelementptr inbounds %"class.tetgenmesh::triface", ptr %5, i32 0, i32 0
  %296 = load ptr, ptr %295, align 8, !tbaa !21
  %297 = ptrtoint ptr %296 to i64
  %298 = getelementptr inbounds %"class.tetgenmesh::triface", ptr %5, i32 0, i32 1
  %299 = load i32, ptr %298, align 8, !tbaa !23
  %300 = call i32 (ptr, ...) @printf(ptr noundef @.str.582, i32 noundef %288, i32 noundef %290, i32 noundef %292, i32 noundef %294, i64 noundef %297, i32 noundef %299)
  %301 = load i32, ptr %16, align 4, !tbaa !19
  %302 = add nsw i32 %301, 1
  store i32 %302, ptr %16, align 4, !tbaa !19
  br label %303

303:                                              ; preds = %286, %263
  %304 = getelementptr inbounds %"class.tetgenmesh::triface", ptr %5, i32 0, i32 0
  %305 = load ptr, ptr %304, align 8, !tbaa !21
  %306 = getelementptr inbounds %"class.tetgenmesh::triface", ptr %4, i32 0, i32 0
  %307 = load ptr, ptr %306, align 8, !tbaa !21
  %308 = icmp eq ptr %305, %307
  br i1 %308, label %309, label %310

309:                                              ; preds = %303
  br label %311

310:                                              ; preds = %303
  br label %262, !llvm.loop !27

311:                                              ; preds = %309
  br label %312

312:                                              ; preds = %311, %239
  br label %313

313:                                              ; preds = %312
  %314 = load i32, ptr %17, align 4, !tbaa !19
  %315 = add nsw i32 %314, 1
  store i32 %315, ptr %17, align 4, !tbaa !19
  br label %236, !llvm.loop !28

316:                                              ; preds = %236
  %317 = call noundef ptr @_ZN10tetgenmesh19tetrahedrontraverseEv(ptr noundef nonnull align 8 dereferenceable(1536) %18)
  %318 = getelementptr inbounds %"class.tetgenmesh::triface", ptr %3, i32 0, i32 0
  store ptr %317, ptr %318, align 8, !tbaa !21
  br label %31, !llvm.loop !29

319:                                              ; preds = %31
  %320 = getelementptr inbounds %class.tetgenmesh, ptr %18, i32 0, i32 2
  %321 = load ptr, ptr %320, align 8, !tbaa !9
  %322 = getelementptr inbounds %class.tetgenbehavior, ptr %321, i32 0, i32 36
  %323 = load i32, ptr %322, align 8, !tbaa !16
  %324 = icmp ne i32 %323, 0
  br i1 %324, label %327, label %325

325:                                              ; preds = %319
  %326 = call i32 (ptr, ...) @printf(ptr noundef @.str.583)
  br label %327

327:                                              ; preds = %325, %319
  store i32 0, ptr %14, align 4, !tbaa !19
  %328 = getelementptr inbounds %class.tetgenmesh, ptr %18, i32 0, i32 6
  %329 = load ptr, ptr %328, align 8, !tbaa !30
  call void @_ZN10tetgenmesh10memorypool13traversalinitEv(ptr noundef nonnull align 8 dereferenceable(88) %329)
  %330 = getelementptr inbounds %"class.tetgenmesh::face", ptr %10, i32 0, i32 1
  store i32 0, ptr %330, align 8, !tbaa !31
  %331 = getelementptr inbounds %class.tetgenmesh, ptr %18, i32 0, i32 6
  %332 = load ptr, ptr %331, align 8, !tbaa !30
  %333 = call noundef ptr @_ZN10tetgenmesh17shellfacetraverseEPNS_10memorypoolE(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef %332)
  %334 = getelementptr inbounds %"class.tetgenmesh::face", ptr %10, i32 0, i32 0
  store ptr %333, ptr %334, align 8, !tbaa !22
  br label %335

335:                                              ; preds = %478, %327
  %336 = getelementptr inbounds %"class.tetgenmesh::face", ptr %10, i32 0, i32 0
  %337 = load ptr, ptr %336, align 8, !tbaa !22
  %338 = icmp ne ptr %337, null
  br i1 %338, label %339, label %483

339:                                              ; preds = %335
  %340 = call noundef ptr @_ZN10tetgenmesh4sorgERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef nonnull align 8 dereferenceable(12) %10)
  store ptr %340, ptr %12, align 8, !tbaa !5
  %341 = call noundef ptr @_ZN10tetgenmesh5sdestERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef nonnull align 8 dereferenceable(12) %10)
  store ptr %341, ptr %13, align 8, !tbaa !5
  call void @_ZN10tetgenmesh6spivotERNS_4faceES1_(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef nonnull align 8 dereferenceable(12) %10, ptr noundef nonnull align 8 dereferenceable(12) %7)
  %342 = getelementptr inbounds %"class.tetgenmesh::face", ptr %7, i32 0, i32 0
  %343 = load ptr, ptr %342, align 8, !tbaa !22
  %344 = icmp ne ptr %343, null
  br i1 %344, label %345, label %471

345:                                              ; preds = %339
  %346 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZN10tetgenmesh4faceaSERKS0_(ptr noundef nonnull align 8 dereferenceable(12) %8, ptr noundef nonnull align 8 dereferenceable(12) %7)
  br label %347

347:                                              ; preds = %469, %345
  br label %348

348:                                              ; preds = %347
  %349 = call noundef ptr @_ZN10tetgenmesh4sorgERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef nonnull align 8 dereferenceable(12) %8)
  %350 = load ptr, ptr %12, align 8, !tbaa !5
  %351 = icmp eq ptr %349, %350
  br i1 %351, label %352, label %356

352:                                              ; preds = %348
  %353 = call noundef ptr @_ZN10tetgenmesh5sdestERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef nonnull align 8 dereferenceable(12) %8)
  %354 = load ptr, ptr %13, align 8, !tbaa !5
  %355 = icmp eq ptr %353, %354
  br i1 %355, label %364, label %356

356:                                              ; preds = %352, %348
  %357 = call noundef ptr @_ZN10tetgenmesh4sorgERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef nonnull align 8 dereferenceable(12) %8)
  %358 = load ptr, ptr %13, align 8, !tbaa !5
  %359 = icmp eq ptr %357, %358
  br i1 %359, label %360, label %442

360:                                              ; preds = %356
  %361 = call noundef ptr @_ZN10tetgenmesh5sdestERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef nonnull align 8 dereferenceable(12) %8)
  %362 = load ptr, ptr %12, align 8, !tbaa !5
  %363 = icmp eq ptr %361, %362
  br i1 %363, label %364, label %442

364:                                              ; preds = %360, %352
  call void @_ZN10tetgenmesh7stpivotERNS_4faceERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef nonnull align 8 dereferenceable(12) %8, ptr noundef nonnull align 8 dereferenceable(12) %5)
  %365 = getelementptr inbounds %"class.tetgenmesh::triface", ptr %5, i32 0, i32 0
  %366 = load ptr, ptr %365, align 8, !tbaa !21
  %367 = icmp ne ptr %366, null
  br i1 %367, label %368, label %441

368:                                              ; preds = %364
  br label %369

369:                                              ; preds = %439, %368
  br label %370

370:                                              ; preds = %369
  call void @_ZN10tetgenmesh9tsspivot1ERNS_7trifaceERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef nonnull align 8 dereferenceable(12) %5, ptr noundef nonnull align 8 dereferenceable(12) %11)
  %371 = getelementptr inbounds %"class.tetgenmesh::face", ptr %11, i32 0, i32 0
  %372 = load ptr, ptr %371, align 8, !tbaa !22
  %373 = icmp eq ptr %372, null
  br i1 %373, label %374, label %391

374:                                              ; preds = %370
  %375 = call noundef ptr @_ZN10tetgenmesh3orgERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef nonnull align 8 dereferenceable(12) %5)
  %376 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef %375)
  %377 = call noundef ptr @_ZN10tetgenmesh4destERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef nonnull align 8 dereferenceable(12) %5)
  %378 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef %377)
  %379 = call noundef ptr @_ZN10tetgenmesh4apexERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef nonnull align 8 dereferenceable(12) %5)
  %380 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef %379)
  %381 = call noundef ptr @_ZN10tetgenmesh4oppoERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef nonnull align 8 dereferenceable(12) %5)
  %382 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef %381)
  %383 = getelementptr inbounds %"class.tetgenmesh::triface", ptr %5, i32 0, i32 0
  %384 = load ptr, ptr %383, align 8, !tbaa !21
  %385 = ptrtoint ptr %384 to i64
  %386 = getelementptr inbounds %"class.tetgenmesh::triface", ptr %5, i32 0, i32 1
  %387 = load i32, ptr %386, align 8, !tbaa !23
  %388 = call i32 (ptr, ...) @printf(ptr noundef @.str.584, i32 noundef %376, i32 noundef %378, i32 noundef %380, i32 noundef %382, i64 noundef %385, i32 noundef %387)
  %389 = load i32, ptr %16, align 4, !tbaa !19
  %390 = add nsw i32 %389, 1
  store i32 %390, ptr %16, align 4, !tbaa !19
  br label %391

391:                                              ; preds = %374, %370
  %392 = getelementptr inbounds %"class.tetgenmesh::face", ptr %11, i32 0, i32 0
  %393 = load ptr, ptr %392, align 8, !tbaa !22
  %394 = getelementptr inbounds %"class.tetgenmesh::face", ptr %10, i32 0, i32 0
  %395 = load ptr, ptr %394, align 8, !tbaa !22
  %396 = icmp ne ptr %393, %395
  br i1 %396, label %397, label %413

397:                                              ; preds = %391
  %398 = call noundef ptr @_ZN10tetgenmesh4sorgERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef nonnull align 8 dereferenceable(12) %11)
  %399 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef %398)
  %400 = call noundef ptr @_ZN10tetgenmesh5sdestERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef nonnull align 8 dereferenceable(12) %11)
  %401 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef %400)
  %402 = call noundef ptr @_ZN10tetgenmesh3orgERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef nonnull align 8 dereferenceable(12) %5)
  %403 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef %402)
  %404 = call noundef ptr @_ZN10tetgenmesh4destERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef nonnull align 8 dereferenceable(12) %5)
  %405 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef %404)
  %406 = call noundef ptr @_ZN10tetgenmesh4apexERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef nonnull align 8 dereferenceable(12) %5)
  %407 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef %406)
  %408 = call noundef ptr @_ZN10tetgenmesh4oppoERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef nonnull align 8 dereferenceable(12) %5)
  %409 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef %408)
  %410 = call i32 (ptr, ...) @printf(ptr noundef @.str.585, i32 noundef %399, i32 noundef %401, i32 noundef %403, i32 noundef %405, i32 noundef %407, i32 noundef %409)
  %411 = load i32, ptr %16, align 4, !tbaa !19
  %412 = add nsw i32 %411, 1
  store i32 %412, ptr %16, align 4, !tbaa !19
  br label %413

413:                                              ; preds = %397, %391
  %414 = getelementptr inbounds %"class.tetgenmesh::triface", ptr %5, i32 0, i32 1
  %415 = load i32, ptr %414, align 8, !tbaa !23
  store i32 %415, ptr %15, align 4, !tbaa !19
  %416 = getelementptr inbounds %"class.tetgenmesh::triface", ptr %5, i32 0, i32 0
  %417 = load ptr, ptr %416, align 8, !tbaa !21
  %418 = getelementptr inbounds %"class.tetgenmesh::triface", ptr %5, i32 0, i32 1
  %419 = load i32, ptr %418, align 8, !tbaa !23
  %420 = sext i32 %419 to i64
  %421 = getelementptr inbounds [12 x i32], ptr @_ZN10tetgenmesh10facepivot1E, i64 0, i64 %420
  %422 = load i32, ptr %421, align 4, !tbaa !19
  %423 = sext i32 %422 to i64
  %424 = getelementptr inbounds ptr, ptr %417, i64 %423
  %425 = load ptr, ptr %424, align 8, !tbaa !5
  call void @_ZN10tetgenmesh6decodeEPPdRNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef %425, ptr noundef nonnull align 8 dereferenceable(12) %5)
  %426 = load i32, ptr %15, align 4, !tbaa !19
  %427 = sext i32 %426 to i64
  %428 = getelementptr inbounds [12 x [12 x i32]], ptr @_ZN10tetgenmesh10facepivot2E, i64 0, i64 %427
  %429 = getelementptr inbounds %"class.tetgenmesh::triface", ptr %5, i32 0, i32 1
  %430 = load i32, ptr %429, align 8, !tbaa !23
  %431 = sext i32 %430 to i64
  %432 = getelementptr inbounds [12 x i32], ptr %428, i64 0, i64 %431
  %433 = load i32, ptr %432, align 4, !tbaa !19
  %434 = getelementptr inbounds %"class.tetgenmesh::triface", ptr %5, i32 0, i32 1
  store i32 %433, ptr %434, align 8, !tbaa !23
  call void @_ZN10tetgenmesh7tspivotERNS_7trifaceERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef nonnull align 8 dereferenceable(12) %5, ptr noundef nonnull align 8 dereferenceable(12) %9)
  %435 = getelementptr inbounds %"class.tetgenmesh::face", ptr %9, i32 0, i32 0
  %436 = load ptr, ptr %435, align 8, !tbaa !22
  %437 = icmp ne ptr %436, null
  br i1 %437, label %438, label %439

438:                                              ; preds = %413
  br label %440

439:                                              ; preds = %413
  br label %369, !llvm.loop !32

440:                                              ; preds = %438
  br label %441

441:                                              ; preds = %440, %364
  br label %457

442:                                              ; preds = %360, %356
  %443 = call noundef ptr @_ZN10tetgenmesh4sorgERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef nonnull align 8 dereferenceable(12) %8)
  %444 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef %443)
  %445 = call noundef ptr @_ZN10tetgenmesh5sdestERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef nonnull align 8 dereferenceable(12) %8)
  %446 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef %445)
  %447 = call noundef ptr @_ZN10tetgenmesh5sapexERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef nonnull align 8 dereferenceable(12) %8)
  %448 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef %447)
  %449 = getelementptr inbounds %"class.tetgenmesh::face", ptr %8, i32 0, i32 0
  %450 = load ptr, ptr %449, align 8, !tbaa !22
  %451 = ptrtoint ptr %450 to i64
  %452 = getelementptr inbounds %"class.tetgenmesh::face", ptr %8, i32 0, i32 1
  %453 = load i32, ptr %452, align 8, !tbaa !31
  %454 = call i32 (ptr, ...) @printf(ptr noundef @.str.586, i32 noundef %444, i32 noundef %446, i32 noundef %448, i64 noundef %451, i32 noundef %453)
  %455 = load i32, ptr %16, align 4, !tbaa !19
  %456 = add nsw i32 %455, 1
  store i32 %456, ptr %16, align 4, !tbaa !19
  br label %470

457:                                              ; preds = %441
  call void @_ZN10tetgenmesh10spivotselfERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef nonnull align 8 dereferenceable(12) %8)
  %458 = getelementptr inbounds %"class.tetgenmesh::face", ptr %8, i32 0, i32 0
  %459 = load ptr, ptr %458, align 8, !tbaa !22
  %460 = icmp eq ptr %459, null
  br i1 %460, label %461, label %462

461:                                              ; preds = %457
  br label %470

462:                                              ; preds = %457
  %463 = getelementptr inbounds %"class.tetgenmesh::face", ptr %8, i32 0, i32 0
  %464 = load ptr, ptr %463, align 8, !tbaa !22
  %465 = getelementptr inbounds %"class.tetgenmesh::face", ptr %7, i32 0, i32 0
  %466 = load ptr, ptr %465, align 8, !tbaa !22
  %467 = icmp eq ptr %464, %466
  br i1 %467, label %468, label %469

468:                                              ; preds = %462
  br label %470

469:                                              ; preds = %462
  br label %347, !llvm.loop !33

470:                                              ; preds = %468, %461, %442
  br label %471

471:                                              ; preds = %470, %339
  call void @_ZN10tetgenmesh9sstpivot1ERNS_4faceERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef nonnull align 8 dereferenceable(12) %10, ptr noundef nonnull align 8 dereferenceable(12) %4)
  %472 = getelementptr inbounds %"class.tetgenmesh::triface", ptr %4, i32 0, i32 0
  %473 = load ptr, ptr %472, align 8, !tbaa !21
  %474 = icmp eq ptr %473, null
  br i1 %474, label %475, label %478

475:                                              ; preds = %471
  %476 = load i32, ptr %14, align 4, !tbaa !19
  %477 = add nsw i32 %476, 1
  store i32 %477, ptr %14, align 4, !tbaa !19
  br label %478

478:                                              ; preds = %475, %471
  %479 = getelementptr inbounds %class.tetgenmesh, ptr %18, i32 0, i32 6
  %480 = load ptr, ptr %479, align 8, !tbaa !30
  %481 = call noundef ptr @_ZN10tetgenmesh17shellfacetraverseEPNS_10memorypoolE(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef %480)
  %482 = getelementptr inbounds %"class.tetgenmesh::face", ptr %10, i32 0, i32 0
  store ptr %481, ptr %482, align 8, !tbaa !22
  br label %335, !llvm.loop !34

483:                                              ; preds = %335
  %484 = getelementptr inbounds %class.tetgenmesh, ptr %18, i32 0, i32 2
  %485 = load ptr, ptr %484, align 8, !tbaa !9
  %486 = getelementptr inbounds %class.tetgenbehavior, ptr %485, i32 0, i32 36
  %487 = load i32, ptr %486, align 8, !tbaa !16
  %488 = icmp ne i32 %487, 0
  br i1 %488, label %491, label %489

489:                                              ; preds = %483
  %490 = call i32 (ptr, ...) @printf(ptr noundef @.str.587)
  br label %491

491:                                              ; preds = %489, %483
  %492 = getelementptr inbounds %class.tetgenmesh, ptr %18, i32 0, i32 7
  %493 = load ptr, ptr %492, align 8, !tbaa !35
  call void @_ZN10tetgenmesh10memorypool13traversalinitEv(ptr noundef nonnull align 8 dereferenceable(88) %493)
  %494 = call noundef ptr @_ZN10tetgenmesh13pointtraverseEv(ptr noundef nonnull align 8 dereferenceable(1536) %18)
  store ptr %494, ptr %12, align 8, !tbaa !5
  br label %495

495:                                              ; preds = %596, %491
  %496 = load ptr, ptr %12, align 8, !tbaa !5
  %497 = icmp ne ptr %496, null
  br i1 %497, label %498, label %598

498:                                              ; preds = %495
  %499 = load ptr, ptr %12, align 8, !tbaa !5
  %500 = call noundef i32 @_ZN10tetgenmesh9pointtypeEPd(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef %499)
  %501 = icmp eq i32 %500, 6
  br i1 %501, label %502, label %596

502:                                              ; preds = %498
  %503 = load ptr, ptr %12, align 8, !tbaa !5
  %504 = call noundef ptr @_ZN10tetgenmesh8point2shEPd(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef %503)
  call void @_ZN10tetgenmesh7sdecodeEPPdRNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef %504, ptr noundef nonnull align 8 dereferenceable(12) %10)
  %505 = getelementptr inbounds %"class.tetgenmesh::face", ptr %10, i32 0, i32 0
  %506 = load ptr, ptr %505, align 8, !tbaa !22
  %507 = icmp eq ptr %506, null
  br i1 %507, label %514, label %508

508:                                              ; preds = %502
  %509 = getelementptr inbounds %"class.tetgenmesh::face", ptr %10, i32 0, i32 0
  %510 = load ptr, ptr %509, align 8, !tbaa !22
  %511 = getelementptr inbounds ptr, ptr %510, i64 3
  %512 = load ptr, ptr %511, align 8, !tbaa !5
  %513 = icmp eq ptr %512, null
  br i1 %513, label %514, label %520

514:                                              ; preds = %508, %502
  %515 = load ptr, ptr %12, align 8, !tbaa !5
  %516 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef %515)
  %517 = call i32 (ptr, ...) @printf(ptr noundef @.str.588, i32 noundef %516)
  %518 = load i32, ptr %16, align 4, !tbaa !19
  %519 = add nsw i32 %518, 1
  store i32 %519, ptr %16, align 4, !tbaa !19
  br label %595

520:                                              ; preds = %508
  %521 = getelementptr inbounds %"class.tetgenmesh::face", ptr %10, i32 0, i32 1
  store i32 0, ptr %521, align 8, !tbaa !31
  %522 = call noundef ptr @_ZN10tetgenmesh4sorgERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef nonnull align 8 dereferenceable(12) %10)
  %523 = load ptr, ptr %12, align 8, !tbaa !5
  %524 = icmp ne ptr %522, %523
  br i1 %524, label %525, label %565

525:                                              ; preds = %520
  %526 = call noundef ptr @_ZN10tetgenmesh5sdestERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef nonnull align 8 dereferenceable(12) %10)
  %527 = load ptr, ptr %12, align 8, !tbaa !5
  %528 = icmp ne ptr %526, %527
  br i1 %528, label %529, label %535

529:                                              ; preds = %525
  %530 = load ptr, ptr %12, align 8, !tbaa !5
  %531 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef %530)
  %532 = call i32 (ptr, ...) @printf(ptr noundef @.str.589, i32 noundef %531)
  %533 = load i32, ptr %16, align 4, !tbaa !19
  %534 = add nsw i32 %533, 1
  store i32 %534, ptr %16, align 4, !tbaa !19
  br label %564

535:                                              ; preds = %525
  call void @_ZN10tetgenmesh6senextERNS_4faceES1_(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef nonnull align 8 dereferenceable(12) %10, ptr noundef nonnull align 8 dereferenceable(12) %11)
  %536 = getelementptr inbounds %"class.tetgenmesh::face", ptr %11, i32 0, i32 0
  %537 = load ptr, ptr %536, align 8, !tbaa !22
  %538 = icmp eq ptr %537, null
  br i1 %538, label %545, label %539

539:                                              ; preds = %535
  %540 = getelementptr inbounds %"class.tetgenmesh::face", ptr %11, i32 0, i32 0
  %541 = load ptr, ptr %540, align 8, !tbaa !22
  %542 = getelementptr inbounds ptr, ptr %541, i64 3
  %543 = load ptr, ptr %542, align 8, !tbaa !5
  %544 = icmp eq ptr %543, null
  br i1 %544, label %545, label %551

545:                                              ; preds = %539, %535
  %546 = load ptr, ptr %12, align 8, !tbaa !5
  %547 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef %546)
  %548 = call i32 (ptr, ...) @printf(ptr noundef @.str.590, i32 noundef %547)
  %549 = load i32, ptr %16, align 4, !tbaa !19
  %550 = add nsw i32 %549, 1
  store i32 %550, ptr %16, align 4, !tbaa !19
  br label %563

551:                                              ; preds = %539
  call void @_ZN10tetgenmesh10spivotselfERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef nonnull align 8 dereferenceable(12) %11)
  %552 = getelementptr inbounds %"class.tetgenmesh::face", ptr %11, i32 0, i32 1
  store i32 0, ptr %552, align 8, !tbaa !31
  %553 = call noundef ptr @_ZN10tetgenmesh4sorgERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef nonnull align 8 dereferenceable(12) %11)
  %554 = load ptr, ptr %12, align 8, !tbaa !5
  %555 = icmp ne ptr %553, %554
  br i1 %555, label %556, label %562

556:                                              ; preds = %551
  %557 = load ptr, ptr %12, align 8, !tbaa !5
  %558 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef %557)
  %559 = call i32 (ptr, ...) @printf(ptr noundef @.str.591, i32 noundef %558)
  %560 = load i32, ptr %16, align 4, !tbaa !19
  %561 = add nsw i32 %560, 1
  store i32 %561, ptr %16, align 4, !tbaa !19
  br label %562

562:                                              ; preds = %556, %551
  br label %563

563:                                              ; preds = %562, %545
  br label %564

564:                                              ; preds = %563, %529
  br label %594

565:                                              ; preds = %520
  call void @_ZN10tetgenmesh7senext2ERNS_4faceES1_(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef nonnull align 8 dereferenceable(12) %10, ptr noundef nonnull align 8 dereferenceable(12) %11)
  %566 = getelementptr inbounds %"class.tetgenmesh::face", ptr %11, i32 0, i32 0
  %567 = load ptr, ptr %566, align 8, !tbaa !22
  %568 = icmp eq ptr %567, null
  br i1 %568, label %575, label %569

569:                                              ; preds = %565
  %570 = getelementptr inbounds %"class.tetgenmesh::face", ptr %11, i32 0, i32 0
  %571 = load ptr, ptr %570, align 8, !tbaa !22
  %572 = getelementptr inbounds ptr, ptr %571, i64 3
  %573 = load ptr, ptr %572, align 8, !tbaa !5
  %574 = icmp eq ptr %573, null
  br i1 %574, label %575, label %581

575:                                              ; preds = %569, %565
  %576 = load ptr, ptr %12, align 8, !tbaa !5
  %577 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef %576)
  %578 = call i32 (ptr, ...) @printf(ptr noundef @.str.590, i32 noundef %577)
  %579 = load i32, ptr %16, align 4, !tbaa !19
  %580 = add nsw i32 %579, 1
  store i32 %580, ptr %16, align 4, !tbaa !19
  br label %593

581:                                              ; preds = %569
  call void @_ZN10tetgenmesh10spivotselfERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef nonnull align 8 dereferenceable(12) %11)
  %582 = getelementptr inbounds %"class.tetgenmesh::face", ptr %11, i32 0, i32 1
  store i32 0, ptr %582, align 8, !tbaa !31
  %583 = call noundef ptr @_ZN10tetgenmesh5sdestERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef nonnull align 8 dereferenceable(12) %11)
  %584 = load ptr, ptr %12, align 8, !tbaa !5
  %585 = icmp ne ptr %583, %584
  br i1 %585, label %586, label %592

586:                                              ; preds = %581
  %587 = load ptr, ptr %12, align 8, !tbaa !5
  %588 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %18, ptr noundef %587)
  %589 = call i32 (ptr, ...) @printf(ptr noundef @.str.591, i32 noundef %588)
  %590 = load i32, ptr %16, align 4, !tbaa !19
  %591 = add nsw i32 %590, 1
  store i32 %591, ptr %16, align 4, !tbaa !19
  br label %592

592:                                              ; preds = %586, %581
  br label %593

593:                                              ; preds = %592, %575
  br label %594

594:                                              ; preds = %593, %564
  br label %595

595:                                              ; preds = %594, %514
  br label %596

596:                                              ; preds = %595, %498
  %597 = call noundef ptr @_ZN10tetgenmesh13pointtraverseEv(ptr noundef nonnull align 8 dereferenceable(1536) %18)
  store ptr %597, ptr %12, align 8, !tbaa !5
  br label %495, !llvm.loop !36

598:                                              ; preds = %495
  %599 = load i32, ptr %16, align 4, !tbaa !19
  %600 = icmp eq i32 %599, 0
  br i1 %600, label %601, label %603

601:                                              ; preds = %598
  %602 = call i32 (ptr, ...) @printf(ptr noundef @.str.592)
  br label %606

603:                                              ; preds = %598
  %604 = load i32, ptr %16, align 4, !tbaa !19
  %605 = call i32 (ptr, ...) @printf(ptr noundef @.str.593, i32 noundef %604)
  br label %606

606:                                              ; preds = %603, %601
  %607 = load i32, ptr %14, align 4, !tbaa !19
  %608 = icmp sgt i32 %607, 0
  br i1 %608, label %609, label %612

609:                                              ; preds = %606
  %610 = load i32, ptr %14, align 4, !tbaa !19
  %611 = call i32 (ptr, ...) @printf(ptr noundef @.str.594, i32 noundef %610)
  br label %612

612:                                              ; preds = %609, %606
  %613 = load i32, ptr %16, align 4, !tbaa !19
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %3) #6
  ret i32 %613
}

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


; 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::face" = type <{ ptr, i32, [4 x i8] }>

@_ZN10tetgenmesh10facepivot1E = external dso_local local_unnamed_addr global [12 x i32], align 16
@_ZN10tetgenmesh10facepivot2E = external dso_local local_unnamed_addr global [12 x [12 x i32]], align 16
@_ZN10tetgenmesh8edge2verE = external dso_local local_unnamed_addr global [6 x i32], align 16
@.str.572 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.573 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.574 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.575 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.576 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.577 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.578 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.579 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.580 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.581 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.582 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.583 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.584 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.585 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.586 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.587 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.588 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.589 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.590 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.591 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.592 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.593 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.594 = external hidden unnamed_addr constant [36 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: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) 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 nounwind uwtable
declare dso_local void @_ZN10tetgenmesh10memorypool13traversalinitEv(ptr noundef nonnull align 8 dereferenceable(88)) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN10tetgenmesh17shellfacetraverseEPNS_10memorypoolE(ptr noundef nonnull align 8 dereferenceable(1536), ptr noundef) local_unnamed_addr #2 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 nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(12) ptr @_ZN10tetgenmesh4faceaSERKS0_(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 8 dereferenceable(12)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN10tetgenmesh19tetrahedrontraverseEv(ptr noundef nonnull align 8 dereferenceable(1536)) local_unnamed_addr #2 align 2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN10tetgenmesh9tsspivot1ERNS_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 #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 #5 align 2

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN10tetgenmesh4apexERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536), ptr noundef nonnull align 8 dereferenceable(12)) local_unnamed_addr #4 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 #4 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN10tetgenmesh9sstpivot1ERNS_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 #4 align 2

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN10tetgenmesh13checksegmentsEv(ptr noundef nonnull align 8 dereferenceable(1536) %0) local_unnamed_addr #3 align 2 {
  %2 = alloca %"class.tetgenmesh::triface", align 8
  %3 = alloca %"class.tetgenmesh::triface", align 8
  %4 = alloca %"class.tetgenmesh::triface", align 8
  %5 = alloca %"class.tetgenmesh::face", align 8
  %6 = alloca %"class.tetgenmesh::face", align 8
  %7 = alloca %"class.tetgenmesh::face", align 8
  %8 = alloca %"class.tetgenmesh::face", align 8
  %9 = alloca %"class.tetgenmesh::face", align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #6
  call void @_ZN10tetgenmesh7trifaceC2Ev(ptr noundef nonnull align 8 dereferenceable(12) %2)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #6
  call void @_ZN10tetgenmesh7trifaceC2Ev(ptr noundef nonnull align 8 dereferenceable(12) %3)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #6
  call void @_ZN10tetgenmesh7trifaceC2Ev(ptr noundef nonnull align 8 dereferenceable(12) %4)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #6
  call void @_ZN10tetgenmesh4faceC2Ev(ptr noundef nonnull align 8 dereferenceable(12) %5)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #6
  call void @_ZN10tetgenmesh4faceC2Ev(ptr noundef nonnull align 8 dereferenceable(12) %6)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #6
  call void @_ZN10tetgenmesh4faceC2Ev(ptr noundef nonnull align 8 dereferenceable(12) %7)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #6
  call void @_ZN10tetgenmesh4faceC2Ev(ptr noundef nonnull align 8 dereferenceable(12) %8)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #6
  call void @_ZN10tetgenmesh4faceC2Ev(ptr noundef nonnull align 8 dereferenceable(12) %9)
  %10 = getelementptr inbounds i8, ptr %0, i64 16
  %11 = load ptr, ptr %10, align 8, !tbaa !5
  %12 = getelementptr inbounds i8, ptr %11, i64 144
  %13 = load i32, ptr %12, align 8, !tbaa !15
  %.not = icmp eq i32 %13, 0
  br i1 %.not, label %14, label %16

14:                                               ; preds = %1
  %15 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.572)
  br label %16

16:                                               ; preds = %14, %1
  %17 = getelementptr inbounds i8, ptr %0, i64 32
  %18 = load ptr, ptr %17, align 8, !tbaa !18
  call void @_ZN10tetgenmesh10memorypool13traversalinitEv(ptr noundef nonnull align 8 dereferenceable(88) %18)
  %19 = call noundef ptr @_ZN10tetgenmesh19tetrahedrontraverseEv(ptr noundef nonnull align 8 dereferenceable(1536) %0)
  store ptr %19, ptr %2, align 8, !tbaa !19
  %.not72103 = icmp eq ptr %19, null
  br i1 %.not72103, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %16
  %20 = getelementptr inbounds i8, ptr %2, i64 8
  %21 = getelementptr inbounds i8, ptr %3, i64 8
  %22 = getelementptr inbounds i8, ptr %4, i64 8
  br label %23

23:                                               ; preds = %.lr.ph, %197
  %.060105 = phi i32 [ 0, %.lr.ph ], [ %.10, %197 ]
  %storemerge104 = phi ptr [ %19, %.lr.ph ], [ %198, %197 ]
  %24 = getelementptr inbounds i8, ptr %storemerge104, i64 64
  %25 = load ptr, ptr %24, align 8, !tbaa !20
  %.not86 = icmp eq ptr %25, null
  br i1 %.not86, label %.loopexit97, label %.preheader96

.preheader96:                                     ; preds = %23, %145
  %indvars.iv = phi i64 [ %indvars.iv.next, %145 ], [ 0, %23 ]
  %.16199 = phi i32 [ %.5, %145 ], [ %.060105, %23 ]
  %26 = getelementptr inbounds ptr, ptr %25, i64 %indvars.iv
  %27 = load ptr, ptr %26, align 8, !tbaa !20
  call void @_ZN10tetgenmesh7sdecodeEPPdRNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %27, ptr noundef nonnull align 8 dereferenceable(12) %8)
  %28 = load ptr, ptr %8, align 8, !tbaa !21
  %.not87 = icmp eq ptr %28, null
  br i1 %.not87, label %145, label %29

29:                                               ; preds = %.preheader96
  %30 = getelementptr inbounds [6 x i32], ptr @_ZN10tetgenmesh8edge2verE, i64 0, i64 %indvars.iv
  %31 = load i32, ptr %30, align 4, !tbaa !22
  store i32 %31, ptr %20, align 8, !tbaa !23
  %32 = getelementptr inbounds i8, ptr %28, i64 24
  %33 = load ptr, ptr %32, align 8, !tbaa !20
  %34 = getelementptr inbounds i8, ptr %28, i64 32
  %35 = load ptr, ptr %34, align 8, !tbaa !20
  %36 = call noundef ptr @_ZN10tetgenmesh3orgERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %2)
  %37 = icmp eq ptr %36, %33
  br i1 %37, label %38, label %41

38:                                               ; preds = %29
  %39 = call noundef ptr @_ZN10tetgenmesh4destERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %2)
  %40 = icmp eq ptr %39, %35
  br i1 %40, label %65, label %41

41:                                               ; preds = %38, %29
  %42 = call noundef ptr @_ZN10tetgenmesh3orgERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %2)
  %43 = icmp eq ptr %42, %35
  br i1 %43, label %44, label %47

44:                                               ; preds = %41
  %45 = call noundef ptr @_ZN10tetgenmesh4destERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %2)
  %46 = icmp eq ptr %45, %33
  br i1 %46, label %65, label %47

47:                                               ; preds = %44, %41
  %48 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.573)
  %49 = load ptr, ptr %2, align 8, !tbaa !19
  %50 = ptrtoint ptr %49 to i64
  %51 = call noundef ptr @_ZN10tetgenmesh3orgERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %2)
  %52 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %51)
  %53 = call noundef ptr @_ZN10tetgenmesh4destERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %2)
  %54 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %53)
  %55 = call noundef ptr @_ZN10tetgenmesh4apexERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %2)
  %56 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %55)
  %57 = call noundef ptr @_ZN10tetgenmesh4oppoERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %2)
  %58 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %57)
  %59 = load ptr, ptr %8, align 8, !tbaa !21
  %60 = ptrtoint ptr %59 to i64
  %61 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %33)
  %62 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %35)
  %63 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.574, i64 noundef %50, i32 noundef %52, i32 noundef %54, i32 noundef %56, i32 noundef %58, i64 noundef %60, i32 noundef %61, i32 noundef %62)
  %64 = add nsw i32 %.16199, 1
  br label %.loopexit95

65:                                               ; preds = %44, %38
  %66 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZN10tetgenmesh7trifaceaSERKS0_(ptr noundef nonnull align 8 dereferenceable(12) %3, ptr noundef nonnull align 8 dereferenceable(12) %2)
  br label %67

67:                                               ; preds = %95, %65
  %.2 = phi i32 [ %.16199, %65 ], [ %.3, %95 ]
  call void @_ZN10tetgenmesh9tsspivot1ERNS_7trifaceERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %3, ptr noundef nonnull align 8 dereferenceable(12) %9)
  %68 = load ptr, ptr %9, align 8, !tbaa !21
  %69 = load ptr, ptr %8, align 8, !tbaa !21
  %.not88 = icmp eq ptr %68, %69
  br i1 %.not88, label %95, label %70

70:                                               ; preds = %67
  %71 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.575)
  %72 = load ptr, ptr %3, align 8, !tbaa !19
  %73 = ptrtoint ptr %72 to i64
  %74 = call noundef ptr @_ZN10tetgenmesh3orgERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %3)
  %75 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %74)
  %76 = call noundef ptr @_ZN10tetgenmesh4destERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %3)
  %77 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %76)
  %78 = call noundef ptr @_ZN10tetgenmesh4apexERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %3)
  %79 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %78)
  %80 = call noundef ptr @_ZN10tetgenmesh4oppoERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %3)
  %81 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %80)
  %82 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.576, i64 noundef %73, i32 noundef %75, i32 noundef %77, i32 noundef %79, i32 noundef %81)
  %83 = load ptr, ptr %9, align 8, !tbaa !21
  %.not89 = icmp eq ptr %83, null
  br i1 %.not89, label %91, label %84

84:                                               ; preds = %70
  %85 = ptrtoint ptr %83 to i64
  %86 = call noundef ptr @_ZN10tetgenmesh4sorgERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %9)
  %87 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %86)
  %88 = call noundef ptr @_ZN10tetgenmesh5sdestERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %9)
  %89 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %88)
  %90 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.577, i64 noundef %85, i32 noundef %87, i32 noundef %89)
  br label %93

91:                                               ; preds = %70
  %92 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.578)
  br label %93

93:                                               ; preds = %91, %84
  %94 = add nsw i32 %.2, 1
  br label %95

95:                                               ; preds = %93, %67
  %.3 = phi i32 [ %94, %93 ], [ %.2, %67 ]
  %96 = load i32, ptr %21, align 8, !tbaa !23
  %97 = load ptr, ptr %3, align 8, !tbaa !19
  %98 = sext i32 %96 to i64
  %99 = getelementptr inbounds [12 x i32], ptr @_ZN10tetgenmesh10facepivot1E, i64 0, i64 %98
  %100 = load i32, ptr %99, align 4, !tbaa !22
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds ptr, ptr %97, i64 %101
  %103 = load ptr, ptr %102, align 8, !tbaa !20
  call void @_ZN10tetgenmesh6decodeEPPdRNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %103, ptr noundef nonnull align 8 dereferenceable(12) %3)
  %104 = load i32, ptr %21, align 8, !tbaa !23
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds [12 x [12 x i32]], ptr @_ZN10tetgenmesh10facepivot2E, i64 0, i64 %98, i64 %105
  %107 = load i32, ptr %106, align 4, !tbaa !22
  store i32 %107, ptr %21, align 8, !tbaa !23
  %108 = load ptr, ptr %3, align 8, !tbaa !19
  %109 = load ptr, ptr %2, align 8, !tbaa !19
  %.not90 = icmp eq ptr %108, %109
  br i1 %.not90, label %.loopexit95, label %67, !llvm.loop !24

.loopexit95:                                      ; preds = %95, %47
  %.4 = phi i32 [ %64, %47 ], [ %.3, %95 ]
  call void @_ZN10tetgenmesh9sstpivot1ERNS_4faceERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %8, ptr noundef nonnull align 8 dereferenceable(12) %3)
  %110 = load ptr, ptr %3, align 8, !tbaa !19
  %111 = icmp eq ptr %110, null
  br i1 %111, label %112, label %115

112:                                              ; preds = %.loopexit95
  %113 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.579)
  %114 = add nsw i32 %.4, 1
  br label %145

115:                                              ; preds = %.loopexit95
  %116 = call noundef ptr @_ZN10tetgenmesh3orgERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %3)
  %117 = icmp eq ptr %116, %33
  br i1 %117, label %118, label %121

118:                                              ; preds = %115
  %119 = call noundef ptr @_ZN10tetgenmesh4destERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %3)
  %120 = icmp eq ptr %119, %35
  br i1 %120, label %145, label %121

121:                                              ; preds = %118, %115
  %122 = call noundef ptr @_ZN10tetgenmesh3orgERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %3)
  %123 = icmp eq ptr %122, %35
  br i1 %123, label %124, label %127

124:                                              ; preds = %121
  %125 = call noundef ptr @_ZN10tetgenmesh4destERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %3)
  %126 = icmp eq ptr %125, %33
  br i1 %126, label %145, label %127

127:                                              ; preds = %124, %121
  %128 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.580)
  %129 = load ptr, ptr %3, align 8, !tbaa !19
  %130 = ptrtoint ptr %129 to i64
  %131 = call noundef ptr @_ZN10tetgenmesh3orgERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %3)
  %132 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %131)
  %133 = call noundef ptr @_ZN10tetgenmesh4destERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %3)
  %134 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %133)
  %135 = call noundef ptr @_ZN10tetgenmesh4apexERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %3)
  %136 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %135)
  %137 = call noundef ptr @_ZN10tetgenmesh4oppoERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %3)
  %138 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %137)
  %139 = load ptr, ptr %8, align 8, !tbaa !21
  %140 = ptrtoint ptr %139 to i64
  %141 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %33)
  %142 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %35)
  %143 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.574, i64 noundef %130, i32 noundef %132, i32 noundef %134, i32 noundef %136, i32 noundef %138, i64 noundef %140, i32 noundef %141, i32 noundef %142)
  %144 = add nsw i32 %.4, 1
  br label %145

145:                                              ; preds = %.preheader96, %118, %124, %127, %112
  %.5 = phi i32 [ %114, %112 ], [ %.4, %118 ], [ %.4, %124 ], [ %144, %127 ], [ %.16199, %.preheader96 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 6
  br i1 %exitcond.not, label %.loopexit97.loopexit, label %.preheader96, !llvm.loop !26

.loopexit97.loopexit:                             ; preds = %145
  %.pre = load ptr, ptr %2, align 8, !tbaa !19
  br label %.loopexit97

.loopexit97:                                      ; preds = %.loopexit97.loopexit, %23
  %146 = phi ptr [ %storemerge104, %23 ], [ %.pre, %.loopexit97.loopexit ]
  %.6 = phi i32 [ %.060105, %23 ], [ %.5, %.loopexit97.loopexit ]
  store ptr %146, ptr %3, align 8, !tbaa !19
  br label %147

147:                                              ; preds = %.loopexit97, %.loopexit94
  %indvars.iv123 = phi i64 [ 0, %.loopexit97 ], [ %indvars.iv.next124, %.loopexit94 ]
  %.7101 = phi i32 [ %.6, %.loopexit97 ], [ %.10, %.loopexit94 ]
  %148 = getelementptr inbounds [6 x i32], ptr @_ZN10tetgenmesh8edge2verE, i64 0, i64 %indvars.iv123
  %149 = load i32, ptr %148, align 4, !tbaa !22
  store i32 %149, ptr %21, align 8, !tbaa !23
  %150 = call noundef zeroext i1 @_ZN10tetgenmesh10edgemarkedERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %3)
  br i1 %150, label %151, label %.loopexit94

151:                                              ; preds = %147
  %152 = call noundef ptr @_ZN10tetgenmesh3orgERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %3)
  %153 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %152)
  %154 = call noundef ptr @_ZN10tetgenmesh4destERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %3)
  %155 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %154)
  %156 = call noundef ptr @_ZN10tetgenmesh4apexERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %3)
  %157 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %156)
  %158 = call noundef ptr @_ZN10tetgenmesh4oppoERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %3)
  %159 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %158)
  %160 = load ptr, ptr %3, align 8, !tbaa !19
  %161 = ptrtoint ptr %160 to i64
  %162 = load i32, ptr %21, align 8, !tbaa !23
  %163 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.581, i32 noundef %153, i32 noundef %155, i32 noundef %157, i32 noundef %159, i64 noundef %161, i32 noundef %162)
  %164 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZN10tetgenmesh7trifaceaSERKS0_(ptr noundef nonnull align 8 dereferenceable(12) %4, ptr noundef nonnull align 8 dereferenceable(12) %3)
  %.pre127 = load ptr, ptr %4, align 8, !tbaa !19
  br label %165

165:                                              ; preds = %193, %151
  %166 = phi ptr [ %.pre127, %151 ], [ %194, %193 ]
  %.8 = phi i32 [ %.7101, %151 ], [ %.9, %193 ]
  %167 = load i32, ptr %22, align 8, !tbaa !23
  %168 = sext i32 %167 to i64
  %169 = getelementptr inbounds [12 x i32], ptr @_ZN10tetgenmesh10facepivot1E, i64 0, i64 %168
  %170 = load i32, ptr %169, align 4, !tbaa !22
  %171 = sext i32 %170 to i64
  %172 = getelementptr inbounds ptr, ptr %166, i64 %171
  %173 = load ptr, ptr %172, align 8, !tbaa !20
  call void @_ZN10tetgenmesh6decodeEPPdRNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %173, ptr noundef nonnull align 8 dereferenceable(12) %4)
  %174 = load i32, ptr %22, align 8, !tbaa !23
  %175 = sext i32 %174 to i64
  %176 = getelementptr inbounds [12 x [12 x i32]], ptr @_ZN10tetgenmesh10facepivot2E, i64 0, i64 %168, i64 %175
  %177 = load i32, ptr %176, align 4, !tbaa !22
  store i32 %177, ptr %22, align 8, !tbaa !23
  %178 = call noundef zeroext i1 @_ZN10tetgenmesh10edgemarkedERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %4)
  br i1 %178, label %193, label %179

179:                                              ; preds = %165
  %180 = call noundef ptr @_ZN10tetgenmesh3orgERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %4)
  %181 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %180)
  %182 = call noundef ptr @_ZN10tetgenmesh4destERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %4)
  %183 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %182)
  %184 = call noundef ptr @_ZN10tetgenmesh4apexERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %4)
  %185 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %184)
  %186 = call noundef ptr @_ZN10tetgenmesh4oppoERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %4)
  %187 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %186)
  %188 = load ptr, ptr %4, align 8, !tbaa !19
  %189 = ptrtoint ptr %188 to i64
  %190 = load i32, ptr %22, align 8, !tbaa !23
  %191 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.582, i32 noundef %181, i32 noundef %183, i32 noundef %185, i32 noundef %187, i64 noundef %189, i32 noundef %190)
  %192 = add nsw i32 %.8, 1
  br label %193

193:                                              ; preds = %179, %165
  %.9 = phi i32 [ %.8, %165 ], [ %192, %179 ]
  %194 = load ptr, ptr %4, align 8, !tbaa !19
  %195 = load ptr, ptr %3, align 8, !tbaa !19
  %196 = icmp eq ptr %194, %195
  br i1 %196, label %.loopexit94, label %165, !llvm.loop !27

.loopexit94:                                      ; preds = %193, %147
  %.10 = phi i32 [ %.7101, %147 ], [ %.9, %193 ]
  %indvars.iv.next124 = add nuw nsw i64 %indvars.iv123, 1
  %exitcond126.not = icmp eq i64 %indvars.iv.next124, 6
  br i1 %exitcond126.not, label %197, label %147, !llvm.loop !28

197:                                              ; preds = %.loopexit94
  %198 = call noundef ptr @_ZN10tetgenmesh19tetrahedrontraverseEv(ptr noundef nonnull align 8 dereferenceable(1536) %0)
  store ptr %198, ptr %2, align 8, !tbaa !19
  %.not72 = icmp eq ptr %198, null
  br i1 %.not72, label %._crit_edge, label %23, !llvm.loop !29

._crit_edge:                                      ; preds = %197, %16
  %.060.lcssa = phi i32 [ 0, %16 ], [ %.10, %197 ]
  %199 = load ptr, ptr %10, align 8, !tbaa !5
  %200 = getelementptr inbounds i8, ptr %199, i64 144
  %201 = load i32, ptr %200, align 8, !tbaa !15
  %.not73 = icmp eq i32 %201, 0
  br i1 %.not73, label %202, label %204

202:                                              ; preds = %._crit_edge
  %203 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.583)
  br label %204

204:                                              ; preds = %202, %._crit_edge
  %205 = getelementptr inbounds i8, ptr %0, i64 48
  %206 = load ptr, ptr %205, align 8, !tbaa !30
  call void @_ZN10tetgenmesh10memorypool13traversalinitEv(ptr noundef nonnull align 8 dereferenceable(88) %206)
  %207 = getelementptr inbounds i8, ptr %8, i64 8
  store i32 0, ptr %207, align 8, !tbaa !31
  %208 = load ptr, ptr %205, align 8, !tbaa !30
  %209 = call noundef ptr @_ZN10tetgenmesh17shellfacetraverseEPNS_10memorypoolE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %208)
  store ptr %209, ptr %8, align 8, !tbaa !21
  %.not75106 = icmp eq ptr %209, null
  br i1 %.not75106, label %._crit_edge111, label %.lr.ph110

.lr.ph110:                                        ; preds = %204
  %210 = getelementptr inbounds i8, ptr %4, i64 8
  %211 = getelementptr inbounds i8, ptr %6, i64 8
  br label %212

212:                                              ; preds = %.lr.ph110, %.loopexit93
  %.11108 = phi i32 [ %.060.lcssa, %.lr.ph110 ], [ %.17, %.loopexit93 ]
  %.062107 = phi i32 [ 0, %.lr.ph110 ], [ %spec.select, %.loopexit93 ]
  %213 = call noundef ptr @_ZN10tetgenmesh4sorgERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %8)
  %214 = call noundef ptr @_ZN10tetgenmesh5sdestERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %8)
  call void @_ZN10tetgenmesh6spivotERNS_4faceES1_(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %8, ptr noundef nonnull align 8 dereferenceable(12) %5)
  %215 = load ptr, ptr %5, align 8, !tbaa !21
  %.not82 = icmp eq ptr %215, null
  br i1 %.not82, label %.loopexit93, label %216

216:                                              ; preds = %212
  %217 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZN10tetgenmesh4faceaSERKS0_(ptr noundef nonnull align 8 dereferenceable(12) %6, ptr noundef nonnull align 8 dereferenceable(12) %5)
  br label %218

218:                                              ; preds = %.loopexit, %216
  %.12 = phi i32 [ %.11108, %216 ], [ %.16, %.loopexit ]
  %219 = call noundef ptr @_ZN10tetgenmesh4sorgERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %6)
  %220 = icmp eq ptr %219, %213
  br i1 %220, label %221, label %224

221:                                              ; preds = %218
  %222 = call noundef ptr @_ZN10tetgenmesh5sdestERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %6)
  %223 = icmp eq ptr %222, %214
  br i1 %223, label %230, label %224

224:                                              ; preds = %221, %218
  %225 = call noundef ptr @_ZN10tetgenmesh4sorgERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %6)
  %226 = icmp eq ptr %225, %214
  br i1 %226, label %227, label %280

227:                                              ; preds = %224
  %228 = call noundef ptr @_ZN10tetgenmesh5sdestERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %6)
  %229 = icmp eq ptr %228, %213
  br i1 %229, label %230, label %280

230:                                              ; preds = %227, %221
  call void @_ZN10tetgenmesh7stpivotERNS_4faceERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %6, ptr noundef nonnull align 8 dereferenceable(12) %4)
  %231 = load ptr, ptr %4, align 8, !tbaa !19
  %.not83 = icmp eq ptr %231, null
  br i1 %.not83, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %230, %266
  %.13 = phi i32 [ %.15, %266 ], [ %.12, %230 ]
  call void @_ZN10tetgenmesh9tsspivot1ERNS_7trifaceERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %4, ptr noundef nonnull align 8 dereferenceable(12) %9)
  %232 = load ptr, ptr %9, align 8, !tbaa !21
  %233 = icmp eq ptr %232, null
  br i1 %233, label %234, label %248

234:                                              ; preds = %.preheader
  %235 = call noundef ptr @_ZN10tetgenmesh3orgERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %4)
  %236 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %235)
  %237 = call noundef ptr @_ZN10tetgenmesh4destERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %4)
  %238 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %237)
  %239 = call noundef ptr @_ZN10tetgenmesh4apexERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %4)
  %240 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %239)
  %241 = call noundef ptr @_ZN10tetgenmesh4oppoERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %4)
  %242 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %241)
  %243 = load ptr, ptr %4, align 8, !tbaa !19
  %244 = ptrtoint ptr %243 to i64
  %245 = load i32, ptr %210, align 8, !tbaa !23
  %246 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.584, i32 noundef %236, i32 noundef %238, i32 noundef %240, i32 noundef %242, i64 noundef %244, i32 noundef %245)
  %247 = add nsw i32 %.13, 1
  %.pre128 = load ptr, ptr %9, align 8, !tbaa !21
  br label %248

248:                                              ; preds = %234, %.preheader
  %249 = phi ptr [ %.pre128, %234 ], [ %232, %.preheader ]
  %.14 = phi i32 [ %247, %234 ], [ %.13, %.preheader ]
  %250 = load ptr, ptr %8, align 8, !tbaa !21
  %.not84 = icmp eq ptr %249, %250
  br i1 %.not84, label %266, label %251

251:                                              ; preds = %248
  %252 = call noundef ptr @_ZN10tetgenmesh4sorgERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %9)
  %253 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %252)
  %254 = call noundef ptr @_ZN10tetgenmesh5sdestERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %9)
  %255 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %254)
  %256 = call noundef ptr @_ZN10tetgenmesh3orgERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %4)
  %257 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %256)
  %258 = call noundef ptr @_ZN10tetgenmesh4destERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %4)
  %259 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %258)
  %260 = call noundef ptr @_ZN10tetgenmesh4apexERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %4)
  %261 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %260)
  %262 = call noundef ptr @_ZN10tetgenmesh4oppoERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %4)
  %263 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %262)
  %264 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.585, i32 noundef %253, i32 noundef %255, i32 noundef %257, i32 noundef %259, i32 noundef %261, i32 noundef %263)
  %265 = add nsw i32 %.14, 1
  br label %266

266:                                              ; preds = %251, %248
  %.15 = phi i32 [ %265, %251 ], [ %.14, %248 ]
  %267 = load i32, ptr %210, align 8, !tbaa !23
  %268 = load ptr, ptr %4, align 8, !tbaa !19
  %269 = sext i32 %267 to i64
  %270 = getelementptr inbounds [12 x i32], ptr @_ZN10tetgenmesh10facepivot1E, i64 0, i64 %269
  %271 = load i32, ptr %270, align 4, !tbaa !22
  %272 = sext i32 %271 to i64
  %273 = getelementptr inbounds ptr, ptr %268, i64 %272
  %274 = load ptr, ptr %273, align 8, !tbaa !20
  call void @_ZN10tetgenmesh6decodeEPPdRNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %274, ptr noundef nonnull align 8 dereferenceable(12) %4)
  %275 = load i32, ptr %210, align 8, !tbaa !23
  %276 = sext i32 %275 to i64
  %277 = getelementptr inbounds [12 x [12 x i32]], ptr @_ZN10tetgenmesh10facepivot2E, i64 0, i64 %269, i64 %276
  %278 = load i32, ptr %277, align 4, !tbaa !22
  store i32 %278, ptr %210, align 8, !tbaa !23
  call void @_ZN10tetgenmesh7tspivotERNS_7trifaceERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %4, ptr noundef nonnull align 8 dereferenceable(12) %7)
  %279 = load ptr, ptr %7, align 8, !tbaa !21
  %.not85 = icmp eq ptr %279, null
  br i1 %.not85, label %.preheader, label %.loopexit, !llvm.loop !32

280:                                              ; preds = %227, %224
  %281 = call noundef ptr @_ZN10tetgenmesh4sorgERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %6)
  %282 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %281)
  %283 = call noundef ptr @_ZN10tetgenmesh5sdestERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %6)
  %284 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %283)
  %285 = call noundef ptr @_ZN10tetgenmesh5sapexERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %6)
  %286 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %285)
  %287 = load ptr, ptr %6, align 8, !tbaa !21
  %288 = ptrtoint ptr %287 to i64
  %289 = load i32, ptr %211, align 8, !tbaa !31
  %290 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.586, i32 noundef %282, i32 noundef %284, i32 noundef %286, i64 noundef %288, i32 noundef %289)
  %291 = add nsw i32 %.12, 1
  br label %.loopexit93

.loopexit:                                        ; preds = %266, %230
  %.16 = phi i32 [ %.12, %230 ], [ %.15, %266 ]
  call void @_ZN10tetgenmesh10spivotselfERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %6)
  %292 = load ptr, ptr %6, align 8, !tbaa !21
  %293 = icmp eq ptr %292, null
  %294 = load ptr, ptr %5, align 8
  %295 = icmp eq ptr %292, %294
  %or.cond = select i1 %293, i1 true, i1 %295
  br i1 %or.cond, label %.loopexit93, label %218, !llvm.loop !33

.loopexit93:                                      ; preds = %.loopexit, %280, %212
  %.17 = phi i32 [ %291, %280 ], [ %.11108, %212 ], [ %.16, %.loopexit ]
  call void @_ZN10tetgenmesh9sstpivot1ERNS_4faceERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %8, ptr noundef nonnull align 8 dereferenceable(12) %3)
  %296 = load ptr, ptr %3, align 8, !tbaa !19
  %297 = icmp eq ptr %296, null
  %298 = zext i1 %297 to i32
  %spec.select = add nuw nsw i32 %.062107, %298
  %299 = load ptr, ptr %205, align 8, !tbaa !30
  %300 = call noundef ptr @_ZN10tetgenmesh17shellfacetraverseEPNS_10memorypoolE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %299)
  store ptr %300, ptr %8, align 8, !tbaa !21
  %.not75 = icmp eq ptr %300, null
  br i1 %.not75, label %._crit_edge111, label %212, !llvm.loop !34

._crit_edge111:                                   ; preds = %.loopexit93, %204
  %.062.lcssa = phi i32 [ 0, %204 ], [ %spec.select, %.loopexit93 ]
  %.11.lcssa = phi i32 [ %.060.lcssa, %204 ], [ %.17, %.loopexit93 ]
  %301 = load ptr, ptr %10, align 8, !tbaa !5
  %302 = getelementptr inbounds i8, ptr %301, i64 144
  %303 = load i32, ptr %302, align 8, !tbaa !15
  %.not76 = icmp eq i32 %303, 0
  br i1 %.not76, label %304, label %306

304:                                              ; preds = %._crit_edge111
  %305 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.587)
  br label %306

306:                                              ; preds = %304, %._crit_edge111
  %307 = getelementptr inbounds i8, ptr %0, i64 56
  %308 = load ptr, ptr %307, align 8, !tbaa !35
  call void @_ZN10tetgenmesh10memorypool13traversalinitEv(ptr noundef nonnull align 8 dereferenceable(88) %308)
  %309 = call noundef ptr @_ZN10tetgenmesh13pointtraverseEv(ptr noundef nonnull align 8 dereferenceable(1536) %0)
  %.not77114 = icmp eq ptr %309, null
  br i1 %.not77114, label %._crit_edge119, label %.lr.ph118

.lr.ph118:                                        ; preds = %306
  %310 = getelementptr inbounds i8, ptr %9, i64 8
  br label %311

311:                                              ; preds = %.lr.ph118, %347
  %.18116 = phi i32 [ %.11.lcssa, %.lr.ph118 ], [ %.19, %347 ]
  %.064115 = phi ptr [ %309, %.lr.ph118 ], [ %348, %347 ]
  %312 = call noundef i32 @_ZN10tetgenmesh9pointtypeEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull %.064115)
  %313 = icmp eq i32 %312, 6
  br i1 %313, label %314, label %347

314:                                              ; preds = %311
  %315 = call noundef ptr @_ZN10tetgenmesh8point2shEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull %.064115)
  call void @_ZN10tetgenmesh7sdecodeEPPdRNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %315, ptr noundef nonnull align 8 dereferenceable(12) %8)
  %316 = load ptr, ptr %8, align 8, !tbaa !21
  %317 = icmp eq ptr %316, null
  br i1 %317, label %.sink.split, label %318

318:                                              ; preds = %314
  %319 = getelementptr inbounds i8, ptr %316, i64 24
  %320 = load ptr, ptr %319, align 8, !tbaa !20
  %321 = icmp eq ptr %320, null
  br i1 %321, label %.sink.split, label %322

322:                                              ; preds = %318
  store i32 0, ptr %207, align 8, !tbaa !31
  %323 = call noundef ptr @_ZN10tetgenmesh4sorgERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %8)
  %.not78 = icmp eq ptr %323, %.064115
  br i1 %.not78, label %335, label %324

324:                                              ; preds = %322
  %325 = call noundef ptr @_ZN10tetgenmesh5sdestERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %8)
  %.not80 = icmp eq ptr %325, %.064115
  br i1 %.not80, label %326, label %.sink.split

326:                                              ; preds = %324
  call void @_ZN10tetgenmesh6senextERNS_4faceES1_(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %8, ptr noundef nonnull align 8 dereferenceable(12) %9)
  %327 = load ptr, ptr %9, align 8, !tbaa !21
  %328 = icmp eq ptr %327, null
  br i1 %328, label %.sink.split, label %329

329:                                              ; preds = %326
  %330 = getelementptr inbounds i8, ptr %327, i64 24
  %331 = load ptr, ptr %330, align 8, !tbaa !20
  %332 = icmp eq ptr %331, null
  br i1 %332, label %.sink.split, label %333

333:                                              ; preds = %329
  call void @_ZN10tetgenmesh10spivotselfERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %9)
  store i32 0, ptr %310, align 8, !tbaa !31
  %334 = call noundef ptr @_ZN10tetgenmesh4sorgERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %9)
  %.not81 = icmp eq ptr %334, %.064115
  br i1 %.not81, label %347, label %.sink.split

335:                                              ; preds = %322
  call void @_ZN10tetgenmesh7senext2ERNS_4faceES1_(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %8, ptr noundef nonnull align 8 dereferenceable(12) %9)
  %336 = load ptr, ptr %9, align 8, !tbaa !21
  %337 = icmp eq ptr %336, null
  br i1 %337, label %.sink.split, label %338

338:                                              ; preds = %335
  %339 = getelementptr inbounds i8, ptr %336, i64 24
  %340 = load ptr, ptr %339, align 8, !tbaa !20
  %341 = icmp eq ptr %340, null
  br i1 %341, label %.sink.split, label %342

342:                                              ; preds = %338
  call void @_ZN10tetgenmesh10spivotselfERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %9)
  store i32 0, ptr %310, align 8, !tbaa !31
  %343 = call noundef ptr @_ZN10tetgenmesh5sdestERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %9)
  %.not79 = icmp eq ptr %343, %.064115
  br i1 %.not79, label %347, label %.sink.split

.sink.split:                                      ; preds = %342, %335, %338, %333, %326, %329, %324, %314, %318
  %.str.588.sink = phi ptr [ @.str.588, %318 ], [ @.str.588, %314 ], [ @.str.589, %324 ], [ @.str.590, %329 ], [ @.str.590, %326 ], [ @.str.591, %333 ], [ @.str.590, %338 ], [ @.str.590, %335 ], [ @.str.591, %342 ]
  %344 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull %.064115)
  %345 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.588.sink, i32 noundef %344)
  %346 = add nsw i32 %.18116, 1
  br label %347

347:                                              ; preds = %.sink.split, %342, %333, %311
  %.19 = phi i32 [ %.18116, %333 ], [ %.18116, %342 ], [ %.18116, %311 ], [ %346, %.sink.split ]
  %348 = call noundef ptr @_ZN10tetgenmesh13pointtraverseEv(ptr noundef nonnull align 8 dereferenceable(1536) %0)
  %.not77 = icmp eq ptr %348, null
  br i1 %.not77, label %._crit_edge119, label %311, !llvm.loop !36

._crit_edge119:                                   ; preds = %347, %306
  %.18.lcssa = phi i32 [ %.11.lcssa, %306 ], [ %.19, %347 ]
  %349 = icmp eq i32 %.18.lcssa, 0
  br i1 %349, label %350, label %352

350:                                              ; preds = %._crit_edge119
  %351 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.592)
  br label %354

352:                                              ; preds = %._crit_edge119
  %353 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.593, i32 noundef %.18.lcssa)
  br label %354

354:                                              ; preds = %352, %350
  %.not92 = icmp eq i32 %.062.lcssa, 0
  br i1 %.not92, label %357, label %355

355:                                              ; preds = %354
  %356 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.594, i32 noundef %.062.lcssa)
  br label %357

357:                                              ; preds = %355, %354
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #6
  ret i32 %.18.lcssa
}

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


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