; LLVM IR from Godot-Machine-Learning/Godot_MachineLearning :: porter2_stemmer/ZN14Porter2Stemmer8internal5step3ERNSt7/cxx1112basic_stringIcSt1_d1ae2dbc/ZN14Porter2Stemmer8internal5step3ERNSt7 (traitsIcESaIcEEEmm)

; 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.std::pair" = type { %"class.meta::util::basic_string_view", %"class.meta::util::basic_string_view" }
%"class.meta::util::basic_string_view" = type { ptr, i64 }

@.str.3 = external hidden unnamed_addr constant [1 x i8], align 1
@_ZZN14Porter2Stemmer8internal5step3ERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmmE4subs = external hidden constant [8 x %"struct.std::pair"], align 16
@.str.74 = external hidden unnamed_addr constant [6 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: mustprogress uwtable
define dso_local void @_ZN14Porter2Stemmer8internal5step3ERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmm(ptr noundef nonnull align 8 dereferenceable(32) %0, i64 noundef %1, i64 noundef %2) #1 {
  %4 = alloca ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca %"class.meta::util::basic_string_view", align 8
  %13 = alloca %"class.meta::util::basic_string_view", align 8
  %14 = alloca %"class.meta::util::basic_string_view", align 8
  %15 = alloca %"class.meta::util::basic_string_view", align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i64 %1, ptr %5, align 8, !tbaa !9
  store i64 %2, ptr %6, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  store ptr @_ZZN14Porter2Stemmer8internal5step3ERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmmE4subs, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  store ptr @_ZZN14Porter2Stemmer8internal5step3ERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmmE4subs, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  store ptr getelementptr inbounds (%"struct.std::pair", ptr @_ZZN14Porter2Stemmer8internal5step3ERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmmE4subs, i64 8), ptr %9, align 8, !tbaa !5
  br label %16

16:                                               ; preds = %43, %3
  %17 = load ptr, ptr %8, align 8, !tbaa !5
  %18 = load ptr, ptr %9, align 8, !tbaa !5
  %19 = icmp ne ptr %17, %18
  br i1 %19, label %21, label %20

20:                                               ; preds = %16
  store i32 2, ptr %10, align 4
  br label %46

21:                                               ; preds = %16
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  %22 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %22, ptr %11, align 8, !tbaa !5
  %23 = load ptr, ptr %4, align 8, !tbaa !5
  %24 = load ptr, ptr %11, align 8, !tbaa !5
  %25 = getelementptr inbounds %"struct.std::pair", ptr %24, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %12, ptr align 8 %25, i64 16, i1 false), !tbaa.struct !11
  %26 = load ptr, ptr %11, align 8, !tbaa !5
  %27 = getelementptr inbounds %"struct.std::pair", ptr %26, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %13, ptr align 8 %27, i64 16, i1 false), !tbaa.struct !11
  %28 = load i64, ptr %5, align 8, !tbaa !9
  %29 = getelementptr inbounds { ptr, i64 }, ptr %12, i32 0, i32 0
  %30 = load ptr, ptr %29, align 8
  %31 = getelementptr inbounds { ptr, i64 }, ptr %12, i32 0, i32 1
  %32 = load i64, ptr %31, align 8
  %33 = getelementptr inbounds { ptr, i64 }, ptr %13, i32 0, i32 0
  %34 = load ptr, ptr %33, align 8
  %35 = getelementptr inbounds { ptr, i64 }, ptr %13, i32 0, i32 1
  %36 = load i64, ptr %35, align 8
  %37 = call noundef zeroext i1 @_ZN14Porter2Stemmer8internal15replaceIfExistsERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN4meta4util17basic_string_viewIcS4_EESB_m(ptr noundef nonnull align 8 dereferenceable(32) %23, ptr %30, i64 %32, ptr %34, i64 %36, i64 noundef %28)
  br i1 %37, label %38, label %39

