; LLVM IR from Aeternum-Veritas/Merry :: asm/src/worker.ll (ZN4masm6Parser15handle_ndefinedEv)

; 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.masm::SymbolTable" = type { %"class.std::unordered_map.92", %"class.std::unordered_map.92" }
%"class.std::unordered_map.92" = type { %"class.std::_Hashtable.93" }
%"class.std::_Hashtable.93" = 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 }
%"class.masm::Expr" = type <{ ptr, %"class.std::vector.106", %"class.std::stack", %"class.std::stack.114", ptr, i8, [7 x i8] }>
%"class.std::vector.106" = type { %"struct.std::_Vector_base.107" }
%"struct.std::_Vector_base.107" = type { %"struct.std::_Vector_base<masm::Token, std::allocator<masm::Token>>::_Vector_impl" }
%"struct.std::_Vector_base<masm::Token, std::allocator<masm::Token>>::_Vector_impl" = type { %"struct.std::_Vector_base<masm::Token, std::allocator<masm::Token>>::_Vector_impl_data" }
%"struct.std::_Vector_base<masm::Token, std::allocator<masm::Token>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::stack" = type { %"class.std::deque" }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<double, std::allocator<double>>::_Deque_impl" }
%"struct.std::_Deque_base<double, std::allocator<double>>::_Deque_impl" = type { %"struct.std::_Deque_base<double, std::allocator<double>>::_Deque_impl_data" }
%"struct.std::_Deque_base<double, std::allocator<double>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator", %"struct.std::_Deque_iterator" }
%"struct.std::_Deque_iterator" = type { ptr, ptr, ptr, ptr }
%"class.std::stack.114" = type { %"class.std::deque.115" }
%"class.std::deque.115" = type { %"class.std::_Deque_base.116" }
%"class.std::_Deque_base.116" = type { %"struct.std::_Deque_base<masm::TokenType, std::allocator<masm::TokenType>>::_Deque_impl" }
%"struct.std::_Deque_base<masm::TokenType, std::allocator<masm::TokenType>>::_Deque_impl" = type { %"struct.std::_Deque_base<masm::TokenType, std::allocator<masm::TokenType>>::_Deque_impl_data" }
%"struct.std::_Deque_base<masm::TokenType, std::allocator<masm::TokenType>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator.120", %"struct.std::_Deque_iterator.120" }
%"struct.std::_Deque_iterator.120" = type { ptr, ptr, ptr, ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"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::locale" = type { ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::optional" = type { %"struct.std::_Optional_base" }
%"struct.std::_Optional_base" = type { %"struct.std::_Optional_payload" }
%"struct.std::_Optional_payload" = type { %"struct.std::_Optional_payload.base", [7 x i8] }
%"struct.std::_Optional_payload.base" = type { %"struct.std::_Optional_payload_base.base" }
%"struct.std::_Optional_payload_base.base" = type <{ %"union.std::_Optional_payload_base<masm::Token>::_Storage", i8 }>
%"union.std::_Optional_payload_base<masm::Token>::_Storage" = type { %"struct.masm::Token" }
%"struct.masm::Token" = type { %"class.std::__cxx11::basic_string", i32, i64, i64, i64, %"class.std::vector.106" }
%"class.std::optional.296" = type { %"struct.std::_Optional_base.297" }
%"struct.std::_Optional_base.297" = type { %"struct.std::_Optional_payload.299" }
%"struct.std::_Optional_payload.299" = type { %"struct.std::_Optional_payload.base.303", [7 x i8] }
%"struct.std::_Optional_payload.base.303" = type { %"struct.std::_Optional_payload_base.base.302" }
%"struct.std::_Optional_payload_base.base.302" = type <{ %"union.std::_Optional_payload_base<std::__cxx11::basic_string<char>>::_Storage", i8 }>
%"union.std::_Optional_payload_base<std::__cxx11::basic_string<char>>::_Storage" = type { %"class.std::__cxx11::basic_string" }
%"struct.std::__detail::_Node_iterator.149" = type { %"struct.std::__detail::_Node_iterator_base.150" }
%"struct.std::__detail::_Node_iterator_base.150" = type { ptr }
%"class.masm::Parser" = type <{ %"class.masm::Lexer", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", i8, [7 x i8], %"struct.masm::Token", %"class.std::shared_ptr", %"class.std::vector.137", i8, [7 x i8] }>
%"class.masm::Lexer" = type <{ %"class.std::shared_ptr", %"class.std::shared_ptr", i64, i64, i64, i64, i64, %"class.__gnu_cxx::__normal_iterator", %"class.__gnu_cxx::__normal_iterator", i8, [7 x i8] }>
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"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.137" = type { %"struct.std::_Bvector_base" }
%"struct.std::_Bvector_base" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" = type { %"struct.std::_Bit_iterator", %"struct.std::_Bit_iterator", ptr }
%"struct.std::_Bit_iterator" = type { %"struct.std::_Bit_iterator_base.base", [4 x i8] }
%"struct.std::_Bit_iterator_base.base" = type <{ ptr, i32 }>

@_ZN4masmL8symtableE = external hidden global %"struct.masm::SymbolTable", align 8
@_ZN4masmL9evaluatorE = external hidden global %"class.masm::Expr", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.280 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.283 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.336 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.339 = external hidden unnamed_addr constant [42 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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_RKS8_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef, ptr noundef nonnull align 8 dereferenceable(32)) #3

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #4

declare void @_ZN4masm5Lexer10next_tokenEb(ptr dead_on_unwind writable sret(%"class.std::optional") align 8, ptr noundef nonnull align 8 dereferenceable(89), i1 noundef zeroext) #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt14_Optional_baseIN4masm5TokenELb0ELb0EED2Ev(ptr noundef nonnull align 8 dereferenceable(96)) unnamed_addr #6 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt8optionalIN4masm5TokenEE9has_valueEv(ptr noundef nonnull align 8 dereferenceable(96)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(88) ptr @_ZNRSt8optionalIN4masm5TokenEE5valueEv(ptr noundef nonnull align 8 dereferenceable(96)) #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN4masm5TokenC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(88), ptr noundef nonnull align 8 dereferenceable(88)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4masm6Parser15handle_ndefinedEv(ptr noundef nonnull align 8 dereferenceable(313) %0) #3 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca %"class.std::optional", align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca %"struct.masm::Token", align 8
  %8 = alloca %"class.std::vector.106", align 8
  %9 = alloca %"class.std::optional.296", align 8
  %10 = alloca %"class.std::__cxx11::basic_string", align 8
  %11 = alloca %"struct.std::__detail::_Node_iterator.149", align 8
  %12 = alloca %"struct.std::__detail::_Node_iterator.149", align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %13 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 96, ptr %3) #7
  %14 = getelementptr inbounds %"class.masm::Parser", ptr %13, i32 0, i32 0
  call void @_ZN4masm5Lexer10next_tokenEb(ptr dead_on_unwind writable sret(%"class.std::optional") align 8 %3, ptr noundef nonnull align 8 dereferenceable(89) %14, i1 noundef zeroext false)
  %15 = getelementptr inbounds %"class.masm::Parser", ptr %13, i32 0, i32 7
  invoke void @_ZNSt6vectorIbSaIbEE9push_backEb(ptr noundef nonnull align 8 dereferenceable(40) %15, i1 noundef zeroext true)
          to label %16 unwind label %21

16:                                               ; preds = %1
  %17 = getelementptr inbounds %"class.masm::Parser", ptr %13, i32 0, i32 8
  %18 = load i8, ptr %17, align 8, !tbaa !9, !range !33, !noundef !34
  %19 = trunc i8 %18 to i1
  br i1 %19, label %20, label %25

20:                                               ; preds = %16
  store i32 1, ptr %6, align 4
  br label %128

21:                                               ; preds = %31, %29, %27, %1
  %22 = landingpad { ptr, i32 }
          cleanup
  %23 = extractvalue { ptr, i32 } %22, 0
  store ptr %23, ptr %4, align 8
  %24 = extractvalue { ptr, i32 } %22, 1
  store i32 %24, ptr %5, align 4
  br label %133

25:                                               ; preds = %16
  %26 = call noundef zeroext i1 @_ZNKSt8optionalIN4masm5TokenEE9has_valueEv(ptr noundef nonnull align 8 dereferenceable(96) %3) #7
  br i1 %26, label %34, label %27

27:                                               ; preds = %25
  %28 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.280)
          to label %29 unwind label %21

29:                                               ; preds = %27
  %30 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %28, ptr noundef @.str.336)
          to label %31 unwind label %21

31:                                               ; preds = %29
  %32 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %30, ptr noundef @.str.283)
          to label %33 unwind label %21

33:                                               ; preds = %31
  call void @exit(i32 noundef 1) #8
  unreachable

34:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 88, ptr %7) #7
  %35 = invoke noundef nonnull align 8 dereferenceable(88) ptr @_ZNRSt8optionalIN4masm5TokenEE5valueEv(ptr noundef nonnull align 8 dereferenceable(96) %3)
          to label %36 unwind label %48

36:                                               ; preds = %34
  invoke void @_ZN4masm5TokenC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(88) %7, ptr noundef nonnull align 8 dereferenceable(88) %35)
          to label %37 unwind label %48

37:                                               ; preds = %36
  %38 = getelementptr inbounds %"struct.masm::Token", ptr %7, i32 0, i32 1
  %39 = load i32, ptr %38, align 8, !tbaa !35
  %40 = icmp ne i32 %39, 1
  br i1 %40, label %41, label %56

41:                                               ; preds = %37
  %42 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.280)
          to label %43 unwind label %52

43:                                               ; preds = %41
  %44 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %42, ptr noundef @.str.336)
          to label %45 unwind label %52

45:                                               ; preds = %43
  %46 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %44, ptr noundef @.str.283)
          to label %47 unwind label %52

47:                                               ; preds = %45
  call void @exit(i32 noundef 1) #8
  unreachable

48:                                               ; preds = %36, %34
  %49 = landingpad { ptr, i32 }
          cleanup
  %50 = extractvalue { ptr, i32 } %49, 0
  store ptr %50, ptr %4, align 8
  %51 = extractvalue { ptr, i32 } %49, 1
  store i32 %51, ptr %5, align 4
  br label %132

52:                                               ; preds = %60, %45, %43, %41
  %53 = landingpad { ptr, i32 }
          cleanup
  %54 = extractvalue { ptr, i32 } %53, 0
  store ptr %54, ptr %4, align 8
  %55 = extractvalue { ptr, i32 } %53, 1
  store i32 %55, ptr %5, align 4
  br label %131

56:                                               ; preds = %37
  %57 = getelementptr inbounds %"struct.masm::Token", ptr %7, i32 0, i32 1
  %58 = load i32, ptr %57, align 8, !tbaa !35
  %59 = icmp eq i32 %58, 4
  br i1 %59, label %60, label %109

60:                                               ; preds = %56
  %61 = getelementptr inbounds %"struct.masm::Token", ptr %7, i32 0, i32 5
  invoke void @_ZNSt6vectorIN4masm5TokenESaIS1_EEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(24) %61)
          to label %62 unwind label %52

62:                                               ; preds = %60
  invoke void @_ZN4masm4Expr8add_exprESt6vectorINS_5TokenESaIS2_EE(ptr noundef nonnull align 8 dereferenceable(201) @_ZN4masmL9evaluatorE, ptr noundef %8)
          to label %63 unwind label %75

63:                                               ; preds = %62
  call void @_ZNSt6vectorIN4masm5TokenESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #7
  call void @llvm.lifetime.start.p0(i64 40, ptr %9) #7
  invoke void @_ZN4masm4Expr8evaluateB5cxx11Eb(ptr dead_on_unwind writable sret(%"class.std::optional.296") align 8 %9, ptr noundef nonnull align 8 dereferenceable(201) @_ZN4masmL9evaluatorE, i1 noundef zeroext true)
          to label %64 unwind label %79

64:                                               ; preds = %63
  %65 = call noundef zeroext i1 @_ZNKSt8optionalINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE9has_valueEv(ptr noundef nonnull align 8 dereferenceable(40) %9) #7
  br i1 %65, label %96, label %66

66:                                               ; preds = %64
  %67 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.280)
          to label %68 unwind label %83

68:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 32, ptr %10) #7
  %69 = getelementptr inbounds %"class.masm::Parser", ptr %13, i32 0, i32 1
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_RKS8_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %10, ptr noundef @.str.339, ptr noundef nonnull align 8 dereferenceable(32) %69)
          to label %70 unwind label %87

70:                                               ; preds = %68
  %71 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) %67, ptr noundef nonnull align 8 dereferenceable(32) %10)
          to label %72 unwind label %91

72:                                               ; preds = %70
  %73 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %71, ptr noundef @.str.283)
          to label %74 unwind label %91

74:                                               ; preds = %72
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %10) #7
  call void @exit(i32 noundef 1) #8
  unreachable

75:                                               ; preds = %62
  %76 = landingpad { ptr, i32 }
          cleanup
  %77 = extractvalue { ptr, i32 } %76, 0
  store ptr %77, ptr %4, align 8
  %78 = extractvalue { ptr, i32 } %76, 1
  store i32 %78, ptr %5, align 4
  call void @_ZNSt6vectorIN4masm5TokenESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #7
  br label %131

79:                                               ; preds = %63
  %80 = landingpad { ptr, i32 }
          cleanup
  %81 = extractvalue { ptr, i32 } %80, 0
  store ptr %81, ptr %4, align 8
  %82 = extractvalue { ptr, i32 } %80, 1
  store i32 %82, ptr %5, align 4
  br label %108

83:                                               ; preds = %98, %96, %66
  %84 = landingpad { ptr, i32 }
          cleanup
  %85 = extractvalue { ptr, i32 } %84, 0
  store ptr %85, ptr %4, align 8
  %86 = extractvalue { ptr, i32 } %84, 1
  store i32 %86, ptr %5, align 4
  br label %107

87:                                               ; preds = %68
  %88 = landingpad { ptr, i32 }
          cleanup
  %89 = extractvalue { ptr, i32 } %88, 0
  store ptr %89, ptr %4, align 8
  %90 = extractvalue { ptr, i32 } %88, 1
  store i32 %90, ptr %5, align 4
  br label %95

91:                                               ; preds = %72, %70
  %92 = landingpad { ptr, i32 }
          cleanup
  %93 = extractvalue { ptr, i32 } %92, 0
  store ptr %93, ptr %4, align 8
  %94 = extractvalue { ptr, i32 } %92, 1
  store i32 %94, ptr %5, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #7
  br label %95

95:                                               ; preds = %91, %87
  call void @llvm.lifetime.end.p0(i64 32, ptr %10) #7
  br label %107

96:                                               ; preds = %64
  %97 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNRSt8optionalINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE5valueEv(ptr noundef nonnull align 8 dereferenceable(40) %9)
          to label %98 unwind label %83

98:                                               ; preds = %96
  %99 = invoke noundef i64 @_ZNSt7__cxx116stoullERKNS_12basic_stringIcSt11char_traitsIcESaIcEEEPmi(ptr noundef nonnull align 8 dereferenceable(32) %97, ptr noundef null, i32 noundef 10)
          to label %100 unwind label %83

100:                                              ; preds = %98
  %101 = icmp eq i64 %99, 0
  br i1 %101, label %102, label %103

102:                                              ; preds = %100
  store i32 1, ptr %6, align 4
  br label %104

103:                                              ; preds = %100
  store i32 0, ptr %6, align 4
  br label %104

104:                                              ; preds = %103, %102
  call void @_ZNSt14_Optional_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEELb0ELb0EED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %9) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr %9) #7
  %105 = load i32, ptr %6, align 4
  switch i32 %105, label %127 [
    i32 0, label %106
  ]

106:                                              ; preds = %104
  br label %125

107:                                              ; preds = %95, %83
  call void @_ZNSt14_Optional_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEELb0ELb0EED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %9) #7
  br label %108

108:                                              ; preds = %107, %79
  call void @llvm.lifetime.end.p0(i64 40, ptr %9) #7
  br label %131

109:                                              ; preds = %56
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  %110 = getelementptr inbounds %"struct.masm::Token", ptr %7, i32 0, i32 0
  %111 = invoke ptr @_ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN4masm8VariableESt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S7_EEE4findERSD_(ptr noundef nonnull align 8 dereferenceable(56) getelementptr inbounds (%"struct.masm::SymbolTable", ptr @_ZN4masmL8symtableE, i32 0, i32 1), ptr noundef nonnull align 8 dereferenceable(32) %110)
          to label %112 unwind label %120

112:                                              ; preds = %109
  %113 = getelementptr inbounds %"struct.std::__detail::_Node_iterator.149", ptr %11, i32 0, i32 0
  %114 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base.150", ptr %113, i32 0, i32 0
  store ptr %111, ptr %114, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  %115 = call ptr @_ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN4masm8VariableESt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S7_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) getelementptr inbounds (%"struct.masm::SymbolTable", ptr @_ZN4masmL8symtableE, i32 0, i32 1)) #7
  %116 = getelementptr inbounds %"struct.std::__detail::_Node_iterator.149", ptr %12, i32 0, i32 0
  %117 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base.150", ptr %116, i32 0, i32 0
  store ptr %115, ptr %117, align 8
  %118 = call noundef zeroext i1 @_ZNSt8__detaileqERKNS_19_Node_iterator_baseISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN4masm8VariableEELb1EEESE_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  br i1 %118, label %119, label %124

119:                                              ; preds = %112
  store i32 1, ptr %6, align 4
  br label %127

120:                                              ; preds = %109
  %121 = landingpad { ptr, i32 }
          cleanup
  %122 = extractvalue { ptr, i32 } %121, 0
  store ptr %122, ptr %4, align 8
  %123 = extractvalue { ptr, i32 } %121, 1
  store i32 %123, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  br label %131

124:                                              ; preds = %112
  br label %125

125:                                              ; preds = %124, %106
  %126 = getelementptr inbounds %"class.masm::Parser", ptr %13, i32 0, i32 8
  store i8 1, ptr %126, align 8, !tbaa !9
  store i32 0, ptr %6, align 4
  br label %127

127:                                              ; preds = %125, %119, %104
  call void @_ZN4masm5TokenD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %7) #7
  call void @llvm.lifetime.end.p0(i64 88, ptr %7) #7
  br label %128

128:                                              ; preds = %127, %20
  call void @_ZNSt14_Optional_baseIN4masm5TokenELb0ELb0EED2Ev(ptr noundef nonnull align 8 dereferenceable(96) %3) #7
  call void @llvm.lifetime.end.p0(i64 96, ptr %3) #7
  %129 = load i32, ptr %6, align 4
  switch i32 %129, label %139 [
    i32 0, label %130
    i32 1, label %130
  ]

130:                                              ; preds = %128, %128
  ret void

131:                                              ; preds = %120, %108, %75, %52
  call void @_ZN4masm5TokenD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %7) #7
  br label %132

132:                                              ; preds = %131, %48
  call void @llvm.lifetime.end.p0(i64 88, ptr %7) #7
  br label %133

133:                                              ; preds = %132, %21
  call void @_ZNSt14_Optional_baseIN4masm5TokenELb0ELb0EED2Ev(ptr noundef nonnull align 8 dereferenceable(96) %3) #7
  call void @llvm.lifetime.end.p0(i64 96, ptr %3) #7
  br label %134

134:                                              ; preds = %133
  %135 = load ptr, ptr %4, align 8
  %136 = load i32, ptr %5, align 4
  %137 = insertvalue { ptr, i32 } poison, ptr %135, 0
  %138 = insertvalue { ptr, i32 } %137, i32 %136, 1
  resume { ptr, i32 } %138

139:                                              ; preds = %128
  unreachable
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4masm5TokenD2Ev(ptr noundef nonnull align 8 dereferenceable(88)) unnamed_addr #6 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIbSaIbEE9push_backEb(ptr noundef nonnull align 8 dereferenceable(40), i1 noundef zeroext) #3 align 2

declare void @_ZN4masm4Expr8add_exprESt6vectorINS_5TokenESaIS2_EE(ptr noundef nonnull align 8 dereferenceable(201), ptr noundef) #5

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIN4masm5TokenESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

declare void @_ZN4masm4Expr8evaluateB5cxx11Eb(ptr dead_on_unwind writable sret(%"class.std::optional.296") align 8, ptr noundef nonnull align 8 dereferenceable(201), i1 noundef zeroext) #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt8optionalINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE9has_valueEv(ptr noundef nonnull align 8 dereferenceable(40)) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_ZNSt7__cxx116stoullERKNS_12basic_stringIcSt11char_traitsIcESaIcEEEPmi(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, i32 noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZNRSt8optionalINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE5valueEv(ptr noundef nonnull align 8 dereferenceable(40)) #3 align 2

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 = { 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 #4 = { 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 #5 = { "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 #6 = { 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 #7 = { nounwind }
attributes #8 = { noreturn 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, !17, i64 312}
!10 = !{!"_ZTSN4masm6ParserE", !11, i64 0, !18, i64 96, !18, i64 128, !17, i64 160, !20, i64 168, !12, i64 256, !26, i64 272, !17, i64 312}
!11 = !{!"_ZTSN4masm5LexerE", !12, i64 0, !12, i64 16, !15, i64 32, !15, i64 40, !15, i64 48, !15, i64 56, !15, i64 64, !16, i64 72, !16, i64 80, !17, i64 88}
!12 = !{!"_ZTSSt10shared_ptrINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE", !13, i64 0}
!13 = !{!"_ZTSSt12__shared_ptrINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !14, i64 8}
!14 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0}
!15 = !{!"long", !7, i64 0}
!16 = !{!"_ZTSN9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEE", !6, i64 0}
!17 = !{!"bool", !7, i64 0}
!18 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !19, i64 0, !15, i64 8, !7, i64 16}
!19 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!20 = !{!"_ZTSN4masm5TokenE", !18, i64 0, !21, i64 32, !15, i64 40, !15, i64 48, !15, i64 56, !22, i64 64}
!21 = !{!"_ZTSN4masm9TokenTypeE", !7, i64 0}
!22 = !{!"_ZTSSt6vectorIN4masm5TokenESaIS1_EE", !23, i64 0}
!23 = !{!"_ZTSSt12_Vector_baseIN4masm5TokenESaIS1_EE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIN4masm5TokenESaIS1_EE12_Vector_implE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseIN4masm5TokenESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!26 = !{!"_ZTSSt6vectorIbSaIbEE", !27, i64 0}
!27 = !{!"_ZTSSt13_Bvector_baseISaIbEE", !28, i64 0}
!28 = !{!"_ZTSNSt13_Bvector_baseISaIbEE13_Bvector_implE", !29, i64 0}
!29 = !{!"_ZTSNSt13_Bvector_baseISaIbEE18_Bvector_impl_dataE", !30, i64 0, !30, i64 16, !6, i64 32}
!30 = !{!"_ZTSSt13_Bit_iterator", !31, i64 0}
!31 = !{!"_ZTSSt18_Bit_iterator_base", !6, i64 0, !32, i64 8}
!32 = !{!"int", !7, i64 0}
!33 = !{i8 0, i8 2}
!34 = !{}
!35 = !{!20, !21, i64 32}


; 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.masm::SymbolTable" = type { %"class.std::unordered_map.92", %"class.std::unordered_map.92" }
%"class.std::unordered_map.92" = type { %"class.std::_Hashtable.93" }
%"class.std::_Hashtable.93" = 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 }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"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::locale" = type { ptr }
%"class.std::optional" = type { %"struct.std::_Optional_base" }
%"struct.std::_Optional_base" = type { %"struct.std::_Optional_payload" }
%"struct.std::_Optional_payload" = type { %"struct.std::_Optional_payload.base", [7 x i8] }
%"struct.std::_Optional_payload.base" = type { %"struct.std::_Optional_payload_base.base" }
%"struct.std::_Optional_payload_base.base" = type <{ %"union.std::_Optional_payload_base<masm::Token>::_Storage", i8 }>
%"union.std::_Optional_payload_base<masm::Token>::_Storage" = type { %"struct.masm::Token" }
%"struct.masm::Token" = type { %"class.std::__cxx11::basic_string", i32, i64, i64, i64, %"class.std::vector.106" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::vector.106" = type { %"struct.std::_Vector_base.107" }
%"struct.std::_Vector_base.107" = type { %"struct.std::_Vector_base<masm::Token, std::allocator<masm::Token>>::_Vector_impl" }
%"struct.std::_Vector_base<masm::Token, std::allocator<masm::Token>>::_Vector_impl" = type { %"struct.std::_Vector_base<masm::Token, std::allocator<masm::Token>>::_Vector_impl_data" }
%"struct.std::_Vector_base<masm::Token, std::allocator<masm::Token>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::__detail::_Node_iterator.149" = type { %"struct.std::__detail::_Node_iterator_base.150" }
%"struct.std::__detail::_Node_iterator_base.150" = type { ptr }

@_ZN4masmL8symtableE = external hidden global %"struct.masm::SymbolTable", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.280 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.283 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.336 = external hidden unnamed_addr constant [37 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #1

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

declare void @_ZN4masm5Lexer10next_tokenEb(ptr dead_on_unwind writable sret(%"class.std::optional") align 8, ptr noundef nonnull align 8 dereferenceable(89), i1 noundef zeroext) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt14_Optional_baseIN4masm5TokenELb0ELb0EED2Ev(ptr noundef nonnull align 8 dereferenceable(96)) unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt8optionalIN4masm5TokenEE9has_valueEv(ptr noundef nonnull align 8 dereferenceable(96)) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(88) ptr @_ZNRSt8optionalIN4masm5TokenEE5valueEv(ptr noundef nonnull align 8 dereferenceable(96)) local_unnamed_addr #6 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN4masm5TokenC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(88), ptr noundef nonnull align 8 dereferenceable(88)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4masm6Parser15handle_ndefinedEv(ptr noundef nonnull align 8 dereferenceable(313) %0) local_unnamed_addr #6 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.std::optional", align 8
  %3 = alloca %"struct.masm::Token", align 8
  %4 = alloca %"struct.std::__detail::_Node_iterator.149", align 8
  %5 = alloca %"struct.std::__detail::_Node_iterator.149", align 8
  call void @llvm.lifetime.start.p0(i64 96, ptr nonnull %2) #7
  call void @_ZN4masm5Lexer10next_tokenEb(ptr dead_on_unwind nonnull writable sret(%"class.std::optional") align 8 %2, ptr noundef nonnull align 8 dereferenceable(89) %0, i1 noundef zeroext false)
  %6 = getelementptr inbounds i8, ptr %0, i64 272
  invoke void @_ZNSt6vectorIbSaIbEE9push_backEb(ptr noundef nonnull align 8 dereferenceable(40) %6, i1 noundef zeroext true)
          to label %7 unwind label %11

7:                                                ; preds = %1
  %8 = getelementptr inbounds i8, ptr %0, i64 312
  %9 = load i8, ptr %8, align 8, !tbaa !5, !range !32, !noundef !33
  %10 = trunc nuw i8 %9 to i1
  br i1 %10, label %48, label %13

11:                                               ; preds = %19, %17, %15, %1
  %12 = landingpad { ptr, i32 }
          cleanup
  br label %51

13:                                               ; preds = %7
  %14 = call noundef zeroext i1 @_ZNKSt8optionalIN4masm5TokenEE9has_valueEv(ptr noundef nonnull align 8 dereferenceable(96) %2) #7
  br i1 %14, label %22, label %15

15:                                               ; preds = %13
  %16 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.280)
          to label %17 unwind label %11

17:                                               ; preds = %15
  %18 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull @.str.336)
          to label %19 unwind label %11

19:                                               ; preds = %17
  %20 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull @.str.283)
          to label %21 unwind label %11

21:                                               ; preds = %19
  call void @exit(i32 noundef 1) #8
  unreachable

22:                                               ; preds = %13
  call void @llvm.lifetime.start.p0(i64 88, ptr nonnull %3) #7
  %23 = invoke noundef nonnull align 8 dereferenceable(88) ptr @_ZNRSt8optionalIN4masm5TokenEE5valueEv(ptr noundef nonnull align 8 dereferenceable(96) %2)
          to label %24 unwind label %35

24:                                               ; preds = %22
  invoke void @_ZN4masm5TokenC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(88) %3, ptr noundef nonnull align 8 dereferenceable(88) %23)
          to label %25 unwind label %35

25:                                               ; preds = %24
  %26 = getelementptr inbounds i8, ptr %3, i64 32
  %27 = load i32, ptr %26, align 8, !tbaa !34
  %.not = icmp eq i32 %27, 1
  br i1 %.not, label %39, label %28

28:                                               ; preds = %25
  %29 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.280)
          to label %30 unwind label %37

30:                                               ; preds = %28
  %31 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %29, ptr noundef nonnull @.str.336)
          to label %32 unwind label %37

32:                                               ; preds = %30
  %33 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %31, ptr noundef nonnull @.str.283)
          to label %34 unwind label %37

34:                                               ; preds = %32
  call void @exit(i32 noundef 1) #8
  unreachable

35:                                               ; preds = %24, %22
  %36 = landingpad { ptr, i32 }
          cleanup
  br label %50

37:                                               ; preds = %32, %30, %28
  %38 = landingpad { ptr, i32 }
          cleanup
  br label %49

39:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #7
  %40 = invoke ptr @_ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN4masm8VariableESt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S7_EEE4findERSD_(ptr noundef nonnull align 8 dereferenceable(56) getelementptr inbounds (i8, ptr @_ZN4masmL8symtableE, i64 56), ptr noundef nonnull align 8 dereferenceable(32) %3)
          to label %41 unwind label %44

41:                                               ; preds = %39
  store ptr %40, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #7
  %42 = call ptr @_ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN4masm8VariableESt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S7_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) getelementptr inbounds (i8, ptr @_ZN4masmL8symtableE, i64 56)) #7
  store ptr %42, ptr %5, align 8
  %43 = call noundef zeroext i1 @_ZNSt8__detaileqERKNS_19_Node_iterator_baseISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN4masm8VariableEELb1EEESE_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  br i1 %43, label %47, label %46

44:                                               ; preds = %39
  %45 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  br label %49

46:                                               ; preds = %41
  store i8 1, ptr %8, align 8, !tbaa !5
  br label %47

47:                                               ; preds = %41, %46
  call void @_ZN4masm5TokenD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %3) #7
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %3) #7
  br label %48

48:                                               ; preds = %7, %47
  call void @_ZNSt14_Optional_baseIN4masm5TokenELb0ELb0EED2Ev(ptr noundef nonnull align 8 dereferenceable(96) %2) #7
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %2) #7
  ret void

49:                                               ; preds = %44, %37
  %.pn = phi { ptr, i32 } [ %38, %37 ], [ %45, %44 ]
  call void @_ZN4masm5TokenD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %3) #7
  br label %50

50:                                               ; preds = %49, %35
  %.pn.pn = phi { ptr, i32 } [ %.pn, %49 ], [ %36, %35 ]
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %3) #7
  br label %51

51:                                               ; preds = %50, %11
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %50 ], [ %12, %11 ]
  call void @_ZNSt14_Optional_baseIN4masm5TokenELb0ELb0EED2Ev(ptr noundef nonnull align 8 dereferenceable(96) %2) #7
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %2) #7
  resume { ptr, i32 } %.pn.pn.pn
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4masm5TokenD2Ev(ptr noundef nonnull align 8 dereferenceable(88)) unnamed_addr #4 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIbSaIbEE9push_backEb(ptr noundef nonnull align 8 dereferenceable(40), i1 noundef zeroext) local_unnamed_addr #6 align 2

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { "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 = { 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 #6 = { 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 #7 = { nounwind }
attributes #8 = { noreturn 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, !16, i64 312}
!6 = !{!"_ZTSN4masm6ParserE", !7, i64 0, !17, i64 96, !17, i64 128, !16, i64 160, !19, i64 168, !8, i64 256, !25, i64 272, !16, i64 312}
!7 = !{!"_ZTSN4masm5LexerE", !8, i64 0, !8, i64 16, !14, i64 32, !14, i64 40, !14, i64 48, !14, i64 56, !14, i64 64, !15, i64 72, !15, i64 80, !16, i64 88}
!8 = !{!"_ZTSSt10shared_ptrINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE", !9, i64 0}
!9 = !{!"_ZTSSt12__shared_ptrINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEELN9__gnu_cxx12_Lock_policyE2EE", !10, i64 0, !13, i64 8}
!10 = !{!"any pointer", !11, i64 0}
!11 = !{!"omnipotent char", !12, i64 0}
!12 = !{!"Simple C++ TBAA"}
!13 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !10, i64 0}
!14 = !{!"long", !11, i64 0}
!15 = !{!"_ZTSN9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEE", !10, i64 0}
!16 = !{!"bool", !11, i64 0}
!17 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !18, i64 0, !14, i64 8, !11, i64 16}
!18 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !10, i64 0}
!19 = !{!"_ZTSN4masm5TokenE", !17, i64 0, !20, i64 32, !14, i64 40, !14, i64 48, !14, i64 56, !21, i64 64}
!20 = !{!"_ZTSN4masm9TokenTypeE", !11, i64 0}
!21 = !{!"_ZTSSt6vectorIN4masm5TokenESaIS1_EE", !22, i64 0}
!22 = !{!"_ZTSSt12_Vector_baseIN4masm5TokenESaIS1_EE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIN4masm5TokenESaIS1_EE12_Vector_implE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIN4masm5TokenESaIS1_EE17_Vector_impl_dataE", !10, i64 0, !10, i64 8, !10, i64 16}
!25 = !{!"_ZTSSt6vectorIbSaIbEE", !26, i64 0}
!26 = !{!"_ZTSSt13_Bvector_baseISaIbEE", !27, i64 0}
!27 = !{!"_ZTSNSt13_Bvector_baseISaIbEE13_Bvector_implE", !28, i64 0}
!28 = !{!"_ZTSNSt13_Bvector_baseISaIbEE18_Bvector_impl_dataE", !29, i64 0, !29, i64 16, !10, i64 32}
!29 = !{!"_ZTSSt13_Bit_iterator", !30, i64 0}
!30 = !{!"_ZTSSt18_Bit_iterator_base", !10, i64 0, !31, i64 8}
!31 = !{!"int", !11, i64 0}
!32 = !{i8 0, i8 2}
!33 = !{}
!34 = !{!19, !20, i64 32}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,PromotePass,SROAPass,SimplifyCFGPass