; LLVM IR from zig-gamedev/zphysics :: libs/Jolt/TriangleSplitter (TriangleSplitter)

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

%"struct.JPH::AssertLastParam" = type { i8 }
%"struct.JPH::TriangleSplitter::Range" = type { i32, i32 }
%"class.JPH::TriangleSplitter" = type { ptr, ptr, ptr, %"class.JPH::Array", %"class.JPH::Array.0" }
%"class.JPH::Array" = type { i64, i64, ptr }
%"class.JPH::Array.0" = type { i64, i64, ptr }

@.str = external hidden unnamed_addr constant [13 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [102 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [58 x i8], align 1

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN3JPH16TriangleSplitter13SplitInternalERKNS0_5RangeEjfRS1_S4_(ptr noundef nonnull align 8 dereferenceable(72) %0, ptr noundef nonnull align 4 dereferenceable(8) %1, i32 noundef %2, float noundef %3, ptr noundef nonnull align 4 dereferenceable(8) %4, ptr noundef nonnull align 4 dereferenceable(8) %5) #2 align 2 {
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca float, align 4
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca %"struct.JPH::AssertLastParam", align 1
  %16 = alloca %"struct.JPH::AssertLastParam", align 1
  %17 = alloca %"struct.JPH::AssertLastParam", align 1
  %18 = alloca i32, align 4
  %19 = alloca %"struct.JPH::AssertLastParam", align 1
  %20 = alloca i32, align 4
  %21 = alloca %"struct.JPH::AssertLastParam", align 1
  %22 = alloca %"struct.JPH::TriangleSplitter::Range", align 4
  %23 = alloca %"struct.JPH::TriangleSplitter::Range", align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store i32 %2, ptr %9, align 4, !tbaa !9
  store float %3, ptr %10, align 4, !tbaa !11
  store ptr %4, ptr %11, align 8, !tbaa !5
  store ptr %5, ptr %12, align 8, !tbaa !5
  %24 = load ptr, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  %25 = load ptr, ptr %8, align 8, !tbaa !5
  %26 = getelementptr inbounds %"struct.JPH::TriangleSplitter::Range", ptr %25, i32 0, i32 0
  %27 = load i32, ptr %26, align 4, !tbaa !13
  store i32 %27, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  %28 = load ptr, ptr %8, align 8, !tbaa !5
  %29 = getelementptr inbounds %"struct.JPH::TriangleSplitter::Range", ptr %28, i32 0, i32 1
  %30 = load i32, ptr %29, align 4, !tbaa !15
  store i32 %30, ptr %14, align 4, !tbaa !9
  br label %31

31:                                               ; preds = %100, %6
  %32 = load i32, ptr %13, align 4, !tbaa !9
  %33 = load i32, ptr %14, align 4, !tbaa !9
  %34 = icmp ult i32 %32, %33
  br i1 %34, label %35, label %101

35:                                               ; preds = %31
  br label %36

36:                                               ; preds = %55, %35
  %37 = load i32, ptr %13, align 4, !tbaa !9
  %38 = load i32, ptr %14, align 4, !tbaa !9
  %39 = icmp ult i32 %37, %38
  br i1 %39, label %40, label %53

40:                                               ; preds = %36
  %41 = getelementptr inbounds %"class.JPH::TriangleSplitter", ptr %24, i32 0, i32 3
  %42 = getelementptr inbounds %"class.JPH::TriangleSplitter", ptr %24, i32 0, i32 4
  %43 = load i32, ptr %13, align 4, !tbaa !9
  %44 = zext i32 %43 to i64
  %45 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %42, i64 noundef %44)
  %46 = load i32, ptr %45, align 4, !tbaa !9
  %47 = zext i32 %46 to i64
  %48 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN3JPH5ArrayINS_6Float3ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %41, i64 noundef %47)
  %49 = load i32, ptr %9, align 4, !tbaa !9
  %50 = call noundef float @_ZNK3JPH6Float3ixEi(ptr noundef nonnull align 4 dereferenceable(12) %48, i32 noundef %49)
  %51 = load float, ptr %10, align 4, !tbaa !11
  %52 = fcmp olt float %50, %51
  br label %53

53:                                               ; preds = %40, %36
  %54 = phi i1 [ false, %36 ], [ %52, %40 ]
  br i1 %54, label %55, label %58

55:                                               ; preds = %53
  %56 = load i32, ptr %13, align 4, !tbaa !9
  %57 = add i32 %56, 1
  store i32 %57, ptr %13, align 4, !tbaa !9
  br label %36, !llvm.loop !16

58:                                               ; preds = %53
  br label %59

59:                                               ; preds = %79, %58
  %60 = load i32, ptr %13, align 4, !tbaa !9
  %61 = load i32, ptr %14, align 4, !tbaa !9
  %62 = icmp ult i32 %60, %61
  br i1 %62, label %63, label %77

63:                                               ; preds = %59
  %64 = getelementptr inbounds %"class.JPH::TriangleSplitter", ptr %24, i32 0, i32 3
  %65 = getelementptr inbounds %"class.JPH::TriangleSplitter", ptr %24, i32 0, i32 4
  %66 = load i32, ptr %14, align 4, !tbaa !9
  %67 = sub i32 %66, 1
  %68 = zext i32 %67 to i64
  %69 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %65, i64 noundef %68)
  %70 = load i32, ptr %69, align 4, !tbaa !9
  %71 = zext i32 %70 to i64
  %72 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN3JPH5ArrayINS_6Float3ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %64, i64 noundef %71)
  %73 = load i32, ptr %9, align 4, !tbaa !9
  %74 = call noundef float @_ZNK3JPH6Float3ixEi(ptr noundef nonnull align 4 dereferenceable(12) %72, i32 noundef %73)
  %75 = load float, ptr %10, align 4, !tbaa !11
  %76 = fcmp oge float %74, %75
  br label %77

77:                                               ; preds = %63, %59
  %78 = phi i1 [ false, %59 ], [ %76, %63 ]
  br i1 %78, label %79, label %82

79:                                               ; preds = %77
  %80 = load i32, ptr %14, align 4, !tbaa !9
  %81 = add i32 %80, -1
  store i32 %81, ptr %14, align 4, !tbaa !9
  br label %59, !llvm.loop !18

82:                                               ; preds = %77
  %83 = load i32, ptr %13, align 4, !tbaa !9
  %84 = load i32, ptr %14, align 4, !tbaa !9
  %85 = icmp ult i32 %83, %84
  br i1 %85, label %86, label %100

86:                                               ; preds = %82
  %87 = getelementptr inbounds %"class.JPH::TriangleSplitter", ptr %24, i32 0, i32 4
  %88 = load i32, ptr %13, align 4, !tbaa !9
  %89 = zext i32 %88 to i64
  %90 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %87, i64 noundef %89)
  %91 = getelementptr inbounds %"class.JPH::TriangleSplitter", ptr %24, i32 0, i32 4
  %92 = load i32, ptr %14, align 4, !tbaa !9
  %93 = sub i32 %92, 1
  %94 = zext i32 %93 to i64
  %95 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %91, i64 noundef %94)
  call void @_ZSt4swapIjENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %90, ptr noundef nonnull align 4 dereferenceable(4) %95) #6
  %96 = load i32, ptr %13, align 4, !tbaa !9
  %97 = add i32 %96, 1
  store i32 %97, ptr %13, align 4, !tbaa !9
  %98 = load i32, ptr %14, align 4, !tbaa !9
  %99 = add i32 %98, -1
  store i32 %99, ptr %14, align 4, !tbaa !9
  br label %100

100:                                              ; preds = %86, %82
  br label %31, !llvm.loop !19

101:                                              ; preds = %31
  br label %102

102:                                              ; preds = %101
  %103 = load i32, ptr %13, align 4, !tbaa !9
  %104 = load i32, ptr %14, align 4, !tbaa !9
  %105 = icmp eq i32 %103, %104
  br i1 %105, label %109, label %106

106:                                              ; preds = %102
  %107 = call noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 50)
  br i1 %107, label %108, label %109

108:                                              ; preds = %106
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #6, !srcloc !20
  br label %109

109:                                              ; preds = %108, %106, %102
  br label %110

110:                                              ; preds = %109
  br label %111

111:                                              ; preds = %110
  br label %112

112:                                              ; preds = %111
  %113 = load ptr, ptr %8, align 8, !tbaa !5
  %114 = getelementptr inbounds %"struct.JPH::TriangleSplitter::Range", ptr %113, i32 0, i32 0
  %115 = load i32, ptr %114, align 4, !tbaa !13
  %116 = load i32, ptr %13, align 4, !tbaa !9
  %117 = icmp ule i32 %115, %116
  br i1 %117, label %121, label %118

118:                                              ; preds = %112
  %119 = call noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef @.str.2, ptr noundef @.str.1, i32 noundef 54)
  br i1 %119, label %120, label %121

120:                                              ; preds = %118
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #6, !srcloc !21
  br label %121

121:                                              ; preds = %120, %118, %112
  br label %122

122:                                              ; preds = %121
  br label %123

123:                                              ; preds = %122
  br label %124

124:                                              ; preds = %123
  %125 = load i32, ptr %13, align 4, !tbaa !9
  %126 = load ptr, ptr %8, align 8, !tbaa !5
  %127 = getelementptr inbounds %"struct.JPH::TriangleSplitter::Range", ptr %126, i32 0, i32 1
  %128 = load i32, ptr %127, align 4, !tbaa !15
  %129 = icmp ule i32 %125, %128
  br i1 %129, label %133, label %130

130:                                              ; preds = %124
  %131 = call noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef @.str.3, ptr noundef @.str.1, i32 noundef 55)
  br i1 %131, label %132, label %133

132:                                              ; preds = %130
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #6, !srcloc !22
  br label %133

133:                                              ; preds = %132, %130, %124
  br label %134

134:                                              ; preds = %133
  br label %135

135:                                              ; preds = %134
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  %136 = load ptr, ptr %8, align 8, !tbaa !5
  %137 = getelementptr inbounds %"struct.JPH::TriangleSplitter::Range", ptr %136, i32 0, i32 0
  %138 = load i32, ptr %137, align 4, !tbaa !13
  store i32 %138, ptr %18, align 4, !tbaa !9
  br label %139

139:                                              ; preds = %164, %135
  %140 = load i32, ptr %18, align 4, !tbaa !9
  %141 = load i32, ptr %13, align 4, !tbaa !9
  %142 = icmp ult i32 %140, %141
  br i1 %142, label %144, label %143

143:                                              ; preds = %139
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  br label %167

144:                                              ; preds = %139
  br label %145

145:                                              ; preds = %144
  %146 = getelementptr inbounds %"class.JPH::TriangleSplitter", ptr %24, i32 0, i32 3
  %147 = getelementptr inbounds %"class.JPH::TriangleSplitter", ptr %24, i32 0, i32 4
  %148 = load i32, ptr %18, align 4, !tbaa !9
  %149 = zext i32 %148 to i64
  %150 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %147, i64 noundef %149)
  %151 = load i32, ptr %150, align 4, !tbaa !9
  %152 = zext i32 %151 to i64
  %153 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN3JPH5ArrayINS_6Float3ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %146, i64 noundef %152)
  %154 = load i32, ptr %9, align 4, !tbaa !9
  %155 = call noundef float @_ZNK3JPH6Float3ixEi(ptr noundef nonnull align 4 dereferenceable(12) %153, i32 noundef %154)
  %156 = load float, ptr %10, align 4, !tbaa !11
  %157 = fcmp olt float %155, %156
  br i1 %157, label %161, label %158

158:                                              ; preds = %145
  %159 = call noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef @.str.4, ptr noundef @.str.1, i32 noundef 57)
  br i1 %159, label %160, label %161

160:                                              ; preds = %158
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #6, !srcloc !23
  br label %161

161:                                              ; preds = %160, %158, %145
  br label %162

162:                                              ; preds = %161
  br label %163

163:                                              ; preds = %162
  br label %164

164:                                              ; preds = %163
  %165 = load i32, ptr %18, align 4, !tbaa !9
  %166 = add i32 %165, 1
  store i32 %166, ptr %18, align 4, !tbaa !9
  br label %139, !llvm.loop !24

167:                                              ; preds = %143
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  %168 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %168, ptr %20, align 4, !tbaa !9
  br label %169

169:                                              ; preds = %196, %167
  %170 = load i32, ptr %20, align 4, !tbaa !9
  %171 = load ptr, ptr %8, align 8, !tbaa !5
  %172 = getelementptr inbounds %"struct.JPH::TriangleSplitter::Range", ptr %171, i32 0, i32 1
  %173 = load i32, ptr %172, align 4, !tbaa !15
  %174 = icmp ult i32 %170, %173
  br i1 %174, label %176, label %175

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

176:                                              ; preds = %169
  br label %177

177:                                              ; preds = %176
  %178 = getelementptr inbounds %"class.JPH::TriangleSplitter", ptr %24, i32 0, i32 3
  %179 = getelementptr inbounds %"class.JPH::TriangleSplitter", ptr %24, i32 0, i32 4
  %180 = load i32, ptr %20, align 4, !tbaa !9
  %181 = zext i32 %180 to i64
  %182 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %179, i64 noundef %181)
  %183 = load i32, ptr %182, align 4, !tbaa !9
  %184 = zext i32 %183 to i64
  %185 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN3JPH5ArrayINS_6Float3ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %178, i64 noundef %184)
  %186 = load i32, ptr %9, align 4, !tbaa !9
  %187 = call noundef float @_ZNK3JPH6Float3ixEi(ptr noundef nonnull align 4 dereferenceable(12) %185, i32 noundef %186)
  %188 = load float, ptr %10, align 4, !tbaa !11
  %189 = fcmp oge float %187, %188
  br i1 %189, label %193, label %190

190:                                              ; preds = %177
  %191 = call noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef @.str.5, ptr noundef @.str.1, i32 noundef 59)
  br i1 %191, label %192, label %193

192:                                              ; preds = %190
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #6, !srcloc !25
  br label %193

193:                                              ; preds = %192, %190, %177
  br label %194

194:                                              ; preds = %193
  br label %195

195:                                              ; preds = %194
  br label %196

196:                                              ; preds = %195
  %197 = load i32, ptr %20, align 4, !tbaa !9
  %198 = add i32 %197, 1
  store i32 %198, ptr %20, align 4, !tbaa !9
  br label %169, !llvm.loop !26

199:                                              ; preds = %175
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  %200 = load ptr, ptr %8, align 8, !tbaa !5
  %201 = getelementptr inbounds %"struct.JPH::TriangleSplitter::Range", ptr %200, i32 0, i32 0
  %202 = load i32, ptr %201, align 4, !tbaa !13
  %203 = load i32, ptr %13, align 4, !tbaa !9
  call void @_ZN3JPH16TriangleSplitter5RangeC2Ejj(ptr noundef nonnull align 4 dereferenceable(8) %22, i32 noundef %202, i32 noundef %203)
  %204 = load ptr, ptr %11, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %204, ptr align 4 %22, i64 8, i1 false), !tbaa.struct !27
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  %205 = load i32, ptr %13, align 4, !tbaa !9
  %206 = load ptr, ptr %8, align 8, !tbaa !5
  %207 = getelementptr inbounds %"struct.JPH::TriangleSplitter::Range", ptr %206, i32 0, i32 1
  %208 = load i32, ptr %207, align 4, !tbaa !15
  call void @_ZN3JPH16TriangleSplitter5RangeC2Ejj(ptr noundef nonnull align 4 dereferenceable(8) %23, i32 noundef %205, i32 noundef %208)
  %209 = load ptr, ptr %12, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %209, ptr align 4 %23, i64 8, i1 false), !tbaa.struct !27
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  %210 = load ptr, ptr %11, align 8, !tbaa !5
  %211 = call noundef i32 @_ZNK3JPH16TriangleSplitter5Range5CountEv(ptr noundef nonnull align 4 dereferenceable(8) %210)
  %212 = icmp ugt i32 %211, 0
  br i1 %212, label %213, label %217

213:                                              ; preds = %199
  %214 = load ptr, ptr %12, align 8, !tbaa !5
  %215 = call noundef i32 @_ZNK3JPH16TriangleSplitter5Range5CountEv(ptr noundef nonnull align 4 dereferenceable(8) %214)
  %216 = icmp ugt i32 %215, 0
  br label %217

217:                                              ; preds = %213, %199
  %218 = phi i1 [ false, %199 ], [ %216, %213 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  ret i1 %218
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZNK3JPH6Float3ixEi(ptr noundef nonnull align 4 dereferenceable(12), i32 noundef) #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZSt4swapIjENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #3

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH16TriangleSplitter5RangeC2Ejj(ptr noundef nonnull align 4 dereferenceable(8), i32 noundef, i32 noundef) unnamed_addr #4 align 2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK3JPH16TriangleSplitter5Range5CountEv(ptr noundef nonnull align 4 dereferenceable(8)) #4 align 2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{!14, !10, i64 0}
!14 = !{!"_ZTSN3JPH16TriangleSplitter5RangeE", !10, i64 0, !10, i64 4}
!15 = !{!14, !10, i64 4}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}
!19 = distinct !{!19, !17}
!20 = !{i64 2156779364}
!21 = !{i64 2156779727}
!22 = !{i64 2156780086}
!23 = !{i64 2156780507}
!24 = distinct !{!24, !17}
!25 = !{i64 2156784991}
!26 = distinct !{!26, !17}
!27 = !{i64 0, i64 4, !9, i64 4, i64 4, !9}


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

%"struct.JPH::TriangleSplitter::Range" = type { i32, i32 }

@.str = external hidden unnamed_addr constant [13 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [102 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [58 x i8], align 1

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

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

; Function Attrs: 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 #1 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN3JPH16TriangleSplitter13SplitInternalERKNS0_5RangeEjfRS1_S4_(ptr noundef nonnull align 8 dereferenceable(72) %0, ptr nocapture noundef nonnull readonly align 4 dereferenceable(8) %1, i32 noundef %2, float noundef %3, ptr noundef nonnull align 4 dereferenceable(8) %4, ptr noundef nonnull align 4 dereferenceable(8) %5) local_unnamed_addr #2 align 2 {
  %7 = alloca %"struct.JPH::TriangleSplitter::Range", align 8
  %8 = alloca %"struct.JPH::TriangleSplitter::Range", align 8
  %9 = load i32, ptr %1, align 4, !tbaa !5
  %10 = getelementptr inbounds i8, ptr %1, i64 4
  %11 = load i32, ptr %10, align 4, !tbaa !10
  %12 = icmp ult i32 %9, %11
  br i1 %12, label %.preheader60.lr.ph, label %._crit_edge

.preheader60.lr.ph:                               ; preds = %6
  %13 = getelementptr inbounds i8, ptr %0, i64 24
  %14 = getelementptr inbounds i8, ptr %0, i64 48
  br label %.preheader60

.preheader60:                                     ; preds = %.preheader60.lr.ph, %.critedge59
  %.05366 = phi i32 [ %11, %.preheader60.lr.ph ], [ %.2, %.critedge59 ]
  %.05465 = phi i32 [ %9, %.preheader60.lr.ph ], [ %.256, %.critedge59 ]
  %15 = zext i32 %.05465 to i64
  %16 = zext i32 %.05366 to i64
  %17 = add nuw i32 %.05465, 1
  %umax = tail call i32 @llvm.umax.i32(i32 %.05366, i32 %17)
  br label %18

18:                                               ; preds = %.preheader60, %25
  %indvars.iv = phi i64 [ %15, %.preheader60 ], [ %indvars.iv.next, %25 ]
  %19 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %indvars.iv)
  %20 = load i32, ptr %19, align 4, !tbaa !11
  %21 = zext i32 %20 to i64
  %22 = tail call noundef nonnull align 4 dereferenceable(12) ptr @_ZN3JPH5ArrayINS_6Float3ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %21)
  %23 = tail call noundef float @_ZNK3JPH6Float3ixEi(ptr noundef nonnull align 4 dereferenceable(12) %22, i32 noundef %2)
  %24 = fcmp olt float %23, %3
  br i1 %24, label %25, label %.critedge.split.loop.exit86

25:                                               ; preds = %18
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %26 = icmp ult i64 %indvars.iv.next, %16
  br i1 %26, label %18, label %.critedge, !llvm.loop !12

.critedge.split.loop.exit86:                      ; preds = %18
  %27 = trunc nuw i64 %indvars.iv to i32
  br label %.critedge

.critedge:                                        ; preds = %25, %.critedge.split.loop.exit86
  %.155.lcssa = phi i32 [ %27, %.critedge.split.loop.exit86 ], [ %umax, %25 ]
  %28 = zext i32 %.155.lcssa to i64
  br label %29

29:                                               ; preds = %31, %.critedge
  %indvars.iv76 = phi i64 [ %32, %31 ], [ %16, %.critedge ]
  %30 = icmp ugt i64 %indvars.iv76, %28
  br i1 %30, label %31, label %.critedge59

31:                                               ; preds = %29
  %32 = add nsw i64 %indvars.iv76, -1
  %33 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %32)
  %34 = load i32, ptr %33, align 4, !tbaa !11
  %35 = zext i32 %34 to i64
  %36 = tail call noundef nonnull align 4 dereferenceable(12) ptr @_ZN3JPH5ArrayINS_6Float3ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %35)
  %37 = tail call noundef float @_ZNK3JPH6Float3ixEi(ptr noundef nonnull align 4 dereferenceable(12) %36, i32 noundef %2)
  %38 = fcmp ult float %37, %3
  br i1 %38, label %.critedge2, label %29, !llvm.loop !14

.critedge2:                                       ; preds = %31
  %39 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %28)
  %40 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %32)
  tail call void @_ZSt4swapIjENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %39, ptr noundef nonnull align 4 dereferenceable(4) %40) #6
  %41 = add nuw i32 %.155.lcssa, 1
  br label %.critedge59

.critedge59:                                      ; preds = %29, %.critedge2
  %.256 = phi i32 [ %41, %.critedge2 ], [ %.155.lcssa, %29 ]
  %.2.in = phi i64 [ %32, %.critedge2 ], [ %indvars.iv76, %29 ]
  %.2 = trunc i64 %.2.in to i32
  %42 = icmp ult i32 %.256, %.2
  br i1 %42, label %.preheader60, label %._crit_edge, !llvm.loop !15

._crit_edge:                                      ; preds = %.critedge59, %6
  %.054.lcssa = phi i32 [ %9, %6 ], [ %.256, %.critedge59 ]
  %.053.lcssa = phi i32 [ %11, %6 ], [ %.2, %.critedge59 ]
  %43 = icmp eq i32 %.054.lcssa, %.053.lcssa
  br i1 %43, label %47, label %44

44:                                               ; preds = %._crit_edge
  %45 = tail call noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 50)
  br i1 %45, label %46, label %47

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

47:                                               ; preds = %._crit_edge, %44, %46
  %48 = load i32, ptr %1, align 4, !tbaa !5
  %.not = icmp ugt i32 %48, %.054.lcssa
  br i1 %.not, label %49, label %52

49:                                               ; preds = %47
  %50 = tail call noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.1, i32 noundef 54)
  br i1 %50, label %51, label %52

51:                                               ; preds = %49
  tail call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #6, !srcloc !17
  br label %52

52:                                               ; preds = %47, %49, %51
  %53 = load i32, ptr %10, align 4, !tbaa !10
  %.not57 = icmp ugt i32 %.054.lcssa, %53
  br i1 %.not57, label %54, label %57

54:                                               ; preds = %52
  %55 = tail call noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.1, i32 noundef 55)
  br i1 %55, label %56, label %57

56:                                               ; preds = %54
  tail call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #6, !srcloc !18
  br label %57

57:                                               ; preds = %56, %54, %52
  %58 = load i32, ptr %1, align 4, !tbaa !5
  %59 = icmp ult i32 %58, %.054.lcssa
  br i1 %59, label %.lr.ph, label %.preheader

.lr.ph:                                           ; preds = %57
  %60 = getelementptr inbounds i8, ptr %0, i64 24
  %61 = getelementptr inbounds i8, ptr %0, i64 48
  %62 = zext i32 %58 to i64
  br label %68

.preheader:                                       ; preds = %78, %57
  %63 = load i32, ptr %10, align 4, !tbaa !10
  %64 = icmp ult i32 %.054.lcssa, %63
  br i1 %64, label %.lr.ph71, label %._crit_edge72

.lr.ph71:                                         ; preds = %.preheader
  %65 = getelementptr inbounds i8, ptr %0, i64 24
  %66 = getelementptr inbounds i8, ptr %0, i64 48
  %67 = zext i32 %.054.lcssa to i64
  br label %84

68:                                               ; preds = %.lr.ph, %78
  %indvars.iv79 = phi i64 [ %62, %.lr.ph ], [ %indvars.iv.next80, %78 ]
  %69 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %61, i64 noundef %indvars.iv79)
  %70 = load i32, ptr %69, align 4, !tbaa !11
  %71 = zext i32 %70 to i64
  %72 = tail call noundef nonnull align 4 dereferenceable(12) ptr @_ZN3JPH5ArrayINS_6Float3ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %60, i64 noundef %71)
  %73 = tail call noundef float @_ZNK3JPH6Float3ixEi(ptr noundef nonnull align 4 dereferenceable(12) %72, i32 noundef %2)
  %74 = fcmp olt float %73, %3
  br i1 %74, label %78, label %75

75:                                               ; preds = %68
  %76 = tail call noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.1, i32 noundef 57)
  br i1 %76, label %77, label %78

77:                                               ; preds = %75
  tail call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #6, !srcloc !19
  br label %78

78:                                               ; preds = %68, %75, %77
  %indvars.iv.next80 = add nuw nsw i64 %indvars.iv79, 1
  %lftr.wideiv = trunc i64 %indvars.iv.next80 to i32
  %exitcond.not = icmp eq i32 %.054.lcssa, %lftr.wideiv
  br i1 %exitcond.not, label %.preheader, label %68, !llvm.loop !20

._crit_edge72:                                    ; preds = %94, %.preheader
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  %79 = load i32, ptr %1, align 4, !tbaa !5
  call void @_ZN3JPH16TriangleSplitter5RangeC2Ejj(ptr noundef nonnull align 4 dereferenceable(8) %7, i32 noundef %79, i32 noundef %.054.lcssa)
  %80 = load i64, ptr %7, align 8
  store i64 %80, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #6
  %81 = load i32, ptr %10, align 4, !tbaa !10
  call void @_ZN3JPH16TriangleSplitter5RangeC2Ejj(ptr noundef nonnull align 4 dereferenceable(8) %8, i32 noundef %.054.lcssa, i32 noundef %81)
  %82 = load i64, ptr %8, align 8
  store i64 %82, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  %83 = call noundef i32 @_ZNK3JPH16TriangleSplitter5Range5CountEv(ptr noundef nonnull align 4 dereferenceable(8) %4)
  %.not58 = icmp eq i32 %83, 0
  br i1 %.not58, label %101, label %98

84:                                               ; preds = %.lr.ph71, %94
  %indvars.iv82 = phi i64 [ %67, %.lr.ph71 ], [ %indvars.iv.next83, %94 ]
  %85 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %66, i64 noundef %indvars.iv82)
  %86 = load i32, ptr %85, align 4, !tbaa !11
  %87 = zext i32 %86 to i64
  %88 = tail call noundef nonnull align 4 dereferenceable(12) ptr @_ZN3JPH5ArrayINS_6Float3ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %65, i64 noundef %87)
  %89 = tail call noundef float @_ZNK3JPH6Float3ixEi(ptr noundef nonnull align 4 dereferenceable(12) %88, i32 noundef %2)
  %90 = fcmp ult float %89, %3
  br i1 %90, label %91, label %94

91:                                               ; preds = %84
  %92 = tail call noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.1, i32 noundef 59)
  br i1 %92, label %93, label %94

93:                                               ; preds = %91
  tail call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #6, !srcloc !21
  br label %94

94:                                               ; preds = %84, %91, %93
  %indvars.iv.next83 = add nuw nsw i64 %indvars.iv82, 1
  %95 = load i32, ptr %10, align 4, !tbaa !10
  %96 = zext i32 %95 to i64
  %97 = icmp ult i64 %indvars.iv.next83, %96
  br i1 %97, label %84, label %._crit_edge72, !llvm.loop !22

98:                                               ; preds = %._crit_edge72
  %99 = call noundef i32 @_ZNK3JPH16TriangleSplitter5Range5CountEv(ptr noundef nonnull align 4 dereferenceable(8) %5)
  %100 = icmp ne i32 %99, 0
  br label %101

101:                                              ; preds = %98, %._crit_edge72
  %102 = phi i1 [ false, %._crit_edge72 ], [ %100, %98 ]
  ret i1 %102
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZNK3JPH6Float3ixEi(ptr noundef nonnull align 4 dereferenceable(12), i32 noundef) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZSt4swapIjENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #3

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH16TriangleSplitter5RangeC2Ejj(ptr noundef nonnull align 4 dereferenceable(8), i32 noundef, i32 noundef) unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK3JPH16TriangleSplitter5Range5CountEv(ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #4 align 2

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress 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 #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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, !7, i64 0}
!6 = !{!"_ZTSN3JPH16TriangleSplitter5RangeE", !7, i64 0, !7, i64 4}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!6, !7, i64 4}
!11 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}
!15 = distinct !{!15, !13}
!16 = !{i64 2156779364}
!17 = !{i64 2156779727}
!18 = !{i64 2156780086}
!19 = !{i64 2156780507}
!20 = distinct !{!20, !13}
!21 = !{i64 2156784991}
!22 = distinct !{!22, !13}


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