; LLVM IR from ermig1979/Simd :: src/Simd/SimdBaseWarpAffine.ll (ZN4Simd4Base17WarpAffineNearest4InitEv)

; 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.Simd::Point" = type { float, float }
%"class.Simd::WarpAffine" = type { %"struct.Simd::Deletable", %"struct.Simd::WarpAffParam", i8, i64, i64, %"struct.Simd::Array" }
%"struct.Simd::Deletable" = type { ptr }
%"struct.Simd::WarpAffParam" = type { i32, [6 x float], [6 x float], [4 x i8], i64, i64, i64, i64, i64, i64, i64, i64 }
%"struct.Simd::Array" = type { ptr, i64 }
%"class.Simd::Base::WarpAffineNearest" = type { %"class.Simd::WarpAffine", %"struct.Simd::Array.0", %"struct.Simd::Array.0", ptr }
%"struct.Simd::Array.0" = type { ptr, i64 }

; 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) #0

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4Simd4Base17WarpAffineNearest4InitEv(ptr noundef nonnull align 8 dereferenceable(208) %0) #1 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca float, align 4
  %5 = alloca float, align 4
  %6 = alloca [4 x %"struct.Simd::Point"], align 16
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca %"struct.Simd::Point", align 4
  %10 = alloca %"struct.Simd::Point", align 4
  %11 = alloca %"struct.Simd::Point", align 4
  %12 = alloca %"struct.Simd::Point", align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %13 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #5
  %14 = getelementptr inbounds %"class.Simd::WarpAffine", ptr %13, i32 0, i32 1
  store ptr %14, ptr %3, align 8, !tbaa !5
  %15 = getelementptr inbounds %"class.Simd::Base::WarpAffineNearest", ptr %13, i32 0, i32 1
  %16 = load ptr, ptr %3, align 8, !tbaa !5
  %17 = getelementptr inbounds %"struct.Simd::WarpAffParam", ptr %16, i32 0, i32 8
  %18 = load i64, ptr %17, align 8, !tbaa !9
  call void @_ZN4Simd5ArrayIiE6ResizeEmbm(ptr noundef nonnull align 8 dereferenceable(16) %15, i64 noundef %18, i1 noundef zeroext false, i64 noundef 8)
  %19 = getelementptr inbounds %"class.Simd::Base::WarpAffineNearest", ptr %13, i32 0, i32 2
  %20 = load ptr, ptr %3, align 8, !tbaa !5
  %21 = getelementptr inbounds %"struct.Simd::WarpAffParam", ptr %20, i32 0, i32 8
  %22 = load i64, ptr %21, align 8, !tbaa !9
  call void @_ZN4Simd5ArrayIiE6ResizeEmbm(ptr noundef nonnull align 8 dereferenceable(16) %19, i64 noundef %22, i1 noundef zeroext false, i64 noundef 8)
  %23 = load ptr, ptr %3, align 8, !tbaa !5
  %24 = getelementptr inbounds %"struct.Simd::WarpAffParam", ptr %23, i32 0, i32 7
  %25 = load i64, ptr %24, align 8, !tbaa !13
  %26 = load ptr, ptr %3, align 8, !tbaa !5
  %27 = getelementptr inbounds %"struct.Simd::WarpAffParam", ptr %26, i32 0, i32 11
  %28 = load i64, ptr %27, align 8, !tbaa !14
  %29 = call noundef i64 @_ZN4Simd7AlignHiEmm(i64 noundef %25, i64 noundef %28)
  %30 = load ptr, ptr %3, align 8, !tbaa !5
  %31 = getelementptr inbounds %"struct.Simd::WarpAffParam", ptr %30, i32 0, i32 11
  %32 = load i64, ptr %31, align 8, !tbaa !14
  %33 = add i64 %29, %32
  %34 = mul i64 %33, 4
  %35 = getelementptr inbounds %"class.Simd::WarpAffine", ptr %13, i32 0, i32 3
  store i64 %34, ptr %35, align 8, !tbaa !15
  %36 = getelementptr inbounds %"class.Simd::WarpAffine", ptr %13, i32 0, i32 5
  %37 = getelementptr inbounds %"class.Simd::WarpAffine", ptr %13, i32 0, i32 3
  %38 = load i64, ptr %37, align 8, !tbaa !15
  %39 = getelementptr inbounds %"class.Simd::WarpAffine", ptr %13, i32 0, i32 4
  %40 = load i64, ptr %39, align 8, !tbaa !20
  %41 = mul i64 %38, %40
  call void @_ZN4Simd5ArrayIhE6ResizeEmbm(ptr noundef nonnull align 8 dereferenceable(16) %36, i64 noundef %41, i1 noundef zeroext false, i64 noundef 8)
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  %42 = load ptr, ptr %3, align 8, !tbaa !5
  %43 = getelementptr inbounds %"struct.Simd::WarpAffParam", ptr %42, i32 0, i32 4
  %44 = load i64, ptr %43, align 8, !tbaa !21
  %45 = sub i64 %44, 1
  %46 = uitofp i64 %45 to float
  store float %46, ptr %4, align 4, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  %47 = load ptr, ptr %3, align 8, !tbaa !5
  %48 = getelementptr inbounds %"struct.Simd::WarpAffParam", ptr %47, i32 0, i32 5
  %49 = load i64, ptr %48, align 8, !tbaa !24
  %50 = sub i64 %49, 1
  %51 = uitofp i64 %50 to float
  store float %51, ptr %5, align 4, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 32, ptr %6) #5
  %52 = getelementptr inbounds [4 x %"struct.Simd::Point"], ptr %6, i32 0, i32 0
  %53 = getelementptr inbounds %"struct.Simd::Point", ptr %52, i64 4
  br label %54

54:                                               ; preds = %56, %1
  %55 = phi ptr [ %52, %1 ], [ %57, %56 ]
  invoke void @_ZN4Simd5PointIfEC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %55)
          to label %56 unwind label %96

56:                                               ; preds = %54
  %57 = getelementptr inbounds %"struct.Simd::Point", ptr %55, i64 1
  %58 = icmp eq ptr %57, %53
  br i1 %58, label %59, label %54

59:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %60 = load ptr, ptr %3, align 8, !tbaa !5
  %61 = getelementptr inbounds %"struct.Simd::WarpAffParam", ptr %60, i32 0, i32 1
  %62 = getelementptr inbounds [6 x float], ptr %61, i64 0, i64 0
  invoke void @_ZN4Simd4Base4ConvEffPKf(ptr dead_on_unwind writable sret(%"struct.Simd::Point") align 4 %9, float noundef 0.000000e+00, float noundef 0.000000e+00, ptr noundef %62)
          to label %63 unwind label %106

63:                                               ; preds = %59
  %64 = getelementptr inbounds [4 x %"struct.Simd::Point"], ptr %6, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %64, ptr align 4 %9, i64 8, i1 false), !tbaa.struct !25
  call void @_ZN4Simd5PointIfED2Ev(ptr noundef nonnull align 4 dereferenceable(8) %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %65 = load float, ptr %4, align 4, !tbaa !22
  %66 = load ptr, ptr %3, align 8, !tbaa !5
  %67 = getelementptr inbounds %"struct.Simd::WarpAffParam", ptr %66, i32 0, i32 1
  %68 = getelementptr inbounds [6 x float], ptr %67, i64 0, i64 0
  invoke void @_ZN4Simd4Base4ConvEffPKf(ptr dead_on_unwind writable sret(%"struct.Simd::Point") align 4 %10, float noundef %65, float noundef 0.000000e+00, ptr noundef %68)
          to label %69 unwind label %110

69:                                               ; preds = %63
  %70 = getelementptr inbounds [4 x %"struct.Simd::Point"], ptr %6, i64 0, i64 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %70, ptr align 4 %10, i64 8, i1 false), !tbaa.struct !25
  call void @_ZN4Simd5PointIfED2Ev(ptr noundef nonnull align 4 dereferenceable(8) %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %71 = load float, ptr %4, align 4, !tbaa !22
  %72 = load float, ptr %5, align 4, !tbaa !22
  %73 = load ptr, ptr %3, align 8, !tbaa !5
  %74 = getelementptr inbounds %"struct.Simd::WarpAffParam", ptr %73, i32 0, i32 1
  %75 = getelementptr inbounds [6 x float], ptr %74, i64 0, i64 0
  invoke void @_ZN4Simd4Base4ConvEffPKf(ptr dead_on_unwind writable sret(%"struct.Simd::Point") align 4 %11, float noundef %71, float noundef %72, ptr noundef %75)
          to label %76 unwind label %114

76:                                               ; preds = %69
  %77 = getelementptr inbounds [4 x %"struct.Simd::Point"], ptr %6, i64 0, i64 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %77, ptr align 4 %11, i64 8, i1 false), !tbaa.struct !25
  call void @_ZN4Simd5PointIfED2Ev(ptr noundef nonnull align 4 dereferenceable(8) %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %78 = load float, ptr %5, align 4, !tbaa !22
  %79 = load ptr, ptr %3, align 8, !tbaa !5
  %80 = getelementptr inbounds %"struct.Simd::WarpAffParam", ptr %79, i32 0, i32 1
  %81 = getelementptr inbounds [6 x float], ptr %80, i64 0, i64 0
  invoke void @_ZN4Simd4Base4ConvEffPKf(ptr dead_on_unwind writable sret(%"struct.Simd::Point") align 4 %12, float noundef 0.000000e+00, float noundef %78, ptr noundef %81)
          to label %82 unwind label %118

82:                                               ; preds = %76
  %83 = getelementptr inbounds [4 x %"struct.Simd::Point"], ptr %6, i64 0, i64 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %83, ptr align 4 %12, i64 8, i1 false), !tbaa.struct !25
  call void @_ZN4Simd5PointIfED2Ev(ptr noundef nonnull align 4 dereferenceable(8) %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  %84 = getelementptr inbounds [4 x %"struct.Simd::Point"], ptr %6, i64 0, i64 0
  %85 = load ptr, ptr %13, align 8, !tbaa !26
  %86 = getelementptr inbounds ptr, ptr %85, i64 3
  %87 = load ptr, ptr %86, align 8
  invoke void %87(ptr noundef nonnull align 8 dereferenceable(208) %13, ptr noundef %84)
          to label %88 unwind label %122

88:                                               ; preds = %82
  %89 = getelementptr inbounds [4 x %"struct.Simd::Point"], ptr %6, i32 0, i32 0
  %90 = getelementptr inbounds %"struct.Simd::Point", ptr %89, i64 4
  br label %91

91:                                               ; preds = %91, %88
  %92 = phi ptr [ %90, %88 ], [ %93, %91 ]
  %93 = getelementptr inbounds %"struct.Simd::Point", ptr %92, i64 -1
  call void @_ZN4Simd5PointIfED2Ev(ptr noundef nonnull align 4 dereferenceable(8) %93) #5
  %94 = icmp eq ptr %93, %89
  br i1 %94, label %95, label %91

95:                                               ; preds = %91
  call void @llvm.lifetime.end.p0(i64 32, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
  ret void

96:                                               ; preds = %54
  %97 = landingpad { ptr, i32 }
          cleanup
  %98 = extractvalue { ptr, i32 } %97, 0
  store ptr %98, ptr %7, align 8
  %99 = extractvalue { ptr, i32 } %97, 1
  store i32 %99, ptr %8, align 4
  %100 = icmp eq ptr %52, %55
  br i1 %100, label %105, label %101

101:                                              ; preds = %101, %96
  %102 = phi ptr [ %55, %96 ], [ %103, %101 ]
  %103 = getelementptr inbounds %"struct.Simd::Point", ptr %102, i64 -1
  call void @_ZN4Simd5PointIfED2Ev(ptr noundef nonnull align 4 dereferenceable(8) %103) #5
  %104 = icmp eq ptr %103, %52
  br i1 %104, label %105, label %101

105:                                              ; preds = %101, %96
  br label %134

106:                                              ; preds = %59
  %107 = landingpad { ptr, i32 }
          cleanup
  %108 = extractvalue { ptr, i32 } %107, 0
  store ptr %108, ptr %7, align 8
  %109 = extractvalue { ptr, i32 } %107, 1
  store i32 %109, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  br label %126

110:                                              ; preds = %63
  %111 = landingpad { ptr, i32 }
          cleanup
  %112 = extractvalue { ptr, i32 } %111, 0
  store ptr %112, ptr %7, align 8
  %113 = extractvalue { ptr, i32 } %111, 1
  store i32 %113, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  br label %126

114:                                              ; preds = %69
  %115 = landingpad { ptr, i32 }
          cleanup
  %116 = extractvalue { ptr, i32 } %115, 0
  store ptr %116, ptr %7, align 8
  %117 = extractvalue { ptr, i32 } %115, 1
  store i32 %117, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  br label %126

118:                                              ; preds = %76
  %119 = landingpad { ptr, i32 }
          cleanup
  %120 = extractvalue { ptr, i32 } %119, 0
  store ptr %120, ptr %7, align 8
  %121 = extractvalue { ptr, i32 } %119, 1
  store i32 %121, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  br label %126

122:                                              ; preds = %82
  %123 = landingpad { ptr, i32 }
          cleanup
  %124 = extractvalue { ptr, i32 } %123, 0
  store ptr %124, ptr %7, align 8
  %125 = extractvalue { ptr, i32 } %123, 1
  store i32 %125, ptr %8, align 4
  br label %126

126:                                              ; preds = %122, %118, %114, %110, %106
  %127 = getelementptr inbounds [4 x %"struct.Simd::Point"], ptr %6, i32 0, i32 0
  %128 = getelementptr inbounds %"struct.Simd::Point", ptr %127, i64 4
  br label %129

129:                                              ; preds = %129, %126
  %130 = phi ptr [ %128, %126 ], [ %131, %129 ]
  %131 = getelementptr inbounds %"struct.Simd::Point", ptr %130, i64 -1
  call void @_ZN4Simd5PointIfED2Ev(ptr noundef nonnull align 4 dereferenceable(8) %131) #5
  %132 = icmp eq ptr %131, %127
  br i1 %132, label %133, label %129

133:                                              ; preds = %129
  br label %134

134:                                              ; preds = %133, %105
  call void @llvm.lifetime.end.p0(i64 32, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
  br label %135

135:                                              ; preds = %134
  %136 = load ptr, ptr %7, align 8
  %137 = load i32, ptr %8, align 4
  %138 = insertvalue { ptr, i32 } poison, ptr %136, 0
  %139 = insertvalue { ptr, i32 } %138, i32 %137, 1
  resume { ptr, i32 } %139
}

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

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN4Simd5ArrayIiE6ResizeEmbm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef, i1 noundef zeroext, i64 noundef) #3 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN4Simd7AlignHiEmm(i64 noundef, i64 noundef) #4

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN4Simd5ArrayIhE6ResizeEmbm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef, i1 noundef zeroext, i64 noundef) #3 align 2

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

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN4Simd4Base4ConvEffPKf(ptr dead_on_unwind noalias writable sret(%"struct.Simd::Point") align 4, float noundef, float noundef, ptr noundef) #3

