; LLVM IR from Zhuagenborn/Tiny-x86-OS :: src/kernel/io/file/path.ll (ZN2io4Path5VisitEN3stl11string_viewEPDoFbS2_S2_PvES3_)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.stl::source_location" = type { ptr, ptr, i32, i32 }
%"class.stl::string_view" = type <{ ptr, i32, [4 x i8] }>
%"class.stl::array.0" = type { [17 x i8] }

@.str = external hidden unnamed_addr constant [85 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: nounwind
declare void @_ZN3dbg6AssertEbN3stl11string_viewERKNS0_15source_locationE(i1 noundef zeroext, ptr, i32, ptr noundef nonnull align 8 dereferenceable(24)) #0

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3stl11string_viewC2EPKc(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef) unnamed_addr #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3stl15source_location7currentEPKcS2_jj(ptr dead_on_unwind noalias writable sret(%"class.stl::source_location") align 8, ptr noundef, ptr noundef, i32 noundef, i32 noundef) #1 align 2

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #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) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3stl11string_view5emptyEv(ptr noundef nonnull align 8 dereferenceable(12)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { ptr, i32 } @_ZN2io4Path5ParseEN3stl11string_viewERNS1_5arrayIcLj17EEE(ptr, i32, ptr noundef nonnull align 1 dereferenceable(17)) #1 align 2

; Function Attrs: nounwind
declare void @_ZN3stl6memsetEPvhj(ptr noundef, i8 noundef zeroext, i32 noundef) #0

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK3stl5arrayIcLj17EE4sizeEv(ptr noundef nonnull align 1 dereferenceable(17)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef zeroext i1 @_ZN2io4Path5VisitEN3stl11string_viewEPDoFbS2_S2_PvES3_(ptr %0, i32 %1, ptr noundef %2, ptr noundef %3) #1 align 2 {
  %5 = alloca i1, align 1
  %6 = alloca %"class.stl::string_view", align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca %"class.stl::string_view", align 8
  %10 = alloca %"class.stl::source_location", align 8
  %11 = alloca %"class.stl::string_view", align 8
  %12 = alloca %"class.stl::source_location", align 8
  %13 = alloca %"class.stl::array.0", align 1
  %14 = alloca %"class.stl::string_view", align 8
  %15 = alloca %"class.stl::string_view", align 8
  %16 = alloca { ptr, i32 }, align 8
  %17 = alloca %"class.stl::string_view", align 8
  %18 = alloca %"class.stl::string_view", align 8
  %19 = alloca i32, align 4
  %20 = alloca %"class.stl::string_view", align 8
  %21 = alloca %"class.stl::string_view", align 8
  %22 = alloca { ptr, i32 }, align 8
  %23 = getelementptr inbounds { ptr, i32 }, ptr %6, i32 0, i32 0
  store ptr %0, ptr %23, align 8
  %24 = getelementptr inbounds { ptr, i32 }, ptr %6, i32 0, i32 1
  store i32 %1, ptr %24, align 8
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  %25 = call noundef i32 @_ZNK3stl11string_view4sizeEv(ptr noundef nonnull align 8 dereferenceable(12) %6) #4
  %26 = icmp ule i32 %25, 512
  call void @_ZN3stl11string_viewC2EPKc(ptr noundef nonnull align 8 dereferenceable(12) %9, ptr noundef null) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr %10) #4
  call void @_ZN3stl15source_location7currentEPKcS2_jj(ptr dead_on_unwind writable sret(%"class.stl::source_location") align 8 %10, ptr noundef @.str, ptr noundef @.str.9, i32 noundef 75, i32 noundef 0) #4
  %27 = getelementptr inbounds { ptr, i32 }, ptr %9, i32 0, i32 0
  %28 = load ptr, ptr %27, align 8
  %29 = getelementptr inbounds { ptr, i32 }, ptr %9, i32 0, i32 1
  %30 = load i32, ptr %29, align 8
  call void @_ZN3dbg6AssertEbN3stl11string_viewERKNS0_15source_locationE(i1 noundef zeroext %26, ptr %28, i32 %30, ptr noundef nonnull align 8 dereferenceable(24) %10) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #4
  %31 = load ptr, ptr %7, align 8, !tbaa !5
  %32 = icmp ne ptr %31, null
  call void @_ZN3stl11string_viewC2EPKc(ptr noundef nonnull align 8 dereferenceable(12) %11, ptr noundef null) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr %12) #4
  call void @_ZN3stl15source_location7currentEPKcS2_jj(ptr dead_on_unwind writable sret(%"class.stl::source_location") align 8 %12, ptr noundef @.str, ptr noundef @.str.9, i32 noundef 76, i32 noundef 0) #4
  %33 = getelementptr inbounds { ptr, i32 }, ptr %11, i32 0, i32 0
  %34 = load ptr, ptr %33, align 8
  %35 = getelementptr inbounds { ptr, i32 }, ptr %11, i32 0, i32 1
  %36 = load i32, ptr %35, align 8
  call void @_ZN3dbg6AssertEbN3stl11string_viewERKNS0_15source_locationE(i1 noundef zeroext %32, ptr %34, i32 %36, ptr noundef nonnull align 8 dereferenceable(24) %12) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 17, ptr %13) #4
  call void @_ZN3stl5arrayIcLj17EEC2Ev(ptr noundef nonnull align 1 dereferenceable(17) %13) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %15, ptr align 8 %6, i64 16, i1 false), !tbaa.struct !9
  %37 = getelementptr inbounds { ptr, i32 }, ptr %15, i32 0, i32 0
  %38 = load ptr, ptr %37, align 8
  %39 = getelementptr inbounds { ptr, i32 }, ptr %15, i32 0, i32 1
  %40 = load i32, ptr %39, align 8
  %41 = call { ptr, i32 } @_ZN2io4Path5ParseEN3stl11string_viewERNS1_5arrayIcLj17EEE(ptr %38, i32 %40, ptr noundef nonnull align 1 dereferenceable(17) %13) #4
  store { ptr, i32 } %41, ptr %16, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %14, ptr align 8 %16, i64 12, i1 false)
  br label %42

42:                                               ; preds = %71, %4
  %43 = call noundef ptr @_ZN3stl5arrayIcLj17EE4dataEv(ptr noundef nonnull align 1 dereferenceable(17) %13) #4
  %44 = call noundef i32 @_ZN3stl6strlenEPKc(ptr noundef %43) #4
  %45 = icmp ne i32 %44, 0
  br i1 %45, label %46, label %72

46:                                               ; preds = %42
  %47 = load ptr, ptr %7, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %17, ptr align 8 %14, i64 16, i1 false), !tbaa.struct !9
  %48 = call noundef ptr @_ZN3stl5arrayIcLj17EE4dataEv(ptr noundef nonnull align 1 dereferenceable(17) %13) #4
  call void @_ZN3stl11string_viewC2EPKc(ptr noundef nonnull align 8 dereferenceable(12) %18, ptr noundef %48) #4
  %49 = load ptr, ptr %8, align 8, !tbaa !5
  %50 = getelementptr inbounds { ptr, i32 }, ptr %17, i32 0, i32 0
  %51 = load ptr, ptr %50, align 8
  %52 = getelementptr inbounds { ptr, i32 }, ptr %17, i32 0, i32 1
  %53 = load i32, ptr %52, align 8
  %54 = getelementptr inbounds { ptr, i32 }, ptr %18, i32 0, i32 0
  %55 = load ptr, ptr %54, align 8
  %56 = getelementptr inbounds { ptr, i32 }, ptr %18, i32 0, i32 1
  %57 = load i32, ptr %56, align 8
  %58 = call noundef zeroext i1 %47(ptr %51, i32 %53, ptr %55, i32 %57, ptr noundef %49) #4
  br i1 %58, label %60, label %59

