; 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"

%"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] }
%"struct._BlackBill::_Loader::SLFSStatementElement" = type { i32, i32, %"class.std::__cxx11::basic_string" }
%"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] }>
%"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: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN10_BlackBill7_Loader9SLFSTokenD2Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #0 align 2

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10_BlackBill7_Loader13CRawLFSLoader12getNextTokenEv(ptr dead_on_unwind noalias writable sret(%"struct._BlackBill::_Loader::SLFSToken") align 8, ptr noundef nonnull align 8 dereferenceable(201)) #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN10_BlackBill7_Loader20SLFSStatementElementC2Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIN10_BlackBill7_Loader20SLFSStatementElementESaIS2_EE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(40)) #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN10_BlackBill7_Loader20SLFSStatementElementD2Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN10_BlackBill7_Loader13CRawLFSLoader21readSubStatementArrayEPSt6vectorINS0_20SLFSStatementElementESaIS3_EE(ptr noundef nonnull align 8 dereferenceable(201) %0, ptr noundef %1) #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca i1, align 1
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca %"struct._BlackBill::_Loader::SLFSToken", align 8
  %7 = alloca i32, align 4
  %8 = alloca i8, align 1
  %9 = alloca %"struct._BlackBill::_Loader::SLFSToken", align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca %"struct._BlackBill::_Loader::SLFSStatementElement", align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %13 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 40, ptr %6) #3
  call void @_ZN10_BlackBill7_Loader13CRawLFSLoader12getNextTokenEv(ptr dead_on_unwind writable sret(%"struct._BlackBill::_Loader::SLFSToken") align 8 %6, ptr noundef nonnull align 8 dereferenceable(201) %13)
  %14 = getelementptr inbounds %"struct._BlackBill::_Loader::SLFSToken", ptr %6, i32 0, i32 0
  %15 = load i32, ptr %14, align 8, !tbaa !9
  %16 = icmp ne i32 %15, 10
  br i1 %16, label %17, label %18

17:                                               ; preds = %2
  store i1 false, ptr %3, align 1
  store i32 1, ptr %7, align 4
  br label %84

18:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #3
  store i8 1, ptr %8, align 1, !tbaa !15
  br label %19

19:                                               ; preds = %81, %18
  br label %20

20:                                               ; preds = %19
  %21 = getelementptr inbounds %"class._BlackBill::_Loader::CRawLFSLoader", ptr %13, i32 0, i32 11
  %22 = load i8, ptr %21, align 8, !tbaa !17, !range !37, !noundef !38
  %23 = trunc i8 %22 to i1
  br i1 %23, label %24, label %25

24:                                               ; preds = %20
  store i1 false, ptr %3, align 1
  store i32 1, ptr %7, align 4
  br label %83

25:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 40, ptr %9) #3
  invoke void @_ZN10_BlackBill7_Loader13CRawLFSLoader12getNextTokenEv(ptr dead_on_unwind writable sret(%"struct._BlackBill::_Loader::SLFSToken") align 8 %9, ptr noundef nonnull align 8 dereferenceable(201) %13)
          to label %26 unwind label %31

26:                                               ; preds = %25
  %27 = getelementptr inbounds %"struct._BlackBill::_Loader::SLFSToken", ptr %9, i32 0, i32 0
  %28 = load i32, ptr %27, align 8, !tbaa !9
  %29 = icmp eq i32 %28, 11
  br i1 %29, label %30, label %35

30:                                               ; preds = %26
  store i1 true, ptr %3, align 1
  store i32 1, ptr %7, align 4
  br label %79

31:                                               ; preds = %25
  %32 = landingpad { ptr, i32 }
          cleanup
  %33 = extractvalue { ptr, i32 } %32, 0
  store ptr %33, ptr %10, align 8
  %34 = extractvalue { ptr, i32 } %32, 1
  store i32 %34, ptr %11, align 4
  br label %82

35:                                               ; preds = %26
  %36 = getelementptr inbounds %"struct._BlackBill::_Loader::SLFSToken", ptr %9, i32 0, i32 0
  %37 = load i32, ptr %36, align 8, !tbaa !9
  %38 = icmp eq i32 %37, 8
  br i1 %38, label %47, label %39

39:                                               ; preds = %35
  %40 = getelementptr inbounds %"struct._BlackBill::_Loader::SLFSToken", ptr %9, i32 0, i32 0
  %41 = load i32, ptr %40, align 8, !tbaa !9
  %42 = icmp eq i32 %41, 9
  br i1 %42, label %47, label %43

43:                                               ; preds = %39
  %44 = getelementptr inbounds %"struct._BlackBill::_Loader::SLFSToken", ptr %9, i32 0, i32 0
  %45 = load i32, ptr %44, align 8, !tbaa !9
  %46 = icmp eq i32 %45, 7
  br i1 %46, label %47, label %66

47:                                               ; preds = %43, %39, %35
  %48 = load i8, ptr %8, align 1, !tbaa !15, !range !37, !noundef !38
  %49 = trunc i8 %48 to i1
  br i1 %49, label %51, label %50

50:                                               ; preds = %47
  store i1 false, ptr %3, align 1
  store i32 1, ptr %7, align 4
  br label %79

51:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 40, ptr %12) #3
  call void @_ZN10_BlackBill7_Loader20SLFSStatementElementC2Ev(ptr noundef nonnull align 8 dereferenceable(40) %12) #3
  %52 = getelementptr inbounds %"struct._BlackBill::_Loader::SLFSStatementElement", ptr %12, i32 0, i32 0
  store i32 4, ptr %52, align 8, !tbaa !39
  %53 = getelementptr inbounds %"struct._BlackBill::_Loader::SLFSToken", ptr %9, i32 0, i32 0
  %54 = load i32, ptr %53, align 8, !tbaa !9
  %55 = getelementptr inbounds %"struct._BlackBill::_Loader::SLFSStatementElement", ptr %12, i32 0, i32 1
  store i32 %54, ptr %55, align 4, !tbaa !42
  %56 = getelementptr inbounds %"struct._BlackBill::_Loader::SLFSToken", ptr %9, i32 0, i32 1
  %57 = getelementptr inbounds %"struct._BlackBill::_Loader::SLFSStatementElement", ptr %12, i32 0, i32 2
  %58 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %57, ptr noundef nonnull align 8 dereferenceable(32) %56)
          to label %59 unwind label %62

59:                                               ; preds = %51
  %60 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_ZNSt6vectorIN10_BlackBill7_Loader20SLFSStatementElementESaIS2_EE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %60, ptr noundef nonnull align 8 dereferenceable(40) %12)
          to label %61 unwind label %62

61:                                               ; preds = %59
  store i8 0, ptr %8, align 1, !tbaa !15
  call void @_ZN10_BlackBill7_Loader20SLFSStatementElementD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %12) #3
  call void @llvm.lifetime.end.p0(i64 40, ptr %12) #3
  br label %77

62:                                               ; preds = %59, %51
  %63 = landingpad { ptr, i32 }
          cleanup
  %64 = extractvalue { ptr, i32 } %63, 0
  store ptr %64, ptr %10, align 8
  %65 = extractvalue { ptr, i32 } %63, 1
  store i32 %65, ptr %11, align 4
  call void @_ZN10_BlackBill7_Loader20SLFSStatementElementD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %12) #3
  call void @llvm.lifetime.end.p0(i64 40, ptr %12) #3
  call void @_ZN10_BlackBill7_Loader9SLFSTokenD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %9) #3
  br label %82

66:                                               ; preds = %43
  %67 = getelementptr inbounds %"struct._BlackBill::_Loader::SLFSToken", ptr %9, i32 0, i32 0
  %68 = load i32, ptr %67, align 8, !tbaa !9
  %69 = icmp eq i32 %68, 12
  br i1 %69, label %70, label %75

70:                                               ; preds = %66
  %71 = load i8, ptr %8, align 1, !tbaa !15, !range !37, !noundef !38
  %72 = trunc i8 %71 to i1
  br i1 %72, label %73, label %74

73:                                               ; preds = %70
  store i1 false, ptr %3, align 1
  store i32 1, ptr %7, align 4
  br label %79

74:                                               ; preds = %70
  store i8 1, ptr %8, align 1, !tbaa !15
  br label %76

75:                                               ; preds = %66
  store i1 false, ptr %3, align 1
  store i32 1, ptr %7, align 4
  br label %79

76:                                               ; preds = %74
  br label %77

77:                                               ; preds = %76, %61
  br label %78

78:                                               ; preds = %77
  store i32 0, ptr %7, align 4
  br label %79

79:                                               ; preds = %78, %75, %73, %50, %30
  call void @_ZN10_BlackBill7_Loader9SLFSTokenD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %9) #3
  call void @llvm.lifetime.end.p0(i64 40, ptr %9) #3
  %80 = load i32, ptr %7, align 4
  switch i32 %80, label %83 [
    i32 0, label %81
  ]

81:                                               ; preds = %79
  br label %19, !llvm.loop !43

82:                                               ; preds = %62, %31
  call void @llvm.lifetime.end.p0(i64 40, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #3
  call void @_ZN10_BlackBill7_Loader9SLFSTokenD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %6) #3
  call void @llvm.lifetime.end.p0(i64 40, ptr %6) #3
  br label %86

83:                                               ; preds = %79, %24
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #3
  br label %84

84:                                               ; preds = %83, %17
  call void @_ZN10_BlackBill7_Loader9SLFSTokenD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %6) #3
  call void @llvm.lifetime.end.p0(i64 40, ptr %6) #3
  %85 = load i1, ptr %3, align 1
  ret i1 %85

86:                                               ; preds = %82
  %87 = load ptr, ptr %10, align 8
  %88 = load i32, ptr %11, align 4
  %89 = insertvalue { ptr, i32 } poison, ptr %87, 0
  %90 = insertvalue { ptr, i32 } %89, i32 %88, 1
  resume { ptr, i32 } %90
}

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

%"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] }
%"struct._BlackBill::_Loader::SLFSStatementElement" = type { i32, i32, %"class.std::__cxx11::basic_string" }

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN10_BlackBill7_Loader9SLFSTokenD2Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #0 align 2

; 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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10_BlackBill7_Loader13CRawLFSLoader12getNextTokenEv(ptr dead_on_unwind noalias writable sret(%"struct._BlackBill::_Loader::SLFSToken") align 8, ptr noundef nonnull align 8 dereferenceable(201)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN10_BlackBill7_Loader20SLFSStatementElementC2Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIN10_BlackBill7_Loader20SLFSStatementElementESaIS2_EE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN10_BlackBill7_Loader20SLFSStatementElementD2Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN10_BlackBill7_Loader13CRawLFSLoader21readSubStatementArrayEPSt6vectorINS0_20SLFSStatementElementESaIS3_EE(ptr noundef nonnull align 8 dereferenceable(201) %0, ptr noundef %1) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"struct._BlackBill::_Loader::SLFSToken", align 8
  %4 = alloca %"struct._BlackBill::_Loader::SLFSToken", align 8
  %5 = alloca %"struct._BlackBill::_Loader::SLFSStatementElement", align 8
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %3) #3
  call void @_ZN10_BlackBill7_Loader13CRawLFSLoader12getNextTokenEv(ptr dead_on_unwind nonnull writable sret(%"struct._BlackBill::_Loader::SLFSToken") align 8 %3, ptr noundef nonnull align 8 dereferenceable(201) %0)
  %6 = load i32, ptr %3, align 8, !tbaa !5
  %.not = icmp eq i32 %6, 10
  br i1 %.not, label %.preheader, label %.loopexit

.preheader:                                       ; preds = %2
  %7 = getelementptr inbounds i8, ptr %0, i64 80
  %8 = load i8, ptr %7, align 8, !tbaa !14, !range !35, !noundef !36
  %9 = trunc nuw i8 %8 to i1
  br i1 %9, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader
  %10 = getelementptr inbounds i8, ptr %5, i64 4
  %11 = getelementptr inbounds i8, ptr %4, i64 8
  %12 = getelementptr inbounds i8, ptr %5, i64 8
  br label %13

13:                                               ; preds = %.lr.ph, %29
  %.01323 = phi i8 [ 1, %.lr.ph ], [ %.2, %29 ]
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %4) #3
  invoke void @_ZN10_BlackBill7_Loader13CRawLFSLoader12getNextTokenEv(ptr dead_on_unwind nonnull writable sret(%"struct._BlackBill::_Loader::SLFSToken") align 8 %4, ptr noundef nonnull align 8 dereferenceable(201) %0)
          to label %14 unwind label %16

14:                                               ; preds = %13
  %15 = load i32, ptr %4, align 8
  switch i32 %15, label %.thread [
    i32 11, label %.thread.loopexit
    i32 9, label %18
    i32 8, label %18
    i32 7, label %18
    i32 12, label %27
  ]

16:                                               ; preds = %13
  %17 = landingpad { ptr, i32 }
          cleanup
  br label %32

18:                                               ; preds = %14, %14, %14
  %19 = trunc nuw i8 %.01323 to i1
  br i1 %19, label %20, label %.thread

20:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %5) #3
  call void @_ZN10_BlackBill7_Loader20SLFSStatementElementC2Ev(ptr noundef nonnull align 8 dereferenceable(40) %5) #3
  store i32 4, ptr %5, align 8, !tbaa !37
  %21 = load i32, ptr %4, align 8, !tbaa !5
  store i32 %21, ptr %10, align 4, !tbaa !40
  %22 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef nonnull align 8 dereferenceable(32) %11)
          to label %23 unwind label %25

23:                                               ; preds = %20
  invoke void @_ZNSt6vectorIN10_BlackBill7_Loader20SLFSStatementElementESaIS2_EE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(40) %5)
          to label %24 unwind label %25

24:                                               ; preds = %23
  call void @_ZN10_BlackBill7_Loader20SLFSStatementElementD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %5) #3
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %5) #3
  br label %29

25:                                               ; preds = %23, %20
  %26 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN10_BlackBill7_Loader20SLFSStatementElementD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %5) #3
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %5) #3
  call void @_ZN10_BlackBill7_Loader9SLFSTokenD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %4) #3
  br label %32

27:                                               ; preds = %14
  %28 = trunc nuw i8 %.01323 to i1
  br i1 %28, label %.thread, label %29

.thread.loopexit:                                 ; preds = %14
  br label %.thread

.thread:                                          ; preds = %18, %27, %14, %.thread.loopexit
  %.116.ph = phi i1 [ true, %.thread.loopexit ], [ false, %14 ], [ false, %27 ], [ false, %18 ]
  call void @_ZN10_BlackBill7_Loader9SLFSTokenD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %4) #3
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %4) #3
  br label %.loopexit

29:                                               ; preds = %27, %24
  %.2 = phi i8 [ 0, %24 ], [ 1, %27 ]
  call void @_ZN10_BlackBill7_Loader9SLFSTokenD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %4) #3
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %4) #3
  %30 = load i8, ptr %7, align 8, !tbaa !14, !range !35, !noundef !36
  %31 = trunc nuw i8 %30 to i1
  br i1 %31, label %.loopexit, label %13, !llvm.loop !41

32:                                               ; preds = %25, %16
  %.pn = phi { ptr, i32 } [ %26, %25 ], [ %17, %16 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %4) #3
  call void @_ZN10_BlackBill7_Loader9SLFSTokenD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %3) #3
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %3) #3
  resume { ptr, i32 } %.pn

.loopexit:                                        ; preds = %29, %.preheader, %.thread, %2
  %.3 = phi i1 [ false, %2 ], [ %.116.ph, %.thread ], [ false, %.preheader ], [ false, %29 ]
  call void @_ZN10_BlackBill7_Loader9SLFSTokenD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %3) #3
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %3) #3
  ret i1 %.3
}

attributes #0 = { inlinehint 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 = { 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, !7, i64 0}
!6 = !{!"_ZTSN10_BlackBill7_Loader9SLFSTokenE", !7, i64 0, !10, i64 8}
!7 = !{!"_ZTSN10_BlackBill7_Loader10ETokenTypeE", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !11, i64 0, !13, i64 8, !8, i64 16}
!11 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !12, i64 0}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!"long", !8, i64 0}
!14 = !{!15, !17, i64 80}
!15 = !{!"_ZTSN10_BlackBill7_Loader13CRawLFSLoaderE", !12, i64 0, !12, i64 8, !12, i64 16, !16, i64 24, !16, i64 28, !8, i64 32, !17, i64 33, !17, i64 34, !16, i64 36, !6, i64 40, !17, i64 80, !17, i64 81, !17, i64 82, !16, i64 84, !18, i64 88, !22, i64 112, !26, i64 136, !27, i64 152, !17, i64 200}
!16 = !{!"int", !8, i64 0}
!17 = !{!"bool", !8, i64 0}
!18 = !{!"_ZTSSt6vectorIN10_BlackBill7_Loader9SLFSTokenESaIS2_EE", !19, i64 0}
!19 = !{!"_ZTSSt12_Vector_baseIN10_BlackBill7_Loader9SLFSTokenESaIS2_EE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIN10_BlackBill7_Loader9SLFSTokenESaIS2_EE12_Vector_implE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIN10_BlackBill7_Loader9SLFSTokenESaIS2_EE17_Vector_impl_dataE", !12, i64 0, !12, i64 8, !12, i64 16}
!22 = !{!"_ZTSSt6vectorIN10_BlackBill7_Loader13SLFSStatementESaIS2_EE", !23, i64 0}
!23 = !{!"_ZTSSt12_Vector_baseIN10_BlackBill7_Loader13SLFSStatementESaIS2_EE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIN10_BlackBill7_Loader13SLFSStatementESaIS2_EE12_Vector_implE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseIN10_BlackBill7_Loader13SLFSStatementESaIS2_EE17_Vector_impl_dataE", !12, i64 0, !12, i64 8, !12, i64 16}
!26 = !{!"_ZTSN10_BlackBill7_Loader15SLFSProgramSpecE", !12, i64 0, !12, i64 8}
!27 = !{!"_ZTSSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN10_BlackBill7_Loader13SLFSDataFieldESt4lessIS5_ESaISt4pairIKS5_S8_EEE", !28, i64 0}
!28 = !{!"_ZTSSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_N10_BlackBill7_Loader13SLFSDataFieldEESt10_Select1stISB_ESt4lessIS5_ESaISB_EE", !29, i64 0}
!29 = !{!"_ZTSNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_N10_BlackBill7_Loader13SLFSDataFieldEESt10_Select1stISB_ESt4lessIS5_ESaISB_EE13_Rb_tree_implISF_Lb1EEE", !30, i64 0, !32, i64 8}
!30 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEE", !31, i64 0}
!31 = !{!"_ZTSSt4lessINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE"}
!32 = !{!"_ZTSSt15_Rb_tree_header", !33, i64 0, !13, i64 32}
!33 = !{!"_ZTSSt18_Rb_tree_node_base", !34, i64 0, !12, i64 8, !12, i64 16, !12, i64 24}
!34 = !{!"_ZTSSt14_Rb_tree_color", !8, i64 0}
!35 = !{i8 0, i8 2}
!36 = !{}
!37 = !{!38, !39, i64 0}
!38 = !{!"_ZTSN10_BlackBill7_Loader20SLFSStatementElementE", !39, i64 0, !7, i64 4, !10, i64 8}
!39 = !{!"_ZTSN10_BlackBill7_Loader21EStatementElementTypeE", !8, i64 0}
!40 = !{!38, !7, i64 4}
!41 = distinct !{!41, !42}
!42 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass