; LLVM IR from yangfengzzz/DigitalVox3 :: vox.render/geometry/skinning_job.ll (ZN3vox8geometry15SkinningPNNOIT1ERKNS0_11SkinningJobE)

; 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.vox::geometry::SkinningJob" = type { i32, i32, %"struct.vox::span", %"struct.vox::span", %"struct.vox::span.0", i64, %"struct.vox::span.1", i64, %"struct.vox::span.1", i64, %"struct.vox::span.1", i64, %"struct.vox::span.1", i64, %"struct.vox::span.2", i64, %"struct.vox::span.2", i64, %"struct.vox::span.2", i64 }
%"struct.vox::span" = type { ptr, i64 }
%"struct.vox::span.0" = type { ptr, i64 }
%"struct.vox::span.1" = type { ptr, i64 }
%"struct.vox::span.2" = type { ptr, i64 }

@.str.1 = external hidden unnamed_addr constant [93 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [104 x i8], align 1
@__PRETTY_FUNCTION__._ZN3vox8geometry15SkinningPNNOIT1ERKNS0_11SkinningJobE = external hidden unnamed_addr constant [57 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: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3vox4spanIKfE5emptyEv(ptr noundef nonnull align 8 dereferenceable(16)) #1 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK3vox4spanIKtE5beginEv(ptr noundef nonnull align 8 dereferenceable(16)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK3vox4spanIKfE5beginEv(ptr noundef nonnull align 8 dereferenceable(16)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK3vox4spanIfE5beginEv(ptr noundef nonnull align 8 dereferenceable(16)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 16 dereferenceable(64) ptr @_ZNK3vox4spanIKNS_4math8Float4x4EEixEm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) #1 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef <4 x float> @_ZN3vox4math11simd_float48LoadPtrUEPKf(ptr noundef) #3

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef <4 x float> @_ZN3vox4math14TransformPointERKNS0_8Float4x4EDv4_f(ptr noundef nonnull align 16 dereferenceable(64), <4 x float> noundef) #3

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN3vox4math10Store3PtrUEDv4_fPf(<4 x float> noundef, ptr noundef) #3

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef <4 x float> @_ZN3vox4math11simd_float49Load3PtrUEPKf(ptr noundef) #3

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3vox8geometry15SkinningPNNOIT1ERKNS0_11SkinningJobE(ptr noundef nonnull align 8 dereferenceable(232) %0) #4 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i16, align 2
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca <4 x float>, align 16
  %14 = alloca <4 x float>, align 16
  %15 = alloca <4 x float>, align 16
  %16 = alloca <4 x float>, align 16
  %17 = alloca i16, align 2
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca <4 x float>, align 16
  %21 = alloca <4 x float>, align 16
  %22 = alloca <4 x float>, align 16
  %23 = alloca <4 x float>, align 16
  store ptr %0, ptr %2, align 8, !tbaa !5
  %24 = load ptr, ptr %2, align 8, !tbaa !5
  %25 = getelementptr inbounds %"struct.vox::geometry::SkinningJob", ptr %24, i32 0, i32 0
  %26 = load i32, ptr %25, align 8, !tbaa !9
  %27 = icmp ne i32 %26, 0
  br i1 %27, label %28, label %40

28:                                               ; preds = %1
  %29 = load ptr, ptr %2, align 8, !tbaa !5
  %30 = getelementptr inbounds %"struct.vox::geometry::SkinningJob", ptr %29, i32 0, i32 8
  %31 = call noundef zeroext i1 @_ZNK3vox4spanIKfE5emptyEv(ptr noundef nonnull align 8 dereferenceable(16) %30)
  br i1 %31, label %40, label %32

32:                                               ; preds = %28
  %33 = load ptr, ptr %2, align 8, !tbaa !5
  %34 = getelementptr inbounds %"struct.vox::geometry::SkinningJob", ptr %33, i32 0, i32 10
  %35 = call noundef zeroext i1 @_ZNK3vox4spanIKfE5emptyEv(ptr noundef nonnull align 8 dereferenceable(16) %34)
  br i1 %35, label %40, label %36

36:                                               ; preds = %32
  %37 = load ptr, ptr %2, align 8, !tbaa !5
  %38 = getelementptr inbounds %"struct.vox::geometry::SkinningJob", ptr %37, i32 0, i32 12
  %39 = call noundef zeroext i1 @_ZNK3vox4spanIKfE5emptyEv(ptr noundef nonnull align 8 dereferenceable(16) %38)
  br label %40

40:                                               ; preds = %36, %32, %28, %1
  %41 = phi i1 [ false, %32 ], [ false, %28 ], [ false, %1 ], [ %39, %36 ]
  br i1 %41, label %42, label %43

42:                                               ; preds = %40
  br label %45

43:                                               ; preds = %40
  call void @__assert_fail(ptr noundef @.str.2, ptr noundef @.str.1, i32 noundef 416, ptr noundef @__PRETTY_FUNCTION__._ZN3vox8geometry15SkinningPNNOIT1ERKNS0_11SkinningJobE) #6
  unreachable

44:                                               ; No predecessors!
  br label %45

45:                                               ; preds = %44, %42
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #7
  %46 = load ptr, ptr %2, align 8, !tbaa !5
  %47 = getelementptr inbounds %"struct.vox::geometry::SkinningJob", ptr %46, i32 0, i32 4
  %48 = call noundef ptr @_ZNK3vox4spanIKtE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %47)
  store ptr %48, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #7
  %49 = load ptr, ptr %2, align 8, !tbaa !5
  %50 = getelementptr inbounds %"struct.vox::geometry::SkinningJob", ptr %49, i32 0, i32 8
  %51 = call noundef ptr @_ZNK3vox4spanIKfE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %50)
  store ptr %51, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #7
  %52 = load ptr, ptr %2, align 8, !tbaa !5
  %53 = getelementptr inbounds %"struct.vox::geometry::SkinningJob", ptr %52, i32 0, i32 14
  %54 = call noundef ptr @_ZNK3vox4spanIfE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %53)
  store ptr %54, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #7
  %55 = load ptr, ptr %2, align 8, !tbaa !5
  %56 = getelementptr inbounds %"struct.vox::geometry::SkinningJob", ptr %55, i32 0, i32 10
  %57 = call noundef ptr @_ZNK3vox4spanIKfE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %56)
  store ptr %57, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  %58 = load ptr, ptr %2, align 8, !tbaa !5
  %59 = getelementptr inbounds %"struct.vox::geometry::SkinningJob", ptr %58, i32 0, i32 16
  %60 = call noundef ptr @_ZNK3vox4spanIfE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %59)
  store ptr %60, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  %61 = load ptr, ptr %2, align 8, !tbaa !5
  %62 = getelementptr inbounds %"struct.vox::geometry::SkinningJob", ptr %61, i32 0, i32 0
  %63 = load i32, ptr %62, align 8, !tbaa !9
  %64 = sub nsw i32 %63, 1
  store i32 %64, ptr %8, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  store i32 0, ptr %9, align 4, !tbaa !17
  br label %65

65:                                               ; preds = %130, %45
  %66 = load i32, ptr %9, align 4, !tbaa !17
  %67 = load i32, ptr %8, align 4, !tbaa !17
  %68 = icmp slt i32 %66, %67
  br i1 %68, label %70, label %69

69:                                               ; preds = %65
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  br label %133

70:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 2, ptr %10) #7
  %71 = load ptr, ptr %3, align 8, !tbaa !5
  %72 = getelementptr inbounds i16, ptr %71, i64 0
  %73 = load i16, ptr %72, align 2, !tbaa !18
  store i16 %73, ptr %10, align 2, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  %74 = load ptr, ptr %2, align 8, !tbaa !5
  %75 = getelementptr inbounds %"struct.vox::geometry::SkinningJob", ptr %74, i32 0, i32 2
  %76 = load i16, ptr %10, align 2, !tbaa !18
  %77 = zext i16 %76 to i64
  %78 = call noundef nonnull align 16 dereferenceable(64) ptr @_ZNK3vox4spanIKNS_4math8Float4x4EEixEm(ptr noundef nonnull align 8 dereferenceable(16) %75, i64 noundef %77)
  store ptr %78, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  %79 = load ptr, ptr %11, align 8, !tbaa !5
  store ptr %79, ptr %12, align 8, !tbaa !5
  %80 = load ptr, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #7
  %81 = load ptr, ptr %4, align 8, !tbaa !5
  %82 = call noundef <4 x float> @_ZN3vox4math11simd_float48LoadPtrUEPKf(ptr noundef %81)
  store <4 x float> %82, ptr %13, align 16, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #7
  %83 = load ptr, ptr %11, align 8, !tbaa !5
  %84 = load <4 x float>, ptr %13, align 16, !tbaa !20
  %85 = call noundef <4 x float> @_ZN3vox4math14TransformPointERKNS0_8Float4x4EDv4_f(ptr noundef nonnull align 16 dereferenceable(64) %83, <4 x float> noundef %84)
  store <4 x float> %85, ptr %14, align 16, !tbaa !20
  %86 = load <4 x float>, ptr %14, align 16, !tbaa !20
  %87 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN3vox4math10Store3PtrUEDv4_fPf(<4 x float> noundef %86, ptr noundef %87)
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #7
  %88 = load ptr, ptr %6, align 8, !tbaa !5
  %89 = call noundef <4 x float> @_ZN3vox4math11simd_float48LoadPtrUEPKf(ptr noundef %88)
  store <4 x float> %89, ptr %15, align 16, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #7
  %90 = load ptr, ptr %12, align 8, !tbaa !5
  %91 = load <4 x float>, ptr %15, align 16, !tbaa !20
  %92 = call noundef <4 x float> @_ZN3vox4math15TransformVectorERKNS0_8Float4x4EDv4_f(ptr noundef nonnull align 16 dereferenceable(64) %90, <4 x float> noundef %91)
  store <4 x float> %92, ptr %16, align 16, !tbaa !20
  %93 = load <4 x float>, ptr %16, align 16, !tbaa !20
  %94 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZN3vox4math10Store3PtrUEDv4_fPf(<4 x float> noundef %93, ptr noundef %94)
  %95 = load ptr, ptr %3, align 8, !tbaa !5
  %96 = ptrtoint ptr %95 to i64
  %97 = load ptr, ptr %2, align 8, !tbaa !5
  %98 = getelementptr inbounds %"struct.vox::geometry::SkinningJob", ptr %97, i32 0, i32 5
  %99 = load i64, ptr %98, align 8, !tbaa !21
  %100 = add i64 %96, %99
  %101 = inttoptr i64 %100 to ptr
  store ptr %101, ptr %3, align 8, !tbaa !5
  %102 = load ptr, ptr %4, align 8, !tbaa !5
  %103 = ptrtoint ptr %102 to i64
  %104 = load ptr, ptr %2, align 8, !tbaa !5
  %105 = getelementptr inbounds %"struct.vox::geometry::SkinningJob", ptr %104, i32 0, i32 9
  %106 = load i64, ptr %105, align 8, !tbaa !22
  %107 = add i64 %103, %106
  %108 = inttoptr i64 %107 to ptr
  store ptr %108, ptr %4, align 8, !tbaa !5
  %109 = load ptr, ptr %5, align 8, !tbaa !5
  %110 = ptrtoint ptr %109 to i64
  %111 = load ptr, ptr %2, align 8, !tbaa !5
  %112 = getelementptr inbounds %"struct.vox::geometry::SkinningJob", ptr %111, i32 0, i32 15
  %113 = load i64, ptr %112, align 8, !tbaa !23
  %114 = add i64 %110, %113
  %115 = inttoptr i64 %114 to ptr
  store ptr %115, ptr %5, align 8, !tbaa !5
  %116 = load ptr, ptr %6, align 8, !tbaa !5
  %117 = ptrtoint ptr %116 to i64
  %118 = load ptr, ptr %2, align 8, !tbaa !5
  %119 = getelementptr inbounds %"struct.vox::geometry::SkinningJob", ptr %118, i32 0, i32 11
  %120 = load i64, ptr %119, align 8, !tbaa !24
  %121 = add i64 %117, %120
  %122 = inttoptr i64 %121 to ptr
  store ptr %122, ptr %6, align 8, !tbaa !5
  %123 = load ptr, ptr %7, align 8, !tbaa !5
  %124 = ptrtoint ptr %123 to i64
  %125 = load ptr, ptr %2, align 8, !tbaa !5
  %126 = getelementptr inbounds %"struct.vox::geometry::SkinningJob", ptr %125, i32 0, i32 17
  %127 = load i64, ptr %126, align 8, !tbaa !25
  %128 = add i64 %124, %127
  %129 = inttoptr i64 %128 to ptr
  store ptr %129, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 2, ptr %10) #7
  br label %130

130:                                              ; preds = %70
  %131 = load i32, ptr %9, align 4, !tbaa !17
  %132 = add nsw i32 %131, 1
  store i32 %132, ptr %9, align 4, !tbaa !17
  br label %65, !llvm.loop !26

133:                                              ; preds = %69
  call void @llvm.lifetime.start.p0(i64 2, ptr %17) #7
  %134 = load ptr, ptr %3, align 8, !tbaa !5
  %135 = getelementptr inbounds i16, ptr %134, i64 0
  %136 = load i16, ptr %135, align 2, !tbaa !18
  store i16 %136, ptr %17, align 2, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  %137 = load ptr, ptr %2, align 8, !tbaa !5
  %138 = getelementptr inbounds %"struct.vox::geometry::SkinningJob", ptr %137, i32 0, i32 2
  %139 = load i16, ptr %17, align 2, !tbaa !18
  %140 = zext i16 %139 to i64
  %141 = call noundef nonnull align 16 dereferenceable(64) ptr @_ZNK3vox4spanIKNS_4math8Float4x4EEixEm(ptr noundef nonnull align 8 dereferenceable(16) %138, i64 noundef %140)
  store ptr %141, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  %142 = load ptr, ptr %18, align 8, !tbaa !5
  store ptr %142, ptr %19, align 8, !tbaa !5
  %143 = load ptr, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #7
  %144 = load ptr, ptr %4, align 8, !tbaa !5
  %145 = call noundef <4 x float> @_ZN3vox4math11simd_float49Load3PtrUEPKf(ptr noundef %144)
  store <4 x float> %145, ptr %20, align 16, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #7
  %146 = load ptr, ptr %18, align 8, !tbaa !5
  %147 = load <4 x float>, ptr %20, align 16, !tbaa !20
  %148 = call noundef <4 x float> @_ZN3vox4math14TransformPointERKNS0_8Float4x4EDv4_f(ptr noundef nonnull align 16 dereferenceable(64) %146, <4 x float> noundef %147)
  store <4 x float> %148, ptr %21, align 16, !tbaa !20
  %149 = load <4 x float>, ptr %21, align 16, !tbaa !20
  %150 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN3vox4math10Store3PtrUEDv4_fPf(<4 x float> noundef %149, ptr noundef %150)
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #7
  %151 = load ptr, ptr %6, align 8, !tbaa !5
  %152 = call noundef <4 x float> @_ZN3vox4math11simd_float49Load3PtrUEPKf(ptr noundef %151)
  store <4 x float> %152, ptr %22, align 16, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #7
  %153 = load ptr, ptr %19, align 8, !tbaa !5
  %154 = load <4 x float>, ptr %22, align 16, !tbaa !20
  %155 = call noundef <4 x float> @_ZN3vox4math15TransformVectorERKNS0_8Float4x4EDv4_f(ptr noundef nonnull align 16 dereferenceable(64) %153, <4 x float> noundef %154)
  store <4 x float> %155, ptr %23, align 16, !tbaa !20
  %156 = load <4 x float>, ptr %23, align 16, !tbaa !20
  %157 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZN3vox4math10Store3PtrUEDv4_fPf(<4 x float> noundef %156, ptr noundef %157)
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 2, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #7
  ret void
}

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef <4 x float> @_ZN3vox4math15TransformVectorERKNS0_8Float4x4EDv4_f(ptr noundef nonnull align 16 dereferenceable(64), <4 x float> noundef) #5

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { alwaysinline mustprogress uwtable "min-legal-vector-width"="128" "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 uwtable "min-legal-vector-width"="128" "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 nounwind uwtable "min-legal-vector-width"="128" "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 = { noreturn nounwind }
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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"_ZTSN3vox8geometry11SkinningJobE", !11, i64 0, !11, i64 4, !12, i64 8, !12, i64 24, !14, i64 40, !13, i64 56, !15, i64 64, !13, i64 80, !15, i64 88, !13, i64 104, !15, i64 112, !13, i64 128, !15, i64 136, !13, i64 152, !16, i64 160, !13, i64 176, !16, i64 184, !13, i64 200, !16, i64 208, !13, i64 224}
!11 = !{!"int", !7, i64 0}
!12 = !{!"_ZTSN3vox4spanIKNS_4math8Float4x4EEE", !6, i64 0, !13, i64 8}
!13 = !{!"long", !7, i64 0}
!14 = !{!"_ZTSN3vox4spanIKtEE", !6, i64 0, !13, i64 8}
!15 = !{!"_ZTSN3vox4spanIKfEE", !6, i64 0, !13, i64 8}
!16 = !{!"_ZTSN3vox4spanIfEE", !6, i64 0, !13, i64 8}
!17 = !{!11, !11, i64 0}
!18 = !{!19, !19, i64 0}
!19 = !{!"short", !7, i64 0}
!20 = !{!7, !7, i64 0}
!21 = !{!10, !13, i64 56}
!22 = !{!10, !13, i64 104}
!23 = !{!10, !13, i64 176}
!24 = !{!10, !13, i64 128}
!25 = !{!10, !13, i64 200}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}


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

