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

; 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] }>

@.str = external hidden unnamed_addr constant [85 x i8], align 1
@.str.7 = 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 } @_ZNK3stl11string_view6substrEjj(ptr noundef nonnull align 8 dereferenceable(12), i32 noundef, i32 noundef) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
define dso_local { ptr, i32 } @_ZN2io4Path5ParseEN3stl11string_viewERNS1_5arrayIcLj17EEE(ptr %0, i32 %1, ptr noundef nonnull align 1 dereferenceable(17) %2) #1 align 2 {
  %4 = alloca %"class.stl::string_view", align 8
  %5 = alloca %"class.stl::string_view", align 8
  %6 = alloca ptr, align 8
  %7 = alloca %"class.stl::string_view", align 8
  %8 = alloca %"class.stl::source_location", align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca %"class.stl::string_view", align 8
  %12 = alloca %"class.stl::source_location", align 8
  %13 = alloca %"class.stl::string_view", align 8
  %14 = alloca %"class.stl::source_location", align 8
  %15 = alloca { ptr, i32 }, align 8
  %16 = getelementptr inbounds { ptr, i32 }, ptr %5, i32 0, i32 0
  store ptr %0, ptr %16, align 8
  %17 = getelementptr inbounds { ptr, i32 }, ptr %5, i32 0, i32 1
  store i32 %1, ptr %17, align 8
  store ptr %2, ptr %6, align 8, !tbaa !5
  %18 = call noundef i32 @_ZNK3stl11string_view4sizeEv(ptr noundef nonnull align 8 dereferenceable(12) %5) #4
  %19 = icmp ule i32 %18, 512
  call void @_ZN3stl11string_viewC2EPKc(ptr noundef nonnull align 8 dereferenceable(12) %7, ptr noundef null) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr %8) #4
  call void @_ZN3stl15source_location7currentEPKcS2_jj(ptr dead_on_unwind writable sret(%"class.stl::source_location") align 8 %8, ptr noundef @.str, ptr noundef @.str.7, i32 noundef 38, i32 noundef 0) #4
  %20 = getelementptr inbounds { ptr, i32 }, ptr %7, i32 0, i32 0
  %21 = load ptr, ptr %20, align 8
  %22 = getelementptr inbounds { ptr, i32 }, ptr %7, i32 0, i32 1
  %23 = load i32, ptr %22, align 8
  call void @_ZN3dbg6AssertEbN3stl11string_viewERKNS0_15source_locationE(i1 noundef zeroext %19, ptr %21, i32 %23, ptr noundef nonnull align 8 dereferenceable(24) %8) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #4
  %24 = load ptr, ptr %6, align 8, !tbaa !5
  %25 = call noundef ptr @_ZN3stl5arrayIcLj17EE4dataEv(ptr noundef nonnull align 1 dereferenceable(17) %24) #4
  %26 = load ptr, ptr %6, align 8, !tbaa !5
  %27 = call noundef i32 @_ZNK3stl5arrayIcLj17EE4sizeEv(ptr noundef nonnull align 1 dereferenceable(17) %26) #4
  call void @_ZN3stl6memsetEPvhj(ptr noundef %25, i8 noundef zeroext 0, i32 noundef %27) #4
  %28 = call noundef zeroext i1 @_ZNK3stl11string_view5emptyEv(ptr noundef nonnull align 8 dereferenceable(12) %5) #4
  br i1 %28, label %29, label %30

29:                                               ; preds = %3
  call void @_ZN3stl11string_viewC2EPKc(ptr noundef nonnull align 8 dereferenceable(12) %4, ptr noundef null) #4
  br label %82

30:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %31

31:                                               ; preds = %37, %30
  %32 = load i32, ptr %9, align 4, !tbaa !9
  %33 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK3stl11string_viewixEj(ptr noundef nonnull align 8 dereferenceable(12) %5, i32 noundef %32) #4
  %34 = load i8, ptr %33, align 1, !tbaa !11
  %35 = sext i8 %34 to i32
  %36 = icmp eq i32 %35, 47
  br i1 %36, label %37, label %40

37:                                               ; preds = %31
  %38 = load i32, ptr %9, align 4, !tbaa !9
  %39 = add i32 %38, 1
  store i32 %39, ptr %9, align 4, !tbaa !9
  br label %31, !llvm.loop !12

40:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %41

41:                                               ; preds = %55, %40
  %42 = load i32, ptr %9, align 4, !tbaa !9
  %43 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK3stl11string_viewixEj(ptr noundef nonnull align 8 dereferenceable(12) %5, i32 noundef %42) #4
  %44 = load i8, ptr %43, align 1, !tbaa !11
  %45 = sext i8 %44 to i32
  %46 = icmp ne i32 %45, 47
  br i1 %46, label %47, label %53

47:                                               ; preds = %41
  %48 = load i32, ptr %9, align 4, !tbaa !9
  %49 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK3stl11string_viewixEj(ptr noundef nonnull align 8 dereferenceable(12) %5, i32 noundef %48) #4
  %50 = load i8, ptr %49, align 1, !tbaa !11
  %51 = sext i8 %50 to i32
  %52 = icmp ne i32 %51, 0
  br label %53

53:                                               ; preds = %47, %41
  %54 = phi i1 [ false, %41 ], [ %52, %47 ]
  br i1 %54, label %55, label %70

55:                                               ; preds = %53
  %56 = load i32, ptr %10, align 4, !tbaa !9
  %57 = icmp ult i32 %56, 512
  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.7, i32 noundef 51, i32 noundef 0) #4
  %58 = getelementptr inbounds { ptr, i32 }, ptr %11, i32 0, i32 0
  %59 = load ptr, ptr %58, align 8
  %60 = getelementptr inbounds { ptr, i32 }, ptr %11, i32 0, i32 1
  %61 = load i32, ptr %60, align 8
  call void @_ZN3dbg6AssertEbN3stl11string_viewERKNS0_15source_locationE(i1 noundef zeroext %57, ptr %59, i32 %61, ptr noundef nonnull align 8 dereferenceable(24) %12) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #4
  %62 = load i32, ptr %9, align 4, !tbaa !9
  %63 = add i32 %62, 1
  store i32 %63, ptr %9, align 4, !tbaa !9
  %64 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK3stl11string_viewixEj(ptr noundef nonnull align 8 dereferenceable(12) %5, i32 noundef %62) #4
  %65 = load i8, ptr %64, align 1, !tbaa !11
  %66 = load ptr, ptr %6, align 8, !tbaa !5
  %67 = load i32, ptr %10, align 4, !tbaa !9
  %68 = add i32 %67, 1
  store i32 %68, ptr %10, align 4, !tbaa !9
  %69 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN3stl5arrayIcLj17EEixEj(ptr noundef nonnull align 1 dereferenceable(17) %66, i32 noundef %67) #4
  store i8 %65, ptr %69, align 1, !tbaa !11
  br label %41, !llvm.loop !14

70:                                               ; preds = %53
  %71 = load i32, ptr %10, align 4, !tbaa !9
  %72 = icmp ule i32 %71, 512
  call void @_ZN3stl11string_viewC2EPKc(ptr noundef nonnull align 8 dereferenceable(12) %13, ptr noundef null) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr %14) #4
  call void @_ZN3stl15source_location7currentEPKcS2_jj(ptr dead_on_unwind writable sret(%"class.stl::source_location") align 8 %14, ptr noundef @.str, ptr noundef @.str.7, i32 noundef 55, i32 noundef 0) #4
  %73 = getelementptr inbounds { ptr, i32 }, ptr %13, i32 0, i32 0
  %74 = load ptr, ptr %73, align 8
  %75 = getelementptr inbounds { ptr, i32 }, ptr %13, i32 0, i32 1
  %76 = load i32, ptr %75, align 8
  call void @_ZN3dbg6AssertEbN3stl11string_viewERKNS0_15source_locationE(i1 noundef zeroext %72, ptr %74, i32 %76, ptr noundef nonnull align 8 dereferenceable(24) %14) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #4
  %77 = load ptr, ptr %6, align 8, !tbaa !5
  %78 = load i32, ptr %10, align 4, !tbaa !9
  %79 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN3stl5arrayIcLj17EEixEj(ptr noundef nonnull align 1 dereferenceable(17) %77, i32 noundef %78) #4
  store i8 0, ptr %79, align 1, !tbaa !11
  %80 = load i32, ptr %9, align 4, !tbaa !9
  %81 = call { ptr, i32 } @_ZNK3stl11string_view6substrEjj(ptr noundef nonnull align 8 dereferenceable(12) %5, i32 noundef %80, i32 noundef -1) #4
  store { ptr, i32 } %81, ptr %15, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %4, ptr align 8 %15, i64 12, i1 false)
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  br label %82