38:                                               ; preds = %21
  store i32 1, ptr %10, align 4
  br label %40

39:                                               ; preds = %21
  store i32 0, ptr %10, align 4
  br label %40

40:                                               ; preds = %39, %38
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  %41 = load i32, ptr %10, align 4
  switch i32 %41, label %46 [
    i32 0, label %42
  ]

42:                                               ; preds = %40
  br label %43

43:                                               ; preds = %42
  %44 = load ptr, ptr %8, align 8, !tbaa !5
  %45 = getelementptr inbounds %"struct.std::pair", ptr %44, i32 1
  store ptr %45, ptr %8, align 8, !tbaa !5
  br label %16

46:                                               ; preds = %40, %20
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  %47 = load i32, ptr %10, align 4
  switch i32 %47, label %61 [
    i32 2, label %48
    i32 1, label %60
  ]

48:                                               ; preds = %46
  %49 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN4meta4util17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef @.str.74)
  call void @_ZN4meta4util17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef @.str.3)
  %50 = load i64, ptr %6, align 8, !tbaa !9
  %51 = getelementptr inbounds { ptr, i64 }, ptr %14, i32 0, i32 0
  %52 = load ptr, ptr %51, align 8
  %53 = getelementptr inbounds { ptr, i64 }, ptr %14, i32 0, i32 1
  %54 = load i64, ptr %53, align 8
  %55 = getelementptr inbounds { ptr, i64 }, ptr %15, i32 0, i32 0
  %56 = load ptr, ptr %55, align 8
  %57 = getelementptr inbounds { ptr, i64 }, ptr %15, i32 0, i32 1
  %58 = load i64, ptr %57, align 8
  %59 = call noundef zeroext i1 @_ZN14Porter2Stemmer8internal15replaceIfExistsERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN4meta4util17basic_string_viewIcS4_EESB_m(ptr noundef nonnull align 8 dereferenceable(32) %49, ptr %52, i64 %54, ptr %56, i64 %58, i64 noundef %50)
  br label %60

60:                                               ; preds = %48, %46
  ret void

