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

@_ZN10tetgenmesh7fsymtblE = external dso_local global [12 x [12 x i32]], align 16

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

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

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

declare noundef double @_Z8orient3dPdS_S_S_(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

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

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

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

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

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

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

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

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

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

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

26:                                               ; preds = %4
  %27 = getelementptr inbounds %class.tetgenmesh, ptr %21, i32 0, i32 36
  %28 = getelementptr inbounds %"class.tetgenmesh::triface", ptr %27, i32 0, i32 0
  %29 = load ptr, ptr %28, align 8, !tbaa !15
  %30 = load ptr, ptr %7, align 8, !tbaa !5
  %31 = getelementptr inbounds %"class.tetgenmesh::triface", ptr %30, i32 0, i32 0
  store ptr %29, ptr %31, align 8, !tbaa !13
  br label %32

32:                                               ; preds = %26, %4
  %33 = load ptr, ptr %7, align 8, !tbaa !5
  %34 = call noundef zeroext i1 @_ZN10tetgenmesh9ishulltetERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %21, ptr noundef nonnull align 8 dereferenceable(12) %33)
  br i1 %34, label %35, label %63

35:                                               ; preds = %32
  %36 = load ptr, ptr %7, align 8, !tbaa !5
  %37 = getelementptr inbounds %"class.tetgenmesh::triface", ptr %36, i32 0, i32 1
  store i32 3, ptr %37, align 8, !tbaa !20
  %38 = load ptr, ptr %7, align 8, !tbaa !5
  %39 = getelementptr inbounds %"class.tetgenmesh::triface", ptr %38, i32 0, i32 1
  %40 = load i32, ptr %39, align 8, !tbaa !20
  store i32 %40, ptr %19, align 4, !tbaa !9
  %41 = load ptr, ptr %7, align 8, !tbaa !5
  %42 = getelementptr inbounds %"class.tetgenmesh::triface", ptr %41, i32 0, i32 0
  %43 = load ptr, ptr %42, align 8, !tbaa !13
  %44 = load ptr, ptr %7, align 8, !tbaa !5
  %45 = getelementptr inbounds %"class.tetgenmesh::triface", ptr %44, i32 0, i32 1
  %46 = load i32, ptr %45, align 8, !tbaa !20
  %47 = and i32 %46, 3
  %48 = sext i32 %47 to i64
  %49 = getelementptr inbounds ptr, ptr %43, i64 %48
  %50 = load ptr, ptr %49, align 8, !tbaa !5
  %51 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZN10tetgenmesh6decodeEPPdRNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %21, ptr noundef %50, ptr noundef nonnull align 8 dereferenceable(12) %51)
  %52 = load i32, ptr %19, align 4, !tbaa !9
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds [12 x [12 x i32]], ptr @_ZN10tetgenmesh7fsymtblE, i64 0, i64 %53
  %55 = load ptr, ptr %7, align 8, !tbaa !5
  %56 = getelementptr inbounds %"class.tetgenmesh::triface", ptr %55, i32 0, i32 1
  %57 = load i32, ptr %56, align 8, !tbaa !20
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds [12 x i32], ptr %54, i64 0, i64 %58
  %60 = load i32, ptr %59, align 4, !tbaa !9
  %61 = load ptr, ptr %7, align 8, !tbaa !5
  %62 = getelementptr inbounds %"class.tetgenmesh::triface", ptr %61, i32 0, i32 1
  store i32 %60, ptr %62, align 8, !tbaa !20
  br label %63

63:                                               ; preds = %35, %32
  %64 = load ptr, ptr %7, align 8, !tbaa !5
  %65 = getelementptr inbounds %"class.tetgenmesh::triface", ptr %64, i32 0, i32 1
  store i32 0, ptr %65, align 8, !tbaa !20
  br label %66

66:                                               ; preds = %87, %63
  %67 = load ptr, ptr %7, align 8, !tbaa !5
  %68 = getelementptr inbounds %"class.tetgenmesh::triface", ptr %67, i32 0, i32 1
  %69 = load i32, ptr %68, align 8, !tbaa !20
  %70 = icmp slt i32 %69, 4
  br i1 %70, label %71, label %92

71:                                               ; preds = %66
  %72 = load ptr, ptr %7, align 8, !tbaa !5
  %73 = call noundef ptr @_ZN10tetgenmesh3orgERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %21, ptr noundef nonnull align 8 dereferenceable(12) %72)
  store ptr %73, ptr %9, align 8, !tbaa !5
  %74 = load ptr, ptr %7, align 8, !tbaa !5
  %75 = call noundef ptr @_ZN10tetgenmesh4destERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %21, ptr noundef nonnull align 8 dereferenceable(12) %74)
  store ptr %75, ptr %10, align 8, !tbaa !5
  %76 = load ptr, ptr %7, align 8, !tbaa !5
  %77 = call noundef ptr @_ZN10tetgenmesh4apexERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %21, ptr noundef nonnull align 8 dereferenceable(12) %76)
  store ptr %77, ptr %11, align 8, !tbaa !5
  %78 = load ptr, ptr %9, align 8, !tbaa !5
  %79 = load ptr, ptr %10, align 8, !tbaa !5
  %80 = load ptr, ptr %11, align 8, !tbaa !5
  %81 = load ptr, ptr %6, align 8, !tbaa !5
  %82 = call noundef double @_Z8orient3dPdS_S_S_(ptr noundef %78, ptr noundef %79, ptr noundef %80, ptr noundef %81)
  store double %82, ptr %14, align 8, !tbaa !21
  %83 = load double, ptr %14, align 8, !tbaa !21
  %84 = fcmp olt double %83, 0.000000e+00
  br i1 %84, label %85, label %86