@.str.1 = external hidden unnamed_addr constant [93 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [104 x i8], align 1
@__PRETTY_FUNCTION__._ZN3vox8geometry15SkinningPNNOIT1ERKNS0_11SkinningJobE = external hidden unnamed_addr constant [57 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3vox4spanIKfE5emptyEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #0 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK3vox4spanIKtE5beginEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK3vox4spanIKfE5beginEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK3vox4spanIfE5beginEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 16 dereferenceable(64) ptr @_ZNK3vox4spanIKNS_4math8Float4x4EEixEm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) local_unnamed_addr #0 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef <4 x float> @_ZN3vox4math11simd_float48LoadPtrUEPKf(ptr noundef) local_unnamed_addr #2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef <4 x float> @_ZN3vox4math14TransformPointERKNS0_8Float4x4EDv4_f(ptr noundef nonnull align 16 dereferenceable(64), <4 x float> noundef) local_unnamed_addr #2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN3vox4math10Store3PtrUEDv4_fPf(<4 x float> noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef <4 x float> @_ZN3vox4math11simd_float49Load3PtrUEPKf(ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3vox8geometry15SkinningPNNOIT1ERKNS0_11SkinningJobE(ptr noundef nonnull align 8 dereferenceable(232) %0) local_unnamed_addr #3 {
  %2 = load i32, ptr %0, align 8, !tbaa !5
  %.not = icmp eq i32 %2, 0
  br i1 %.not, label %.critedge, label %3

3:                                                ; preds = %1
  %4 = getelementptr inbounds i8, ptr %0, i64 88
  %5 = tail call noundef zeroext i1 @_ZNK3vox4spanIKfE5emptyEv(ptr noundef nonnull align 8 dereferenceable(16) %4)
  br i1 %5, label %.critedge, label %6

6:                                                ; preds = %3
  %7 = getelementptr inbounds i8, ptr %0, i64 112
  %8 = tail call noundef zeroext i1 @_ZNK3vox4spanIKfE5emptyEv(ptr noundef nonnull align 8 dereferenceable(16) %7)
  br i1 %8, label %.critedge, label %9

9:                                                ; preds = %6
  %10 = getelementptr inbounds i8, ptr %0, i64 136
  %11 = tail call noundef zeroext i1 @_ZNK3vox4spanIKfE5emptyEv(ptr noundef nonnull align 8 dereferenceable(16) %10)
  br i1 %11, label %12, label %.critedge

.critedge:                                        ; preds = %6, %3, %1, %9
  tail call void @__assert_fail(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.1, i32 noundef 416, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN3vox8geometry15SkinningPNNOIT1ERKNS0_11SkinningJobE) #5
  unreachable

12:                                               ; preds = %9
  %13 = getelementptr inbounds i8, ptr %0, i64 40
  %14 = tail call noundef ptr @_ZNK3vox4spanIKtE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %13)
  %15 = tail call noundef ptr @_ZNK3vox4spanIKfE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %4)
  %16 = getelementptr inbounds i8, ptr %0, i64 160
  %17 = tail call noundef ptr @_ZNK3vox4spanIfE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %16)
  %18 = tail call noundef ptr @_ZNK3vox4spanIKfE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %7)
  %19 = getelementptr inbounds i8, ptr %0, i64 184
  %20 = tail call noundef ptr @_ZNK3vox4spanIfE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %19)
  %21 = load i32, ptr %0, align 8, !tbaa !5
  %22 = icmp sgt i32 %21, 1
  br i1 %22, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %12
  %23 = getelementptr inbounds i8, ptr %0, i64 8
  %24 = getelementptr inbounds i8, ptr %0, i64 56
  %25 = getelementptr inbounds i8, ptr %0, i64 104
  %26 = getelementptr inbounds i8, ptr %0, i64 176
  %27 = getelementptr inbounds i8, ptr %0, i64 128
  %28 = getelementptr inbounds i8, ptr %0, i64 200
  %29 = add nsw i32 %21, -2
  br label %38

._crit_edge:                                      ; preds = %38, %12
  %.055.lcssa = phi ptr [ %20, %12 ], [ %65, %38 ]
  %.054.lcssa = phi ptr [ %18, %12 ], [ %61, %38 ]
  %.053.lcssa = phi ptr [ %17, %12 ], [ %57, %38 ]
  %.052.lcssa = phi ptr [ %15, %12 ], [ %53, %38 ]
  %.0.lcssa = phi ptr [ %14, %12 ], [ %49, %38 ]
  %30 = load i16, ptr %.0.lcssa, align 2, !tbaa !16
  %31 = getelementptr inbounds i8, ptr %0, i64 8
  %32 = zext i16 %30 to i64
  %33 = tail call noundef nonnull align 16 dereferenceable(64) ptr @_ZNK3vox4spanIKNS_4math8Float4x4EEixEm(ptr noundef nonnull align 8 dereferenceable(16) %31, i64 noundef %32)
  %34 = tail call noundef <4 x float> @_ZN3vox4math11simd_float49Load3PtrUEPKf(ptr noundef %.052.lcssa)
  %35 = tail call noundef <4 x float> @_ZN3vox4math14TransformPointERKNS0_8Float4x4EDv4_f(ptr noundef nonnull align 16 dereferenceable(64) %33, <4 x float> noundef %34)
  tail call void @_ZN3vox4math10Store3PtrUEDv4_fPf(<4 x float> noundef %35, ptr noundef %.053.lcssa)
  %36 = tail call noundef <4 x float> @_ZN3vox4math11simd_float49Load3PtrUEPKf(ptr noundef %.054.lcssa)
  %37 = tail call noundef <4 x float> @_ZN3vox4math15TransformVectorERKNS0_8Float4x4EDv4_f(ptr noundef nonnull align 16 dereferenceable(64) %33, <4 x float> noundef %36)
  tail call void @_ZN3vox4math10Store3PtrUEDv4_fPf(<4 x float> noundef %37, ptr noundef %.055.lcssa)
  ret void

38:                                               ; preds = %.lr.ph, %38
  %.062 = phi ptr [ %14, %.lr.ph ], [ %49, %38 ]
  %.05261 = phi ptr [ %15, %.lr.ph ], [ %53, %38 ]
  %.05360 = phi ptr [ %17, %.lr.ph ], [ %57, %38 ]
  %.05459 = phi ptr [ %18, %.lr.ph ], [ %61, %38 ]
  %.05558 = phi ptr [ %20, %.lr.ph ], [ %65, %38 ]
  %.05657 = phi i32 [ 0, %.lr.ph ], [ %66, %38 ]
  %39 = load i16, ptr %.062, align 2, !tbaa !16
  %40 = zext i16 %39 to i64
  %41 = tail call noundef nonnull align 16 dereferenceable(64) ptr @_ZNK3vox4spanIKNS_4math8Float4x4EEixEm(ptr noundef nonnull align 8 dereferenceable(16) %23, i64 noundef %40)
  %42 = tail call noundef <4 x float> @_ZN3vox4math11simd_float48LoadPtrUEPKf(ptr noundef %.05261)
  %43 = tail call noundef <4 x float> @_ZN3vox4math14TransformPointERKNS0_8Float4x4EDv4_f(ptr noundef nonnull align 16 dereferenceable(64) %41, <4 x float> noundef %42)
  tail call void @_ZN3vox4math10Store3PtrUEDv4_fPf(<4 x float> noundef %43, ptr noundef %.05360)
  %44 = tail call noundef <4 x float> @_ZN3vox4math11simd_float48LoadPtrUEPKf(ptr noundef %.05459)
  %45 = tail call noundef <4 x float> @_ZN3vox4math15TransformVectorERKNS0_8Float4x4EDv4_f(ptr noundef nonnull align 16 dereferenceable(64) %41, <4 x float> noundef %44)
  tail call void @_ZN3vox4math10Store3PtrUEDv4_fPf(<4 x float> noundef %45, ptr noundef %.05558)
  %46 = ptrtoint ptr %.062 to i64
  %47 = load i64, ptr %24, align 8, !tbaa !18
  %48 = add i64 %47, %46
  %49 = inttoptr i64 %48 to ptr
  %50 = ptrtoint ptr %.05261 to i64
  %51 = load i64, ptr %25, align 8, !tbaa !19
  %52 = add i64 %51, %50
  %53 = inttoptr i64 %52 to ptr
  %54 = ptrtoint ptr %.05360 to i64
  %55 = load i64, ptr %26, align 8, !tbaa !20
  %56 = add i64 %55, %54
  %57 = inttoptr i64 %56 to ptr
  %58 = ptrtoint ptr %.05459 to i64
  %59 = load i64, ptr %27, align 8, !tbaa !21
  %60 = add i64 %59, %58
  %61 = inttoptr i64 %60 to ptr
  %62 = ptrtoint ptr %.05558 to i64
  %63 = load i64, ptr %28, align 8, !tbaa !22
  %64 = add i64 %63, %62
  %65 = inttoptr i64 %64 to ptr
  %66 = add nuw nsw i32 %.05657, 1
  %exitcond.not = icmp eq i32 %.05657, %29
  br i1 %exitcond.not, label %._crit_edge, label %38, !llvm.loop !23
}

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef <4 x float> @_ZN3vox4math15TransformVectorERKNS0_8Float4x4EDv4_f(ptr noundef nonnull align 16 dereferenceable(64), <4 x float> noundef) local_unnamed_addr #4

attributes #0 = { 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 #1 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { alwaysinline mustprogress uwtable "min-legal-vector-width"="128" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress uwtable "min-legal-vector-width"="128" "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 = { alwaysinline mustprogress nounwind uwtable "min-legal-vector-width"="128" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { noreturn nounwind }

!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 = !{!"_ZTSN3vox8geometry11SkinningJobE", !7, i64 0, !7, i64 4, !10, i64 8, !10, i64 24, !13, i64 40, !12, i64 56, !14, i64 64, !12, i64 80, !14, i64 88, !12, i64 104, !14, i64 112, !12, i64 128, !14, i64 136, !12, i64 152, !15, i64 160, !12, i64 176, !15, i64 184, !12, i64 200, !15, i64 208, !12, i64 224}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSN3vox4spanIKNS_4math8Float4x4EEE", !11, i64 0, !12, i64 8}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!"long", !8, i64 0}
!13 = !{!"_ZTSN3vox4spanIKtEE", !11, i64 0, !12, i64 8}
!14 = !{!"_ZTSN3vox4spanIKfEE", !11, i64 0, !12, i64 8}
!15 = !{!"_ZTSN3vox4spanIfEE", !11, i64 0, !12, i64 8}
!16 = !{!17, !17, i64 0}
!17 = !{!"short", !8, i64 0}
!18 = !{!6, !12, i64 56}
!19 = !{!6, !12, i64 104}
!20 = !{!6, !12, i64 176}
!21 = !{!6, !12, i64 128}
!22 = !{!6, !12, i64 200}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}


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