82:                                               ; preds = %70, %29
  %83 = load { ptr, i32 }, ptr %4, align 8
  ret { ptr, i32 } %83
}

; 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
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZNK3stl11string_viewixEj(ptr noundef nonnull align 8 dereferenceable(12), i32 noundef) #1 align 2

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

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 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}


; 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] }>

@.str = external hidden unnamed_addr constant [85 x i8], align 1
@.str.7 = 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 } @_ZNK3stl11string_view6substrEjj(ptr noundef nonnull align 8 dereferenceable(12), i32 noundef, i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
define dso_local { ptr, i32 } @_ZN2io4Path5ParseEN3stl11string_viewERNS1_5arrayIcLj17EEE(ptr %0, i32 %1, ptr noundef nonnull align 1 dereferenceable(17) %2) local_unnamed_addr #1 align 2 {
  %4 = alloca %"class.stl::string_view", align 8
  %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::string_view", align 8
  %11 = alloca %"class.stl::source_location", align 8
  store ptr %0, ptr %5, align 8
  %12 = getelementptr inbounds i8, ptr %5, i64 8
  store i32 %1, ptr %12, align 8
  %13 = call noundef i32 @_ZNK3stl11string_view4sizeEv(ptr noundef nonnull align 8 dereferenceable(12) %5) #3
  %14 = icmp ult i32 %13, 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.7, i32 noundef 38, i32 noundef 0) #3
  %15 = load ptr, ptr %6, align 8
  %16 = getelementptr inbounds i8, ptr %6, i64 8
  %17 = load i32, ptr %16, align 8
  call void @_ZN3dbg6AssertEbN3stl11string_viewERKNS0_15source_locationE(i1 noundef zeroext %14, ptr %15, i32 %17, ptr noundef nonnull align 8 dereferenceable(24) %7) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #3
  %18 = call noundef ptr @_ZN3stl5arrayIcLj17EE4dataEv(ptr noundef nonnull align 1 dereferenceable(17) %2) #3
  %19 = call noundef i32 @_ZNK3stl5arrayIcLj17EE4sizeEv(ptr noundef nonnull align 1 dereferenceable(17) %2) #3
  call void @_ZN3stl6memsetEPvhj(ptr noundef %18, i8 noundef zeroext 0, i32 noundef %19) #3
  %20 = call noundef zeroext i1 @_ZNK3stl11string_view5emptyEv(ptr noundef nonnull align 8 dereferenceable(12) %5) #3
  br i1 %20, label %21, label %.preheader15

21:                                               ; preds = %3
  call void @_ZN3stl11string_viewC2EPKc(ptr noundef nonnull align 8 dereferenceable(12) %4, ptr noundef null) #3
  %.fca.0.load.pre = load ptr, ptr %4, align 8
  %.fca.1.gep.phi.trans.insert = getelementptr inbounds i8, ptr %4, i64 8
  %.fca.1.load.pre = load i32, ptr %.fca.1.gep.phi.trans.insert, align 8
  br label %49

.preheader15:                                     ; preds = %3, %.preheader15
  %.0 = phi i32 [ %25, %.preheader15 ], [ 0, %3 ]
  %22 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK3stl11string_viewixEj(ptr noundef nonnull align 8 dereferenceable(12) %5, i32 noundef %.0) #3
  %23 = load i8, ptr %22, align 1, !tbaa !5
  %24 = icmp eq i8 %23, 47
  %25 = add i32 %.0, 1
  br i1 %24, label %.preheader15, label %.preheader, !llvm.loop !8

.preheader:                                       ; preds = %.preheader15
  %26 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK3stl11string_viewixEj(ptr noundef nonnull align 8 dereferenceable(12) %5, i32 noundef %.0) #3
  %27 = load i8, ptr %26, align 1, !tbaa !5
  %.not16 = icmp eq i8 %27, 47
  br i1 %.not16, label %.critedge, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader
  %28 = getelementptr inbounds i8, ptr %8, i64 8
  br label %29

29:                                               ; preds = %.lr.ph, %32
  %.118 = phi i32 [ %.0, %.lr.ph ], [ %36, %32 ]
  %.01317 = phi i32 [ 0, %.lr.ph ], [ %39, %32 ]
  %30 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK3stl11string_viewixEj(ptr noundef nonnull align 8 dereferenceable(12) %5, i32 noundef %.118) #3
  %31 = load i8, ptr %30, align 1, !tbaa !5
  %.not14 = icmp eq i8 %31, 0
  br i1 %.not14, label %.critedge, label %32