85:                                               ; preds = %71
  br label %92

86:                                               ; preds = %71
  br label %87

87:                                               ; preds = %86
  %88 = load ptr, ptr %7, align 8, !tbaa !5
  %89 = getelementptr inbounds %"class.tetgenmesh::triface", ptr %88, i32 0, i32 1
  %90 = load i32, ptr %89, align 8, !tbaa !20
  %91 = add nsw i32 %90, 1
  store i32 %91, ptr %89, align 8, !tbaa !20
  br label %66, !llvm.loop !22

92:                                               ; preds = %85, %66
  %93 = load ptr, ptr %7, align 8, !tbaa !5
  %94 = getelementptr inbounds %"class.tetgenmesh::triface", ptr %93, i32 0, i32 1
  %95 = load i32, ptr %94, align 8, !tbaa !20
  %96 = icmp eq i32 %95, 4
  br i1 %96, label %97, label %98

97:                                               ; preds = %92
  call void @_Z15terminatetetgenP10tetgenmeshi(ptr noundef %21, i32 noundef 2)
  br label %98

98:                                               ; preds = %97, %92
  br label %99

99:                                               ; preds = %291, %98
  br label %100

100:                                              ; preds = %99
  %101 = load ptr, ptr %7, align 8, !tbaa !5
  %102 = call noundef ptr @_ZN10tetgenmesh4oppoERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %21, ptr noundef nonnull align 8 dereferenceable(12) %101)
  store ptr %102, ptr %12, align 8, !tbaa !5
  %103 = load ptr, ptr %12, align 8, !tbaa !5
  %104 = load ptr, ptr %6, align 8, !tbaa !5
  %105 = icmp eq ptr %103, %104
  br i1 %105, label %106, label %109

106:                                              ; preds = %100
  %107 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZN10tetgenmesh8esymselfERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %21, ptr noundef nonnull align 8 dereferenceable(12) %107)
  %108 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZN10tetgenmesh9eprevselfERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %21, ptr noundef nonnull align 8 dereferenceable(12) %108)
  store i32 5, ptr %18, align 4, !tbaa !11
  br label %298

109:                                              ; preds = %100
  %110 = load ptr, ptr %10, align 8, !tbaa !5
  %111 = load ptr, ptr %11, align 8, !tbaa !5
  %112 = load ptr, ptr %12, align 8, !tbaa !5
  %113 = load ptr, ptr %6, align 8, !tbaa !5
  %114 = call noundef double @_Z8orient3dPdS_S_S_(ptr noundef %110, ptr noundef %111, ptr noundef %112, ptr noundef %113)
  store double %114, ptr %15, align 8, !tbaa !21
  %115 = load ptr, ptr %11, align 8, !tbaa !5
  %116 = load ptr, ptr %9, align 8, !tbaa !5
  %117 = load ptr, ptr %12, align 8, !tbaa !5
  %118 = load ptr, ptr %6, align 8, !tbaa !5
  %119 = call noundef double @_Z8orient3dPdS_S_S_(ptr noundef %115, ptr noundef %116, ptr noundef %117, ptr noundef %118)
  store double %119, ptr %16, align 8, !tbaa !21
  %120 = load ptr, ptr %9, align 8, !tbaa !5
  %121 = load ptr, ptr %10, align 8, !tbaa !5
  %122 = load ptr, ptr %12, align 8, !tbaa !5
  %123 = load ptr, ptr %6, align 8, !tbaa !5
  %124 = call noundef double @_Z8orient3dPdS_S_S_(ptr noundef %120, ptr noundef %121, ptr noundef %122, ptr noundef %123)
  store double %124, ptr %17, align 8, !tbaa !21
  %125 = load double, ptr %15, align 8, !tbaa !21
  %126 = fcmp olt double %125, 0.000000e+00
  br i1 %126, label %127, label %165

127:                                              ; preds = %109
  %128 = load double, ptr %16, align 8, !tbaa !21
  %129 = fcmp olt double %128, 0.000000e+00
  br i1 %129, label %130, label %153

130:                                              ; preds = %127
  %131 = load double, ptr %17, align 8, !tbaa !21
  %132 = fcmp olt double %131, 0.000000e+00
  br i1 %132, label %133, label %146

133:                                              ; preds = %130
  %134 = call noundef i64 @_ZN10tetgenmesh12randomnationEj(ptr noundef nonnull align 8 dereferenceable(1536) %21, i32 noundef 3)
  %135 = trunc i64 %134 to i32
  store i32 %135, ptr %20, align 4, !tbaa !9
  %136 = load i32, ptr %20, align 4, !tbaa !9
  %137 = icmp eq i32 %136, 0
  br i1 %137, label %138, label %139

138:                                              ; preds = %133
  store i32 0, ptr %13, align 4, !tbaa !24
  br label %145

139:                                              ; preds = %133
  %140 = load i32, ptr %20, align 4, !tbaa !9
  %141 = icmp eq i32 %140, 1
  br i1 %141, label %142, label %143

142:                                              ; preds = %139
  store i32 1, ptr %13, align 4, !tbaa !24
  br label %144

143:                                              ; preds = %139
  store i32 2, ptr %13, align 4, !tbaa !24
  br label %144

144:                                              ; preds = %143, %142
  br label %145

145:                                              ; preds = %144, %138
  br label %152

146:                                              ; preds = %130
  %147 = call noundef i64 @_ZN10tetgenmesh12randomnationEj(ptr noundef nonnull align 8 dereferenceable(1536) %21, i32 noundef 2)
  %148 = icmp ne i64 %147, 0
  br i1 %148, label %149, label %150

149:                                              ; preds = %146
  store i32 0, ptr %13, align 4, !tbaa !24
  br label %151

150:                                              ; preds = %146
  store i32 1, ptr %13, align 4, !tbaa !24
  br label %151

151:                                              ; preds = %150, %149
  br label %152

152:                                              ; preds = %151, %145
  br label %164

153:                                              ; preds = %127
  %154 = load double, ptr %17, align 8, !tbaa !21
  %155 = fcmp olt double %154, 0.000000e+00
  br i1 %155, label %156, label %162

156:                                              ; preds = %153
  %157 = call noundef i64 @_ZN10tetgenmesh12randomnationEj(ptr noundef nonnull align 8 dereferenceable(1536) %21, i32 noundef 2)
  %158 = icmp ne i64 %157, 0
  br i1 %158, label %159, label %160

159:                                              ; preds = %156
  store i32 0, ptr %13, align 4, !tbaa !24
  br label %161

160:                                              ; preds = %156
  store i32 2, ptr %13, align 4, !tbaa !24
  br label %161

161:                                              ; preds = %160, %159
  br label %163

162:                                              ; preds = %153
  store i32 0, ptr %13, align 4, !tbaa !24
  br label %163

163:                                              ; preds = %162, %161
  br label %164

164:                                              ; preds = %163, %152
  br label %220

165:                                              ; preds = %109
  %166 = load double, ptr %16, align 8, !tbaa !21
  %167 = fcmp olt double %166, 0.000000e+00
  br i1 %167, label %168, label %179

168:                                              ; preds = %165
  %169 = load double, ptr %17, align 8, !tbaa !21
  %170 = fcmp olt double %169, 0.000000e+00
  br i1 %170, label %171, label %177

171:                                              ; preds = %168
  %172 = call noundef i64 @_ZN10tetgenmesh12randomnationEj(ptr noundef nonnull align 8 dereferenceable(1536) %21, i32 noundef 2)
  %173 = icmp ne i64 %172, 0
  br i1 %173, label %174, label %175

174:                                              ; preds = %171
  store i32 1, ptr %13, align 4, !tbaa !24
  br label %176

175:                                              ; preds = %171
  store i32 2, ptr %13, align 4, !tbaa !24
  br label %176

176:                                              ; preds = %175, %174
  br label %178

177:                                              ; preds = %168
  store i32 1, ptr %13, align 4, !tbaa !24
  br label %178

178:                                              ; preds = %177, %176
  br label %219

179:                                              ; preds = %165
  %180 = load double, ptr %17, align 8, !tbaa !21
  %181 = fcmp olt double %180, 0.000000e+00
  br i1 %181, label %182, label %183

182:                                              ; preds = %179
  store i32 2, ptr %13, align 4, !tbaa !24
  br label %218

183:                                              ; preds = %179
  %184 = load double, ptr %15, align 8, !tbaa !21
  %185 = fcmp oeq double %184, 0.000000e+00
  br i1 %185, label %186, label %202

186:                                              ; preds = %183
  %187 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZN10tetgenmesh13enextesymselfERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %21, ptr noundef nonnull align 8 dereferenceable(12) %187)
  %188 = load double, ptr %16, align 8, !tbaa !21
  %189 = fcmp oeq double %188, 0.000000e+00
  br i1 %189, label %190, label %196

190:                                              ; preds = %186
  %191 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZN10tetgenmesh9eprevselfERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %21, ptr noundef nonnull align 8 dereferenceable(12) %191)
  %192 = load double, ptr %17, align 8, !tbaa !21
  %193 = fcmp oeq double %192, 0.000000e+00
  br i1 %193, label %194, label %195

194:                                              ; preds = %190
  store i32 5, ptr %18, align 4, !tbaa !11
  br label %298

195:                                              ; preds = %190
  store i32 4, ptr %18, align 4, !tbaa !11
  br label %298

196:                                              ; preds = %186
  %197 = load double, ptr %17, align 8, !tbaa !21
  %198 = fcmp oeq double %197, 0.000000e+00
  br i1 %198, label %199, label %201

199:                                              ; preds = %196
  %200 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZN10tetgenmesh9enextselfERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %21, ptr noundef nonnull align 8 dereferenceable(12) %200)
  store i32 4, ptr %18, align 4, !tbaa !11
  br label %298

201:                                              ; preds = %196
  store i32 3, ptr %18, align 4, !tbaa !11
  br label %298

202:                                              ; preds = %183
  %203 = load double, ptr %16, align 8, !tbaa !21
  %204 = fcmp oeq double %203, 0.000000e+00
  br i1 %204, label %205, label %212

205:                                              ; preds = %202
  %206 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZN10tetgenmesh13eprevesymselfERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %21, ptr noundef nonnull align 8 dereferenceable(12) %206)
  %207 = load double, ptr %17, align 8, !tbaa !21
  %208 = fcmp oeq double %207, 0.000000e+00
  br i1 %208, label %209, label %211

209:                                              ; preds = %205
  %210 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZN10tetgenmesh9eprevselfERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %21, ptr noundef nonnull align 8 dereferenceable(12) %210)
  store i32 4, ptr %18, align 4, !tbaa !11
  br label %298

211:                                              ; preds = %205
  store i32 3, ptr %18, align 4, !tbaa !11
  br label %298

212:                                              ; preds = %202
  %213 = load double, ptr %17, align 8, !tbaa !21
  %214 = fcmp oeq double %213, 0.000000e+00
  br i1 %214, label %215, label %217

215:                                              ; preds = %212
  %216 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZN10tetgenmesh8esymselfERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %21, ptr noundef nonnull align 8 dereferenceable(12) %216)
  store i32 3, ptr %18, align 4, !tbaa !11
  br label %298

217:                                              ; preds = %212
  store i32 2, ptr %18, align 4, !tbaa !11
  br label %298

218:                                              ; preds = %182
  br label %219

219:                                              ; preds = %218, %178
  br label %220

220:                                              ; preds = %219, %164
  %221 = load i32, ptr %13, align 4, !tbaa !24
  %222 = icmp eq i32 %221, 0
  br i1 %222, label %223, label %225

223:                                              ; preds = %220
  %224 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZN10tetgenmesh13enextesymselfERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %21, ptr noundef nonnull align 8 dereferenceable(12) %224)
  br label %233

225:                                              ; preds = %220
  %226 = load i32, ptr %13, align 4, !tbaa !24
  %227 = icmp eq i32 %226, 1
  br i1 %227, label %228, label %230

228:                                              ; preds = %225
  %229 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZN10tetgenmesh13eprevesymselfERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %21, ptr noundef nonnull align 8 dereferenceable(12) %229)
  br label %232

230:                                              ; preds = %225
  %231 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZN10tetgenmesh8esymselfERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %21, ptr noundef nonnull align 8 dereferenceable(12) %231)
  br label %232

232:                                              ; preds = %230, %228
  br label %233

233:                                              ; preds = %232, %223
  %234 = load i32, ptr %8, align 4, !tbaa !9
  %235 = icmp ne i32 %234, 0
  br i1 %235, label %236, label %259

236:                                              ; preds = %233
  %237 = load ptr, ptr %7, align 8, !tbaa !5
  %238 = getelementptr inbounds %"class.tetgenmesh::triface", ptr %237, i32 0, i32 0
  %239 = load ptr, ptr %238, align 8, !tbaa !13
  %240 = getelementptr inbounds ptr, ptr %239, i64 9
  %241 = load ptr, ptr %240, align 8, !tbaa !5
  %242 = icmp ne ptr %241, null
  br i1 %242, label %243, label %258

243:                                              ; preds = %236
  %244 = load ptr, ptr %7, align 8, !tbaa !5
  %245 = getelementptr inbounds %"class.tetgenmesh::triface", ptr %244, i32 0, i32 0
  %246 = load ptr, ptr %245, align 8, !tbaa !13
  %247 = getelementptr inbounds ptr, ptr %246, i64 9
  %248 = load ptr, ptr %247, align 8, !tbaa !5
  %249 = load ptr, ptr %7, align 8, !tbaa !5
  %250 = getelementptr inbounds %"class.tetgenmesh::triface", ptr %249, i32 0, i32 1
  %251 = load i32, ptr %250, align 8, !tbaa !20
  %252 = and i32 %251, 3
  %253 = sext i32 %252 to i64
  %254 = getelementptr inbounds ptr, ptr %248, i64 %253
  %255 = load ptr, ptr %254, align 8, !tbaa !5
  %256 = icmp ne ptr %255, null
  br i1 %256, label %257, label %258

257:                                              ; preds = %243
  store i32 8, ptr %18, align 4, !tbaa !11
  br label %298

258:                                              ; preds = %243, %236
  br label %259

259:                                              ; preds = %258, %233
  %260 = load ptr, ptr %7, align 8, !tbaa !5
  %261 = getelementptr inbounds %"class.tetgenmesh::triface", ptr %260, i32 0, i32 1
  %262 = load i32, ptr %261, align 8, !tbaa !20
  store i32 %262, ptr %19, align 4, !tbaa !9
  %263 = load ptr, ptr %7, align 8, !tbaa !5
  %264 = getelementptr inbounds %"class.tetgenmesh::triface", ptr %263, i32 0, i32 0
  %265 = load ptr, ptr %264, align 8, !tbaa !13
  %266 = load ptr, ptr %7, align 8, !tbaa !5
  %267 = getelementptr inbounds %"class.tetgenmesh::triface", ptr %266, i32 0, i32 1
  %268 = load i32, ptr %267, align 8, !tbaa !20
  %269 = and i32 %268, 3
  %270 = sext i32 %269 to i64
  %271 = getelementptr inbounds ptr, ptr %265, i64 %270
  %272 = load ptr, ptr %271, align 8, !tbaa !5
  %273 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZN10tetgenmesh6decodeEPPdRNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %21, ptr noundef %272, ptr noundef nonnull align 8 dereferenceable(12) %273)
  %274 = load i32, ptr %19, align 4, !tbaa !9
  %275 = sext i32 %274 to i64
  %276 = getelementptr inbounds [12 x [12 x i32]], ptr @_ZN10tetgenmesh7fsymtblE, i64 0, i64 %275
  %277 = load ptr, ptr %7, align 8, !tbaa !5
  %278 = getelementptr inbounds %"class.tetgenmesh::triface", ptr %277, i32 0, i32 1
  %279 = load i32, ptr %278, align 8, !tbaa !20
  %280 = sext i32 %279 to i64
  %281 = getelementptr inbounds [12 x i32], ptr %276, i64 0, i64 %280
  %282 = load i32, ptr %281, align 4, !tbaa !9
  %283 = load ptr, ptr %7, align 8, !tbaa !5
  %284 = getelementptr inbounds %"class.tetgenmesh::triface", ptr %283, i32 0, i32 1
  store i32 %282, ptr %284, align 8, !tbaa !20
  %285 = load ptr, ptr %7, align 8, !tbaa !5
  %286 = call noundef ptr @_ZN10tetgenmesh4oppoERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %21, ptr noundef nonnull align 8 dereferenceable(12) %285)
  %287 = getelementptr inbounds %class.tetgenmesh, ptr %21, i32 0, i32 35
  %288 = load ptr, ptr %287, align 8, !tbaa !25
  %289 = icmp eq ptr %286, %288
  br i1 %289, label %290, label %291

290:                                              ; preds = %259
  store i32 1, ptr %18, align 4, !tbaa !11
  br label %298

291:                                              ; preds = %259
  %292 = load ptr, ptr %7, align 8, !tbaa !5
  %293 = call noundef ptr @_ZN10tetgenmesh3orgERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %21, ptr noundef nonnull align 8 dereferenceable(12) %292)
  store ptr %293, ptr %9, align 8, !tbaa !5
  %294 = load ptr, ptr %7, align 8, !tbaa !5
  %295 = call noundef ptr @_ZN10tetgenmesh4destERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %21, ptr noundef nonnull align 8 dereferenceable(12) %294)
  store ptr %295, ptr %10, align 8, !tbaa !5
  %296 = load ptr, ptr %7, align 8, !tbaa !5
  %297 = call noundef ptr @_ZN10tetgenmesh4apexERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %21, ptr noundef nonnull align 8 dereferenceable(12) %296)
  store ptr %297, ptr %11, align 8, !tbaa !5
  br label %99, !llvm.loop !26

298:                                              ; preds = %290, %257, %217, %215, %211, %209, %201, %199, %195, %194, %106
  %299 = load i32, ptr %18, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  ret i32 %299
}

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"_ZTSN10tetgenmesh12locateresultE", !7, i64 0}
!13 = !{!14, !6, i64 0}
!14 = !{!"_ZTSN10tetgenmesh7trifaceE", !6, i64 0, !10, i64 8}
!15 = !{!16, !6, i64 288}
!16 = !{!"_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, !14, i64 288, !17, i64 304, !6, i64 320, !10, i64 328, !10, i64 332, !10, i64 336, !10, i64 340, !10, i64 344, !10, i64 348, !10, i64 352, !10, i64 356, !10, i64 360, !10, i64 364, !10, i64 368, !10, i64 372, !10, i64 376, !10, i64 380, !10, i64 384, !10, i64 388, !10, i64 392, !10, i64 396, !10, i64 400, !18, i64 408, !18, i64 416, !19, i64 424, !19, i64 432, !19, i64 440, !19, i64 448, !19, i64 456, !19, i64 464, !19, i64 472, !19, i64 480, !19, i64 488, !19, i64 496, !19, i64 504, !19, i64 512, !19, i64 520, !19, i64 528, !19, i64 536, !18, i64 544, !18, i64 552, !18, i64 560, !18, i64 568, !18, i64 576, !18, i64 584, !18, i64 592, !18, i64 600, !18, i64 608, !18, i64 616, !18, i64 624, !18, i64 632, !18, i64 640, !18, i64 648, !18, i64 656, !18, i64 664, !18, i64 672, !18, i64 680, !18, i64 688, !18, i64 696, !18, i64 704, !18, i64 712, !18, i64 720, !18, i64 728, !7, i64 736, !7, i64 1504}
!17 = !{!"_ZTSN10tetgenmesh4faceE", !6, i64 0, !10, i64 8}
!18 = !{!"long", !7, i64 0}
!19 = !{!"double", !7, i64 0}
!20 = !{!14, !10, i64 8}
!21 = !{!19, !19, i64 0}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = !{!7, !7, i64 0}
!25 = !{!16, !6, i64 280}
!26 = distinct !{!26, !23}


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

@_ZN10tetgenmesh7fsymtblE = external dso_local local_unnamed_addr global [12 x [12 x i32]], align 16

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

declare noundef double @_Z8orient3dPdS_S_S_(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef range(i32 1, 9) i32 @_ZN10tetgenmesh6locateEPdPNS_7trifaceEi(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %1, ptr noundef %2, i32 noundef %3) local_unnamed_addr #3 align 2 {
  %5 = load ptr, ptr %2, align 8, !tbaa !5
  %6 = icmp eq ptr %5, null
  br i1 %6, label %7, label %10

7:                                                ; preds = %4
  %8 = getelementptr inbounds i8, ptr %0, i64 288
  %9 = load ptr, ptr %8, align 8, !tbaa !11
  store ptr %9, ptr %2, align 8, !tbaa !5
  br label %10

10:                                               ; preds = %7, %4
  %11 = tail call noundef zeroext i1 @_ZN10tetgenmesh9ishulltetERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %2)
  br i1 %11, label %12, label %17

12:                                               ; preds = %10
  %13 = getelementptr inbounds i8, ptr %2, i64 8
  store i32 3, ptr %13, align 8, !tbaa !16
  %14 = load ptr, ptr %2, align 8, !tbaa !5
  %15 = getelementptr inbounds i8, ptr %14, i64 24
  %16 = load ptr, ptr %15, align 8, !tbaa !17
  tail call void @_ZN10tetgenmesh6decodeEPPdRNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %16, ptr noundef nonnull align 8 dereferenceable(12) %2)
  br label %17

17:                                               ; preds = %12, %10
  %18 = getelementptr inbounds i8, ptr %2, i64 8
  store i32 0, ptr %18, align 8, !tbaa !16
  br label %19

19:                                               ; preds = %17, %25
  %20 = tail call noundef ptr @_ZN10tetgenmesh3orgERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %2)
  %21 = tail call noundef ptr @_ZN10tetgenmesh4destERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %2)
  %22 = tail call noundef ptr @_ZN10tetgenmesh4apexERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %2)
  %23 = tail call noundef double @_Z8orient3dPdS_S_S_(ptr noundef %20, ptr noundef %21, ptr noundef %22, ptr noundef %1)
  %24 = fcmp olt double %23, 0.000000e+00
  %.pr = load i32, ptr %18, align 8, !tbaa !16
  br i1 %24, label %.loopexit114, label %25

25:                                               ; preds = %19
  %26 = add nsw i32 %.pr, 1
  store i32 %26, ptr %18, align 8, !tbaa !16
  %27 = icmp slt i32 %.pr, 3
  br i1 %27, label %19, label %.loopexit114, !llvm.loop !18

.loopexit114:                                     ; preds = %25, %19
  %28 = phi i32 [ %.pr, %19 ], [ %26, %25 ]
  %29 = icmp eq i32 %28, 4
  br i1 %29, label %30, label %31

30:                                               ; preds = %.loopexit114
  tail call void @_Z15terminatetetgenP10tetgenmeshi(ptr noundef nonnull %0, i32 noundef 2)
  br label %31

31:                                               ; preds = %30, %.loopexit114
  %32 = tail call noundef ptr @_ZN10tetgenmesh4oppoERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %2)
  %33 = icmp eq ptr %32, %1
  br i1 %33, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %31
  %.not100 = icmp eq i32 %3, 0
  %34 = getelementptr inbounds i8, ptr %0, i64 280
  br label %35

._crit_edge:                                      ; preds = %99, %31
  tail call void @_ZN10tetgenmesh8esymselfERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %2)
  tail call void @_ZN10tetgenmesh9eprevselfERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %2)
  br label %.loopexit

35:                                               ; preds = %.lr.ph, %99
  %36 = phi ptr [ %32, %.lr.ph ], [ %103, %99 ]
  %.2129 = phi ptr [ %20, %.lr.ph ], [ %100, %99 ]
  %.286128 = phi ptr [ %21, %.lr.ph ], [ %101, %99 ]
  %.289127 = phi ptr [ %22, %.lr.ph ], [ %102, %99 ]
  %37 = tail call noundef double @_Z8orient3dPdS_S_S_(ptr noundef %.286128, ptr noundef %.289127, ptr noundef %36, ptr noundef %1)
  %38 = tail call noundef double @_Z8orient3dPdS_S_S_(ptr noundef %.289127, ptr noundef %.2129, ptr noundef %36, ptr noundef %1)
  %39 = tail call noundef double @_Z8orient3dPdS_S_S_(ptr noundef %.2129, ptr noundef %.286128, ptr noundef %36, ptr noundef %1)
  %40 = fcmp olt double %37, 0.000000e+00
  %41 = fcmp olt double %38, 0.000000e+00
  %42 = fcmp olt double %39, 0.000000e+00
  br i1 %40, label %43, label %51

43:                                               ; preds = %35
  br i1 %41, label %44, label %50

44:                                               ; preds = %43
  br i1 %42, label %45, label %48

45:                                               ; preds = %44
  %46 = tail call noundef i64 @_ZN10tetgenmesh12randomnationEj(ptr noundef nonnull align 8 dereferenceable(1536) %0, i32 noundef 3)
  %47 = trunc i64 %46 to i32
  switch i32 %47, label %.thread109 [
    i32 0, label %.thread108
    i32 1, label %.thread.thread
  ]

48:                                               ; preds = %44
  %49 = tail call noundef i64 @_ZN10tetgenmesh12randomnationEj(ptr noundef nonnull align 8 dereferenceable(1536) %0, i32 noundef 2)
  %.not99.not = icmp eq i64 %49, 0
  br i1 %.not99.not, label %.thread.thread, label %.thread108

50:                                               ; preds = %43
  br i1 %42, label %72, label %.thread108

51:                                               ; preds = %35
  br i1 %41, label %52, label %53

52:                                               ; preds = %51
  br i1 %42, label %.thread, label %.thread.thread

53:                                               ; preds = %51
  br i1 %42, label %.thread109, label %54

54:                                               ; preds = %53
  %55 = fcmp oeq double %37, 0.000000e+00
  br i1 %55, label %56, label %63

56:                                               ; preds = %54
  tail call void @_ZN10tetgenmesh13enextesymselfERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %2)
  %57 = fcmp oeq double %38, 0.000000e+00
  br i1 %57, label %58, label %60

58:                                               ; preds = %56
  tail call void @_ZN10tetgenmesh9eprevselfERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %2)
  %59 = fcmp oeq double %39, 0.000000e+00
  %.106 = select i1 %59, i32 5, i32 4
  br label %.loopexit

60:                                               ; preds = %56
  %61 = fcmp oeq double %39, 0.000000e+00
  br i1 %61, label %62, label %.loopexit

62:                                               ; preds = %60
  tail call void @_ZN10tetgenmesh9enextselfERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %2)
  br label %.loopexit

63:                                               ; preds = %54
  %64 = fcmp oeq double %38, 0.000000e+00
  br i1 %64, label %65, label %68

65:                                               ; preds = %63
  tail call void @_ZN10tetgenmesh13eprevesymselfERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %2)
  %66 = fcmp oeq double %39, 0.000000e+00
  br i1 %66, label %67, label %.loopexit

67:                                               ; preds = %65
  tail call void @_ZN10tetgenmesh9eprevselfERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %2)
  br label %.loopexit

68:                                               ; preds = %63
  %69 = fcmp oeq double %39, 0.000000e+00
  br i1 %69, label %70, label %.loopexit

70:                                               ; preds = %68
  tail call void @_ZN10tetgenmesh8esymselfERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %2)
  br label %.loopexit

.thread:                                          ; preds = %52
  %71 = tail call noundef i64 @_ZN10tetgenmesh12randomnationEj(ptr noundef nonnull align 8 dereferenceable(1536) %0, i32 noundef 2)
  %.not.not = icmp eq i64 %71, 0
  br i1 %.not.not, label %.thread109, label %.thread.thread

72:                                               ; preds = %50
  %73 = tail call noundef i64 @_ZN10tetgenmesh12randomnationEj(ptr noundef nonnull align 8 dereferenceable(1536) %0, i32 noundef 2)
  %.not98.not = icmp eq i64 %73, 0
  br i1 %.not98.not, label %.thread109, label %.thread108

.thread108:                                       ; preds = %50, %45, %48, %72
  tail call void @_ZN10tetgenmesh13enextesymselfERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %2)
  br label %74

.thread.thread:                                   ; preds = %48, %45, %52, %.thread
  tail call void @_ZN10tetgenmesh13eprevesymselfERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %2)
  br label %74

.thread109:                                       ; preds = %45, %53, %72, %.thread
  tail call void @_ZN10tetgenmesh8esymselfERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %2)
  br label %74

74:                                               ; preds = %.thread.thread, %.thread109, %.thread108
  br i1 %.not100, label %._crit_edge145, label %75

._crit_edge145:                                   ; preds = %74
  %.pre = load i32, ptr %18, align 8, !tbaa !16
  %.pre147 = load ptr, ptr %2, align 8, !tbaa !5
  br label %84

75:                                               ; preds = %74
  %76 = load ptr, ptr %2, align 8, !tbaa !5
  %77 = getelementptr inbounds i8, ptr %76, i64 72
  %78 = load ptr, ptr %77, align 8, !tbaa !17
  %.not101 = icmp eq ptr %78, null
  %.pre146 = load i32, ptr %18, align 8, !tbaa !16
  br i1 %.not101, label %84, label %79

79:                                               ; preds = %75
  %80 = and i32 %.pre146, 3
  %81 = zext nneg i32 %80 to i64
  %82 = getelementptr inbounds ptr, ptr %78, i64 %81
  %83 = load ptr, ptr %82, align 8, !tbaa !17
  %.not102 = icmp eq ptr %83, null
  br i1 %.not102, label %84, label %.loopexit

84:                                               ; preds = %._crit_edge145, %75, %79
  %85 = phi ptr [ %.pre147, %._crit_edge145 ], [ %76, %75 ], [ %76, %79 ]
  %86 = phi i32 [ %.pre, %._crit_edge145 ], [ %.pre146, %75 ], [ %.pre146, %79 ]
  %87 = and i32 %86, 3
  %88 = zext nneg i32 %87 to i64
  %89 = getelementptr inbounds ptr, ptr %85, i64 %88
  %90 = load ptr, ptr %89, align 8, !tbaa !17
  tail call void @_ZN10tetgenmesh6decodeEPPdRNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef %90, ptr noundef nonnull align 8 dereferenceable(12) %2)
  %91 = sext i32 %86 to i64
  %92 = load i32, ptr %18, align 8, !tbaa !16
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds [12 x [12 x i32]], ptr @_ZN10tetgenmesh7fsymtblE, i64 0, i64 %91, i64 %93
  %95 = load i32, ptr %94, align 4, !tbaa !20
  store i32 %95, ptr %18, align 8, !tbaa !16
  %96 = tail call noundef ptr @_ZN10tetgenmesh4oppoERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %2)
  %97 = load ptr, ptr %34, align 8, !tbaa !21
  %98 = icmp eq ptr %96, %97
  br i1 %98, label %.loopexit, label %99

99:                                               ; preds = %84
  %100 = tail call noundef ptr @_ZN10tetgenmesh3orgERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %2)
  %101 = tail call noundef ptr @_ZN10tetgenmesh4destERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %2)
  %102 = tail call noundef ptr @_ZN10tetgenmesh4apexERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %2)
  %103 = tail call noundef ptr @_ZN10tetgenmesh4oppoERNS_7trifaceE(ptr noundef nonnull align 8 dereferenceable(1536) %0, ptr noundef nonnull align 8 dereferenceable(12) %2)
  %104 = icmp eq ptr %103, %1
  br i1 %104, label %._crit_edge, label %35, !llvm.loop !22

.loopexit:                                        ; preds = %84, %79, %68, %65, %60, %58, %70, %67, %62, %._crit_edge
  %.083 = phi i32 [ 5, %._crit_edge ], [ 4, %62 ], [ 4, %67 ], [ 3, %70 ], [ %.106, %58 ], [ 3, %60 ], [ 3, %65 ], [ 2, %68 ], [ 1, %84 ], [ 8, %79 ]
  ret i32 %.083
}

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

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

attributes #0 = { 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 #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 = { 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 #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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" }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"_ZTSN10tetgenmesh7trifaceE", !7, i64 0, !10, i64 8}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!12, !7, i64 288}
!12 = !{!"_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, !6, i64 288, !13, i64 304, !7, i64 320, !10, i64 328, !10, i64 332, !10, i64 336, !10, i64 340, !10, i64 344, !10, i64 348, !10, i64 352, !10, i64 356, !10, i64 360, !10, i64 364, !10, i64 368, !10, i64 372, !10, i64 376, !10, i64 380, !10, i64 384, !10, i64 388, !10, i64 392, !10, i64 396, !10, i64 400, !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, !8, i64 736, !8, i64 1504}
!13 = !{!"_ZTSN10tetgenmesh4faceE", !7, i64 0, !10, i64 8}
!14 = !{!"long", !8, i64 0}
!15 = !{!"double", !8, i64 0}
!16 = !{!6, !10, i64 8}
!17 = !{!7, !7, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!10, !10, i64 0}
!21 = !{!12, !7, i64 280}
!22 = distinct !{!22, !19}


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