; LLVM IR from ERGO-Code/HiGHS :: extern/filereaderlp/reader.ll (ZN6Reader11splittokensEv)

; 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.__gnu_cxx::__normal_iterator" = type { ptr }
%class.Reader = type { %"class.std::basic_ifstream", %"class.std::__cxx11::basic_string", i64, %"struct.std::array", %"class.std::vector.22", %"class.std::map", %struct.Builder }
%"class.std::basic_ifstream" = type { %"class.std::basic_istream.base", %"class.std::basic_filebuf", %"class.std::basic_ios" }
%"class.std::basic_istream.base" = type { ptr, i64 }
%"class.std::basic_filebuf" = type { %"class.std::basic_streambuf", %union.pthread_mutex_t, %"class.std::__basic_file", i32, %struct.__mbstate_t, %struct.__mbstate_t, %struct.__mbstate_t, ptr, i64, i8, i8, i8, i8, ptr, ptr, i8, ptr, ptr, i64, ptr, ptr }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.std::__basic_file" = type <{ ptr, i8, [7 x i8] }>
%struct.__mbstate_t = type { i32, %union.anon.21 }
%union.anon.21 = type { i32 }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"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.std::array" = type { [3 x %struct.RawToken] }
%struct.RawToken = type { i32, %"class.std::__cxx11::basic_string", double }
%"class.std::vector.22" = type { %"struct.std::_Vector_base.23" }
%"struct.std::_Vector_base.23" = type { %"struct.std::_Vector_base<ProcessedToken, std::allocator<ProcessedToken>>::_Vector_impl" }
%"struct.std::_Vector_base<ProcessedToken, std::allocator<ProcessedToken>>::_Vector_impl" = type { %"struct.std::_Vector_base<ProcessedToken, std::allocator<ProcessedToken>>::_Vector_impl_data" }
%"struct.std::_Vector_base<ProcessedToken, std::allocator<ProcessedToken>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<LpSectionKeyword, std::pair<const LpSectionKeyword, std::pair<__gnu_cxx::__normal_iterator<ProcessedToken *, std::vector<ProcessedToken>>, __gnu_cxx::__normal_iterator<ProcessedToken *, std::vector<ProcessedToken>>>>, std::_Select1st<std::pair<const LpSectionKeyword, std::pair<__gnu_cxx::__normal_iterator<ProcessedToken *, std::vector<ProcessedToken>>, __gnu_cxx::__normal_iterator<ProcessedToken *, std::vector<ProcessedToken>>>>>, std::less<LpSectionKeyword>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<LpSectionKeyword, std::pair<const LpSectionKeyword, std::pair<__gnu_cxx::__normal_iterator<ProcessedToken *, std::vector<ProcessedToken>>, __gnu_cxx::__normal_iterator<ProcessedToken *, std::vector<ProcessedToken>>>>, std::_Select1st<std::pair<const LpSectionKeyword, std::pair<__gnu_cxx::__normal_iterator<ProcessedToken *, std::vector<ProcessedToken>>, __gnu_cxx::__normal_iterator<ProcessedToken *, std::vector<ProcessedToken>>>>>, std::less<LpSectionKeyword>>::_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 }
%struct.Builder = type { %"class.std::unordered_map.30", %struct.Model }
%"class.std::unordered_map.30" = type { %"class.std::_Hashtable.31" }
%"class.std::_Hashtable.31" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%struct.Model = type { %"class.std::shared_ptr", i32, %"class.std::vector", %"class.std::vector.11", %"class.std::vector.16" }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::shared_ptr<Constraint>, std::allocator<std::shared_ptr<Constraint>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::shared_ptr<Constraint>, std::allocator<std::shared_ptr<Constraint>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::shared_ptr<Constraint>, std::allocator<std::shared_ptr<Constraint>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::shared_ptr<Constraint>, std::allocator<std::shared_ptr<Constraint>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.11" = type { %"struct.std::_Vector_base.12" }
%"struct.std::_Vector_base.12" = type { %"struct.std::_Vector_base<std::shared_ptr<Variable>, std::allocator<std::shared_ptr<Variable>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::shared_ptr<Variable>, std::allocator<std::shared_ptr<Variable>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::shared_ptr<Variable>, std::allocator<std::shared_ptr<Variable>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::shared_ptr<Variable>, std::allocator<std::shared_ptr<Variable>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.16" = type { %"struct.std::_Vector_base.17" }
%"struct.std::_Vector_base.17" = type { %"struct.std::_Vector_base<std::shared_ptr<SOS>, std::allocator<std::shared_ptr<SOS>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::shared_ptr<SOS>, std::allocator<std::shared_ptr<SOS>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::shared_ptr<SOS>, std::allocator<std::shared_ptr<SOS>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::shared_ptr<SOS>, std::allocator<std::shared_ptr<SOS>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.ProcessedToken = type { i32, %union.anon.44 }
%union.anon.44 = type { ptr }
%"struct.std::pair.64" = type { %"class.__gnu_cxx::__normal_iterator", %"class.__gnu_cxx::__normal_iterator" }

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6Reader11splittokensEv(ptr noundef nonnull align 8 dereferenceable(928) %0) #1 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca i8, align 1
  %5 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %7 = alloca i32, align 4
  %8 = alloca i8, align 1
  %9 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %10 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %11 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
  store i32 0, ptr %3, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %4) #6
  store i8 0, ptr %4, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  %12 = getelementptr inbounds %class.Reader, ptr %11, i32 0, i32 4
  %13 = call ptr @_ZNSt6vectorI14ProcessedTokenSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #6
  %14 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %5, i32 0, i32 0
  store ptr %13, ptr %14, align 8
  br label %15

15:                                               ; preds = %105, %1
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  %16 = getelementptr inbounds %class.Reader, ptr %11, i32 0, i32 4
  %17 = call ptr @_ZNSt6vectorI14ProcessedTokenSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %16) #6
  %18 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %6, i32 0, i32 0
  store ptr %17, ptr %18, align 8
  %19 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP14ProcessedTokenSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  br i1 %19, label %21, label %20