59:                                               ; preds = %46
  store i1 false, ptr %5, align 1
  store i32 1, ptr %19, align 4
  br label %73

60:                                               ; preds = %46
  %61 = call noundef zeroext i1 @_ZNK3stl11string_view5emptyEv(ptr noundef nonnull align 8 dereferenceable(12) %14) #4
  br i1 %61, label %68, label %62

62:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %21, ptr align 8 %14, i64 16, i1 false), !tbaa.struct !9
  %63 = getelementptr inbounds { ptr, i32 }, ptr %21, i32 0, i32 0
  %64 = load ptr, ptr %63, align 8
  %65 = getelementptr inbounds { ptr, i32 }, ptr %21, i32 0, i32 1
  %66 = load i32, ptr %65, align 8
  %67 = call { ptr, i32 } @_ZN2io4Path5ParseEN3stl11string_viewERNS1_5arrayIcLj17EEE(ptr %64, i32 %66, ptr noundef nonnull align 1 dereferenceable(17) %13) #4
  store { ptr, i32 } %67, ptr %22, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %20, ptr align 8 %22, i64 12, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %14, ptr align 8 %20, i64 12, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #4
  br label %71

68:                                               ; preds = %60
  %69 = call noundef ptr @_ZN3stl5arrayIcLj17EE4dataEv(ptr noundef nonnull align 1 dereferenceable(17) %13) #4
  %70 = call noundef i32 @_ZNK3stl5arrayIcLj17EE4sizeEv(ptr noundef nonnull align 1 dereferenceable(17) %13) #4
  call void @_ZN3stl6memsetEPvhj(ptr noundef %69, i8 noundef zeroext 0, i32 noundef %70) #4
  br label %71

71:                                               ; preds = %68, %62
  br label %42, !llvm.loop !12

72:                                               ; preds = %42
  store i1 true, ptr %5, align 1
  store i32 1, ptr %19, align 4
  br label %73

73:                                               ; preds = %72, %59
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 17, ptr %13) #4
  %74 = load i1, ptr %5, align 1
  ret i1 %74
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3stl5arrayIcLj17EEC2Ev(ptr noundef nonnull align 1 dereferenceable(17)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN3stl6strlenEPKc(ptr noundef) #1

attributes #0 = { 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 #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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{i64 0, i64 8, !5, i64 8, i64 4, !10}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"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"

%"class.stl::source_location" = type { ptr, ptr, i32, i32 }
%"class.stl::string_view" = type <{ ptr, i32, [4 x i8] }>
%"class.stl::array.0" = type { [17 x i8] }

@.str = external hidden unnamed_addr constant [85 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: nounwind
declare void @_ZN3dbg6AssertEbN3stl11string_viewERKNS0_15source_locationE(i1 noundef zeroext, ptr, i32, ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3stl11string_viewC2EPKc(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef) unnamed_addr #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3stl15source_location7currentEPKcS2_jj(ptr dead_on_unwind noalias writable sret(%"class.stl::source_location") align 8, ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3stl11string_view5emptyEv(ptr noundef nonnull align 8 dereferenceable(12)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { ptr, i32 } @_ZN2io4Path5ParseEN3stl11string_viewERNS1_5arrayIcLj17EEE(ptr, i32, ptr noundef nonnull align 1 dereferenceable(17)) local_unnamed_addr #1 align 2

; Function Attrs: nounwind
declare void @_ZN3stl6memsetEPvhj(ptr noundef, i8 noundef zeroext, i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN3stl5arrayIcLj17EE4dataEv(ptr noundef nonnull align 1 dereferenceable(17)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK3stl5arrayIcLj17EE4sizeEv(ptr noundef nonnull align 1 dereferenceable(17)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef zeroext i1 @_ZN2io4Path5VisitEN3stl11string_viewEPDoFbS2_S2_PvES3_(ptr %0, i32 %1, ptr noundef readonly %2, ptr noundef %3) local_unnamed_addr #1 align 2 {
  %5 = alloca %"class.stl::string_view", align 8
  %6 = alloca %"class.stl::string_view", align 8
  %7 = alloca %"class.stl::source_location", align 8
  %8 = alloca %"class.stl::string_view", align 8
  %9 = alloca %"class.stl::source_location", align 8
  %10 = alloca %"class.stl::array.0", align 1
  %11 = alloca %"class.stl::string_view", align 8
  %12 = alloca %"class.stl::string_view", align 8
  store ptr %0, ptr %5, align 8
  %13 = getelementptr inbounds i8, ptr %5, i64 8
  store i32 %1, ptr %13, align 8
  %14 = call noundef i32 @_ZNK3stl11string_view4sizeEv(ptr noundef nonnull align 8 dereferenceable(12) %5) #3
  %15 = icmp ult i32 %14, 513
  call void @_ZN3stl11string_viewC2EPKc(ptr noundef nonnull align 8 dereferenceable(12) %6, ptr noundef null) #3
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #3
  call void @_ZN3stl15source_location7currentEPKcS2_jj(ptr dead_on_unwind nonnull writable sret(%"class.stl::source_location") align 8 %7, ptr noundef nonnull @.str, ptr noundef nonnull @.str.9, i32 noundef 75, i32 noundef 0) #3
  %16 = load ptr, ptr %6, align 8
  %17 = getelementptr inbounds i8, ptr %6, i64 8
  %18 = load i32, ptr %17, align 8
  call void @_ZN3dbg6AssertEbN3stl11string_viewERKNS0_15source_locationE(i1 noundef zeroext %15, ptr %16, i32 %18, ptr noundef nonnull align 8 dereferenceable(24) %7) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #3
  %19 = icmp ne ptr %2, null
  call void @_ZN3stl11string_viewC2EPKc(ptr noundef nonnull align 8 dereferenceable(12) %8, ptr noundef null) #3
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #3
  call void @_ZN3stl15source_location7currentEPKcS2_jj(ptr dead_on_unwind nonnull writable sret(%"class.stl::source_location") align 8 %9, ptr noundef nonnull @.str, ptr noundef nonnull @.str.9, i32 noundef 76, i32 noundef 0) #3
  %20 = load ptr, ptr %8, align 8
  %21 = getelementptr inbounds i8, ptr %8, i64 8
  %22 = load i32, ptr %21, align 8
  call void @_ZN3dbg6AssertEbN3stl11string_viewERKNS0_15source_locationE(i1 noundef zeroext %19, ptr %20, i32 %22, ptr noundef nonnull align 8 dereferenceable(24) %9) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #3
  call void @llvm.lifetime.start.p0(i64 17, ptr nonnull %10) #3
  call void @_ZN3stl5arrayIcLj17EEC2Ev(ptr noundef nonnull align 1 dereferenceable(17) %10) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #3
  %.sroa.011.0.copyload = load ptr, ptr %5, align 8, !tbaa !5
  %.sroa.212.0.copyload = load i32, ptr %13, align 8, !tbaa !9
  %23 = call { ptr, i32 } @_ZN2io4Path5ParseEN3stl11string_viewERNS1_5arrayIcLj17EEE(ptr %.sroa.011.0.copyload, i32 %.sroa.212.0.copyload, ptr noundef nonnull align 1 dereferenceable(17) %10) #3
  %.fca.0.extract7 = extractvalue { ptr, i32 } %23, 0
  %.fca.1.extract8 = extractvalue { ptr, i32 } %23, 1
  store ptr %.fca.0.extract7, ptr %11, align 8
  %.sroa.210.0..sroa_idx = getelementptr inbounds i8, ptr %11, i64 8
  store i32 %.fca.1.extract8, ptr %.sroa.210.0..sroa_idx, align 8
  %24 = call noundef ptr @_ZN3stl5arrayIcLj17EE4dataEv(ptr noundef nonnull align 1 dereferenceable(17) %10) #3
  %25 = call noundef i32 @_ZN3stl6strlenEPKc(ptr noundef %24) #3
  %.not17 = icmp eq i32 %25, 0
  br i1 %.not17, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %4
  %26 = getelementptr inbounds i8, ptr %12, i64 8
  br label %27

27:                                               ; preds = %.lr.ph, %39
  %.sroa.04.0.copyload = load ptr, ptr %11, align 8, !tbaa !5
  %.sroa.25.0.copyload = load i32, ptr %.sroa.210.0..sroa_idx, align 8, !tbaa !9
  %28 = call noundef ptr @_ZN3stl5arrayIcLj17EE4dataEv(ptr noundef nonnull align 1 dereferenceable(17) %10) #3
  call void @_ZN3stl11string_viewC2EPKc(ptr noundef nonnull align 8 dereferenceable(12) %12, ptr noundef %28) #3
  %29 = load ptr, ptr %12, align 8
  %30 = load i32, ptr %26, align 8
  %31 = call noundef zeroext i1 %2(ptr %.sroa.04.0.copyload, i32 %.sroa.25.0.copyload, ptr %29, i32 %30, ptr noundef %3) #3
  br i1 %31, label %32, label %._crit_edge

32:                                               ; preds = %27
  %33 = call noundef zeroext i1 @_ZNK3stl11string_view5emptyEv(ptr noundef nonnull align 8 dereferenceable(12) %11) #3
  br i1 %33, label %36, label %34

34:                                               ; preds = %32
  %.sroa.01.0.copyload = load ptr, ptr %11, align 8, !tbaa !5
  %.sroa.22.0.copyload = load i32, ptr %.sroa.210.0..sroa_idx, align 8, !tbaa !9
  %35 = call { ptr, i32 } @_ZN2io4Path5ParseEN3stl11string_viewERNS1_5arrayIcLj17EEE(ptr %.sroa.01.0.copyload, i32 %.sroa.22.0.copyload, ptr noundef nonnull align 1 dereferenceable(17) %10) #3
  %.fca.0.extract = extractvalue { ptr, i32 } %35, 0
  %.fca.1.extract = extractvalue { ptr, i32 } %35, 1
  store ptr %.fca.0.extract, ptr %11, align 8, !tbaa !5
  store i32 %.fca.1.extract, ptr %.sroa.210.0..sroa_idx, align 8, !tbaa !9
  br label %39

36:                                               ; preds = %32
  %37 = call noundef ptr @_ZN3stl5arrayIcLj17EE4dataEv(ptr noundef nonnull align 1 dereferenceable(17) %10) #3
  %38 = call noundef i32 @_ZNK3stl5arrayIcLj17EE4sizeEv(ptr noundef nonnull align 1 dereferenceable(17) %10) #3
  call void @_ZN3stl6memsetEPvhj(ptr noundef %37, i8 noundef zeroext 0, i32 noundef %38) #3
  br label %39

39:                                               ; preds = %36, %34
  %40 = call noundef ptr @_ZN3stl5arrayIcLj17EE4dataEv(ptr noundef nonnull align 1 dereferenceable(17) %10) #3
  %41 = call noundef i32 @_ZN3stl6strlenEPKc(ptr noundef %40) #3
  %.not = icmp eq i32 %41, 0
  br i1 %.not, label %._crit_edge, label %27, !llvm.loop !11

._crit_edge:                                      ; preds = %27, %39, %4
  %.not.lcssa = phi i1 [ true, %4 ], [ %31, %39 ], [ %31, %27 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #3
  call void @llvm.lifetime.end.p0(i64 17, ptr nonnull %10) #3
  ret i1 %.not.lcssa
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3stl5arrayIcLj17EEC2Ev(ptr noundef nonnull align 1 dereferenceable(17)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN3stl6strlenEPKc(ptr noundef) local_unnamed_addr #1

attributes #0 = { 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 #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 = { mustprogress nocallback nofree nosync 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 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}


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