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

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

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

@.str.317 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.324 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.325 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.326 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.327 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.328 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.329 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.330 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.331 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.332 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.333 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.334 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.335 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.336 = external hidden unnamed_addr constant [38 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: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare { i64, i1 } @llvm.umul.with.overflow.i64(i64, i64) #1

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) #2

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

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

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) #5

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN10tetgenmesh10memorypool13traversalinitEv(ptr noundef nonnull align 8 dereferenceable(88)) #6 align 2

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

27:                                               ; preds = %2
  %28 = call i32 (ptr, ...) @printf(ptr noundef @.str.324)
  br label %29

29:                                               ; preds = %27, %2
  %30 = getelementptr inbounds %class.tetgenmesh, ptr %21, i32 0, i32 0
  %31 = load ptr, ptr %30, align 8, !tbaa !20
  %32 = getelementptr inbounds %class.tetgenio, ptr %31, i32 0, i32 9
  %33 = load i32, ptr %32, align 8, !tbaa !21
  %34 = sext i32 %33 to i64
  %35 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %34, i64 8)
  %36 = extractvalue { i64, i1 } %35, 1
  %37 = extractvalue { i64, i1 } %35, 0
  %38 = select i1 %36, i64 -1, i64 %37
  %39 = call noalias noundef nonnull ptr @_Znam(i64 noundef %38) #11
  store ptr %39, ptr %6, align 8, !tbaa !5
  %40 = getelementptr inbounds %class.tetgenmesh, ptr %21, i32 0, i32 7
  %41 = load ptr, ptr %40, align 8, !tbaa !23
  call void @_ZN10tetgenmesh10memorypool13traversalinitEv(ptr noundef nonnull align 8 dereferenceable(88) %41)
  %42 = getelementptr inbounds %class.tetgenmesh, ptr %21, i32 0, i32 2
  %43 = load ptr, ptr %42, align 8, !tbaa !11
  %44 = getelementptr inbounds %class.tetgenbehavior, ptr %43, i32 0, i32 56
  %45 = load i32, ptr %44, align 8, !tbaa !24
  %46 = icmp ne i32 %45, 0
  br i1 %46, label %47, label %75

47:                                               ; preds = %29
  %48 = getelementptr inbounds %class.tetgenmesh, ptr %21, i32 0, i32 2
  %49 = load ptr, ptr %48, align 8, !tbaa !11
  %50 = getelementptr inbounds %class.tetgenbehavior, ptr %49, i32 0, i32 37
  %51 = load i32, ptr %50, align 4, !tbaa !25
  %52 = icmp ne i32 %51, 0
  br i1 %52, label %53, label %55

53:                                               ; preds = %47
  %54 = call i32 (ptr, ...) @printf(ptr noundef @.str.325)
  br label %55

55:                                               ; preds = %53, %47
  store i32 0, ptr %17, align 4, !tbaa !9
  br label %56

56:                                               ; preds = %71, %55
  %57 = load i32, ptr %17, align 4, !tbaa !9
  %58 = getelementptr inbounds %class.tetgenmesh, ptr %21, i32 0, i32 0
  %59 = load ptr, ptr %58, align 8, !tbaa !20
  %60 = getelementptr inbounds %class.tetgenio, ptr %59, i32 0, i32 9
  %61 = load i32, ptr %60, align 8, !tbaa !21
  %62 = icmp slt i32 %57, %61
  br i1 %62, label %63, label %74

63:                                               ; preds = %56
  %64 = getelementptr inbounds %class.tetgenmesh, ptr %21, i32 0, i32 7
  %65 = load ptr, ptr %64, align 8, !tbaa !23
  %66 = call noundef ptr @_ZN10tetgenmesh10memorypool8traverseEv(ptr noundef nonnull align 8 dereferenceable(88) %65)
  %67 = load ptr, ptr %6, align 8, !tbaa !5
  %68 = load i32, ptr %17, align 4, !tbaa !9
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds ptr, ptr %67, i64 %69
  store ptr %66, ptr %70, align 8, !tbaa !5
  br label %71

71:                                               ; preds = %63
  %72 = load i32, ptr %17, align 4, !tbaa !9
  %73 = add nsw i32 %72, 1
  store i32 %73, ptr %17, align 4, !tbaa !9
  br label %56, !llvm.loop !26

74:                                               ; preds = %56
  br label %152

75:                                               ; preds = %29
  %76 = getelementptr inbounds %class.tetgenmesh, ptr %21, i32 0, i32 2
  %77 = load ptr, ptr %76, align 8, !tbaa !11
  %78 = getelementptr inbounds %class.tetgenbehavior, ptr %77, i32 0, i32 37
  %79 = load i32, ptr %78, align 4, !tbaa !25
  %80 = icmp ne i32 %79, 0
  br i1 %80, label %81, label %83

81:                                               ; preds = %75
  %82 = call i32 (ptr, ...) @printf(ptr noundef @.str.326)
  br label %83

83:                                               ; preds = %81, %75
  %84 = getelementptr inbounds %class.tetgenmesh, ptr %21, i32 0, i32 0
  %85 = load ptr, ptr %84, align 8, !tbaa !20
  %86 = getelementptr inbounds %class.tetgenio, ptr %85, i32 0, i32 9
  %87 = load i32, ptr %86, align 8, !tbaa !21
  call void @srand(i32 noundef %87) #10
  store i32 0, ptr %17, align 4, !tbaa !9
  br label %88

88:                                               ; preds = %116, %83
  %89 = load i32, ptr %17, align 4, !tbaa !9
  %90 = getelementptr inbounds %class.tetgenmesh, ptr %21, i32 0, i32 0
  %91 = load ptr, ptr %90, align 8, !tbaa !20
  %92 = getelementptr inbounds %class.tetgenio, ptr %91, i32 0, i32 9
  %93 = load i32, ptr %92, align 8, !tbaa !21
  %94 = icmp slt i32 %89, %93
  br i1 %94, label %95, label %119

95:                                               ; preds = %88
  %96 = call i32 @rand() #10
  %97 = load i32, ptr %17, align 4, !tbaa !9
  %98 = add nsw i32 %97, 1
  %99 = srem i32 %96, %98
  store i32 %99, ptr %15, align 4, !tbaa !9
  %100 = load ptr, ptr %6, align 8, !tbaa !5
  %101 = load i32, ptr %15, align 4, !tbaa !9
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds ptr, ptr %100, i64 %102
  %104 = load ptr, ptr %103, align 8, !tbaa !5
  %105 = load ptr, ptr %6, align 8, !tbaa !5
  %106 = load i32, ptr %17, align 4, !tbaa !9
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds ptr, ptr %105, i64 %107
  store ptr %104, ptr %108, align 8, !tbaa !5
  %109 = getelementptr inbounds %class.tetgenmesh, ptr %21, i32 0, i32 7
  %110 = load ptr, ptr %109, align 8, !tbaa !23
  %111 = call noundef ptr @_ZN10tetgenmesh10memorypool8traverseEv(ptr noundef nonnull align 8 dereferenceable(88) %110)
  %112 = load ptr, ptr %6, align 8, !tbaa !5
  %113 = load i32, ptr %15, align 4, !tbaa !9
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds ptr, ptr %112, i64 %114
  store ptr %111, ptr %115, align 8, !tbaa !5
  br label %116

116:                                              ; preds = %95
  %117 = load i32, ptr %17, align 4, !tbaa !9
  %118 = add nsw i32 %117, 1
  store i32 %118, ptr %17, align 4, !tbaa !9
  br label %88, !llvm.loop !28

119:                                              ; preds = %88
  %120 = getelementptr inbounds %class.tetgenmesh, ptr %21, i32 0, i32 2
  %121 = load ptr, ptr %120, align 8, !tbaa !11
  %122 = getelementptr inbounds %class.tetgenbehavior, ptr %121, i32 0, i32 7
  %123 = load i32, ptr %122, align 4, !tbaa !29
  %124 = icmp ne i32 %123, 0
  br i1 %124, label %125, label %151

125:                                              ; preds = %119
  %126 = getelementptr inbounds %class.tetgenmesh, ptr %21, i32 0, i32 2
  %127 = load ptr, ptr %126, align 8, !tbaa !11
  %128 = getelementptr inbounds %class.tetgenbehavior, ptr %127, i32 0, i32 37
  %129 = load i32, ptr %128, align 4, !tbaa !25
  %130 = icmp ne i32 %129, 0
  br i1 %130, label %131, label %133

131:                                              ; preds = %125
  %132 = call i32 (ptr, ...) @printf(ptr noundef @.str.327)
  br label %133

133:                                              ; preds = %131, %125
  %134 = getelementptr inbounds %class.tetgenmesh, ptr %21, i32 0, i32 0
  %135 = load ptr, ptr %134, align 8, !tbaa !20
  %136 = getelementptr inbounds %class.tetgenio, ptr %135, i32 0, i32 1
  %137 = load i32, ptr %136, align 4, !tbaa !30
  call void @_ZN10tetgenmesh12hilbert_initEi(ptr noundef nonnull align 8 dereferenceable(1536) %21, i32 noundef %137)
  %138 = load ptr, ptr %6, align 8, !tbaa !5
  %139 = getelementptr inbounds %class.tetgenmesh, ptr %21, i32 0, i32 0
  %140 = load ptr, ptr %139, align 8, !tbaa !20
  %141 = getelementptr inbounds %class.tetgenio, ptr %140, i32 0, i32 9
  %142 = load i32, ptr %141, align 8, !tbaa !21
  %143 = getelementptr inbounds %class.tetgenmesh, ptr %21, i32 0, i32 2
  %144 = load ptr, ptr %143, align 8, !tbaa !11
  %145 = getelementptr inbounds %class.tetgenbehavior, ptr %144, i32 0, i32 59
  %146 = load i32, ptr %145, align 4, !tbaa !31
  %147 = getelementptr inbounds %class.tetgenmesh, ptr %21, i32 0, i32 2
  %148 = load ptr, ptr %147, align 8, !tbaa !11
  %149 = getelementptr inbounds %class.tetgenbehavior, ptr %148, i32 0, i32 60
  %150 = load double, ptr %149, align 8, !tbaa !32
  call void @_ZN10tetgenmesh20brio_multiscale_sortEPPdiidPi(ptr noundef nonnull align 8 dereferenceable(1536) %21, ptr noundef %138, i32 noundef %142, i32 noundef %146, double noundef %150, ptr noundef %16)
  br label %151

151:                                              ; preds = %133, %119
  br label %152

152:                                              ; preds = %151, %74
  %153 = call i64 @clock() #10
  %154 = load ptr, ptr %4, align 8, !tbaa !5
  store i64 %153, ptr %154, align 8, !tbaa !33
  %155 = getelementptr inbounds %class.tetgenmesh, ptr %21, i32 0, i32 69
  %156 = load double, ptr %155, align 8, !tbaa !34
  %157 = getelementptr inbounds %class.tetgenmesh, ptr %21, i32 0, i32 70
  %158 = load double, ptr %157, align 8, !tbaa !35
  %159 = fsub double %156, %158
  %160 = getelementptr inbounds %class.tetgenmesh, ptr %21, i32 0, i32 71
  %161 = load double, ptr %160, align 8, !tbaa !36
  %162 = getelementptr inbounds %class.tetgenmesh, ptr %21, i32 0, i32 72
  %163 = load double, ptr %162, align 8, !tbaa !37
  %164 = fsub double %161, %163
  %165 = getelementptr inbounds %class.tetgenmesh, ptr %21, i32 0, i32 73
  %166 = load double, ptr %165, align 8, !tbaa !38
  %167 = getelementptr inbounds %class.tetgenmesh, ptr %21, i32 0, i32 74
  %168 = load double, ptr %167, align 8, !tbaa !39
  %169 = fsub double %166, %168
  %170 = call noundef double @_ZN10tetgenmesh5norm2Eddd(ptr noundef nonnull align 8 dereferenceable(1536) %21, double noundef %159, double noundef %164, double noundef %169)
  %171 = call double @sqrt(double noundef %170) #10
  store double %171, ptr %11, align 8, !tbaa !40
  %172 = load double, ptr %11, align 8, !tbaa !40
  %173 = load double, ptr %11, align 8, !tbaa !40
  %174 = fmul double %172, %173
  store double %174, ptr %12, align 8, !tbaa !40
  %175 = load double, ptr %12, align 8, !tbaa !40
  %176 = load double, ptr %11, align 8, !tbaa !40
  %177 = fmul double %175, %176
  store double %177, ptr %13, align 8, !tbaa !40
  store i32 1, ptr %17, align 4, !tbaa !9
  br label %178

178:                                              ; preds = %211, %152
  %179 = load ptr, ptr %6, align 8, !tbaa !5
  %180 = getelementptr inbounds ptr, ptr %179, i64 0
  %181 = load ptr, ptr %180, align 8, !tbaa !5
  %182 = load ptr, ptr %6, align 8, !tbaa !5
  %183 = load i32, ptr %17, align 4, !tbaa !9
  %184 = sext i32 %183 to i64
  %185 = getelementptr inbounds ptr, ptr %182, i64 %184
  %186 = load ptr, ptr %185, align 8, !tbaa !5
  %187 = call noundef double @_ZN10tetgenmesh8distanceEPdS0_(ptr noundef nonnull align 8 dereferenceable(1536) %21, ptr noundef %181, ptr noundef %186)
  %188 = load double, ptr %11, align 8, !tbaa !40
  %189 = fdiv double %187, %188
  %190 = getelementptr inbounds %class.tetgenmesh, ptr %21, i32 0, i32 2
  %191 = load ptr, ptr %190, align 8, !tbaa !11
  %192 = getelementptr inbounds %class.tetgenbehavior, ptr %191, i32 0, i32 70
  %193 = load double, ptr %192, align 8, !tbaa !41
  %194 = fcmp olt double %189, %193
  br i1 %194, label %195, label %212

195:                                              ; preds = %178
  %196 = load i32, ptr %17, align 4, !tbaa !9
  %197 = add nsw i32 %196, 1
  store i32 %197, ptr %17, align 4, !tbaa !9
  %198 = load i32, ptr %17, align 4, !tbaa !9
  %199 = getelementptr inbounds %class.tetgenmesh, ptr %21, i32 0, i32 0
  %200 = load ptr, ptr %199, align 8, !tbaa !20
  %201 = getelementptr inbounds %class.tetgenio, ptr %200, i32 0, i32 9
  %202 = load i32, ptr %201, align 8, !tbaa !21
  %203 = sub nsw i32 %202, 1
  %204 = icmp eq i32 %198, %203
  br i1 %204, label %205, label %211

205:                                              ; preds = %195
  %206 = getelementptr inbounds %class.tetgenmesh, ptr %21, i32 0, i32 2
  %207 = load ptr, ptr %206, align 8, !tbaa !11
  %208 = getelementptr inbounds %class.tetgenbehavior, ptr %207, i32 0, i32 70
  %209 = load double, ptr %208, align 8, !tbaa !41
  %210 = call i32 (ptr, ...) @printf(ptr noundef @.str.328, double noundef %209)
  call void @_Z15terminatetetgenP10tetgenmeshi(ptr noundef %21, i32 noundef 10)
  br label %211

211:                                              ; preds = %205, %195
  br label %178, !llvm.loop !42

212:                                              ; preds = %178
  %213 = load i32, ptr %17, align 4, !tbaa !9
  %214 = icmp sgt i32 %213, 1
  br i1 %214, label %215, label %231

215:                                              ; preds = %212
  %216 = load ptr, ptr %6, align 8, !tbaa !5
  %217 = load i32, ptr %17, align 4, !tbaa !9
  %218 = sext i32 %217 to i64
  %219 = getelementptr inbounds ptr, ptr %216, i64 %218
  %220 = load ptr, ptr %219, align 8, !tbaa !5
  store ptr %220, ptr %7, align 8, !tbaa !5
  %221 = load ptr, ptr %6, align 8, !tbaa !5
  %222 = getelementptr inbounds ptr, ptr %221, i64 1
  %223 = load ptr, ptr %222, align 8, !tbaa !5
  %224 = load ptr, ptr %6, align 8, !tbaa !5
  %225 = load i32, ptr %17, align 4, !tbaa !9
  %226 = sext i32 %225 to i64
  %227 = getelementptr inbounds ptr, ptr %224, i64 %226
  store ptr %223, ptr %227, align 8, !tbaa !5
  %228 = load ptr, ptr %7, align 8, !tbaa !5
  %229 = load ptr, ptr %6, align 8, !tbaa !5
  %230 = getelementptr inbounds ptr, ptr %229, i64 1
  store ptr %228, ptr %230, align 8, !tbaa !5
  br label %231

231:                                              ; preds = %215, %212
  store i32 2, ptr %17, align 4, !tbaa !9
  store i32 0, ptr %18, align 4, !tbaa !9
  br label %232

232:                                              ; preds = %274, %231
  %233 = load i32, ptr %18, align 4, !tbaa !9
  %234 = icmp slt i32 %233, 3
  br i1 %234, label %235, label %277

235:                                              ; preds = %232
  %236 = load ptr, ptr %6, align 8, !tbaa !5
  %237 = getelementptr inbounds ptr, ptr %236, i64 1
  %238 = load ptr, ptr %237, align 8, !tbaa !5
  %239 = load i32, ptr %18, align 4, !tbaa !9
  %240 = sext i32 %239 to i64
  %241 = getelementptr inbounds double, ptr %238, i64 %240
  %242 = load double, ptr %241, align 8, !tbaa !40
  %243 = load ptr, ptr %6, align 8, !tbaa !5
  %244 = getelementptr inbounds ptr, ptr %243, i64 0
  %245 = load ptr, ptr %244, align 8, !tbaa !5
  %246 = load i32, ptr %18, align 4, !tbaa !9
  %247 = sext i32 %246 to i64
  %248 = getelementptr inbounds double, ptr %245, i64 %247
  %249 = load double, ptr %248, align 8, !tbaa !40
  %250 = fsub double %242, %249
  %251 = load i32, ptr %18, align 4, !tbaa !9
  %252 = sext i32 %251 to i64
  %253 = getelementptr inbounds [3 x double], ptr %8, i64 0, i64 %252
  store double %250, ptr %253, align 8, !tbaa !40
  %254 = load ptr, ptr %6, align 8, !tbaa !5
  %255 = load i32, ptr %17, align 4, !tbaa !9
  %256 = sext i32 %255 to i64
  %257 = getelementptr inbounds ptr, ptr %254, i64 %256
  %258 = load ptr, ptr %257, align 8, !tbaa !5
  %259 = load i32, ptr %18, align 4, !tbaa !9
  %260 = sext i32 %259 to i64
  %261 = getelementptr inbounds double, ptr %258, i64 %260
  %262 = load double, ptr %261, align 8, !tbaa !40
  %263 = load ptr, ptr %6, align 8, !tbaa !5
  %264 = getelementptr inbounds ptr, ptr %263, i64 0
  %265 = load ptr, ptr %264, align 8, !tbaa !5
  %266 = load i32, ptr %18, align 4, !tbaa !9
  %267 = sext i32 %266 to i64
  %268 = getelementptr inbounds double, ptr %265, i64 %267
  %269 = load double, ptr %268, align 8, !tbaa !40
  %270 = fsub double %262, %269
  %271 = load i32, ptr %18, align 4, !tbaa !9
  %272 = sext i32 %271 to i64
  %273 = getelementptr inbounds [3 x double], ptr %9, i64 0, i64 %272
  store double %270, ptr %273, align 8, !tbaa !40
  br label %274

274:                                              ; preds = %235
  %275 = load i32, ptr %18, align 4, !tbaa !9
  %276 = add nsw i32 %275, 1
  store i32 %276, ptr %18, align 4, !tbaa !9
  br label %232, !llvm.loop !43

277:                                              ; preds = %232
  %278 = getelementptr inbounds [3 x double], ptr %8, i64 0, i64 0
  %279 = getelementptr inbounds [3 x double], ptr %9, i64 0, i64 0
  %280 = getelementptr inbounds [3 x double], ptr %10, i64 0, i64 0
  call void @_ZN10tetgenmesh5crossEPdS0_S0_(ptr noundef nonnull align 8 dereferenceable(1536) %21, ptr noundef %278, ptr noundef %279, ptr noundef %280)
  br label %281

281:                                              ; preds = %346, %277
  %282 = getelementptr inbounds [3 x double], ptr %10, i64 0, i64 0
  %283 = load double, ptr %282, align 16, !tbaa !40
  %284 = getelementptr inbounds [3 x double], ptr %10, i64 0, i64 1
  %285 = load double, ptr %284, align 8, !tbaa !40
  %286 = getelementptr inbounds [3 x double], ptr %10, i64 0, i64 2
  %287 = load double, ptr %286, align 16, !tbaa !40
  %288 = call noundef double @_ZN10tetgenmesh5norm2Eddd(ptr noundef nonnull align 8 dereferenceable(1536) %21, double noundef %283, double noundef %285, double noundef %287)
  %289 = call double @sqrt(double noundef %288) #10
  %290 = load double, ptr %12, align 8, !tbaa !40
  %291 = fdiv double %289, %290
  %292 = getelementptr inbounds %class.tetgenmesh, ptr %21, i32 0, i32 2
  %293 = load ptr, ptr %292, align 8, !tbaa !11
  %294 = getelementptr inbounds %class.tetgenbehavior, ptr %293, i32 0, i32 70
  %295 = load double, ptr %294, align 8, !tbaa !41
  %296 = getelementptr inbounds %class.tetgenmesh, ptr %21, i32 0, i32 2
  %297 = load ptr, ptr %296, align 8, !tbaa !11
  %298 = getelementptr inbounds %class.tetgenbehavior, ptr %297, i32 0, i32 70
  %299 = load double, ptr %298, align 8, !tbaa !41
  %300 = fmul double %295, %299
  %301 = fcmp olt double %291, %300
  br i1 %301, label %302, label %350

302:                                              ; preds = %281
  %303 = load i32, ptr %17, align 4, !tbaa !9
  %304 = add nsw i32 %303, 1
  store i32 %304, ptr %17, align 4, !tbaa !9
  %305 = load i32, ptr %17, align 4, !tbaa !9
  %306 = getelementptr inbounds %class.tetgenmesh, ptr %21, i32 0, i32 0
  %307 = load ptr, ptr %306, align 8, !tbaa !20
  %308 = getelementptr inbounds %class.tetgenio, ptr %307, i32 0, i32 9
  %309 = load i32, ptr %308, align 8, !tbaa !21
  %310 = sub nsw i32 %309, 1
  %311 = icmp eq i32 %305, %310
  br i1 %311, label %312, label %318

312:                                              ; preds = %302
  %313 = getelementptr inbounds %class.tetgenmesh, ptr %21, i32 0, i32 2
  %314 = load ptr, ptr %313, align 8, !tbaa !11
  %315 = getelementptr inbounds %class.tetgenbehavior, ptr %314, i32 0, i32 70
  %316 = load double, ptr %315, align 8, !tbaa !41
  %317 = call i32 (ptr, ...) @printf(ptr noundef @.str.329, double noundef %316)
  call void @_Z15terminatetetgenP10tetgenmeshi(ptr noundef %21, i32 noundef 10)
  br label %318

318:                                              ; preds = %312, %302
  store i32 0, ptr %18, align 4, !tbaa !9
  br label %319

319:                                              ; preds = %343, %318
  %320 = load i32, ptr %18, align 4, !tbaa !9
  %321 = icmp slt i32 %320, 3
  br i1 %321, label %322, label %346

322:                                              ; preds = %319
  %323 = load ptr, ptr %6, align 8, !tbaa !5
  %324 = load i32, ptr %17, align 4, !tbaa !9
  %325 = sext i32 %324 to i64
  %326 = getelementptr inbounds ptr, ptr %323, i64 %325
  %327 = load ptr, ptr %326, align 8, !tbaa !5
  %328 = load i32, ptr %18, align 4, !tbaa !9
  %329 = sext i32 %328 to i64
  %330 = getelementptr inbounds double, ptr %327, i64 %329
  %331 = load double, ptr %330, align 8, !tbaa !40
  %332 = load ptr, ptr %6, align 8, !tbaa !5
  %333 = getelementptr inbounds ptr, ptr %332, i64 0
  %334 = load ptr, ptr %333, align 8, !tbaa !5
  %335 = load i32, ptr %18, align 4, !tbaa !9
  %336 = sext i32 %335 to i64
  %337 = getelementptr inbounds double, ptr %334, i64 %336
  %338 = load double, ptr %337, align 8, !tbaa !40
  %339 = fsub double %331, %338
  %340 = load i32, ptr %18, align 4, !tbaa !9
  %341 = sext i32 %340 to i64
  %342 = getelementptr inbounds [3 x double], ptr %9, i64 0, i64 %341
  store double %339, ptr %342, align 8, !tbaa !40
  br label %343

343:                                              ; preds = %322
  %344 = load i32, ptr %18, align 4, !tbaa !9
  %345 = add nsw i32 %344, 1
  store i32 %345, ptr %18, align 4, !tbaa !9
  br label %319, !llvm.loop !44

346:                                              ; preds = %319
  %347 = getelementptr inbounds [3 x double], ptr %8, i64 0, i64 0
  %348 = getelementptr inbounds [3 x double], ptr %9, i64 0, i64 0
  %349 = getelementptr inbounds [3 x double], ptr %10, i64 0, i64 0
  call void @_ZN10tetgenmesh5crossEPdS0_S0_(ptr noundef nonnull align 8 dereferenceable(1536) %21, ptr noundef %347, ptr noundef %348, ptr noundef %349)
  br label %281, !llvm.loop !45

350:                                              ; preds = %281
  %351 = load i32, ptr %17, align 4, !tbaa !9
  %352 = icmp sgt i32 %351, 2
  br i1 %352, label %353, label %369

353:                                              ; preds = %350
  %354 = load ptr, ptr %6, align 8, !tbaa !5
  %355 = load i32, ptr %17, align 4, !tbaa !9
  %356 = sext i32 %355 to i64
  %357 = getelementptr inbounds ptr, ptr %354, i64 %356
  %358 = load ptr, ptr %357, align 8, !tbaa !5
  store ptr %358, ptr %7, align 8, !tbaa !5
  %359 = load ptr, ptr %6, align 8, !tbaa !5
  %360 = getelementptr inbounds ptr, ptr %359, i64 2
  %361 = load ptr, ptr %360, align 8, !tbaa !5
  %362 = load ptr, ptr %6, align 8, !tbaa !5
  %363 = load i32, ptr %17, align 4, !tbaa !9
  %364 = sext i32 %363 to i64
  %365 = getelementptr inbounds ptr, ptr %362, i64 %364
  store ptr %361, ptr %365, align 8, !tbaa !5
  %366 = load ptr, ptr %7, align 8, !tbaa !5
  %367 = load ptr, ptr %6, align 8, !tbaa !5
  %368 = getelementptr inbounds ptr, ptr %367, i64 2
  store ptr %366, ptr %368, align 8, !tbaa !5
  br label %369

369:                                              ; preds = %353, %350
  store i32 3, ptr %17, align 4, !tbaa !9
  %370 = load ptr, ptr %6, align 8, !tbaa !5
  %371 = getelementptr inbounds ptr, ptr %370, i64 0
  %372 = load ptr, ptr %371, align 8, !tbaa !5
  %373 = load ptr, ptr %6, align 8, !tbaa !5
  %374 = getelementptr inbounds ptr, ptr %373, i64 1
  %375 = load ptr, ptr %374, align 8, !tbaa !5
  %376 = load ptr, ptr %6, align 8, !tbaa !5
  %377 = getelementptr inbounds ptr, ptr %376, i64 2
  %378 = load ptr, ptr %377, align 8, !tbaa !5
  %379 = load ptr, ptr %6, align 8, !tbaa !5
  %380 = load i32, ptr %17, align 4, !tbaa !9
  %381 = sext i32 %380 to i64
  %382 = getelementptr inbounds ptr, ptr %379, i64 %381
  %383 = load ptr, ptr %382, align 8, !tbaa !5
  %384 = call noundef double @_ZN10tetgenmesh12orient3dfastEPdS0_S0_S0_(ptr noundef nonnull align 8 dereferenceable(1536) %21, ptr noundef %372, ptr noundef %375, ptr noundef %378, ptr noundef %383)
  store double %384, ptr %14, align 8, !tbaa !40
  br label %385

385:                                              ; preds = %420, %369
  %386 = load double, ptr %14, align 8, !tbaa !40
  %387 = call double @llvm.fabs.f64(double %386)
  %388 = load double, ptr %13, align 8, !tbaa !40
  %389 = fdiv double %387, %388
  %390 = getelementptr inbounds %class.tetgenmesh, ptr %21, i32 0, i32 2
  %391 = load ptr, ptr %390, align 8, !tbaa !11
  %392 = getelementptr inbounds %class.tetgenbehavior, ptr %391, i32 0, i32 70
  %393 = load double, ptr %392, align 8, !tbaa !41
  %394 = getelementptr inbounds %class.tetgenmesh, ptr %21, i32 0, i32 2
  %395 = load ptr, ptr %394, align 8, !tbaa !11
  %396 = getelementptr inbounds %class.tetgenbehavior, ptr %395, i32 0, i32 70
  %397 = load double, ptr %396, align 8, !tbaa !41
  %398 = fmul double %393, %397
  %399 = getelementptr inbounds %class.tetgenmesh, ptr %21, i32 0, i32 2
  %400 = load ptr, ptr %399, align 8, !tbaa !11
  %401 = getelementptr inbounds %class.tetgenbehavior, ptr %400, i32 0, i32 70
  %402 = load double, ptr %401, align 8, !tbaa !41
  %403 = fmul double %398, %402
  %404 = fcmp olt double %389, %403
  br i1 %404, label %405, label %436

405:                                              ; preds = %385
  %406 = load i32, ptr %17, align 4, !tbaa !9
  %407 = add nsw i32 %406, 1
  store i32 %407, ptr %17, align 4, !tbaa !9
  %408 = load i32, ptr %17, align 4, !tbaa !9
  %409 = getelementptr inbounds %class.tetgenmesh, ptr %21, i32 0, i32 0
  %410 = load ptr, ptr %409, align 8, !tbaa !20
  %411 = getelementptr inbounds %class.tetgenio, ptr %410, i32 0, i32 9
  %412 = load i32, ptr %411, align 8, !tbaa !21
  %413 = icmp eq i32 %408, %412
  br i1 %413, label %414, label %420

414:                                              ; preds = %405
  %415 = getelementptr inbounds %class.tetgenmesh, ptr %21, i32 0, i32 2
  %416 = load ptr, ptr %415, align 8, !tbaa !11
  %417 = getelementptr inbounds %class.tetgenbehavior, ptr %416, i32 0, i32 70
  %418 = load double, ptr %417, align 8, !tbaa !41
  %419 = call i32 (ptr, ...) @printf(ptr noundef @.str.330, double noundef %418)
  call void @_Z15terminatetetgenP10tetgenmeshi(ptr noundef %21, i32 noundef 10)
  br label %420

420:                                              ; preds = %414, %405
  %421 = load ptr, ptr %6, align 8, !tbaa !5
  %422 = getelementptr inbounds ptr, ptr %421, i64 0
  %423 = load ptr, ptr %422, align 8, !tbaa !5
  %424 = load ptr, ptr %6, align 8, !tbaa !5
  %425 = getelementptr inbounds ptr, ptr %424, i64 1
  %426 = load ptr, ptr %425, align 8, !tbaa !5
  %427 = load ptr, ptr %6, align 8, !tbaa !5
  %428 = getelementptr inbounds ptr, ptr %427, i64 2
  %429 = load ptr, ptr %428, align 8, !tbaa !5
  %430 = load ptr, ptr %6, align 8, !tbaa !5
  %431 = load i32, ptr %17, align 4, !tbaa !9
  %432 = sext i32 %431 to i64
  %433 = getelementptr inbounds ptr, ptr %430, i64 %432
  %434 = load ptr, ptr %433, align 8, !tbaa !5
  %435 = call noundef double @_ZN10tetgenmesh12orient3dfastEPdS0_S0_S0_(ptr noundef nonnull align 8 dereferenceable(1536) %21, ptr noundef %423, ptr noundef %426, ptr noundef %429, ptr noundef %434)
  store double %435, ptr %14, align 8, !tbaa !40
  br label %385, !llvm.loop !46

436:                                              ; preds = %385
  %437 = load i32, ptr %17, align 4, !tbaa !9
  %438 = icmp sgt i32 %437, 3
  br i1 %438, label %439, label %455

439:                                              ; preds = %436
  %440 = load ptr, ptr %6, align 8, !tbaa !5
  %441 = load i32, ptr %17, align 4, !tbaa !9
  %442 = sext i32 %441 to i64
  %443 = getelementptr inbounds ptr, ptr %440, i64 %442
  %444 = load ptr, ptr %443, align 8, !tbaa !5
  store ptr %444, ptr %7, align 8, !tbaa !5
  %445 = load ptr, ptr %6, align 8, !tbaa !5
  %446 = getelementptr inbounds ptr, ptr %445, i64 3
  %447 = load ptr, ptr %446, align 8, !tbaa !5
  %448 = load ptr, ptr %6, align 8, !tbaa !5
  %449 = load i32, ptr %17, align 4, !tbaa !9
  %450 = sext i32 %449 to i64
  %451 = getelementptr inbounds ptr, ptr %448, i64 %450
  store ptr %447, ptr %451, align 8, !tbaa !5
  %452 = load ptr, ptr %7, align 8, !tbaa !5
  %453 = load ptr, ptr %6, align 8, !tbaa !5
  %454 = getelementptr inbounds ptr, ptr %453, i64 3
  store ptr %452, ptr %454, align 8, !tbaa !5
  br label %455

455:                                              ; preds = %439, %436
  %456 = load double, ptr %14, align 8, !tbaa !40
  %457 = fcmp ogt double %456, 0.000000e+00
  br i1 %457, label %458, label %470

458:                                              ; preds = %455
  %459 = load ptr, ptr %6, align 8, !tbaa !5
  %460 = getelementptr inbounds ptr, ptr %459, i64 0
  %461 = load ptr, ptr %460, align 8, !tbaa !5
  store ptr %461, ptr %7, align 8, !tbaa !5
  %462 = load ptr, ptr %6, align 8, !tbaa !5
  %463 = getelementptr inbounds ptr, ptr %462, i64 1
  %464 = load ptr, ptr %463, align 8, !tbaa !5
  %465 = load ptr, ptr %6, align 8, !tbaa !5
  %466 = getelementptr inbounds ptr, ptr %465, i64 0
  store ptr %464, ptr %466, align 8, !tbaa !5
  %467 = load ptr, ptr %7, align 8, !tbaa !5
  %468 = load ptr, ptr %6, align 8, !tbaa !5
  %469 = getelementptr inbounds ptr, ptr %468, i64 1
  store ptr %467, ptr %469, align 8, !tbaa !5
  br label %470

470:                                              ; preds = %458, %455
  %471 = load ptr, ptr %6, align 8, !tbaa !5
  %472 = getelementptr inbounds ptr, ptr %471, i64 0
  %473 = load ptr, ptr %472, align 8, !tbaa !5
  %474 = load ptr, ptr %6, align 8, !tbaa !5
  %475 = getelementptr inbounds ptr, ptr %474, i64 1
  %476 = load ptr, ptr %475, align 8, !tbaa !5
  %477 = load ptr, ptr %6, align 8, !tbaa !5
  %478 = getelementptr inbounds ptr, ptr %477, i64 2
  %479 = load ptr, ptr %478, align 8, !tbaa !5
  %480 = load ptr, ptr %6, align 8, !tbaa !5
  %481 = getelementptr inbounds ptr, ptr %480, i64 3
  %482 = load ptr, ptr %481, align 8, !tbaa !5
  call void @_ZN10tetgenmesh15initialdelaunayEPdS0_S0_S0_(ptr noundef nonnull align 8 dereferenceable(1536) %21, ptr noundef %473, ptr noundef %476, ptr noundef %479, ptr noundef %482)
  %483 = getelementptr inbounds %class.tetgenmesh, ptr %21, i32 0, i32 2
  %484 = load ptr, ptr %483, align 8, !tbaa !11
  %485 = getelementptr inbounds %class.tetgenbehavior, ptr %484, i32 0, i32 37
  %486 = load i32, ptr %485, align 4, !tbaa !25
  %487 = icmp ne i32 %486, 0
  br i1 %487, label %488, label %490

488:                                              ; preds = %470
  %489 = call i32 (ptr, ...) @printf(ptr noundef @.str.331)
  br label %490

490:                                              ; preds = %488, %470
  call void @llvm.lifetime.start.p0(i64 112, ptr %19) #10
  call void @_ZN10tetgenmesh17insertvertexflagsC2Ev(ptr noundef nonnull align 8 dereferenceable(112) %19)
  call void @llvm.lifetime.start.p0(i64 120, ptr %20) #10
  call void @_ZN10tetgenmesh15flipconstraintsC2Ev(ptr noundef nonnull align 8 dereferenceable(120) %20)
  %491 = getelementptr inbounds %class.tetgenmesh, ptr %21, i32 0, i32 2
  %492 = load ptr, ptr %491, align 8, !tbaa !11
  %493 = getelementptr inbounds %class.tetgenbehavior, ptr %492, i32 0, i32 8
  %494 = load i32, ptr %493, align 8, !tbaa !47
  %495 = icmp ne i32 %494, 0
  br i1 %495, label %496, label %500

496:                                              ; preds = %490
  %497 = getelementptr inbounds %"class.tetgenmesh::insertvertexflags", ptr %19, i32 0, i32 1
  store i32 0, ptr %497, align 4, !tbaa !48
  %498 = getelementptr inbounds %"class.tetgenmesh::insertvertexflags", ptr %19, i32 0, i32 2
  store i32 1, ptr %498, align 8, !tbaa !50
  %499 = getelementptr inbounds %"class.tetgenmesh::flipconstraints", ptr %20, i32 0, i32 0
  store i32 1, ptr %499, align 8, !tbaa !51
  br label %503

500:                                              ; preds = %490
  %501 = getelementptr inbounds %"class.tetgenmesh::insertvertexflags", ptr %19, i32 0, i32 1
  store i32 1, ptr %501, align 4, !tbaa !48
  %502 = getelementptr inbounds %"class.tetgenmesh::insertvertexflags", ptr %19, i32 0, i32 2
  store i32 0, ptr %502, align 8, !tbaa !50
  br label %503

503:                                              ; preds = %500, %496
  store i32 4, ptr %17, align 4, !tbaa !9
  br label %504

504:                                              ; preds = %695, %503
  %505 = load i32, ptr %17, align 4, !tbaa !9
  %506 = getelementptr inbounds %class.tetgenmesh, ptr %21, i32 0, i32 0
  %507 = load ptr, ptr %506, align 8, !tbaa !20
  %508 = getelementptr inbounds %class.tetgenio, ptr %507, i32 0, i32 9
  %509 = load i32, ptr %508, align 8, !tbaa !21
  %510 = icmp slt i32 %505, %509
  br i1 %510, label %511, label %698

511:                                              ; preds = %504
  %512 = load ptr, ptr %6, align 8, !tbaa !5
  %513 = load i32, ptr %17, align 4, !tbaa !9
  %514 = sext i32 %513 to i64
  %515 = getelementptr inbounds ptr, ptr %512, i64 %514
  %516 = load ptr, ptr %515, align 8, !tbaa !5
  %517 = call noundef i32 @_ZN10tetgenmesh9pointtypeEPd(ptr noundef nonnull align 8 dereferenceable(1536) %21, ptr noundef %516)
  %518 = icmp eq i32 %517, 0
  br i1 %518, label %519, label %525

519:                                              ; preds = %511
  %520 = load ptr, ptr %6, align 8, !tbaa !5
  %521 = load i32, ptr %17, align 4, !tbaa !9
  %522 = sext i32 %521 to i64
  %523 = getelementptr inbounds ptr, ptr %520, i64 %522
  %524 = load ptr, ptr %523, align 8, !tbaa !5
  call void @_ZN10tetgenmesh12setpointtypeEPdNS_8verttypeE(ptr noundef nonnull align 8 dereferenceable(1536) %21, ptr noundef %524, i32 noundef 5)
  br label %525

525:                                              ; preds = %519, %511
  %526 = getelementptr inbounds %class.tetgenmesh, ptr %21, i32 0, i32 2
  %527 = load ptr, ptr %526, align 8, !tbaa !11
  %528 = getelementptr inbounds %class.tetgenbehavior, ptr %527, i32 0, i32 7
  %529 = load i32, ptr %528, align 4, !tbaa !29
  %530 = icmp ne i32 %529, 0
  br i1 %530, label %537, label %531

531:                                              ; preds = %525
  %532 = getelementptr inbounds %class.tetgenmesh, ptr %21, i32 0, i32 2
  %533 = load ptr, ptr %532, align 8, !tbaa !11
  %534 = getelementptr inbounds %class.tetgenbehavior, ptr %533, i32 0, i32 56
  %535 = load i32, ptr %534, align 8, !tbaa !24
  %536 = icmp ne i32 %535, 0
  br i1 %536, label %537, label %542

537:                                              ; preds = %531, %525
  %538 = getelementptr inbounds %class.tetgenmesh, ptr %21, i32 0, i32 36
  %539 = getelementptr inbounds %"class.tetgenmesh::triface", ptr %538, i32 0, i32 0
  %540 = load ptr, ptr %539, align 8, !tbaa !53
  %541 = getelementptr inbounds %"class.tetgenmesh::triface", ptr %5, i32 0, i32 0
  store ptr %540, ptr %541, align 8, !tbaa !54
  br label %544

542:                                              ; preds = %531
  %543 = getelementptr inbounds %"class.tetgenmesh::triface", ptr %5, i32 0, i32 0
  store ptr null, ptr %543, align 8, !tbaa !54
  br label %544

544:                                              ; preds = %542, %537
  %545 = getelementptr inbounds %"class.tetgenmesh::insertvertexflags", ptr %19, i32 0, i32 0
  store i32 1, ptr %545, align 8, !tbaa !55
  %546 = load ptr, ptr %6, align 8, !tbaa !5
  %547 = load i32, ptr %17, align 4, !tbaa !9
  %548 = sext i32 %547 to i64
  %549 = getelementptr inbounds ptr, ptr %546, i64 %548
  %550 = load ptr, ptr %549, align 8, !tbaa !5
  %551 = call noundef i32 @_ZN10tetgenmesh11insertpointEPdPNS_7trifaceEPNS_4faceES4_PNS_17insertvertexflagsE(ptr noundef nonnull align 8 dereferenceable(1536) %21, ptr noundef %550, ptr noundef %5, ptr noundef null, ptr noundef null, ptr noundef %19)
  %552 = icmp ne i32 %551, 0
  br i1 %552, label %553, label %569

553:                                              ; preds = %544
  %554 = getelementptr inbounds %class.tetgenmesh, ptr %21, i32 0, i32 15
  %555 = load ptr, ptr %554, align 8, !tbaa !56
  %556 = icmp ne ptr %555, null
  br i1 %556, label %557, label %568

557:                                              ; preds = %553
  %558 = load ptr, ptr %6, align 8, !tbaa !5
  %559 = load i32, ptr %17, align 4, !tbaa !9
  %560 = sext i32 %559 to i64
  %561 = getelementptr inbounds ptr, ptr %558, i64 %560
  %562 = load ptr, ptr %561, align 8, !tbaa !5
  %563 = getelementptr inbounds %"class.tetgenmesh::insertvertexflags", ptr %19, i32 0, i32 0
  %564 = load i32, ptr %563, align 8, !tbaa !55
  %565 = icmp eq i32 %564, 1
  %566 = zext i1 %565 to i32
  %567 = call noundef i32 @_ZN10tetgenmesh15incrementalflipEPdiPNS_15flipconstraintsE(ptr noundef nonnull align 8 dereferenceable(1536) %21, ptr noundef %562, i32 noundef %566, ptr noundef %20)
  br label %568

568:                                              ; preds = %557, %553
  br label %694

569:                                              ; preds = %544
  %570 = getelementptr inbounds %"class.tetgenmesh::insertvertexflags", ptr %19, i32 0, i32 0
  %571 = load i32, ptr %570, align 8, !tbaa !55
  %572 = icmp eq i32 %571, 5
  br i1 %572, label %573, label %612

573:                                              ; preds = %569
  %574 = call noundef ptr @_ZN10tetgenmesh3orgERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %21, ptr noundef nonnull align 8 dereferenceable(12) %5)
  store ptr %574, ptr %7, align 8, !tbaa !5
  %575 = getelementptr inbounds %class.tetgenmesh, ptr %21, i32 0, i32 2
  %576 = load ptr, ptr %575, align 8, !tbaa !11
  %577 = getelementptr inbounds %class.tetgenbehavior, ptr %576, i32 0, i32 77
  %578 = load i32, ptr %577, align 8, !tbaa !57
  %579 = icmp ne i32 %578, 4
  br i1 %579, label %580, label %597

580:                                              ; preds = %573
  %581 = getelementptr inbounds %class.tetgenmesh, ptr %21, i32 0, i32 2
  %582 = load ptr, ptr %581, align 8, !tbaa !11
  %583 = getelementptr inbounds %class.tetgenbehavior, ptr %582, i32 0, i32 36
  %584 = load i32, ptr %583, align 8, !tbaa !17
  %585 = icmp ne i32 %584, 0
  br i1 %585, label %596, label %586

586:                                              ; preds = %580
  %587 = load ptr, ptr %6, align 8, !tbaa !5
  %588 = load i32, ptr %17, align 4, !tbaa !9
  %589 = sext i32 %588 to i64
  %590 = getelementptr inbounds ptr, ptr %587, i64 %589
  %591 = load ptr, ptr %590, align 8, !tbaa !5
  %592 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %21, ptr noundef %591)
  %593 = load ptr, ptr %7, align 8, !tbaa !5
  %594 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %21, ptr noundef %593)
  %595 = call i32 (ptr, ...) @printf(ptr noundef @.str.332, i32 noundef %592, i32 noundef %594)
  br label %596

596:                                              ; preds = %586, %580
  br label %597

597:                                              ; preds = %596, %573
  %598 = load ptr, ptr %6, align 8, !tbaa !5
  %599 = load i32, ptr %17, align 4, !tbaa !9
  %600 = sext i32 %599 to i64
  %601 = getelementptr inbounds ptr, ptr %598, i64 %600
  %602 = load ptr, ptr %601, align 8, !tbaa !5
  %603 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZN10tetgenmesh12setpoint2pptEPdS0_(ptr noundef nonnull align 8 dereferenceable(1536) %21, ptr noundef %602, ptr noundef %603)
  %604 = load ptr, ptr %6, align 8, !tbaa !5
  %605 = load i32, ptr %17, align 4, !tbaa !9
  %606 = sext i32 %605 to i64
  %607 = getelementptr inbounds ptr, ptr %604, i64 %606
  %608 = load ptr, ptr %607, align 8, !tbaa !5
  call void @_ZN10tetgenmesh12setpointtypeEPdNS_8verttypeE(ptr noundef nonnull align 8 dereferenceable(1536) %21, ptr noundef %608, i32 noundef 1)
  %609 = getelementptr inbounds %class.tetgenmesh, ptr %21, i32 0, i32 80
  %610 = load i64, ptr %609, align 8, !tbaa !58
  %611 = add nsw i64 %610, 1
  store i64 %611, ptr %609, align 8, !tbaa !58
  br label %693

612:                                              ; preds = %569
  %613 = getelementptr inbounds %"class.tetgenmesh::insertvertexflags", ptr %19, i32 0, i32 0
  %614 = load i32, ptr %613, align 8, !tbaa !55
  %615 = icmp eq i32 %614, 9
  br i1 %615, label %616, label %664

616:                                              ; preds = %612
  %617 = call noundef ptr @_ZN10tetgenmesh3orgERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %21, ptr noundef nonnull align 8 dereferenceable(12) %5)
  store ptr %617, ptr %7, align 8, !tbaa !5
  %618 = getelementptr inbounds %class.tetgenmesh, ptr %21, i32 0, i32 2
  %619 = load ptr, ptr %618, align 8, !tbaa !11
  %620 = getelementptr inbounds %class.tetgenbehavior, ptr %619, i32 0, i32 36
  %621 = load i32, ptr %620, align 8, !tbaa !17
  %622 = icmp ne i32 %621, 0
  br i1 %622, label %649, label %623

623:                                              ; preds = %616
  %624 = load ptr, ptr %6, align 8, !tbaa !5
  %625 = load i32, ptr %17, align 4, !tbaa !9
  %626 = sext i32 %625 to i64
  %627 = getelementptr inbounds ptr, ptr %624, i64 %626
  %628 = load ptr, ptr %627, align 8, !tbaa !5
  %629 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %21, ptr noundef %628)
  %630 = load ptr, ptr %7, align 8, !tbaa !5
  %631 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %21, ptr noundef %630)
  %632 = call i32 (ptr, ...) @printf(ptr noundef @.str.333, i32 noundef %629, i32 noundef %631)
  %633 = load ptr, ptr %6, align 8, !tbaa !5
  %634 = load i32, ptr %17, align 4, !tbaa !9
  %635 = sext i32 %634 to i64
  %636 = getelementptr inbounds ptr, ptr %633, i64 %635
  %637 = load ptr, ptr %636, align 8, !tbaa !5
  %638 = getelementptr inbounds double, ptr %637, i64 3
  %639 = load double, ptr %638, align 8, !tbaa !40
  %640 = getelementptr inbounds %class.tetgenmesh, ptr %21, i32 0, i32 68
  %641 = load double, ptr %640, align 8, !tbaa !59
  %642 = call i32 (ptr, ...) @printf(ptr noundef @.str.334, double noundef %639, double noundef %641)
  %643 = getelementptr inbounds %class.tetgenmesh, ptr %21, i32 0, i32 2
  %644 = load ptr, ptr %643, align 8, !tbaa !11
  %645 = getelementptr inbounds %class.tetgenbehavior, ptr %644, i32 0, i32 70
  %646 = load double, ptr %645, align 8, !tbaa !41
  %647 = call i32 (ptr, ...) @printf(ptr noundef @.str.317, double noundef %646)
  %648 = call i32 (ptr, ...) @printf(ptr noundef @.str.335)
  br label %649

649:                                              ; preds = %623, %616
  %650 = load ptr, ptr %6, align 8, !tbaa !5
  %651 = load i32, ptr %17, align 4, !tbaa !9
  %652 = sext i32 %651 to i64
  %653 = getelementptr inbounds ptr, ptr %650, i64 %652
  %654 = load ptr, ptr %653, align 8, !tbaa !5
  %655 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZN10tetgenmesh12setpoint2pptEPdS0_(ptr noundef nonnull align 8 dereferenceable(1536) %21, ptr noundef %654, ptr noundef %655)
  %656 = load ptr, ptr %6, align 8, !tbaa !5
  %657 = load i32, ptr %17, align 4, !tbaa !9
  %658 = sext i32 %657 to i64
  %659 = getelementptr inbounds ptr, ptr %656, i64 %658
  %660 = load ptr, ptr %659, align 8, !tbaa !5
  call void @_ZN10tetgenmesh12setpointtypeEPdNS_8verttypeE(ptr noundef nonnull align 8 dereferenceable(1536) %21, ptr noundef %660, i32 noundef 1)
  %661 = getelementptr inbounds %class.tetgenmesh, ptr %21, i32 0, i32 80
  %662 = load i64, ptr %661, align 8, !tbaa !58
  %663 = add nsw i64 %662, 1
  store i64 %663, ptr %661, align 8, !tbaa !58
  br label %692

664:                                              ; preds = %612
  %665 = getelementptr inbounds %"class.tetgenmesh::insertvertexflags", ptr %19, i32 0, i32 0
  %666 = load i32, ptr %665, align 8, !tbaa !55
  %667 = icmp eq i32 %666, 10
  br i1 %667, label %668, label %691

668:                                              ; preds = %664
  %669 = getelementptr inbounds %class.tetgenmesh, ptr %21, i32 0, i32 2
  %670 = load ptr, ptr %669, align 8, !tbaa !11
  %671 = getelementptr inbounds %class.tetgenbehavior, ptr %670, i32 0, i32 37
  %672 = load i32, ptr %671, align 4, !tbaa !25
  %673 = icmp ne i32 %672, 0
  br i1 %673, label %674, label %682

674:                                              ; preds = %668
  %675 = load ptr, ptr %6, align 8, !tbaa !5
  %676 = load i32, ptr %17, align 4, !tbaa !9
  %677 = sext i32 %676 to i64
  %678 = getelementptr inbounds ptr, ptr %675, i64 %677
  %679 = load ptr, ptr %678, align 8, !tbaa !5
  %680 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %21, ptr noundef %679)
  %681 = call i32 (ptr, ...) @printf(ptr noundef @.str.336, i32 noundef %680)
  br label %682

682:                                              ; preds = %674, %668
  %683 = load ptr, ptr %6, align 8, !tbaa !5
  %684 = load i32, ptr %17, align 4, !tbaa !9
  %685 = sext i32 %684 to i64
  %686 = getelementptr inbounds ptr, ptr %683, i64 %685
  %687 = load ptr, ptr %686, align 8, !tbaa !5
  call void @_ZN10tetgenmesh12setpointtypeEPdNS_8verttypeE(ptr noundef nonnull align 8 dereferenceable(1536) %21, ptr noundef %687, i32 noundef 9)
  %688 = getelementptr inbounds %class.tetgenmesh, ptr %21, i32 0, i32 82
  %689 = load i64, ptr %688, align 8, !tbaa !60
  %690 = add nsw i64 %689, 1
  store i64 %690, ptr %688, align 8, !tbaa !60
  br label %691

691:                                              ; preds = %682, %664
  br label %692

692:                                              ; preds = %691, %649
  br label %693

693:                                              ; preds = %692, %597
  br label %694

694:                                              ; preds = %693, %568
  br label %695

695:                                              ; preds = %694
  %696 = load i32, ptr %17, align 4, !tbaa !9
  %697 = add nsw i32 %696, 1
  store i32 %697, ptr %17, align 4, !tbaa !9
  br label %504, !llvm.loop !61

698:                                              ; preds = %504
  %699 = load ptr, ptr %6, align 8, !tbaa !5
  %700 = icmp eq ptr %699, null
  br i1 %700, label %702, label %701

701:                                              ; preds = %698
  call void @_ZdaPv(ptr noundef %699) #12
  br label %702

702:                                              ; preds = %701, %698
  call void @llvm.lifetime.end.p0(i64 120, ptr %20) #10
  call void @llvm.lifetime.end.p0(i64 112, ptr %19) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %5) #10
  ret void
}

; Function Attrs: nounwind
declare void @srand(i32 noundef) #8

; Function Attrs: nounwind
declare i32 @rand() #8

; Function Attrs: nounwind
declare i64 @clock() #8

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { nobuiltin allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { "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 = { nobuiltin 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 #6 = { 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 #7 = { 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 #8 = { 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 #9 = { 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 #10 = { nounwind }
attributes #11 = { builtin allocsize(0) }
attributes #12 = { builtin nounwind }

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

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


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.tetgenmesh::triface" = type <{ ptr, i32, [4 x i8] }>
%"class.tetgenmesh::insertvertexflags" = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [4 x i8], %"class.tetgenmesh::triface", %"class.tetgenmesh::face", i32, double, ptr }
%"class.tetgenmesh::face" = type <{ ptr, i32, [4 x i8] }>
%"class.tetgenmesh::flipconstraints" = type { i32, i32, i32, i32, i32, i32, double, double, i32, double, double, i32, [2 x ptr], [3 x ptr], ptr }

@.str.317 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.324 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.325 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.326 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.327 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.328 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.329 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.330 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.331 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.332 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.333 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.334 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.335 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.336 = external hidden unnamed_addr constant [38 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: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) local_unnamed_addr #1

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

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

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) local_unnamed_addr #4

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN10tetgenmesh10memorypool13traversalinitEv(ptr noundef nonnull align 8 dereferenceable(88)) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN10tetgenmesh10memorypool8traverseEv(ptr noundef nonnull align 8 dereferenceable(88)) local_unnamed_addr #5 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 #6 align 2

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

16:                                               ; preds = %14, %2
  %17 = load ptr, ptr %0, align 8, !tbaa !19
  %18 = getelementptr inbounds i8, ptr %17, i64 64
  %19 = load i32, ptr %18, align 8, !tbaa !20
  %20 = sext i32 %19 to i64
  %21 = icmp slt i32 %19, 0
  %22 = shl nsw i64 %20, 3
  %23 = select i1 %21, i64 -1, i64 %22
  %24 = call noalias noundef nonnull ptr @_Znam(i64 noundef %23) #12
  %25 = getelementptr inbounds i8, ptr %0, i64 56
  %26 = load ptr, ptr %25, align 8, !tbaa !22
  call void @_ZN10tetgenmesh10memorypool13traversalinitEv(ptr noundef nonnull align 8 dereferenceable(88) %26)
  %27 = load ptr, ptr %10, align 8, !tbaa !9
  %28 = getelementptr inbounds i8, ptr %27, i64 224
  %29 = load i32, ptr %28, align 8, !tbaa !23
  %.not135 = icmp eq i32 %29, 0
  %30 = getelementptr inbounds i8, ptr %27, i64 148
  %31 = load i32, ptr %30, align 4, !tbaa !24
  %.not136 = icmp eq i32 %31, 0
  br i1 %.not135, label %48, label %32

32:                                               ; preds = %16
  br i1 %.not136, label %35, label %33

33:                                               ; preds = %32
  %34 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.325)
  br label %35

35:                                               ; preds = %33, %32
  %36 = load ptr, ptr %0, align 8, !tbaa !19
  %37 = getelementptr inbounds i8, ptr %36, i64 64
  %38 = load i32, ptr %37, align 8, !tbaa !20
  %39 = icmp sgt i32 %38, 0
  br i1 %39, label %.lr.ph, label %.loopexit

.lr.ph:                                           ; preds = %35, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %35 ]
  %40 = load ptr, ptr %25, align 8, !tbaa !22
  %41 = call noundef ptr @_ZN10tetgenmesh10memorypool8traverseEv(ptr noundef nonnull align 8 dereferenceable(88) %40)
  %42 = getelementptr inbounds ptr, ptr %24, i64 %indvars.iv
  store ptr %41, ptr %42, align 8, !tbaa !25
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %43 = load ptr, ptr %0, align 8, !tbaa !19
  %44 = getelementptr inbounds i8, ptr %43, i64 64
  %45 = load i32, ptr %44, align 8, !tbaa !20
  %46 = sext i32 %45 to i64
  %47 = icmp slt i64 %indvars.iv.next, %46
  br i1 %47, label %.lr.ph, label %.loopexit, !llvm.loop !26

48:                                               ; preds = %16
  br i1 %.not136, label %51, label %49

49:                                               ; preds = %48
  %50 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.326)
  br label %51

51:                                               ; preds = %49, %48
  %52 = load ptr, ptr %0, align 8, !tbaa !19
  %53 = getelementptr inbounds i8, ptr %52, i64 64
  %54 = load i32, ptr %53, align 8, !tbaa !20
  call void @srand(i32 noundef %54) #11
  %55 = load ptr, ptr %0, align 8, !tbaa !19
  %56 = getelementptr inbounds i8, ptr %55, i64 64
  %57 = load i32, ptr %56, align 8, !tbaa !20
  %58 = icmp sgt i32 %57, 0
  br i1 %58, label %.lr.ph152, label %._crit_edge

.lr.ph152:                                        ; preds = %51, %.lr.ph152
  %indvars.iv180 = phi i64 [ %indvars.iv.next181, %.lr.ph152 ], [ 0, %51 ]
  %59 = call i32 @rand() #11
  %indvars.iv.next181 = add nuw nsw i64 %indvars.iv180, 1
  %60 = trunc nuw nsw i64 %indvars.iv.next181 to i32
  %61 = srem i32 %59, %60
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds ptr, ptr %24, i64 %62
  %64 = load ptr, ptr %63, align 8, !tbaa !25
  %65 = getelementptr inbounds ptr, ptr %24, i64 %indvars.iv180
  store ptr %64, ptr %65, align 8, !tbaa !25
  %66 = load ptr, ptr %25, align 8, !tbaa !22
  %67 = call noundef ptr @_ZN10tetgenmesh10memorypool8traverseEv(ptr noundef nonnull align 8 dereferenceable(88) %66)
  store ptr %67, ptr %63, align 8, !tbaa !25
  %68 = load ptr, ptr %0, align 8, !tbaa !19
  %69 = getelementptr inbounds i8, ptr %68, i64 64
  %70 = load i32, ptr %69, align 8, !tbaa !20
  %71 = sext i32 %70 to i64
  %72 = icmp slt i64 %indvars.iv.next181, %71
  br i1 %72, label %.lr.ph152, label %._crit_edge, !llvm.loop !28

._crit_edge:                                      ; preds = %.lr.ph152, %51
  %73 = phi ptr [ %55, %51 ], [ %68, %.lr.ph152 ]
  %74 = load ptr, ptr %10, align 8, !tbaa !9
  %75 = getelementptr inbounds i8, ptr %74, i64 28
  %76 = load i32, ptr %75, align 4, !tbaa !29
  %.not137 = icmp eq i32 %76, 0
  br i1 %.not137, label %.loopexit, label %77

77:                                               ; preds = %._crit_edge
  %78 = getelementptr inbounds i8, ptr %74, i64 148
  %79 = load i32, ptr %78, align 4, !tbaa !24
  %.not138 = icmp eq i32 %79, 0
  br i1 %.not138, label %82, label %80

80:                                               ; preds = %77
  %81 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.327)
  %.pre = load ptr, ptr %0, align 8, !tbaa !19
  br label %82

82:                                               ; preds = %80, %77
  %83 = phi ptr [ %.pre, %80 ], [ %73, %77 ]
  %84 = getelementptr inbounds i8, ptr %83, i64 4
  %85 = load i32, ptr %84, align 4, !tbaa !30
  call void @_ZN10tetgenmesh12hilbert_initEi(ptr noundef nonnull align 8 dereferenceable(1536) %0, i32 noundef %85)
  %86 = load ptr, ptr %0, align 8, !tbaa !19
  %87 = getelementptr inbounds i8, ptr %86, i64 64
  %88 = load i32, ptr %87, align 8, !tbaa !20
  %89 = load ptr, ptr %10, align 8, !tbaa !9
  %90 = getelementptr inbounds i8, ptr %89, i64 236
  %91 = load i32, ptr %90, align 4, !tbaa !31
  %92 = getelementptr inbounds i8, ptr %89, i64 240
  %93 = load double, ptr %92, align 8, !tbaa !32
  call void @_ZN10tetgenmesh20brio_multiscale_sortEPPdiidPi(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull %24, i32 noundef %88, i32 noundef %91, double noundef %93, ptr noundef nonnull %7)
  br label %.loopexit

.loopexit:                                        ; preds = %.lr.ph, %35, %._crit_edge, %82
  %94 = call i64 @clock() #11
  store i64 %94, ptr %1, align 8, !tbaa !33
  %95 = getelementptr inbounds i8, ptr %0, i64 496
  %96 = load double, ptr %95, align 8, !tbaa !34
  %97 = getelementptr inbounds i8, ptr %0, i64 504
  %98 = load double, ptr %97, align 8, !tbaa !35
  %99 = fsub double %96, %98
  %100 = getelementptr inbounds i8, ptr %0, i64 512
  %101 = load double, ptr %100, align 8, !tbaa !36
  %102 = getelementptr inbounds i8, ptr %0, i64 520
  %103 = load double, ptr %102, align 8, !tbaa !37
  %104 = fsub double %101, %103
  %105 = getelementptr inbounds i8, ptr %0, i64 528
  %106 = load double, ptr %105, align 8, !tbaa !38
  %107 = getelementptr inbounds i8, ptr %0, i64 536
  %108 = load double, ptr %107, align 8, !tbaa !39
  %109 = fsub double %106, %108
  %110 = call noundef double @_ZN10tetgenmesh5norm2Eddd(ptr noundef nonnull align 8 dereferenceable(1536) %0, double noundef %99, double noundef %104, double noundef %109)
  %111 = call double @sqrt(double noundef %110) #11
  %112 = fmul double %111, %111
  %113 = fmul double %111, %112
  %114 = load ptr, ptr %24, align 8, !tbaa !25
  %115 = getelementptr inbounds i8, ptr %24, i64 8
  %116 = load ptr, ptr %115, align 8, !tbaa !25
  %117 = call noundef double @_ZN10tetgenmesh8distanceEPdS0_(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %114, ptr noundef %116)
  %118 = fdiv double %117, %111
  %119 = load ptr, ptr %10, align 8, !tbaa !9
  %120 = getelementptr inbounds i8, ptr %119, i64 320
  %121 = load double, ptr %120, align 8, !tbaa !40
  %122 = fcmp olt double %118, %121
  br i1 %122, label %.lr.ph156, label %._crit_edge157.thread

._crit_edge157.thread:                            ; preds = %.loopexit
  %.pre202207 = load ptr, ptr %115, align 8, !tbaa !25
  br label %145

.lr.ph156:                                        ; preds = %.loopexit, %132
  %indvars.iv183 = phi i64 [ %indvars.iv.next184, %132 ], [ 1, %.loopexit ]
  %123 = phi double [ %140, %132 ], [ %121, %.loopexit ]
  %indvars.iv.next184 = add nuw nsw i64 %indvars.iv183, 1
  %124 = load ptr, ptr %0, align 8, !tbaa !19
  %125 = getelementptr inbounds i8, ptr %124, i64 64
  %126 = load i32, ptr %125, align 8, !tbaa !20
  %127 = add i32 %126, -2
  %128 = zext i32 %127 to i64
  %129 = icmp eq i64 %indvars.iv183, %128
  br i1 %129, label %130, label %132

130:                                              ; preds = %.lr.ph156
  %131 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.328, double noundef %123)
  call void @_Z15terminatetetgenP10tetgenmeshi(ptr noundef nonnull %0, i32 noundef 10)
  br label %132

132:                                              ; preds = %130, %.lr.ph156
  %133 = load ptr, ptr %24, align 8, !tbaa !25
  %134 = getelementptr inbounds ptr, ptr %24, i64 %indvars.iv.next184
  %135 = load ptr, ptr %134, align 8, !tbaa !25
  %136 = call noundef double @_ZN10tetgenmesh8distanceEPdS0_(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %133, ptr noundef %135)
  %137 = fdiv double %136, %111
  %138 = load ptr, ptr %10, align 8, !tbaa !9
  %139 = getelementptr inbounds i8, ptr %138, i64 320
  %140 = load double, ptr %139, align 8, !tbaa !40
  %141 = fcmp olt double %137, %140
  br i1 %141, label %.lr.ph156, label %._crit_edge157, !llvm.loop !41

._crit_edge157:                                   ; preds = %132
  %.pre202 = load ptr, ptr %115, align 8, !tbaa !25
  br i1 %122, label %142, label %145

142:                                              ; preds = %._crit_edge157
  %143 = getelementptr inbounds ptr, ptr %24, i64 %indvars.iv.next184
  %144 = load ptr, ptr %143, align 8, !tbaa !25
  store ptr %.pre202, ptr %143, align 8, !tbaa !25
  store ptr %144, ptr %115, align 8, !tbaa !25
  br label %145

145:                                              ; preds = %._crit_edge157.thread, %142, %._crit_edge157
  %146 = phi ptr [ %144, %142 ], [ %.pre202, %._crit_edge157 ], [ %.pre202207, %._crit_edge157.thread ]
  %147 = load ptr, ptr %24, align 8, !tbaa !25
  %148 = getelementptr inbounds i8, ptr %24, i64 16
  %149 = load ptr, ptr %148, align 8, !tbaa !25
  %150 = load double, ptr %146, align 8, !tbaa !42
  %151 = load double, ptr %147, align 8, !tbaa !42
  %152 = fsub double %150, %151
  store double %152, ptr %4, align 16, !tbaa !42
  %153 = getelementptr inbounds i8, ptr %146, i64 8
  %154 = load double, ptr %153, align 8, !tbaa !42
  %155 = getelementptr inbounds i8, ptr %147, i64 8
  %156 = load double, ptr %155, align 8, !tbaa !42
  %157 = fsub double %154, %156
  %158 = getelementptr inbounds i8, ptr %4, i64 8
  %159 = getelementptr inbounds i8, ptr %149, i64 8
  %160 = load double, ptr %149, align 8, !tbaa !42
  %161 = load double, ptr %147, align 8, !tbaa !42
  store double %157, ptr %158, align 8, !tbaa !42
  %162 = load double, ptr %159, align 8, !tbaa !42
  %163 = load double, ptr %155, align 8, !tbaa !42
  %164 = insertelement <2 x double> poison, double %160, i64 0
  %165 = insertelement <2 x double> %164, double %162, i64 1
  %166 = insertelement <2 x double> poison, double %161, i64 0
  %167 = insertelement <2 x double> %166, double %163, i64 1
  %168 = fsub <2 x double> %165, %167
  store <2 x double> %168, ptr %5, align 16, !tbaa !42
  %169 = getelementptr inbounds i8, ptr %146, i64 16
  %170 = load double, ptr %169, align 8, !tbaa !42
  %171 = getelementptr inbounds i8, ptr %147, i64 16
  %172 = load double, ptr %171, align 8, !tbaa !42
  %173 = fsub double %170, %172
  %174 = getelementptr inbounds i8, ptr %4, i64 16
  store double %173, ptr %174, align 16, !tbaa !42
  %175 = getelementptr inbounds i8, ptr %149, i64 16
  %176 = load double, ptr %175, align 8, !tbaa !42
  %177 = load double, ptr %171, align 8, !tbaa !42
  %178 = fsub double %176, %177
  %179 = getelementptr inbounds i8, ptr %5, i64 16
  store double %178, ptr %179, align 16, !tbaa !42
  call void @_ZN10tetgenmesh5crossEPdS0_S0_(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef nonnull %6)
  %180 = getelementptr inbounds i8, ptr %6, i64 8
  %181 = getelementptr inbounds i8, ptr %6, i64 16
  %182 = load double, ptr %6, align 16, !tbaa !42
  %183 = load double, ptr %180, align 8, !tbaa !42
  %184 = load double, ptr %181, align 16, !tbaa !42
  %185 = call noundef double @_ZN10tetgenmesh5norm2Eddd(ptr noundef nonnull align 8 dereferenceable(1536) %0, double noundef %182, double noundef %183, double noundef %184)
  %186 = call double @sqrt(double noundef %185) #11
  %187 = fdiv double %186, %112
  %188 = load ptr, ptr %10, align 8, !tbaa !9
  %189 = getelementptr inbounds i8, ptr %188, i64 320
  %190 = load double, ptr %189, align 8, !tbaa !40
  %191 = fmul double %190, %190
  %192 = fcmp olt double %187, %191
  br i1 %192, label %.lr.ph163, label %._crit_edge164.thread

._crit_edge164.thread:                            ; preds = %145
  %.pre203209 = load ptr, ptr %148, align 8, !tbaa !25
  br label %228

.lr.ph163:                                        ; preds = %145, %202
  %indvars.iv192 = phi i64 [ %indvars.iv.next193, %202 ], [ 2, %145 ]
  %193 = phi double [ %222, %202 ], [ %190, %145 ]
  %indvars.iv.next193 = add nuw nsw i64 %indvars.iv192, 1
  %194 = load ptr, ptr %0, align 8, !tbaa !19
  %195 = getelementptr inbounds i8, ptr %194, i64 64
  %196 = load i32, ptr %195, align 8, !tbaa !20
  %197 = add i32 %196, -2
  %198 = zext i32 %197 to i64
  %199 = icmp eq i64 %indvars.iv192, %198
  br i1 %199, label %200, label %202

200:                                              ; preds = %.lr.ph163
  %201 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.329, double noundef %193)
  call void @_Z15terminatetetgenP10tetgenmeshi(ptr noundef nonnull %0, i32 noundef 10)
  br label %202

202:                                              ; preds = %200, %.lr.ph163
  %203 = getelementptr inbounds ptr, ptr %24, i64 %indvars.iv.next193
  %204 = load ptr, ptr %203, align 8, !tbaa !25
  %205 = load ptr, ptr %24, align 8, !tbaa !25
  %206 = load <2 x double>, ptr %204, align 8, !tbaa !42
  %207 = load <2 x double>, ptr %205, align 8, !tbaa !42
  %208 = fsub <2 x double> %206, %207
  store <2 x double> %208, ptr %5, align 16, !tbaa !42
  %209 = getelementptr inbounds i8, ptr %204, i64 16
  %210 = load double, ptr %209, align 8, !tbaa !42
  %211 = getelementptr inbounds i8, ptr %205, i64 16
  %212 = load double, ptr %211, align 8, !tbaa !42
  %213 = fsub double %210, %212
  store double %213, ptr %179, align 16, !tbaa !42
  call void @_ZN10tetgenmesh5crossEPdS0_S0_(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef nonnull %6)
  %214 = load double, ptr %6, align 16, !tbaa !42
  %215 = load double, ptr %180, align 8, !tbaa !42
  %216 = load double, ptr %181, align 16, !tbaa !42
  %217 = call noundef double @_ZN10tetgenmesh5norm2Eddd(ptr noundef nonnull align 8 dereferenceable(1536) %0, double noundef %214, double noundef %215, double noundef %216)
  %218 = call double @sqrt(double noundef %217) #11
  %219 = fdiv double %218, %112
  %220 = load ptr, ptr %10, align 8, !tbaa !9
  %221 = getelementptr inbounds i8, ptr %220, i64 320
  %222 = load double, ptr %221, align 8, !tbaa !40
  %223 = fmul double %222, %222
  %224 = fcmp olt double %219, %223
  br i1 %224, label %.lr.ph163, label %._crit_edge164, !llvm.loop !43

._crit_edge164:                                   ; preds = %202
  %.pre203 = load ptr, ptr %148, align 8, !tbaa !25
  %225 = and i64 %indvars.iv.next193, 4294967295
  %226 = getelementptr inbounds ptr, ptr %24, i64 %225
  %227 = load ptr, ptr %226, align 8, !tbaa !25
  store ptr %.pre203, ptr %226, align 8, !tbaa !25
  store ptr %227, ptr %148, align 8, !tbaa !25
  br label %228

228:                                              ; preds = %._crit_edge164.thread, %._crit_edge164
  %229 = phi ptr [ %227, %._crit_edge164 ], [ %.pre203209, %._crit_edge164.thread ]
  %230 = load ptr, ptr %24, align 8, !tbaa !25
  %231 = load ptr, ptr %115, align 8, !tbaa !25
  %232 = getelementptr inbounds i8, ptr %24, i64 24
  %233 = load ptr, ptr %232, align 8, !tbaa !25
  %234 = call noundef double @_ZN10tetgenmesh12orient3dfastEPdS0_S0_S0_(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %230, ptr noundef %231, ptr noundef %229, ptr noundef %233)
  %235 = call double @llvm.fabs.f64(double %234)
  %236 = fdiv double %235, %113
  %237 = load ptr, ptr %10, align 8, !tbaa !9
  %238 = getelementptr inbounds i8, ptr %237, i64 320
  %239 = load double, ptr %238, align 8, !tbaa !40
  %240 = fmul double %239, %239
  %241 = fmul double %239, %240
  %242 = fcmp olt double %236, %241
  br i1 %242, label %.lr.ph168, label %._crit_edge169.thread

.lr.ph168:                                        ; preds = %228, %251
  %indvars.iv195 = phi i64 [ %indvars.iv.next196, %251 ], [ 3, %228 ]
  %243 = phi double [ %262, %251 ], [ %239, %228 ]
  %indvars.iv.next196 = add nuw nsw i64 %indvars.iv195, 1
  %244 = load ptr, ptr %0, align 8, !tbaa !19
  %245 = getelementptr inbounds i8, ptr %244, i64 64
  %246 = load i32, ptr %245, align 8, !tbaa !20
  %247 = zext i32 %246 to i64
  %248 = icmp eq i64 %indvars.iv.next196, %247
  br i1 %248, label %249, label %251

249:                                              ; preds = %.lr.ph168
  %250 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.330, double noundef %243)
  call void @_Z15terminatetetgenP10tetgenmeshi(ptr noundef nonnull %0, i32 noundef 10)
  br label %251

251:                                              ; preds = %249, %.lr.ph168
  %252 = load ptr, ptr %24, align 8, !tbaa !25
  %253 = load ptr, ptr %115, align 8, !tbaa !25
  %254 = load ptr, ptr %148, align 8, !tbaa !25
  %255 = getelementptr inbounds ptr, ptr %24, i64 %indvars.iv.next196
  %256 = load ptr, ptr %255, align 8, !tbaa !25
  %257 = call noundef double @_ZN10tetgenmesh12orient3dfastEPdS0_S0_S0_(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %252, ptr noundef %253, ptr noundef %254, ptr noundef %256)
  %258 = call double @llvm.fabs.f64(double %257)
  %259 = fdiv double %258, %113
  %260 = load ptr, ptr %10, align 8, !tbaa !9
  %261 = getelementptr inbounds i8, ptr %260, i64 320
  %262 = load double, ptr %261, align 8, !tbaa !40
  %263 = fmul double %262, %262
  %264 = fmul double %262, %263
  %265 = fcmp olt double %259, %264
  br i1 %265, label %.lr.ph168, label %._crit_edge169, !llvm.loop !44

._crit_edge169:                                   ; preds = %251
  %266 = icmp ugt i64 %indvars.iv195, 2
  br i1 %266, label %267, label %._crit_edge169.thread

267:                                              ; preds = %._crit_edge169
  %268 = and i64 %indvars.iv.next196, 4294967295
  %269 = getelementptr inbounds ptr, ptr %24, i64 %268
  %270 = load ptr, ptr %269, align 8, !tbaa !25
  %271 = load ptr, ptr %232, align 8, !tbaa !25
  store ptr %271, ptr %269, align 8, !tbaa !25
  store ptr %270, ptr %232, align 8, !tbaa !25
  br label %._crit_edge169.thread

._crit_edge169.thread:                            ; preds = %228, %267, %._crit_edge169
  %.0132.lcssa212 = phi double [ %257, %267 ], [ %257, %._crit_edge169 ], [ %234, %228 ]
  %272 = fcmp ogt double %.0132.lcssa212, 0.000000e+00
  %.pre204 = load ptr, ptr %24, align 8, !tbaa !25
  %.pre205 = load ptr, ptr %115, align 8, !tbaa !25
  br i1 %272, label %273, label %274

273:                                              ; preds = %._crit_edge169.thread
  store ptr %.pre205, ptr %24, align 8, !tbaa !25
  store ptr %.pre204, ptr %115, align 8, !tbaa !25
  br label %274

274:                                              ; preds = %273, %._crit_edge169.thread
  %275 = phi ptr [ %.pre204, %273 ], [ %.pre205, %._crit_edge169.thread ]
  %276 = phi ptr [ %.pre205, %273 ], [ %.pre204, %._crit_edge169.thread ]
  %277 = load ptr, ptr %148, align 8, !tbaa !25
  %278 = load ptr, ptr %232, align 8, !tbaa !25
  call void @_ZN10tetgenmesh15initialdelaunayEPdS0_S0_S0_(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %276, ptr noundef %275, ptr noundef %277, ptr noundef %278)
  %279 = load ptr, ptr %10, align 8, !tbaa !9
  %280 = getelementptr inbounds i8, ptr %279, i64 148
  %281 = load i32, ptr %280, align 4, !tbaa !24
  %.not140 = icmp eq i32 %281, 0
  br i1 %.not140, label %284, label %282

282:                                              ; preds = %274
  %283 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.331)
  br label %284

284:                                              ; preds = %282, %274
  call void @llvm.lifetime.start.p0(i64 112, ptr nonnull %8) #11
  call void @_ZN10tetgenmesh17insertvertexflagsC2Ev(ptr noundef nonnull align 8 dereferenceable(112) %8)
  call void @llvm.lifetime.start.p0(i64 120, ptr nonnull %9) #11
  call void @_ZN10tetgenmesh15flipconstraintsC2Ev(ptr noundef nonnull align 8 dereferenceable(120) %9)
  %285 = load ptr, ptr %10, align 8, !tbaa !9
  %286 = getelementptr inbounds i8, ptr %285, i64 32
  %287 = load i32, ptr %286, align 8, !tbaa !45
  %.not141 = icmp eq i32 %287, 0
  br i1 %.not141, label %289, label %288

288:                                              ; preds = %284
  store i32 1, ptr %9, align 8, !tbaa !46
  br label %289

289:                                              ; preds = %284, %288
  %290 = phi <2 x i32> [ <i32 0, i32 1>, %288 ], [ <i32 1, i32 0>, %284 ]
  %291 = getelementptr inbounds i8, ptr %8, i64 4
  store <2 x i32> %290, ptr %291, align 4
  %292 = load ptr, ptr %0, align 8, !tbaa !19
  %293 = getelementptr inbounds i8, ptr %292, i64 64
  %294 = load i32, ptr %293, align 8, !tbaa !20
  %295 = icmp sgt i32 %294, 4
  br i1 %295, label %.lr.ph174, label %._crit_edge175

.lr.ph174:                                        ; preds = %289
  %296 = getelementptr inbounds i8, ptr %0, i64 288
  %297 = getelementptr inbounds i8, ptr %0, i64 120
  %298 = getelementptr inbounds i8, ptr %0, i64 600
  %299 = getelementptr inbounds i8, ptr %0, i64 488
  %300 = getelementptr inbounds i8, ptr %0, i64 584
  br label %301

301:                                              ; preds = %.lr.ph174, %385
  %indvars.iv198 = phi i64 [ 4, %.lr.ph174 ], [ %indvars.iv.next199, %385 ]
  %302 = getelementptr inbounds ptr, ptr %24, i64 %indvars.iv198
  %303 = load ptr, ptr %302, align 8, !tbaa !25
  %304 = call noundef i32 @_ZN10tetgenmesh9pointtypeEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %303)
  %305 = icmp eq i32 %304, 0
  br i1 %305, label %306, label %308

306:                                              ; preds = %301
  %307 = load ptr, ptr %302, align 8, !tbaa !25
  call void @_ZN10tetgenmesh12setpointtypeEPdNS_8verttypeE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %307, i32 noundef 5)
  br label %308

308:                                              ; preds = %306, %301
  %309 = load ptr, ptr %10, align 8, !tbaa !9
  %310 = getelementptr inbounds i8, ptr %309, i64 28
  %311 = load i32, ptr %310, align 4, !tbaa !29
  %.not142 = icmp eq i32 %311, 0
  br i1 %.not142, label %312, label %315

312:                                              ; preds = %308
  %313 = getelementptr inbounds i8, ptr %309, i64 224
  %314 = load i32, ptr %313, align 8, !tbaa !23
  %.not143 = icmp eq i32 %314, 0
  br i1 %.not143, label %317, label %315

315:                                              ; preds = %312, %308
  %316 = load ptr, ptr %296, align 8, !tbaa !48
  br label %317

317:                                              ; preds = %312, %315
  %storemerge = phi ptr [ %316, %315 ], [ null, %312 ]
  store ptr %storemerge, ptr %3, align 8, !tbaa !49
  store i32 1, ptr %8, align 8, !tbaa !50
  %318 = load ptr, ptr %302, align 8, !tbaa !25
  %319 = call noundef i32 @_ZN10tetgenmesh11insertpointEPdPNS_7trifaceEPNS_4faceES4_PNS_17insertvertexflagsE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %318, ptr noundef nonnull %3, ptr noundef null, ptr noundef null, ptr noundef nonnull %8)
  %.not144 = icmp eq i32 %319, 0
  br i1 %.not144, label %328, label %320

320:                                              ; preds = %317
  %321 = load ptr, ptr %297, align 8, !tbaa !52
  %.not149 = icmp eq ptr %321, null
  br i1 %.not149, label %385, label %322

322:                                              ; preds = %320
  %323 = load ptr, ptr %302, align 8, !tbaa !25
  %324 = load i32, ptr %8, align 8, !tbaa !50
  %325 = icmp eq i32 %324, 1
  %326 = zext i1 %325 to i32
  %327 = call noundef i32 @_ZN10tetgenmesh15incrementalflipEPdiPNS_15flipconstraintsE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %323, i32 noundef %326, ptr noundef nonnull %9)
  br label %385

328:                                              ; preds = %317
  %329 = load i32, ptr %8, align 8, !tbaa !50
  switch i32 %329, label %385 [
    i32 5, label %330
    i32 9, label %348
    i32 10, label %373
  ]

330:                                              ; preds = %328
  %331 = call noundef ptr @_ZN10tetgenmesh3orgERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %3)
  %332 = load ptr, ptr %10, align 8, !tbaa !9
  %333 = getelementptr inbounds i8, ptr %332, i64 5456
  %334 = load i32, ptr %333, align 8, !tbaa !53
  %.not147 = icmp eq i32 %334, 4
  br i1 %.not147, label %343, label %335

335:                                              ; preds = %330
  %336 = getelementptr inbounds i8, ptr %332, i64 144
  %337 = load i32, ptr %336, align 8, !tbaa !16
  %.not148 = icmp eq i32 %337, 0
  br i1 %.not148, label %338, label %343

338:                                              ; preds = %335
  %339 = load ptr, ptr %302, align 8, !tbaa !25
  %340 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %339)
  %341 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %331)
  %342 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.332, i32 noundef %340, i32 noundef %341)
  br label %343

343:                                              ; preds = %335, %338, %330
  %344 = load ptr, ptr %302, align 8, !tbaa !25
  call void @_ZN10tetgenmesh12setpoint2pptEPdS0_(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %344, ptr noundef %331)
  %345 = load ptr, ptr %302, align 8, !tbaa !25
  call void @_ZN10tetgenmesh12setpointtypeEPdNS_8verttypeE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %345, i32 noundef 1)
  %346 = load i64, ptr %300, align 8, !tbaa !54
  %347 = add nsw i64 %346, 1
  store i64 %347, ptr %300, align 8, !tbaa !54
  br label %385

348:                                              ; preds = %328
  %349 = call noundef ptr @_ZN10tetgenmesh3orgERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %3)
  %350 = load ptr, ptr %10, align 8, !tbaa !9
  %351 = getelementptr inbounds i8, ptr %350, i64 144
  %352 = load i32, ptr %351, align 8, !tbaa !16
  %.not146 = icmp eq i32 %352, 0
  br i1 %.not146, label %353, label %368

353:                                              ; preds = %348
  %354 = load ptr, ptr %302, align 8, !tbaa !25
  %355 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %354)
  %356 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %349)
  %357 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.333, i32 noundef %355, i32 noundef %356)
  %358 = load ptr, ptr %302, align 8, !tbaa !25
  %359 = getelementptr inbounds i8, ptr %358, i64 24
  %360 = load double, ptr %359, align 8, !tbaa !42
  %361 = load double, ptr %299, align 8, !tbaa !55
  %362 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.334, double noundef %360, double noundef %361)
  %363 = load ptr, ptr %10, align 8, !tbaa !9
  %364 = getelementptr inbounds i8, ptr %363, i64 320
  %365 = load double, ptr %364, align 8, !tbaa !40
  %366 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.317, double noundef %365)
  %367 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.335)
  br label %368

368:                                              ; preds = %353, %348
  %369 = load ptr, ptr %302, align 8, !tbaa !25
  call void @_ZN10tetgenmesh12setpoint2pptEPdS0_(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %369, ptr noundef %349)
  %370 = load ptr, ptr %302, align 8, !tbaa !25
  call void @_ZN10tetgenmesh12setpointtypeEPdNS_8verttypeE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %370, i32 noundef 1)
  %371 = load i64, ptr %300, align 8, !tbaa !54
  %372 = add nsw i64 %371, 1
  store i64 %372, ptr %300, align 8, !tbaa !54
  br label %385

373:                                              ; preds = %328
  %374 = load ptr, ptr %10, align 8, !tbaa !9
  %375 = getelementptr inbounds i8, ptr %374, i64 148
  %376 = load i32, ptr %375, align 4, !tbaa !24
  %.not145 = icmp eq i32 %376, 0
  br i1 %.not145, label %381, label %377

377:                                              ; preds = %373
  %378 = load ptr, ptr %302, align 8, !tbaa !25
  %379 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %378)
  %380 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.336, i32 noundef %379)
  br label %381

381:                                              ; preds = %377, %373
  %382 = load ptr, ptr %302, align 8, !tbaa !25
  call void @_ZN10tetgenmesh12setpointtypeEPdNS_8verttypeE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %382, i32 noundef 9)
  %383 = load i64, ptr %298, align 8, !tbaa !56
  %384 = add nsw i64 %383, 1
  store i64 %384, ptr %298, align 8, !tbaa !56
  br label %385

385:                                              ; preds = %328, %322, %320, %368, %381, %343
  %indvars.iv.next199 = add nuw nsw i64 %indvars.iv198, 1
  %386 = load ptr, ptr %0, align 8, !tbaa !19
  %387 = getelementptr inbounds i8, ptr %386, i64 64
  %388 = load i32, ptr %387, align 8, !tbaa !20
  %389 = sext i32 %388 to i64
  %390 = icmp slt i64 %indvars.iv.next199, %389
  br i1 %390, label %301, label %._crit_edge175, !llvm.loop !57

._crit_edge175:                                   ; preds = %385, %289
  call void @_ZdaPv(ptr noundef nonnull %24) #13
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %9) #11
  call void @llvm.lifetime.end.p0(i64 112, ptr nonnull %8) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #11
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #11
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #11
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #11
  ret void
}

; Function Attrs: nounwind
declare void @srand(i32 noundef) local_unnamed_addr #10

; Function Attrs: nounwind
declare i32 @rand() local_unnamed_addr #10

; Function Attrs: nounwind
declare i64 @clock() local_unnamed_addr #10

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

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

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

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


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