20:                                               ; preds = %15
  store i32 2, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  br label %107

21:                                               ; preds = %15
  %22 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIP14ProcessedTokenSt6vectorIS1_SaIS1_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #6
  %23 = getelementptr inbounds %struct.ProcessedToken, ptr %22, i32 0, i32 0
  %24 = load i32, ptr %23, align 8, !tbaa !13
  %25 = icmp ne i32 %24, 1
  br i1 %25, label %26, label %27

26:                                               ; preds = %21
  br label %105

27:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #6
  %28 = load i32, ptr %3, align 4, !tbaa !9
  %29 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIP14ProcessedTokenSt6vectorIS1_SaIS1_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #6
  %30 = getelementptr inbounds %struct.ProcessedToken, ptr %29, i32 0, i32 1
  %31 = load i32, ptr %30, align 8, !tbaa !16
  %32 = icmp ne i32 %28, %31
  %33 = zext i1 %32 to i8
  store i8 %33, ptr %8, align 1, !tbaa !11
  %34 = load i8, ptr %8, align 1, !tbaa !11, !range !17, !noundef !18
  %35 = trunc i8 %34 to i1
  br i1 %35, label %36, label %46

36:                                               ; preds = %27
  %37 = load i32, ptr %3, align 4, !tbaa !9
  %38 = icmp ne i32 %37, 0
  br i1 %38, label %39, label %45

39:                                               ; preds = %36
  %40 = load i8, ptr %4, align 1, !tbaa !11, !range !17, !noundef !18
  %41 = trunc i8 %40 to i1
  call void @_Z8lpassertb(i1 noundef zeroext %41)
  %42 = getelementptr inbounds %class.Reader, ptr %11, i32 0, i32 5
  %43 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt3mapI16LpSectionKeywordSt4pairIN9__gnu_cxx17__normal_iteratorIP14ProcessedTokenSt6vectorIS4_SaIS4_EEEES9_ESt4lessIS0_ESaIS1_IKS0_SA_EEEixERSD_(ptr noundef nonnull align 8 dereferenceable(48) %42, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %44 = getelementptr inbounds %"struct.std::pair.64", ptr %43, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %44, ptr align 8 %5, i64 8, i1 false), !tbaa.struct !19
  store i8 0, ptr %4, align 1, !tbaa !11
  store i32 0, ptr %3, align 4, !tbaa !9
  br label %45

45:                                               ; preds = %39, %36
  br label %46

