; LLVM IR from Yinxiaoli/iros2015_folding :: src/folding_planner_cmake/lib/blackbill/loader (rawlfsloader)

; 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._BlackBill::_Loader::CRawLFSLoader" = type <{ ptr, ptr, ptr, i32, i32, i8, i8, i8, i8, i32, %"struct._BlackBill::_Loader::SLFSToken", i8, i8, i8, i8, i32, %"class.std::vector", %"class.std::vector.3", %"struct._BlackBill::_Loader::SLFSProgramSpec", %"class.std::map", i8, [7 x i8] }>
%"struct._BlackBill::_Loader::SLFSToken" = type { i32, %"class.std::__cxx11::basic_string" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<_BlackBill::_Loader::SLFSToken, std::allocator<_BlackBill::_Loader::SLFSToken>>::_Vector_impl" }
%"struct.std::_Vector_base<_BlackBill::_Loader::SLFSToken, std::allocator<_BlackBill::_Loader::SLFSToken>>::_Vector_impl" = type { %"struct.std::_Vector_base<_BlackBill::_Loader::SLFSToken, std::allocator<_BlackBill::_Loader::SLFSToken>>::_Vector_impl_data" }
%"struct.std::_Vector_base<_BlackBill::_Loader::SLFSToken, std::allocator<_BlackBill::_Loader::SLFSToken>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = type { %"struct.std::_Vector_base<_BlackBill::_Loader::SLFSStatement, std::allocator<_BlackBill::_Loader::SLFSStatement>>::_Vector_impl" }
%"struct.std::_Vector_base<_BlackBill::_Loader::SLFSStatement, std::allocator<_BlackBill::_Loader::SLFSStatement>>::_Vector_impl" = type { %"struct.std::_Vector_base<_BlackBill::_Loader::SLFSStatement, std::allocator<_BlackBill::_Loader::SLFSStatement>>::_Vector_impl_data" }
%"struct.std::_Vector_base<_BlackBill::_Loader::SLFSStatement, std::allocator<_BlackBill::_Loader::SLFSStatement>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct._BlackBill::_Loader::SLFSProgramSpec" = type { ptr, ptr }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, _BlackBill::_Loader::SLFSDataField>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, _BlackBill::_Loader::SLFSDataField>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, _BlackBill::_Loader::SLFSDataField>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, _BlackBill::_Loader::SLFSDataField>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef signext i8 @_ZN10_BlackBill7_Loader13CRawLFSLoader11getNextCharEv(ptr noundef nonnull align 8 dereferenceable(201)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10_BlackBill7_Loader13CRawLFSLoader9skipSpaceEv(ptr noundef nonnull align 8 dereferenceable(201)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10_BlackBill7_Loader13CRawLFSLoader8addTokenENS0_10ETokenTypeEPKc(ptr noundef nonnull align 8 dereferenceable(201), i32 noundef, ptr noundef) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN10_BlackBill7_Loader13CRawLFSLoader13ungetNextCharEc(ptr noundef nonnull align 8 dereferenceable(201), i8 noundef signext) #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN10_BlackBill7_Loader13CRawLFSLoader9readLabelEv(ptr noundef nonnull align 8 dereferenceable(201) %0) #1 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca [1040 x i8], align 16
  %4 = alloca i8, align 1
  %5 = alloca i32, align 4
  %6 = alloca i8, align 1
  %7 = alloca i32, align 4
  %8 = alloca i8, align 1
  store ptr %0, ptr %2, align 8, !tbaa !5
  %9 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 1040, ptr %3) #3
  call void @llvm.lifetime.start.p0(i64 1, ptr %4) #3
  store i8 0, ptr %4, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #3
  store i32 0, ptr %5, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %6) #3
  %10 = call noundef signext i8 @_ZN10_BlackBill7_Loader13CRawLFSLoader11getNextCharEv(ptr noundef nonnull align 8 dereferenceable(201) %9)
  store i8 %10, ptr %6, align 1, !tbaa !13
  %11 = load i8, ptr %6, align 1, !tbaa !13
  %12 = sext i8 %11 to i32
  %13 = icmp eq i32 %12, 95
  br i1 %13, label %32, label %14

14:                                               ; preds = %1
  %15 = load i8, ptr %6, align 1, !tbaa !13
  %16 = sext i8 %15 to i32
  %17 = icmp sle i32 97, %16
  br i1 %17, label %18, label %22

18:                                               ; preds = %14
  %19 = load i8, ptr %6, align 1, !tbaa !13
  %20 = sext i8 %19 to i32
  %21 = icmp sle i32 %20, 122
  br i1 %21, label %32, label %22

22:                                               ; preds = %18, %14
  %23 = load i8, ptr %6, align 1, !tbaa !13
  %24 = sext i8 %23 to i32
  %25 = icmp sle i32 65, %24
  br i1 %25, label %26, label %30

26:                                               ; preds = %22
  %27 = load i8, ptr %6, align 1, !tbaa !13
  %28 = sext i8 %27 to i32
  %29 = icmp sle i32 %28, 90
  br i1 %29, label %32, label %30

30:                                               ; preds = %26, %22
  %31 = getelementptr inbounds %"class._BlackBill::_Loader::CRawLFSLoader", ptr %9, i32 0, i32 13
  store i8 1, ptr %31, align 2, !tbaa !14
  store i32 1, ptr %7, align 4
  br label %92

32:                                               ; preds = %26, %18, %1
  %33 = load i8, ptr %6, align 1, !tbaa !13
  %34 = load i32, ptr %5, align 4, !tbaa !11
  %35 = add nsw i32 %34, 1
  store i32 %35, ptr %5, align 4, !tbaa !11
  %36 = sext i32 %34 to i64
  %37 = getelementptr inbounds [1040 x i8], ptr %3, i64 0, i64 %36
  store i8 %33, ptr %37, align 1, !tbaa !13
  br label %38

38:                                               ; preds = %86, %32
  %39 = getelementptr inbounds %"class._BlackBill::_Loader::CRawLFSLoader", ptr %9, i32 0, i32 7
  %40 = load i8, ptr %39, align 2, !tbaa !38, !range !39, !noundef !40
  %41 = trunc i8 %40 to i1
  %42 = xor i1 %41, true
  br i1 %42, label %43, label %87

43:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #3
  %44 = call noundef signext i8 @_ZN10_BlackBill7_Loader13CRawLFSLoader11getNextCharEv(ptr noundef nonnull align 8 dereferenceable(201) %9)
  store i8 %44, ptr %8, align 1, !tbaa !13
  %45 = load i8, ptr %8, align 1, !tbaa !13
  %46 = sext i8 %45 to i32
  %47 = icmp eq i32 %46, 95
  br i1 %47, label %74, label %48

48:                                               ; preds = %43
  %49 = load i8, ptr %8, align 1, !tbaa !13
  %50 = sext i8 %49 to i32
  %51 = icmp sle i32 97, %50
  br i1 %51, label %52, label %56

52:                                               ; preds = %48
  %53 = load i8, ptr %8, align 1, !tbaa !13
  %54 = sext i8 %53 to i32
  %55 = icmp sle i32 %54, 122
  br i1 %55, label %74, label %56

56:                                               ; preds = %52, %48
  %57 = load i8, ptr %8, align 1, !tbaa !13
  %58 = sext i8 %57 to i32
  %59 = icmp sle i32 65, %58
  br i1 %59, label %60, label %64

60:                                               ; preds = %56
  %61 = load i8, ptr %8, align 1, !tbaa !13
  %62 = sext i8 %61 to i32
  %63 = icmp sle i32 %62, 90
  br i1 %63, label %74, label %64

64:                                               ; preds = %60, %56
  %65 = load i8, ptr %8, align 1, !tbaa !13
  %66 = sext i8 %65 to i32
  %67 = icmp sle i32 48, %66
  br i1 %67, label %68, label %72

68:                                               ; preds = %64
  %69 = load i8, ptr %8, align 1, !tbaa !13
  %70 = sext i8 %69 to i32
  %71 = icmp sle i32 %70, 57
  br i1 %71, label %74, label %72

72:                                               ; preds = %68, %64
  %73 = load i8, ptr %8, align 1, !tbaa !13
  call void @_ZN10_BlackBill7_Loader13CRawLFSLoader13ungetNextCharEc(ptr noundef nonnull align 8 dereferenceable(201) %9, i8 noundef signext %73)
  store i32 3, ptr %7, align 4
  br label %84

74:                                               ; preds = %68, %60, %52, %43
  %75 = load i32, ptr %5, align 4, !tbaa !11
  %76 = icmp slt i32 %75, 1023
  br i1 %76, label %77, label %83

77:                                               ; preds = %74
  %78 = load i8, ptr %8, align 1, !tbaa !13
  %79 = load i32, ptr %5, align 4, !tbaa !11
  %80 = add nsw i32 %79, 1
  store i32 %80, ptr %5, align 4, !tbaa !11
  %81 = sext i32 %79 to i64
  %82 = getelementptr inbounds [1040 x i8], ptr %3, i64 0, i64 %81
  store i8 %78, ptr %82, align 1, !tbaa !13
  br label %83

83:                                               ; preds = %77, %74
  store i32 0, ptr %7, align 4
  br label %84

84:                                               ; preds = %83, %72
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #3
  %85 = load i32, ptr %7, align 4
  switch i32 %85, label %95 [
    i32 0, label %86
    i32 3, label %87
  ]

86:                                               ; preds = %84
  br label %38, !llvm.loop !41

87:                                               ; preds = %84, %38
  %88 = load i32, ptr %5, align 4, !tbaa !11
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds [1040 x i8], ptr %3, i64 0, i64 %89
  store i8 0, ptr %90, align 1, !tbaa !13
  call void @_ZN10_BlackBill7_Loader13CRawLFSLoader9skipSpaceEv(ptr noundef nonnull align 8 dereferenceable(201) %9)
  %91 = getelementptr inbounds [1040 x i8], ptr %3, i64 0, i64 0
  call void @_ZN10_BlackBill7_Loader13CRawLFSLoader8addTokenENS0_10ETokenTypeEPKc(ptr noundef nonnull align 8 dereferenceable(201) %9, i32 noundef 4, ptr noundef %91)
  store i32 0, ptr %7, align 4
  br label %92

92:                                               ; preds = %87, %30
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %4) #3
  call void @llvm.lifetime.end.p0(i64 1040, ptr %3) #3
  %93 = load i32, ptr %7, align 4
  switch i32 %93, label %95 [
    i32 0, label %94
    i32 1, label %94
  ]

94:                                               ; preds = %92, %92
  ret void

95:                                               ; preds = %92, %84
  unreachable
}

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

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 = { 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 #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 = !{!"bool", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!7, !7, i64 0}
!14 = !{!15, !10, i64 82}
!15 = !{!"_ZTSN10_BlackBill7_Loader13CRawLFSLoaderE", !6, i64 0, !6, i64 8, !6, i64 16, !12, i64 24, !12, i64 28, !7, i64 32, !10, i64 33, !10, i64 34, !12, i64 36, !16, i64 40, !10, i64 80, !10, i64 81, !10, i64 82, !12, i64 84, !21, i64 88, !25, i64 112, !29, i64 136, !30, i64 152, !10, i64 200}
!16 = !{!"_ZTSN10_BlackBill7_Loader9SLFSTokenE", !17, i64 0, !18, i64 8}
!17 = !{!"_ZTSN10_BlackBill7_Loader10ETokenTypeE", !7, i64 0}
!18 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !19, i64 0, !20, i64 8, !7, i64 16}
!19 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!20 = !{!"long", !7, i64 0}
!21 = !{!"_ZTSSt6vectorIN10_BlackBill7_Loader9SLFSTokenESaIS2_EE", !22, i64 0}
!22 = !{!"_ZTSSt12_Vector_baseIN10_BlackBill7_Loader9SLFSTokenESaIS2_EE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIN10_BlackBill7_Loader9SLFSTokenESaIS2_EE12_Vector_implE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIN10_BlackBill7_Loader9SLFSTokenESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!25 = !{!"_ZTSSt6vectorIN10_BlackBill7_Loader13SLFSStatementESaIS2_EE", !26, i64 0}
!26 = !{!"_ZTSSt12_Vector_baseIN10_BlackBill7_Loader13SLFSStatementESaIS2_EE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseIN10_BlackBill7_Loader13SLFSStatementESaIS2_EE12_Vector_implE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseIN10_BlackBill7_Loader13SLFSStatementESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!29 = !{!"_ZTSN10_BlackBill7_Loader15SLFSProgramSpecE", !6, i64 0, !6, i64 8}
!30 = !{!"_ZTSSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN10_BlackBill7_Loader13SLFSDataFieldESt4lessIS5_ESaISt4pairIKS5_S8_EEE", !31, i64 0}
!31 = !{!"_ZTSSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_N10_BlackBill7_Loader13SLFSDataFieldEESt10_Select1stISB_ESt4lessIS5_ESaISB_EE", !32, i64 0}
!32 = !{!"_ZTSNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_N10_BlackBill7_Loader13SLFSDataFieldEESt10_Select1stISB_ESt4lessIS5_ESaISB_EE13_Rb_tree_implISF_Lb1EEE", !33, i64 0, !35, i64 8}
!33 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEE", !34, i64 0}
!34 = !{!"_ZTSSt4lessINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE"}
!35 = !{!"_ZTSSt15_Rb_tree_header", !36, i64 0, !20, i64 32}
!36 = !{!"_ZTSSt18_Rb_tree_node_base", !37, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!37 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!38 = !{!15, !10, i64 34}
!39 = !{i8 0, i8 2}
!40 = !{}
!41 = distinct !{!41, !42}
!42 = !{!"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"

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef signext i8 @_ZN10_BlackBill7_Loader13CRawLFSLoader11getNextCharEv(ptr noundef nonnull align 8 dereferenceable(201)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10_BlackBill7_Loader13CRawLFSLoader9skipSpaceEv(ptr noundef nonnull align 8 dereferenceable(201)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10_BlackBill7_Loader13CRawLFSLoader8addTokenENS0_10ETokenTypeEPKc(ptr noundef nonnull align 8 dereferenceable(201), i32 noundef, ptr noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN10_BlackBill7_Loader13CRawLFSLoader13ungetNextCharEc(ptr noundef nonnull align 8 dereferenceable(201), i8 noundef signext) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN10_BlackBill7_Loader13CRawLFSLoader9readLabelEv(ptr noundef nonnull align 8 dereferenceable(201) %0) local_unnamed_addr #1 align 2 {
  %2 = alloca [1040 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 1040, ptr nonnull %2) #3
  %3 = tail call noundef signext i8 @_ZN10_BlackBill7_Loader13CRawLFSLoader11getNextCharEv(ptr noundef nonnull align 8 dereferenceable(201) %0)
  %4 = icmp eq i8 %3, 95
  %5 = and i8 %3, -33
  %6 = add i8 %5, -65
  %7 = icmp ult i8 %6, 26
  %or.cond38 = or i1 %4, %7
  br i1 %or.cond38, label %10, label %8

8:                                                ; preds = %1
  %9 = getelementptr inbounds i8, ptr %0, i64 82
  store i8 1, ptr %9, align 2, !tbaa !5
  br label %31

10:                                               ; preds = %1
  store i8 %3, ptr %2, align 16, !tbaa !34
  %11 = getelementptr inbounds i8, ptr %0, i64 34
  %12 = load i8, ptr %11, align 2, !tbaa !35, !range !36, !noundef !37
  %13 = trunc nuw i8 %12 to i1
  br i1 %13, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %10, %26
  %.047 = phi i32 [ %.2, %26 ], [ 1, %10 ]
  %14 = tail call noundef signext i8 @_ZN10_BlackBill7_Loader13CRawLFSLoader11getNextCharEv(ptr noundef nonnull align 8 dereferenceable(201) %0)
  %15 = icmp eq i8 %14, 95
  %16 = and i8 %14, -33
  %17 = add i8 %16, -65
  %18 = icmp ult i8 %17, 26
  %or.cond40 = or i1 %15, %18
  %19 = add i8 %14, -48
  %or.cond14 = icmp ult i8 %19, 10
  %or.cond41 = or i1 %or.cond14, %or.cond40
  br i1 %or.cond41, label %20, label %.thread

.thread:                                          ; preds = %.lr.ph
  tail call void @_ZN10_BlackBill7_Loader13CRawLFSLoader13ungetNextCharEc(ptr noundef nonnull align 8 dereferenceable(201) %0, i8 noundef signext %14)
  br label %.loopexit

20:                                               ; preds = %.lr.ph
  %21 = icmp slt i32 %.047, 1023
  br i1 %21, label %22, label %26

22:                                               ; preds = %20
  %23 = add nsw i32 %.047, 1
  %24 = sext i32 %.047 to i64
  %25 = getelementptr inbounds [1040 x i8], ptr %2, i64 0, i64 %24
  store i8 %14, ptr %25, align 1, !tbaa !34
  br label %26

26:                                               ; preds = %20, %22
  %.2 = phi i32 [ %23, %22 ], [ %.047, %20 ]
  %27 = load i8, ptr %11, align 2, !tbaa !35, !range !36, !noundef !37
  %28 = trunc nuw i8 %27 to i1
  br i1 %28, label %.loopexit, label %.lr.ph

.loopexit:                                        ; preds = %26, %10, %.thread
  %.046 = phi i32 [ %.047, %.thread ], [ 1, %10 ], [ %.2, %26 ]
  %29 = sext i32 %.046 to i64
  %30 = getelementptr inbounds [1040 x i8], ptr %2, i64 0, i64 %29
  store i8 0, ptr %30, align 1, !tbaa !34
  tail call void @_ZN10_BlackBill7_Loader13CRawLFSLoader9skipSpaceEv(ptr noundef nonnull align 8 dereferenceable(201) %0)
  call void @_ZN10_BlackBill7_Loader13CRawLFSLoader8addTokenENS0_10ETokenTypeEPKc(ptr noundef nonnull align 8 dereferenceable(201) %0, i32 noundef 4, ptr noundef nonnull %2)
  br label %31

31:                                               ; preds = %.loopexit, %8
  call void @llvm.lifetime.end.p0(i64 1040, ptr nonnull %2) #3
  ret void
}

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

attributes #0 = { mustprogress 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 = { 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 #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, !11, i64 82}
!6 = !{!"_ZTSN10_BlackBill7_Loader13CRawLFSLoaderE", !7, i64 0, !7, i64 8, !7, i64 16, !10, i64 24, !10, i64 28, !8, i64 32, !11, i64 33, !11, i64 34, !10, i64 36, !12, i64 40, !11, i64 80, !11, i64 81, !11, i64 82, !10, i64 84, !17, i64 88, !21, i64 112, !25, i64 136, !26, i64 152, !11, i64 200}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"bool", !8, i64 0}
!12 = !{!"_ZTSN10_BlackBill7_Loader9SLFSTokenE", !13, i64 0, !14, i64 8}
!13 = !{!"_ZTSN10_BlackBill7_Loader10ETokenTypeE", !8, i64 0}
!14 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !15, i64 0, !16, i64 8, !8, i64 16}
!15 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !7, i64 0}
!16 = !{!"long", !8, i64 0}
!17 = !{!"_ZTSSt6vectorIN10_BlackBill7_Loader9SLFSTokenESaIS2_EE", !18, i64 0}
!18 = !{!"_ZTSSt12_Vector_baseIN10_BlackBill7_Loader9SLFSTokenESaIS2_EE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIN10_BlackBill7_Loader9SLFSTokenESaIS2_EE12_Vector_implE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIN10_BlackBill7_Loader9SLFSTokenESaIS2_EE17_Vector_impl_dataE", !7, i64 0, !7, i64 8, !7, i64 16}
!21 = !{!"_ZTSSt6vectorIN10_BlackBill7_Loader13SLFSStatementESaIS2_EE", !22, i64 0}
!22 = !{!"_ZTSSt12_Vector_baseIN10_BlackBill7_Loader13SLFSStatementESaIS2_EE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIN10_BlackBill7_Loader13SLFSStatementESaIS2_EE12_Vector_implE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIN10_BlackBill7_Loader13SLFSStatementESaIS2_EE17_Vector_impl_dataE", !7, i64 0, !7, i64 8, !7, i64 16}
!25 = !{!"_ZTSN10_BlackBill7_Loader15SLFSProgramSpecE", !7, i64 0, !7, i64 8}
!26 = !{!"_ZTSSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN10_BlackBill7_Loader13SLFSDataFieldESt4lessIS5_ESaISt4pairIKS5_S8_EEE", !27, i64 0}
!27 = !{!"_ZTSSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_N10_BlackBill7_Loader13SLFSDataFieldEESt10_Select1stISB_ESt4lessIS5_ESaISB_EE", !28, i64 0}
!28 = !{!"_ZTSNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_N10_BlackBill7_Loader13SLFSDataFieldEESt10_Select1stISB_ESt4lessIS5_ESaISB_EE13_Rb_tree_implISF_Lb1EEE", !29, i64 0, !31, i64 8}
!29 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEE", !30, i64 0}
!30 = !{!"_ZTSSt4lessINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE"}
!31 = !{!"_ZTSSt15_Rb_tree_header", !32, i64 0, !16, i64 32}
!32 = !{!"_ZTSSt18_Rb_tree_node_base", !33, i64 0, !7, i64 8, !7, i64 16, !7, i64 24}
!33 = !{!"_ZTSSt14_Rb_tree_color", !8, i64 0}
!34 = !{!8, !8, i64 0}
!35 = !{!6, !11, i64 34}
!36 = !{i8 0, i8 2}
!37 = !{}


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