; 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 = 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::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.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.17 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.136 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.142 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.675 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.677 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.679 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.689 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.700 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.701 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.707 = external hidden unnamed_addr constant [8 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nounwind
declare ptr @strcpy(ptr noundef, ptr noundef) #5

; Function Attrs: nounwind
declare ptr @strcat(ptr noundef, ptr noundef) #5

declare noalias ptr @fopen(ptr noundef, ptr noundef) #4

declare i32 @fclose(ptr noundef) #4

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #5

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN10tetgenmesh12outhullfacesEP8tetgenio(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %1) #8 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca [1024 x i8], align 16
  %7 = alloca %"class.tetgenmesh::triface", align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %16 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #9
  store ptr null, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1024, ptr %6) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #9
  call void @_ZN10tetgenmesh7trifaceC2Ev(ptr noundef nonnull align 8 dereferenceable(12) %7)
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #9
  store ptr null, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #9
  store ptr null, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #9
  store ptr null, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #9
  store ptr null, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #9
  %17 = load ptr, ptr %4, align 8, !tbaa !5
  %18 = icmp eq ptr %17, null
  br i1 %18, label %19, label %28

19:                                               ; preds = %2
  %20 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
  %21 = getelementptr inbounds %class.tetgenmesh, ptr %16, i32 0, i32 2
  %22 = load ptr, ptr %21, align 8, !tbaa !9
  %23 = getelementptr inbounds %class.tetgenbehavior, ptr %22, i32 0, i32 74
  %24 = getelementptr inbounds [1024 x i8], ptr %23, i64 0, i64 0
  %25 = call ptr @strcpy(ptr noundef %20, ptr noundef %24) #9
  %26 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
  %27 = call ptr @strcat(ptr noundef %26, ptr noundef @.str.17) #9
  br label %28

28:                                               ; preds = %19, %2
  %29 = getelementptr inbounds %class.tetgenmesh, ptr %16, i32 0, i32 2
  %30 = load ptr, ptr %29, align 8, !tbaa !9
  %31 = getelementptr inbounds %class.tetgenbehavior, ptr %30, i32 0, i32 36
  %32 = load i32, ptr %31, align 8, !tbaa !16
  %33 = icmp ne i32 %32, 0
  br i1 %33, label %43, label %34

34:                                               ; preds = %28
  %35 = load ptr, ptr %4, align 8, !tbaa !5
  %36 = icmp eq ptr %35, null
  br i1 %36, label %37, label %40

37:                                               ; preds = %34
  %38 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
  %39 = call i32 (ptr, ...) @printf(ptr noundef @.str.675, ptr noundef %38)
  br label %42

40:                                               ; preds = %34
  %41 = call i32 (ptr, ...) @printf(ptr noundef @.str.700)
  br label %42

42:                                               ; preds = %40, %37
  br label %43

43:                                               ; preds = %42, %28
  %44 = load ptr, ptr %4, align 8, !tbaa !5
  %45 = icmp eq ptr %44, null
  br i1 %45, label %46, label %59

46:                                               ; preds = %43
  %47 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
  %48 = call noalias ptr @fopen(ptr noundef %47, ptr noundef @.str.136)
  store ptr %48, ptr %5, align 8, !tbaa !5
  %49 = load ptr, ptr %5, align 8, !tbaa !5
  %50 = icmp eq ptr %49, null
  br i1 %50, label %51, label %54

51:                                               ; preds = %46
  %52 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
  %53 = call i32 (ptr, ...) @printf(ptr noundef @.str.677, ptr noundef %52)
  call void @_Z15terminatetetgenP10tetgenmeshi(ptr noundef %16, i32 noundef 1)
  br label %54

54:                                               ; preds = %51, %46
  %55 = load ptr, ptr %5, align 8, !tbaa !5
  %56 = getelementptr inbounds %class.tetgenmesh, ptr %16, i32 0, i32 76
  %57 = load i64, ptr %56, align 8, !tbaa !19
  %58 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %55, ptr noundef @.str.707, i64 noundef %57) #9
  br label %85