46:                                               ; preds = %45, %27
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %9, ptr align 8 %5, i64 8, i1 false), !tbaa.struct !19
  %47 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIP14ProcessedTokenSt6vectorIS1_SaIS1_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %48 = getelementptr inbounds %class.Reader, ptr %11, i32 0, i32 4
  %49 = call ptr @_ZNSt6vectorI14ProcessedTokenSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %48) #6
  %50 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %10, i32 0, i32 0
  store ptr %49, ptr %50, align 8
  %51 = call noundef zeroext i1 @_ZN9__gnu_cxxeqIP14ProcessedTokenSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  br i1 %51, label %57, label %52

52:                                               ; preds = %46
  %53 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIP14ProcessedTokenSt6vectorIS1_SaIS1_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  %54 = getelementptr inbounds %struct.ProcessedToken, ptr %53, i32 0, i32 0
  %55 = load i32, ptr %54, align 8, !tbaa !13
  %56 = icmp eq i32 %55, 1
  br label %57

57:                                               ; preds = %52, %46
  %58 = phi i1 [ true, %46 ], [ %56, %52 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  br i1 %58, label %59, label %78

59:                                               ; preds = %57
  %60 = load i32, ptr %3, align 4, !tbaa !9
  %61 = icmp ne i32 %60, 0
  br i1 %61, label %62, label %74

62:                                               ; preds = %59
  %63 = load i32, ptr %3, align 4, !tbaa !9
  %64 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIP14ProcessedTokenSt6vectorIS1_SaIS1_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  %65 = getelementptr inbounds %struct.ProcessedToken, ptr %64, i32 0, i32 1
  %66 = load i32, ptr %65, align 8, !tbaa !16
  %67 = icmp ne i32 %63, %66
  br i1 %67, label %68, label %74

68:                                               ; preds = %62
  %69 = load i8, ptr %4, align 1, !tbaa !11, !range !17, !noundef !18
  %70 = trunc i8 %69 to i1
  call void @_Z8lpassertb(i1 noundef zeroext %70)
  %71 = getelementptr inbounds %class.Reader, ptr %11, i32 0, i32 5
  %72 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt3mapI16LpSectionKeywordSt4pairIN9__gnu_cxx17__normal_iteratorIP14ProcessedTokenSt6vectorIS4_SaIS4_EEEES9_ESt4lessIS0_ESaIS1_IKS0_SA_EEEixERSD_(ptr noundef nonnull align 8 dereferenceable(48) %71, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %73 = getelementptr inbounds %"struct.std::pair.64", ptr %72, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %73, ptr align 8 %5, i64 8, i1 false), !tbaa.struct !19
  store i8 0, ptr %4, align 1, !tbaa !11
  br label %74

74:                                               ; preds = %68, %62, %59
  store i32 0, ptr %3, align 4, !tbaa !9
  %75 = load i8, ptr %4, align 1, !tbaa !11, !range !17, !noundef !18
  %76 = trunc i8 %75 to i1
  %77 = xor i1 %76, true
  call void @_Z8lpassertb(i1 noundef zeroext %77)
  store i32 4, ptr %7, align 4
  br label %102

78:                                               ; preds = %57
  %79 = load i8, ptr %8, align 1, !tbaa !11, !range !17, !noundef !18
  %80 = trunc i8 %79 to i1
  br i1 %80, label %81, label %94

81:                                               ; preds = %78
  %82 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIP14ProcessedTokenSt6vectorIS1_SaIS1_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #6
  %83 = getelementptr inbounds %struct.ProcessedToken, ptr %82, i32 0, i32 1
  %84 = load i32, ptr %83, align 8, !tbaa !16
  store i32 %84, ptr %3, align 4, !tbaa !9
  %85 = getelementptr inbounds %class.Reader, ptr %11, i32 0, i32 5
  %86 = call noundef i64 @_ZNKSt3mapI16LpSectionKeywordSt4pairIN9__gnu_cxx17__normal_iteratorIP14ProcessedTokenSt6vectorIS4_SaIS4_EEEES9_ESt4lessIS0_ESaIS1_IKS0_SA_EEE5countERSD_(ptr noundef nonnull align 8 dereferenceable(48) %85, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %87 = icmp eq i64 %86, 0
  call void @_Z8lpassertb(i1 noundef zeroext %87)
  %88 = load i8, ptr %4, align 1, !tbaa !11, !range !17, !noundef !18
  %89 = trunc i8 %88 to i1
  %90 = xor i1 %89, true
  call void @_Z8lpassertb(i1 noundef zeroext %90)
  %91 = getelementptr inbounds %class.Reader, ptr %11, i32 0, i32 5
  %92 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt3mapI16LpSectionKeywordSt4pairIN9__gnu_cxx17__normal_iteratorIP14ProcessedTokenSt6vectorIS4_SaIS4_EEEES9_ESt4lessIS0_ESaIS1_IKS0_SA_EEEixERSD_(ptr noundef nonnull align 8 dereferenceable(48) %91, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %93 = getelementptr inbounds %"struct.std::pair.64", ptr %92, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %93, ptr align 8 %9, i64 8, i1 false), !tbaa.struct !19
  store i8 1, ptr %4, align 1, !tbaa !11
  br label %94

94:                                               ; preds = %81, %78
  %95 = load i8, ptr %4, align 1, !tbaa !11, !range !17, !noundef !18
  %96 = trunc i8 %95 to i1
  %97 = zext i1 %96 to i32
  %98 = load i32, ptr %3, align 4, !tbaa !9
  %99 = icmp eq i32 %98, 0
  %100 = zext i1 %99 to i32
  %101 = icmp ne i32 %97, %100
  call void @_Z8lpassertb(i1 noundef zeroext %101)
  store i32 0, ptr %7, align 4
  br label %102

102:                                              ; preds = %94, %74
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #6
  %103 = load i32, ptr %7, align 4
  switch i32 %103, label %110 [
    i32 0, label %104
    i32 4, label %105
  ]

104:                                              ; preds = %102
  br label %105

105:                                              ; preds = %104, %102, %26
  %106 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIP14ProcessedTokenSt6vectorIS1_SaIS1_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #6
  br label %15, !llvm.loop !20

107:                                              ; preds = %20
  %108 = load i32, ptr %3, align 4, !tbaa !9
  %109 = icmp eq i32 %108, 0
  call void @_Z8lpassertb(i1 noundef zeroext %109)
  call void @llvm.lifetime.end.p0(i64 1, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  ret void

110:                                              ; preds = %102
  unreachable
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNKSt3mapI16LpSectionKeywordSt4pairIN9__gnu_cxx17__normal_iteratorIP14ProcessedTokenSt6vectorIS4_SaIS4_EEEES9_ESt4lessIS0_ESaIS1_IKS0_SA_EEE5countERSD_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z8lpassertb(i1 noundef zeroext) #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIP14ProcessedTokenSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIP14ProcessedTokenSt6vectorIS1_SaIS1_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8)) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIP14ProcessedTokenSt6vectorIS1_SaIS1_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #4 align 2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxeqIP14ProcessedTokenSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt3mapI16LpSectionKeywordSt4pairIN9__gnu_cxx17__normal_iteratorIP14ProcessedTokenSt6vectorIS4_SaIS4_EEEES9_ESt4lessIS0_ESaIS1_IKS0_SA_EEEixERSD_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorI14ProcessedTokenSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorI14ProcessedTokenSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) #4 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { inlinehint 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 = { 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 #4 = { 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 #5 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { 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 = !{!"_ZTS16LpSectionKeyword", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!14, !15, i64 0}
!14 = !{!"_ZTS14ProcessedToken", !15, i64 0, !7, i64 8}
!15 = !{!"_ZTS18ProcessedTokenType", !7, i64 0}
!16 = !{!7, !7, i64 0}
!17 = !{i8 0, i8 2}
!18 = !{}
!19 = !{i64 0, i64 8, !5}
!20 = distinct !{!20, !21}
!21 = !{!"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.__gnu_cxx::__normal_iterator" = type { ptr }

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6Reader11splittokensEv(ptr noundef nonnull align 8 dereferenceable(928) %0) local_unnamed_addr #1 align 2 {
  %2 = alloca i32, align 4
  %3 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %4 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %5 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #5
  store i32 0, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #5
  %7 = getelementptr inbounds i8, ptr %0, i64 704
  %8 = tail call ptr @_ZNSt6vectorI14ProcessedTokenSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
  store ptr %8, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #5
  %9 = tail call ptr @_ZNSt6vectorI14ProcessedTokenSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
  store ptr %9, ptr %4, align 8
  %10 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP14ProcessedTokenSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  br i1 %10, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %1
  %11 = getelementptr inbounds i8, ptr %0, i64 728
  br label %14

._crit_edge.loopexit:                             ; preds = %70
  %.pre13 = load i32, ptr %2, align 4, !tbaa !5
  %12 = icmp eq i32 %.pre13, 0
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %1
  %13 = phi i1 [ %12, %._crit_edge.loopexit ], [ true, %1 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  call void @_Z8lpassertb(i1 noundef zeroext %13)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #5
  ret void

14:                                               ; preds = %.lr.ph, %70
  %.011 = phi i8 [ 0, %.lr.ph ], [ %.5, %70 ]
  %15 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIP14ProcessedTokenSt6vectorIS1_SaIS1_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #5
  %16 = load i32, ptr %15, align 8, !tbaa !9
  %.not = icmp eq i32 %16, 1
  br i1 %.not, label %17, label %70

17:                                               ; preds = %14
  %18 = load i32, ptr %2, align 4, !tbaa !5
  %19 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIP14ProcessedTokenSt6vectorIS1_SaIS1_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #5
  %20 = getelementptr inbounds i8, ptr %19, i64 8
  %21 = load i32, ptr %20, align 8, !tbaa !12
  %22 = icmp ne i32 %18, %21
  %23 = load i32, ptr %2, align 4
  %24 = icmp ne i32 %23, 0
  %or.cond = select i1 %22, i1 %24, i1 false
  br i1 %or.cond, label %25, label %._crit_edge12

._crit_edge12:                                    ; preds = %17
  %.pre = load i64, ptr %3, align 8, !tbaa !13
  br label %30

25:                                               ; preds = %17
  %26 = trunc nuw i8 %.011 to i1
  call void @_Z8lpassertb(i1 noundef zeroext %26)
  %27 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt3mapI16LpSectionKeywordSt4pairIN9__gnu_cxx17__normal_iteratorIP14ProcessedTokenSt6vectorIS4_SaIS4_EEEES9_ESt4lessIS0_ESaIS1_IKS0_SA_EEEixERSD_(ptr noundef nonnull align 8 dereferenceable(48) %11, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %28 = getelementptr inbounds i8, ptr %27, i64 8
  %29 = load i64, ptr %3, align 8, !tbaa !13
  store i64 %29, ptr %28, align 8, !tbaa !13
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %30

30:                                               ; preds = %._crit_edge12, %25
  %31 = phi i64 [ %29, %25 ], [ %.pre, %._crit_edge12 ]
  %.1 = phi i8 [ 0, %25 ], [ %.011, %._crit_edge12 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  store i64 %31, ptr %5, align 8, !tbaa !13
  %32 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIP14ProcessedTokenSt6vectorIS1_SaIS1_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  %33 = call ptr @_ZNSt6vectorI14ProcessedTokenSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
  store ptr %33, ptr %6, align 8
  %34 = call noundef zeroext i1 @_ZN9__gnu_cxxeqIP14ProcessedTokenSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  br i1 %34, label %.critedge, label %35

35:                                               ; preds = %30
  %36 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIP14ProcessedTokenSt6vectorIS1_SaIS1_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  %37 = load i32, ptr %36, align 8, !tbaa !9
  %38 = icmp eq i32 %37, 1
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  br i1 %38, label %39, label %53

.critedge:                                        ; preds = %30
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  br label %39

39:                                               ; preds = %.critedge, %35
  %40 = load i32, ptr %2, align 4, !tbaa !5
  %.not9 = icmp eq i32 %40, 0
  br i1 %.not9, label %50, label %41

41:                                               ; preds = %39
  %42 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIP14ProcessedTokenSt6vectorIS1_SaIS1_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  %43 = getelementptr inbounds i8, ptr %42, i64 8
  %44 = load i32, ptr %43, align 8, !tbaa !12
  %.not10 = icmp eq i32 %40, %44
  br i1 %.not10, label %50, label %45

45:                                               ; preds = %41
  %46 = trunc nuw i8 %.1 to i1
  call void @_Z8lpassertb(i1 noundef zeroext %46)
  %47 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt3mapI16LpSectionKeywordSt4pairIN9__gnu_cxx17__normal_iteratorIP14ProcessedTokenSt6vectorIS4_SaIS4_EEEES9_ESt4lessIS0_ESaIS1_IKS0_SA_EEEixERSD_(ptr noundef nonnull align 8 dereferenceable(48) %11, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %48 = getelementptr inbounds i8, ptr %47, i64 8
  %49 = load i64, ptr %3, align 8, !tbaa !13
  store i64 %49, ptr %48, align 8, !tbaa !13
  br label %50

50:                                               ; preds = %45, %41, %39
  %.2 = phi i8 [ 0, %45 ], [ %.1, %41 ], [ %.1, %39 ]
  store i32 0, ptr %2, align 4, !tbaa !5
  %51 = trunc nuw i8 %.2 to i1
  %52 = xor i1 %51, true
  br label %69

53:                                               ; preds = %35
  br i1 %22, label %54, label %64

54:                                               ; preds = %53
  %55 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIP14ProcessedTokenSt6vectorIS1_SaIS1_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #5
  %56 = getelementptr inbounds i8, ptr %55, i64 8
  %57 = load i32, ptr %56, align 8, !tbaa !12
  store i32 %57, ptr %2, align 4, !tbaa !5
  %58 = call noundef i64 @_ZNKSt3mapI16LpSectionKeywordSt4pairIN9__gnu_cxx17__normal_iteratorIP14ProcessedTokenSt6vectorIS4_SaIS4_EEEES9_ESt4lessIS0_ESaIS1_IKS0_SA_EEE5countERSD_(ptr noundef nonnull align 8 dereferenceable(48) %11, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %59 = icmp eq i64 %58, 0
  call void @_Z8lpassertb(i1 noundef zeroext %59)
  %60 = trunc nuw i8 %.1 to i1
  %61 = xor i1 %60, true
  call void @_Z8lpassertb(i1 noundef zeroext %61)
  %62 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt3mapI16LpSectionKeywordSt4pairIN9__gnu_cxx17__normal_iteratorIP14ProcessedTokenSt6vectorIS4_SaIS4_EEEES9_ESt4lessIS0_ESaIS1_IKS0_SA_EEEixERSD_(ptr noundef nonnull align 8 dereferenceable(48) %11, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %63 = load i64, ptr %5, align 8, !tbaa !13
  store i64 %63, ptr %62, align 8, !tbaa !13
  br label %64

64:                                               ; preds = %54, %53
  %.3 = phi i8 [ 1, %54 ], [ %.1, %53 ]
  %65 = load i32, ptr %2, align 4, !tbaa !5
  %66 = icmp eq i32 %65, 0
  %67 = trunc nuw i8 %.3 to i1
  %68 = xor i1 %66, %67
  br label %69

69:                                               ; preds = %64, %50
  %.sink = phi i1 [ %68, %64 ], [ %52, %50 ]
  %.4 = phi i8 [ %.3, %64 ], [ %.2, %50 ]
  call void @_Z8lpassertb(i1 noundef zeroext %.sink)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  br label %70

70:                                               ; preds = %69, %14
  %.5 = phi i8 [ %.011, %14 ], [ %.4, %69 ]
  %71 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIP14ProcessedTokenSt6vectorIS1_SaIS1_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #5
  %72 = call ptr @_ZNSt6vectorI14ProcessedTokenSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
  store ptr %72, ptr %4, align 8
  %73 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP14ProcessedTokenSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  br i1 %73, label %14, label %._crit_edge.loopexit, !llvm.loop !15
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNKSt3mapI16LpSectionKeywordSt4pairIN9__gnu_cxx17__normal_iteratorIP14ProcessedTokenSt6vectorIS4_SaIS4_EEEES9_ESt4lessIS0_ESaIS1_IKS0_SA_EEE5countERSD_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z8lpassertb(i1 noundef zeroext) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIP14ProcessedTokenSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIP14ProcessedTokenSt6vectorIS1_SaIS1_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIP14ProcessedTokenSt6vectorIS1_SaIS1_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxeqIP14ProcessedTokenSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt3mapI16LpSectionKeywordSt4pairIN9__gnu_cxx17__normal_iteratorIP14ProcessedTokenSt6vectorIS4_SaIS4_EEEES9_ESt4lessIS0_ESaIS1_IKS0_SA_EEEixERSD_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorI14ProcessedTokenSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorI14ProcessedTokenSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #4 align 2

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 = { inlinehint 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 = { 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 #4 = { 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 #5 = { 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 = !{!"_ZTS16LpSectionKeyword", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"_ZTS14ProcessedToken", !11, i64 0, !7, i64 8}
!11 = !{!"_ZTS18ProcessedTokenType", !7, i64 0}
!12 = !{!7, !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"any pointer", !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,LoopRotatePass,LoopSimplifyPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass