; 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 = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.tetgenmesh::triface", %"class.tetgenmesh::face", ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i64, i64, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, [8 x [3 x [8 x i32]]], [8 x i32] }
%"class.tetgenmesh::triface" = type <{ ptr, i32, [4 x i8] }>
%"class.tetgenmesh::face" = type <{ ptr, i32, [4 x i8] }>
%class.tetgenbehavior = type <{ i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, double, double, double, double, double, double, double, double, double, double, double, double, [1024 x i8], [1024 x i8], [1024 x i8], [1024 x i8], [1024 x i8], i32, [4 x i8] }>
%"class.tetgenmesh::arraypool" = type { i32, i32, i32, i32, i32, ptr, i64, i64 }
%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.475 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.476 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.477 = external hidden unnamed_addr constant [44 x i8], align 1

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

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

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #3

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

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

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

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

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

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

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

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

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

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

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

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

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

28:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  %29 = getelementptr inbounds %class.tetgenmesh, ptr %22, i32 0, i32 7
  %30 = load ptr, ptr %29, align 8, !tbaa !19
  call void @_ZN10tetgenmesh10memorypool13traversalinitEv(ptr noundef nonnull align 8 dereferenceable(88) %30)
  %31 = call noundef ptr @_ZN10tetgenmesh13pointtraverseEv(ptr noundef nonnull align 8 dereferenceable(1536) %22)
  store ptr %31, ptr %5, align 8, !tbaa !5
  br label %32

32:                                               ; preds = %146, %28
  %33 = load ptr, ptr %5, align 8, !tbaa !5
  %34 = icmp ne ptr %33, null
  br i1 %34, label %35, label %148

35:                                               ; preds = %32
  %36 = load ptr, ptr %5, align 8, !tbaa !5
  %37 = getelementptr inbounds %class.tetgenmesh, ptr %22, i32 0, i32 42
  %38 = load i32, ptr %37, align 4, !tbaa !20
  %39 = sext i32 %38 to i64
  %40 = getelementptr inbounds double, ptr %36, i64 %39
  %41 = load double, ptr %40, align 8, !tbaa !21
  %42 = fcmp ogt double %41, 0.000000e+00
  br i1 %42, label %43, label %146

43:                                               ; preds = %35
  %44 = load ptr, ptr %5, align 8, !tbaa !5
  %45 = getelementptr inbounds %class.tetgenmesh, ptr %22, i32 0, i32 16
  %46 = load ptr, ptr %45, align 8, !tbaa !22
  %47 = getelementptr inbounds %class.tetgenmesh, ptr %22, i32 0, i32 21
  %48 = load ptr, ptr %47, align 8, !tbaa !23
  %49 = call noundef i32 @_ZN10tetgenmesh13getvertexstarEiPdPNS_9arraypoolES2_S2_(ptr noundef nonnull align 8 dereferenceable(1536) %22, i32 noundef 1, ptr noundef %44, ptr noundef %46, ptr noundef %48, ptr noundef null)
  %50 = getelementptr inbounds %class.tetgenmesh, ptr %22, i32 0, i32 21
  %51 = load ptr, ptr %50, align 8, !tbaa !23
  %52 = getelementptr inbounds %"class.tetgenmesh::arraypool", ptr %51, i32 0, i32 5
  %53 = load ptr, ptr %52, align 8, !tbaa !24
  %54 = getelementptr inbounds %class.tetgenmesh, ptr %22, i32 0, i32 21
  %55 = load ptr, ptr %54, align 8, !tbaa !23
  %56 = getelementptr inbounds %"class.tetgenmesh::arraypool", ptr %55, i32 0, i32 2
  %57 = load i32, ptr %56, align 8, !tbaa !26
  %58 = ashr i32 0, %57
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds ptr, ptr %53, i64 %59
  %61 = load ptr, ptr %60, align 8, !tbaa !5
  %62 = getelementptr inbounds %class.tetgenmesh, ptr %22, i32 0, i32 21
  %63 = load ptr, ptr %62, align 8, !tbaa !23
  %64 = getelementptr inbounds %"class.tetgenmesh::arraypool", ptr %63, i32 0, i32 3
  %65 = load i32, ptr %64, align 4, !tbaa !27
  %66 = and i32 0, %65
  %67 = getelementptr inbounds %class.tetgenmesh, ptr %22, i32 0, i32 21
  %68 = load ptr, ptr %67, align 8, !tbaa !23
  %69 = getelementptr inbounds %"class.tetgenmesh::arraypool", ptr %68, i32 0, i32 0
  %70 = load i32, ptr %69, align 8, !tbaa !28
  %71 = mul nsw i32 %66, %70
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds i8, ptr %61, i64 %72
  store ptr %73, ptr %6, align 8, !tbaa !5
  %74 = load ptr, ptr %5, align 8, !tbaa !5
  %75 = load ptr, ptr %6, align 8, !tbaa !5
  %76 = load ptr, ptr %75, align 8, !tbaa !5
  %77 = call noundef double @_ZN10tetgenmesh8distanceEPdS0_(ptr noundef nonnull align 8 dereferenceable(1536) %22, ptr noundef %74, ptr noundef %76)
  store double %77, ptr %9, align 8, !tbaa !21
  store i32 1, ptr %10, align 4, !tbaa !29
  br label %78

78:                                               ; preds = %123, %43
  %79 = load i32, ptr %10, align 4, !tbaa !29
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds %class.tetgenmesh, ptr %22, i32 0, i32 21
  %82 = load ptr, ptr %81, align 8, !tbaa !23
  %83 = getelementptr inbounds %"class.tetgenmesh::arraypool", ptr %82, i32 0, i32 6
  %84 = load i64, ptr %83, align 8, !tbaa !30
  %85 = icmp slt i64 %80, %84
  br i1 %85, label %86, label %126

86:                                               ; preds = %78
  %87 = getelementptr inbounds %class.tetgenmesh, ptr %22, i32 0, i32 21
  %88 = load ptr, ptr %87, align 8, !tbaa !23
  %89 = getelementptr inbounds %"class.tetgenmesh::arraypool", ptr %88, i32 0, i32 5
  %90 = load ptr, ptr %89, align 8, !tbaa !24
  %91 = load i32, ptr %10, align 4, !tbaa !29
  %92 = getelementptr inbounds %class.tetgenmesh, ptr %22, i32 0, i32 21
  %93 = load ptr, ptr %92, align 8, !tbaa !23
  %94 = getelementptr inbounds %"class.tetgenmesh::arraypool", ptr %93, i32 0, i32 2
  %95 = load i32, ptr %94, align 8, !tbaa !26
  %96 = ashr i32 %91, %95
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds ptr, ptr %90, i64 %97
  %99 = load ptr, ptr %98, align 8, !tbaa !5
  %100 = load i32, ptr %10, align 4, !tbaa !29
  %101 = getelementptr inbounds %class.tetgenmesh, ptr %22, i32 0, i32 21
  %102 = load ptr, ptr %101, align 8, !tbaa !23
  %103 = getelementptr inbounds %"class.tetgenmesh::arraypool", ptr %102, i32 0, i32 3
  %104 = load i32, ptr %103, align 4, !tbaa !27
  %105 = and i32 %100, %104
  %106 = getelementptr inbounds %class.tetgenmesh, ptr %22, i32 0, i32 21
  %107 = load ptr, ptr %106, align 8, !tbaa !23
  %108 = getelementptr inbounds %"class.tetgenmesh::arraypool", ptr %107, i32 0, i32 0
  %109 = load i32, ptr %108, align 8, !tbaa !28
  %110 = mul nsw i32 %105, %109
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds i8, ptr %99, i64 %111
  store ptr %112, ptr %6, align 8, !tbaa !5
  %113 = load ptr, ptr %5, align 8, !tbaa !5
  %114 = load ptr, ptr %6, align 8, !tbaa !5
  %115 = load ptr, ptr %114, align 8, !tbaa !5
  %116 = call noundef double @_ZN10tetgenmesh8distanceEPdS0_(ptr noundef nonnull align 8 dereferenceable(1536) %22, ptr noundef %113, ptr noundef %115)
  store double %116, ptr %8, align 8, !tbaa !21
  %117 = load double, ptr %8, align 8, !tbaa !21
  %118 = load double, ptr %9, align 8, !tbaa !21
  %119 = fcmp olt double %117, %118
  br i1 %119, label %120, label %122

120:                                              ; preds = %86
  %121 = load double, ptr %8, align 8, !tbaa !21
  store double %121, ptr %9, align 8, !tbaa !21
  br label %122

122:                                              ; preds = %120, %86
  br label %123

123:                                              ; preds = %122
  %124 = load i32, ptr %10, align 4, !tbaa !29
  %125 = add nsw i32 %124, 1
  store i32 %125, ptr %10, align 4, !tbaa !29
  br label %78, !llvm.loop !31

126:                                              ; preds = %78
  %127 = getelementptr inbounds %class.tetgenmesh, ptr %22, i32 0, i32 21
  %128 = load ptr, ptr %127, align 8, !tbaa !23
  call void @_ZN10tetgenmesh9arraypool7restartEv(ptr noundef nonnull align 8 dereferenceable(48) %128)
  %129 = getelementptr inbounds %class.tetgenmesh, ptr %22, i32 0, i32 16
  %130 = load ptr, ptr %129, align 8, !tbaa !22
  call void @_ZN10tetgenmesh9arraypool7restartEv(ptr noundef nonnull align 8 dereferenceable(48) %130)
  %131 = load double, ptr %9, align 8, !tbaa !21
  %132 = load ptr, ptr %5, align 8, !tbaa !5
  %133 = getelementptr inbounds %class.tetgenmesh, ptr %22, i32 0, i32 42
  %134 = load i32, ptr %133, align 4, !tbaa !20
  %135 = sext i32 %134 to i64
  %136 = getelementptr inbounds double, ptr %132, i64 %135
  %137 = load double, ptr %136, align 8, !tbaa !21
  %138 = fcmp olt double %131, %137
  br i1 %138, label %139, label %145

139:                                              ; preds = %126
  %140 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN10tetgenmesh7pinfectEPd(ptr noundef nonnull align 8 dereferenceable(1536) %22, ptr noundef %140)
  %141 = load ptr, ptr %4, align 8, !tbaa !5
  %142 = call noundef i32 @_ZN10tetgenmesh9arraypool8newindexEPPv(ptr noundef nonnull align 8 dereferenceable(48) %141, ptr noundef %6)
  %143 = load ptr, ptr %5, align 8, !tbaa !5
  %144 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %143, ptr %144, align 8, !tbaa !5
  br label %145

145:                                              ; preds = %139, %126
  br label %146

146:                                              ; preds = %145, %35
  %147 = call noundef ptr @_ZN10tetgenmesh13pointtraverseEv(ptr noundef nonnull align 8 dereferenceable(1536) %22)
  store ptr %147, ptr %5, align 8, !tbaa !5
  br label %32, !llvm.loop !33

148:                                              ; preds = %32
  %149 = getelementptr inbounds %class.tetgenmesh, ptr %22, i32 0, i32 2
  %150 = load ptr, ptr %149, align 8, !tbaa !9
  %151 = getelementptr inbounds %class.tetgenbehavior, ptr %150, i32 0, i32 37
  %152 = load i32, ptr %151, align 4, !tbaa !34
  %153 = icmp sgt i32 %152, 1
  br i1 %153, label %154, label %159

154:                                              ; preds = %148
  %155 = load ptr, ptr %4, align 8, !tbaa !5
  %156 = getelementptr inbounds %"class.tetgenmesh::arraypool", ptr %155, i32 0, i32 6
  %157 = load i64, ptr %156, align 8, !tbaa !30
  %158 = call i32 (ptr, ...) @printf(ptr noundef @.str.475, i64 noundef %157)
  br label %159

159:                                              ; preds = %154, %148
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  br label %160

160:                                              ; preds = %159, %2
  %161 = getelementptr inbounds %class.tetgenmesh, ptr %22, i32 0, i32 0
  %162 = load ptr, ptr %161, align 8, !tbaa !35
  %163 = getelementptr inbounds %class.tetgenio, ptr %162, i32 0, i32 6
  %164 = load ptr, ptr %163, align 8, !tbaa !36
  %165 = icmp ne ptr %164, null
  br i1 %165, label %166, label %219

166:                                              ; preds = %160
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #8
  %167 = load ptr, ptr %4, align 8, !tbaa !5
  %168 = getelementptr inbounds %"class.tetgenmesh::arraypool", ptr %167, i32 0, i32 6
  %169 = load i64, ptr %168, align 8, !tbaa !30
  store i64 %169, ptr %11, align 8, !tbaa !38
  %170 = getelementptr inbounds %class.tetgenmesh, ptr %22, i32 0, i32 7
  %171 = load ptr, ptr %170, align 8, !tbaa !19
  call void @_ZN10tetgenmesh10memorypool13traversalinitEv(ptr noundef nonnull align 8 dereferenceable(88) %171)
  %172 = call noundef ptr @_ZN10tetgenmesh13pointtraverseEv(ptr noundef nonnull align 8 dereferenceable(1536) %22)
  store ptr %172, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #8
  store i32 0, ptr %12, align 4, !tbaa !29
  br label %173

173:                                              ; preds = %201, %166
  %174 = load ptr, ptr %5, align 8, !tbaa !5
  %175 = icmp ne ptr %174, null
  br i1 %175, label %176, label %205

176:                                              ; preds = %173
  %177 = load i32, ptr %12, align 4, !tbaa !29
  %178 = getelementptr inbounds %class.tetgenmesh, ptr %22, i32 0, i32 0
  %179 = load ptr, ptr %178, align 8, !tbaa !35
  %180 = getelementptr inbounds %class.tetgenio, ptr %179, i32 0, i32 9
  %181 = load i32, ptr %180, align 8, !tbaa !39
  %182 = icmp slt i32 %177, %181
  br i1 %182, label %183, label %200

183:                                              ; preds = %176
  %184 = getelementptr inbounds %class.tetgenmesh, ptr %22, i32 0, i32 0
  %185 = load ptr, ptr %184, align 8, !tbaa !35
  %186 = getelementptr inbounds %class.tetgenio, ptr %185, i32 0, i32 6
  %187 = load ptr, ptr %186, align 8, !tbaa !36
  %188 = load i32, ptr %12, align 4, !tbaa !29
  %189 = sext i32 %188 to i64
  %190 = getelementptr inbounds i32, ptr %187, i64 %189
  %191 = load i32, ptr %190, align 4, !tbaa !29
  %192 = icmp eq i32 %191, -1
  br i1 %192, label %193, label %199

193:                                              ; preds = %183
  %194 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN10tetgenmesh7pinfectEPd(ptr noundef nonnull align 8 dereferenceable(1536) %22, ptr noundef %194)
  %195 = load ptr, ptr %4, align 8, !tbaa !5
  %196 = call noundef i32 @_ZN10tetgenmesh9arraypool8newindexEPPv(ptr noundef nonnull align 8 dereferenceable(48) %195, ptr noundef %6)
  %197 = load ptr, ptr %5, align 8, !tbaa !5
  %198 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %197, ptr %198, align 8, !tbaa !5
  br label %199

199:                                              ; preds = %193, %183
  br label %201

200:                                              ; preds = %176
  br label %205

201:                                              ; preds = %199
  %202 = load i32, ptr %12, align 4, !tbaa !29
  %203 = add nsw i32 %202, 1
  store i32 %203, ptr %12, align 4, !tbaa !29
  %204 = call noundef ptr @_ZN10tetgenmesh13pointtraverseEv(ptr noundef nonnull align 8 dereferenceable(1536) %22)
  store ptr %204, ptr %5, align 8, !tbaa !5
  br label %173, !llvm.loop !40

205:                                              ; preds = %200, %173
  %206 = getelementptr inbounds %class.tetgenmesh, ptr %22, i32 0, i32 2
  %207 = load ptr, ptr %206, align 8, !tbaa !9
  %208 = getelementptr inbounds %class.tetgenbehavior, ptr %207, i32 0, i32 37
  %209 = load i32, ptr %208, align 4, !tbaa !34
  %210 = icmp sgt i32 %209, 1
  br i1 %210, label %211, label %218

211:                                              ; preds = %205
  %212 = load ptr, ptr %4, align 8, !tbaa !5
  %213 = getelementptr inbounds %"class.tetgenmesh::arraypool", ptr %212, i32 0, i32 6
  %214 = load i64, ptr %213, align 8, !tbaa !30
  %215 = load i64, ptr %11, align 8, !tbaa !38
  %216 = sub nsw i64 %214, %215
  %217 = call i32 (ptr, ...) @printf(ptr noundef @.str.476, i64 noundef %216)
  br label %218

218:                                              ; preds = %211, %205
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  br label %219

219:                                              ; preds = %218, %160
  %220 = getelementptr inbounds %class.tetgenmesh, ptr %22, i32 0, i32 2
  %221 = load ptr, ptr %220, align 8, !tbaa !9
  %222 = getelementptr inbounds %class.tetgenbehavior, ptr %221, i32 0, i32 44
  %223 = load i32, ptr %222, align 8, !tbaa !41
  %224 = icmp sgt i32 %223, 0
  br i1 %224, label %225, label %408

225:                                              ; preds = %219
  %226 = getelementptr inbounds %class.tetgenmesh, ptr %22, i32 0, i32 2
  %227 = load ptr, ptr %226, align 8, !tbaa !9
  %228 = getelementptr inbounds %class.tetgenbehavior, ptr %227, i32 0, i32 37
  %229 = load i32, ptr %228, align 4, !tbaa !34
  %230 = icmp sgt i32 %229, 1
  br i1 %230, label %231, label %238

231:                                              ; preds = %225
  %232 = getelementptr inbounds %class.tetgenmesh, ptr %22, i32 0, i32 2
  %233 = load ptr, ptr %232, align 8, !tbaa !9
  %234 = getelementptr inbounds %class.tetgenbehavior, ptr %233, i32 0, i32 71
  %235 = load double, ptr %234, align 8, !tbaa !42
  %236 = fmul double %235, 1.000000e+02
  %237 = call i32 (ptr, ...) @printf(ptr noundef @.str.477, double noundef %236)
  br label %238

238:                                              ; preds = %231, %225
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  %239 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 48) #9
  invoke void @_ZN10tetgenmesh9arraypoolC1Eii(ptr noundef nonnull align 8 dereferenceable(48) %239, i32 noundef 8, i32 noundef 10)
          to label %240 unwind label %266

240:                                              ; preds = %238
  store ptr %239, ptr %13, align 8, !tbaa !5
  %241 = getelementptr inbounds %class.tetgenmesh, ptr %22, i32 0, i32 7
  %242 = load ptr, ptr %241, align 8, !tbaa !19
  call void @_ZN10tetgenmesh10memorypool13traversalinitEv(ptr noundef nonnull align 8 dereferenceable(88) %242)
  %243 = call noundef ptr @_ZN10tetgenmesh13pointtraverseEv(ptr noundef nonnull align 8 dereferenceable(1536) %22)
  store ptr %243, ptr %5, align 8, !tbaa !5
  br label %244

244:                                              ; preds = %270, %240
  %245 = load ptr, ptr %5, align 8, !tbaa !5
  %246 = icmp ne ptr %245, null
  br i1 %246, label %247, label %272

247:                                              ; preds = %244
  %248 = load ptr, ptr %5, align 8, !tbaa !5
  %249 = call noundef i32 @_ZN10tetgenmesh9pointtypeEPd(ptr noundef nonnull align 8 dereferenceable(1536) %22, ptr noundef %248)
  store i32 %249, ptr %7, align 4, !tbaa !43
  %250 = load i32, ptr %7, align 4, !tbaa !43
  %251 = icmp eq i32 %250, 5
  br i1 %251, label %261, label %252

252:                                              ; preds = %247
  %253 = load i32, ptr %7, align 4, !tbaa !43
  %254 = icmp eq i32 %253, 8
  br i1 %254, label %261, label %255

255:                                              ; preds = %252
  %256 = load i32, ptr %7, align 4, !tbaa !43
  %257 = icmp eq i32 %256, 7
  br i1 %257, label %261, label %258

258:                                              ; preds = %255
  %259 = load i32, ptr %7, align 4, !tbaa !43
  %260 = icmp eq i32 %259, 6
  br i1 %260, label %261, label %270

261:                                              ; preds = %258, %255, %252, %247
  %262 = load ptr, ptr %13, align 8, !tbaa !5
  %263 = call noundef i32 @_ZN10tetgenmesh9arraypool8newindexEPPv(ptr noundef nonnull align 8 dereferenceable(48) %262, ptr noundef %6)
  %264 = load ptr, ptr %5, align 8, !tbaa !5
  %265 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %264, ptr %265, align 8, !tbaa !5
  br label %270

266:                                              ; preds = %238
  %267 = landingpad { ptr, i32 }
          cleanup
  %268 = extractvalue { ptr, i32 } %267, 0
  store ptr %268, ptr %14, align 8
  %269 = extractvalue { ptr, i32 } %267, 1
  store i32 %269, ptr %15, align 4
  call void @_ZdlPvm(ptr noundef %239, i64 noundef 48) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #8
  br label %446

270:                                              ; preds = %261, %258
  %271 = call noundef ptr @_ZN10tetgenmesh13pointtraverseEv(ptr noundef nonnull align 8 dereferenceable(1536) %22)
  store ptr %271, ptr %5, align 8, !tbaa !5
  br label %244, !llvm.loop !45

272:                                              ; preds = %244
  %273 = load ptr, ptr %13, align 8, !tbaa !5
  %274 = getelementptr inbounds %"class.tetgenmesh::arraypool", ptr %273, i32 0, i32 6
  %275 = load i64, ptr %274, align 8, !tbaa !30
  %276 = icmp sgt i64 %275, 0
  br i1 %276, label %277, label %403

277:                                              ; preds = %272
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #8
  %278 = load ptr, ptr %13, align 8, !tbaa !5
  %279 = getelementptr inbounds %"class.tetgenmesh::arraypool", ptr %278, i32 0, i32 6
  %280 = load i64, ptr %279, align 8, !tbaa !30
  %281 = trunc i64 %280 to i32
  call void @srand(i32 noundef %281) #8
  store i32 0, ptr %19, align 4, !tbaa !29
  br label %282

282:                                              ; preds = %345, %277
  %283 = load i32, ptr %19, align 4, !tbaa !29
  %284 = sext i32 %283 to i64
  %285 = load ptr, ptr %13, align 8, !tbaa !5
  %286 = getelementptr inbounds %"class.tetgenmesh::arraypool", ptr %285, i32 0, i32 6
  %287 = load i64, ptr %286, align 8, !tbaa !30
  %288 = icmp slt i64 %284, %287
  br i1 %288, label %289, label %348

289:                                              ; preds = %282
  %290 = call i32 @rand() #8
  %291 = load i32, ptr %19, align 4, !tbaa !29
  %292 = add nsw i32 %291, 1
  %293 = srem i32 %290, %292
  store i32 %293, ptr %18, align 4, !tbaa !29
  %294 = load ptr, ptr %13, align 8, !tbaa !5
  %295 = getelementptr inbounds %"class.tetgenmesh::arraypool", ptr %294, i32 0, i32 5
  %296 = load ptr, ptr %295, align 8, !tbaa !24
  %297 = load i32, ptr %19, align 4, !tbaa !29
  %298 = load ptr, ptr %13, align 8, !tbaa !5
  %299 = getelementptr inbounds %"class.tetgenmesh::arraypool", ptr %298, i32 0, i32 2
  %300 = load i32, ptr %299, align 8, !tbaa !26
  %301 = ashr i32 %297, %300
  %302 = sext i32 %301 to i64
  %303 = getelementptr inbounds ptr, ptr %296, i64 %302
  %304 = load ptr, ptr %303, align 8, !tbaa !5
  %305 = load i32, ptr %19, align 4, !tbaa !29
  %306 = load ptr, ptr %13, align 8, !tbaa !5
  %307 = getelementptr inbounds %"class.tetgenmesh::arraypool", ptr %306, i32 0, i32 3
  %308 = load i32, ptr %307, align 4, !tbaa !27
  %309 = and i32 %305, %308
  %310 = load ptr, ptr %13, align 8, !tbaa !5
  %311 = getelementptr inbounds %"class.tetgenmesh::arraypool", ptr %310, i32 0, i32 0
  %312 = load i32, ptr %311, align 8, !tbaa !28
  %313 = mul nsw i32 %309, %312
  %314 = sext i32 %313 to i64
  %315 = getelementptr inbounds i8, ptr %304, i64 %314
  store ptr %315, ptr %16, align 8, !tbaa !5
  %316 = load ptr, ptr %13, align 8, !tbaa !5
  %317 = getelementptr inbounds %"class.tetgenmesh::arraypool", ptr %316, i32 0, i32 5
  %318 = load ptr, ptr %317, align 8, !tbaa !24
  %319 = load i32, ptr %18, align 4, !tbaa !29
  %320 = load ptr, ptr %13, align 8, !tbaa !5
  %321 = getelementptr inbounds %"class.tetgenmesh::arraypool", ptr %320, i32 0, i32 2
  %322 = load i32, ptr %321, align 8, !tbaa !26
  %323 = ashr i32 %319, %322
  %324 = sext i32 %323 to i64
  %325 = getelementptr inbounds ptr, ptr %318, i64 %324
  %326 = load ptr, ptr %325, align 8, !tbaa !5
  %327 = load i32, ptr %18, align 4, !tbaa !29
  %328 = load ptr, ptr %13, align 8, !tbaa !5
  %329 = getelementptr inbounds %"class.tetgenmesh::arraypool", ptr %328, i32 0, i32 3
  %330 = load i32, ptr %329, align 4, !tbaa !27
  %331 = and i32 %327, %330
  %332 = load ptr, ptr %13, align 8, !tbaa !5
  %333 = getelementptr inbounds %"class.tetgenmesh::arraypool", ptr %332, i32 0, i32 0
  %334 = load i32, ptr %333, align 8, !tbaa !28
  %335 = mul nsw i32 %331, %334
  %336 = sext i32 %335 to i64
  %337 = getelementptr inbounds i8, ptr %326, i64 %336
  store ptr %337, ptr %6, align 8, !tbaa !5
  %338 = load ptr, ptr %16, align 8, !tbaa !5
  %339 = load ptr, ptr %338, align 8, !tbaa !5
  store ptr %339, ptr %17, align 8, !tbaa !5
  %340 = load ptr, ptr %6, align 8, !tbaa !5
  %341 = load ptr, ptr %340, align 8, !tbaa !5
  %342 = load ptr, ptr %16, align 8, !tbaa !5
  store ptr %341, ptr %342, align 8, !tbaa !5
  %343 = load ptr, ptr %17, align 8, !tbaa !5
  %344 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %343, ptr %344, align 8, !tbaa !5
  br label %345

345:                                              ; preds = %289
  %346 = load i32, ptr %19, align 4, !tbaa !29
  %347 = add nsw i32 %346, 1
  store i32 %347, ptr %19, align 4, !tbaa !29
  br label %282, !llvm.loop !46

348:                                              ; preds = %282
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #8
  %349 = load ptr, ptr %13, align 8, !tbaa !5
  %350 = getelementptr inbounds %"class.tetgenmesh::arraypool", ptr %349, i32 0, i32 6
  %351 = load i64, ptr %350, align 8, !tbaa !30
  %352 = sitofp i64 %351 to double
  %353 = getelementptr inbounds %class.tetgenmesh, ptr %22, i32 0, i32 2
  %354 = load ptr, ptr %353, align 8, !tbaa !9
  %355 = getelementptr inbounds %class.tetgenbehavior, ptr %354, i32 0, i32 71
  %356 = load double, ptr %355, align 8, !tbaa !42
  %357 = fmul double %352, %356
  %358 = fptosi double %357 to i32
  store i32 %358, ptr %20, align 4, !tbaa !29
  store i32 0, ptr %19, align 4, !tbaa !29
  br label %359

359:                                              ; preds = %399, %348
  %360 = load i32, ptr %19, align 4, !tbaa !29
  %361 = load i32, ptr %20, align 4, !tbaa !29
  %362 = icmp slt i32 %360, %361
  br i1 %362, label %363, label %402

363:                                              ; preds = %359
  %364 = load ptr, ptr %13, align 8, !tbaa !5
  %365 = getelementptr inbounds %"class.tetgenmesh::arraypool", ptr %364, i32 0, i32 5
  %366 = load ptr, ptr %365, align 8, !tbaa !24
  %367 = load i32, ptr %19, align 4, !tbaa !29
  %368 = load ptr, ptr %13, align 8, !tbaa !5
  %369 = getelementptr inbounds %"class.tetgenmesh::arraypool", ptr %368, i32 0, i32 2
  %370 = load i32, ptr %369, align 8, !tbaa !26
  %371 = ashr i32 %367, %370
  %372 = sext i32 %371 to i64
  %373 = getelementptr inbounds ptr, ptr %366, i64 %372
  %374 = load ptr, ptr %373, align 8, !tbaa !5
  %375 = load i32, ptr %19, align 4, !tbaa !29
  %376 = load ptr, ptr %13, align 8, !tbaa !5
  %377 = getelementptr inbounds %"class.tetgenmesh::arraypool", ptr %376, i32 0, i32 3
  %378 = load i32, ptr %377, align 4, !tbaa !27
  %379 = and i32 %375, %378
  %380 = load ptr, ptr %13, align 8, !tbaa !5
  %381 = getelementptr inbounds %"class.tetgenmesh::arraypool", ptr %380, i32 0, i32 0
  %382 = load i32, ptr %381, align 8, !tbaa !28
  %383 = mul nsw i32 %379, %382
  %384 = sext i32 %383 to i64
  %385 = getelementptr inbounds i8, ptr %374, i64 %384
  store ptr %385, ptr %16, align 8, !tbaa !5
  %386 = load ptr, ptr %16, align 8, !tbaa !5
  %387 = load ptr, ptr %386, align 8, !tbaa !5
  %388 = call noundef zeroext i1 @_ZN10tetgenmesh9pinfectedEPd(ptr noundef nonnull align 8 dereferenceable(1536) %22, ptr noundef %387)
  br i1 %388, label %398, label %389

389:                                              ; preds = %363
  %390 = load ptr, ptr %16, align 8, !tbaa !5
  %391 = load ptr, ptr %390, align 8, !tbaa !5
  %392 = call noundef zeroext i1 @_ZN10tetgenmesh9pinfectedEPd(ptr noundef nonnull align 8 dereferenceable(1536) %22, ptr noundef %391)
  %393 = load ptr, ptr %4, align 8, !tbaa !5
  %394 = call noundef i32 @_ZN10tetgenmesh9arraypool8newindexEPPv(ptr noundef nonnull align 8 dereferenceable(48) %393, ptr noundef %6)
  %395 = load ptr, ptr %16, align 8, !tbaa !5
  %396 = load ptr, ptr %395, align 8, !tbaa !5
  %397 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %396, ptr %397, align 8, !tbaa !5
  br label %398

398:                                              ; preds = %389, %363
  br label %399

399:                                              ; preds = %398
  %400 = load i32, ptr %19, align 4, !tbaa !29
  %401 = add nsw i32 %400, 1
  store i32 %401, ptr %19, align 4, !tbaa !29
  br label %359, !llvm.loop !47

402:                                              ; preds = %359
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  br label %403

403:                                              ; preds = %402, %272
  %404 = load ptr, ptr %13, align 8, !tbaa !5
  %405 = icmp eq ptr %404, null
  br i1 %405, label %407, label %406

406:                                              ; preds = %403
  call void @_ZN10tetgenmesh9arraypoolD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %404) #8
  call void @_ZdlPvm(ptr noundef %404, i64 noundef 48) #10
  br label %407

407:                                              ; preds = %406, %403
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  br label %408

408:                                              ; preds = %407, %219
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #8
  store i32 0, ptr %21, align 4, !tbaa !29
  br label %409

409:                                              ; preds = %442, %408
  %410 = load i32, ptr %21, align 4, !tbaa !29
  %411 = sext i32 %410 to i64
  %412 = load ptr, ptr %4, align 8, !tbaa !5
  %413 = getelementptr inbounds %"class.tetgenmesh::arraypool", ptr %412, i32 0, i32 6
  %414 = load i64, ptr %413, align 8, !tbaa !30
  %415 = icmp slt i64 %411, %414
  br i1 %415, label %417, label %416

416:                                              ; preds = %409
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  br label %445

417:                                              ; preds = %409
  %418 = load ptr, ptr %4, align 8, !tbaa !5
  %419 = getelementptr inbounds %"class.tetgenmesh::arraypool", ptr %418, i32 0, i32 5
  %420 = load ptr, ptr %419, align 8, !tbaa !24
  %421 = load i32, ptr %21, align 4, !tbaa !29
  %422 = load ptr, ptr %4, align 8, !tbaa !5
  %423 = getelementptr inbounds %"class.tetgenmesh::arraypool", ptr %422, i32 0, i32 2
  %424 = load i32, ptr %423, align 8, !tbaa !26
  %425 = ashr i32 %421, %424
  %426 = sext i32 %425 to i64
  %427 = getelementptr inbounds ptr, ptr %420, i64 %426
  %428 = load ptr, ptr %427, align 8, !tbaa !5
  %429 = load i32, ptr %21, align 4, !tbaa !29
  %430 = load ptr, ptr %4, align 8, !tbaa !5
  %431 = getelementptr inbounds %"class.tetgenmesh::arraypool", ptr %430, i32 0, i32 3
  %432 = load i32, ptr %431, align 4, !tbaa !27
  %433 = and i32 %429, %432
  %434 = load ptr, ptr %4, align 8, !tbaa !5
  %435 = getelementptr inbounds %"class.tetgenmesh::arraypool", ptr %434, i32 0, i32 0
  %436 = load i32, ptr %435, align 8, !tbaa !28
  %437 = mul nsw i32 %433, %436
  %438 = sext i32 %437 to i64
  %439 = getelementptr inbounds i8, ptr %428, i64 %438
  store ptr %439, ptr %6, align 8, !tbaa !5
  %440 = load ptr, ptr %6, align 8, !tbaa !5
  %441 = load ptr, ptr %440, align 8, !tbaa !5
  call void @_ZN10tetgenmesh9puninfectEPd(ptr noundef nonnull align 8 dereferenceable(1536) %22, ptr noundef %441)
  br label %442

442:                                              ; preds = %417
  %443 = load i32, ptr %21, align 4, !tbaa !29
  %444 = add nsw i32 %443, 1
  store i32 %444, ptr %21, align 4, !tbaa !29
  br label %409, !llvm.loop !48

445:                                              ; preds = %416
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #8
  ret void

446:                                              ; preds = %266
  %447 = load ptr, ptr %14, align 8
  %448 = load i32, ptr %15, align 4
  %449 = insertvalue { ptr, i32 } poison, ptr %447, 0
  %450 = insertvalue { ptr, i32 } %449, i32 %448, 1
  resume { ptr, i32 } %450
}

declare void @_ZN10tetgenmesh9arraypoolC1Eii(ptr, i32, i32)

declare void @_ZN10tetgenmesh9arraypoolD1Ev(ptr)

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


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

@.str.475 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.476 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.477 = external hidden unnamed_addr constant [44 x i8], align 1

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

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

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) local_unnamed_addr #3

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN10tetgenmesh19collectremovepointsEPNS_9arraypoolE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %1) local_unnamed_addr #5 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #8
  %4 = getelementptr inbounds i8, ptr %0, i64 16
  %5 = load ptr, ptr %4, align 8, !tbaa !5
  %6 = getelementptr inbounds i8, ptr %5, i64 40
  %7 = load i32, ptr %6, align 8, !tbaa !15
  %.not = icmp eq i32 %7, 0
  br i1 %.not, label %78, label %8

8:                                                ; preds = %2
  %9 = getelementptr inbounds i8, ptr %0, i64 56
  %10 = load ptr, ptr %9, align 8, !tbaa !18
  tail call void @_ZN10tetgenmesh10memorypool13traversalinitEv(ptr noundef nonnull align 8 dereferenceable(88) %10)
  %11 = tail call noundef ptr @_ZN10tetgenmesh13pointtraverseEv(ptr noundef nonnull align 8 dereferenceable(1536) %0)
  %.not98106 = icmp eq ptr %11, null
  br i1 %.not98106, label %._crit_edge110, label %.lr.ph109

.lr.ph109:                                        ; preds = %8
  %12 = getelementptr inbounds i8, ptr %0, i64 340
  %13 = getelementptr inbounds i8, ptr %0, i64 128
  %14 = getelementptr inbounds i8, ptr %0, i64 168
  br label %15

15:                                               ; preds = %.lr.ph109, %68
  %.088107 = phi ptr [ %11, %.lr.ph109 ], [ %69, %68 ]
  %16 = load i32, ptr %12, align 4, !tbaa !19
  %17 = sext i32 %16 to i64
  %18 = getelementptr inbounds double, ptr %.088107, i64 %17
  %19 = load double, ptr %18, align 8, !tbaa !20
  %20 = fcmp ogt double %19, 0.000000e+00
  br i1 %20, label %21, label %68

21:                                               ; preds = %15
  %22 = load ptr, ptr %13, align 8, !tbaa !21
  %23 = load ptr, ptr %14, align 8, !tbaa !22
  %24 = call noundef i32 @_ZN10tetgenmesh13getvertexstarEiPdPNS_9arraypoolES2_S2_(ptr noundef nonnull align 8 dereferenceable(1536) %0, i32 noundef 1, ptr noundef nonnull %.088107, ptr noundef %22, ptr noundef %23, ptr noundef null)
  %25 = load ptr, ptr %14, align 8, !tbaa !22
  %26 = getelementptr inbounds i8, ptr %25, i64 24
  %27 = load ptr, ptr %26, align 8, !tbaa !23
  %28 = load ptr, ptr %27, align 8, !tbaa !25
  store ptr %28, ptr %3, align 8, !tbaa !25
  %29 = load ptr, ptr %28, align 8, !tbaa !25
  %30 = call noundef double @_ZN10tetgenmesh8distanceEPdS0_(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull %.088107, ptr noundef %29)
  %31 = load ptr, ptr %14, align 8, !tbaa !22
  %32 = getelementptr inbounds i8, ptr %31, i64 32
  %33 = load i64, ptr %32, align 8, !tbaa !26
  %34 = icmp sgt i64 %33, 1
  br i1 %34, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %21, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 1, %21 ]
  %35 = phi ptr [ %55, %.lr.ph ], [ %31, %21 ]
  %.091104 = phi double [ %.192, %.lr.ph ], [ %30, %21 ]
  %36 = getelementptr inbounds i8, ptr %35, i64 24
  %37 = load ptr, ptr %36, align 8, !tbaa !23
  %38 = getelementptr inbounds i8, ptr %35, i64 8
  %39 = load i32, ptr %38, align 8, !tbaa !27
  %40 = trunc nuw nsw i64 %indvars.iv to i32
  %41 = lshr i32 %40, %39
  %42 = zext nneg i32 %41 to i64
  %43 = getelementptr inbounds ptr, ptr %37, i64 %42
  %44 = load ptr, ptr %43, align 8, !tbaa !25
  %45 = getelementptr inbounds i8, ptr %35, i64 12
  %46 = load i32, ptr %45, align 4, !tbaa !28
  %47 = and i32 %46, %40
  %48 = load i32, ptr %35, align 8, !tbaa !29
  %49 = mul nsw i32 %47, %48
  %50 = sext i32 %49 to i64
  %51 = getelementptr inbounds i8, ptr %44, i64 %50
  store ptr %51, ptr %3, align 8, !tbaa !25
  %52 = load ptr, ptr %51, align 8, !tbaa !25
  %53 = call noundef double @_ZN10tetgenmesh8distanceEPdS0_(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull %.088107, ptr noundef %52)
  %54 = fcmp olt double %53, %.091104
  %.192 = select i1 %54, double %53, double %.091104
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %55 = load ptr, ptr %14, align 8, !tbaa !22
  %56 = getelementptr inbounds i8, ptr %55, i64 32
  %57 = load i64, ptr %56, align 8, !tbaa !26
  %58 = icmp sgt i64 %57, %indvars.iv.next
  br i1 %58, label %.lr.ph, label %._crit_edge, !llvm.loop !30

._crit_edge:                                      ; preds = %.lr.ph, %21
  %.091.lcssa = phi double [ %30, %21 ], [ %.192, %.lr.ph ]
  %.lcssa102 = phi ptr [ %31, %21 ], [ %55, %.lr.ph ]
  call void @_ZN10tetgenmesh9arraypool7restartEv(ptr noundef nonnull align 8 dereferenceable(48) %.lcssa102)
  %59 = load ptr, ptr %13, align 8, !tbaa !21
  call void @_ZN10tetgenmesh9arraypool7restartEv(ptr noundef nonnull align 8 dereferenceable(48) %59)
  %60 = load i32, ptr %12, align 4, !tbaa !19
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds double, ptr %.088107, i64 %61
  %63 = load double, ptr %62, align 8, !tbaa !20
  %64 = fcmp olt double %.091.lcssa, %63
  br i1 %64, label %65, label %68

65:                                               ; preds = %._crit_edge
  call void @_ZN10tetgenmesh7pinfectEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull %.088107)
  %66 = call noundef i32 @_ZN10tetgenmesh9arraypool8newindexEPPv(ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef nonnull %3)
  %67 = load ptr, ptr %3, align 8, !tbaa !25
  store ptr %.088107, ptr %67, align 8, !tbaa !25
  br label %68

68:                                               ; preds = %._crit_edge, %65, %15
  %69 = call noundef ptr @_ZN10tetgenmesh13pointtraverseEv(ptr noundef nonnull align 8 dereferenceable(1536) %0)
  %.not98 = icmp eq ptr %69, null
  br i1 %.not98, label %._crit_edge110, label %15, !llvm.loop !32

._crit_edge110:                                   ; preds = %68, %8
  %70 = load ptr, ptr %4, align 8, !tbaa !5
  %71 = getelementptr inbounds i8, ptr %70, i64 148
  %72 = load i32, ptr %71, align 4, !tbaa !33
  %73 = icmp sgt i32 %72, 1
  br i1 %73, label %74, label %78

74:                                               ; preds = %._crit_edge110
  %75 = getelementptr inbounds i8, ptr %1, i64 32
  %76 = load i64, ptr %75, align 8, !tbaa !26
  %77 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.475, i64 noundef %76)
  br label %78

78:                                               ; preds = %._crit_edge110, %74, %2
  %79 = load ptr, ptr %0, align 8, !tbaa !34
  %80 = getelementptr inbounds i8, ptr %79, i64 40
  %81 = load ptr, ptr %80, align 8, !tbaa !35
  %.not99 = icmp eq ptr %81, null
  br i1 %.not99, label %112, label %82

82:                                               ; preds = %78
  %83 = getelementptr inbounds i8, ptr %1, i64 32
  %84 = load i64, ptr %83, align 8, !tbaa !26
  %85 = getelementptr inbounds i8, ptr %0, i64 56
  %86 = load ptr, ptr %85, align 8, !tbaa !18
  call void @_ZN10tetgenmesh10memorypool13traversalinitEv(ptr noundef nonnull align 8 dereferenceable(88) %86)
  %87 = call noundef ptr @_ZN10tetgenmesh13pointtraverseEv(ptr noundef nonnull align 8 dereferenceable(1536) %0)
  %.not100111 = icmp eq ptr %87, null
  br i1 %.not100111, label %._crit_edge116, label %.lr.ph115

.lr.ph115:                                        ; preds = %82, %102
  %indvars.iv138 = phi i64 [ %indvars.iv.next139, %102 ], [ 0, %82 ]
  %.1113 = phi ptr [ %103, %102 ], [ %87, %82 ]
  %88 = load ptr, ptr %0, align 8, !tbaa !34
  %89 = getelementptr inbounds i8, ptr %88, i64 64
  %90 = load i32, ptr %89, align 8, !tbaa !37
  %91 = sext i32 %90 to i64
  %92 = icmp slt i64 %indvars.iv138, %91
  br i1 %92, label %93, label %._crit_edge116

93:                                               ; preds = %.lr.ph115
  %94 = getelementptr inbounds i8, ptr %88, i64 40
  %95 = load ptr, ptr %94, align 8, !tbaa !35
  %96 = getelementptr inbounds i32, ptr %95, i64 %indvars.iv138
  %97 = load i32, ptr %96, align 4, !tbaa !38
  %98 = icmp eq i32 %97, -1
  br i1 %98, label %99, label %102

99:                                               ; preds = %93
  call void @_ZN10tetgenmesh7pinfectEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull %.1113)
  %100 = call noundef i32 @_ZN10tetgenmesh9arraypool8newindexEPPv(ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef nonnull %3)
  %101 = load ptr, ptr %3, align 8, !tbaa !25
  store ptr %.1113, ptr %101, align 8, !tbaa !25
  br label %102

102:                                              ; preds = %93, %99
  %indvars.iv.next139 = add nuw nsw i64 %indvars.iv138, 1
  %103 = call noundef ptr @_ZN10tetgenmesh13pointtraverseEv(ptr noundef nonnull align 8 dereferenceable(1536) %0)
  %.not100 = icmp eq ptr %103, null
  br i1 %.not100, label %._crit_edge116, label %.lr.ph115, !llvm.loop !39

._crit_edge116:                                   ; preds = %102, %.lr.ph115, %82
  %104 = load ptr, ptr %4, align 8, !tbaa !5
  %105 = getelementptr inbounds i8, ptr %104, i64 148
  %106 = load i32, ptr %105, align 4, !tbaa !33
  %107 = icmp sgt i32 %106, 1
  br i1 %107, label %108, label %112

108:                                              ; preds = %._crit_edge116
  %109 = load i64, ptr %83, align 8, !tbaa !26
  %110 = sub nsw i64 %109, %84
  %111 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.476, i64 noundef %110)
  br label %112

112:                                              ; preds = %._crit_edge116, %108, %78
  %113 = load ptr, ptr %4, align 8, !tbaa !5
  %114 = getelementptr inbounds i8, ptr %113, i64 176
  %115 = load i32, ptr %114, align 8, !tbaa !40
  %116 = icmp sgt i32 %115, 0
  br i1 %116, label %117, label %213

117:                                              ; preds = %112
  %118 = getelementptr inbounds i8, ptr %113, i64 148
  %119 = load i32, ptr %118, align 4, !tbaa !33
  %120 = icmp sgt i32 %119, 1
  br i1 %120, label %121, label %126

121:                                              ; preds = %117
  %122 = getelementptr inbounds i8, ptr %113, i64 328
  %123 = load double, ptr %122, align 8, !tbaa !41
  %124 = fmul double %123, 1.000000e+02
  %125 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.477, double noundef %124)
  br label %126

126:                                              ; preds = %121, %117
  %127 = call noalias noundef nonnull dereferenceable(48) ptr @_Znwm(i64 noundef 48) #9
  invoke void @_ZN10tetgenmesh9arraypoolC1Eii(ptr noundef nonnull align 8 dereferenceable(48) %127, i32 noundef 8, i32 noundef 10)
          to label %128 unwind label %136

128:                                              ; preds = %126
  %129 = getelementptr inbounds i8, ptr %0, i64 56
  %130 = load ptr, ptr %129, align 8, !tbaa !18
  call void @_ZN10tetgenmesh10memorypool13traversalinitEv(ptr noundef nonnull align 8 dereferenceable(88) %130)
  %131 = call noundef ptr @_ZN10tetgenmesh13pointtraverseEv(ptr noundef nonnull align 8 dereferenceable(1536) %0)
  %.not101118 = icmp eq ptr %131, null
  br i1 %.not101118, label %._crit_edge122, label %.lr.ph121

.lr.ph121:                                        ; preds = %128, %138
  %.2119 = phi ptr [ %139, %138 ], [ %131, %128 ]
  %132 = call noundef i32 @_ZN10tetgenmesh9pointtypeEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull %.2119)
  %.off = add i32 %132, -5
  %switch = icmp ult i32 %.off, 4
  br i1 %switch, label %133, label %138

133:                                              ; preds = %.lr.ph121
  %134 = call noundef i32 @_ZN10tetgenmesh9arraypool8newindexEPPv(ptr noundef nonnull align 8 dereferenceable(48) %127, ptr noundef nonnull %3)
  %135 = load ptr, ptr %3, align 8, !tbaa !25
  store ptr %.2119, ptr %135, align 8, !tbaa !25
  br label %138

136:                                              ; preds = %126
  %137 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %127, i64 noundef 48) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #8
  resume { ptr, i32 } %137

138:                                              ; preds = %.lr.ph121, %133
  %139 = call noundef ptr @_ZN10tetgenmesh13pointtraverseEv(ptr noundef nonnull align 8 dereferenceable(1536) %0)
  %.not101 = icmp eq ptr %139, null
  br i1 %.not101, label %._crit_edge122, label %.lr.ph121, !llvm.loop !42

._crit_edge122:                                   ; preds = %138, %128
  %140 = getelementptr inbounds i8, ptr %127, i64 32
  %141 = load i64, ptr %140, align 8, !tbaa !26
  %142 = icmp sgt i64 %141, 0
  br i1 %142, label %143, label %.loopexit

143:                                              ; preds = %._crit_edge122
  %144 = trunc i64 %141 to i32
  call void @srand(i32 noundef %144) #8
  %145 = load i64, ptr %140, align 8, !tbaa !26
  %146 = icmp sgt i64 %145, 0
  br i1 %146, label %.lr.ph125, label %._crit_edge126

.lr.ph125:                                        ; preds = %143
  %147 = getelementptr inbounds i8, ptr %127, i64 24
  %148 = getelementptr inbounds i8, ptr %127, i64 8
  %149 = getelementptr inbounds i8, ptr %127, i64 12
  br label %150

150:                                              ; preds = %.lr.ph125, %150
  %indvars.iv141 = phi i64 [ 0, %.lr.ph125 ], [ %indvars.iv.next142, %150 ]
  %151 = call i32 @rand() #8
  %indvars.iv.next142 = add nuw nsw i64 %indvars.iv141, 1
  %152 = trunc nuw i64 %indvars.iv.next142 to i32
  %153 = srem i32 %151, %152
  %154 = load ptr, ptr %147, align 8, !tbaa !23
  %155 = load i32, ptr %148, align 8, !tbaa !27
  %156 = trunc nuw nsw i64 %indvars.iv141 to i32
  %157 = lshr i32 %156, %155
  %158 = zext nneg i32 %157 to i64
  %159 = getelementptr inbounds ptr, ptr %154, i64 %158
  %160 = load ptr, ptr %159, align 8, !tbaa !25
  %161 = load i32, ptr %149, align 4, !tbaa !28
  %162 = and i32 %161, %156
  %163 = load i32, ptr %127, align 8, !tbaa !29
  %164 = mul nsw i32 %162, %163
  %165 = sext i32 %164 to i64
  %166 = getelementptr inbounds i8, ptr %160, i64 %165
  %167 = ashr i32 %153, %155
  %168 = sext i32 %167 to i64
  %169 = getelementptr inbounds ptr, ptr %154, i64 %168
  %170 = load ptr, ptr %169, align 8, !tbaa !25
  %171 = and i32 %161, %153
  %172 = mul nsw i32 %171, %163
  %173 = sext i32 %172 to i64
  %174 = getelementptr inbounds i8, ptr %170, i64 %173
  store ptr %174, ptr %3, align 8, !tbaa !25
  %175 = load ptr, ptr %166, align 8, !tbaa !25
  %176 = load ptr, ptr %174, align 8, !tbaa !25
  store ptr %176, ptr %166, align 8, !tbaa !25
  %177 = load ptr, ptr %3, align 8, !tbaa !25
  store ptr %175, ptr %177, align 8, !tbaa !25
  %178 = load i64, ptr %140, align 8, !tbaa !26
  %179 = icmp sgt i64 %178, %indvars.iv.next142
  br i1 %179, label %150, label %._crit_edge126, !llvm.loop !43

._crit_edge126:                                   ; preds = %150, %143
  %.lcssa = phi i64 [ %145, %143 ], [ %178, %150 ]
  %180 = sitofp i64 %.lcssa to double
  %181 = load ptr, ptr %4, align 8, !tbaa !5
  %182 = getelementptr inbounds i8, ptr %181, i64 328
  %183 = load double, ptr %182, align 8, !tbaa !41
  %184 = fmul double %183, %180
  %185 = fptosi double %184 to i32
  %186 = icmp sgt i32 %185, 0
  br i1 %186, label %.lr.ph130, label %.loopexit

.lr.ph130:                                        ; preds = %._crit_edge126
  %187 = getelementptr inbounds i8, ptr %127, i64 24
  %188 = getelementptr inbounds i8, ptr %127, i64 8
  %189 = getelementptr inbounds i8, ptr %127, i64 12
  br label %190

190:                                              ; preds = %.lr.ph130, %211
  %.190128 = phi i32 [ 0, %.lr.ph130 ], [ %212, %211 ]
  %191 = load ptr, ptr %187, align 8, !tbaa !23
  %192 = load i32, ptr %188, align 8, !tbaa !27
  %193 = lshr i32 %.190128, %192
  %194 = zext nneg i32 %193 to i64
  %195 = getelementptr inbounds ptr, ptr %191, i64 %194
  %196 = load ptr, ptr %195, align 8, !tbaa !25
  %197 = load i32, ptr %189, align 4, !tbaa !28
  %198 = and i32 %197, %.190128
  %199 = load i32, ptr %127, align 8, !tbaa !29
  %200 = mul nsw i32 %198, %199
  %201 = sext i32 %200 to i64
  %202 = getelementptr inbounds i8, ptr %196, i64 %201
  %203 = load ptr, ptr %202, align 8, !tbaa !25
  %204 = call noundef zeroext i1 @_ZN10tetgenmesh9pinfectedEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %203)
  br i1 %204, label %211, label %205

205:                                              ; preds = %190
  %206 = load ptr, ptr %202, align 8, !tbaa !25
  %207 = call noundef zeroext i1 @_ZN10tetgenmesh9pinfectedEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %206)
  %208 = call noundef i32 @_ZN10tetgenmesh9arraypool8newindexEPPv(ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef nonnull %3)
  %209 = load ptr, ptr %202, align 8, !tbaa !25
  %210 = load ptr, ptr %3, align 8, !tbaa !25
  store ptr %209, ptr %210, align 8, !tbaa !25
  br label %211

211:                                              ; preds = %190, %205
  %212 = add nuw nsw i32 %.190128, 1
  %exitcond.not = icmp eq i32 %212, %185
  br i1 %exitcond.not, label %.loopexit, label %190, !llvm.loop !44

.loopexit:                                        ; preds = %211, %._crit_edge126, %._crit_edge122
  call void @_ZN10tetgenmesh9arraypoolD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %127) #8
  call void @_ZdlPvm(ptr noundef nonnull %127, i64 noundef 48) #10
  br label %213

213:                                              ; preds = %.loopexit, %112
  %214 = getelementptr inbounds i8, ptr %1, i64 32
  %215 = load i64, ptr %214, align 8, !tbaa !26
  %216 = icmp sgt i64 %215, 0
  br i1 %216, label %.lr.ph133, label %._crit_edge134

.lr.ph133:                                        ; preds = %213
  %217 = getelementptr inbounds i8, ptr %1, i64 24
  %218 = getelementptr inbounds i8, ptr %1, i64 8
  %219 = getelementptr inbounds i8, ptr %1, i64 12
  br label %220

._crit_edge134:                                   ; preds = %220, %213
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #8
  ret void

220:                                              ; preds = %.lr.ph133, %220
  %indvars.iv144 = phi i64 [ 0, %.lr.ph133 ], [ %indvars.iv.next145, %220 ]
  %221 = load ptr, ptr %217, align 8, !tbaa !23
  %222 = load i32, ptr %218, align 8, !tbaa !27
  %223 = trunc nuw nsw i64 %indvars.iv144 to i32
  %224 = lshr i32 %223, %222
  %225 = zext nneg i32 %224 to i64
  %226 = getelementptr inbounds ptr, ptr %221, i64 %225
  %227 = load ptr, ptr %226, align 8, !tbaa !25
  %228 = load i32, ptr %219, align 4, !tbaa !28
  %229 = and i32 %228, %223
  %230 = load i32, ptr %1, align 8, !tbaa !29
  %231 = mul nsw i32 %229, %230
  %232 = sext i32 %231 to i64
  %233 = getelementptr inbounds i8, ptr %227, i64 %232
  store ptr %233, ptr %3, align 8, !tbaa !25
  %234 = load ptr, ptr %233, align 8, !tbaa !25
  call void @_ZN10tetgenmesh9puninfectEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %234)
  %indvars.iv.next145 = add nuw nsw i64 %indvars.iv144, 1
  %235 = load i64, ptr %214, align 8, !tbaa !26
  %236 = icmp sgt i64 %235, %indvars.iv.next145
  br i1 %236, label %220, label %._crit_edge134, !llvm.loop !45
}

declare void @_ZN10tetgenmesh9arraypoolC1Eii(ptr, i32, i32) local_unnamed_addr

declare void @_ZN10tetgenmesh9arraypoolD1Ev(ptr) local_unnamed_addr

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


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