; LLVM IR from jrouwe/JoltPhysics :: Jolt/Geometry (Indexify)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.JPH::Array.0" = type { i64, i64, ptr }
%"struct.JPH::AssertLastParam" = type { i8 }
%"class.JPH::IndexedTriangle" = type { %"class.JPH::IndexedTriangleNoMaterial", i32, i32 }
%"class.JPH::IndexedTriangleNoMaterial" = type { [3 x i32] }
%"class.JPH::Triangle" = type { [3 x %"class.JPH::Float3"], i32, i32 }
%"class.JPH::Float3" = type { float, float, float }

@.str = external hidden unnamed_addr constant [58 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [79 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

; 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
define dso_local void @_ZN3JPH8IndexifyERKNS_5ArrayINS_8TriangleENS_12STLAllocatorIS1_EEEERNS0_INS_6Float3ENS2_IS7_EEEERNS0_INS_15IndexedTriangleENS2_ISB_EEEEf(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %2, float noundef %3) #1 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca float, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca %"class.JPH::Array.0", align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca %"class.JPH::Array.0", align 8
  %16 = alloca i32, align 4
  %17 = alloca %"class.JPH::Array.0", align 8
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca %"struct.JPH::AssertLastParam", align 1
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca %"class.JPH::IndexedTriangle", align 4
  %25 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store float %3, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  %26 = load ptr, ptr %5, align 8, !tbaa !5
  %27 = call noundef i64 @_ZNK3JPH5ArrayINS_8TriangleENS_12STLAllocatorIS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %26)
  %28 = trunc i64 %27 to i32
  store i32 %28, ptr %9, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  %29 = load i32, ptr %9, align 4, !tbaa !11
  %30 = mul i32 %29, 3
  store i32 %30, ptr %10, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 24, ptr %11) #6
  call void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #6
  %31 = load i32, ptr %10, align 4, !tbaa !11
  %32 = zext i32 %31 to i64
  invoke void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %32)
          to label %33 unwind label %39

33:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  store i32 0, ptr %14, align 4, !tbaa !11
  br label %34

34:                                               ; preds = %49, %33
  %35 = load i32, ptr %14, align 4, !tbaa !11
  %36 = load i32, ptr %10, align 4, !tbaa !11
  %37 = icmp ult i32 %35, %36
  br i1 %37, label %43, label %38

38:                                               ; preds = %34
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  br label %56

39:                                               ; preds = %4
  %40 = landingpad { ptr, i32 }
          cleanup
  %41 = extractvalue { ptr, i32 } %40, 0
  store ptr %41, ptr %12, align 8
  %42 = extractvalue { ptr, i32 } %40, 1
  store i32 %42, ptr %13, align 4
  br label %291

43:                                               ; preds = %34
  %44 = load i32, ptr %14, align 4, !tbaa !11
  %45 = load i32, ptr %14, align 4, !tbaa !11
  %46 = zext i32 %45 to i64
  %47 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %46)
          to label %48 unwind label %52

48:                                               ; preds = %43
  store i32 %44, ptr %47, align 4, !tbaa !11
  br label %49

49:                                               ; preds = %48
  %50 = load i32, ptr %14, align 4, !tbaa !11
  %51 = add i32 %50, 1
  store i32 %51, ptr %14, align 4, !tbaa !11
  br label %34, !llvm.loop !13

52:                                               ; preds = %43
  %53 = landingpad { ptr, i32 }
          cleanup
  %54 = extractvalue { ptr, i32 } %53, 0
  store ptr %54, ptr %12, align 8
  %55 = extractvalue { ptr, i32 } %53, 1
  store i32 %55, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  br label %291

56:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 24, ptr %15) #6
  call void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #6
  %57 = load i32, ptr %10, align 4, !tbaa !11
  %58 = zext i32 %57 to i64
  invoke void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %58)
          to label %59 unwind label %65

59:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  store i32 0, ptr %16, align 4, !tbaa !11
  br label %60

60:                                               ; preds = %75, %59
  %61 = load i32, ptr %16, align 4, !tbaa !11
  %62 = load i32, ptr %10, align 4, !tbaa !11
  %63 = icmp ult i32 %61, %62
  br i1 %63, label %69, label %64

64:                                               ; preds = %60
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  br label %82

65:                                               ; preds = %56
  %66 = landingpad { ptr, i32 }
          cleanup
  %67 = extractvalue { ptr, i32 } %66, 0
  store ptr %67, ptr %12, align 8
  %68 = extractvalue { ptr, i32 } %66, 1
  store i32 %68, ptr %13, align 4
  br label %290

69:                                               ; preds = %60
  %70 = load i32, ptr %16, align 4, !tbaa !11
  %71 = load i32, ptr %16, align 4, !tbaa !11
  %72 = zext i32 %71 to i64
  %73 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %72)
          to label %74 unwind label %78

74:                                               ; preds = %69
  store i32 %70, ptr %73, align 4, !tbaa !11
  br label %75

75:                                               ; preds = %74
  %76 = load i32, ptr %16, align 4, !tbaa !11
  %77 = add i32 %76, 1
  store i32 %77, ptr %16, align 4, !tbaa !11
  br label %60, !llvm.loop !15

78:                                               ; preds = %69
  %79 = landingpad { ptr, i32 }
          cleanup
  %80 = extractvalue { ptr, i32 } %79, 0
  store ptr %80, ptr %12, align 8
  %81 = extractvalue { ptr, i32 } %79, 1
  store i32 %81, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  br label %290

82:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 24, ptr %17) #6
  call void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #6
  %83 = load i32, ptr %10, align 4, !tbaa !11
  %84 = zext i32 %83 to i64
  invoke void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %84)
          to label %85 unwind label %99

85:                                               ; preds = %82
  %86 = load ptr, ptr %5, align 8, !tbaa !5
  %87 = invoke noundef ptr @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %11)
          to label %88 unwind label %99

88:                                               ; preds = %85
  %89 = load i32, ptr %10, align 4, !tbaa !11
  %90 = invoke noundef ptr @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %17)
          to label %91 unwind label %99

91:                                               ; preds = %88
  %92 = load float, ptr %8, align 4, !tbaa !9
  invoke void @_ZN3JPHL28sIndexifyVerticesRecursivelyERKNS_5ArrayINS_8TriangleENS_12STLAllocatorIS1_EEEEPjjS7_RNS0_IjNS2_IjEEEEfj(ptr noundef nonnull align 8 dereferenceable(24) %86, ptr noundef %87, i32 noundef %89, ptr noundef %90, ptr noundef nonnull align 8 dereferenceable(24) %15, float noundef %92, i32 noundef 32)
          to label %93 unwind label %99

93:                                               ; preds = %91
  call void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  store i32 0, ptr %18, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  store i32 0, ptr %19, align 4, !tbaa !11
  br label %94

94:                                               ; preds = %155, %93
  %95 = load i32, ptr %19, align 4, !tbaa !11
  %96 = load i32, ptr %10, align 4, !tbaa !11
  %97 = icmp ult i32 %95, %96
  br i1 %97, label %103, label %98

98:                                               ; preds = %94
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  br label %158

99:                                               ; preds = %91, %88, %85, %82
  %100 = landingpad { ptr, i32 }
          cleanup
  %101 = extractvalue { ptr, i32 } %100, 0
  store ptr %101, ptr %12, align 8
  %102 = extractvalue { ptr, i32 } %100, 1
  store i32 %102, ptr %13, align 4
  call void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #6
  br label %290

103:                                              ; preds = %94
  br label %104

104:                                              ; preds = %103
  %105 = load i32, ptr %19, align 4, !tbaa !11
  %106 = zext i32 %105 to i64
  %107 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %106)
          to label %108 unwind label %124

108:                                              ; preds = %104
  %109 = load i32, ptr %107, align 4, !tbaa !11
  %110 = zext i32 %109 to i64
  %111 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %110)
          to label %112 unwind label %124

112:                                              ; preds = %108
  %113 = load i32, ptr %111, align 4, !tbaa !11
  %114 = load i32, ptr %19, align 4, !tbaa !11
  %115 = zext i32 %114 to i64
  %116 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %115)
          to label %117 unwind label %124

117:                                              ; preds = %112
  %118 = load i32, ptr %116, align 4, !tbaa !11
  %119 = icmp ule i32 %113, %118
  br i1 %119, label %128, label %120

120:                                              ; preds = %117
  %121 = invoke noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 171)
          to label %122 unwind label %124

122:                                              ; preds = %120
  br i1 %121, label %123, label %128

123:                                              ; preds = %122
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #6, !srcloc !16
  br label %128

124:                                              ; preds = %143, %138, %134, %130, %120, %112, %108, %104
  %125 = landingpad { ptr, i32 }
          cleanup
  %126 = extractvalue { ptr, i32 } %125, 0
  store ptr %126, ptr %12, align 8
  %127 = extractvalue { ptr, i32 } %125, 1
  store i32 %127, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  br label %289

128:                                              ; preds = %123, %122, %117
  br label %129

129:                                              ; preds = %128
  br label %130

130:                                              ; preds = %129
  %131 = load i32, ptr %19, align 4, !tbaa !11
  %132 = zext i32 %131 to i64
  %133 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %132)
          to label %134 unwind label %124

134:                                              ; preds = %130
  %135 = load i32, ptr %133, align 4, !tbaa !11
  %136 = zext i32 %135 to i64
  %137 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %136)
          to label %138 unwind label %124

138:                                              ; preds = %134
  %139 = load i32, ptr %137, align 4, !tbaa !11
  %140 = load i32, ptr %19, align 4, !tbaa !11
  %141 = zext i32 %140 to i64
  %142 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %141)
          to label %143 unwind label %124

143:                                              ; preds = %138
  store i32 %139, ptr %142, align 4, !tbaa !11
  %144 = load i32, ptr %19, align 4, !tbaa !11
  %145 = zext i32 %144 to i64
  %146 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %145)
          to label %147 unwind label %124

147:                                              ; preds = %143
  %148 = load i32, ptr %146, align 4, !tbaa !11
  %149 = load i32, ptr %19, align 4, !tbaa !11
  %150 = icmp eq i32 %148, %149
  br i1 %150, label %151, label %154

151:                                              ; preds = %147
  %152 = load i32, ptr %18, align 4, !tbaa !11
  %153 = add i32 %152, 1
  store i32 %153, ptr %18, align 4, !tbaa !11
  br label %154

154:                                              ; preds = %151, %147
  br label %155

155:                                              ; preds = %154
  %156 = load i32, ptr %19, align 4, !tbaa !11
  %157 = add i32 %156, 1
  store i32 %157, ptr %19, align 4, !tbaa !11
  br label %94, !llvm.loop !17

158:                                              ; preds = %98
  %159 = load ptr, ptr %6, align 8, !tbaa !5
  invoke void @_ZN3JPH5ArrayINS_6Float3ENS_12STLAllocatorIS1_EEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %159)
          to label %160 unwind label %170

160:                                              ; preds = %158
  %161 = load ptr, ptr %6, align 8, !tbaa !5
  %162 = load i32, ptr %18, align 4, !tbaa !11
  %163 = zext i32 %162 to i64
  invoke void @_ZN3JPH5ArrayINS_6Float3ENS_12STLAllocatorIS1_EEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %161, i64 noundef %163)
          to label %164 unwind label %170

164:                                              ; preds = %160
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  store i32 0, ptr %21, align 4, !tbaa !11
  br label %165

165:                                              ; preds = %216, %164
  %166 = load i32, ptr %21, align 4, !tbaa !11
  %167 = load i32, ptr %10, align 4, !tbaa !11
  %168 = icmp ult i32 %166, %167
  br i1 %168, label %174, label %169

169:                                              ; preds = %165
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  br label %219

170:                                              ; preds = %221, %219, %160, %158
  %171 = landingpad { ptr, i32 }
          cleanup
  %172 = extractvalue { ptr, i32 } %171, 0
  store ptr %172, ptr %12, align 8
  %173 = extractvalue { ptr, i32 } %171, 1
  store i32 %173, ptr %13, align 4
  br label %289

174:                                              ; preds = %165
  %175 = load i32, ptr %21, align 4, !tbaa !11
  %176 = zext i32 %175 to i64
  %177 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %176)
          to label %178 unwind label %197

178:                                              ; preds = %174
  %179 = load i32, ptr %177, align 4, !tbaa !11
  %180 = load i32, ptr %21, align 4, !tbaa !11
  %181 = icmp eq i32 %179, %180
  br i1 %181, label %182, label %201

182:                                              ; preds = %178
  %183 = load ptr, ptr %6, align 8, !tbaa !5
  %184 = invoke noundef i64 @_ZNK3JPH5ArrayINS_6Float3ENS_12STLAllocatorIS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %183)
          to label %185 unwind label %197

185:                                              ; preds = %182
  %186 = trunc i64 %184 to i32
  %187 = load i32, ptr %21, align 4, !tbaa !11
  %188 = zext i32 %187 to i64
  %189 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %188)
          to label %190 unwind label %197

190:                                              ; preds = %185
  store i32 %186, ptr %189, align 4, !tbaa !11
  %191 = load ptr, ptr %6, align 8, !tbaa !5
  %192 = load ptr, ptr %5, align 8, !tbaa !5
  %193 = load i32, ptr %21, align 4, !tbaa !11
  %194 = invoke noundef nonnull align 4 dereferenceable(12) ptr @_ZN3JPHL18sIndexifyGetFloat3ERKNS_5ArrayINS_8TriangleENS_12STLAllocatorIS1_EEEEj(ptr noundef nonnull align 8 dereferenceable(24) %192, i32 noundef %193)
          to label %195 unwind label %197

195:                                              ; preds = %190
  invoke void @_ZN3JPH5ArrayINS_6Float3ENS_12STLAllocatorIS1_EEE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %191, ptr noundef nonnull align 4 dereferenceable(12) %194)
          to label %196 unwind label %197

196:                                              ; preds = %195
  br label %215

197:                                              ; preds = %209, %205, %201, %195, %190, %185, %182, %174
  %198 = landingpad { ptr, i32 }
          cleanup
  %199 = extractvalue { ptr, i32 } %198, 0
  store ptr %199, ptr %12, align 8
  %200 = extractvalue { ptr, i32 } %198, 1
  store i32 %200, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  br label %289

201:                                              ; preds = %178
  %202 = load i32, ptr %21, align 4, !tbaa !11
  %203 = zext i32 %202 to i64
  %204 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %203)
          to label %205 unwind label %197

205:                                              ; preds = %201
  %206 = load i32, ptr %204, align 4, !tbaa !11
  %207 = zext i32 %206 to i64
  %208 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %207)
          to label %209 unwind label %197

209:                                              ; preds = %205
  %210 = load i32, ptr %208, align 4, !tbaa !11
  %211 = load i32, ptr %21, align 4, !tbaa !11
  %212 = zext i32 %211 to i64
  %213 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %212)
          to label %214 unwind label %197

214:                                              ; preds = %209
  store i32 %210, ptr %213, align 4, !tbaa !11
  br label %215

215:                                              ; preds = %214, %196
  br label %216

216:                                              ; preds = %215
  %217 = load i32, ptr %21, align 4, !tbaa !11
  %218 = add i32 %217, 1
  store i32 %218, ptr %21, align 4, !tbaa !11
  br label %165, !llvm.loop !18

219:                                              ; preds = %169
  %220 = load ptr, ptr %7, align 8, !tbaa !5
  invoke void @_ZN3JPH5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS1_EEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %220)
          to label %221 unwind label %170

221:                                              ; preds = %219
  %222 = load ptr, ptr %7, align 8, !tbaa !5
  %223 = load i32, ptr %9, align 4, !tbaa !11
  %224 = zext i32 %223 to i64
  invoke void @_ZN3JPH5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS1_EEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %222, i64 noundef %224)
          to label %225 unwind label %170

225:                                              ; preds = %221
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #6
  store i32 0, ptr %22, align 4, !tbaa !11
  br label %226

226:                                              ; preds = %284, %225
  %227 = load i32, ptr %22, align 4, !tbaa !11
  %228 = load i32, ptr %9, align 4, !tbaa !11
  %229 = icmp ult i32 %227, %228
  br i1 %229, label %231, label %230

230:                                              ; preds = %226
  store i32 16, ptr %23, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  br label %288

231:                                              ; preds = %226
  call void @llvm.lifetime.start.p0(i64 20, ptr %24) #6
  call void @_ZN3JPH15IndexedTriangleC2Ev(ptr noundef nonnull align 4 dereferenceable(20) %24) #6
  %232 = load ptr, ptr %5, align 8, !tbaa !5
  %233 = load i32, ptr %22, align 4, !tbaa !11
  %234 = zext i32 %233 to i64
  %235 = invoke noundef nonnull align 4 dereferenceable(44) ptr @_ZNK3JPH5ArrayINS_8TriangleENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %232, i64 noundef %234)
          to label %236 unwind label %252

236:                                              ; preds = %231
  %237 = getelementptr inbounds %"class.JPH::Triangle", ptr %235, i32 0, i32 1
  %238 = load i32, ptr %237, align 4, !tbaa !19
  %239 = getelementptr inbounds %"class.JPH::IndexedTriangle", ptr %24, i32 0, i32 1
  store i32 %238, ptr %239, align 4, !tbaa !21
  %240 = load ptr, ptr %5, align 8, !tbaa !5
  %241 = load i32, ptr %22, align 4, !tbaa !11
  %242 = zext i32 %241 to i64
  %243 = invoke noundef nonnull align 4 dereferenceable(44) ptr @_ZNK3JPH5ArrayINS_8TriangleENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %240, i64 noundef %242)
          to label %244 unwind label %252

244:                                              ; preds = %236
  %245 = getelementptr inbounds %"class.JPH::Triangle", ptr %243, i32 0, i32 2
  %246 = load i32, ptr %245, align 4, !tbaa !24
  %247 = getelementptr inbounds %"class.JPH::IndexedTriangle", ptr %24, i32 0, i32 2
  store i32 %246, ptr %247, align 4, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #6
  store i32 0, ptr %25, align 4, !tbaa !11
  br label %248

248:                                              ; preds = %269, %244
  %249 = load i32, ptr %25, align 4, !tbaa !11
  %250 = icmp slt i32 %249, 3
  br i1 %250, label %256, label %251

251:                                              ; preds = %248
  store i32 19, ptr %23, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  br label %276

252:                                              ; preds = %280, %276, %236, %231
  %253 = landingpad { ptr, i32 }
          cleanup
  %254 = extractvalue { ptr, i32 } %253, 0
  store ptr %254, ptr %12, align 8
  %255 = extractvalue { ptr, i32 } %253, 1
  store i32 %255, ptr %13, align 4
  br label %287

256:                                              ; preds = %248
  %257 = load i32, ptr %22, align 4, !tbaa !11
  %258 = mul i32 %257, 3
  %259 = load i32, ptr %25, align 4, !tbaa !11
  %260 = add i32 %258, %259
  %261 = zext i32 %260 to i64
  %262 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %261)
          to label %263 unwind label %272

263:                                              ; preds = %256
  %264 = load i32, ptr %262, align 4, !tbaa !11
  %265 = getelementptr inbounds %"class.JPH::IndexedTriangleNoMaterial", ptr %24, i32 0, i32 0
  %266 = load i32, ptr %25, align 4, !tbaa !11
  %267 = sext i32 %266 to i64
  %268 = getelementptr inbounds [3 x i32], ptr %265, i64 0, i64 %267
  store i32 %264, ptr %268, align 4, !tbaa !11
  br label %269

269:                                              ; preds = %263
  %270 = load i32, ptr %25, align 4, !tbaa !11
  %271 = add nsw i32 %270, 1
  store i32 %271, ptr %25, align 4, !tbaa !11
  br label %248, !llvm.loop !26

272:                                              ; preds = %256
  %273 = landingpad { ptr, i32 }
          cleanup
  %274 = extractvalue { ptr, i32 } %273, 0
  store ptr %274, ptr %12, align 8
  %275 = extractvalue { ptr, i32 } %273, 1
  store i32 %275, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  br label %287

276:                                              ; preds = %251
  %277 = load ptr, ptr %6, align 8, !tbaa !5
  %278 = invoke noundef zeroext i1 @_ZNK3JPH25IndexedTriangleNoMaterial12IsDegenerateERKNS_5ArrayINS_6Float3ENS_12STLAllocatorIS2_EEEE(ptr noundef nonnull align 4 dereferenceable(12) %24, ptr noundef nonnull align 8 dereferenceable(24) %277)
          to label %279 unwind label %252

279:                                              ; preds = %276
  br i1 %278, label %283, label %280

280:                                              ; preds = %279
  %281 = load ptr, ptr %7, align 8, !tbaa !5
  invoke void @_ZN3JPH5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS1_EEE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %281, ptr noundef nonnull align 4 dereferenceable(20) %24)
          to label %282 unwind label %252

282:                                              ; preds = %280
  br label %283

283:                                              ; preds = %282, %279
  call void @llvm.lifetime.end.p0(i64 20, ptr %24) #6
  br label %284

284:                                              ; preds = %283
  %285 = load i32, ptr %22, align 4, !tbaa !11
  %286 = add i32 %285, 1
  store i32 %286, ptr %22, align 4, !tbaa !11
  br label %226, !llvm.loop !27

287:                                              ; preds = %272, %252
  call void @llvm.lifetime.end.p0(i64 20, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  br label %289

288:                                              ; preds = %230
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  call void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #6
  call void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  ret void

289:                                              ; preds = %287, %197, %170, %124
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  br label %290

290:                                              ; preds = %289, %99, %78, %65
  call void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #6
  br label %291

291:                                              ; preds = %290, %52, %39
  call void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  br label %292

292:                                              ; preds = %291
  %293 = load ptr, ptr %12, align 8
  %294 = load i32, ptr %13, align 4
  %295 = insertvalue { ptr, i32 } poison, ptr %293, 0
  %296 = insertvalue { ptr, i32 } %295, i32 %294, 1
  resume { ptr, i32 } %296
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #4 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN3JPHL28sIndexifyVerticesRecursivelyERKNS_5ArrayINS_8TriangleENS_12STLAllocatorIS1_EEEEPjjS7_RNS0_IjNS2_IjEEEEfj(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef, i32 noundef, ptr noundef, ptr noundef nonnull align 8 dereferenceable(24), float noundef, i32 noundef) #1

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef, ptr noundef, i32 noundef) #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH5ArrayINS_6Float3ENS_12STLAllocatorIS1_EEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24)) #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH5ArrayINS_6Float3ENS_12STLAllocatorIS1_EEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #4 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH5ArrayINS_6Float3ENS_12STLAllocatorIS1_EEE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(12)) #4 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare hidden noundef nonnull align 4 dereferenceable(12) ptr @_ZN3JPHL18sIndexifyGetFloat3ERKNS_5ArrayINS_8TriangleENS_12STLAllocatorIS1_EEEEj(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS1_EEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24)) #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS1_EEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH15IndexedTriangleC2Ev(ptr noundef nonnull align 4 dereferenceable(20)) unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(44) ptr @_ZNK3JPH5ArrayINS_8TriangleENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK3JPH25IndexedTriangleNoMaterial12IsDegenerateERKNS_5ArrayINS_6Float3ENS_12STLAllocatorIS2_EEEE(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS1_EEE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(20)) #4 align 2

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 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 = { alwaysinline mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 = !{!"float", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = !{i64 2156927929}
!17 = distinct !{!17, !14}
!18 = distinct !{!18, !14}
!19 = !{!20, !12, i64 36}
!20 = !{!"_ZTSN3JPH8TriangleE", !7, i64 0, !12, i64 36, !12, i64 40}
!21 = !{!22, !12, i64 12}
!22 = !{!"_ZTSN3JPH15IndexedTriangleE", !23, i64 0, !12, i64 12, !12, i64 16}
!23 = !{!"_ZTSN3JPH25IndexedTriangleNoMaterialE", !7, i64 0}
!24 = !{!20, !12, i64 40}
!25 = !{!22, !12, i64 16}
!26 = distinct !{!26, !14}
!27 = distinct !{!27, !14}


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

%"class.JPH::Array.0" = type { i64, i64, ptr }
%"class.JPH::IndexedTriangle" = type { %"class.JPH::IndexedTriangleNoMaterial", i32, i32 }
%"class.JPH::IndexedTriangleNoMaterial" = type { [3 x i32] }

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

declare i32 @__gxx_personality_v0(...)

; 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
define dso_local void @_ZN3JPH8IndexifyERKNS_5ArrayINS_8TriangleENS_12STLAllocatorIS1_EEEERNS0_INS_6Float3ENS2_IS7_EEEERNS0_INS_15IndexedTriangleENS2_ISB_EEEEf(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %2, float noundef %3) local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"class.JPH::Array.0", align 8
  %6 = alloca %"class.JPH::Array.0", align 8
  %7 = alloca %"class.JPH::Array.0", align 8
  %8 = alloca %"class.JPH::IndexedTriangle", align 4
  %9 = tail call noundef i64 @_ZNK3JPH5ArrayINS_8TriangleENS_12STLAllocatorIS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0)
  %10 = trunc i64 %9 to i32
  %11 = mul i32 %10, 3
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #7
  call void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
  %12 = zext i32 %11 to i64
  invoke void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %12)
          to label %.preheader83 unwind label %13

.preheader83:                                     ; preds = %4
  %.not101 = icmp eq i32 %10, 0
  br i1 %.not101, label %._crit_edge, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %.preheader83
  %umax = call i32 @llvm.umax.i32(i32 %11, i32 1)
  %wide.trip.count = zext i32 %umax to i64
  br label %.lr.ph

._crit_edge:                                      ; preds = %16, %.preheader83
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #7
  call void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #7
  invoke void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %12)
          to label %.preheader82 unwind label %20

.preheader82:                                     ; preds = %._crit_edge
  br i1 %.not101, label %._crit_edge88, label %.lr.ph87.preheader

.lr.ph87.preheader:                               ; preds = %.preheader82
  %umax110 = call i32 @llvm.umax.i32(i32 %11, i32 1)
  %wide.trip.count111 = zext i32 %umax110 to i64
  br label %.lr.ph87

13:                                               ; preds = %4
  %14 = landingpad { ptr, i32 }
          cleanup
  br label %136

.lr.ph:                                           ; preds = %.lr.ph.preheader, %16
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %16 ]
  %15 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %indvars.iv)
          to label %16 unwind label %18

16:                                               ; preds = %.lr.ph
  %17 = trunc nuw i64 %indvars.iv to i32
  store i32 %17, ptr %15, align 4, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !9

18:                                               ; preds = %.lr.ph
  %19 = landingpad { ptr, i32 }
          cleanup
  br label %136

._crit_edge88:                                    ; preds = %23, %.preheader82
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #7
  call void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  invoke void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %12)
          to label %27 unwind label %32

20:                                               ; preds = %._crit_edge
  %21 = landingpad { ptr, i32 }
          cleanup
  br label %135

.lr.ph87:                                         ; preds = %.lr.ph87.preheader, %23
  %indvars.iv107 = phi i64 [ 0, %.lr.ph87.preheader ], [ %indvars.iv.next108, %23 ]
  %22 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %indvars.iv107)
          to label %23 unwind label %25

23:                                               ; preds = %.lr.ph87
  %24 = trunc nuw i64 %indvars.iv107 to i32
  store i32 %24, ptr %22, align 4, !tbaa !5
  %indvars.iv.next108 = add nuw nsw i64 %indvars.iv107, 1
  %exitcond112.not = icmp eq i64 %indvars.iv.next108, %wide.trip.count111
  br i1 %exitcond112.not, label %._crit_edge88, label %.lr.ph87, !llvm.loop !11

25:                                               ; preds = %.lr.ph87
  %26 = landingpad { ptr, i32 }
          cleanup
  br label %135

27:                                               ; preds = %._crit_edge88
  %28 = call noundef ptr @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %5)
  %29 = call noundef ptr @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %7)
  invoke void @_ZN3JPHL28sIndexifyVerticesRecursivelyERKNS_5ArrayINS_8TriangleENS_12STLAllocatorIS1_EEEEPjjS7_RNS0_IjNS2_IjEEEEfj(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef %28, i32 noundef %11, ptr noundef %29, ptr noundef nonnull align 8 dereferenceable(24) %6, float noundef %3, i32 noundef 32)
          to label %30 unwind label %32

30:                                               ; preds = %27
  call void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #7
  br i1 %.not101, label %._crit_edge93, label %.lr.ph92.preheader

.lr.ph92.preheader:                               ; preds = %30
  %umax116 = call i32 @llvm.umax.i32(i32 %11, i32 1)
  %wide.trip.count117 = zext i32 %umax116 to i64
  br label %.lr.ph92

._crit_edge93.loopexit:                           ; preds = %61
  %31 = zext i32 %spec.select to i64
  br label %._crit_edge93

._crit_edge93:                                    ; preds = %._crit_edge93.loopexit, %30
  %.064.lcssa = phi i64 [ 0, %30 ], [ %31, %._crit_edge93.loopexit ]
  invoke void @_ZN3JPH5ArrayINS_6Float3ENS_12STLAllocatorIS1_EEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %1)
          to label %66 unwind label %67

32:                                               ; preds = %27, %._crit_edge88
  %33 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #7
  br label %135

.lr.ph92:                                         ; preds = %.lr.ph92.preheader, %61
  %indvars.iv113 = phi i64 [ 0, %.lr.ph92.preheader ], [ %indvars.iv.next114, %61 ]
  %.06489 = phi i32 [ 0, %.lr.ph92.preheader ], [ %spec.select, %61 ]
  %34 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %indvars.iv113)
          to label %35 unwind label %48

35:                                               ; preds = %.lr.ph92
  %36 = load i32, ptr %34, align 4, !tbaa !5
  %37 = zext i32 %36 to i64
  %38 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %37)
          to label %39 unwind label %48

39:                                               ; preds = %35
  %40 = load i32, ptr %38, align 4, !tbaa !5
  %41 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %indvars.iv113)
          to label %42 unwind label %48

42:                                               ; preds = %39
  %43 = load i32, ptr %41, align 4, !tbaa !5
  %.not = icmp ugt i32 %40, %43
  br i1 %.not, label %44, label %50

44:                                               ; preds = %42
  %45 = invoke noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 171)
          to label %46 unwind label %48

46:                                               ; preds = %44
  br i1 %45, label %47, label %50

47:                                               ; preds = %46
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #7, !srcloc !12
  br label %50

48:                                               ; preds = %59, %56, %52, %50, %44, %39, %35, %.lr.ph92
  %49 = landingpad { ptr, i32 }
          cleanup
  br label %135

50:                                               ; preds = %47, %46, %42
  %51 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %indvars.iv113)
          to label %52 unwind label %48

52:                                               ; preds = %50
  %53 = load i32, ptr %51, align 4, !tbaa !5
  %54 = zext i32 %53 to i64
  %55 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %54)
          to label %56 unwind label %48

56:                                               ; preds = %52
  %57 = load i32, ptr %55, align 4, !tbaa !5
  %58 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %indvars.iv113)
          to label %59 unwind label %48

59:                                               ; preds = %56
  store i32 %57, ptr %58, align 4, !tbaa !5
  %60 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %indvars.iv113)
          to label %61 unwind label %48

61:                                               ; preds = %59
  %62 = load i32, ptr %60, align 4, !tbaa !5
  %63 = zext i32 %62 to i64
  %64 = icmp eq i64 %indvars.iv113, %63
  %65 = zext i1 %64 to i32
  %spec.select = add i32 %.06489, %65
  %indvars.iv.next114 = add nuw nsw i64 %indvars.iv113, 1
  %exitcond118.not = icmp eq i64 %indvars.iv.next114, %wide.trip.count117
  br i1 %exitcond118.not, label %._crit_edge93.loopexit, label %.lr.ph92, !llvm.loop !13

66:                                               ; preds = %._crit_edge93
  invoke void @_ZN3JPH5ArrayINS_6Float3ENS_12STLAllocatorIS1_EEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.064.lcssa)
          to label %.preheader81 unwind label %67

.preheader81:                                     ; preds = %66
  br i1 %.not101, label %._crit_edge96, label %.lr.ph95.preheader

.lr.ph95.preheader:                               ; preds = %.preheader81
  %umax122 = call i32 @llvm.umax.i32(i32 %11, i32 1)
  %wide.trip.count123 = zext i32 %umax122 to i64
  br label %.lr.ph95

._crit_edge96:                                    ; preds = %94, %.preheader81
  invoke void @_ZN3JPH5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS1_EEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %2)
          to label %95 unwind label %67

67:                                               ; preds = %95, %._crit_edge96, %66, %._crit_edge93
  %68 = landingpad { ptr, i32 }
          cleanup
  br label %135

.lr.ph95:                                         ; preds = %.lr.ph95.preheader, %94
  %indvars.iv119 = phi i64 [ 0, %.lr.ph95.preheader ], [ %indvars.iv.next120, %94 ]
  %69 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %indvars.iv119)
          to label %70 unwind label %82

70:                                               ; preds = %.lr.ph95
  %71 = load i32, ptr %69, align 4, !tbaa !5
  %72 = zext i32 %71 to i64
  %73 = icmp eq i64 %indvars.iv119, %72
  br i1 %73, label %74, label %84

74:                                               ; preds = %70
  %75 = call noundef i64 @_ZNK3JPH5ArrayINS_6Float3ENS_12STLAllocatorIS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1)
  %76 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %indvars.iv119)
          to label %77 unwind label %82

77:                                               ; preds = %74
  %78 = trunc i64 %75 to i32
  store i32 %78, ptr %76, align 4, !tbaa !5
  %79 = trunc nuw i64 %indvars.iv119 to i32
  %80 = invoke noundef nonnull align 4 dereferenceable(12) ptr @_ZN3JPHL18sIndexifyGetFloat3ERKNS_5ArrayINS_8TriangleENS_12STLAllocatorIS1_EEEEj(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef %79)
          to label %81 unwind label %82

81:                                               ; preds = %77
  invoke void @_ZN3JPH5ArrayINS_6Float3ENS_12STLAllocatorIS1_EEE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 4 dereferenceable(12) %80)
          to label %94 unwind label %82

82:                                               ; preds = %90, %86, %84, %81, %77, %74, %.lr.ph95
  %83 = landingpad { ptr, i32 }
          cleanup
  br label %135

84:                                               ; preds = %70
  %85 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %indvars.iv119)
          to label %86 unwind label %82

86:                                               ; preds = %84
  %87 = load i32, ptr %85, align 4, !tbaa !5
  %88 = zext i32 %87 to i64
  %89 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %88)
          to label %90 unwind label %82

90:                                               ; preds = %86
  %91 = load i32, ptr %89, align 4, !tbaa !5
  %92 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %indvars.iv119)
          to label %93 unwind label %82

93:                                               ; preds = %90
  store i32 %91, ptr %92, align 4, !tbaa !5
  br label %94

94:                                               ; preds = %93, %81
  %indvars.iv.next120 = add nuw nsw i64 %indvars.iv119, 1
  %exitcond124.not = icmp eq i64 %indvars.iv.next120, %wide.trip.count123
  br i1 %exitcond124.not, label %._crit_edge96, label %.lr.ph95, !llvm.loop !14

95:                                               ; preds = %._crit_edge96
  %96 = and i64 %9, 4294967295
  invoke void @_ZN3JPH5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS1_EEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %96)
          to label %.preheader unwind label %67

.preheader:                                       ; preds = %95
  br i1 %.not101, label %._crit_edge100, label %.lr.ph99

.lr.ph99:                                         ; preds = %.preheader
  %97 = getelementptr inbounds i8, ptr %8, i64 12
  %98 = getelementptr inbounds i8, ptr %8, i64 16
  %wide.trip.count132 = and i64 %9, 4294967295
  %99 = getelementptr inbounds i8, ptr %8, i64 4
  %100 = getelementptr inbounds i8, ptr %8, i64 8
  br label %101

._crit_edge100:                                   ; preds = %133, %.preheader
  call void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #7
  call void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #7
  ret void

101:                                              ; preds = %.lr.ph99, %133
  %indvars.iv129 = phi i64 [ 0, %.lr.ph99 ], [ %indvars.iv.next130, %133 ]
  call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %8) #7
  call void @_ZN3JPH15IndexedTriangleC2Ev(ptr noundef nonnull align 4 dereferenceable(20) %8) #7
  %102 = invoke noundef nonnull align 4 dereferenceable(44) ptr @_ZNK3JPH5ArrayINS_8TriangleENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %indvars.iv129)
          to label %103 unwind label %114

103:                                              ; preds = %101
  %104 = getelementptr inbounds i8, ptr %102, i64 36
  %105 = load i32, ptr %104, align 4, !tbaa !15
  store i32 %105, ptr %97, align 4, !tbaa !17
  %106 = invoke noundef nonnull align 4 dereferenceable(44) ptr @_ZNK3JPH5ArrayINS_8TriangleENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %indvars.iv129)
          to label %107 unwind label %114

107:                                              ; preds = %103
  %108 = getelementptr inbounds i8, ptr %106, i64 40
  %109 = load i32, ptr %108, align 4, !tbaa !20
  store i32 %109, ptr %98, align 4, !tbaa !21
  %110 = trunc nuw i64 %indvars.iv129 to i32
  %111 = mul i32 %110, 3
  %112 = zext i32 %111 to i64
  %113 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %112)
          to label %116 unwind label %129

114:                                              ; preds = %132, %126, %103, %101
  %115 = landingpad { ptr, i32 }
          cleanup
  br label %134

116:                                              ; preds = %107
  %117 = load i32, ptr %113, align 4, !tbaa !5
  store i32 %117, ptr %8, align 4, !tbaa !5
  %118 = add i32 %111, 1
  %119 = zext i32 %118 to i64
  %120 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %119)
          to label %121 unwind label %129

121:                                              ; preds = %116
  %122 = load i32, ptr %120, align 4, !tbaa !5
  store i32 %122, ptr %99, align 4, !tbaa !5
  %123 = add i32 %111, 2
  %124 = zext i32 %123 to i64
  %125 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %124)
          to label %126 unwind label %129

126:                                              ; preds = %121
  %127 = load i32, ptr %125, align 4, !tbaa !5
  store i32 %127, ptr %100, align 4, !tbaa !5
  %128 = invoke noundef zeroext i1 @_ZNK3JPH25IndexedTriangleNoMaterial12IsDegenerateERKNS_5ArrayINS_6Float3ENS_12STLAllocatorIS2_EEEE(ptr noundef nonnull align 4 dereferenceable(12) %8, ptr noundef nonnull align 8 dereferenceable(24) %1)
          to label %131 unwind label %114

129:                                              ; preds = %121, %116, %107
  %130 = landingpad { ptr, i32 }
          cleanup
  br label %134

131:                                              ; preds = %126
  br i1 %128, label %133, label %132

132:                                              ; preds = %131
  invoke void @_ZN3JPH5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS1_EEE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 4 dereferenceable(20) %8)
          to label %133 unwind label %114

133:                                              ; preds = %132, %131
  call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %8) #7
  %indvars.iv.next130 = add nuw nsw i64 %indvars.iv129, 1
  %exitcond133.not = icmp eq i64 %indvars.iv.next130, %wide.trip.count132
  br i1 %exitcond133.not, label %._crit_edge100, label %101, !llvm.loop !22

134:                                              ; preds = %129, %114
  %.pn = phi { ptr, i32 } [ %130, %129 ], [ %115, %114 ]
  call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %8) #7
  br label %135

135:                                              ; preds = %48, %67, %82, %134, %32, %25, %20
  %.pn77 = phi { ptr, i32 } [ %26, %25 ], [ %33, %32 ], [ %21, %20 ], [ %49, %48 ], [ %83, %82 ], [ %.pn, %134 ], [ %68, %67 ]
  call void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #7
  br label %136

136:                                              ; preds = %135, %18, %13
  %.pn79 = phi { ptr, i32 } [ %19, %18 ], [ %.pn77, %135 ], [ %14, %13 ]
  call void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #7
  resume { ptr, i32 } %.pn79
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN3JPHL28sIndexifyVerticesRecursivelyERKNS_5ArrayINS_8TriangleENS_12STLAllocatorIS1_EEEEPjjS7_RNS0_IjNS2_IjEEEEfj(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef, i32 noundef, ptr noundef, ptr noundef nonnull align 8 dereferenceable(24), float noundef, i32 noundef) local_unnamed_addr #1

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH5ArrayINS_6Float3ENS_12STLAllocatorIS1_EEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH5ArrayINS_6Float3ENS_12STLAllocatorIS1_EEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #4 align 2

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

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

; Function Attrs: alwaysinline mustprogress uwtable
declare hidden noundef nonnull align 4 dereferenceable(12) ptr @_ZN3JPHL18sIndexifyGetFloat3ERKNS_5ArrayINS_8TriangleENS_12STLAllocatorIS1_EEEEj(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS1_EEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS1_EEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH15IndexedTriangleC2Ev(ptr noundef nonnull align 4 dereferenceable(20)) unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(44) ptr @_ZNK3JPH5ArrayINS_8TriangleENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK3JPH25IndexedTriangleNoMaterial12IsDegenerateERKNS_5ArrayINS_6Float3ENS_12STLAllocatorIS2_EEEE(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS1_EEE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(20)) local_unnamed_addr #4 align 2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.umax.i32(i32, i32) #6

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 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 = { alwaysinline mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { 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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = !{i64 2156927929}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}
!15 = !{!16, !6, i64 36}
!16 = !{!"_ZTSN3JPH8TriangleE", !7, i64 0, !6, i64 36, !6, i64 40}
!17 = !{!18, !6, i64 12}
!18 = !{!"_ZTSN3JPH15IndexedTriangleE", !19, i64 0, !6, i64 12, !6, i64 16}
!19 = !{!"_ZTSN3JPH25IndexedTriangleNoMaterialE", !7, i64 0}
!20 = !{!16, !6, i64 40}
!21 = !{!18, !6, i64 16}
!22 = distinct !{!22, !10}


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