; LLVM IR from bohanwang/libpgo :: src/core/mesh/predicates.ll (ZN3pgo4Mesh16intersectTetAABBEPKdS2_S2_S2_S2_S2_)

; 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 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [79 x i8], align 1
@__PRETTY_FUNCTION__._ZN3pgo4Mesh16intersectTetAABBEPKdS2_S2_S2_S2_S2_ = external hidden unnamed_addr constant [129 x i8], align 1

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN3pgo4Mesh10pointInTetEPKdS2_S2_S2_S2_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef zeroext i1 @_ZN12_GLOBAL__N_118isValidBoundingBoxEPKdS1_(ptr noundef, ptr noundef) #2

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef zeroext i1 @_ZN12_GLOBAL__N_113inBoundingBoxEPKdS1_S1_(ptr noundef, ptr noundef, ptr noundef) #4

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

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

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZN3pgo4Mesh12_GLOBAL__N_124intersectSegAABBAllFacesEPKdS3_PA3_S2_(ptr noundef, ptr noundef, ptr noundef) #1

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZN3pgo4Mesh12_GLOBAL__N_124intersectTriAABBAllEdgesEPKdS3_S3_PA3_S2_(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN3pgo4Mesh16intersectTetAABBEPKdS2_S2_S2_S2_S2_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5) #1 {
  %7 = alloca i1, align 1
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca double, align 8
  %19 = alloca double, align 8
  %20 = alloca i32, align 4
  %21 = alloca [8 x [3 x double]], align 16
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store ptr %2, ptr %10, align 8, !tbaa !5
  store ptr %3, ptr %11, align 8, !tbaa !5
  store ptr %4, ptr %12, align 8, !tbaa !5
  store ptr %5, ptr %13, align 8, !tbaa !5
  %22 = load ptr, ptr %12, align 8, !tbaa !5
  %23 = load ptr, ptr %13, align 8, !tbaa !5
  %24 = call noundef zeroext i1 @_ZN12_GLOBAL__N_118isValidBoundingBoxEPKdS1_(ptr noundef %22, ptr noundef %23)
  br i1 %24, label %25, label %26

25:                                               ; preds = %6
  br label %28

26:                                               ; preds = %6
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 788, ptr noundef @__PRETTY_FUNCTION__._ZN3pgo4Mesh16intersectTetAABBEPKdS2_S2_S2_S2_S2_) #5
  unreachable

27:                                               ; No predecessors!
  br label %28

28:                                               ; preds = %27, %25
  %29 = load ptr, ptr %8, align 8, !tbaa !5
  %30 = load ptr, ptr %12, align 8, !tbaa !5
  %31 = load ptr, ptr %13, align 8, !tbaa !5
  %32 = call noundef zeroext i1 @_ZN12_GLOBAL__N_113inBoundingBoxEPKdS1_S1_(ptr noundef %29, ptr noundef %30, ptr noundef %31)
  br i1 %32, label %33, label %34

33:                                               ; preds = %28
  store i1 true, ptr %7, align 1
  br label %324

34:                                               ; preds = %28
  %35 = load ptr, ptr %9, align 8, !tbaa !5
  %36 = load ptr, ptr %12, align 8, !tbaa !5
  %37 = load ptr, ptr %13, align 8, !tbaa !5
  %38 = call noundef zeroext i1 @_ZN12_GLOBAL__N_113inBoundingBoxEPKdS1_S1_(ptr noundef %35, ptr noundef %36, ptr noundef %37)
  br i1 %38, label %39, label %40

39:                                               ; preds = %34
  store i1 true, ptr %7, align 1
  br label %324

40:                                               ; preds = %34
  %41 = load ptr, ptr %10, align 8, !tbaa !5
  %42 = load ptr, ptr %12, align 8, !tbaa !5
  %43 = load ptr, ptr %13, align 8, !tbaa !5
  %44 = call noundef zeroext i1 @_ZN12_GLOBAL__N_113inBoundingBoxEPKdS1_S1_(ptr noundef %41, ptr noundef %42, ptr noundef %43)
  br i1 %44, label %45, label %46

45:                                               ; preds = %40
  store i1 true, ptr %7, align 1
  br label %324

46:                                               ; preds = %40
  %47 = load ptr, ptr %11, align 8, !tbaa !5
  %48 = load ptr, ptr %12, align 8, !tbaa !5
  %49 = load ptr, ptr %13, align 8, !tbaa !5
  %50 = call noundef zeroext i1 @_ZN12_GLOBAL__N_113inBoundingBoxEPKdS1_S1_(ptr noundef %47, ptr noundef %48, ptr noundef %49)
  br i1 %50, label %51, label %52

51:                                               ; preds = %46
  store i1 true, ptr %7, align 1
  br label %324

52:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %53 = load ptr, ptr %8, align 8, !tbaa !5
  %54 = getelementptr inbounds double, ptr %53, i64 0
  %55 = load ptr, ptr %9, align 8, !tbaa !5
  %56 = getelementptr inbounds double, ptr %55, i64 0
  %57 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %54, ptr noundef nonnull align 8 dereferenceable(8) %56)
  %58 = load ptr, ptr %10, align 8, !tbaa !5
  %59 = getelementptr inbounds double, ptr %58, i64 0
  %60 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %57, ptr noundef nonnull align 8 dereferenceable(8) %59)
  %61 = load ptr, ptr %11, align 8, !tbaa !5
  %62 = getelementptr inbounds double, ptr %61, i64 0
  %63 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %60, ptr noundef nonnull align 8 dereferenceable(8) %62)
  %64 = load double, ptr %63, align 8, !tbaa !9
  store double %64, ptr %14, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %65 = load ptr, ptr %8, align 8, !tbaa !5
  %66 = getelementptr inbounds double, ptr %65, i64 1
  %67 = load ptr, ptr %9, align 8, !tbaa !5
  %68 = getelementptr inbounds double, ptr %67, i64 1
  %69 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %66, ptr noundef nonnull align 8 dereferenceable(8) %68)
  %70 = load ptr, ptr %10, align 8, !tbaa !5
  %71 = getelementptr inbounds double, ptr %70, i64 1
  %72 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %69, ptr noundef nonnull align 8 dereferenceable(8) %71)
  %73 = load ptr, ptr %11, align 8, !tbaa !5
  %74 = getelementptr inbounds double, ptr %73, i64 1
  %75 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %72, ptr noundef nonnull align 8 dereferenceable(8) %74)
  %76 = load double, ptr %75, align 8, !tbaa !9
  store double %76, ptr %15, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  %77 = load ptr, ptr %8, align 8, !tbaa !5
  %78 = getelementptr inbounds double, ptr %77, i64 2
  %79 = load ptr, ptr %9, align 8, !tbaa !5
  %80 = getelementptr inbounds double, ptr %79, i64 2
  %81 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %78, ptr noundef nonnull align 8 dereferenceable(8) %80)
  %82 = load ptr, ptr %10, align 8, !tbaa !5
  %83 = getelementptr inbounds double, ptr %82, i64 2
  %84 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %81, ptr noundef nonnull align 8 dereferenceable(8) %83)
  %85 = load ptr, ptr %11, align 8, !tbaa !5
  %86 = getelementptr inbounds double, ptr %85, i64 2
  %87 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %84, ptr noundef nonnull align 8 dereferenceable(8) %86)
  %88 = load double, ptr %87, align 8, !tbaa !9
  store double %88, ptr %16, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %89 = load ptr, ptr %8, align 8, !tbaa !5
  %90 = getelementptr inbounds double, ptr %89, i64 0
  %91 = load ptr, ptr %9, align 8, !tbaa !5
  %92 = getelementptr inbounds double, ptr %91, i64 0
  %93 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %90, ptr noundef nonnull align 8 dereferenceable(8) %92)
  %94 = load ptr, ptr %10, align 8, !tbaa !5
  %95 = getelementptr inbounds double, ptr %94, i64 0
  %96 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %93, ptr noundef nonnull align 8 dereferenceable(8) %95)
  %97 = load ptr, ptr %11, align 8, !tbaa !5
  %98 = getelementptr inbounds double, ptr %97, i64 0
  %99 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %96, ptr noundef nonnull align 8 dereferenceable(8) %98)
  %100 = load double, ptr %99, align 8, !tbaa !9
  store double %100, ptr %17, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  %101 = load ptr, ptr %8, align 8, !tbaa !5
  %102 = getelementptr inbounds double, ptr %101, i64 1
  %103 = load ptr, ptr %9, align 8, !tbaa !5
  %104 = getelementptr inbounds double, ptr %103, i64 1
  %105 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %102, ptr noundef nonnull align 8 dereferenceable(8) %104)
  %106 = load ptr, ptr %10, align 8, !tbaa !5
  %107 = getelementptr inbounds double, ptr %106, i64 1
  %108 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %105, ptr noundef nonnull align 8 dereferenceable(8) %107)
  %109 = load ptr, ptr %11, align 8, !tbaa !5
  %110 = getelementptr inbounds double, ptr %109, i64 1
  %111 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %108, ptr noundef nonnull align 8 dereferenceable(8) %110)
  %112 = load double, ptr %111, align 8, !tbaa !9
  store double %112, ptr %18, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  %113 = load ptr, ptr %8, align 8, !tbaa !5
  %114 = getelementptr inbounds double, ptr %113, i64 2
  %115 = load ptr, ptr %9, align 8, !tbaa !5
  %116 = getelementptr inbounds double, ptr %115, i64 2
  %117 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %114, ptr noundef nonnull align 8 dereferenceable(8) %116)
  %118 = load ptr, ptr %10, align 8, !tbaa !5
  %119 = getelementptr inbounds double, ptr %118, i64 2
  %120 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %117, ptr noundef nonnull align 8 dereferenceable(8) %119)
  %121 = load ptr, ptr %11, align 8, !tbaa !5
  %122 = getelementptr inbounds double, ptr %121, i64 2
  %123 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %120, ptr noundef nonnull align 8 dereferenceable(8) %122)
  %124 = load double, ptr %123, align 8, !tbaa !9
  store double %124, ptr %19, align 8, !tbaa !9
  %125 = load ptr, ptr %13, align 8, !tbaa !5
  %126 = getelementptr inbounds double, ptr %125, i64 0
  %127 = load double, ptr %126, align 8, !tbaa !9
  %128 = load double, ptr %14, align 8, !tbaa !9
  %129 = fcmp olt double %127, %128
  br i1 %129, label %160, label %130

130:                                              ; preds = %52
  %131 = load double, ptr %17, align 8, !tbaa !9
  %132 = load ptr, ptr %12, align 8, !tbaa !5
  %133 = getelementptr inbounds double, ptr %132, i64 0
  %134 = load double, ptr %133, align 8, !tbaa !9
  %135 = fcmp olt double %131, %134
  br i1 %135, label %160, label %136

136:                                              ; preds = %130
  %137 = load ptr, ptr %13, align 8, !tbaa !5
  %138 = getelementptr inbounds double, ptr %137, i64 1
  %139 = load double, ptr %138, align 8, !tbaa !9
  %140 = load double, ptr %15, align 8, !tbaa !9
  %141 = fcmp olt double %139, %140
  br i1 %141, label %160, label %142

142:                                              ; preds = %136
  %143 = load double, ptr %18, align 8, !tbaa !9
  %144 = load ptr, ptr %12, align 8, !tbaa !5
  %145 = getelementptr inbounds double, ptr %144, i64 1
  %146 = load double, ptr %145, align 8, !tbaa !9
  %147 = fcmp olt double %143, %146
  br i1 %147, label %160, label %148

148:                                              ; preds = %142
  %149 = load ptr, ptr %13, align 8, !tbaa !5
  %150 = getelementptr inbounds double, ptr %149, i64 2
  %151 = load double, ptr %150, align 8, !tbaa !9
  %152 = load double, ptr %16, align 8, !tbaa !9
  %153 = fcmp olt double %151, %152
  br i1 %153, label %160, label %154

154:                                              ; preds = %148
  %155 = load double, ptr %19, align 8, !tbaa !9
  %156 = load ptr, ptr %12, align 8, !tbaa !5
  %157 = getelementptr inbounds double, ptr %156, i64 2
  %158 = load double, ptr %157, align 8, !tbaa !9
  %159 = fcmp olt double %155, %158
  br i1 %159, label %160, label %161

160:                                              ; preds = %154, %148, %142, %136, %130, %52
  store i1 false, ptr %7, align 1
  store i32 1, ptr %20, align 4
  br label %323

161:                                              ; preds = %154
  call void @llvm.lifetime.start.p0(i64 192, ptr %21) #6
  %162 = load ptr, ptr %12, align 8, !tbaa !5
  %163 = getelementptr inbounds double, ptr %162, i64 0
  %164 = load double, ptr %163, align 8, !tbaa !9
  store double %164, ptr %21, align 8, !tbaa !9
  %165 = getelementptr inbounds double, ptr %21, i64 1
  %166 = load ptr, ptr %12, align 8, !tbaa !5
  %167 = getelementptr inbounds double, ptr %166, i64 1
  %168 = load double, ptr %167, align 8, !tbaa !9
  store double %168, ptr %165, align 8, !tbaa !9
  %169 = getelementptr inbounds double, ptr %21, i64 2
  %170 = load ptr, ptr %12, align 8, !tbaa !5
  %171 = getelementptr inbounds double, ptr %170, i64 2
  %172 = load double, ptr %171, align 8, !tbaa !9
  store double %172, ptr %169, align 8, !tbaa !9
  %173 = getelementptr inbounds [3 x double], ptr %21, i64 1
  %174 = load ptr, ptr %13, align 8, !tbaa !5
  %175 = getelementptr inbounds double, ptr %174, i64 0
  %176 = load double, ptr %175, align 8, !tbaa !9
  store double %176, ptr %173, align 8, !tbaa !9
  %177 = getelementptr inbounds double, ptr %173, i64 1
  %178 = load ptr, ptr %12, align 8, !tbaa !5
  %179 = getelementptr inbounds double, ptr %178, i64 1
  %180 = load double, ptr %179, align 8, !tbaa !9
  store double %180, ptr %177, align 8, !tbaa !9
  %181 = getelementptr inbounds double, ptr %173, i64 2
  %182 = load ptr, ptr %12, align 8, !tbaa !5
  %183 = getelementptr inbounds double, ptr %182, i64 2
  %184 = load double, ptr %183, align 8, !tbaa !9
  store double %184, ptr %181, align 8, !tbaa !9
  %185 = getelementptr inbounds [3 x double], ptr %21, i64 2
  %186 = load ptr, ptr %13, align 8, !tbaa !5
  %187 = getelementptr inbounds double, ptr %186, i64 0
  %188 = load double, ptr %187, align 8, !tbaa !9
  store double %188, ptr %185, align 8, !tbaa !9
  %189 = getelementptr inbounds double, ptr %185, i64 1
  %190 = load ptr, ptr %13, align 8, !tbaa !5
  %191 = getelementptr inbounds double, ptr %190, i64 1
  %192 = load double, ptr %191, align 8, !tbaa !9
  store double %192, ptr %189, align 8, !tbaa !9
  %193 = getelementptr inbounds double, ptr %185, i64 2
  %194 = load ptr, ptr %12, align 8, !tbaa !5
  %195 = getelementptr inbounds double, ptr %194, i64 2
  %196 = load double, ptr %195, align 8, !tbaa !9
  store double %196, ptr %193, align 8, !tbaa !9
  %197 = getelementptr inbounds [3 x double], ptr %21, i64 3
  %198 = load ptr, ptr %12, align 8, !tbaa !5
  %199 = getelementptr inbounds double, ptr %198, i64 0
  %200 = load double, ptr %199, align 8, !tbaa !9
  store double %200, ptr %197, align 8, !tbaa !9
  %201 = getelementptr inbounds double, ptr %197, i64 1
  %202 = load ptr, ptr %13, align 8, !tbaa !5
  %203 = getelementptr inbounds double, ptr %202, i64 1
  %204 = load double, ptr %203, align 8, !tbaa !9
  store double %204, ptr %201, align 8, !tbaa !9
  %205 = getelementptr inbounds double, ptr %197, i64 2
  %206 = load ptr, ptr %12, align 8, !tbaa !5
  %207 = getelementptr inbounds double, ptr %206, i64 2
  %208 = load double, ptr %207, align 8, !tbaa !9
  store double %208, ptr %205, align 8, !tbaa !9
  %209 = getelementptr inbounds [3 x double], ptr %21, i64 4
  %210 = load ptr, ptr %12, align 8, !tbaa !5
  %211 = getelementptr inbounds double, ptr %210, i64 0
  %212 = load double, ptr %211, align 8, !tbaa !9
  store double %212, ptr %209, align 8, !tbaa !9
  %213 = getelementptr inbounds double, ptr %209, i64 1
  %214 = load ptr, ptr %12, align 8, !tbaa !5
  %215 = getelementptr inbounds double, ptr %214, i64 1
  %216 = load double, ptr %215, align 8, !tbaa !9
  store double %216, ptr %213, align 8, !tbaa !9
  %217 = getelementptr inbounds double, ptr %209, i64 2
  %218 = load ptr, ptr %13, align 8, !tbaa !5
  %219 = getelementptr inbounds double, ptr %218, i64 2
  %220 = load double, ptr %219, align 8, !tbaa !9
  store double %220, ptr %217, align 8, !tbaa !9
  %221 = getelementptr inbounds [3 x double], ptr %21, i64 5
  %222 = load ptr, ptr %13, align 8, !tbaa !5
  %223 = getelementptr inbounds double, ptr %222, i64 0
  %224 = load double, ptr %223, align 8, !tbaa !9
  store double %224, ptr %221, align 8, !tbaa !9
  %225 = getelementptr inbounds double, ptr %221, i64 1
  %226 = load ptr, ptr %12, align 8, !tbaa !5
  %227 = getelementptr inbounds double, ptr %226, i64 1
  %228 = load double, ptr %227, align 8, !tbaa !9
  store double %228, ptr %225, align 8, !tbaa !9
  %229 = getelementptr inbounds double, ptr %221, i64 2
  %230 = load ptr, ptr %13, align 8, !tbaa !5
  %231 = getelementptr inbounds double, ptr %230, i64 2
  %232 = load double, ptr %231, align 8, !tbaa !9
  store double %232, ptr %229, align 8, !tbaa !9
  %233 = getelementptr inbounds [3 x double], ptr %21, i64 6
  %234 = load ptr, ptr %13, align 8, !tbaa !5
  %235 = getelementptr inbounds double, ptr %234, i64 0
  %236 = load double, ptr %235, align 8, !tbaa !9
  store double %236, ptr %233, align 8, !tbaa !9
  %237 = getelementptr inbounds double, ptr %233, i64 1
  %238 = load ptr, ptr %13, align 8, !tbaa !5
  %239 = getelementptr inbounds double, ptr %238, i64 1
  %240 = load double, ptr %239, align 8, !tbaa !9
  store double %240, ptr %237, align 8, !tbaa !9
  %241 = getelementptr inbounds double, ptr %233, i64 2
  %242 = load ptr, ptr %13, align 8, !tbaa !5
  %243 = getelementptr inbounds double, ptr %242, i64 2
  %244 = load double, ptr %243, align 8, !tbaa !9
  store double %244, ptr %241, align 8, !tbaa !9
  %245 = getelementptr inbounds [3 x double], ptr %21, i64 7
  %246 = load ptr, ptr %12, align 8, !tbaa !5
  %247 = getelementptr inbounds double, ptr %246, i64 0
  %248 = load double, ptr %247, align 8, !tbaa !9
  store double %248, ptr %245, align 8, !tbaa !9
  %249 = getelementptr inbounds double, ptr %245, i64 1
  %250 = load ptr, ptr %13, align 8, !tbaa !5
  %251 = getelementptr inbounds double, ptr %250, i64 1
  %252 = load double, ptr %251, align 8, !tbaa !9
  store double %252, ptr %249, align 8, !tbaa !9
  %253 = getelementptr inbounds double, ptr %245, i64 2
  %254 = load ptr, ptr %13, align 8, !tbaa !5
  %255 = getelementptr inbounds double, ptr %254, i64 2
  %256 = load double, ptr %255, align 8, !tbaa !9
  store double %256, ptr %253, align 8, !tbaa !9
  %257 = getelementptr inbounds [8 x [3 x double]], ptr %21, i64 0, i64 0
  %258 = getelementptr inbounds [3 x double], ptr %257, i64 0, i64 0
  %259 = load ptr, ptr %8, align 8, !tbaa !5
  %260 = load ptr, ptr %9, align 8, !tbaa !5
  %261 = load ptr, ptr %10, align 8, !tbaa !5
  %262 = load ptr, ptr %11, align 8, !tbaa !5
  %263 = call noundef zeroext i1 @_ZN3pgo4Mesh10pointInTetEPKdS2_S2_S2_S2_(ptr noundef %258, ptr noundef %259, ptr noundef %260, ptr noundef %261, ptr noundef %262)
  br i1 %263, label %264, label %265

264:                                              ; preds = %161
  store i1 true, ptr %7, align 1
  store i32 1, ptr %20, align 4
  br label %322

265:                                              ; preds = %161
  %266 = load ptr, ptr %8, align 8, !tbaa !5
  %267 = load ptr, ptr %9, align 8, !tbaa !5
  %268 = getelementptr inbounds [8 x [3 x double]], ptr %21, i64 0, i64 0
  %269 = call noundef zeroext i1 @_ZN3pgo4Mesh12_GLOBAL__N_124intersectSegAABBAllFacesEPKdS3_PA3_S2_(ptr noundef %266, ptr noundef %267, ptr noundef %268)
  br i1 %269, label %295, label %270

270:                                              ; preds = %265
  %271 = load ptr, ptr %8, align 8, !tbaa !5
  %272 = load ptr, ptr %10, align 8, !tbaa !5
  %273 = getelementptr inbounds [8 x [3 x double]], ptr %21, i64 0, i64 0
  %274 = call noundef zeroext i1 @_ZN3pgo4Mesh12_GLOBAL__N_124intersectSegAABBAllFacesEPKdS3_PA3_S2_(ptr noundef %271, ptr noundef %272, ptr noundef %273)
  br i1 %274, label %295, label %275

275:                                              ; preds = %270
  %276 = load ptr, ptr %8, align 8, !tbaa !5
  %277 = load ptr, ptr %11, align 8, !tbaa !5
  %278 = getelementptr inbounds [8 x [3 x double]], ptr %21, i64 0, i64 0
  %279 = call noundef zeroext i1 @_ZN3pgo4Mesh12_GLOBAL__N_124intersectSegAABBAllFacesEPKdS3_PA3_S2_(ptr noundef %276, ptr noundef %277, ptr noundef %278)
  br i1 %279, label %295, label %280

280:                                              ; preds = %275
  %281 = load ptr, ptr %9, align 8, !tbaa !5
  %282 = load ptr, ptr %10, align 8, !tbaa !5
  %283 = getelementptr inbounds [8 x [3 x double]], ptr %21, i64 0, i64 0
  %284 = call noundef zeroext i1 @_ZN3pgo4Mesh12_GLOBAL__N_124intersectSegAABBAllFacesEPKdS3_PA3_S2_(ptr noundef %281, ptr noundef %282, ptr noundef %283)
  br i1 %284, label %295, label %285

285:                                              ; preds = %280
  %286 = load ptr, ptr %9, align 8, !tbaa !5
  %287 = load ptr, ptr %11, align 8, !tbaa !5
  %288 = getelementptr inbounds [8 x [3 x double]], ptr %21, i64 0, i64 0
  %289 = call noundef zeroext i1 @_ZN3pgo4Mesh12_GLOBAL__N_124intersectSegAABBAllFacesEPKdS3_PA3_S2_(ptr noundef %286, ptr noundef %287, ptr noundef %288)
  br i1 %289, label %295, label %290

290:                                              ; preds = %285
  %291 = load ptr, ptr %10, align 8, !tbaa !5
  %292 = load ptr, ptr %11, align 8, !tbaa !5
  %293 = getelementptr inbounds [8 x [3 x double]], ptr %21, i64 0, i64 0
  %294 = call noundef zeroext i1 @_ZN3pgo4Mesh12_GLOBAL__N_124intersectSegAABBAllFacesEPKdS3_PA3_S2_(ptr noundef %291, ptr noundef %292, ptr noundef %293)
  br i1 %294, label %295, label %296

295:                                              ; preds = %290, %285, %280, %275, %270, %265
  store i1 true, ptr %7, align 1
  store i32 1, ptr %20, align 4
  br label %322

296:                                              ; preds = %290
  %297 = load ptr, ptr %8, align 8, !tbaa !5
  %298 = load ptr, ptr %9, align 8, !tbaa !5
  %299 = load ptr, ptr %10, align 8, !tbaa !5
  %300 = getelementptr inbounds [8 x [3 x double]], ptr %21, i64 0, i64 0
  %301 = call noundef zeroext i1 @_ZN3pgo4Mesh12_GLOBAL__N_124intersectTriAABBAllEdgesEPKdS3_S3_PA3_S2_(ptr noundef %297, ptr noundef %298, ptr noundef %299, ptr noundef %300)
  br i1 %301, label %320, label %302

302:                                              ; preds = %296
  %303 = load ptr, ptr %8, align 8, !tbaa !5
  %304 = load ptr, ptr %9, align 8, !tbaa !5
  %305 = load ptr, ptr %11, align 8, !tbaa !5
  %306 = getelementptr inbounds [8 x [3 x double]], ptr %21, i64 0, i64 0
  %307 = call noundef zeroext i1 @_ZN3pgo4Mesh12_GLOBAL__N_124intersectTriAABBAllEdgesEPKdS3_S3_PA3_S2_(ptr noundef %303, ptr noundef %304, ptr noundef %305, ptr noundef %306)
  br i1 %307, label %320, label %308

308:                                              ; preds = %302
  %309 = load ptr, ptr %8, align 8, !tbaa !5
  %310 = load ptr, ptr %10, align 8, !tbaa !5
  %311 = load ptr, ptr %11, align 8, !tbaa !5
  %312 = getelementptr inbounds [8 x [3 x double]], ptr %21, i64 0, i64 0
  %313 = call noundef zeroext i1 @_ZN3pgo4Mesh12_GLOBAL__N_124intersectTriAABBAllEdgesEPKdS3_S3_PA3_S2_(ptr noundef %309, ptr noundef %310, ptr noundef %311, ptr noundef %312)
  br i1 %313, label %320, label %314

314:                                              ; preds = %308
  %315 = load ptr, ptr %9, align 8, !tbaa !5
  %316 = load ptr, ptr %10, align 8, !tbaa !5
  %317 = load ptr, ptr %11, align 8, !tbaa !5
  %318 = getelementptr inbounds [8 x [3 x double]], ptr %21, i64 0, i64 0
  %319 = call noundef zeroext i1 @_ZN3pgo4Mesh12_GLOBAL__N_124intersectTriAABBAllEdgesEPKdS3_S3_PA3_S2_(ptr noundef %315, ptr noundef %316, ptr noundef %317, ptr noundef %318)
  br i1 %319, label %320, label %321

320:                                              ; preds = %314, %308, %302, %296
  store i1 true, ptr %7, align 1
  store i32 1, ptr %20, align 4
  br label %322

321:                                              ; preds = %314
  store i1 false, ptr %7, align 1
  store i32 1, ptr %20, align 4
  br label %322

322:                                              ; preds = %321, %320, %295, %264
  call void @llvm.lifetime.end.p0(i64 192, ptr %21) #6
  br label %323

323:                                              ; preds = %322, %160
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, 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
  br label %324

324:                                              ; preds = %323, %51, %45, %39, %33
  %325 = load i1, ptr %7, align 1
  ret i1 %325
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 = { 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 = { 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 #4 = { 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 #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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"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 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [79 x i8], align 1
@__PRETTY_FUNCTION__._ZN3pgo4Mesh16intersectTetAABBEPKdS2_S2_S2_S2_S2_ = external hidden unnamed_addr constant [129 x i8], align 1

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN3pgo4Mesh10pointInTetEPKdS2_S2_S2_S2_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef zeroext i1 @_ZN12_GLOBAL__N_118isValidBoundingBoxEPKdS1_(ptr noundef, ptr noundef) local_unnamed_addr #2

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef zeroext i1 @_ZN12_GLOBAL__N_113inBoundingBoxEPKdS1_S1_(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

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

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

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZN3pgo4Mesh12_GLOBAL__N_124intersectSegAABBAllFacesEPKdS3_PA3_S2_(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZN3pgo4Mesh12_GLOBAL__N_124intersectTriAABBAllEdgesEPKdS3_S3_PA3_S2_(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN3pgo4Mesh16intersectTetAABBEPKdS2_S2_S2_S2_S2_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5) local_unnamed_addr #1 {
  %7 = alloca [8 x [3 x double]], align 16
  %8 = tail call noundef zeroext i1 @_ZN12_GLOBAL__N_118isValidBoundingBoxEPKdS1_(ptr noundef %4, ptr noundef %5)
  br i1 %8, label %10, label %9

9:                                                ; preds = %6
  tail call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 788, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN3pgo4Mesh16intersectTetAABBEPKdS2_S2_S2_S2_S2_) #5
  unreachable

10:                                               ; preds = %6
  %11 = tail call noundef zeroext i1 @_ZN12_GLOBAL__N_113inBoundingBoxEPKdS1_S1_(ptr noundef %0, ptr noundef %4, ptr noundef %5)
  br i1 %11, label %118, label %12

12:                                               ; preds = %10
  %13 = tail call noundef zeroext i1 @_ZN12_GLOBAL__N_113inBoundingBoxEPKdS1_S1_(ptr noundef %1, ptr noundef %4, ptr noundef %5)
  br i1 %13, label %118, label %14

14:                                               ; preds = %12
  %15 = tail call noundef zeroext i1 @_ZN12_GLOBAL__N_113inBoundingBoxEPKdS1_S1_(ptr noundef %2, ptr noundef %4, ptr noundef %5)
  br i1 %15, label %118, label %16

16:                                               ; preds = %14
  %17 = tail call noundef zeroext i1 @_ZN12_GLOBAL__N_113inBoundingBoxEPKdS1_S1_(ptr noundef %3, ptr noundef %4, ptr noundef %5)
  br i1 %17, label %118, label %18

18:                                               ; preds = %16
  %19 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(8) %1)
  %20 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) %2)
  %21 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull align 8 dereferenceable(8) %3)
  %22 = load double, ptr %21, align 8, !tbaa !5
  %23 = getelementptr inbounds i8, ptr %0, i64 8
  %24 = getelementptr inbounds i8, ptr %1, i64 8
  %25 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef nonnull align 8 dereferenceable(8) %24)
  %26 = getelementptr inbounds i8, ptr %2, i64 8
  %27 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %25, ptr noundef nonnull align 8 dereferenceable(8) %26)
  %28 = getelementptr inbounds i8, ptr %3, i64 8
  %29 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %27, ptr noundef nonnull align 8 dereferenceable(8) %28)
  %30 = load double, ptr %29, align 8, !tbaa !5
  %31 = getelementptr inbounds i8, ptr %0, i64 16
  %32 = getelementptr inbounds i8, ptr %1, i64 16
  %33 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %31, ptr noundef nonnull align 8 dereferenceable(8) %32)
  %34 = getelementptr inbounds i8, ptr %2, i64 16
  %35 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %33, ptr noundef nonnull align 8 dereferenceable(8) %34)
  %36 = getelementptr inbounds i8, ptr %3, i64 16
  %37 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %35, ptr noundef nonnull align 8 dereferenceable(8) %36)
  %38 = load double, ptr %37, align 8, !tbaa !5
  %39 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(8) %1)
  %40 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %39, ptr noundef nonnull align 8 dereferenceable(8) %2)
  %41 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %40, ptr noundef nonnull align 8 dereferenceable(8) %3)
  %42 = load double, ptr %41, align 8, !tbaa !5
  %43 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef nonnull align 8 dereferenceable(8) %24)
  %44 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %43, ptr noundef nonnull align 8 dereferenceable(8) %26)
  %45 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %44, ptr noundef nonnull align 8 dereferenceable(8) %28)
  %46 = load double, ptr %45, align 8, !tbaa !5
  %47 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %31, ptr noundef nonnull align 8 dereferenceable(8) %32)
  %48 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %47, ptr noundef nonnull align 8 dereferenceable(8) %34)
  %49 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %48, ptr noundef nonnull align 8 dereferenceable(8) %36)
  %50 = load double, ptr %49, align 8, !tbaa !5
  %51 = load double, ptr %5, align 8, !tbaa !5
  %52 = fcmp olt double %51, %22
  br i1 %52, label %118, label %53

53:                                               ; preds = %18
  %54 = load double, ptr %4, align 8, !tbaa !5
  %55 = fcmp olt double %42, %54
  br i1 %55, label %118, label %56

56:                                               ; preds = %53
  %57 = getelementptr inbounds i8, ptr %5, i64 8
  %58 = load double, ptr %57, align 8, !tbaa !5
  %59 = fcmp olt double %58, %30
  br i1 %59, label %118, label %60

60:                                               ; preds = %56
  %61 = getelementptr inbounds i8, ptr %4, i64 8
  %62 = load double, ptr %61, align 8, !tbaa !5
  %63 = fcmp olt double %46, %62
  br i1 %63, label %118, label %64

64:                                               ; preds = %60
  %65 = getelementptr inbounds i8, ptr %5, i64 16
  %66 = load double, ptr %65, align 8, !tbaa !5
  %67 = fcmp olt double %66, %38
  br i1 %67, label %118, label %68

68:                                               ; preds = %64
  %69 = getelementptr inbounds i8, ptr %4, i64 16
  %70 = load double, ptr %69, align 8, !tbaa !5
  %71 = fcmp olt double %50, %70
  br i1 %71, label %118, label %72

72:                                               ; preds = %68
  call void @llvm.lifetime.start.p0(i64 192, ptr nonnull %7) #6
  store double %54, ptr %7, align 16, !tbaa !5
  %73 = getelementptr inbounds i8, ptr %7, i64 8
  store double %62, ptr %73, align 8, !tbaa !5
  %74 = getelementptr inbounds i8, ptr %7, i64 16
  store double %70, ptr %74, align 16, !tbaa !5
  %75 = getelementptr inbounds i8, ptr %7, i64 24
  store double %51, ptr %75, align 8, !tbaa !5
  %76 = getelementptr inbounds i8, ptr %7, i64 32
  store double %62, ptr %76, align 16, !tbaa !5
  %77 = getelementptr inbounds i8, ptr %7, i64 40
  store double %70, ptr %77, align 8, !tbaa !5
  %78 = getelementptr inbounds i8, ptr %7, i64 48
  store double %51, ptr %78, align 16, !tbaa !5
  %79 = getelementptr inbounds i8, ptr %7, i64 56
  store double %58, ptr %79, align 8, !tbaa !5
  %80 = getelementptr inbounds i8, ptr %7, i64 64
  store double %70, ptr %80, align 16, !tbaa !5
  %81 = getelementptr inbounds i8, ptr %7, i64 72
  store double %54, ptr %81, align 8, !tbaa !5
  %82 = getelementptr inbounds i8, ptr %7, i64 80
  store double %58, ptr %82, align 16, !tbaa !5
  %83 = getelementptr inbounds i8, ptr %7, i64 88
  store double %70, ptr %83, align 8, !tbaa !5
  %84 = getelementptr inbounds i8, ptr %7, i64 96
  store double %54, ptr %84, align 16, !tbaa !5
  %85 = getelementptr inbounds i8, ptr %7, i64 104
  store double %62, ptr %85, align 8, !tbaa !5
  %86 = getelementptr inbounds i8, ptr %7, i64 112
  store double %66, ptr %86, align 16, !tbaa !5
  %87 = getelementptr inbounds i8, ptr %7, i64 120
  store double %51, ptr %87, align 8, !tbaa !5
  %88 = getelementptr inbounds i8, ptr %7, i64 128
  store double %62, ptr %88, align 16, !tbaa !5
  %89 = getelementptr inbounds i8, ptr %7, i64 136
  store double %66, ptr %89, align 8, !tbaa !5
  %90 = getelementptr inbounds i8, ptr %7, i64 144
  store double %51, ptr %90, align 16, !tbaa !5
  %91 = getelementptr inbounds i8, ptr %7, i64 152
  store double %58, ptr %91, align 8, !tbaa !5
  %92 = getelementptr inbounds i8, ptr %7, i64 160
  store double %66, ptr %92, align 16, !tbaa !5
  %93 = getelementptr inbounds i8, ptr %7, i64 168
  store double %54, ptr %93, align 8, !tbaa !5
  %94 = getelementptr inbounds i8, ptr %7, i64 176
  store double %58, ptr %94, align 16, !tbaa !5
  %95 = getelementptr inbounds i8, ptr %7, i64 184
  store double %66, ptr %95, align 8, !tbaa !5
  %96 = call noundef zeroext i1 @_ZN3pgo4Mesh10pointInTetEPKdS2_S2_S2_S2_(ptr noundef nonnull %7, ptr noundef nonnull %0, ptr noundef nonnull %1, ptr noundef nonnull %2, ptr noundef nonnull %3)
  br i1 %96, label %117, label %97

97:                                               ; preds = %72
  %98 = call noundef zeroext i1 @_ZN3pgo4Mesh12_GLOBAL__N_124intersectSegAABBAllFacesEPKdS3_PA3_S2_(ptr noundef nonnull %0, ptr noundef nonnull %1, ptr noundef nonnull %7)
  br i1 %98, label %117, label %99

99:                                               ; preds = %97
  %100 = call noundef zeroext i1 @_ZN3pgo4Mesh12_GLOBAL__N_124intersectSegAABBAllFacesEPKdS3_PA3_S2_(ptr noundef nonnull %0, ptr noundef nonnull %2, ptr noundef nonnull %7)
  br i1 %100, label %117, label %101

101:                                              ; preds = %99
  %102 = call noundef zeroext i1 @_ZN3pgo4Mesh12_GLOBAL__N_124intersectSegAABBAllFacesEPKdS3_PA3_S2_(ptr noundef nonnull %0, ptr noundef nonnull %3, ptr noundef nonnull %7)
  br i1 %102, label %117, label %103

103:                                              ; preds = %101
  %104 = call noundef zeroext i1 @_ZN3pgo4Mesh12_GLOBAL__N_124intersectSegAABBAllFacesEPKdS3_PA3_S2_(ptr noundef nonnull %1, ptr noundef nonnull %2, ptr noundef nonnull %7)
  br i1 %104, label %117, label %105

105:                                              ; preds = %103
  %106 = call noundef zeroext i1 @_ZN3pgo4Mesh12_GLOBAL__N_124intersectSegAABBAllFacesEPKdS3_PA3_S2_(ptr noundef nonnull %1, ptr noundef nonnull %3, ptr noundef nonnull %7)
  br i1 %106, label %117, label %107

107:                                              ; preds = %105
  %108 = call noundef zeroext i1 @_ZN3pgo4Mesh12_GLOBAL__N_124intersectSegAABBAllFacesEPKdS3_PA3_S2_(ptr noundef nonnull %2, ptr noundef nonnull %3, ptr noundef nonnull %7)
  br i1 %108, label %117, label %109

109:                                              ; preds = %107
  %110 = call noundef zeroext i1 @_ZN3pgo4Mesh12_GLOBAL__N_124intersectTriAABBAllEdgesEPKdS3_S3_PA3_S2_(ptr noundef nonnull %0, ptr noundef nonnull %1, ptr noundef nonnull %2, ptr noundef nonnull %7)
  br i1 %110, label %117, label %111

111:                                              ; preds = %109
  %112 = call noundef zeroext i1 @_ZN3pgo4Mesh12_GLOBAL__N_124intersectTriAABBAllEdgesEPKdS3_S3_PA3_S2_(ptr noundef nonnull %0, ptr noundef nonnull %1, ptr noundef nonnull %3, ptr noundef nonnull %7)
  br i1 %112, label %117, label %113

113:                                              ; preds = %111
  %114 = call noundef zeroext i1 @_ZN3pgo4Mesh12_GLOBAL__N_124intersectTriAABBAllEdgesEPKdS3_S3_PA3_S2_(ptr noundef nonnull %0, ptr noundef nonnull %2, ptr noundef nonnull %3, ptr noundef nonnull %7)
  br i1 %114, label %117, label %115

115:                                              ; preds = %113
  %116 = call noundef zeroext i1 @_ZN3pgo4Mesh12_GLOBAL__N_124intersectTriAABBAllEdgesEPKdS3_S3_PA3_S2_(ptr noundef nonnull %1, ptr noundef nonnull %2, ptr noundef nonnull %3, ptr noundef nonnull %7)
  br label %117

117:                                              ; preds = %115, %109, %111, %113, %97, %99, %101, %103, %105, %107, %72
  %.0 = phi i1 [ true, %72 ], [ true, %107 ], [ true, %105 ], [ true, %103 ], [ true, %101 ], [ true, %99 ], [ true, %97 ], [ true, %113 ], [ true, %111 ], [ true, %109 ], [ %116, %115 ]
  call void @llvm.lifetime.end.p0(i64 192, ptr nonnull %7) #6
  br label %118

118:                                              ; preds = %117, %68, %64, %60, %56, %53, %18, %16, %14, %12, %10
  %.2 = phi i1 [ true, %10 ], [ true, %12 ], [ true, %14 ], [ true, %16 ], [ %.0, %117 ], [ false, %68 ], [ false, %64 ], [ false, %60 ], [ false, %56 ], [ false, %53 ], [ false, %18 ]
  ret i1 %.2
}

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 = { 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 = { 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 #4 = { 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 #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 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass,TailCallElimPass