59:                                               ; preds = %43
  %60 = getelementptr inbounds %class.tetgenmesh, ptr %16, i32 0, i32 76
  %61 = load i64, ptr %60, align 8, !tbaa !19
  %62 = mul nsw i64 %61, 3
  %63 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %62, i64 4)
  %64 = extractvalue { i64, i1 } %63, 1
  %65 = extractvalue { i64, i1 } %63, 0
  %66 = select i1 %64, i64 -1, i64 %65
  %67 = call noalias noundef nonnull ptr @_Znam(i64 noundef %66) #10
  %68 = load ptr, ptr %4, align 8, !tbaa !5
  %69 = getelementptr inbounds %class.tetgenio, ptr %68, i32 0, i32 32
  store ptr %67, ptr %69, align 8, !tbaa !20
  %70 = load ptr, ptr %4, align 8, !tbaa !5
  %71 = getelementptr inbounds %class.tetgenio, ptr %70, i32 0, i32 32
  %72 = load ptr, ptr %71, align 8, !tbaa !20
  %73 = icmp eq ptr %72, null
  br i1 %73, label %74, label %76

74:                                               ; preds = %59
  %75 = call i32 (ptr, ...) @printf(ptr noundef @.str.679)
  call void @_Z15terminatetetgenP10tetgenmeshi(ptr noundef %16, i32 noundef 1)
  br label %76

76:                                               ; preds = %74, %59
  %77 = getelementptr inbounds %class.tetgenmesh, ptr %16, i32 0, i32 76
  %78 = load i64, ptr %77, align 8, !tbaa !19
  %79 = trunc i64 %78 to i32
  %80 = load ptr, ptr %4, align 8, !tbaa !5
  %81 = getelementptr inbounds %class.tetgenio, ptr %80, i32 0, i32 37
  store i32 %79, ptr %81, align 8, !tbaa !22
  %82 = load ptr, ptr %4, align 8, !tbaa !5
  %83 = getelementptr inbounds %class.tetgenio, ptr %82, i32 0, i32 32
  %84 = load ptr, ptr %83, align 8, !tbaa !20
  store ptr %84, ptr %11, align 8, !tbaa !5
  store i32 0, ptr %15, align 4, !tbaa !23
  br label %85

85:                                               ; preds = %76, %54
  %86 = getelementptr inbounds %class.tetgenmesh, ptr %16, i32 0, i32 2
  %87 = load ptr, ptr %86, align 8, !tbaa !9
  %88 = getelementptr inbounds %class.tetgenbehavior, ptr %87, i32 0, i32 22
  %89 = load i32, ptr %88, align 8, !tbaa !24
  %90 = icmp ne i32 %89, 0
  br i1 %90, label %91, label %92

91:                                               ; preds = %85
  br label %97

92:                                               ; preds = %85
  %93 = getelementptr inbounds %class.tetgenmesh, ptr %16, i32 0, i32 0
  %94 = load ptr, ptr %93, align 8, !tbaa !25
  %95 = getelementptr inbounds %class.tetgenio, ptr %94, i32 0, i32 0
  %96 = load i32, ptr %95, align 8, !tbaa !26
  br label %97

97:                                               ; preds = %92, %91
  %98 = phi i32 [ 0, %91 ], [ %96, %92 ]
  store i32 %98, ptr %12, align 4, !tbaa !23
  store i32 0, ptr %13, align 4, !tbaa !23
  %99 = getelementptr inbounds %class.tetgenmesh, ptr %16, i32 0, i32 0
  %100 = load ptr, ptr %99, align 8, !tbaa !25
  %101 = getelementptr inbounds %class.tetgenio, ptr %100, i32 0, i32 0
  %102 = load i32, ptr %101, align 8, !tbaa !26
  %103 = icmp eq i32 %102, 1
  br i1 %103, label %104, label %108

104:                                              ; preds = %97
  %105 = load i32, ptr %12, align 4, !tbaa !23
  %106 = icmp eq i32 %105, 0
  br i1 %106, label %107, label %108

107:                                              ; preds = %104
  store i32 1, ptr %13, align 4, !tbaa !23
  br label %108

108:                                              ; preds = %107, %104, %97
  %109 = getelementptr inbounds %class.tetgenmesh, ptr %16, i32 0, i32 4
  %110 = load ptr, ptr %109, align 8, !tbaa !27
  call void @_ZN10tetgenmesh10memorypool13traversalinitEv(ptr noundef nonnull align 8 dereferenceable(88) %110)
  %111 = call noundef ptr @_ZN10tetgenmesh22alltetrahedrontraverseEv(ptr noundef nonnull align 8 dereferenceable(1536) %16)
  %112 = getelementptr inbounds %"class.tetgenmesh::triface", ptr %7, i32 0, i32 0
  store ptr %111, ptr %112, align 8, !tbaa !28
  %113 = load i32, ptr %12, align 4, !tbaa !23
  store i32 %113, ptr %14, align 4, !tbaa !23
  br label %114

114:                                              ; preds = %184, %108
  %115 = getelementptr inbounds %"class.tetgenmesh::triface", ptr %7, i32 0, i32 0
  %116 = load ptr, ptr %115, align 8, !tbaa !28
  %117 = icmp ne ptr %116, null
  br i1 %117, label %118, label %187

118:                                              ; preds = %114
  %119 = call noundef zeroext i1 @_ZN10tetgenmesh9ishulltetERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %16, ptr noundef nonnull align 8 dereferenceable(12) %7)
  br i1 %119, label %120, label %184

120:                                              ; preds = %118
  %121 = getelementptr inbounds %"class.tetgenmesh::triface", ptr %7, i32 0, i32 0
  %122 = load ptr, ptr %121, align 8, !tbaa !28
  %123 = getelementptr inbounds ptr, ptr %122, i64 4
  %124 = load ptr, ptr %123, align 8, !tbaa !5
  store ptr %124, ptr %8, align 8, !tbaa !5
  %125 = getelementptr inbounds %"class.tetgenmesh::triface", ptr %7, i32 0, i32 0
  %126 = load ptr, ptr %125, align 8, !tbaa !28
  %127 = getelementptr inbounds ptr, ptr %126, i64 5
  %128 = load ptr, ptr %127, align 8, !tbaa !5
  store ptr %128, ptr %9, align 8, !tbaa !5
  %129 = getelementptr inbounds %"class.tetgenmesh::triface", ptr %7, i32 0, i32 0
  %130 = load ptr, ptr %129, align 8, !tbaa !28
  %131 = getelementptr inbounds ptr, ptr %130, i64 6
  %132 = load ptr, ptr %131, align 8, !tbaa !5
  store ptr %132, ptr %10, align 8, !tbaa !5
  %133 = load ptr, ptr %4, align 8, !tbaa !5
  %134 = icmp eq ptr %133, null
  br i1 %134, label %135, label %153

135:                                              ; preds = %120
  %136 = load ptr, ptr %5, align 8, !tbaa !5
  %137 = load i32, ptr %14, align 4, !tbaa !23
  %138 = load ptr, ptr %8, align 8, !tbaa !5
  %139 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %16, ptr noundef %138)
  %140 = load i32, ptr %13, align 4, !tbaa !23
  %141 = sub nsw i32 %139, %140
  %142 = load ptr, ptr %9, align 8, !tbaa !5
  %143 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %16, ptr noundef %142)
  %144 = load i32, ptr %13, align 4, !tbaa !23
  %145 = sub nsw i32 %143, %144
  %146 = load ptr, ptr %10, align 8, !tbaa !5
  %147 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %16, ptr noundef %146)
  %148 = load i32, ptr %13, align 4, !tbaa !23
  %149 = sub nsw i32 %147, %148
  %150 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %136, ptr noundef @.str.701, i32 noundef %137, i32 noundef %141, i32 noundef %145, i32 noundef %149) #9
  %151 = load ptr, ptr %5, align 8, !tbaa !5
  %152 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %151, ptr noundef @.str.142) #9
  br label %181

153:                                              ; preds = %120
  %154 = load ptr, ptr %8, align 8, !tbaa !5
  %155 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %16, ptr noundef %154)
  %156 = load i32, ptr %13, align 4, !tbaa !23
  %157 = sub nsw i32 %155, %156
  %158 = load ptr, ptr %11, align 8, !tbaa !5
  %159 = load i32, ptr %15, align 4, !tbaa !23
  %160 = add nsw i32 %159, 1
  store i32 %160, ptr %15, align 4, !tbaa !23
  %161 = sext i32 %159 to i64
  %162 = getelementptr inbounds i32, ptr %158, i64 %161
  store i32 %157, ptr %162, align 4, !tbaa !23
  %163 = load ptr, ptr %9, align 8, !tbaa !5
  %164 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %16, ptr noundef %163)
  %165 = load i32, ptr %13, align 4, !tbaa !23
  %166 = sub nsw i32 %164, %165
  %167 = load ptr, ptr %11, align 8, !tbaa !5
  %168 = load i32, ptr %15, align 4, !tbaa !23
  %169 = add nsw i32 %168, 1
  store i32 %169, ptr %15, align 4, !tbaa !23
  %170 = sext i32 %168 to i64
  %171 = getelementptr inbounds i32, ptr %167, i64 %170
  store i32 %166, ptr %171, align 4, !tbaa !23
  %172 = load ptr, ptr %10, align 8, !tbaa !5
  %173 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %16, ptr noundef %172)
  %174 = load i32, ptr %13, align 4, !tbaa !23
  %175 = sub nsw i32 %173, %174
  %176 = load ptr, ptr %11, align 8, !tbaa !5
  %177 = load i32, ptr %15, align 4, !tbaa !23
  %178 = add nsw i32 %177, 1
  store i32 %178, ptr %15, align 4, !tbaa !23
  %179 = sext i32 %177 to i64
  %180 = getelementptr inbounds i32, ptr %176, i64 %179
  store i32 %175, ptr %180, align 4, !tbaa !23
  br label %181

181:                                              ; preds = %153, %135
  %182 = load i32, ptr %14, align 4, !tbaa !23
  %183 = add nsw i32 %182, 1
  store i32 %183, ptr %14, align 4, !tbaa !23
  br label %184

184:                                              ; preds = %181, %118
  %185 = call noundef ptr @_ZN10tetgenmesh22alltetrahedrontraverseEv(ptr noundef nonnull align 8 dereferenceable(1536) %16)
  %186 = getelementptr inbounds %"class.tetgenmesh::triface", ptr %7, i32 0, i32 0
  store ptr %185, ptr %186, align 8, !tbaa !28
  br label %114, !llvm.loop !29

187:                                              ; preds = %114
  %188 = load ptr, ptr %4, align 8, !tbaa !5
  %189 = icmp eq ptr %188, null
  br i1 %189, label %190, label %199

190:                                              ; preds = %187
  %191 = load ptr, ptr %5, align 8, !tbaa !5
  %192 = getelementptr inbounds %class.tetgenmesh, ptr %16, i32 0, i32 2
  %193 = load ptr, ptr %192, align 8, !tbaa !9
  %194 = getelementptr inbounds %class.tetgenbehavior, ptr %193, i32 0, i32 72
  %195 = getelementptr inbounds [1024 x i8], ptr %194, i64 0, i64 0
  %196 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %191, ptr noundef @.str.689, ptr noundef %195) #9
  %197 = load ptr, ptr %5, align 8, !tbaa !5
  %198 = call i32 @fclose(ptr noundef %197)
  br label %199

199:                                              ; preds = %190, %187
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #9
  call void @llvm.lifetime.end.p0(i64 1024, ptr %6) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #9
  ret void
}

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 = { 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 = { 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 #9 = { nounwind }
attributes #10 = { builtin allocsize(0) }

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

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


; 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] }>

@.str.17 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.136 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.142 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.675 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.677 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.689 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.700 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.701 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.707 = external hidden unnamed_addr constant [8 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: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: readwrite)
declare ptr @strcpy(ptr noalias noundef returned writeonly, ptr noalias nocapture noundef readonly) local_unnamed_addr #4

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: readwrite)
declare ptr @strcat(ptr noalias noundef returned, ptr noalias nocapture noundef readonly) local_unnamed_addr #4

; Function Attrs: nofree nounwind
declare noalias noundef ptr @fopen(ptr nocapture noundef readonly, ptr nocapture noundef readonly) local_unnamed_addr #3

; Function Attrs: nofree nounwind
declare noundef i32 @fclose(ptr nocapture noundef) local_unnamed_addr #3

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

; 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: 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: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN10tetgenmesh22alltetrahedrontraverseEv(ptr noundef nonnull align 8 dereferenceable(1536)) local_unnamed_addr #5 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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN10tetgenmesh9ishulltetERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536), ptr noundef nonnull align 8 dereferenceable(12)) local_unnamed_addr #6 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN10tetgenmesh12outhullfacesEP8tetgenio(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef writeonly %1) local_unnamed_addr #7 align 2 {
  %3 = alloca [1024 x i8], align 16
  %4 = alloca %"class.tetgenmesh::triface", align 8
  call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %3) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #8
  call void @_ZN10tetgenmesh7trifaceC2Ev(ptr noundef nonnull align 8 dereferenceable(12) %4)
  %5 = icmp eq ptr %1, null
  %6 = getelementptr inbounds i8, ptr %0, i64 16
  %7 = load ptr, ptr %6, align 8, !tbaa !5
  br i1 %5, label %8, label %.thread

8:                                                ; preds = %2
  %9 = getelementptr inbounds i8, ptr %7, i64 2384
  %10 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %3, ptr noundef nonnull dereferenceable(1) %9) #8
  %11 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %3, ptr noundef nonnull dereferenceable(1) @.str.17) #8
  %12 = getelementptr inbounds i8, ptr %7, i64 144
  %13 = load i32, ptr %12, align 8, !tbaa !15
  %.not = icmp eq i32 %13, 0
  br i1 %.not, label %.thread48, label %18

.thread:                                          ; preds = %2
  %14 = getelementptr inbounds i8, ptr %7, i64 144
  %15 = load i32, ptr %14, align 8, !tbaa !15
  %.not45 = icmp eq i32 %15, 0
  br i1 %.not45, label %.thread46, label %.thread47

.thread48:                                        ; preds = %8
  %16 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.675, ptr noundef nonnull %3)
  br label %18

.thread46:                                        ; preds = %.thread
  %17 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.700)
  br label %.thread47

18:                                               ; preds = %8, %.thread48
  %19 = call noalias ptr @fopen(ptr noundef nonnull %3, ptr noundef nonnull @.str.136)
  %20 = icmp eq ptr %19, null
  br i1 %20, label %21, label %23

21:                                               ; preds = %18
  %22 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.677, ptr noundef nonnull %3)
  call void @_Z15terminatetetgenP10tetgenmeshi(ptr noundef nonnull %0, i32 noundef 1)
  br label %23

23:                                               ; preds = %21, %18
  %24 = getelementptr inbounds i8, ptr %0, i64 552
  %25 = load i64, ptr %24, align 8, !tbaa !18
  %26 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %19, ptr noundef nonnull @.str.707, i64 noundef %25) #8
  br label %37

.thread47:                                        ; preds = %.thread46, %.thread
  %27 = getelementptr inbounds i8, ptr %0, i64 552
  %28 = load i64, ptr %27, align 8, !tbaa !18
  %29 = mul nsw i64 %28, 3
  %30 = icmp ugt i64 %29, 4611686018427387903
  %31 = mul i64 %28, 12
  %32 = select i1 %30, i64 -1, i64 %31
  %33 = call noalias noundef nonnull ptr @_Znam(i64 noundef %32) #9
  %34 = getelementptr inbounds i8, ptr %1, i64 232
  store ptr %33, ptr %34, align 8, !tbaa !19
  %35 = trunc i64 %28 to i32
  %36 = getelementptr inbounds i8, ptr %1, i64 272
  store i32 %35, ptr %36, align 8, !tbaa !21
  br label %37

37:                                               ; preds = %.thread47, %23
  %.042 = phi ptr [ null, %23 ], [ %33, %.thread47 ]
  %.041 = phi ptr [ %19, %23 ], [ null, %.thread47 ]
  %38 = load ptr, ptr %6, align 8, !tbaa !5
  %39 = getelementptr inbounds i8, ptr %38, i64 88
  %40 = load i32, ptr %39, align 8, !tbaa !22
  %.not43 = icmp eq i32 %40, 0
  %.pre = load ptr, ptr %0, align 8, !tbaa !23
  %.pre53 = load i32, ptr %.pre, align 8, !tbaa !24
  %spec.select55 = select i1 %.not43, i32 %.pre53, i32 0
  %41 = icmp eq i32 %.pre53, 1
  %42 = icmp eq i32 %spec.select55, 0
  %or.cond = and i1 %41, %42
  %spec.select = zext i1 %or.cond to i32
  %43 = getelementptr inbounds i8, ptr %0, i64 32
  %44 = load ptr, ptr %43, align 8, !tbaa !25
  call void @_ZN10tetgenmesh10memorypool13traversalinitEv(ptr noundef nonnull align 8 dereferenceable(88) %44)
  %45 = call noundef ptr @_ZN10tetgenmesh22alltetrahedrontraverseEv(ptr noundef nonnull align 8 dereferenceable(1536) %0)
  store ptr %45, ptr %4, align 8, !tbaa !26
  %.not4449 = icmp eq ptr %45, null
  br i1 %.not4449, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %37
  br i1 %5, label %.lr.ph.split.us, label %.lr.ph.split

.lr.ph.split.us:                                  ; preds = %.lr.ph, %64
  %.03850.us = phi i32 [ %.139.us, %64 ], [ %spec.select55, %.lr.ph ]
  %46 = call noundef zeroext i1 @_ZN10tetgenmesh9ishulltetERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %4)
  br i1 %46, label %47, label %64

47:                                               ; preds = %.lr.ph.split.us
  %48 = load ptr, ptr %4, align 8, !tbaa !26
  %49 = getelementptr inbounds i8, ptr %48, i64 32
  %50 = load ptr, ptr %49, align 8, !tbaa !27
  %51 = getelementptr inbounds i8, ptr %48, i64 40
  %52 = load ptr, ptr %51, align 8, !tbaa !27
  %53 = getelementptr inbounds i8, ptr %48, i64 48
  %54 = load ptr, ptr %53, align 8, !tbaa !27
  %55 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %50)
  %56 = sub nsw i32 %55, %spec.select
  %57 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %52)
  %58 = sub nsw i32 %57, %spec.select
  %59 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %54)
  %60 = sub nsw i32 %59, %spec.select
  %61 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %.041, ptr noundef nonnull @.str.701, i32 noundef %.03850.us, i32 noundef %56, i32 noundef %58, i32 noundef %60) #8
  %62 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %.041, ptr noundef nonnull @.str.142) #8
  %63 = add nsw i32 %.03850.us, 1
  br label %64

64:                                               ; preds = %47, %.lr.ph.split.us
  %.139.us = phi i32 [ %63, %47 ], [ %.03850.us, %.lr.ph.split.us ]
  %65 = call noundef ptr @_ZN10tetgenmesh22alltetrahedrontraverseEv(ptr noundef nonnull align 8 dereferenceable(1536) %0)
  store ptr %65, ptr %4, align 8, !tbaa !26
  %.not44.us = icmp eq ptr %65, null
  br i1 %.not44.us, label %._crit_edge, label %.lr.ph.split.us, !llvm.loop !28

.lr.ph.split:                                     ; preds = %.lr.ph, %90
  %.151 = phi i32 [ %.3, %90 ], [ 0, %.lr.ph ]
  %66 = call noundef zeroext i1 @_ZN10tetgenmesh9ishulltetERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %4)
  br i1 %66, label %67, label %90

67:                                               ; preds = %.lr.ph.split
  %68 = load ptr, ptr %4, align 8, !tbaa !26
  %69 = getelementptr inbounds i8, ptr %68, i64 32
  %70 = load ptr, ptr %69, align 8, !tbaa !27
  %71 = getelementptr inbounds i8, ptr %68, i64 40
  %72 = load ptr, ptr %71, align 8, !tbaa !27
  %73 = getelementptr inbounds i8, ptr %68, i64 48
  %74 = load ptr, ptr %73, align 8, !tbaa !27
  %75 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %70)
  %76 = sub nsw i32 %75, %spec.select
  %77 = add nsw i32 %.151, 1
  %78 = sext i32 %.151 to i64
  %79 = getelementptr inbounds i32, ptr %.042, i64 %78
  store i32 %76, ptr %79, align 4, !tbaa !30
  %80 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %72)
  %81 = sub nsw i32 %80, %spec.select
  %82 = add nsw i32 %.151, 2
  %83 = sext i32 %77 to i64
  %84 = getelementptr inbounds i32, ptr %.042, i64 %83
  store i32 %81, ptr %84, align 4, !tbaa !30
  %85 = call noundef i32 @_ZN10tetgenmesh9pointmarkEPd(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %74)
  %86 = sub nsw i32 %85, %spec.select
  %87 = add nsw i32 %.151, 3
  %88 = sext i32 %82 to i64
  %89 = getelementptr inbounds i32, ptr %.042, i64 %88
  store i32 %86, ptr %89, align 4, !tbaa !30
  br label %90

90:                                               ; preds = %67, %.lr.ph.split
  %.3 = phi i32 [ %87, %67 ], [ %.151, %.lr.ph.split ]
  %91 = call noundef ptr @_ZN10tetgenmesh22alltetrahedrontraverseEv(ptr noundef nonnull align 8 dereferenceable(1536) %0)
  store ptr %91, ptr %4, align 8, !tbaa !26
  %.not44 = icmp eq ptr %91, null
  br i1 %.not44, label %._crit_edge, label %.lr.ph.split, !llvm.loop !28

._crit_edge:                                      ; preds = %90, %64, %37
  br i1 %5, label %92, label %97

92:                                               ; preds = %._crit_edge
  %93 = load ptr, ptr %6, align 8, !tbaa !5
  %94 = getelementptr inbounds i8, ptr %93, i64 336
  %95 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %.041, ptr noundef nonnull @.str.689, ptr noundef nonnull %94) #8
  %96 = call i32 @fclose(ptr noundef %.041)
  br label %97

97:                                               ; preds = %92, %._crit_edge
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %3) #8
  ret void
}

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 = { mustprogress nofree nounwind willreturn memory(argmem: readwrite) "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 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 }
attributes #9 = { builtin allocsize(0) }

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

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


; Effective O3 passes: BDCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass