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

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

@.str.36 = external hidden unnamed_addr constant [80 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [12 x i8], align 1
@__PRETTY_FUNCTION__._ZN6Reader12nextrawtokenEm = external hidden unnamed_addr constant [34 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [21 x i8], align 1

; 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
declare dso_local noundef zeroext i1 @_ZN6Reader13readnexttokenER8RawToken(ptr noundef nonnull align 8 dereferenceable(928), ptr noundef nonnull align 8 dereferenceable(48)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt5arrayI8RawTokenLm3EEixEm(ptr noundef nonnull align 8 dereferenceable(144), i64 noundef) #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6Reader12nextrawtokenEm(ptr noundef nonnull align 8 dereferenceable(928) %0, i64 noundef %1) #1 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca i64, align 8
  %5 = alloca i64, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store i64 %1, ptr %4, align 8, !tbaa !9
  %6 = load ptr, ptr %3, align 8
  %7 = load i64, ptr %4, align 8, !tbaa !9
  %8 = icmp ugt i64 %7, 0
  br i1 %8, label %9, label %10

9:                                                ; preds = %2
  br label %12

10:                                               ; preds = %2
  call void @__assert_fail(ptr noundef @.str.37, ptr noundef @.str.36, i32 noundef 1140, ptr noundef @__PRETTY_FUNCTION__._ZN6Reader12nextrawtokenEm) #5
  unreachable

11:                                               ; No predecessors!
  br label %12

12:                                               ; preds = %11, %9
  %13 = load i64, ptr %4, align 8, !tbaa !9
  %14 = icmp ule i64 %13, 3
  br i1 %14, label %15, label %16

15:                                               ; preds = %12
  br label %18

16:                                               ; preds = %12
  call void @__assert_fail(ptr noundef @.str.38, ptr noundef @.str.36, i32 noundef 1141, ptr noundef @__PRETTY_FUNCTION__._ZN6Reader12nextrawtokenEm) #5
  unreachable

17:                                               ; No predecessors!
  br label %18

18:                                               ; preds = %17, %15
  %19 = load i64, ptr %4, align 8, !tbaa !9
  switch i64 %19, label %80 [
    i64 1, label %20
    i64 2, label %38
    i64 3, label %58
  ]

20:                                               ; preds = %18
  %21 = getelementptr inbounds %class.Reader, ptr %6, i32 0, i32 3
  %22 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt5arrayI8RawTokenLm3EEixEm(ptr noundef nonnull align 8 dereferenceable(144) %21, i64 noundef 1) #6
  %23 = getelementptr inbounds %class.Reader, ptr %6, i32 0, i32 3
  %24 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt5arrayI8RawTokenLm3EEixEm(ptr noundef nonnull align 8 dereferenceable(144) %23, i64 noundef 0) #6
  %25 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZN8RawTokenaSEOS_(ptr noundef nonnull align 8 dereferenceable(48) %24, ptr noundef nonnull align 8 dereferenceable(48) %22) #6
  %26 = getelementptr inbounds %class.Reader, ptr %6, i32 0, i32 3
  %27 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt5arrayI8RawTokenLm3EEixEm(ptr noundef nonnull align 8 dereferenceable(144) %26, i64 noundef 2) #6
  %28 = getelementptr inbounds %class.Reader, ptr %6, i32 0, i32 3
  %29 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt5arrayI8RawTokenLm3EEixEm(ptr noundef nonnull align 8 dereferenceable(144) %28, i64 noundef 1) #6
  %30 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZN8RawTokenaSEOS_(ptr noundef nonnull align 8 dereferenceable(48) %29, ptr noundef nonnull align 8 dereferenceable(48) %27) #6
  br label %31

31:                                               ; preds = %36, %20
  %32 = getelementptr inbounds %class.Reader, ptr %6, i32 0, i32 3
  %33 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt5arrayI8RawTokenLm3EEixEm(ptr noundef nonnull align 8 dereferenceable(144) %32, i64 noundef 2) #6
  %34 = call noundef zeroext i1 @_ZN6Reader13readnexttokenER8RawToken(ptr noundef nonnull align 8 dereferenceable(928) %6, ptr noundef nonnull align 8 dereferenceable(48) %33)
  %35 = xor i1 %34, true
  br i1 %35, label %36, label %37

36:                                               ; preds = %31
  br label %31, !llvm.loop !11

37:                                               ; preds = %31
  br label %116

38:                                               ; preds = %18
  %39 = getelementptr inbounds %class.Reader, ptr %6, i32 0, i32 3
  %40 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt5arrayI8RawTokenLm3EEixEm(ptr noundef nonnull align 8 dereferenceable(144) %39, i64 noundef 2) #6
  %41 = getelementptr inbounds %class.Reader, ptr %6, i32 0, i32 3
  %42 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt5arrayI8RawTokenLm3EEixEm(ptr noundef nonnull align 8 dereferenceable(144) %41, i64 noundef 0) #6
  %43 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZN8RawTokenaSEOS_(ptr noundef nonnull align 8 dereferenceable(48) %42, ptr noundef nonnull align 8 dereferenceable(48) %40) #6
  br label %44

44:                                               ; preds = %49, %38
  %45 = getelementptr inbounds %class.Reader, ptr %6, i32 0, i32 3
  %46 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt5arrayI8RawTokenLm3EEixEm(ptr noundef nonnull align 8 dereferenceable(144) %45, i64 noundef 1) #6
  %47 = call noundef zeroext i1 @_ZN6Reader13readnexttokenER8RawToken(ptr noundef nonnull align 8 dereferenceable(928) %6, ptr noundef nonnull align 8 dereferenceable(48) %46)
  %48 = xor i1 %47, true
  br i1 %48, label %49, label %50

49:                                               ; preds = %44
  br label %44, !llvm.loop !13

50:                                               ; preds = %44
  br label %51

51:                                               ; preds = %56, %50
  %52 = getelementptr inbounds %class.Reader, ptr %6, i32 0, i32 3
  %53 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt5arrayI8RawTokenLm3EEixEm(ptr noundef nonnull align 8 dereferenceable(144) %52, i64 noundef 2) #6
  %54 = call noundef zeroext i1 @_ZN6Reader13readnexttokenER8RawToken(ptr noundef nonnull align 8 dereferenceable(928) %6, ptr noundef nonnull align 8 dereferenceable(48) %53)
  %55 = xor i1 %54, true
  br i1 %55, label %56, label %57

56:                                               ; preds = %51
  br label %51, !llvm.loop !14

57:                                               ; preds = %51
  br label %116

58:                                               ; preds = %18
  br label %59

59:                                               ; preds = %64, %58
  %60 = getelementptr inbounds %class.Reader, ptr %6, i32 0, i32 3
  %61 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt5arrayI8RawTokenLm3EEixEm(ptr noundef nonnull align 8 dereferenceable(144) %60, i64 noundef 0) #6
  %62 = call noundef zeroext i1 @_ZN6Reader13readnexttokenER8RawToken(ptr noundef nonnull align 8 dereferenceable(928) %6, ptr noundef nonnull align 8 dereferenceable(48) %61)
  %63 = xor i1 %62, true
  br i1 %63, label %64, label %65

64:                                               ; preds = %59
  br label %59, !llvm.loop !15

65:                                               ; preds = %59
  br label %66

66:                                               ; preds = %71, %65
  %67 = getelementptr inbounds %class.Reader, ptr %6, i32 0, i32 3
  %68 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt5arrayI8RawTokenLm3EEixEm(ptr noundef nonnull align 8 dereferenceable(144) %67, i64 noundef 1) #6
  %69 = call noundef zeroext i1 @_ZN6Reader13readnexttokenER8RawToken(ptr noundef nonnull align 8 dereferenceable(928) %6, ptr noundef nonnull align 8 dereferenceable(48) %68)
  %70 = xor i1 %69, true
  br i1 %70, label %71, label %72

71:                                               ; preds = %66
  br label %66, !llvm.loop !16

72:                                               ; preds = %66
  br label %73

73:                                               ; preds = %78, %72
  %74 = getelementptr inbounds %class.Reader, ptr %6, i32 0, i32 3
  %75 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt5arrayI8RawTokenLm3EEixEm(ptr noundef nonnull align 8 dereferenceable(144) %74, i64 noundef 2) #6
  %76 = call noundef zeroext i1 @_ZN6Reader13readnexttokenER8RawToken(ptr noundef nonnull align 8 dereferenceable(928) %6, ptr noundef nonnull align 8 dereferenceable(48) %75)
  %77 = xor i1 %76, true
  br i1 %77, label %78, label %79

78:                                               ; preds = %73
  br label %73, !llvm.loop !17

79:                                               ; preds = %73
  br label %116

80:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  store i64 0, ptr %5, align 8, !tbaa !9
  br label %81

81:                                               ; preds = %96, %80
  %82 = load i64, ptr %5, align 8, !tbaa !9
  %83 = load i64, ptr %4, align 8, !tbaa !9
  %84 = sub i64 3, %83
  %85 = icmp ult i64 %82, %84
  br i1 %85, label %86, label %99

86:                                               ; preds = %81
  %87 = getelementptr inbounds %class.Reader, ptr %6, i32 0, i32 3
  %88 = load i64, ptr %5, align 8, !tbaa !9
  %89 = load i64, ptr %4, align 8, !tbaa !9
  %90 = add i64 %88, %89
  %91 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt5arrayI8RawTokenLm3EEixEm(ptr noundef nonnull align 8 dereferenceable(144) %87, i64 noundef %90) #6
  %92 = getelementptr inbounds %class.Reader, ptr %6, i32 0, i32 3
  %93 = load i64, ptr %5, align 8, !tbaa !9
  %94 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt5arrayI8RawTokenLm3EEixEm(ptr noundef nonnull align 8 dereferenceable(144) %92, i64 noundef %93) #6
  %95 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZN8RawTokenaSEOS_(ptr noundef nonnull align 8 dereferenceable(48) %94, ptr noundef nonnull align 8 dereferenceable(48) %91) #6
  br label %96

96:                                               ; preds = %86
  %97 = load i64, ptr %5, align 8, !tbaa !9
  %98 = add i64 %97, 1
  store i64 %98, ptr %5, align 8, !tbaa !9
  br label %81, !llvm.loop !18

99:                                               ; preds = %81
  br label %100

100:                                              ; preds = %112, %99
  %101 = load i64, ptr %5, align 8, !tbaa !9
  %102 = icmp ult i64 %101, 3
  br i1 %102, label %103, label %115

103:                                              ; preds = %100
  br label %104

104:                                              ; preds = %110, %103
  %105 = getelementptr inbounds %class.Reader, ptr %6, i32 0, i32 3
  %106 = load i64, ptr %5, align 8, !tbaa !9
  %107 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt5arrayI8RawTokenLm3EEixEm(ptr noundef nonnull align 8 dereferenceable(144) %105, i64 noundef %106) #6
  %108 = call noundef zeroext i1 @_ZN6Reader13readnexttokenER8RawToken(ptr noundef nonnull align 8 dereferenceable(928) %6, ptr noundef nonnull align 8 dereferenceable(48) %107)
  %109 = xor i1 %108, true
  br i1 %109, label %110, label %111

110:                                              ; preds = %104
  br label %104, !llvm.loop !19

111:                                              ; preds = %104
  br label %112

112:                                              ; preds = %111
  %113 = load i64, ptr %5, align 8, !tbaa !9
  %114 = add i64 %113, 1
  store i64 %114, ptr %5, align 8, !tbaa !9
  br label %100, !llvm.loop !20

115:                                              ; preds = %100
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  br label %116

116:                                              ; preds = %115, %79, %57, %37
  ret void
}

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(48) ptr @_ZN8RawTokenaSEOS_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(48)) #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 = { 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 = { noreturn 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 #4 = { 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 #5 = { noreturn nounwind }
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 = !{!"long", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !12}
!19 = distinct !{!19, !12}
!20 = distinct !{!20, !12}


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

@.str.36 = external hidden unnamed_addr constant [80 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [12 x i8], align 1
@__PRETTY_FUNCTION__._ZN6Reader12nextrawtokenEm = external hidden unnamed_addr constant [34 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [21 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN6Reader13readnexttokenER8RawToken(ptr noundef nonnull align 8 dereferenceable(928), ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #0 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6Reader12nextrawtokenEm(ptr noundef nonnull align 8 dereferenceable(928) %0, i64 noundef %1) local_unnamed_addr #0 align 2 {
  %.not = icmp eq i64 %1, 0
  br i1 %.not, label %3, label %4

3:                                                ; preds = %2
  tail call void @__assert_fail(ptr noundef nonnull @.str.37, ptr noundef nonnull @.str.36, i32 noundef 1140, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN6Reader12nextrawtokenEm) #4
  unreachable

4:                                                ; preds = %2
  %5 = icmp ult i64 %1, 4
  br i1 %5, label %7, label %6

6:                                                ; preds = %4
  tail call void @__assert_fail(ptr noundef nonnull @.str.38, ptr noundef nonnull @.str.36, i32 noundef 1141, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN6Reader12nextrawtokenEm) #4
  unreachable

7:                                                ; preds = %4
  %8 = getelementptr inbounds i8, ptr %0, i64 560
  switch i64 %1, label %default.unreachable [
    i64 1, label %9
    i64 2, label %19
    i64 3, label %.preheader17
  ]

9:                                                ; preds = %7
  %10 = tail call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt5arrayI8RawTokenLm3EEixEm(ptr noundef nonnull align 8 dereferenceable(144) %8, i64 noundef 1) #5
  %11 = tail call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt5arrayI8RawTokenLm3EEixEm(ptr noundef nonnull align 8 dereferenceable(144) %8, i64 noundef 0) #5
  %12 = tail call noundef nonnull align 8 dereferenceable(48) ptr @_ZN8RawTokenaSEOS_(ptr noundef nonnull align 8 dereferenceable(48) %11, ptr noundef nonnull align 8 dereferenceable(48) %10) #5
  %13 = tail call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt5arrayI8RawTokenLm3EEixEm(ptr noundef nonnull align 8 dereferenceable(144) %8, i64 noundef 2) #5
  %14 = tail call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt5arrayI8RawTokenLm3EEixEm(ptr noundef nonnull align 8 dereferenceable(144) %8, i64 noundef 1) #5
  %15 = tail call noundef nonnull align 8 dereferenceable(48) ptr @_ZN8RawTokenaSEOS_(ptr noundef nonnull align 8 dereferenceable(48) %14, ptr noundef nonnull align 8 dereferenceable(48) %13) #5
  br label %16

16:                                               ; preds = %16, %9
  %17 = tail call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt5arrayI8RawTokenLm3EEixEm(ptr noundef nonnull align 8 dereferenceable(144) %8, i64 noundef 2) #5
  %18 = tail call noundef zeroext i1 @_ZN6Reader13readnexttokenER8RawToken(ptr noundef nonnull align 8 dereferenceable(928) %0, ptr noundef nonnull align 8 dereferenceable(48) %17)
  br i1 %18, label %.loopexit, label %16, !llvm.loop !5

19:                                               ; preds = %7
  %20 = tail call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt5arrayI8RawTokenLm3EEixEm(ptr noundef nonnull align 8 dereferenceable(144) %8, i64 noundef 2) #5
  %21 = tail call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt5arrayI8RawTokenLm3EEixEm(ptr noundef nonnull align 8 dereferenceable(144) %8, i64 noundef 0) #5
  %22 = tail call noundef nonnull align 8 dereferenceable(48) ptr @_ZN8RawTokenaSEOS_(ptr noundef nonnull align 8 dereferenceable(48) %21, ptr noundef nonnull align 8 dereferenceable(48) %20) #5
  br label %23

23:                                               ; preds = %23, %19
  %24 = tail call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt5arrayI8RawTokenLm3EEixEm(ptr noundef nonnull align 8 dereferenceable(144) %8, i64 noundef 1) #5
  %25 = tail call noundef zeroext i1 @_ZN6Reader13readnexttokenER8RawToken(ptr noundef nonnull align 8 dereferenceable(928) %0, ptr noundef nonnull align 8 dereferenceable(48) %24)
  br i1 %25, label %.preheader, label %23, !llvm.loop !7

.preheader:                                       ; preds = %23, %.preheader
  %26 = tail call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt5arrayI8RawTokenLm3EEixEm(ptr noundef nonnull align 8 dereferenceable(144) %8, i64 noundef 2) #5
  %27 = tail call noundef zeroext i1 @_ZN6Reader13readnexttokenER8RawToken(ptr noundef nonnull align 8 dereferenceable(928) %0, ptr noundef nonnull align 8 dereferenceable(48) %26)
  br i1 %27, label %.loopexit, label %.preheader, !llvm.loop !8

.preheader17:                                     ; preds = %7, %.preheader17
  %28 = tail call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt5arrayI8RawTokenLm3EEixEm(ptr noundef nonnull align 8 dereferenceable(144) %8, i64 noundef 0) #5
  %29 = tail call noundef zeroext i1 @_ZN6Reader13readnexttokenER8RawToken(ptr noundef nonnull align 8 dereferenceable(928) %0, ptr noundef nonnull align 8 dereferenceable(48) %28)
  br i1 %29, label %.preheader16, label %.preheader17, !llvm.loop !9

.preheader16:                                     ; preds = %.preheader17, %.preheader16
  %30 = tail call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt5arrayI8RawTokenLm3EEixEm(ptr noundef nonnull align 8 dereferenceable(144) %8, i64 noundef 1) #5
  %31 = tail call noundef zeroext i1 @_ZN6Reader13readnexttokenER8RawToken(ptr noundef nonnull align 8 dereferenceable(928) %0, ptr noundef nonnull align 8 dereferenceable(48) %30)
  br i1 %31, label %.preheader14, label %.preheader16, !llvm.loop !10

.preheader14:                                     ; preds = %.preheader16, %.preheader14
  %32 = tail call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt5arrayI8RawTokenLm3EEixEm(ptr noundef nonnull align 8 dereferenceable(144) %8, i64 noundef 2) #5
  %33 = tail call noundef zeroext i1 @_ZN6Reader13readnexttokenER8RawToken(ptr noundef nonnull align 8 dereferenceable(928) %0, ptr noundef nonnull align 8 dereferenceable(48) %32)
  br i1 %33, label %.loopexit, label %.preheader14, !llvm.loop !11

default.unreachable:                              ; preds = %7
  unreachable

.loopexit:                                        ; preds = %.preheader14, %.preheader, %16
  ret void
}

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(48) ptr @_ZN8RawTokenaSEOS_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #3 align 2

attributes #0 = { 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 #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 = { noreturn 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 #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 = { noreturn nounwind }
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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = distinct !{!7, !6}
!8 = distinct !{!8, !6}
!9 = distinct !{!9, !6}
!10 = distinct !{!10, !6}
!11 = distinct !{!11, !6}


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