32:                                               ; preds = %29
  %33 = icmp ult i32 %.01317, 512
  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.7, i32 noundef 51, i32 noundef 0) #3
  %34 = load ptr, ptr %8, align 8
  %35 = load i32, ptr %28, align 8
  call void @_ZN3dbg6AssertEbN3stl11string_viewERKNS0_15source_locationE(i1 noundef zeroext %33, ptr %34, i32 %35, ptr noundef nonnull align 8 dereferenceable(24) %9) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #3
  %36 = add i32 %.118, 1
  %37 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK3stl11string_viewixEj(ptr noundef nonnull align 8 dereferenceable(12) %5, i32 noundef %.118) #3
  %38 = load i8, ptr %37, align 1, !tbaa !5
  %39 = add i32 %.01317, 1
  %40 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN3stl5arrayIcLj17EEixEj(ptr noundef nonnull align 1 dereferenceable(17) %2, i32 noundef %.01317) #3
  store i8 %38, ptr %40, align 1, !tbaa !5
  %41 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK3stl11string_viewixEj(ptr noundef nonnull align 8 dereferenceable(12) %5, i32 noundef %36) #3
  %42 = load i8, ptr %41, align 1, !tbaa !5
  %.not = icmp eq i8 %42, 47
  br i1 %.not, label %.critedge, label %29, !llvm.loop !10

.critedge:                                        ; preds = %29, %32, %.preheader
  %.013.lcssa = phi i32 [ 0, %.preheader ], [ %39, %32 ], [ %.01317, %29 ]
  %.1.lcssa = phi i32 [ %.0, %.preheader ], [ %36, %32 ], [ %.118, %29 ]
  %43 = icmp ult i32 %.013.lcssa, 513
  call void @_ZN3stl11string_viewC2EPKc(ptr noundef nonnull align 8 dereferenceable(12) %10, ptr noundef null) #3
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #3
  call void @_ZN3stl15source_location7currentEPKcS2_jj(ptr dead_on_unwind nonnull writable sret(%"class.stl::source_location") align 8 %11, ptr noundef nonnull @.str, ptr noundef nonnull @.str.7, i32 noundef 55, i32 noundef 0) #3
  %44 = load ptr, ptr %10, align 8
  %45 = getelementptr inbounds i8, ptr %10, i64 8
  %46 = load i32, ptr %45, align 8
  call void @_ZN3dbg6AssertEbN3stl11string_viewERKNS0_15source_locationE(i1 noundef zeroext %43, ptr %44, i32 %46, ptr noundef nonnull align 8 dereferenceable(24) %11) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #3
  %47 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN3stl5arrayIcLj17EEixEj(ptr noundef nonnull align 1 dereferenceable(17) %2, i32 noundef %.013.lcssa) #3
  store i8 0, ptr %47, align 1, !tbaa !5
  %48 = call { ptr, i32 } @_ZNK3stl11string_view6substrEjj(ptr noundef nonnull align 8 dereferenceable(12) %5, i32 noundef %.1.lcssa, i32 noundef -1) #3
  %.fca.0.extract = extractvalue { ptr, i32 } %48, 0
  %.fca.1.extract = extractvalue { ptr, i32 } %48, 1
  br label %49

49:                                               ; preds = %.critedge, %21
  %.fca.1.load = phi i32 [ %.fca.1.extract, %.critedge ], [ %.fca.1.load.pre, %21 ]
  %.fca.0.load = phi ptr [ %.fca.0.extract, %.critedge ], [ %.fca.0.load.pre, %21 ]
  %.fca.0.insert = insertvalue { ptr, i32 } poison, ptr %.fca.0.load, 0
  %.fca.1.insert = insertvalue { ptr, i32 } %.fca.0.insert, i32 %.fca.1.load, 1
  ret { ptr, i32 } %.fca.1.insert
}

; 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
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZNK3stl11string_viewixEj(ptr noundef nonnull align 8 dereferenceable(12), i32 noundef) local_unnamed_addr #1 align 2

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

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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = distinct !{!8, !9}
!9 = !{!"llvm.loop.mustprogress"}
!10 = distinct !{!10, !9}


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