; LLVM IR from bohanwang/libpgo :: src/core/mesh (intersection_tunicate)

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

@.str.1 = external hidden unnamed_addr constant [90 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [13 x i8], align 1
@__PRETTY_FUNCTION__._ZN3pgo4Mesh22simplex_intersection3dEiPKdS2_S2_S2_S2_PdS3_S3_S3_S3_ = external hidden unnamed_addr constant [173 x i8], align 1

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #0

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN3pgo4Mesh9same_signEdd(double noundef, double noundef) #2

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN3pgo4Mesh22simplex_intersection3dEiPKdS2_S2_S2_S2_PdS3_S3_S3_S3_(i32 noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef %10) #3 {
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca double, align 8
  %25 = alloca double, align 8
  %26 = alloca i32, align 4
  store i32 %0, ptr %13, align 4, !tbaa !5
  store ptr %1, ptr %14, align 8, !tbaa !9
  store ptr %2, ptr %15, align 8, !tbaa !9
  store ptr %3, ptr %16, align 8, !tbaa !9
  store ptr %4, ptr %17, align 8, !tbaa !9
  store ptr %5, ptr %18, align 8, !tbaa !9
  store ptr %6, ptr %19, align 8, !tbaa !9
  store ptr %7, ptr %20, align 8, !tbaa !9
  store ptr %8, ptr %21, align 8, !tbaa !9
  store ptr %9, ptr %22, align 8, !tbaa !9
  store ptr %10, ptr %23, align 8, !tbaa !9
  %27 = load i32, ptr %13, align 4, !tbaa !5
  %28 = icmp sle i32 1, %27
  br i1 %28, label %29, label %32

29:                                               ; preds = %11
  %30 = load i32, ptr %13, align 4, !tbaa !5
  %31 = icmp sle i32 %30, 4
  br label %32

32:                                               ; preds = %29, %11
  %33 = phi i1 [ false, %11 ], [ %31, %29 ]
  br i1 %33, label %34, label %35

34:                                               ; preds = %32
  br label %37

35:                                               ; preds = %32
  call void @__assert_fail(ptr noundef @.str.5, ptr noundef @.str.1, i32 noundef 318, ptr noundef @__PRETTY_FUNCTION__._ZN3pgo4Mesh22simplex_intersection3dEiPKdS2_S2_S2_S2_PdS3_S3_S3_S3_) #5
  unreachable

36:                                               ; No predecessors!
  br label %37

37:                                               ; preds = %36, %34
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #6
  %38 = load i32, ptr %13, align 4, !tbaa !5
  switch i32 %38, label %372 [
    i32 1, label %39
    i32 2, label %192
    i32 3, label %358
    i32 4, label %358
  ]

39:                                               ; preds = %37
  %40 = load ptr, ptr %14, align 8, !tbaa !9
  %41 = load ptr, ptr %16, align 8, !tbaa !9
  %42 = load ptr, ptr %17, align 8, !tbaa !9
  %43 = load ptr, ptr %18, align 8, !tbaa !9
  %44 = call noundef double @_ZN3pgo4Mesh8orient3dEPKdS2_S2_S2_(ptr noundef %40, ptr noundef %41, ptr noundef %42, ptr noundef %43)
  %45 = fneg double %44
  %46 = load ptr, ptr %20, align 8, !tbaa !9
  store double %45, ptr %46, align 8, !tbaa !11
  %47 = load ptr, ptr %14, align 8, !tbaa !9
  %48 = load ptr, ptr %15, align 8, !tbaa !9
  %49 = load ptr, ptr %17, align 8, !tbaa !9
  %50 = load ptr, ptr %18, align 8, !tbaa !9
  %51 = call noundef double @_ZN3pgo4Mesh8orient3dEPKdS2_S2_S2_(ptr noundef %47, ptr noundef %48, ptr noundef %49, ptr noundef %50)
  %52 = load ptr, ptr %21, align 8, !tbaa !9
  store double %51, ptr %52, align 8, !tbaa !11
  %53 = load ptr, ptr %20, align 8, !tbaa !9
  %54 = load double, ptr %53, align 8, !tbaa !11
  %55 = load ptr, ptr %21, align 8, !tbaa !9
  %56 = load double, ptr %55, align 8, !tbaa !11
  %57 = call noundef zeroext i1 @_ZN3pgo4Mesh9same_signEdd(double noundef %54, double noundef %56)
  br i1 %57, label %59, label %58

58:                                               ; preds = %39
  store i32 0, ptr %12, align 4
  store i32 1, ptr %26, align 4
  br label %373

59:                                               ; preds = %39
  %60 = load ptr, ptr %14, align 8, !tbaa !9
  %61 = load ptr, ptr %15, align 8, !tbaa !9
  %62 = load ptr, ptr %16, align 8, !tbaa !9
  %63 = load ptr, ptr %18, align 8, !tbaa !9
  %64 = call noundef double @_ZN3pgo4Mesh8orient3dEPKdS2_S2_S2_(ptr noundef %60, ptr noundef %61, ptr noundef %62, ptr noundef %63)
  %65 = fneg double %64
  %66 = load ptr, ptr %22, align 8, !tbaa !9
  store double %65, ptr %66, align 8, !tbaa !11
  %67 = load ptr, ptr %20, align 8, !tbaa !9
  %68 = load double, ptr %67, align 8, !tbaa !11
  %69 = load ptr, ptr %22, align 8, !tbaa !9
  %70 = load double, ptr %69, align 8, !tbaa !11
  %71 = call noundef zeroext i1 @_ZN3pgo4Mesh9same_signEdd(double noundef %68, double noundef %70)
  br i1 %71, label %73, label %72

72:                                               ; preds = %59
  store i32 0, ptr %12, align 4
  store i32 1, ptr %26, align 4
  br label %373

73:                                               ; preds = %59
  %74 = load ptr, ptr %21, align 8, !tbaa !9
  %75 = load double, ptr %74, align 8, !tbaa !11
  %76 = load ptr, ptr %22, align 8, !tbaa !9
  %77 = load double, ptr %76, align 8, !tbaa !11
  %78 = call noundef zeroext i1 @_ZN3pgo4Mesh9same_signEdd(double noundef %75, double noundef %77)
  br i1 %78, label %80, label %79

79:                                               ; preds = %73
  store i32 0, ptr %12, align 4
  store i32 1, ptr %26, align 4
  br label %373

80:                                               ; preds = %73
  %81 = load ptr, ptr %14, align 8, !tbaa !9
  %82 = load ptr, ptr %15, align 8, !tbaa !9
  %83 = load ptr, ptr %16, align 8, !tbaa !9
  %84 = load ptr, ptr %17, align 8, !tbaa !9
  %85 = call noundef double @_ZN3pgo4Mesh8orient3dEPKdS2_S2_S2_(ptr noundef %81, ptr noundef %82, ptr noundef %83, ptr noundef %84)
  %86 = load ptr, ptr %23, align 8, !tbaa !9
  store double %85, ptr %86, align 8, !tbaa !11
  %87 = load ptr, ptr %20, align 8, !tbaa !9
  %88 = load double, ptr %87, align 8, !tbaa !11
  %89 = load ptr, ptr %23, align 8, !tbaa !9
  %90 = load double, ptr %89, align 8, !tbaa !11
  %91 = call noundef zeroext i1 @_ZN3pgo4Mesh9same_signEdd(double noundef %88, double noundef %90)
  br i1 %91, label %93, label %92

92:                                               ; preds = %80
  store i32 0, ptr %12, align 4
  store i32 1, ptr %26, align 4
  br label %373

93:                                               ; preds = %80
  %94 = load ptr, ptr %21, align 8, !tbaa !9
  %95 = load double, ptr %94, align 8, !tbaa !11
  %96 = load ptr, ptr %23, align 8, !tbaa !9
  %97 = load double, ptr %96, align 8, !tbaa !11
  %98 = call noundef zeroext i1 @_ZN3pgo4Mesh9same_signEdd(double noundef %95, double noundef %97)
  br i1 %98, label %100, label %99

99:                                               ; preds = %93
  store i32 0, ptr %12, align 4
  store i32 1, ptr %26, align 4
  br label %373

100:                                              ; preds = %93
  %101 = load ptr, ptr %22, align 8, !tbaa !9
  %102 = load double, ptr %101, align 8, !tbaa !11
  %103 = load ptr, ptr %23, align 8, !tbaa !9
  %104 = load double, ptr %103, align 8, !tbaa !11
  %105 = call noundef zeroext i1 @_ZN3pgo4Mesh9same_signEdd(double noundef %102, double noundef %104)
  br i1 %105, label %107, label %106

106:                                              ; preds = %100
  store i32 0, ptr %12, align 4
  store i32 1, ptr %26, align 4
  br label %373

107:                                              ; preds = %100
  %108 = load ptr, ptr %19, align 8, !tbaa !9
  store double 1.000000e+00, ptr %108, align 8, !tbaa !11
  %109 = load ptr, ptr %20, align 8, !tbaa !9
  %110 = load double, ptr %109, align 8, !tbaa !11
  %111 = load ptr, ptr %21, align 8, !tbaa !9
  %112 = load double, ptr %111, align 8, !tbaa !11
  %113 = fadd double %110, %112
  %114 = load ptr, ptr %22, align 8, !tbaa !9
  %115 = load double, ptr %114, align 8, !tbaa !11
  %116 = fadd double %113, %115
  %117 = load ptr, ptr %23, align 8, !tbaa !9
  %118 = load double, ptr %117, align 8, !tbaa !11
  %119 = fadd double %116, %118
  store double %119, ptr %25, align 8, !tbaa !11
  %120 = load double, ptr %25, align 8, !tbaa !11
  %121 = fcmp une double %120, 0.000000e+00
  br i1 %121, label %122, label %139

122:                                              ; preds = %107
  %123 = load double, ptr %25, align 8, !tbaa !11
  %124 = load ptr, ptr %20, align 8, !tbaa !9
  %125 = load double, ptr %124, align 8, !tbaa !11
  %126 = fdiv double %125, %123
  store double %126, ptr %124, align 8, !tbaa !11
  %127 = load double, ptr %25, align 8, !tbaa !11
  %128 = load ptr, ptr %21, align 8, !tbaa !9
  %129 = load double, ptr %128, align 8, !tbaa !11
  %130 = fdiv double %129, %127
  store double %130, ptr %128, align 8, !tbaa !11
  %131 = load double, ptr %25, align 8, !tbaa !11
  %132 = load ptr, ptr %22, align 8, !tbaa !9
  %133 = load double, ptr %132, align 8, !tbaa !11
  %134 = fdiv double %133, %131
  store double %134, ptr %132, align 8, !tbaa !11
  %135 = load double, ptr %25, align 8, !tbaa !11
  %136 = load ptr, ptr %23, align 8, !tbaa !9
  %137 = load double, ptr %136, align 8, !tbaa !11
  %138 = fdiv double %137, %135
  store double %138, ptr %136, align 8, !tbaa !11
  store i32 1, ptr %12, align 4
  store i32 1, ptr %26, align 4
  br label %373

139:                                              ; preds = %107
  %140 = load ptr, ptr %14, align 8, !tbaa !9
  %141 = load ptr, ptr %16, align 8, !tbaa !9
  %142 = load ptr, ptr %17, align 8, !tbaa !9
  %143 = load ptr, ptr %18, align 8, !tbaa !9
  %144 = load ptr, ptr %19, align 8, !tbaa !9
  %145 = load ptr, ptr %21, align 8, !tbaa !9
  %146 = load ptr, ptr %22, align 8, !tbaa !9
  %147 = load ptr, ptr %23, align 8, !tbaa !9
  %148 = call noundef i32 @_ZN3pgo4Mesh22simplex_intersection3dEiPKdS2_S2_S2_PdS3_S3_S3_(i32 noundef 1, ptr noundef %140, ptr noundef %141, ptr noundef %142, ptr noundef %143, ptr noundef %144, ptr noundef %145, ptr noundef %146, ptr noundef %147)
  %149 = icmp ne i32 %148, 0
  br i1 %149, label %150, label %152

150:                                              ; preds = %139
  %151 = load ptr, ptr %20, align 8, !tbaa !9
  store double 0.000000e+00, ptr %151, align 8, !tbaa !11
  store i32 1, ptr %12, align 4
  store i32 1, ptr %26, align 4
  br label %373

152:                                              ; preds = %139
  %153 = load ptr, ptr %14, align 8, !tbaa !9
  %154 = load ptr, ptr %15, align 8, !tbaa !9
  %155 = load ptr, ptr %17, align 8, !tbaa !9
  %156 = load ptr, ptr %18, align 8, !tbaa !9
  %157 = load ptr, ptr %19, align 8, !tbaa !9
  %158 = load ptr, ptr %20, align 8, !tbaa !9
  %159 = load ptr, ptr %22, align 8, !tbaa !9
  %160 = load ptr, ptr %23, align 8, !tbaa !9
  %161 = call noundef i32 @_ZN3pgo4Mesh22simplex_intersection3dEiPKdS2_S2_S2_PdS3_S3_S3_(i32 noundef 1, ptr noundef %153, ptr noundef %154, ptr noundef %155, ptr noundef %156, ptr noundef %157, ptr noundef %158, ptr noundef %159, ptr noundef %160)
  %162 = icmp ne i32 %161, 0
  br i1 %162, label %163, label %165

163:                                              ; preds = %152
  %164 = load ptr, ptr %21, align 8, !tbaa !9
  store double 0.000000e+00, ptr %164, align 8, !tbaa !11
  store i32 1, ptr %12, align 4
  store i32 1, ptr %26, align 4
  br label %373

165:                                              ; preds = %152
  %166 = load ptr, ptr %14, align 8, !tbaa !9
  %167 = load ptr, ptr %15, align 8, !tbaa !9
  %168 = load ptr, ptr %16, align 8, !tbaa !9
  %169 = load ptr, ptr %18, align 8, !tbaa !9
  %170 = load ptr, ptr %19, align 8, !tbaa !9
  %171 = load ptr, ptr %20, align 8, !tbaa !9
  %172 = load ptr, ptr %21, align 8, !tbaa !9
  %173 = load ptr, ptr %23, align 8, !tbaa !9
  %174 = call noundef i32 @_ZN3pgo4Mesh22simplex_intersection3dEiPKdS2_S2_S2_PdS3_S3_S3_(i32 noundef 1, ptr noundef %166, ptr noundef %167, ptr noundef %168, ptr noundef %169, ptr noundef %170, ptr noundef %171, ptr noundef %172, ptr noundef %173)
  %175 = icmp ne i32 %174, 0
  br i1 %175, label %176, label %178

176:                                              ; preds = %165
  %177 = load ptr, ptr %22, align 8, !tbaa !9
  store double 0.000000e+00, ptr %177, align 8, !tbaa !11
  store i32 1, ptr %12, align 4
  store i32 1, ptr %26, align 4
  br label %373

178:                                              ; preds = %165
  %179 = load ptr, ptr %14, align 8, !tbaa !9
  %180 = load ptr, ptr %15, align 8, !tbaa !9
  %181 = load ptr, ptr %16, align 8, !tbaa !9
  %182 = load ptr, ptr %17, align 8, !tbaa !9
  %183 = load ptr, ptr %19, align 8, !tbaa !9
  %184 = load ptr, ptr %20, align 8, !tbaa !9
  %185 = load ptr, ptr %21, align 8, !tbaa !9
  %186 = load ptr, ptr %22, align 8, !tbaa !9
  %187 = call noundef i32 @_ZN3pgo4Mesh22simplex_intersection3dEiPKdS2_S2_S2_PdS3_S3_S3_(i32 noundef 1, ptr noundef %179, ptr noundef %180, ptr noundef %181, ptr noundef %182, ptr noundef %183, ptr noundef %184, ptr noundef %185, ptr noundef %186)
  %188 = icmp ne i32 %187, 0
  br i1 %188, label %189, label %191

189:                                              ; preds = %178
  %190 = load ptr, ptr %23, align 8, !tbaa !9
  store double 0.000000e+00, ptr %190, align 8, !tbaa !11
  store i32 1, ptr %12, align 4
  store i32 1, ptr %26, align 4
  br label %373

191:                                              ; preds = %178
  store i32 0, ptr %12, align 4
  store i32 1, ptr %26, align 4
  br label %373

192:                                              ; preds = %37
  %193 = load ptr, ptr %15, align 8, !tbaa !9
  %194 = load ptr, ptr %16, align 8, !tbaa !9
  %195 = load ptr, ptr %17, align 8, !tbaa !9
  %196 = load ptr, ptr %18, align 8, !tbaa !9
  %197 = call noundef double @_ZN3pgo4Mesh8orient3dEPKdS2_S2_S2_(ptr noundef %193, ptr noundef %194, ptr noundef %195, ptr noundef %196)
  %198 = load ptr, ptr %19, align 8, !tbaa !9
  store double %197, ptr %198, align 8, !tbaa !11
  %199 = load ptr, ptr %14, align 8, !tbaa !9
  %200 = load ptr, ptr %16, align 8, !tbaa !9
  %201 = load ptr, ptr %17, align 8, !tbaa !9
  %202 = load ptr, ptr %18, align 8, !tbaa !9
  %203 = call noundef double @_ZN3pgo4Mesh8orient3dEPKdS2_S2_S2_(ptr noundef %199, ptr noundef %200, ptr noundef %201, ptr noundef %202)
  %204 = fneg double %203
  %205 = load ptr, ptr %20, align 8, !tbaa !9
  store double %204, ptr %205, align 8, !tbaa !11
  %206 = load ptr, ptr %19, align 8, !tbaa !9
  %207 = load double, ptr %206, align 8, !tbaa !11
  %208 = load ptr, ptr %20, align 8, !tbaa !9
  %209 = load double, ptr %208, align 8, !tbaa !11
  %210 = call noundef zeroext i1 @_ZN3pgo4Mesh9same_signEdd(double noundef %207, double noundef %209)
  br i1 %210, label %212, label %211

211:                                              ; preds = %192
  store i32 0, ptr %12, align 4
  store i32 1, ptr %26, align 4
  br label %373

212:                                              ; preds = %192
  %213 = load ptr, ptr %14, align 8, !tbaa !9
  %214 = load ptr, ptr %15, align 8, !tbaa !9
  %215 = load ptr, ptr %17, align 8, !tbaa !9
  %216 = load ptr, ptr %18, align 8, !tbaa !9
  %217 = call noundef double @_ZN3pgo4Mesh8orient3dEPKdS2_S2_S2_(ptr noundef %213, ptr noundef %214, ptr noundef %215, ptr noundef %216)
  %218 = load ptr, ptr %21, align 8, !tbaa !9
  store double %217, ptr %218, align 8, !tbaa !11
  %219 = load ptr, ptr %14, align 8, !tbaa !9
  %220 = load ptr, ptr %15, align 8, !tbaa !9
  %221 = load ptr, ptr %16, align 8, !tbaa !9
  %222 = load ptr, ptr %18, align 8, !tbaa !9
  %223 = call noundef double @_ZN3pgo4Mesh8orient3dEPKdS2_S2_S2_(ptr noundef %219, ptr noundef %220, ptr noundef %221, ptr noundef %222)
  %224 = fneg double %223
  %225 = load ptr, ptr %22, align 8, !tbaa !9
  store double %224, ptr %225, align 8, !tbaa !11
  %226 = load ptr, ptr %21, align 8, !tbaa !9
  %227 = load double, ptr %226, align 8, !tbaa !11
  %228 = load ptr, ptr %22, align 8, !tbaa !9
  %229 = load double, ptr %228, align 8, !tbaa !11
  %230 = call noundef zeroext i1 @_ZN3pgo4Mesh9same_signEdd(double noundef %227, double noundef %229)
  br i1 %230, label %232, label %231

231:                                              ; preds = %212
  store i32 0, ptr %12, align 4
  store i32 1, ptr %26, align 4
  br label %373

232:                                              ; preds = %212
  %233 = load ptr, ptr %14, align 8, !tbaa !9
  %234 = load ptr, ptr %15, align 8, !tbaa !9
  %235 = load ptr, ptr %16, align 8, !tbaa !9
  %236 = load ptr, ptr %17, align 8, !tbaa !9
  %237 = call noundef double @_ZN3pgo4Mesh8orient3dEPKdS2_S2_S2_(ptr noundef %233, ptr noundef %234, ptr noundef %235, ptr noundef %236)
  %238 = load ptr, ptr %23, align 8, !tbaa !9
  store double %237, ptr %238, align 8, !tbaa !11
  %239 = load ptr, ptr %21, align 8, !tbaa !9
  %240 = load double, ptr %239, align 8, !tbaa !11
  %241 = load ptr, ptr %23, align 8, !tbaa !9
  %242 = load double, ptr %241, align 8, !tbaa !11
  %243 = call noundef zeroext i1 @_ZN3pgo4Mesh9same_signEdd(double noundef %240, double noundef %242)
  br i1 %243, label %245, label %244

244:                                              ; preds = %232
  store i32 0, ptr %12, align 4
  store i32 1, ptr %26, align 4
  br label %373

245:                                              ; preds = %232
  %246 = load ptr, ptr %22, align 8, !tbaa !9
  %247 = load double, ptr %246, align 8, !tbaa !11
  %248 = load ptr, ptr %23, align 8, !tbaa !9
  %249 = load double, ptr %248, align 8, !tbaa !11
  %250 = call noundef zeroext i1 @_ZN3pgo4Mesh9same_signEdd(double noundef %247, double noundef %249)
  br i1 %250, label %252, label %251

251:                                              ; preds = %245
  store i32 0, ptr %12, align 4
  store i32 1, ptr %26, align 4
  br label %373

252:                                              ; preds = %245
  %253 = load ptr, ptr %19, align 8, !tbaa !9
  %254 = load double, ptr %253, align 8, !tbaa !11
  %255 = load ptr, ptr %20, align 8, !tbaa !9
  %256 = load double, ptr %255, align 8, !tbaa !11
  %257 = fadd double %254, %256
  store double %257, ptr %24, align 8, !tbaa !11
  %258 = load ptr, ptr %21, align 8, !tbaa !9
  %259 = load double, ptr %258, align 8, !tbaa !11
  %260 = load ptr, ptr %22, align 8, !tbaa !9
  %261 = load double, ptr %260, align 8, !tbaa !11
  %262 = fadd double %259, %261
  %263 = load ptr, ptr %23, align 8, !tbaa !9
  %264 = load double, ptr %263, align 8, !tbaa !11
  %265 = fadd double %262, %264
  store double %265, ptr %25, align 8, !tbaa !11
  %266 = load double, ptr %24, align 8, !tbaa !11
  %267 = fcmp une double %266, 0.000000e+00
  br i1 %267, label %268, label %292

268:                                              ; preds = %252
  %269 = load double, ptr %25, align 8, !tbaa !11
  %270 = fcmp une double %269, 0.000000e+00
  br i1 %270, label %271, label %292

271:                                              ; preds = %268
  %272 = load double, ptr %24, align 8, !tbaa !11
  %273 = load ptr, ptr %19, align 8, !tbaa !9
  %274 = load double, ptr %273, align 8, !tbaa !11
  %275 = fdiv double %274, %272
  store double %275, ptr %273, align 8, !tbaa !11
  %276 = load double, ptr %24, align 8, !tbaa !11
  %277 = load ptr, ptr %20, align 8, !tbaa !9
  %278 = load double, ptr %277, align 8, !tbaa !11
  %279 = fdiv double %278, %276
  store double %279, ptr %277, align 8, !tbaa !11
  %280 = load double, ptr %25, align 8, !tbaa !11
  %281 = load ptr, ptr %21, align 8, !tbaa !9
  %282 = load double, ptr %281, align 8, !tbaa !11
  %283 = fdiv double %282, %280
  store double %283, ptr %281, align 8, !tbaa !11
  %284 = load double, ptr %25, align 8, !tbaa !11
  %285 = load ptr, ptr %22, align 8, !tbaa !9
  %286 = load double, ptr %285, align 8, !tbaa !11
  %287 = fdiv double %286, %284
  store double %287, ptr %285, align 8, !tbaa !11
  %288 = load double, ptr %25, align 8, !tbaa !11
  %289 = load ptr, ptr %23, align 8, !tbaa !9
  %290 = load double, ptr %289, align 8, !tbaa !11
  %291 = fdiv double %290, %288
  store double %291, ptr %289, align 8, !tbaa !11
  store i32 1, ptr %12, align 4
  store i32 1, ptr %26, align 4
  br label %373

292:                                              ; preds = %268, %252
  %293 = load ptr, ptr %15, align 8, !tbaa !9
  %294 = load ptr, ptr %16, align 8, !tbaa !9
  %295 = load ptr, ptr %17, align 8, !tbaa !9
  %296 = load ptr, ptr %18, align 8, !tbaa !9
  %297 = load ptr, ptr %20, align 8, !tbaa !9
  %298 = load ptr, ptr %21, align 8, !tbaa !9
  %299 = load ptr, ptr %22, align 8, !tbaa !9
  %300 = load ptr, ptr %23, align 8, !tbaa !9
  %301 = call noundef i32 @_ZN3pgo4Mesh22simplex_intersection3dEiPKdS2_S2_S2_PdS3_S3_S3_(i32 noundef 1, ptr noundef %293, ptr noundef %294, ptr noundef %295, ptr noundef %296, ptr noundef %297, ptr noundef %298, ptr noundef %299, ptr noundef %300)
  %302 = icmp ne i32 %301, 0
  br i1 %302, label %303, label %305

303:                                              ; preds = %292
  %304 = load ptr, ptr %19, align 8, !tbaa !9
  store double 0.000000e+00, ptr %304, align 8, !tbaa !11
  store i32 1, ptr %12, align 4
  store i32 1, ptr %26, align 4
  br label %373

305:                                              ; preds = %292
  %306 = load ptr, ptr %14, align 8, !tbaa !9
  %307 = load ptr, ptr %16, align 8, !tbaa !9
  %308 = load ptr, ptr %17, align 8, !tbaa !9
  %309 = load ptr, ptr %18, align 8, !tbaa !9
  %310 = load ptr, ptr %19, align 8, !tbaa !9
  %311 = load ptr, ptr %21, align 8, !tbaa !9
  %312 = load ptr, ptr %22, align 8, !tbaa !9
  %313 = load ptr, ptr %23, align 8, !tbaa !9
  %314 = call noundef i32 @_ZN3pgo4Mesh22simplex_intersection3dEiPKdS2_S2_S2_PdS3_S3_S3_(i32 noundef 1, ptr noundef %306, ptr noundef %307, ptr noundef %308, ptr noundef %309, ptr noundef %310, ptr noundef %311, ptr noundef %312, ptr noundef %313)
  %315 = icmp ne i32 %314, 0
  br i1 %315, label %316, label %318

316:                                              ; preds = %305
  %317 = load ptr, ptr %20, align 8, !tbaa !9
  store double 0.000000e+00, ptr %317, align 8, !tbaa !11
  store i32 1, ptr %12, align 4
  store i32 1, ptr %26, align 4
  br label %373

318:                                              ; preds = %305
  %319 = load ptr, ptr %14, align 8, !tbaa !9
  %320 = load ptr, ptr %15, align 8, !tbaa !9
  %321 = load ptr, ptr %17, align 8, !tbaa !9
  %322 = load ptr, ptr %18, align 8, !tbaa !9
  %323 = load ptr, ptr %19, align 8, !tbaa !9
  %324 = load ptr, ptr %20, align 8, !tbaa !9
  %325 = load ptr, ptr %22, align 8, !tbaa !9
  %326 = load ptr, ptr %23, align 8, !tbaa !9
  %327 = call noundef i32 @_ZN3pgo4Mesh22simplex_intersection3dEiPKdS2_S2_S2_PdS3_S3_S3_(i32 noundef 2, ptr noundef %319, ptr noundef %320, ptr noundef %321, ptr noundef %322, ptr noundef %323, ptr noundef %324, ptr noundef %325, ptr noundef %326)
  %328 = icmp ne i32 %327, 0
  br i1 %328, label %329, label %331

329:                                              ; preds = %318
  %330 = load ptr, ptr %21, align 8, !tbaa !9
  store double 0.000000e+00, ptr %330, align 8, !tbaa !11
  store i32 1, ptr %12, align 4
  store i32 1, ptr %26, align 4
  br label %373

331:                                              ; preds = %318
  %332 = load ptr, ptr %14, align 8, !tbaa !9
  %333 = load ptr, ptr %15, align 8, !tbaa !9
  %334 = load ptr, ptr %16, align 8, !tbaa !9
  %335 = load ptr, ptr %18, align 8, !tbaa !9
  %336 = load ptr, ptr %19, align 8, !tbaa !9
  %337 = load ptr, ptr %20, align 8, !tbaa !9
  %338 = load ptr, ptr %21, align 8, !tbaa !9
  %339 = load ptr, ptr %23, align 8, !tbaa !9
  %340 = call noundef i32 @_ZN3pgo4Mesh22simplex_intersection3dEiPKdS2_S2_S2_PdS3_S3_S3_(i32 noundef 2, ptr noundef %332, ptr noundef %333, ptr noundef %334, ptr noundef %335, ptr noundef %336, ptr noundef %337, ptr noundef %338, ptr noundef %339)
  %341 = icmp ne i32 %340, 0
  br i1 %341, label %342, label %344

342:                                              ; preds = %331
  %343 = load ptr, ptr %22, align 8, !tbaa !9
  store double 0.000000e+00, ptr %343, align 8, !tbaa !11
  store i32 1, ptr %12, align 4
  store i32 1, ptr %26, align 4
  br label %373

344:                                              ; preds = %331
  %345 = load ptr, ptr %14, align 8, !tbaa !9
  %346 = load ptr, ptr %15, align 8, !tbaa !9
  %347 = load ptr, ptr %16, align 8, !tbaa !9
  %348 = load ptr, ptr %17, align 8, !tbaa !9
  %349 = load ptr, ptr %19, align 8, !tbaa !9
  %350 = load ptr, ptr %20, align 8, !tbaa !9
  %351 = load ptr, ptr %21, align 8, !tbaa !9
  %352 = load ptr, ptr %22, align 8, !tbaa !9
  %353 = call noundef i32 @_ZN3pgo4Mesh22simplex_intersection3dEiPKdS2_S2_S2_PdS3_S3_S3_(i32 noundef 2, ptr noundef %345, ptr noundef %346, ptr noundef %347, ptr noundef %348, ptr noundef %349, ptr noundef %350, ptr noundef %351, ptr noundef %352)
  %354 = icmp ne i32 %353, 0
  br i1 %354, label %355, label %357

355:                                              ; preds = %344
  %356 = load ptr, ptr %23, align 8, !tbaa !9
  store double 0.000000e+00, ptr %356, align 8, !tbaa !11
  store i32 1, ptr %12, align 4
  store i32 1, ptr %26, align 4
  br label %373

357:                                              ; preds = %344
  store i32 0, ptr %12, align 4
  store i32 1, ptr %26, align 4
  br label %373

358:                                              ; preds = %37, %37
  %359 = load i32, ptr %13, align 4, !tbaa !5
  %360 = sub nsw i32 5, %359
  %361 = load ptr, ptr %18, align 8, !tbaa !9
  %362 = load ptr, ptr %17, align 8, !tbaa !9
  %363 = load ptr, ptr %16, align 8, !tbaa !9
  %364 = load ptr, ptr %15, align 8, !tbaa !9
  %365 = load ptr, ptr %14, align 8, !tbaa !9
  %366 = load ptr, ptr %23, align 8, !tbaa !9
  %367 = load ptr, ptr %22, align 8, !tbaa !9
  %368 = load ptr, ptr %21, align 8, !tbaa !9
  %369 = load ptr, ptr %20, align 8, !tbaa !9
  %370 = load ptr, ptr %19, align 8, !tbaa !9
  %371 = call noundef i32 @_ZN3pgo4Mesh22simplex_intersection3dEiPKdS2_S2_S2_S2_PdS3_S3_S3_S3_(i32 noundef %360, ptr noundef %361, ptr noundef %362, ptr noundef %363, ptr noundef %364, ptr noundef %365, ptr noundef %366, ptr noundef %367, ptr noundef %368, ptr noundef %369, ptr noundef %370)
  store i32 %371, ptr %12, align 4
  store i32 1, ptr %26, align 4
  br label %373

372:                                              ; preds = %37
  store i32 -1, ptr %12, align 4
  store i32 1, ptr %26, align 4
  br label %373

373:                                              ; preds = %372, %358, %357, %355, %342, %329, %316, %303, %271, %251, %244, %231, %211, %191, %189, %176, %163, %150, %122, %106, %99, %92, %79, %72, %58
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  %374 = load i32, ptr %12, align 4
  ret i32 %374
}

declare noundef double @_ZN3pgo4Mesh8orient3dEPKdS2_S2_S2_(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #4

attributes #0 = { noreturn 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { "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 = { noreturn nounwind }
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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}


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

@.str.1 = external hidden unnamed_addr constant [90 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [13 x i8], align 1
@__PRETTY_FUNCTION__._ZN3pgo4Mesh22simplex_intersection3dEiPKdS2_S2_S2_S2_PdS3_S3_S3_S3_ = external hidden unnamed_addr constant [173 x i8], align 1

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN3pgo4Mesh9same_signEdd(double noundef, double noundef) local_unnamed_addr #1

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

; Function Attrs: mustprogress uwtable
define dso_local noundef range(i32 0, 2) i32 @_ZN3pgo4Mesh22simplex_intersection3dEiPKdS2_S2_S2_S2_PdS3_S3_S3_S3_(i32 noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef %10) local_unnamed_addr #2 {
  %12 = add i32 %0, -1
  %13 = icmp ult i32 %12, 4
  br i1 %13, label %.lr.ph, label %tailrecurse._crit_edge

tailrecurse._crit_edge:                           ; preds = %11
  tail call void @__assert_fail(ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.1, i32 noundef 318, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN3pgo4Mesh22simplex_intersection3dEiPKdS2_S2_S2_S2_PdS3_S3_S3_S3_) #4
  unreachable

.lr.ph:                                           ; preds = %11, %tailrecurse
  %.tr213246 = phi ptr [ %.tr209243, %tailrecurse ], [ %10, %11 ]
  %.tr212245 = phi ptr [ %.tr210244, %tailrecurse ], [ %9, %11 ]
  %.tr210244 = phi ptr [ %.tr212245, %tailrecurse ], [ %7, %11 ]
  %.tr209243 = phi ptr [ %.tr213246, %tailrecurse ], [ %6, %11 ]
  %.tr208242 = phi ptr [ %.tr204239, %tailrecurse ], [ %5, %11 ]
  %.tr207241 = phi ptr [ %.tr205240, %tailrecurse ], [ %4, %11 ]
  %.tr205240 = phi ptr [ %.tr207241, %tailrecurse ], [ %2, %11 ]
  %.tr204239 = phi ptr [ %.tr208242, %tailrecurse ], [ %1, %11 ]
  %.tr238 = phi i32 [ %126, %tailrecurse ], [ %0, %11 ]
  switch i32 %.tr238, label %default.unreachable [
    i32 1, label %14
    i32 2, label %70
    i32 3, label %tailrecurse
    i32 4, label %tailrecurse
  ]

14:                                               ; preds = %.lr.ph
  %15 = tail call noundef double @_ZN3pgo4Mesh8orient3dEPKdS2_S2_S2_(ptr noundef %.tr204239, ptr noundef %3, ptr noundef %.tr207241, ptr noundef %.tr208242)
  %16 = fneg double %15
  store double %16, ptr %.tr210244, align 8, !tbaa !5
  %17 = tail call noundef double @_ZN3pgo4Mesh8orient3dEPKdS2_S2_S2_(ptr noundef %.tr204239, ptr noundef %.tr205240, ptr noundef %.tr207241, ptr noundef %.tr208242)
  store double %17, ptr %8, align 8, !tbaa !5
  %18 = load double, ptr %.tr210244, align 8, !tbaa !5
  %19 = tail call noundef zeroext i1 @_ZN3pgo4Mesh9same_signEdd(double noundef %18, double noundef %17)
  br i1 %19, label %20, label %127

20:                                               ; preds = %14
  %21 = tail call noundef double @_ZN3pgo4Mesh8orient3dEPKdS2_S2_S2_(ptr noundef %.tr204239, ptr noundef %.tr205240, ptr noundef %3, ptr noundef %.tr208242)
  %22 = fneg double %21
  store double %22, ptr %.tr212245, align 8, !tbaa !5
  %23 = load double, ptr %.tr210244, align 8, !tbaa !5
  %24 = tail call noundef zeroext i1 @_ZN3pgo4Mesh9same_signEdd(double noundef %23, double noundef %22)
  br i1 %24, label %25, label %127

25:                                               ; preds = %20
  %26 = load double, ptr %8, align 8, !tbaa !5
  %27 = load double, ptr %.tr212245, align 8, !tbaa !5
  %28 = tail call noundef zeroext i1 @_ZN3pgo4Mesh9same_signEdd(double noundef %26, double noundef %27)
  br i1 %28, label %29, label %127

29:                                               ; preds = %25
  %30 = tail call noundef double @_ZN3pgo4Mesh8orient3dEPKdS2_S2_S2_(ptr noundef %.tr204239, ptr noundef %.tr205240, ptr noundef %3, ptr noundef %.tr207241)
  store double %30, ptr %.tr213246, align 8, !tbaa !5
  %31 = load double, ptr %.tr210244, align 8, !tbaa !5
  %32 = tail call noundef zeroext i1 @_ZN3pgo4Mesh9same_signEdd(double noundef %31, double noundef %30)
  br i1 %32, label %33, label %127

33:                                               ; preds = %29
  %34 = load double, ptr %8, align 8, !tbaa !5
  %35 = load double, ptr %.tr213246, align 8, !tbaa !5
  %36 = tail call noundef zeroext i1 @_ZN3pgo4Mesh9same_signEdd(double noundef %34, double noundef %35)
  br i1 %36, label %37, label %127

37:                                               ; preds = %33
  %38 = load double, ptr %.tr212245, align 8, !tbaa !5
  %39 = load double, ptr %.tr213246, align 8, !tbaa !5
  %40 = tail call noundef zeroext i1 @_ZN3pgo4Mesh9same_signEdd(double noundef %38, double noundef %39)
  br i1 %40, label %41, label %127

41:                                               ; preds = %37
  store double 1.000000e+00, ptr %.tr209243, align 8, !tbaa !5
  %42 = load double, ptr %.tr210244, align 8, !tbaa !5
  %43 = load double, ptr %8, align 8, !tbaa !5
  %44 = fadd double %42, %43
  %45 = load double, ptr %.tr212245, align 8, !tbaa !5
  %46 = fadd double %44, %45
  %47 = load double, ptr %.tr213246, align 8, !tbaa !5
  %48 = fadd double %46, %47
  %49 = fcmp une double %48, 0.000000e+00
  br i1 %49, label %50, label %58

50:                                               ; preds = %41
  %51 = fdiv double %42, %48
  store double %51, ptr %.tr210244, align 8, !tbaa !5
  %52 = load double, ptr %8, align 8, !tbaa !5
  %53 = fdiv double %52, %48
  store double %53, ptr %8, align 8, !tbaa !5
  %54 = load double, ptr %.tr212245, align 8, !tbaa !5
  %55 = fdiv double %54, %48
  store double %55, ptr %.tr212245, align 8, !tbaa !5
  %56 = load double, ptr %.tr213246, align 8, !tbaa !5
  %57 = fdiv double %56, %48
  store double %57, ptr %.tr213246, align 8, !tbaa !5
  br label %127

58:                                               ; preds = %41
  %59 = tail call noundef i32 @_ZN3pgo4Mesh22simplex_intersection3dEiPKdS2_S2_S2_PdS3_S3_S3_(i32 noundef 1, ptr noundef %.tr204239, ptr noundef %3, ptr noundef %.tr207241, ptr noundef %.tr208242, ptr noundef nonnull %.tr209243, ptr noundef nonnull %8, ptr noundef nonnull %.tr212245, ptr noundef nonnull %.tr213246)
  %.not200 = icmp eq i32 %59, 0
  br i1 %.not200, label %61, label %60

60:                                               ; preds = %58
  store double 0.000000e+00, ptr %.tr210244, align 8, !tbaa !5
  br label %127

61:                                               ; preds = %58
  %62 = tail call noundef i32 @_ZN3pgo4Mesh22simplex_intersection3dEiPKdS2_S2_S2_PdS3_S3_S3_(i32 noundef 1, ptr noundef %.tr204239, ptr noundef %.tr205240, ptr noundef %.tr207241, ptr noundef %.tr208242, ptr noundef nonnull %.tr209243, ptr noundef nonnull %.tr210244, ptr noundef nonnull %.tr212245, ptr noundef nonnull %.tr213246)
  %.not201 = icmp eq i32 %62, 0
  br i1 %.not201, label %64, label %63

63:                                               ; preds = %61
  store double 0.000000e+00, ptr %8, align 8, !tbaa !5
  br label %127

64:                                               ; preds = %61
  %65 = tail call noundef i32 @_ZN3pgo4Mesh22simplex_intersection3dEiPKdS2_S2_S2_PdS3_S3_S3_(i32 noundef 1, ptr noundef %.tr204239, ptr noundef %.tr205240, ptr noundef %3, ptr noundef %.tr208242, ptr noundef nonnull %.tr209243, ptr noundef nonnull %.tr210244, ptr noundef nonnull %8, ptr noundef nonnull %.tr213246)
  %.not202 = icmp eq i32 %65, 0
  br i1 %.not202, label %67, label %66

66:                                               ; preds = %64
  store double 0.000000e+00, ptr %.tr212245, align 8, !tbaa !5
  br label %127

67:                                               ; preds = %64
  %68 = tail call noundef i32 @_ZN3pgo4Mesh22simplex_intersection3dEiPKdS2_S2_S2_PdS3_S3_S3_(i32 noundef 1, ptr noundef %.tr204239, ptr noundef %.tr205240, ptr noundef %3, ptr noundef %.tr207241, ptr noundef nonnull %.tr209243, ptr noundef nonnull %.tr210244, ptr noundef nonnull %8, ptr noundef nonnull %.tr212245)
  %.not203 = icmp eq i32 %68, 0
  br i1 %.not203, label %127, label %69

69:                                               ; preds = %67
  store double 0.000000e+00, ptr %.tr213246, align 8, !tbaa !5
  br label %127

70:                                               ; preds = %.lr.ph
  %71 = tail call noundef double @_ZN3pgo4Mesh8orient3dEPKdS2_S2_S2_(ptr noundef %.tr205240, ptr noundef %3, ptr noundef %.tr207241, ptr noundef %.tr208242)
  store double %71, ptr %.tr209243, align 8, !tbaa !5
  %72 = tail call noundef double @_ZN3pgo4Mesh8orient3dEPKdS2_S2_S2_(ptr noundef %.tr204239, ptr noundef %3, ptr noundef %.tr207241, ptr noundef %.tr208242)
  %73 = fneg double %72
  store double %73, ptr %.tr210244, align 8, !tbaa !5
  %74 = load double, ptr %.tr209243, align 8, !tbaa !5
  %75 = tail call noundef zeroext i1 @_ZN3pgo4Mesh9same_signEdd(double noundef %74, double noundef %73)
  br i1 %75, label %76, label %127

76:                                               ; preds = %70
  %77 = tail call noundef double @_ZN3pgo4Mesh8orient3dEPKdS2_S2_S2_(ptr noundef %.tr204239, ptr noundef %.tr205240, ptr noundef %.tr207241, ptr noundef %.tr208242)
  store double %77, ptr %8, align 8, !tbaa !5
  %78 = tail call noundef double @_ZN3pgo4Mesh8orient3dEPKdS2_S2_S2_(ptr noundef %.tr204239, ptr noundef %.tr205240, ptr noundef %3, ptr noundef %.tr208242)
  %79 = fneg double %78
  store double %79, ptr %.tr212245, align 8, !tbaa !5
  %80 = load double, ptr %8, align 8, !tbaa !5
  %81 = tail call noundef zeroext i1 @_ZN3pgo4Mesh9same_signEdd(double noundef %80, double noundef %79)
  br i1 %81, label %82, label %127

82:                                               ; preds = %76
  %83 = tail call noundef double @_ZN3pgo4Mesh8orient3dEPKdS2_S2_S2_(ptr noundef %.tr204239, ptr noundef %.tr205240, ptr noundef %3, ptr noundef %.tr207241)
  store double %83, ptr %.tr213246, align 8, !tbaa !5
  %84 = load double, ptr %8, align 8, !tbaa !5
  %85 = tail call noundef zeroext i1 @_ZN3pgo4Mesh9same_signEdd(double noundef %84, double noundef %83)
  br i1 %85, label %86, label %127

86:                                               ; preds = %82
  %87 = load double, ptr %.tr212245, align 8, !tbaa !5
  %88 = load double, ptr %.tr213246, align 8, !tbaa !5
  %89 = tail call noundef zeroext i1 @_ZN3pgo4Mesh9same_signEdd(double noundef %87, double noundef %88)
  br i1 %89, label %90, label %127

90:                                               ; preds = %86
  %91 = load double, ptr %.tr209243, align 8, !tbaa !5
  %92 = load double, ptr %.tr210244, align 8, !tbaa !5
  %93 = fadd double %91, %92
  %94 = load double, ptr %8, align 8, !tbaa !5
  %95 = load double, ptr %.tr212245, align 8, !tbaa !5
  %96 = fadd double %94, %95
  %97 = load double, ptr %.tr213246, align 8, !tbaa !5
  %98 = fadd double %96, %97
  %99 = fcmp une double %93, 0.000000e+00
  %100 = fcmp une double %98, 0.000000e+00
  %or.cond = select i1 %99, i1 %100, i1 false
  br i1 %or.cond, label %101, label %111

101:                                              ; preds = %90
  %102 = fdiv double %91, %93
  store double %102, ptr %.tr209243, align 8, !tbaa !5
  %103 = load double, ptr %.tr210244, align 8, !tbaa !5
  %104 = fdiv double %103, %93
  store double %104, ptr %.tr210244, align 8, !tbaa !5
  %105 = load double, ptr %8, align 8, !tbaa !5
  %106 = fdiv double %105, %98
  store double %106, ptr %8, align 8, !tbaa !5
  %107 = load double, ptr %.tr212245, align 8, !tbaa !5
  %108 = fdiv double %107, %98
  store double %108, ptr %.tr212245, align 8, !tbaa !5
  %109 = load double, ptr %.tr213246, align 8, !tbaa !5
  %110 = fdiv double %109, %98
  store double %110, ptr %.tr213246, align 8, !tbaa !5
  br label %127

111:                                              ; preds = %90
  %112 = tail call noundef i32 @_ZN3pgo4Mesh22simplex_intersection3dEiPKdS2_S2_S2_PdS3_S3_S3_(i32 noundef 1, ptr noundef %.tr205240, ptr noundef %3, ptr noundef %.tr207241, ptr noundef %.tr208242, ptr noundef nonnull %.tr210244, ptr noundef nonnull %8, ptr noundef nonnull %.tr212245, ptr noundef nonnull %.tr213246)
  %.not = icmp eq i32 %112, 0
  br i1 %.not, label %114, label %113

113:                                              ; preds = %111
  store double 0.000000e+00, ptr %.tr209243, align 8, !tbaa !5
  br label %127

114:                                              ; preds = %111
  %115 = tail call noundef i32 @_ZN3pgo4Mesh22simplex_intersection3dEiPKdS2_S2_S2_PdS3_S3_S3_(i32 noundef 1, ptr noundef %.tr204239, ptr noundef %3, ptr noundef %.tr207241, ptr noundef %.tr208242, ptr noundef nonnull %.tr209243, ptr noundef nonnull %8, ptr noundef nonnull %.tr212245, ptr noundef nonnull %.tr213246)
  %.not196 = icmp eq i32 %115, 0
  br i1 %.not196, label %117, label %116

116:                                              ; preds = %114
  store double 0.000000e+00, ptr %.tr210244, align 8, !tbaa !5
  br label %127

117:                                              ; preds = %114
  %118 = tail call noundef i32 @_ZN3pgo4Mesh22simplex_intersection3dEiPKdS2_S2_S2_PdS3_S3_S3_(i32 noundef 2, ptr noundef %.tr204239, ptr noundef %.tr205240, ptr noundef %.tr207241, ptr noundef %.tr208242, ptr noundef nonnull %.tr209243, ptr noundef nonnull %.tr210244, ptr noundef nonnull %.tr212245, ptr noundef nonnull %.tr213246)
  %.not197 = icmp eq i32 %118, 0
  br i1 %.not197, label %120, label %119

119:                                              ; preds = %117
  store double 0.000000e+00, ptr %8, align 8, !tbaa !5
  br label %127

120:                                              ; preds = %117
  %121 = tail call noundef i32 @_ZN3pgo4Mesh22simplex_intersection3dEiPKdS2_S2_S2_PdS3_S3_S3_(i32 noundef 2, ptr noundef %.tr204239, ptr noundef %.tr205240, ptr noundef %3, ptr noundef %.tr208242, ptr noundef nonnull %.tr209243, ptr noundef nonnull %.tr210244, ptr noundef nonnull %8, ptr noundef nonnull %.tr213246)
  %.not198 = icmp eq i32 %121, 0
  br i1 %.not198, label %123, label %122

122:                                              ; preds = %120
  store double 0.000000e+00, ptr %.tr212245, align 8, !tbaa !5
  br label %127

123:                                              ; preds = %120
  %124 = tail call noundef i32 @_ZN3pgo4Mesh22simplex_intersection3dEiPKdS2_S2_S2_PdS3_S3_S3_(i32 noundef 2, ptr noundef %.tr204239, ptr noundef %.tr205240, ptr noundef %3, ptr noundef %.tr207241, ptr noundef nonnull %.tr209243, ptr noundef nonnull %.tr210244, ptr noundef nonnull %8, ptr noundef nonnull %.tr212245)
  %.not199 = icmp eq i32 %124, 0
  br i1 %.not199, label %127, label %125

125:                                              ; preds = %123
  store double 0.000000e+00, ptr %.tr213246, align 8, !tbaa !5
  br label %127

tailrecurse:                                      ; preds = %.lr.ph, %.lr.ph
  %126 = sub nuw nsw i32 5, %.tr238
  br label %.lr.ph

default.unreachable:                              ; preds = %.lr.ph
  unreachable

127:                                              ; preds = %123, %86, %82, %76, %70, %67, %37, %33, %29, %25, %20, %14, %125, %122, %119, %116, %113, %101, %69, %66, %63, %60, %50
  %.0 = phi i32 [ 1, %101 ], [ 1, %113 ], [ 1, %116 ], [ 1, %119 ], [ 1, %122 ], [ 1, %125 ], [ 1, %50 ], [ 1, %60 ], [ 1, %63 ], [ 1, %66 ], [ 1, %69 ], [ 0, %14 ], [ 0, %20 ], [ 0, %25 ], [ 0, %29 ], [ 0, %33 ], [ 0, %37 ], [ 0, %67 ], [ 0, %70 ], [ 0, %76 ], [ 0, %82 ], [ 0, %86 ], [ 0, %123 ]
  ret i32 %.0
}

declare noundef double @_ZN3pgo4Mesh8orient3dEPKdS2_S2_S2_(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

attributes #0 = { noreturn 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 #1 = { 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 #2 = { 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 = { "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 = { noreturn 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 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}


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