attributes #0 = { nocallback nofree 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { alwaysinline 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 = { 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, !12, i64 88}
!10 = !{!"_ZTSN4Simd12WarpAffParamE", !11, i64 0, !7, i64 4, !7, i64 28, !7, i64 52, !12, i64 56, !12, i64 64, !12, i64 72, !12, i64 80, !12, i64 88, !12, i64 96, !12, i64 104, !12, i64 112}
!11 = !{!"_ZTS19SimdWarpAffineFlags", !7, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!10, !12, i64 80}
!14 = !{!10, !12, i64 112}
!15 = !{!16, !12, i64 136}
!16 = !{!"_ZTSN4Simd10WarpAffineE", !17, i64 0, !10, i64 8, !18, i64 128, !12, i64 136, !12, i64 144, !19, i64 152}
!17 = !{!"_ZTSN4Simd9DeletableE"}
!18 = !{!"bool", !7, i64 0}
!19 = !{!"_ZTSN4Simd5ArrayIhEE", !6, i64 0, !12, i64 8}
!20 = !{!16, !12, i64 144}
!21 = !{!10, !12, i64 56}
!22 = !{!23, !23, i64 0}
!23 = !{!"float", !7, i64 0}
!24 = !{!10, !12, i64 64}
!25 = !{i64 0, i64 4, !22, i64 4, i64 4, !22}
!26 = !{!27, !27, i64 0}
!27 = !{!"vtable pointer", !8, i64 0}


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

%"struct.Simd::Point" = type { float, float }

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4Simd4Base17WarpAffineNearest4InitEv(ptr noundef nonnull align 8 dereferenceable(208) %0) local_unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca [4 x %"struct.Simd::Point"], align 16
  %3 = alloca %"struct.Simd::Point", align 8
  %4 = alloca %"struct.Simd::Point", align 8
  %5 = alloca %"struct.Simd::Point", align 8
  %6 = alloca %"struct.Simd::Point", align 8
  %7 = getelementptr inbounds i8, ptr %0, i64 168
  %8 = getelementptr inbounds i8, ptr %0, i64 96
  %9 = load i64, ptr %8, align 8, !tbaa !5
  tail call void @_ZN4Simd5ArrayIiE6ResizeEmbm(ptr noundef nonnull align 8 dereferenceable(16) %7, i64 noundef %9, i1 noundef zeroext false, i64 noundef 8)
  %10 = getelementptr inbounds i8, ptr %0, i64 184
  %11 = load i64, ptr %8, align 8, !tbaa !5
  tail call void @_ZN4Simd5ArrayIiE6ResizeEmbm(ptr noundef nonnull align 8 dereferenceable(16) %10, i64 noundef %11, i1 noundef zeroext false, i64 noundef 8)
  %12 = getelementptr inbounds i8, ptr %0, i64 88
  %13 = load i64, ptr %12, align 8, !tbaa !11
  %14 = getelementptr inbounds i8, ptr %0, i64 120
  %15 = load i64, ptr %14, align 8, !tbaa !12
  %16 = tail call noundef i64 @_ZN4Simd7AlignHiEmm(i64 noundef %13, i64 noundef %15)
  %17 = load i64, ptr %14, align 8, !tbaa !12
  %18 = add i64 %17, %16
  %19 = shl i64 %18, 2
  %20 = getelementptr inbounds i8, ptr %0, i64 136
  store i64 %19, ptr %20, align 8, !tbaa !13
  %21 = getelementptr inbounds i8, ptr %0, i64 152
  %22 = getelementptr inbounds i8, ptr %0, i64 144
  %23 = load i64, ptr %22, align 8, !tbaa !19
  %24 = mul i64 %19, %23
  tail call void @_ZN4Simd5ArrayIhE6ResizeEmbm(ptr noundef nonnull align 8 dereferenceable(16) %21, i64 noundef %24, i1 noundef zeroext false, i64 noundef 8)
  %25 = getelementptr inbounds i8, ptr %0, i64 64
  %26 = load i64, ptr %25, align 8, !tbaa !20
  %27 = add i64 %26, -1
  %28 = getelementptr inbounds i8, ptr %0, i64 72
  %29 = load i64, ptr %28, align 8, !tbaa !21
  %30 = add i64 %29, -1
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %2) #4
  call void @_ZN4Simd5PointIfEC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %2)
  %.ptr.1 = getelementptr inbounds i8, ptr %2, i64 8
  call void @_ZN4Simd5PointIfEC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %.ptr.1)
  %.ptr.2 = getelementptr inbounds i8, ptr %2, i64 16
  call void @_ZN4Simd5PointIfEC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %.ptr.2)
  %.ptr.3 = getelementptr inbounds i8, ptr %2, i64 24
  call void @_ZN4Simd5PointIfEC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %.ptr.3)
  %31 = uitofp i64 %27 to float
  %32 = uitofp i64 %30 to float
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #4
  %33 = getelementptr inbounds i8, ptr %0, i64 12
  invoke void @_ZN4Simd4Base4ConvEffPKf(ptr dead_on_unwind nonnull writable sret(%"struct.Simd::Point") align 4 %3, float noundef 0.000000e+00, float noundef 0.000000e+00, ptr noundef nonnull %33)
          to label %34 unwind label %48

34:                                               ; preds = %1
  %35 = load i64, ptr %3, align 8
  store i64 %35, ptr %2, align 16
  call void @_ZN4Simd5PointIfED2Ev(ptr noundef nonnull align 4 dereferenceable(8) %3) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #4
  invoke void @_ZN4Simd4Base4ConvEffPKf(ptr dead_on_unwind nonnull writable sret(%"struct.Simd::Point") align 4 %4, float noundef %31, float noundef 0.000000e+00, ptr noundef nonnull %33)
          to label %36 unwind label %50

36:                                               ; preds = %34
  %37 = load i64, ptr %4, align 8
  store i64 %37, ptr %.ptr.1, align 8
  call void @_ZN4Simd5PointIfED2Ev(ptr noundef nonnull align 4 dereferenceable(8) %4) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #4
  invoke void @_ZN4Simd4Base4ConvEffPKf(ptr dead_on_unwind nonnull writable sret(%"struct.Simd::Point") align 4 %5, float noundef %31, float noundef %32, ptr noundef nonnull %33)
          to label %38 unwind label %52

38:                                               ; preds = %36
  %39 = load i64, ptr %5, align 8
  store i64 %39, ptr %.ptr.2, align 16
  call void @_ZN4Simd5PointIfED2Ev(ptr noundef nonnull align 4 dereferenceable(8) %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #4
  invoke void @_ZN4Simd4Base4ConvEffPKf(ptr dead_on_unwind nonnull writable sret(%"struct.Simd::Point") align 4 %6, float noundef 0.000000e+00, float noundef %32, ptr noundef nonnull %33)
          to label %40 unwind label %54

40:                                               ; preds = %38
  %41 = load i64, ptr %6, align 8
  store i64 %41, ptr %.ptr.3, align 8
  call void @_ZN4Simd5PointIfED2Ev(ptr noundef nonnull align 4 dereferenceable(8) %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #4
  %42 = load ptr, ptr %0, align 8, !tbaa !22
  %43 = getelementptr inbounds i8, ptr %42, i64 24
  %44 = load ptr, ptr %43, align 8
  invoke void %44(ptr noundef nonnull align 8 dereferenceable(208) %0, ptr noundef nonnull %2)
          to label %.preheader.preheader unwind label %56

.preheader.preheader:                             ; preds = %40
  %45 = getelementptr inbounds i8, ptr %2, i64 24
  call void @_ZN4Simd5PointIfED2Ev(ptr noundef nonnull align 4 dereferenceable(8) %45) #4
  %46 = getelementptr inbounds i8, ptr %2, i64 16
  call void @_ZN4Simd5PointIfED2Ev(ptr noundef nonnull align 4 dereferenceable(8) %46) #4
  %47 = getelementptr inbounds i8, ptr %2, i64 8
  call void @_ZN4Simd5PointIfED2Ev(ptr noundef nonnull align 4 dereferenceable(8) %47) #4
  call void @_ZN4Simd5PointIfED2Ev(ptr noundef nonnull align 4 dereferenceable(8) %2) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #4
  ret void

48:                                               ; preds = %1
  %49 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #4
  br label %58

50:                                               ; preds = %34
  %51 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #4
  br label %58

52:                                               ; preds = %36
  %53 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  br label %58

54:                                               ; preds = %38
  %55 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #4
  br label %58

56:                                               ; preds = %40
  %57 = landingpad { ptr, i32 }
          cleanup
  br label %58

58:                                               ; preds = %56, %54, %52, %50, %48
  %.pn = phi { ptr, i32 } [ %57, %56 ], [ %55, %54 ], [ %53, %52 ], [ %51, %50 ], [ %49, %48 ]
  %59 = getelementptr inbounds i8, ptr %2, i64 24
  call void @_ZN4Simd5PointIfED2Ev(ptr noundef nonnull align 4 dereferenceable(8) %59) #4
  %60 = getelementptr inbounds i8, ptr %2, i64 16
  call void @_ZN4Simd5PointIfED2Ev(ptr noundef nonnull align 4 dereferenceable(8) %60) #4
  %61 = getelementptr inbounds i8, ptr %2, i64 8
  call void @_ZN4Simd5PointIfED2Ev(ptr noundef nonnull align 4 dereferenceable(8) %61) #4
  call void @_ZN4Simd5PointIfED2Ev(ptr noundef nonnull align 4 dereferenceable(8) %2) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #4
  resume { ptr, i32 } %.pn
}

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

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN4Simd5ArrayIiE6ResizeEmbm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef, i1 noundef zeroext, i64 noundef) local_unnamed_addr #2 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN4Simd7AlignHiEmm(i64 noundef, i64 noundef) local_unnamed_addr #3

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN4Simd5ArrayIhE6ResizeEmbm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef, i1 noundef zeroext, i64 noundef) local_unnamed_addr #2 align 2

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

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN4Simd4Base4ConvEffPKf(ptr dead_on_unwind noalias writable sret(%"struct.Simd::Point") align 4, float noundef, float noundef, ptr noundef) local_unnamed_addr #2

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { alwaysinline 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 = { 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, !10, i64 88}
!6 = !{!"_ZTSN4Simd12WarpAffParamE", !7, i64 0, !8, i64 4, !8, i64 28, !8, i64 52, !10, i64 56, !10, i64 64, !10, i64 72, !10, i64 80, !10, i64 88, !10, i64 96, !10, i64 104, !10, i64 112}
!7 = !{!"_ZTS19SimdWarpAffineFlags", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"long", !8, i64 0}
!11 = !{!6, !10, i64 80}
!12 = !{!6, !10, i64 112}
!13 = !{!14, !10, i64 136}
!14 = !{!"_ZTSN4Simd10WarpAffineE", !15, i64 0, !6, i64 8, !16, i64 128, !10, i64 136, !10, i64 144, !17, i64 152}
!15 = !{!"_ZTSN4Simd9DeletableE"}
!16 = !{!"bool", !8, i64 0}
!17 = !{!"_ZTSN4Simd5ArrayIhEE", !18, i64 0, !10, i64 8}
!18 = !{!"any pointer", !8, i64 0}
!19 = !{!14, !10, i64 144}
!20 = !{!6, !10, i64 56}
!21 = !{!6, !10, i64 64}
!22 = !{!23, !23, i64 0}
!23 = !{!"vtable pointer", !9, i64 0}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,LoopSimplifyPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass