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

@_ZN10tetgenmesh8ver2edgeE = external dso_local global [12 x i32], align 16
@.str.274 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.275 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.276 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.277 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.278 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.279 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.280 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.281 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.282 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.283 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.284 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.285 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.286 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.287 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.288 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.289 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.290 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.291 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.292 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.293 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.294 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.295 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.296 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.297 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.298 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.299 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.300 = external hidden unnamed_addr constant [30 x i8], align 1

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN10tetgenmesh11linelineintEPdS0_S0_S0_S0_S0_S0_S0_(ptr noundef nonnull align 8 dereferenceable(1536), ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #5 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 nounwind uwtable
declare dso_local noundef i32 @_ZN10tetgenmesh9shellmarkERNS_4faceE(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 @_ZN10tetgenmesh19report_selfint_edgeEPdS0_PNS_4faceEPNS_7trifaceENS_11interresultE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, i32 noundef %5) #5 align 2 {
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca %"class.tetgenmesh::face", align 8
  %20 = alloca %"class.tetgenmesh::face", align 8
  %21 = alloca %"class.tetgenmesh::face", align 8
  %22 = alloca %"class.tetgenmesh::face", align 8
  %23 = alloca ptr, align 8
  %24 = alloca %"class.tetgenmesh::face", align 8
  %25 = alloca %"class.tetgenmesh::face", align 8
  %26 = alloca ptr, align 8
  %27 = alloca ptr, align 8
  %28 = alloca %"class.tetgenmesh::face", align 8
  %29 = alloca ptr, align 8
  %30 = alloca ptr, align 8
  %31 = alloca ptr, align 8
  %32 = alloca %"class.tetgenmesh::face", align 8
  %33 = alloca %"class.tetgenmesh::face", align 8
  %34 = alloca ptr, align 8
  %35 = alloca ptr, align 8
  %36 = alloca [3 x double], align 16
  %37 = alloca [3 x double], align 16
  %38 = alloca double, align 8
  %39 = alloca double, align 8
  %40 = alloca %"class.tetgenmesh::face", align 8
  %41 = alloca ptr, align 8
  %42 = alloca ptr, align 8
  %43 = alloca ptr, align 8
  %44 = alloca [3 x double], align 16
  %45 = alloca double, align 8
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store ptr %2, ptr %9, align 8, !tbaa !5
  store ptr %3, ptr %10, align 8, !tbaa !5
  store ptr %4, ptr %11, align 8, !tbaa !5
  store i32 %5, ptr %12, align 4, !tbaa !9
  %46 = load ptr, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  store ptr null, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  store ptr null, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  store ptr null, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  store i32 0, ptr %16, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  store i32 0, ptr %17, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  store i32 0, ptr %18, align 4, !tbaa !11
  %47 = load ptr, ptr %10, align 8, !tbaa !5
  %48 = icmp ne ptr %47, null
  br i1 %48, label %49, label %78

49:                                               ; preds = %6
  %50 = load ptr, ptr %10, align 8, !tbaa !5
  %51 = getelementptr inbounds %"class.tetgenmesh::face", ptr %50, i32 0, i32 0
  %52 = load ptr, ptr %51, align 8, !tbaa !13
  %53 = getelementptr inbounds ptr, ptr %52, i64 5
  %54 = load ptr, ptr %53, align 8, !tbaa !5
  %55 = icmp ne ptr %54, null
  br i1 %55, label %56, label %63

56:                                               ; preds = %49
  store i32 2, ptr %16, align 4, !tbaa !11
  %57 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %57, ptr %13, align 8, !tbaa !5
  %58 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr %58, ptr %14, align 8, !tbaa !5
  %59 = load ptr, ptr %10, align 8, !tbaa !5
  %60 = call noundef ptr @_ZN10tetgenmesh5sapexERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef nonnull align 8 dereferenceable(12) %59)
  store ptr %60, ptr %15, align 8, !tbaa !5
  %61 = load ptr, ptr %10, align 8, !tbaa !5
  %62 = call noundef i32 @_ZN10tetgenmesh9shellmarkERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef nonnull align 8 dereferenceable(12) %61)
  store i32 %62, ptr %18, align 4, !tbaa !11
  br label %75

63:                                               ; preds = %49
  store i32 1, ptr %16, align 4, !tbaa !11
  %64 = load ptr, ptr %10, align 8, !tbaa !5
  %65 = call noundef ptr @_ZN10tetgenmesh7farsorgERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef nonnull align 8 dereferenceable(12) %64)
  store ptr %65, ptr %13, align 8, !tbaa !5
  %66 = load ptr, ptr %10, align 8, !tbaa !5
  %67 = call noundef ptr @_ZN10tetgenmesh8farsdestERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef nonnull align 8 dereferenceable(12) %66)
  store ptr %67, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #6
  call void @_ZN10tetgenmesh4faceC2Ev(ptr noundef nonnull align 8 dereferenceable(12) %19)
  %68 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN10tetgenmesh6spivotERNS_4faceES1_(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef nonnull align 8 dereferenceable(12) %68, ptr noundef nonnull align 8 dereferenceable(12) %19)
  %69 = getelementptr inbounds %"class.tetgenmesh::face", ptr %19, i32 0, i32 0
  %70 = load ptr, ptr %69, align 8, !tbaa !13
  %71 = icmp ne ptr %70, null
  br i1 %71, label %72, label %74

72:                                               ; preds = %63
  %73 = call noundef i32 @_ZN10tetgenmesh9shellmarkERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef nonnull align 8 dereferenceable(12) %19)
  store i32 %73, ptr %18, align 4, !tbaa !11
  br label %74

74:                                               ; preds = %72, %63
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #6
  br label %75

75:                                               ; preds = %74, %56
  %76 = load ptr, ptr %10, align 8, !tbaa !5
  %77 = call noundef i32 @_ZN10tetgenmesh9shellmarkERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef nonnull align 8 dereferenceable(12) %76)
  store i32 %77, ptr %17, align 4, !tbaa !11
  br label %78

78:                                               ; preds = %75, %6
  %79 = load i32, ptr %12, align 4, !tbaa !9
  %80 = icmp eq i32 %79, 3
  br i1 %80, label %81, label %138

81:                                               ; preds = %78
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #6
  call void @_ZN10tetgenmesh4faceC2Ev(ptr noundef nonnull align 8 dereferenceable(12) %20)
  %82 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_ZN10tetgenmesh9tsspivot1ERNS_7trifaceERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef nonnull align 8 dereferenceable(12) %82, ptr noundef nonnull align 8 dereferenceable(12) %20)
  %83 = load i32, ptr %16, align 4, !tbaa !11
  %84 = icmp eq i32 %83, 1
  br i1 %84, label %85, label %117

85:                                               ; preds = %81
  %86 = getelementptr inbounds %"class.tetgenmesh::face", ptr %20, i32 0, i32 0
  %87 = load ptr, ptr %86, align 8, !tbaa !13
  %88 = load ptr, ptr %10, align 8, !tbaa !5
  %89 = getelementptr inbounds %"class.tetgenmesh::face", ptr %88, i32 0, i32 0
  %90 = load ptr, ptr %89, align 8, !tbaa !13
  %91 = icmp ne ptr %87, %90
  br i1 %91, label %92, label %115

92:                                               ; preds = %85
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #6
  call void @_ZN10tetgenmesh4faceC2Ev(ptr noundef nonnull align 8 dereferenceable(12) %21)
  call void @_ZN10tetgenmesh6spivotERNS_4faceES1_(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef nonnull align 8 dereferenceable(12) %20, ptr noundef nonnull align 8 dereferenceable(12) %21)
  %93 = call i32 (ptr, ...) @printf(ptr noundef @.str.274)
  %94 = call noundef ptr @_ZN10tetgenmesh4sorgERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef nonnull align 8 dereferenceable(12) %20)
  %95 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef %94)
  %96 = call noundef ptr @_ZN10tetgenmesh5sdestERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef nonnull align 8 dereferenceable(12) %20)
  %97 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef %96)
  %98 = call noundef i32 @_ZN10tetgenmesh9shellmarkERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef nonnull align 8 dereferenceable(12) %20)
  %99 = getelementptr inbounds %"class.tetgenmesh::face", ptr %21, i32 0, i32 0
  %100 = load ptr, ptr %99, align 8, !tbaa !13
  %101 = icmp ne ptr %100, null
  br i1 %101, label %102, label %104

102:                                              ; preds = %92
  %103 = call noundef i32 @_ZN10tetgenmesh9shellmarkERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef nonnull align 8 dereferenceable(12) %21)
  br label %105

104:                                              ; preds = %92
  br label %105

105:                                              ; preds = %104, %102
  %106 = phi i32 [ %103, %102 ], [ 0, %104 ]
  %107 = call i32 (ptr, ...) @printf(ptr noundef @.str.275, i32 noundef %95, i32 noundef %97, i32 noundef %98, i32 noundef %106)
  %108 = load ptr, ptr %13, align 8, !tbaa !5
  %109 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef %108)
  %110 = load ptr, ptr %14, align 8, !tbaa !5
  %111 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef %110)
  %112 = load i32, ptr %17, align 4, !tbaa !11
  %113 = load i32, ptr %18, align 4, !tbaa !11
  %114 = call i32 (ptr, ...) @printf(ptr noundef @.str.276, i32 noundef %109, i32 noundef %111, i32 noundef %112, i32 noundef %113)
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #6
  br label %116

115:                                              ; preds = %85
  call void @_Z15terminatetetgenP10tetgenmeshi(ptr noundef %46, i32 noundef 2)
  br label %116

116:                                              ; preds = %115, %105
  br label %137

117:                                              ; preds = %81
  %118 = load i32, ptr %16, align 4, !tbaa !11
  %119 = icmp eq i32 %118, 2
  br i1 %119, label %120, label %136

120:                                              ; preds = %117
  %121 = call i32 (ptr, ...) @printf(ptr noundef @.str.277)
  %122 = call noundef ptr @_ZN10tetgenmesh4sorgERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef nonnull align 8 dereferenceable(12) %20)
  %123 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef %122)
  %124 = call noundef ptr @_ZN10tetgenmesh5sdestERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef nonnull align 8 dereferenceable(12) %20)
  %125 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef %124)
  %126 = call noundef i32 @_ZN10tetgenmesh9shellmarkERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef nonnull align 8 dereferenceable(12) %20)
  %127 = call i32 (ptr, ...) @printf(ptr noundef @.str.278, i32 noundef %123, i32 noundef %125, i32 noundef %126)
  %128 = load ptr, ptr %13, align 8, !tbaa !5
  %129 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef %128)
  %130 = load ptr, ptr %14, align 8, !tbaa !5
  %131 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef %130)
  %132 = load ptr, ptr %15, align 8, !tbaa !5
  %133 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef %132)
  %134 = load i32, ptr %17, align 4, !tbaa !11
  %135 = call i32 (ptr, ...) @printf(ptr noundef @.str.279, i32 noundef %129, i32 noundef %131, i32 noundef %133, i32 noundef %134)
  br label %136

136:                                              ; preds = %120, %117
  br label %137

137:                                              ; preds = %136, %116
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #6
  br label %618

138:                                              ; preds = %78
  %139 = load i32, ptr %12, align 4, !tbaa !9
  %140 = icmp eq i32 %139, 4
  br i1 %140, label %141, label %174

141:                                              ; preds = %138
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #6
  call void @_ZN10tetgenmesh4faceC2Ev(ptr noundef nonnull align 8 dereferenceable(12) %22)
  %142 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_ZN10tetgenmesh7tspivotERNS_7trifaceERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef nonnull align 8 dereferenceable(12) %142, ptr noundef nonnull align 8 dereferenceable(12) %22)
  %143 = load i32, ptr %16, align 4, !tbaa !11
  %144 = icmp eq i32 %143, 2
  br i1 %144, label %145, label %172

145:                                              ; preds = %141
  %146 = getelementptr inbounds %"class.tetgenmesh::face", ptr %22, i32 0, i32 0
  %147 = load ptr, ptr %146, align 8, !tbaa !13
  %148 = load ptr, ptr %10, align 8, !tbaa !5
  %149 = getelementptr inbounds %"class.tetgenmesh::face", ptr %148, i32 0, i32 0
  %150 = load ptr, ptr %149, align 8, !tbaa !13
  %151 = icmp ne ptr %147, %150
  br i1 %151, label %152, label %170

152:                                              ; preds = %145
  %153 = call i32 (ptr, ...) @printf(ptr noundef @.str.280)
  %154 = load ptr, ptr %13, align 8, !tbaa !5
  %155 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef %154)
  %156 = load ptr, ptr %14, align 8, !tbaa !5
  %157 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef %156)
  %158 = load ptr, ptr %15, align 8, !tbaa !5
  %159 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef %158)
  %160 = load i32, ptr %17, align 4, !tbaa !11
  %161 = call i32 (ptr, ...) @printf(ptr noundef @.str.281, i32 noundef %155, i32 noundef %157, i32 noundef %159, i32 noundef %160)
  %162 = call noundef ptr @_ZN10tetgenmesh4sorgERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef nonnull align 8 dereferenceable(12) %22)
  %163 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef %162)
  %164 = call noundef ptr @_ZN10tetgenmesh5sdestERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef nonnull align 8 dereferenceable(12) %22)
  %165 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef %164)
  %166 = call noundef ptr @_ZN10tetgenmesh5sapexERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef nonnull align 8 dereferenceable(12) %22)
  %167 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef %166)
  %168 = call noundef i32 @_ZN10tetgenmesh9shellmarkERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef nonnull align 8 dereferenceable(12) %22)
  %169 = call i32 (ptr, ...) @printf(ptr noundef @.str.282, i32 noundef %163, i32 noundef %165, i32 noundef %167, i32 noundef %168)
  br label %171

170:                                              ; preds = %145
  call void @_Z15terminatetetgenP10tetgenmeshi(ptr noundef %46, i32 noundef 2)
  br label %171

171:                                              ; preds = %170, %152
  br label %173

172:                                              ; preds = %141
  call void @_Z15terminatetetgenP10tetgenmeshi(ptr noundef %46, i32 noundef 2)
  br label %173

173:                                              ; preds = %172, %171
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #6
  br label %617

174:                                              ; preds = %138
  %175 = load i32, ptr %12, align 4, !tbaa !9
  %176 = icmp eq i32 %175, 7
  br i1 %176, label %177, label %417

177:                                              ; preds = %174
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  %178 = load ptr, ptr %11, align 8, !tbaa !5
  %179 = call noundef ptr @_ZN10tetgenmesh4destERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef nonnull align 8 dereferenceable(12) %178)
  store ptr %179, ptr %23, align 8, !tbaa !5
  %180 = load ptr, ptr %23, align 8, !tbaa !5
  %181 = call noundef i32 @_ZN10tetgenmesh9pointtypeEPd(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef %180)
  %182 = icmp eq i32 %181, 2
  br i1 %182, label %191, label %183

183:                                              ; preds = %177
  %184 = load ptr, ptr %23, align 8, !tbaa !5
  %185 = call noundef i32 @_ZN10tetgenmesh9pointtypeEPd(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef %184)
  %186 = icmp eq i32 %185, 4
  br i1 %186, label %191, label %187

187:                                              ; preds = %183
  %188 = load ptr, ptr %23, align 8, !tbaa !5
  %189 = call noundef i32 @_ZN10tetgenmesh9pointtypeEPd(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef %188)
  %190 = icmp eq i32 %189, 5
  br i1 %190, label %191, label %242

191:                                              ; preds = %187, %183, %177
  %192 = load i32, ptr %16, align 4, !tbaa !11
  %193 = icmp eq i32 %192, 1
  br i1 %193, label %194, label %215

194:                                              ; preds = %191
  %195 = call i32 (ptr, ...) @printf(ptr noundef @.str.283)
  %196 = load ptr, ptr %23, align 8, !tbaa !5
  %197 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef %196)
  %198 = load ptr, ptr %23, align 8, !tbaa !5
  %199 = getelementptr inbounds double, ptr %198, i64 0
  %200 = load double, ptr %199, align 8, !tbaa !15
  %201 = load ptr, ptr %23, align 8, !tbaa !5
  %202 = getelementptr inbounds double, ptr %201, i64 1
  %203 = load double, ptr %202, align 8, !tbaa !15
  %204 = load ptr, ptr %23, align 8, !tbaa !5
  %205 = getelementptr inbounds double, ptr %204, i64 2
  %206 = load double, ptr %205, align 8, !tbaa !15
  %207 = call i32 (ptr, ...) @printf(ptr noundef @.str.284, i32 noundef %197, double noundef %200, double noundef %203, double noundef %206)
  %208 = load ptr, ptr %13, align 8, !tbaa !5
  %209 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef %208)
  %210 = load ptr, ptr %14, align 8, !tbaa !5
  %211 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef %210)
  %212 = load i32, ptr %17, align 4, !tbaa !11
  %213 = load i32, ptr %18, align 4, !tbaa !11
  %214 = call i32 (ptr, ...) @printf(ptr noundef @.str.285, i32 noundef %209, i32 noundef %211, i32 noundef %212, i32 noundef %213)
  br label %241

215:                                              ; preds = %191
  %216 = load i32, ptr %16, align 4, !tbaa !11
  %217 = icmp eq i32 %216, 2
  br i1 %217, label %218, label %240

218:                                              ; preds = %215
  %219 = call i32 (ptr, ...) @printf(ptr noundef @.str.286)
  %220 = load ptr, ptr %23, align 8, !tbaa !5
  %221 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef %220)
  %222 = load ptr, ptr %23, align 8, !tbaa !5
  %223 = getelementptr inbounds double, ptr %222, i64 0
  %224 = load double, ptr %223, align 8, !tbaa !15
  %225 = load ptr, ptr %23, align 8, !tbaa !5
  %226 = getelementptr inbounds double, ptr %225, i64 1
  %227 = load double, ptr %226, align 8, !tbaa !15
  %228 = load ptr, ptr %23, align 8, !tbaa !5
  %229 = getelementptr inbounds double, ptr %228, i64 2
  %230 = load double, ptr %229, align 8, !tbaa !15
  %231 = call i32 (ptr, ...) @printf(ptr noundef @.str.287, i32 noundef %221, double noundef %224, double noundef %227, double noundef %230)
  %232 = load ptr, ptr %13, align 8, !tbaa !5
  %233 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef %232)
  %234 = load ptr, ptr %14, align 8, !tbaa !5
  %235 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef %234)
  %236 = load ptr, ptr %15, align 8, !tbaa !5
  %237 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef %236)
  %238 = load i32, ptr %17, align 4, !tbaa !11
  %239 = call i32 (ptr, ...) @printf(ptr noundef @.str.288, i32 noundef %233, i32 noundef %235, i32 noundef %237, i32 noundef %238)
  br label %240

240:                                              ; preds = %218, %215
  br label %241

241:                                              ; preds = %240, %194
  br label %416

242:                                              ; preds = %187
  %243 = load ptr, ptr %23, align 8, !tbaa !5
  %244 = call noundef i32 @_ZN10tetgenmesh9pointtypeEPd(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef %243)
  %245 = icmp eq i32 %244, 6
  br i1 %245, label %246, label %330

246:                                              ; preds = %242
  call void @llvm.lifetime.start.p0(i64 16, ptr %24) #6
  call void @_ZN10tetgenmesh4faceC2Ev(ptr noundef nonnull align 8 dereferenceable(12) %24)
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #6
  call void @_ZN10tetgenmesh4faceC2Ev(ptr noundef nonnull align 8 dereferenceable(12) %25)
  %247 = load ptr, ptr %23, align 8, !tbaa !5
  %248 = call noundef ptr @_ZN10tetgenmesh8point2shEPd(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef %247)
  call void @_ZN10tetgenmesh7sdecodeEPPdRNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef %248, ptr noundef nonnull align 8 dereferenceable(12) %24)
  call void @_ZN10tetgenmesh6spivotERNS_4faceES1_(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef nonnull align 8 dereferenceable(12) %24, ptr noundef nonnull align 8 dereferenceable(12) %25)
  %249 = getelementptr inbounds %"class.tetgenmesh::face", ptr %24, i32 0, i32 0
  %250 = load ptr, ptr %249, align 8, !tbaa !13
  %251 = icmp ne ptr %250, null
  br i1 %251, label %252, label %328

252:                                              ; preds = %246
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #6
  %253 = call noundef ptr @_ZN10tetgenmesh7farsorgERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef nonnull align 8 dereferenceable(12) %24)
  store ptr %253, ptr %26, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #6
  %254 = call noundef ptr @_ZN10tetgenmesh8farsdestERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef nonnull align 8 dereferenceable(12) %24)
  store ptr %254, ptr %27, align 8, !tbaa !5
  %255 = load i32, ptr %16, align 4, !tbaa !11
  %256 = icmp eq i32 %255, 1
  br i1 %256, label %257, label %289

257:                                              ; preds = %252
  %258 = load ptr, ptr %23, align 8, !tbaa !5
  %259 = getelementptr inbounds double, ptr %258, i64 0
  %260 = load double, ptr %259, align 8, !tbaa !15
  %261 = load ptr, ptr %23, align 8, !tbaa !5
  %262 = getelementptr inbounds double, ptr %261, i64 1
  %263 = load double, ptr %262, align 8, !tbaa !15
  %264 = load ptr, ptr %23, align 8, !tbaa !5
  %265 = getelementptr inbounds double, ptr %264, i64 2
  %266 = load double, ptr %265, align 8, !tbaa !15
  %267 = call i32 (ptr, ...) @printf(ptr noundef @.str.289, double noundef %260, double noundef %263, double noundef %266)
  %268 = load ptr, ptr %13, align 8, !tbaa !5
  %269 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef %268)
  %270 = load ptr, ptr %14, align 8, !tbaa !5
  %271 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef %270)
  %272 = load i32, ptr %17, align 4, !tbaa !11
  %273 = load i32, ptr %18, align 4, !tbaa !11
  %274 = call i32 (ptr, ...) @printf(ptr noundef @.str.290, i32 noundef %269, i32 noundef %271, i32 noundef %272, i32 noundef %273)
  %275 = load ptr, ptr %26, align 8, !tbaa !5
  %276 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef %275)
  %277 = load ptr, ptr %27, align 8, !tbaa !5
  %278 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef %277)
  %279 = call noundef i32 @_ZN10tetgenmesh9shellmarkERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef nonnull align 8 dereferenceable(12) %24)
  %280 = getelementptr inbounds %"class.tetgenmesh::face", ptr %25, i32 0, i32 0
  %281 = load ptr, ptr %280, align 8, !tbaa !13
  %282 = icmp ne ptr %281, null
  br i1 %282, label %283, label %285

283:                                              ; preds = %257
  %284 = call noundef i32 @_ZN10tetgenmesh9shellmarkERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef nonnull align 8 dereferenceable(12) %25)
  br label %286

285:                                              ; preds = %257
  br label %286

286:                                              ; preds = %285, %283
  %287 = phi i32 [ %284, %283 ], [ 0, %285 ]
  %288 = call i32 (ptr, ...) @printf(ptr noundef @.str.291, i32 noundef %276, i32 noundef %278, i32 noundef %279, i32 noundef %287)
  br label %327

289:                                              ; preds = %252
  %290 = load i32, ptr %16, align 4, !tbaa !11
  %291 = icmp eq i32 %290, 2
  br i1 %291, label %292, label %326

292:                                              ; preds = %289
  %293 = call i32 (ptr, ...) @printf(ptr noundef @.str.292)
  %294 = load ptr, ptr %23, align 8, !tbaa !5
  %295 = getelementptr inbounds double, ptr %294, i64 0
  %296 = load double, ptr %295, align 8, !tbaa !15
  %297 = load ptr, ptr %23, align 8, !tbaa !5
  %298 = getelementptr inbounds double, ptr %297, i64 1
  %299 = load double, ptr %298, align 8, !tbaa !15
  %300 = load ptr, ptr %23, align 8, !tbaa !5
  %301 = getelementptr inbounds double, ptr %300, i64 2
  %302 = load double, ptr %301, align 8, !tbaa !15
  %303 = call i32 (ptr, ...) @printf(ptr noundef @.str.293, double noundef %296, double noundef %299, double noundef %302)
  %304 = load ptr, ptr %26, align 8, !tbaa !5
  %305 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef %304)
  %306 = load ptr, ptr %27, align 8, !tbaa !5
  %307 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef %306)
  %308 = call noundef i32 @_ZN10tetgenmesh9shellmarkERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef nonnull align 8 dereferenceable(12) %24)
  %309 = getelementptr inbounds %"class.tetgenmesh::face", ptr %25, i32 0, i32 0
  %310 = load ptr, ptr %309, align 8, !tbaa !13
  %311 = icmp ne ptr %310, null
  br i1 %311, label %312, label %314

312:                                              ; preds = %292
  %313 = call noundef i32 @_ZN10tetgenmesh9shellmarkERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef nonnull align 8 dereferenceable(12) %25)
  br label %315

314:                                              ; preds = %292
  br label %315

315:                                              ; preds = %314, %312
  %316 = phi i32 [ %313, %312 ], [ 0, %314 ]
  %317 = call i32 (ptr, ...) @printf(ptr noundef @.str.294, i32 noundef %305, i32 noundef %307, i32 noundef %308, i32 noundef %316)
  %318 = load ptr, ptr %13, align 8, !tbaa !5
  %319 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef %318)
  %320 = load ptr, ptr %14, align 8, !tbaa !5
  %321 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef %320)
  %322 = load ptr, ptr %15, align 8, !tbaa !5
  %323 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef %322)
  %324 = load i32, ptr %17, align 4, !tbaa !11
  %325 = call i32 (ptr, ...) @printf(ptr noundef @.str.279, i32 noundef %319, i32 noundef %321, i32 noundef %323, i32 noundef %324)
  br label %326

326:                                              ; preds = %315, %289
  br label %327

327:                                              ; preds = %326, %286
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #6
  br label %329

328:                                              ; preds = %246
  call void @_Z15terminatetetgenP10tetgenmeshi(ptr noundef %46, i32 noundef 2)
  br label %329

329:                                              ; preds = %328, %327
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #6
  br label %415

330:                                              ; preds = %242
  %331 = load ptr, ptr %23, align 8, !tbaa !5
  %332 = call noundef i32 @_ZN10tetgenmesh9pointtypeEPd(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef %331)
  %333 = icmp eq i32 %332, 7
  br i1 %333, label %334, label %407

334:                                              ; preds = %330
  call void @llvm.lifetime.start.p0(i64 16, ptr %28) #6
  call void @_ZN10tetgenmesh4faceC2Ev(ptr noundef nonnull align 8 dereferenceable(12) %28)
  %335 = load ptr, ptr %23, align 8, !tbaa !5
  %336 = call noundef ptr @_ZN10tetgenmesh8point2shEPd(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef %335)
  call void @_ZN10tetgenmesh7sdecodeEPPdRNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef %336, ptr noundef nonnull align 8 dereferenceable(12) %28)
  %337 = getelementptr inbounds %"class.tetgenmesh::face", ptr %28, i32 0, i32 0
  %338 = load ptr, ptr %337, align 8, !tbaa !13
  %339 = icmp ne ptr %338, null
  br i1 %339, label %340, label %405

340:                                              ; preds = %334
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #6
  %341 = call noundef ptr @_ZN10tetgenmesh4sorgERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef nonnull align 8 dereferenceable(12) %28)
  store ptr %341, ptr %29, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #6
  %342 = call noundef ptr @_ZN10tetgenmesh5sdestERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef nonnull align 8 dereferenceable(12) %28)
  store ptr %342, ptr %30, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #6
  %343 = call noundef ptr @_ZN10tetgenmesh5sapexERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef nonnull align 8 dereferenceable(12) %28)
  store ptr %343, ptr %31, align 8, !tbaa !5
  %344 = load i32, ptr %16, align 4, !tbaa !11
  %345 = icmp eq i32 %344, 1
  br i1 %345, label %346, label %373

346:                                              ; preds = %340
  %347 = call i32 (ptr, ...) @printf(ptr noundef @.str.292)
  %348 = load ptr, ptr %23, align 8, !tbaa !5
  %349 = getelementptr inbounds double, ptr %348, i64 0
  %350 = load double, ptr %349, align 8, !tbaa !15
  %351 = load ptr, ptr %23, align 8, !tbaa !5
  %352 = getelementptr inbounds double, ptr %351, i64 1
  %353 = load double, ptr %352, align 8, !tbaa !15
  %354 = load ptr, ptr %23, align 8, !tbaa !5
  %355 = getelementptr inbounds double, ptr %354, i64 2
  %356 = load double, ptr %355, align 8, !tbaa !15
  %357 = call i32 (ptr, ...) @printf(ptr noundef @.str.293, double noundef %350, double noundef %353, double noundef %356)
  %358 = load ptr, ptr %13, align 8, !tbaa !5
  %359 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef %358)
  %360 = load ptr, ptr %14, align 8, !tbaa !5
  %361 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef %360)
  %362 = load i32, ptr %17, align 4, !tbaa !11
  %363 = load i32, ptr %18, align 4, !tbaa !11
  %364 = call i32 (ptr, ...) @printf(ptr noundef @.str.295, i32 noundef %359, i32 noundef %361, i32 noundef %362, i32 noundef %363)
  %365 = load ptr, ptr %29, align 8, !tbaa !5
  %366 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef %365)
  %367 = load ptr, ptr %30, align 8, !tbaa !5
  %368 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef %367)
  %369 = load ptr, ptr %31, align 8, !tbaa !5
  %370 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef %369)
  %371 = call noundef i32 @_ZN10tetgenmesh9shellmarkERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef nonnull align 8 dereferenceable(12) %28)
  %372 = call i32 (ptr, ...) @printf(ptr noundef @.str.296, i32 noundef %366, i32 noundef %368, i32 noundef %370, i32 noundef %371)
  br label %404

373:                                              ; preds = %340
  %374 = load i32, ptr %16, align 4, !tbaa !11
  %375 = icmp eq i32 %374, 2
  br i1 %375, label %376, label %403

376:                                              ; preds = %373
  %377 = load ptr, ptr %23, align 8, !tbaa !5
  %378 = getelementptr inbounds double, ptr %377, i64 0
  %379 = load double, ptr %378, align 8, !tbaa !15
  %380 = load ptr, ptr %23, align 8, !tbaa !5
  %381 = getelementptr inbounds double, ptr %380, i64 1
  %382 = load double, ptr %381, align 8, !tbaa !15
  %383 = load ptr, ptr %23, align 8, !tbaa !5
  %384 = getelementptr inbounds double, ptr %383, i64 2
  %385 = load double, ptr %384, align 8, !tbaa !15
  %386 = call i32 (ptr, ...) @printf(ptr noundef @.str.297, double noundef %379, double noundef %382, double noundef %385)
  %387 = load ptr, ptr %13, align 8, !tbaa !5
  %388 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef %387)
  %389 = load ptr, ptr %14, align 8, !tbaa !5
  %390 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef %389)
  %391 = load ptr, ptr %15, align 8, !tbaa !5
  %392 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef %391)
  %393 = load i32, ptr %17, align 4, !tbaa !11
  %394 = call i32 (ptr, ...) @printf(ptr noundef @.str.298, i32 noundef %388, i32 noundef %390, i32 noundef %392, i32 noundef %393)
  %395 = load ptr, ptr %29, align 8, !tbaa !5
  %396 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef %395)
  %397 = load ptr, ptr %30, align 8, !tbaa !5
  %398 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef %397)
  %399 = load ptr, ptr %31, align 8, !tbaa !5
  %400 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef %399)
  %401 = call noundef i32 @_ZN10tetgenmesh9shellmarkERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef nonnull align 8 dereferenceable(12) %28)
  %402 = call i32 (ptr, ...) @printf(ptr noundef @.str.299, i32 noundef %396, i32 noundef %398, i32 noundef %400, i32 noundef %401)
  br label %403

403:                                              ; preds = %376, %373
  br label %404

404:                                              ; preds = %403, %346
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #6
  br label %406

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

406:                                              ; preds = %405, %404
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #6
  br label %414

407:                                              ; preds = %330
  %408 = load ptr, ptr %23, align 8, !tbaa !5
  %409 = call noundef i32 @_ZN10tetgenmesh9pointtypeEPd(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef %408)
  %410 = icmp eq i32 %409, 8
  br i1 %410, label %411, label %412

411:                                              ; preds = %407
  call void @_Z15terminatetetgenP10tetgenmeshi(ptr noundef %46, i32 noundef 2)
  br label %413

412:                                              ; preds = %407
  call void @_Z15terminatetetgenP10tetgenmeshi(ptr noundef %46, i32 noundef 2)
  br label %413

413:                                              ; preds = %412, %411
  br label %414

414:                                              ; preds = %413, %406
  br label %415

415:                                              ; preds = %414, %329
  br label %416

416:                                              ; preds = %415, %241
  call void @_Z15terminatetetgenP10tetgenmeshi(ptr noundef %46, i32 noundef 3)
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  br label %616

417:                                              ; preds = %174
  %418 = load i32, ptr %12, align 4, !tbaa !9
  %419 = icmp eq i32 %418, 8
  br i1 %419, label %420, label %522

420:                                              ; preds = %417
  %421 = load ptr, ptr %11, align 8, !tbaa !5
  %422 = getelementptr inbounds %"class.tetgenmesh::triface", ptr %421, i32 0, i32 0
  %423 = load ptr, ptr %422, align 8, !tbaa !17
  %424 = getelementptr inbounds ptr, ptr %423, i64 8
  %425 = load ptr, ptr %424, align 8, !tbaa !5
  %426 = icmp ne ptr %425, null
  br i1 %426, label %427, label %521

427:                                              ; preds = %420
  %428 = load ptr, ptr %11, align 8, !tbaa !5
  %429 = getelementptr inbounds %"class.tetgenmesh::triface", ptr %428, i32 0, i32 0
  %430 = load ptr, ptr %429, align 8, !tbaa !17
  %431 = getelementptr inbounds ptr, ptr %430, i64 8
  %432 = load ptr, ptr %431, align 8, !tbaa !5
  %433 = load ptr, ptr %11, align 8, !tbaa !5
  %434 = getelementptr inbounds %"class.tetgenmesh::triface", ptr %433, i32 0, i32 1
  %435 = load i32, ptr %434, align 8, !tbaa !19
  %436 = sext i32 %435 to i64
  %437 = getelementptr inbounds [12 x i32], ptr @_ZN10tetgenmesh8ver2edgeE, i64 0, i64 %436
  %438 = load i32, ptr %437, align 4, !tbaa !11
  %439 = sext i32 %438 to i64
  %440 = getelementptr inbounds ptr, ptr %432, i64 %439
  %441 = load ptr, ptr %440, align 8, !tbaa !5
  %442 = icmp ne ptr %441, null
  br i1 %442, label %443, label %521

443:                                              ; preds = %427
  call void @llvm.lifetime.start.p0(i64 16, ptr %32) #6
  call void @_ZN10tetgenmesh4faceC2Ev(ptr noundef nonnull align 8 dereferenceable(12) %32)
  %444 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_ZN10tetgenmesh9tsspivot1ERNS_7trifaceERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef nonnull align 8 dereferenceable(12) %444, ptr noundef nonnull align 8 dereferenceable(12) %32)
  call void @llvm.lifetime.start.p0(i64 16, ptr %33) #6
  call void @_ZN10tetgenmesh4faceC2Ev(ptr noundef nonnull align 8 dereferenceable(12) %33)
  call void @_ZN10tetgenmesh6spivotERNS_4faceES1_(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef nonnull align 8 dereferenceable(12) %32, ptr noundef nonnull align 8 dereferenceable(12) %33)
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #6
  %445 = call noundef ptr @_ZN10tetgenmesh4sorgERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef nonnull align 8 dereferenceable(12) %32)
  store ptr %445, ptr %34, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #6
  %446 = call noundef ptr @_ZN10tetgenmesh5sdestERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef nonnull align 8 dereferenceable(12) %32)
  store ptr %446, ptr %35, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %36) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %37) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #6
  store double 0.000000e+00, ptr %38, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #6
  store double 0.000000e+00, ptr %39, align 8, !tbaa !15
  %447 = load ptr, ptr %8, align 8, !tbaa !5
  %448 = load ptr, ptr %9, align 8, !tbaa !5
  %449 = load ptr, ptr %34, align 8, !tbaa !5
  %450 = load ptr, ptr %35, align 8, !tbaa !5
  %451 = getelementptr inbounds [3 x double], ptr %36, i64 0, i64 0
  %452 = getelementptr inbounds [3 x double], ptr %37, i64 0, i64 0
  %453 = call noundef i32 @_ZN10tetgenmesh11linelineintEPdS0_S0_S0_S0_S0_S0_S0_(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef %447, ptr noundef %448, ptr noundef %449, ptr noundef %450, ptr noundef %451, ptr noundef %452, ptr noundef %38, ptr noundef %39)
  %454 = load i32, ptr %16, align 4, !tbaa !11
  %455 = icmp eq i32 %454, 1
  br i1 %455, label %456, label %485

456:                                              ; preds = %443
  %457 = getelementptr inbounds [3 x double], ptr %36, i64 0, i64 0
  %458 = load double, ptr %457, align 16, !tbaa !15
  %459 = getelementptr inbounds [3 x double], ptr %36, i64 0, i64 1
  %460 = load double, ptr %459, align 8, !tbaa !15
  %461 = getelementptr inbounds [3 x double], ptr %36, i64 0, i64 2
  %462 = load double, ptr %461, align 16, !tbaa !15
  %463 = call i32 (ptr, ...) @printf(ptr noundef @.str.289, double noundef %458, double noundef %460, double noundef %462)
  %464 = load ptr, ptr %13, align 8, !tbaa !5
  %465 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef %464)
  %466 = load ptr, ptr %14, align 8, !tbaa !5
  %467 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef %466)
  %468 = load i32, ptr %17, align 4, !tbaa !11
  %469 = load i32, ptr %18, align 4, !tbaa !11
  %470 = call i32 (ptr, ...) @printf(ptr noundef @.str.275, i32 noundef %465, i32 noundef %467, i32 noundef %468, i32 noundef %469)
  %471 = load ptr, ptr %34, align 8, !tbaa !5
  %472 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef %471)
  %473 = load ptr, ptr %35, align 8, !tbaa !5
  %474 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef %473)
  %475 = call noundef i32 @_ZN10tetgenmesh9shellmarkERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef nonnull align 8 dereferenceable(12) %32)
  %476 = getelementptr inbounds %"class.tetgenmesh::face", ptr %33, i32 0, i32 0
  %477 = load ptr, ptr %476, align 8, !tbaa !13
  %478 = icmp ne ptr %477, null
  br i1 %478, label %479, label %481

479:                                              ; preds = %456
  %480 = call noundef i32 @_ZN10tetgenmesh9shellmarkERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef nonnull align 8 dereferenceable(12) %33)
  br label %482

481:                                              ; preds = %456
  br label %482

482:                                              ; preds = %481, %479
  %483 = phi i32 [ %480, %479 ], [ 0, %481 ]
  %484 = call i32 (ptr, ...) @printf(ptr noundef @.str.276, i32 noundef %472, i32 noundef %474, i32 noundef %475, i32 noundef %483)
  br label %520

485:                                              ; preds = %443
  %486 = load i32, ptr %16, align 4, !tbaa !11
  %487 = icmp eq i32 %486, 2
  br i1 %487, label %488, label %519

488:                                              ; preds = %485
  %489 = call i32 (ptr, ...) @printf(ptr noundef @.str.292)
  %490 = getelementptr inbounds [3 x double], ptr %36, i64 0, i64 0
  %491 = load double, ptr %490, align 16, !tbaa !15
  %492 = getelementptr inbounds [3 x double], ptr %36, i64 0, i64 1
  %493 = load double, ptr %492, align 8, !tbaa !15
  %494 = getelementptr inbounds [3 x double], ptr %36, i64 0, i64 2
  %495 = load double, ptr %494, align 16, !tbaa !15
  %496 = call i32 (ptr, ...) @printf(ptr noundef @.str.293, double noundef %491, double noundef %493, double noundef %495)
  %497 = load ptr, ptr %34, align 8, !tbaa !5
  %498 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef %497)
  %499 = load ptr, ptr %35, align 8, !tbaa !5
  %500 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef %499)
  %501 = call noundef i32 @_ZN10tetgenmesh9shellmarkERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef nonnull align 8 dereferenceable(12) %32)
  %502 = getelementptr inbounds %"class.tetgenmesh::face", ptr %33, i32 0, i32 0
  %503 = load ptr, ptr %502, align 8, !tbaa !13
  %504 = icmp ne ptr %503, null
  br i1 %504, label %505, label %507

505:                                              ; preds = %488
  %506 = call noundef i32 @_ZN10tetgenmesh9shellmarkERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef nonnull align 8 dereferenceable(12) %33)
  br label %508

507:                                              ; preds = %488
  br label %508

508:                                              ; preds = %507, %505
  %509 = phi i32 [ %506, %505 ], [ 0, %507 ]
  %510 = call i32 (ptr, ...) @printf(ptr noundef @.str.285, i32 noundef %498, i32 noundef %500, i32 noundef %501, i32 noundef %509)
  %511 = load ptr, ptr %13, align 8, !tbaa !5
  %512 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef %511)
  %513 = load ptr, ptr %14, align 8, !tbaa !5
  %514 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef %513)
  %515 = load ptr, ptr %15, align 8, !tbaa !5
  %516 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef %515)
  %517 = load i32, ptr %17, align 4, !tbaa !11
  %518 = call i32 (ptr, ...) @printf(ptr noundef @.str.300, i32 noundef %512, i32 noundef %514, i32 noundef %516, i32 noundef %517)
  br label %519

519:                                              ; preds = %508, %485
  br label %520

520:                                              ; preds = %519, %482
  call void @_Z15terminatetetgenP10tetgenmeshi(ptr noundef %46, i32 noundef 3)
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %37) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %36) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %33) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %32) #6
  br label %521

521:                                              ; preds = %520, %427, %420
  br label %615

522:                                              ; preds = %417
  %523 = load i32, ptr %12, align 4, !tbaa !9
  %524 = icmp eq i32 %523, 9
  br i1 %524, label %525, label %613

525:                                              ; preds = %522
  %526 = load ptr, ptr %11, align 8, !tbaa !5
  %527 = getelementptr inbounds %"class.tetgenmesh::triface", ptr %526, i32 0, i32 0
  %528 = load ptr, ptr %527, align 8, !tbaa !17
  %529 = getelementptr inbounds ptr, ptr %528, i64 9
  %530 = load ptr, ptr %529, align 8, !tbaa !5
  %531 = icmp ne ptr %530, null
  br i1 %531, label %532, label %612

532:                                              ; preds = %525
  %533 = load ptr, ptr %11, align 8, !tbaa !5
  %534 = getelementptr inbounds %"class.tetgenmesh::triface", ptr %533, i32 0, i32 0
  %535 = load ptr, ptr %534, align 8, !tbaa !17
  %536 = getelementptr inbounds ptr, ptr %535, i64 9
  %537 = load ptr, ptr %536, align 8, !tbaa !5
  %538 = load ptr, ptr %11, align 8, !tbaa !5
  %539 = getelementptr inbounds %"class.tetgenmesh::triface", ptr %538, i32 0, i32 1
  %540 = load i32, ptr %539, align 8, !tbaa !19
  %541 = and i32 %540, 3
  %542 = sext i32 %541 to i64
  %543 = getelementptr inbounds ptr, ptr %537, i64 %542
  %544 = load ptr, ptr %543, align 8, !tbaa !5
  %545 = icmp ne ptr %544, null
  br i1 %545, label %546, label %612

546:                                              ; preds = %532
  call void @llvm.lifetime.start.p0(i64 16, ptr %40) #6
  call void @_ZN10tetgenmesh4faceC2Ev(ptr noundef nonnull align 8 dereferenceable(12) %40)
  %547 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_ZN10tetgenmesh7tspivotERNS_7trifaceERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef nonnull align 8 dereferenceable(12) %547, ptr noundef nonnull align 8 dereferenceable(12) %40)
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #6
  %548 = call noundef ptr @_ZN10tetgenmesh4sorgERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef nonnull align 8 dereferenceable(12) %40)
  store ptr %548, ptr %41, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #6
  %549 = call noundef ptr @_ZN10tetgenmesh5sdestERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef nonnull align 8 dereferenceable(12) %40)
  store ptr %549, ptr %42, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %43) #6
  %550 = call noundef ptr @_ZN10tetgenmesh5sapexERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef nonnull align 8 dereferenceable(12) %40)
  store ptr %550, ptr %43, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %44) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #6
  store double 0.000000e+00, ptr %45, align 8, !tbaa !15
  %551 = load ptr, ptr %41, align 8, !tbaa !5
  %552 = load ptr, ptr %42, align 8, !tbaa !5
  %553 = load ptr, ptr %43, align 8, !tbaa !5
  %554 = load ptr, ptr %8, align 8, !tbaa !5
  %555 = load ptr, ptr %9, align 8, !tbaa !5
  %556 = getelementptr inbounds [3 x double], ptr %44, i64 0, i64 0
  call void @_ZN10tetgenmesh12planelineintEPdS0_S0_S0_S0_S0_S0_(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef %551, ptr noundef %552, ptr noundef %553, ptr noundef %554, ptr noundef %555, ptr noundef %556, ptr noundef %45)
  %557 = load i32, ptr %16, align 4, !tbaa !11
  %558 = icmp eq i32 %557, 1
  br i1 %558, label %559, label %583

559:                                              ; preds = %546
  %560 = call i32 (ptr, ...) @printf(ptr noundef @.str.292)
  %561 = getelementptr inbounds [3 x double], ptr %44, i64 0, i64 0
  %562 = load double, ptr %561, align 16, !tbaa !15
  %563 = getelementptr inbounds [3 x double], ptr %44, i64 0, i64 1
  %564 = load double, ptr %563, align 8, !tbaa !15
  %565 = getelementptr inbounds [3 x double], ptr %44, i64 0, i64 2
  %566 = load double, ptr %565, align 16, !tbaa !15
  %567 = call i32 (ptr, ...) @printf(ptr noundef @.str.293, double noundef %562, double noundef %564, double noundef %566)
  %568 = load ptr, ptr %13, align 8, !tbaa !5
  %569 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef %568)
  %570 = load ptr, ptr %14, align 8, !tbaa !5
  %571 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef %570)
  %572 = load i32, ptr %17, align 4, !tbaa !11
  %573 = load i32, ptr %18, align 4, !tbaa !11
  %574 = call i32 (ptr, ...) @printf(ptr noundef @.str.285, i32 noundef %569, i32 noundef %571, i32 noundef %572, i32 noundef %573)
  %575 = load ptr, ptr %41, align 8, !tbaa !5
  %576 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef %575)
  %577 = load ptr, ptr %42, align 8, !tbaa !5
  %578 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef %577)
  %579 = load ptr, ptr %43, align 8, !tbaa !5
  %580 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef %579)
  %581 = call noundef i32 @_ZN10tetgenmesh9shellmarkERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef nonnull align 8 dereferenceable(12) %40)
  %582 = call i32 (ptr, ...) @printf(ptr noundef @.str.300, i32 noundef %576, i32 noundef %578, i32 noundef %580, i32 noundef %581)
  br label %611

583:                                              ; preds = %546
  %584 = load i32, ptr %16, align 4, !tbaa !11
  %585 = icmp eq i32 %584, 2
  br i1 %585, label %586, label %610

586:                                              ; preds = %583
  %587 = getelementptr inbounds [3 x double], ptr %44, i64 0, i64 0
  %588 = load double, ptr %587, align 16, !tbaa !15
  %589 = getelementptr inbounds [3 x double], ptr %44, i64 0, i64 1
  %590 = load double, ptr %589, align 8, !tbaa !15
  %591 = getelementptr inbounds [3 x double], ptr %44, i64 0, i64 2
  %592 = load double, ptr %591, align 16, !tbaa !15
  %593 = call i32 (ptr, ...) @printf(ptr noundef @.str.297, double noundef %588, double noundef %590, double noundef %592)
  %594 = load ptr, ptr %13, align 8, !tbaa !5
  %595 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef %594)
  %596 = load ptr, ptr %14, align 8, !tbaa !5
  %597 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef %596)
  %598 = load ptr, ptr %15, align 8, !tbaa !5
  %599 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef %598)
  %600 = load i32, ptr %17, align 4, !tbaa !11
  %601 = call i32 (ptr, ...) @printf(ptr noundef @.str.298, i32 noundef %595, i32 noundef %597, i32 noundef %599, i32 noundef %600)
  %602 = load ptr, ptr %41, align 8, !tbaa !5
  %603 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef %602)
  %604 = load ptr, ptr %42, align 8, !tbaa !5
  %605 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef %604)
  %606 = load ptr, ptr %43, align 8, !tbaa !5
  %607 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef %606)
  %608 = call noundef i32 @_ZN10tetgenmesh9shellmarkERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %46, ptr noundef nonnull align 8 dereferenceable(12) %40)
  %609 = call i32 (ptr, ...) @printf(ptr noundef @.str.299, i32 noundef %603, i32 noundef %605, i32 noundef %607, i32 noundef %608)
  br label %610

610:                                              ; preds = %586, %583
  br label %611

611:                                              ; preds = %610, %559
  call void @_Z15terminatetetgenP10tetgenmeshi(ptr noundef %46, i32 noundef 3)
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %44) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %40) #6
  br label %612

612:                                              ; preds = %611, %532, %525
  br label %614

613:                                              ; preds = %522
  call void @_Z15terminatetetgenP10tetgenmeshi(ptr noundef %46, i32 noundef 2)
  br label %614

614:                                              ; preds = %613, %612
  br label %615

615:                                              ; preds = %614, %521
  br label %616

616:                                              ; preds = %615, %416
  br label %617

617:                                              ; preds = %616, %173
  br label %618

618:                                              ; preds = %617, %137
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  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 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  ret i32 0
}

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"_ZTSN10tetgenmesh11interresultE", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !6, i64 0}
!14 = !{!"_ZTSN10tetgenmesh4faceE", !6, i64 0, !12, i64 8}
!15 = !{!16, !16, i64 0}
!16 = !{!"double", !7, i64 0}
!17 = !{!18, !6, i64 0}
!18 = !{!"_ZTSN10tetgenmesh7trifaceE", !6, i64 0, !12, i64 8}
!19 = !{!18, !12, i64 8}


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

@_ZN10tetgenmesh8ver2edgeE = external dso_local local_unnamed_addr global [12 x i32], align 16
@.str.274 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.275 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.276 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.277 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.278 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.279 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.280 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.281 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.282 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.283 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.284 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.285 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.286 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.287 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.288 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.289 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.290 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.291 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.292 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.293 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.294 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.295 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.296 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.297 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.298 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.299 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.300 = external hidden unnamed_addr constant [30 x i8], align 1

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN10tetgenmesh11linelineintEPdS0_S0_S0_S0_S0_S0_S0_(ptr noundef nonnull align 8 dereferenceable(1536), ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #5 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 nounwind uwtable
declare dso_local noundef i32 @_ZN10tetgenmesh9shellmarkERNS_4faceE(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 @_ZN10tetgenmesh19report_selfint_edgeEPdS0_PNS_4faceEPNS_7trifaceENS_11interresultE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, i32 noundef %5) local_unnamed_addr #5 align 2 {
  %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 %"class.tetgenmesh::face", align 8
  %13 = alloca %"class.tetgenmesh::face", align 8
  %14 = alloca %"class.tetgenmesh::face", align 8
  %15 = alloca %"class.tetgenmesh::face", align 8
  %16 = alloca [3 x double], align 16
  %17 = alloca [3 x double], align 16
  %18 = alloca double, align 8
  %19 = alloca double, align 8
  %20 = alloca %"class.tetgenmesh::face", align 8
  %21 = alloca [3 x double], align 16
  %22 = alloca double, align 8
  %.not = icmp eq ptr %3, null
  br i1 %.not, label %39, label %23

23:                                               ; preds = %6
  %24 = load ptr, ptr %3, align 8, !tbaa !5
  %25 = getelementptr inbounds i8, ptr %24, i64 40
  %26 = load ptr, ptr %25, align 8, !tbaa !11
  %.not163 = icmp eq ptr %26, null
  br i1 %.not163, label %30, label %27

27:                                               ; preds = %23
  %28 = tail call noundef ptr @_ZN10tetgenmesh5sapexERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %3)
  %29 = tail call noundef i32 @_ZN10tetgenmesh9shellmarkERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %3)
  br label %37

30:                                               ; preds = %23
  %31 = tail call noundef ptr @_ZN10tetgenmesh7farsorgERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %3)
  %32 = tail call noundef ptr @_ZN10tetgenmesh8farsdestERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %3)
  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 @_ZN10tetgenmesh6spivotERNS_4faceES1_(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %3, ptr noundef nonnull align 8 dereferenceable(12) %7)
  %33 = load ptr, ptr %7, align 8, !tbaa !5
  %.not164 = icmp eq ptr %33, null
  br i1 %.not164, label %36, label %34

34:                                               ; preds = %30
  %35 = call noundef i32 @_ZN10tetgenmesh9shellmarkERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %7)
  br label %36

36:                                               ; preds = %34, %30
  %.0157 = phi i32 [ %35, %34 ], [ 0, %30 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #6
  br label %37

37:                                               ; preds = %36, %27
  %.1158 = phi i32 [ %29, %27 ], [ %.0157, %36 ]
  %.0154 = phi i32 [ 2, %27 ], [ 1, %36 ]
  %.0152 = phi ptr [ %28, %27 ], [ null, %36 ]
  %.0150 = phi ptr [ %2, %27 ], [ %32, %36 ]
  %.0 = phi ptr [ %1, %27 ], [ %31, %36 ]
  %38 = call noundef i32 @_ZN10tetgenmesh9shellmarkERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %3)
  br label %39

39:                                               ; preds = %37, %6
  %.2 = phi i32 [ %.1158, %37 ], [ 0, %6 ]
  %.0156 = phi i32 [ %38, %37 ], [ 0, %6 ]
  %.1155 = phi i32 [ %.0154, %37 ], [ 0, %6 ]
  %.1153 = phi ptr [ %.0152, %37 ], [ null, %6 ]
  %.1151 = phi ptr [ %.0150, %37 ], [ null, %6 ]
  %.1 = phi ptr [ %.0, %37 ], [ null, %6 ]
  switch i32 %5, label %331 [
    i32 3, label %40
    i32 4, label %74
    i32 7, label %96
    i32 8, label %230
    i32 9, label %288
  ]

40:                                               ; preds = %39
  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 @_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) %8)
  switch i32 %.1155, label %73 [
    i32 1, label %41
    i32 2, label %61
  ]

41:                                               ; preds = %40
  %42 = load ptr, ptr %8, align 8, !tbaa !5
  %43 = load ptr, ptr %3, align 8, !tbaa !5
  %.not176 = icmp eq ptr %42, %43
  br i1 %.not176, label %60, label %44

44:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #6
  call void @_ZN10tetgenmesh4faceC2Ev(ptr noundef nonnull align 8 dereferenceable(12) %9)
  call void @_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) %9)
  %45 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.274)
  %46 = call noundef ptr @_ZN10tetgenmesh4sorgERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %8)
  %47 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %46)
  %48 = call noundef ptr @_ZN10tetgenmesh5sdestERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %8)
  %49 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %48)
  %50 = call noundef i32 @_ZN10tetgenmesh9shellmarkERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %8)
  %51 = load ptr, ptr %9, align 8, !tbaa !5
  %.not177 = icmp eq ptr %51, null
  br i1 %.not177, label %54, label %52

52:                                               ; preds = %44
  %53 = call noundef i32 @_ZN10tetgenmesh9shellmarkERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %9)
  br label %54

54:                                               ; preds = %44, %52
  %55 = phi i32 [ %53, %52 ], [ 0, %44 ]
  %56 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.275, i32 noundef %47, i32 noundef %49, i32 noundef %50, i32 noundef %55)
  %57 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %.1)
  %58 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %.1151)
  %59 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.276, i32 noundef %57, i32 noundef %58, i32 noundef %.0156, i32 noundef %.2)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #6
  br label %73

60:                                               ; preds = %41
  call void @_Z15terminatetetgenP10tetgenmeshi(ptr noundef nonnull %0, i32 noundef 2)
  br label %73

61:                                               ; preds = %40
  %62 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.277)
  %63 = call noundef ptr @_ZN10tetgenmesh4sorgERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %8)
  %64 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %63)
  %65 = call noundef ptr @_ZN10tetgenmesh5sdestERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %8)
  %66 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %65)
  %67 = call noundef i32 @_ZN10tetgenmesh9shellmarkERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %8)
  %68 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.278, i32 noundef %64, i32 noundef %66, i32 noundef %67)
  %69 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %.1)
  %70 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %.1151)
  %71 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %.1153)
  %72 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.279, i32 noundef %69, i32 noundef %70, i32 noundef %71, i32 noundef %.0156)
  br label %73

73:                                               ; preds = %40, %61, %54, %60
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #6
  br label %332

74:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #6
  call void @_ZN10tetgenmesh4faceC2Ev(ptr noundef nonnull align 8 dereferenceable(12) %10)
  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) %10)
  %75 = icmp eq i32 %.1155, 2
  br i1 %75, label %76, label %94

76:                                               ; preds = %74
  %77 = load ptr, ptr %10, align 8, !tbaa !5
  %78 = load ptr, ptr %3, align 8, !tbaa !5
  %.not175 = icmp eq ptr %77, %78
  br i1 %.not175, label %93, label %79

79:                                               ; preds = %76
  %80 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.280)
  %81 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %.1)
  %82 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %.1151)
  %83 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %.1153)
  %84 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.281, i32 noundef %81, i32 noundef %82, i32 noundef %83, i32 noundef %.0156)
  %85 = call noundef ptr @_ZN10tetgenmesh4sorgERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %10)
  %86 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %85)
  %87 = call noundef ptr @_ZN10tetgenmesh5sdestERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %10)
  %88 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %87)
  %89 = call noundef ptr @_ZN10tetgenmesh5sapexERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %10)
  %90 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %89)
  %91 = call noundef i32 @_ZN10tetgenmesh9shellmarkERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %10)
  %92 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.282, i32 noundef %86, i32 noundef %88, i32 noundef %90, i32 noundef %91)
  br label %95

93:                                               ; preds = %76
  call void @_Z15terminatetetgenP10tetgenmeshi(ptr noundef nonnull %0, i32 noundef 2)
  br label %95

94:                                               ; preds = %74
  call void @_Z15terminatetetgenP10tetgenmeshi(ptr noundef nonnull %0, i32 noundef 2)
  br label %95

95:                                               ; preds = %79, %93, %94
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #6
  br label %332

96:                                               ; preds = %39
  %97 = call noundef ptr @_ZN10tetgenmesh4destERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %4)
  %98 = call noundef i32 @_ZN10tetgenmesh9pointtypeEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %97)
  %99 = icmp eq i32 %98, 2
  br i1 %99, label %106, label %100

100:                                              ; preds = %96
  %101 = call noundef i32 @_ZN10tetgenmesh9pointtypeEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %97)
  %102 = icmp eq i32 %101, 4
  br i1 %102, label %106, label %103

103:                                              ; preds = %100
  %104 = call noundef i32 @_ZN10tetgenmesh9pointtypeEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %97)
  %105 = icmp eq i32 %104, 5
  br i1 %105, label %106, label %132

106:                                              ; preds = %103, %100, %96
  switch i32 %.1155, label %229 [
    i32 1, label %107
    i32 2, label %119
  ]

107:                                              ; preds = %106
  %108 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.283)
  %109 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %97)
  %110 = load double, ptr %97, align 8, !tbaa !12
  %111 = getelementptr inbounds i8, ptr %97, i64 8
  %112 = load double, ptr %111, align 8, !tbaa !12
  %113 = getelementptr inbounds i8, ptr %97, i64 16
  %114 = load double, ptr %113, align 8, !tbaa !12
  %115 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.284, i32 noundef %109, double noundef %110, double noundef %112, double noundef %114)
  %116 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %.1)
  %117 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %.1151)
  %118 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.285, i32 noundef %116, i32 noundef %117, i32 noundef %.0156, i32 noundef %.2)
  br label %229

119:                                              ; preds = %106
  %120 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.286)
  %121 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %97)
  %122 = load double, ptr %97, align 8, !tbaa !12
  %123 = getelementptr inbounds i8, ptr %97, i64 8
  %124 = load double, ptr %123, align 8, !tbaa !12
  %125 = getelementptr inbounds i8, ptr %97, i64 16
  %126 = load double, ptr %125, align 8, !tbaa !12
  %127 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.287, i32 noundef %121, double noundef %122, double noundef %124, double noundef %126)
  %128 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %.1)
  %129 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %.1151)
  %130 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %.1153)
  %131 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.288, i32 noundef %128, i32 noundef %129, i32 noundef %130, i32 noundef %.0156)
  br label %229

132:                                              ; preds = %103
  %133 = call noundef i32 @_ZN10tetgenmesh9pointtypeEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %97)
  %134 = icmp eq i32 %133, 6
  br i1 %134, label %135, label %183

135:                                              ; preds = %132
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #6
  call void @_ZN10tetgenmesh4faceC2Ev(ptr noundef nonnull align 8 dereferenceable(12) %11)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #6
  call void @_ZN10tetgenmesh4faceC2Ev(ptr noundef nonnull align 8 dereferenceable(12) %12)
  %136 = call noundef ptr @_ZN10tetgenmesh8point2shEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %97)
  call void @_ZN10tetgenmesh7sdecodeEPPdRNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %136, ptr noundef nonnull align 8 dereferenceable(12) %11)
  call void @_ZN10tetgenmesh6spivotERNS_4faceES1_(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %11, ptr noundef nonnull align 8 dereferenceable(12) %12)
  %137 = load ptr, ptr %11, align 8, !tbaa !5
  %.not172 = icmp eq ptr %137, null
  br i1 %.not172, label %181, label %138

138:                                              ; preds = %135
  %139 = call noundef ptr @_ZN10tetgenmesh7farsorgERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %11)
  %140 = call noundef ptr @_ZN10tetgenmesh8farsdestERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %11)
  switch i32 %.1155, label %182 [
    i32 1, label %141
    i32 2, label %160
  ]

141:                                              ; preds = %138
  %142 = load double, ptr %97, align 8, !tbaa !12
  %143 = getelementptr inbounds i8, ptr %97, i64 8
  %144 = load double, ptr %143, align 8, !tbaa !12
  %145 = getelementptr inbounds i8, ptr %97, i64 16
  %146 = load double, ptr %145, align 8, !tbaa !12
  %147 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.289, double noundef %142, double noundef %144, double noundef %146)
  %148 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %.1)
  %149 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %.1151)
  %150 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.290, i32 noundef %148, i32 noundef %149, i32 noundef %.0156, i32 noundef %.2)
  %151 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %139)
  %152 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %140)
  %153 = call noundef i32 @_ZN10tetgenmesh9shellmarkERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %11)
  %154 = load ptr, ptr %12, align 8, !tbaa !5
  %.not174 = icmp eq ptr %154, null
  br i1 %.not174, label %157, label %155

155:                                              ; preds = %141
  %156 = call noundef i32 @_ZN10tetgenmesh9shellmarkERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %12)
  br label %157

157:                                              ; preds = %141, %155
  %158 = phi i32 [ %156, %155 ], [ 0, %141 ]
  %159 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.291, i32 noundef %151, i32 noundef %152, i32 noundef %153, i32 noundef %158)
  br label %182

160:                                              ; preds = %138
  %161 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.292)
  %162 = load double, ptr %97, align 8, !tbaa !12
  %163 = getelementptr inbounds i8, ptr %97, i64 8
  %164 = load double, ptr %163, align 8, !tbaa !12
  %165 = getelementptr inbounds i8, ptr %97, i64 16
  %166 = load double, ptr %165, align 8, !tbaa !12
  %167 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.293, double noundef %162, double noundef %164, double noundef %166)
  %168 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %139)
  %169 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %140)
  %170 = call noundef i32 @_ZN10tetgenmesh9shellmarkERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %11)
  %171 = load ptr, ptr %12, align 8, !tbaa !5
  %.not173 = icmp eq ptr %171, null
  br i1 %.not173, label %174, label %172

172:                                              ; preds = %160
  %173 = call noundef i32 @_ZN10tetgenmesh9shellmarkERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %12)
  br label %174

174:                                              ; preds = %160, %172
  %175 = phi i32 [ %173, %172 ], [ 0, %160 ]
  %176 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.294, i32 noundef %168, i32 noundef %169, i32 noundef %170, i32 noundef %175)
  %177 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %.1)
  %178 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %.1151)
  %179 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %.1153)
  %180 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.279, i32 noundef %177, i32 noundef %178, i32 noundef %179, i32 noundef %.0156)
  br label %182

181:                                              ; preds = %135
  call void @_Z15terminatetetgenP10tetgenmeshi(ptr noundef nonnull %0, i32 noundef 2)
  br label %182

182:                                              ; preds = %157, %174, %138, %181
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #6
  br label %229

183:                                              ; preds = %132
  %184 = call noundef i32 @_ZN10tetgenmesh9pointtypeEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %97)
  %185 = icmp eq i32 %184, 7
  br i1 %185, label %186, label %227

186:                                              ; preds = %183
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #6
  call void @_ZN10tetgenmesh4faceC2Ev(ptr noundef nonnull align 8 dereferenceable(12) %13)
  %187 = call noundef ptr @_ZN10tetgenmesh8point2shEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %97)
  call void @_ZN10tetgenmesh7sdecodeEPPdRNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %187, ptr noundef nonnull align 8 dereferenceable(12) %13)
  %188 = load ptr, ptr %13, align 8, !tbaa !5
  %.not171 = icmp eq ptr %188, null
  br i1 %.not171, label %225, label %189

189:                                              ; preds = %186
  %190 = call noundef ptr @_ZN10tetgenmesh4sorgERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %13)
  %191 = call noundef ptr @_ZN10tetgenmesh5sdestERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %13)
  %192 = call noundef ptr @_ZN10tetgenmesh5sapexERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %13)
  switch i32 %.1155, label %226 [
    i32 1, label %193
    i32 2, label %209
  ]

193:                                              ; preds = %189
  %194 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.292)
  %195 = load double, ptr %97, align 8, !tbaa !12
  %196 = getelementptr inbounds i8, ptr %97, i64 8
  %197 = load double, ptr %196, align 8, !tbaa !12
  %198 = getelementptr inbounds i8, ptr %97, i64 16
  %199 = load double, ptr %198, align 8, !tbaa !12
  %200 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.293, double noundef %195, double noundef %197, double noundef %199)
  %201 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %.1)
  %202 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %.1151)
  %203 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.295, i32 noundef %201, i32 noundef %202, i32 noundef %.0156, i32 noundef %.2)
  %204 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %190)
  %205 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %191)
  %206 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %192)
  %207 = call noundef i32 @_ZN10tetgenmesh9shellmarkERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %13)
  %208 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.296, i32 noundef %204, i32 noundef %205, i32 noundef %206, i32 noundef %207)
  br label %226

209:                                              ; preds = %189
  %210 = load double, ptr %97, align 8, !tbaa !12
  %211 = getelementptr inbounds i8, ptr %97, i64 8
  %212 = load double, ptr %211, align 8, !tbaa !12
  %213 = getelementptr inbounds i8, ptr %97, i64 16
  %214 = load double, ptr %213, align 8, !tbaa !12
  %215 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.297, double noundef %210, double noundef %212, double noundef %214)
  %216 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %.1)
  %217 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %.1151)
  %218 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %.1153)
  %219 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.298, i32 noundef %216, i32 noundef %217, i32 noundef %218, i32 noundef %.0156)
  %220 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %190)
  %221 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %191)
  %222 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %192)
  %223 = call noundef i32 @_ZN10tetgenmesh9shellmarkERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %13)
  %224 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.299, i32 noundef %220, i32 noundef %221, i32 noundef %222, i32 noundef %223)
  br label %226

225:                                              ; preds = %186
  call void @_Z15terminatetetgenP10tetgenmeshi(ptr noundef nonnull %0, i32 noundef 2)
  br label %226

226:                                              ; preds = %193, %209, %189, %225
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #6
  br label %229

227:                                              ; preds = %183
  %228 = call noundef i32 @_ZN10tetgenmesh9pointtypeEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %97)
  call void @_Z15terminatetetgenP10tetgenmeshi(ptr noundef nonnull %0, i32 noundef 2)
  br label %229

229:                                              ; preds = %227, %106, %182, %226, %107, %119
  call void @_Z15terminatetetgenP10tetgenmeshi(ptr noundef nonnull %0, i32 noundef 3)
  br label %332

230:                                              ; preds = %39
  %231 = load ptr, ptr %4, align 8, !tbaa !14
  %232 = getelementptr inbounds i8, ptr %231, i64 64
  %233 = load ptr, ptr %232, align 8, !tbaa !11
  %.not167 = icmp eq ptr %233, null
  br i1 %.not167, label %332, label %234

234:                                              ; preds = %230
  %235 = getelementptr inbounds i8, ptr %4, i64 8
  %236 = load i32, ptr %235, align 8, !tbaa !16
  %237 = sext i32 %236 to i64
  %238 = getelementptr inbounds [12 x i32], ptr @_ZN10tetgenmesh8ver2edgeE, i64 0, i64 %237
  %239 = load i32, ptr %238, align 4, !tbaa !17
  %240 = sext i32 %239 to i64
  %241 = getelementptr inbounds ptr, ptr %233, i64 %240
  %242 = load ptr, ptr %241, align 8, !tbaa !11
  %.not168 = icmp eq ptr %242, null
  br i1 %.not168, label %332, label %243

243:                                              ; preds = %234
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #6
  call void @_ZN10tetgenmesh4faceC2Ev(ptr noundef nonnull align 8 dereferenceable(12) %14)
  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) %14)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %15) #6
  call void @_ZN10tetgenmesh4faceC2Ev(ptr noundef nonnull align 8 dereferenceable(12) %15)
  call void @_ZN10tetgenmesh6spivotERNS_4faceES1_(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %14, ptr noundef nonnull align 8 dereferenceable(12) %15)
  %244 = call noundef ptr @_ZN10tetgenmesh4sorgERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %14)
  %245 = call noundef ptr @_ZN10tetgenmesh5sdestERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %14)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %16) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %17) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #6
  store double 0.000000e+00, ptr %18, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #6
  store double 0.000000e+00, ptr %19, align 8, !tbaa !12
  %246 = call noundef i32 @_ZN10tetgenmesh11linelineintEPdS0_S0_S0_S0_S0_S0_S0_(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %1, ptr noundef %2, ptr noundef %244, ptr noundef %245, ptr noundef nonnull %16, ptr noundef nonnull %17, ptr noundef nonnull %18, ptr noundef nonnull %19)
  switch i32 %.1155, label %287 [
    i32 1, label %247
    i32 2, label %266
  ]

247:                                              ; preds = %243
  %248 = load double, ptr %16, align 16, !tbaa !12
  %249 = getelementptr inbounds i8, ptr %16, i64 8
  %250 = load double, ptr %249, align 8, !tbaa !12
  %251 = getelementptr inbounds i8, ptr %16, i64 16
  %252 = load double, ptr %251, align 16, !tbaa !12
  %253 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.289, double noundef %248, double noundef %250, double noundef %252)
  %254 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %.1)
  %255 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %.1151)
  %256 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.275, i32 noundef %254, i32 noundef %255, i32 noundef %.0156, i32 noundef %.2)
  %257 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %244)
  %258 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %245)
  %259 = call noundef i32 @_ZN10tetgenmesh9shellmarkERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %14)
  %260 = load ptr, ptr %15, align 8, !tbaa !5
  %.not170 = icmp eq ptr %260, null
  br i1 %.not170, label %263, label %261

261:                                              ; preds = %247
  %262 = call noundef i32 @_ZN10tetgenmesh9shellmarkERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %15)
  br label %263

263:                                              ; preds = %247, %261
  %264 = phi i32 [ %262, %261 ], [ 0, %247 ]
  %265 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.276, i32 noundef %257, i32 noundef %258, i32 noundef %259, i32 noundef %264)
  br label %287

266:                                              ; preds = %243
  %267 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.292)
  %268 = load double, ptr %16, align 16, !tbaa !12
  %269 = getelementptr inbounds i8, ptr %16, i64 8
  %270 = load double, ptr %269, align 8, !tbaa !12
  %271 = getelementptr inbounds i8, ptr %16, i64 16
  %272 = load double, ptr %271, align 16, !tbaa !12
  %273 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.293, double noundef %268, double noundef %270, double noundef %272)
  %274 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %244)
  %275 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %245)
  %276 = call noundef i32 @_ZN10tetgenmesh9shellmarkERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %14)
  %277 = load ptr, ptr %15, align 8, !tbaa !5
  %.not169 = icmp eq ptr %277, null
  br i1 %.not169, label %280, label %278

278:                                              ; preds = %266
  %279 = call noundef i32 @_ZN10tetgenmesh9shellmarkERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %15)
  br label %280

280:                                              ; preds = %266, %278
  %281 = phi i32 [ %279, %278 ], [ 0, %266 ]
  %282 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.285, i32 noundef %274, i32 noundef %275, i32 noundef %276, i32 noundef %281)
  %283 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %.1)
  %284 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %.1151)
  %285 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %.1153)
  %286 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.300, i32 noundef %283, i32 noundef %284, i32 noundef %285, i32 noundef %.0156)
  br label %287

287:                                              ; preds = %243, %280, %263
  call void @_Z15terminatetetgenP10tetgenmeshi(ptr noundef nonnull %0, i32 noundef 3)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %17) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #6
  br label %332

288:                                              ; preds = %39
  %289 = load ptr, ptr %4, align 8, !tbaa !14
  %290 = getelementptr inbounds i8, ptr %289, i64 72
  %291 = load ptr, ptr %290, align 8, !tbaa !11
  %.not165 = icmp eq ptr %291, null
  br i1 %.not165, label %332, label %292

292:                                              ; preds = %288
  %293 = getelementptr inbounds i8, ptr %4, i64 8
  %294 = load i32, ptr %293, align 8, !tbaa !16
  %295 = and i32 %294, 3
  %296 = zext nneg i32 %295 to i64
  %297 = getelementptr inbounds ptr, ptr %291, i64 %296
  %298 = load ptr, ptr %297, align 8, !tbaa !11
  %.not166 = icmp eq ptr %298, null
  br i1 %.not166, label %332, label %299

299:                                              ; preds = %292
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %20) #6
  call void @_ZN10tetgenmesh4faceC2Ev(ptr noundef nonnull align 8 dereferenceable(12) %20)
  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) %20)
  %300 = call noundef ptr @_ZN10tetgenmesh4sorgERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %20)
  %301 = call noundef ptr @_ZN10tetgenmesh5sdestERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %20)
  %302 = call noundef ptr @_ZN10tetgenmesh5sapexERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %20)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %21) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %22) #6
  store double 0.000000e+00, ptr %22, align 8, !tbaa !12
  call void @_ZN10tetgenmesh12planelineintEPdS0_S0_S0_S0_S0_S0_(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %300, ptr noundef %301, ptr noundef %302, ptr noundef %1, ptr noundef %2, ptr noundef nonnull %21, ptr noundef nonnull %22)
  switch i32 %.1155, label %330 [
    i32 1, label %303
    i32 2, label %314
  ]

303:                                              ; preds = %299
  %304 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.292)
  %305 = load double, ptr %21, align 16, !tbaa !12
  %306 = getelementptr inbounds i8, ptr %21, i64 8
  %307 = load double, ptr %306, align 8, !tbaa !12
  %308 = getelementptr inbounds i8, ptr %21, i64 16
  %309 = load double, ptr %308, align 16, !tbaa !12
  %310 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.293, double noundef %305, double noundef %307, double noundef %309)
  %311 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %.1)
  %312 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %.1151)
  %313 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.285, i32 noundef %311, i32 noundef %312, i32 noundef %.0156, i32 noundef %.2)
  br label %.sink.split

314:                                              ; preds = %299
  %315 = load double, ptr %21, align 16, !tbaa !12
  %316 = getelementptr inbounds i8, ptr %21, i64 8
  %317 = load double, ptr %316, align 8, !tbaa !12
  %318 = getelementptr inbounds i8, ptr %21, i64 16
  %319 = load double, ptr %318, align 16, !tbaa !12
  %320 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.297, double noundef %315, double noundef %317, double noundef %319)
  %321 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %.1)
  %322 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %.1151)
  %323 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %.1153)
  %324 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.298, i32 noundef %321, i32 noundef %322, i32 noundef %323, i32 noundef %.0156)
  br label %.sink.split

.sink.split:                                      ; preds = %303, %314
  %.str.299.sink = phi ptr [ @.str.299, %314 ], [ @.str.300, %303 ]
  %325 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %300)
  %326 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %301)
  %327 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %302)
  %328 = call noundef i32 @_ZN10tetgenmesh9shellmarkERNS_4faceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %20)
  %329 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.299.sink, i32 noundef %325, i32 noundef %326, i32 noundef %327, i32 noundef %328)
  br label %330

330:                                              ; preds = %.sink.split, %299
  call void @_Z15terminatetetgenP10tetgenmeshi(ptr noundef nonnull %0, i32 noundef 3)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %21) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %20) #6
  br label %332

331:                                              ; preds = %39
  call void @_Z15terminatetetgenP10tetgenmeshi(ptr noundef nonnull %0, i32 noundef 2)
  br label %332

332:                                              ; preds = %95, %287, %234, %230, %288, %292, %330, %331, %229, %73
  ret i32 0
}

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }

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

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


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass,TailCallElimPass