; LLVM IR from zig-gamedev/zphysics :: libs/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 }
%"class.JPH::IndexedTriangleNoMaterial" = type { [3 x i32] }
%"class.JPH::Triangle" = type { [3 x %"class.JPH::Float3"], 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 [86 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 %283

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 %283

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 %282

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 %282

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 %282

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 %281

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 %281

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 %281

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 = %276, %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 %280

231:                                              ; preds = %226
  call void @llvm.lifetime.start.p0(i64 16, ptr %24) #6
  call void @_ZN3JPH15IndexedTriangleC2Ev(ptr noundef nonnull align 4 dereferenceable(16) %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(40) ptr @_ZNK3JPH5ArrayINS_8TriangleENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %232, i64 noundef %234)
          to label %236 unwind label %244

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
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #6
  store i32 0, ptr %25, align 4, !tbaa !11
  br label %240

240:                                              ; preds = %261, %236
  %241 = load i32, ptr %25, align 4, !tbaa !11
  %242 = icmp slt i32 %241, 3
  br i1 %242, label %248, label %243

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

244:                                              ; preds = %272, %268, %231
  %245 = landingpad { ptr, i32 }
          cleanup
  %246 = extractvalue { ptr, i32 } %245, 0
  store ptr %246, ptr %12, align 8
  %247 = extractvalue { ptr, i32 } %245, 1
  store i32 %247, ptr %13, align 4
  br label %279

248:                                              ; preds = %240
  %249 = load i32, ptr %22, align 4, !tbaa !11
  %250 = mul i32 %249, 3
  %251 = load i32, ptr %25, align 4, !tbaa !11
  %252 = add i32 %250, %251
  %253 = zext i32 %252 to i64
  %254 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %253)
          to label %255 unwind label %264

255:                                              ; preds = %248
  %256 = load i32, ptr %254, align 4, !tbaa !11
  %257 = getelementptr inbounds %"class.JPH::IndexedTriangleNoMaterial", ptr %24, i32 0, i32 0
  %258 = load i32, ptr %25, align 4, !tbaa !11
  %259 = sext i32 %258 to i64
  %260 = getelementptr inbounds [3 x i32], ptr %257, i64 0, i64 %259
  store i32 %256, ptr %260, align 4, !tbaa !11
  br label %261

261:                                              ; preds = %255
  %262 = load i32, ptr %25, align 4, !tbaa !11
  %263 = add nsw i32 %262, 1
  store i32 %263, ptr %25, align 4, !tbaa !11
  br label %240, !llvm.loop !24

264:                                              ; preds = %248
  %265 = landingpad { ptr, i32 }
          cleanup
  %266 = extractvalue { ptr, i32 } %265, 0
  store ptr %266, ptr %12, align 8
  %267 = extractvalue { ptr, i32 } %265, 1
  store i32 %267, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  br label %279

268:                                              ; preds = %243
  %269 = load ptr, ptr %6, align 8, !tbaa !5
  %270 = invoke noundef zeroext i1 @_ZNK3JPH25IndexedTriangleNoMaterial12IsDegenerateERKNS_5ArrayINS_6Float3ENS_12STLAllocatorIS2_EEEE(ptr noundef nonnull align 4 dereferenceable(12) %24, ptr noundef nonnull align 8 dereferenceable(24) %269)
          to label %271 unwind label %244

271:                                              ; preds = %268
  br i1 %270, label %275, label %272

272:                                              ; preds = %271
  %273 = load ptr, ptr %7, align 8, !tbaa !5
  invoke void @_ZN3JPH5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS1_EEE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %273, ptr noundef nonnull align 4 dereferenceable(16) %24)
          to label %274 unwind label %244

274:                                              ; preds = %272
  br label %275

275:                                              ; preds = %274, %271
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #6
  br label %276

276:                                              ; preds = %275
  %277 = load i32, ptr %22, align 4, !tbaa !11
  %278 = add i32 %277, 1
  store i32 %278, ptr %22, align 4, !tbaa !11
  br label %226, !llvm.loop !25

279:                                              ; preds = %264, %244
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  br label %281

280:                                              ; 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

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

282:                                              ; preds = %281, %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 %283

283:                                              ; preds = %282, %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 %284

284:                                              ; preds = %283
  %285 = load ptr, ptr %12, align 8
  %286 = load i32, ptr %13, align 4
  %287 = insertvalue { ptr, i32 } poison, ptr %285, 0
  %288 = insertvalue { ptr, i32 } %287, i32 %286, 1
  resume { ptr, i32 } %288
}

; 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(16)) unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(40) 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(16)) #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 2156830987}
!17 = distinct !{!17, !14}
!18 = distinct !{!18, !14}
!19 = !{!20, !12, i64 36}
!20 = !{!"_ZTSN3JPH8TriangleE", !7, i64 0, !12, i64 36}
!21 = !{!22, !12, i64 12}
!22 = !{!"_ZTSN3JPH15IndexedTriangleE", !23, i64 0, !12, i64 12}
!23 = !{!"_ZTSN3JPH25IndexedTriangleNoMaterialE", !7, i64 0}
!24 = distinct !{!24, !14}
!25 = distinct !{!25, !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 }
%"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 [86 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 %.preheader81 unwind label %13

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

.lr.ph.preheader:                                 ; preds = %.preheader81
  %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, %.preheader81
  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 %.preheader80 unwind label %20

.preheader80:                                     ; preds = %._crit_edge
  br i1 %.not99, label %._crit_edge86, label %.lr.ph85.preheader

.lr.ph85.preheader:                               ; preds = %.preheader80
  %umax108 = call i32 @llvm.umax.i32(i32 %11, i32 1)
  %wide.trip.count109 = zext i32 %umax108 to i64
  br label %.lr.ph85

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

.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 %131

._crit_edge86:                                    ; preds = %23, %.preheader80
  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 %130

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

23:                                               ; preds = %.lr.ph85
  %24 = trunc nuw i64 %indvars.iv105 to i32
  store i32 %24, ptr %22, align 4, !tbaa !5
  %indvars.iv.next106 = add nuw nsw i64 %indvars.iv105, 1
  %exitcond110.not = icmp eq i64 %indvars.iv.next106, %wide.trip.count109
  br i1 %exitcond110.not, label %._crit_edge86, label %.lr.ph85, !llvm.loop !11

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

27:                                               ; preds = %._crit_edge86
  %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 %.not99, label %._crit_edge91, label %.lr.ph90.preheader

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

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

._crit_edge91:                                    ; preds = %._crit_edge91.loopexit, %30
  %.062.lcssa = phi i64 [ 0, %30 ], [ %31, %._crit_edge91.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_edge86
  %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 %130

.lr.ph90:                                         ; preds = %.lr.ph90.preheader, %61
  %indvars.iv111 = phi i64 [ 0, %.lr.ph90.preheader ], [ %indvars.iv.next112, %61 ]
  %.06287 = phi i32 [ 0, %.lr.ph90.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.iv111)
          to label %35 unwind label %48

35:                                               ; preds = %.lr.ph90
  %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.iv111)
          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.ph90
  %49 = landingpad { ptr, i32 }
          cleanup
  br label %130

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.iv111)
          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.iv111)
          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.iv111)
          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.iv111, %63
  %65 = zext i1 %64 to i32
  %spec.select = add i32 %.06287, %65
  %indvars.iv.next112 = add nuw nsw i64 %indvars.iv111, 1
  %exitcond116.not = icmp eq i64 %indvars.iv.next112, %wide.trip.count115
  br i1 %exitcond116.not, label %._crit_edge91.loopexit, label %.lr.ph90, !llvm.loop !13

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

.preheader79:                                     ; preds = %66
  br i1 %.not99, label %._crit_edge94, label %.lr.ph93.preheader

.lr.ph93.preheader:                               ; preds = %.preheader79
  %umax120 = call i32 @llvm.umax.i32(i32 %11, i32 1)
  %wide.trip.count121 = zext i32 %umax120 to i64
  br label %.lr.ph93

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

67:                                               ; preds = %95, %._crit_edge94, %66, %._crit_edge91
  %68 = landingpad { ptr, i32 }
          cleanup
  br label %130

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

70:                                               ; preds = %.lr.ph93
  %71 = load i32, ptr %69, align 4, !tbaa !5
  %72 = zext i32 %71 to i64
  %73 = icmp eq i64 %indvars.iv117, %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.iv117)
          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.iv117 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.ph93
  %83 = landingpad { ptr, i32 }
          cleanup
  br label %130

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.iv117)
          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.iv117)
          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.next118 = add nuw nsw i64 %indvars.iv117, 1
  %exitcond122.not = icmp eq i64 %indvars.iv.next118, %wide.trip.count121
  br i1 %exitcond122.not, label %._crit_edge94, label %.lr.ph93, !llvm.loop !14

95:                                               ; preds = %._crit_edge94
  %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 %.not99, label %._crit_edge98, label %.lr.ph97

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

._crit_edge98:                                    ; preds = %128, %.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

100:                                              ; preds = %.lr.ph97, %128
  %indvars.iv127 = phi i64 [ 0, %.lr.ph97 ], [ %indvars.iv.next128, %128 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #7
  call void @_ZN3JPH15IndexedTriangleC2Ev(ptr noundef nonnull align 4 dereferenceable(16) %8) #7
  %101 = invoke noundef nonnull align 4 dereferenceable(40) ptr @_ZNK3JPH5ArrayINS_8TriangleENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %indvars.iv127)
          to label %102 unwind label %109

102:                                              ; preds = %100
  %103 = getelementptr inbounds i8, ptr %101, i64 36
  %104 = load i32, ptr %103, align 4, !tbaa !15
  store i32 %104, ptr %97, align 4, !tbaa !17
  %105 = trunc nuw i64 %indvars.iv127 to i32
  %106 = mul i32 %105, 3
  %107 = zext i32 %106 to i64
  %108 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %107)
          to label %111 unwind label %124

109:                                              ; preds = %127, %121, %100
  %110 = landingpad { ptr, i32 }
          cleanup
  br label %129

111:                                              ; preds = %102
  %112 = load i32, ptr %108, align 4, !tbaa !5
  store i32 %112, ptr %8, align 4, !tbaa !5
  %113 = add i32 %106, 1
  %114 = zext i32 %113 to i64
  %115 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %114)
          to label %116 unwind label %124

116:                                              ; preds = %111
  %117 = load i32, ptr %115, align 4, !tbaa !5
  store i32 %117, ptr %98, align 4, !tbaa !5
  %118 = add i32 %106, 2
  %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 %124

121:                                              ; preds = %116
  %122 = load i32, ptr %120, align 4, !tbaa !5
  store i32 %122, ptr %99, align 4, !tbaa !5
  %123 = 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 %126 unwind label %109

124:                                              ; preds = %116, %111, %102
  %125 = landingpad { ptr, i32 }
          cleanup
  br label %129

126:                                              ; preds = %121
  br i1 %123, label %128, label %127

127:                                              ; preds = %126
  invoke void @_ZN3JPH5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS1_EEE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 4 dereferenceable(16) %8)
          to label %128 unwind label %109

128:                                              ; preds = %127, %126
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #7
  %indvars.iv.next128 = add nuw nsw i64 %indvars.iv127, 1
  %exitcond131.not = icmp eq i64 %indvars.iv.next128, %wide.trip.count130
  br i1 %exitcond131.not, label %._crit_edge98, label %100, !llvm.loop !20

129:                                              ; preds = %124, %109
  %.pn = phi { ptr, i32 } [ %125, %124 ], [ %110, %109 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #7
  br label %130

130:                                              ; preds = %48, %67, %82, %129, %32, %25, %20
  %.pn75 = phi { ptr, i32 } [ %26, %25 ], [ %33, %32 ], [ %21, %20 ], [ %49, %48 ], [ %83, %82 ], [ %.pn, %129 ], [ %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 %131

131:                                              ; preds = %130, %18, %13
  %.pn77 = phi { ptr, i32 } [ %19, %18 ], [ %.pn75, %130 ], [ %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 } %.pn77
}

; 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(16)) unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(40) 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(16)) 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 2156830987}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}
!15 = !{!16, !6, i64 36}
!16 = !{!"_ZTSN3JPH8TriangleE", !7, i64 0, !6, i64 36}
!17 = !{!18, !6, i64 12}
!18 = !{!"_ZTSN3JPH15IndexedTriangleE", !19, i64 0, !6, i64 12}
!19 = !{!"_ZTSN3JPH25IndexedTriangleNoMaterialE", !7, i64 0}
!20 = distinct !{!20, !10}


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