61:                                               ; preds = %46
  unreachable
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN14Porter2Stemmer8internal15replaceIfExistsERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN4meta4util17basic_string_viewIcS4_EESB_m(ptr noundef nonnull align 8 dereferenceable(32), ptr, i64, ptr, i64, i64 noundef) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4meta4util17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) unnamed_addr #1 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) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 = !{!"long", !7, i64 0}
!11 = !{i64 0, i64 8, !5, i64 8, i64 8, !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.std::pair" = type { %"class.meta::util::basic_string_view", %"class.meta::util::basic_string_view" }
%"class.meta::util::basic_string_view" = type { ptr, i64 }

@.str.3 = external hidden unnamed_addr constant [1 x i8], align 1
@_ZZN14Porter2Stemmer8internal5step3ERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmmE4subs = external hidden local_unnamed_addr constant [8 x %"struct.std::pair"], align 16
@.str.74 = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN14Porter2Stemmer8internal5step3ERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmm(ptr noundef nonnull align 8 dereferenceable(32) %0, i64 noundef %1, i64 noundef %2) local_unnamed_addr #0 {
  %4 = alloca %"class.meta::util::basic_string_view", align 8
  %5 = alloca %"class.meta::util::basic_string_view", align 8
  %.sroa.01.0.copyload = load ptr, ptr @_ZZN14Porter2Stemmer8internal5step3ERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmmE4subs, align 16, !tbaa !5
  %.sroa.22.0.copyload = load i64, ptr getelementptr inbounds (i8, ptr @_ZZN14Porter2Stemmer8internal5step3ERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmmE4subs, i64 8), align 8, !tbaa !9
  %.sroa.0.0.copyload = load ptr, ptr getelementptr inbounds (i8, ptr @_ZZN14Porter2Stemmer8internal5step3ERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmmE4subs, i64 16), align 16, !tbaa !5
  %.sroa.2.0.copyload = load i64, ptr getelementptr inbounds (i8, ptr @_ZZN14Porter2Stemmer8internal5step3ERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmmE4subs, i64 24), align 8, !tbaa !9
  %6 = tail call noundef zeroext i1 @_ZN14Porter2Stemmer8internal15replaceIfExistsERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN4meta4util17basic_string_viewIcS4_EESB_m(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr %.sroa.01.0.copyload, i64 %.sroa.22.0.copyload, ptr %.sroa.0.0.copyload, i64 %.sroa.2.0.copyload, i64 noundef %1)
  br i1 %6, label %.loopexit, label %7

7:                                                ; preds = %3
  %.sroa.01.0.copyload.1 = load ptr, ptr getelementptr inbounds (i8, ptr @_ZZN14Porter2Stemmer8internal5step3ERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmmE4subs, i64 32), align 16, !tbaa !5
  %.sroa.22.0.copyload.1 = load i64, ptr getelementptr inbounds (i8, ptr @_ZZN14Porter2Stemmer8internal5step3ERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmmE4subs, i64 40), align 8, !tbaa !9
  %.sroa.0.0.copyload.1 = load ptr, ptr getelementptr inbounds (i8, ptr @_ZZN14Porter2Stemmer8internal5step3ERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmmE4subs, i64 48), align 16, !tbaa !5
  %.sroa.2.0.copyload.1 = load i64, ptr getelementptr inbounds (i8, ptr @_ZZN14Porter2Stemmer8internal5step3ERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmmE4subs, i64 56), align 8, !tbaa !9
  %8 = tail call noundef zeroext i1 @_ZN14Porter2Stemmer8internal15replaceIfExistsERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN4meta4util17basic_string_viewIcS4_EESB_m(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr %.sroa.01.0.copyload.1, i64 %.sroa.22.0.copyload.1, ptr %.sroa.0.0.copyload.1, i64 %.sroa.2.0.copyload.1, i64 noundef %1)
  br i1 %8, label %.loopexit, label %9

9:                                                ; preds = %7
  %.sroa.01.0.copyload.2 = load ptr, ptr getelementptr inbounds (i8, ptr @_ZZN14Porter2Stemmer8internal5step3ERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmmE4subs, i64 64), align 16, !tbaa !5
  %.sroa.22.0.copyload.2 = load i64, ptr getelementptr inbounds (i8, ptr @_ZZN14Porter2Stemmer8internal5step3ERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmmE4subs, i64 72), align 8, !tbaa !9
  %.sroa.0.0.copyload.2 = load ptr, ptr getelementptr inbounds (i8, ptr @_ZZN14Porter2Stemmer8internal5step3ERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmmE4subs, i64 80), align 16, !tbaa !5
  %.sroa.2.0.copyload.2 = load i64, ptr getelementptr inbounds (i8, ptr @_ZZN14Porter2Stemmer8internal5step3ERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmmE4subs, i64 88), align 8, !tbaa !9
  %10 = tail call noundef zeroext i1 @_ZN14Porter2Stemmer8internal15replaceIfExistsERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN4meta4util17basic_string_viewIcS4_EESB_m(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr %.sroa.01.0.copyload.2, i64 %.sroa.22.0.copyload.2, ptr %.sroa.0.0.copyload.2, i64 %.sroa.2.0.copyload.2, i64 noundef %1)
  br i1 %10, label %.loopexit, label %11

11:                                               ; preds = %9
  %.sroa.01.0.copyload.3 = load ptr, ptr getelementptr inbounds (i8, ptr @_ZZN14Porter2Stemmer8internal5step3ERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmmE4subs, i64 96), align 16, !tbaa !5
  %.sroa.22.0.copyload.3 = load i64, ptr getelementptr inbounds (i8, ptr @_ZZN14Porter2Stemmer8internal5step3ERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmmE4subs, i64 104), align 8, !tbaa !9
  %.sroa.0.0.copyload.3 = load ptr, ptr getelementptr inbounds (i8, ptr @_ZZN14Porter2Stemmer8internal5step3ERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmmE4subs, i64 112), align 16, !tbaa !5
  %.sroa.2.0.copyload.3 = load i64, ptr getelementptr inbounds (i8, ptr @_ZZN14Porter2Stemmer8internal5step3ERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmmE4subs, i64 120), align 8, !tbaa !9
  %12 = tail call noundef zeroext i1 @_ZN14Porter2Stemmer8internal15replaceIfExistsERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN4meta4util17basic_string_viewIcS4_EESB_m(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr %.sroa.01.0.copyload.3, i64 %.sroa.22.0.copyload.3, ptr %.sroa.0.0.copyload.3, i64 %.sroa.2.0.copyload.3, i64 noundef %1)
  br i1 %12, label %.loopexit, label %13

13:                                               ; preds = %11
  %.sroa.01.0.copyload.4 = load ptr, ptr getelementptr inbounds (i8, ptr @_ZZN14Porter2Stemmer8internal5step3ERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmmE4subs, i64 128), align 16, !tbaa !5
  %.sroa.22.0.copyload.4 = load i64, ptr getelementptr inbounds (i8, ptr @_ZZN14Porter2Stemmer8internal5step3ERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmmE4subs, i64 136), align 8, !tbaa !9
  %.sroa.0.0.copyload.4 = load ptr, ptr getelementptr inbounds (i8, ptr @_ZZN14Porter2Stemmer8internal5step3ERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmmE4subs, i64 144), align 16, !tbaa !5
  %.sroa.2.0.copyload.4 = load i64, ptr getelementptr inbounds (i8, ptr @_ZZN14Porter2Stemmer8internal5step3ERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmmE4subs, i64 152), align 8, !tbaa !9
  %14 = tail call noundef zeroext i1 @_ZN14Porter2Stemmer8internal15replaceIfExistsERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN4meta4util17basic_string_viewIcS4_EESB_m(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr %.sroa.01.0.copyload.4, i64 %.sroa.22.0.copyload.4, ptr %.sroa.0.0.copyload.4, i64 %.sroa.2.0.copyload.4, i64 noundef %1)
  br i1 %14, label %.loopexit, label %15

15:                                               ; preds = %13
  %.sroa.01.0.copyload.5 = load ptr, ptr getelementptr inbounds (i8, ptr @_ZZN14Porter2Stemmer8internal5step3ERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmmE4subs, i64 160), align 16, !tbaa !5
  %.sroa.22.0.copyload.5 = load i64, ptr getelementptr inbounds (i8, ptr @_ZZN14Porter2Stemmer8internal5step3ERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmmE4subs, i64 168), align 8, !tbaa !9
  %.sroa.0.0.copyload.5 = load ptr, ptr getelementptr inbounds (i8, ptr @_ZZN14Porter2Stemmer8internal5step3ERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmmE4subs, i64 176), align 16, !tbaa !5
  %.sroa.2.0.copyload.5 = load i64, ptr getelementptr inbounds (i8, ptr @_ZZN14Porter2Stemmer8internal5step3ERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmmE4subs, i64 184), align 8, !tbaa !9
  %16 = tail call noundef zeroext i1 @_ZN14Porter2Stemmer8internal15replaceIfExistsERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN4meta4util17basic_string_viewIcS4_EESB_m(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr %.sroa.01.0.copyload.5, i64 %.sroa.22.0.copyload.5, ptr %.sroa.0.0.copyload.5, i64 %.sroa.2.0.copyload.5, i64 noundef %1)
  br i1 %16, label %.loopexit, label %17

17:                                               ; preds = %15
  %.sroa.01.0.copyload.6 = load ptr, ptr getelementptr inbounds (i8, ptr @_ZZN14Porter2Stemmer8internal5step3ERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmmE4subs, i64 192), align 16, !tbaa !5
  %.sroa.22.0.copyload.6 = load i64, ptr getelementptr inbounds (i8, ptr @_ZZN14Porter2Stemmer8internal5step3ERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmmE4subs, i64 200), align 8, !tbaa !9
  %.sroa.0.0.copyload.6 = load ptr, ptr getelementptr inbounds (i8, ptr @_ZZN14Porter2Stemmer8internal5step3ERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmmE4subs, i64 208), align 16, !tbaa !5
  %.sroa.2.0.copyload.6 = load i64, ptr getelementptr inbounds (i8, ptr @_ZZN14Porter2Stemmer8internal5step3ERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmmE4subs, i64 216), align 8, !tbaa !9
  %18 = tail call noundef zeroext i1 @_ZN14Porter2Stemmer8internal15replaceIfExistsERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN4meta4util17basic_string_viewIcS4_EESB_m(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr %.sroa.01.0.copyload.6, i64 %.sroa.22.0.copyload.6, ptr %.sroa.0.0.copyload.6, i64 %.sroa.2.0.copyload.6, i64 noundef %1)
  br i1 %18, label %.loopexit, label %19

19:                                               ; preds = %17
  %.sroa.01.0.copyload.7 = load ptr, ptr getelementptr inbounds (i8, ptr @_ZZN14Porter2Stemmer8internal5step3ERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmmE4subs, i64 224), align 16, !tbaa !5
  %.sroa.22.0.copyload.7 = load i64, ptr getelementptr inbounds (i8, ptr @_ZZN14Porter2Stemmer8internal5step3ERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmmE4subs, i64 232), align 8, !tbaa !9
  %.sroa.0.0.copyload.7 = load ptr, ptr getelementptr inbounds (i8, ptr @_ZZN14Porter2Stemmer8internal5step3ERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmmE4subs, i64 240), align 16, !tbaa !5
  %.sroa.2.0.copyload.7 = load i64, ptr getelementptr inbounds (i8, ptr @_ZZN14Porter2Stemmer8internal5step3ERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmmE4subs, i64 248), align 8, !tbaa !9
  %20 = tail call noundef zeroext i1 @_ZN14Porter2Stemmer8internal15replaceIfExistsERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN4meta4util17basic_string_viewIcS4_EESB_m(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr %.sroa.01.0.copyload.7, i64 %.sroa.22.0.copyload.7, ptr %.sroa.0.0.copyload.7, i64 %.sroa.2.0.copyload.7, i64 noundef %1)
  br i1 %20, label %.loopexit, label %21

21:                                               ; preds = %19
  call void @_ZN4meta4util17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull @.str.74)
  call void @_ZN4meta4util17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull @.str.3)
  %22 = load ptr, ptr %4, align 8
  %23 = getelementptr inbounds i8, ptr %4, i64 8
  %24 = load i64, ptr %23, align 8
  %25 = load ptr, ptr %5, align 8
  %26 = getelementptr inbounds i8, ptr %5, i64 8
  %27 = load i64, ptr %26, align 8
  %28 = call noundef zeroext i1 @_ZN14Porter2Stemmer8internal15replaceIfExistsERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN4meta4util17basic_string_viewIcS4_EESB_m(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr %22, i64 %24, ptr %25, i64 %27, i64 noundef %2)
  br label %.loopexit

.loopexit:                                        ; preds = %3, %7, %9, %11, %13, %15, %17, %19, %21
  ret void
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN14Porter2Stemmer8internal15replaceIfExistsERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN4meta4util17basic_string_viewIcS4_EESB_m(ptr noundef nonnull align 8 dereferenceable(32), ptr, i64, ptr, i64, i64 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4meta4util17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) unnamed_addr #0 align 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" }

!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 = !{!"long", !7, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,SROAPass,SimplifyCFGPass,TailCallElimPass