; LLVM IR from jzimmerman/langcc :: gen/meta (gen_test)

; 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.langcc::rc_ptr.0" = type { ptr, ptr }
%"struct.langcc::Option::_T.6" = type { i32, [32 x i8] }
%"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::allocator" = type { i8 }

@.str = external hidden unnamed_addr constant [10 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [47 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i8, align 1
  %3 = alloca %"struct.langcc::rc_ptr.0", align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca %"struct.langcc::Option::_T.6", align 4
  %7 = alloca %"class.std::__cxx11::basic_string", align 8
  %8 = alloca i1, align 1
  %9 = alloca %"class.std::allocator", align 1
  %10 = alloca i1, align 1
  %11 = alloca i1, align 1
  %12 = alloca i1, align 1
  %13 = alloca i1, align 1
  %14 = alloca %"struct.langcc::Option::_T.6", align 4
  %15 = alloca %"class.std::__cxx11::basic_string", align 8
  %16 = alloca i1, align 1
  %17 = alloca %"class.std::allocator", align 1
  %18 = alloca i1, align 1
  %19 = alloca i1, align 1
  %20 = alloca i1, align 1
  %21 = alloca i1, align 1
  store i32 0, ptr %1, align 4
  call void @_ZN6langcc11global_initEv()
  call void @llvm.lifetime.start.p0(i64 1, ptr %2) #7
  store i8 1, ptr %2, align 1, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %3) #7
  call void @_ZN4lang4meta4initEv(ptr dead_on_unwind writable sret(%"struct.langcc::rc_ptr.0") align 8 %3)
  %22 = load i8, ptr %2, align 1, !tbaa !5, !range !9, !noundef !10
  %23 = trunc i8 %22 to i1
  store i1 false, ptr %8, align 1
  store i1 false, ptr %10, align 1
  store i1 false, ptr %11, align 1
  store i1 false, ptr %12, align 1
  store i1 false, ptr %13, align 1
  br i1 %23, label %24, label %31

24:                                               ; preds = %0
  %25 = invoke noundef ptr @_ZN6langcc6rc_ptrINS_8LangDescIN4lang4meta4Node2_TEXadL_ZNS3_6parser16action_by_vertexElNS_15ParserLookaheadEEEXadL_ZNS6_15vertex_dfa_stepEllNS_14ParserAttrMaskEEEEEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %3)
          to label %26 unwind label %81

26:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 32, ptr %7) #7
  store i1 true, ptr %8, align 1
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #7
  store i1 true, ptr %10, align 1
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #7
  store i1 true, ptr %11, align 1
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef @.str, ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %27 unwind label %85

27:                                               ; preds = %26
  store i1 true, ptr %12, align 1
  invoke void @_ZN6langcc4SomeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEENS_6Option2_TIT_EERKS9_(ptr dead_on_unwind writable sret(%"struct.langcc::Option::_T.6") align 4 %6, ptr noundef nonnull align 8 dereferenceable(32) %7)
          to label %28 unwind label %89

28:                                               ; preds = %27
  store i1 true, ptr %13, align 1
  %29 = invoke noundef zeroext i1 @_ZN6langcc8LangDescIN4lang4meta4Node2_TEXadL_ZNS2_6parser16action_by_vertexElNS_15ParserLookaheadEEEXadL_ZNS5_15vertex_dfa_stepEllNS_14ParserAttrMaskEEEE12test_exampleENS_6Option2_TINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEPKclb(ptr noundef nonnull align 8 dereferenceable(88) %25, ptr noundef %6, ptr noundef @.str.1, i64 noundef -1, i1 noundef zeroext true)
          to label %30 unwind label %93

30:                                               ; preds = %28
  br label %31

31:                                               ; preds = %30, %0
  %32 = phi i1 [ false, %0 ], [ %29, %30 ]
  %33 = zext i1 %32 to i8
  store i8 %33, ptr %2, align 1, !tbaa !5
  %34 = load i1, ptr %13, align 1
  br i1 %34, label %35, label %36

35:                                               ; preds = %31
  call void @_ZN6langcc6Option2_TINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 4 dereferenceable(36) %6) #7
  br label %36

36:                                               ; preds = %35, %31
  %37 = load i1, ptr %12, align 1
  br i1 %37, label %38, label %39

38:                                               ; preds = %36
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #7
  br label %39

39:                                               ; preds = %38, %36
  %40 = load i1, ptr %11, align 1
  br i1 %40, label %41, label %42

41:                                               ; preds = %39
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #7
  br label %42

42:                                               ; preds = %41, %39
  %43 = load i1, ptr %10, align 1
  br i1 %43, label %44, label %45

44:                                               ; preds = %42
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #7
  br label %45

45:                                               ; preds = %44, %42
  %46 = load i1, ptr %8, align 1
  br i1 %46, label %47, label %48

47:                                               ; preds = %45
  call void @llvm.lifetime.end.p0(i64 32, ptr %7) #7
  br label %48

48:                                               ; preds = %47, %45
  %49 = load i8, ptr %2, align 1, !tbaa !5, !range !9, !noundef !10
  %50 = trunc i8 %49 to i1
  store i1 false, ptr %16, align 1
  store i1 false, ptr %18, align 1
  store i1 false, ptr %19, align 1
  store i1 false, ptr %20, align 1
  store i1 false, ptr %21, align 1
  br i1 %50, label %51, label %58

51:                                               ; preds = %48
  %52 = invoke noundef ptr @_ZN6langcc6rc_ptrINS_8LangDescIN4lang4meta4Node2_TEXadL_ZNS3_6parser16action_by_vertexElNS_15ParserLookaheadEEEXadL_ZNS6_15vertex_dfa_stepEllNS_14ParserAttrMaskEEEEEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %3)
          to label %53 unwind label %81

53:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 32, ptr %15) #7
  store i1 true, ptr %16, align 1
  call void @llvm.lifetime.start.p0(i64 1, ptr %17) #7
  store i1 true, ptr %18, align 1
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #7
  store i1 true, ptr %19, align 1
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef @.str, ptr noundef nonnull align 1 dereferenceable(1) %17)
          to label %54 unwind label %114

54:                                               ; preds = %53
  store i1 true, ptr %20, align 1
  invoke void @_ZN6langcc4SomeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEENS_6Option2_TIT_EERKS9_(ptr dead_on_unwind writable sret(%"struct.langcc::Option::_T.6") align 4 %14, ptr noundef nonnull align 8 dereferenceable(32) %15)
          to label %55 unwind label %118

55:                                               ; preds = %54
  store i1 true, ptr %21, align 1
  %56 = invoke noundef zeroext i1 @_ZN6langcc8LangDescIN4lang4meta4Node2_TEXadL_ZNS2_6parser16action_by_vertexElNS_15ParserLookaheadEEEXadL_ZNS5_15vertex_dfa_stepEllNS_14ParserAttrMaskEEEE12test_exampleENS_6Option2_TINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEPKclb(ptr noundef nonnull align 8 dereferenceable(88) %52, ptr noundef %14, ptr noundef @.str.2, i64 noundef -1, i1 noundef zeroext true)
          to label %57 unwind label %122

57:                                               ; preds = %55
  br label %58

58:                                               ; preds = %57, %48
  %59 = phi i1 [ false, %48 ], [ %56, %57 ]
  %60 = zext i1 %59 to i8
  store i8 %60, ptr %2, align 1, !tbaa !5
  %61 = load i1, ptr %21, align 1
  br i1 %61, label %62, label %63

62:                                               ; preds = %58
  call void @_ZN6langcc6Option2_TINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 4 dereferenceable(36) %14) #7
  br label %63

63:                                               ; preds = %62, %58
  %64 = load i1, ptr %20, align 1
  br i1 %64, label %65, label %66

65:                                               ; preds = %63
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #7
  br label %66

66:                                               ; preds = %65, %63
  %67 = load i1, ptr %19, align 1
  br i1 %67, label %68, label %69

68:                                               ; preds = %66
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #7
  br label %69

69:                                               ; preds = %68, %66
  %70 = load i1, ptr %18, align 1
  br i1 %70, label %71, label %72

71:                                               ; preds = %69
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #7
  br label %72

72:                                               ; preds = %71, %69
  %73 = load i1, ptr %16, align 1
  br i1 %73, label %74, label %75

74:                                               ; preds = %72
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #7
  br label %75

75:                                               ; preds = %74, %72
  %76 = load i8, ptr %2, align 1, !tbaa !5, !range !9, !noundef !10
  %77 = trunc i8 %76 to i1
  %78 = xor i1 %77, true
  %79 = zext i1 %78 to i32
  store i32 %79, ptr %1, align 4
  call void @_ZN6langcc6rc_ptrINS_8LangDescIN4lang4meta4Node2_TEXadL_ZNS3_6parser16action_by_vertexElNS_15ParserLookaheadEEEXadL_ZNS6_15vertex_dfa_stepEllNS_14ParserAttrMaskEEEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %3) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %2) #7
  %80 = load i32, ptr %1, align 4
  ret i32 %80

81:                                               ; preds = %51, %24
  %82 = landingpad { ptr, i32 }
          cleanup
  %83 = extractvalue { ptr, i32 } %82, 0
  store ptr %83, ptr %4, align 8
  %84 = extractvalue { ptr, i32 } %82, 1
  store i32 %84, ptr %5, align 4
  br label %143

85:                                               ; preds = %26
  %86 = landingpad { ptr, i32 }
          cleanup
  %87 = extractvalue { ptr, i32 } %86, 0
  store ptr %87, ptr %4, align 8
  %88 = extractvalue { ptr, i32 } %86, 1
  store i32 %88, ptr %5, align 4
  br label %104

89:                                               ; preds = %27
  %90 = landingpad { ptr, i32 }
          cleanup
  %91 = extractvalue { ptr, i32 } %90, 0
  store ptr %91, ptr %4, align 8
  %92 = extractvalue { ptr, i32 } %90, 1
  store i32 %92, ptr %5, align 4
  br label %100

93:                                               ; preds = %28
  %94 = landingpad { ptr, i32 }
          cleanup
  %95 = extractvalue { ptr, i32 } %94, 0
  store ptr %95, ptr %4, align 8
  %96 = extractvalue { ptr, i32 } %94, 1
  store i32 %96, ptr %5, align 4
  %97 = load i1, ptr %13, align 1
  br i1 %97, label %98, label %99

98:                                               ; preds = %93
  call void @_ZN6langcc6Option2_TINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 4 dereferenceable(36) %6) #7
  br label %99

99:                                               ; preds = %98, %93
  br label %100

100:                                              ; preds = %99, %89
  %101 = load i1, ptr %12, align 1
  br i1 %101, label %102, label %103

102:                                              ; preds = %100
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #7
  br label %103

103:                                              ; preds = %102, %100
  br label %104

104:                                              ; preds = %103, %85
  %105 = load i1, ptr %11, align 1
  br i1 %105, label %106, label %107

106:                                              ; preds = %104
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #7
  br label %107

107:                                              ; preds = %106, %104
  %108 = load i1, ptr %10, align 1
  br i1 %108, label %109, label %110

109:                                              ; preds = %107
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #7
  br label %110

110:                                              ; preds = %109, %107
  %111 = load i1, ptr %8, align 1
  br i1 %111, label %112, label %113

112:                                              ; preds = %110
  call void @llvm.lifetime.end.p0(i64 32, ptr %7) #7
  br label %113

113:                                              ; preds = %112, %110
  br label %143

114:                                              ; preds = %53
  %115 = landingpad { ptr, i32 }
          cleanup
  %116 = extractvalue { ptr, i32 } %115, 0
  store ptr %116, ptr %4, align 8
  %117 = extractvalue { ptr, i32 } %115, 1
  store i32 %117, ptr %5, align 4
  br label %133

118:                                              ; preds = %54
  %119 = landingpad { ptr, i32 }
          cleanup
  %120 = extractvalue { ptr, i32 } %119, 0
  store ptr %120, ptr %4, align 8
  %121 = extractvalue { ptr, i32 } %119, 1
  store i32 %121, ptr %5, align 4
  br label %129

122:                                              ; preds = %55
  %123 = landingpad { ptr, i32 }
          cleanup
  %124 = extractvalue { ptr, i32 } %123, 0
  store ptr %124, ptr %4, align 8
  %125 = extractvalue { ptr, i32 } %123, 1
  store i32 %125, ptr %5, align 4
  %126 = load i1, ptr %21, align 1
  br i1 %126, label %127, label %128

127:                                              ; preds = %122
  call void @_ZN6langcc6Option2_TINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 4 dereferenceable(36) %14) #7
  br label %128

128:                                              ; preds = %127, %122
  br label %129

129:                                              ; preds = %128, %118
  %130 = load i1, ptr %20, align 1
  br i1 %130, label %131, label %132

131:                                              ; preds = %129
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #7
  br label %132

132:                                              ; preds = %131, %129
  br label %133

133:                                              ; preds = %132, %114
  %134 = load i1, ptr %19, align 1
  br i1 %134, label %135, label %136

135:                                              ; preds = %133
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #7
  br label %136

136:                                              ; preds = %135, %133
  %137 = load i1, ptr %18, align 1
  br i1 %137, label %138, label %139

138:                                              ; preds = %136
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #7
  br label %139

139:                                              ; preds = %138, %136
  %140 = load i1, ptr %16, align 1
  br i1 %140, label %141, label %142

141:                                              ; preds = %139
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #7
  br label %142

142:                                              ; preds = %141, %139
  br label %143

143:                                              ; preds = %142, %113, %81
  call void @_ZN6langcc6rc_ptrINS_8LangDescIN4lang4meta4Node2_TEXadL_ZNS3_6parser16action_by_vertexElNS_15ParserLookaheadEEEXadL_ZNS6_15vertex_dfa_stepEllNS_14ParserAttrMaskEEEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %3) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %2) #7
  br label %144

144:                                              ; preds = %143
  %145 = load ptr, ptr %4, align 8
  %146 = load i32, ptr %5, align 4
  %147 = insertvalue { ptr, i32 } poison, ptr %145, 0
  %148 = insertvalue { ptr, i32 } %147, i32 %146, 1
  resume { ptr, i32 } %148
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6langcc11global_initEv() #1

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

declare void @_ZN4lang4meta4initEv(ptr dead_on_unwind writable sret(%"struct.langcc::rc_ptr.0") align 8) #3

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN6langcc8LangDescIN4lang4meta4Node2_TEXadL_ZNS2_6parser16action_by_vertexElNS_15ParserLookaheadEEEXadL_ZNS5_15vertex_dfa_stepEllNS_14ParserAttrMaskEEEE12test_exampleENS_6Option2_TINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEPKclb(ptr noundef nonnull align 8 dereferenceable(88), ptr noundef, ptr noundef, i64 noundef, i1 noundef zeroext) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6langcc4SomeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEENS_6Option2_TIT_EERKS9_(ptr dead_on_unwind noalias writable sret(%"struct.langcc::Option::_T.6") align 4, ptr noundef nonnull align 8 dereferenceable(32)) #5

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6langcc6Option2_TINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 4 dereferenceable(36)) unnamed_addr #6 align 2

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

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

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN6langcc6rc_ptrINS_8LangDescIN4lang4meta4Node2_TEXadL_ZNS3_6parser16action_by_vertexElNS_15ParserLookaheadEEEXadL_ZNS6_15vertex_dfa_stepEllNS_14ParserAttrMaskEEEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #4 align 2

attributes #0 = { mustprogress norecurse 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 = { 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { alwaysinline 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 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 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 }

!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 = !{!"bool", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{i8 0, i8 2}
!10 = !{}


; 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.langcc::rc_ptr.0" = type { ptr, ptr }
%"struct.langcc::Option::_T.6" = type { i32, [32 x i8] }
%"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::allocator" = type { i8 }

@.str = external hidden unnamed_addr constant [10 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [47 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef range(i32 0, 2) i32 @main() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"struct.langcc::rc_ptr.0", align 8
  %2 = alloca %"struct.langcc::Option::_T.6", align 4
  %3 = alloca %"class.std::__cxx11::basic_string", align 8
  %4 = alloca %"class.std::allocator", align 1
  %5 = alloca %"struct.langcc::Option::_T.6", align 4
  %6 = alloca %"class.std::__cxx11::basic_string", align 8
  %7 = alloca %"class.std::allocator", align 1
  tail call void @_ZN6langcc11global_initEv()
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %1) #7
  call void @_ZN4lang4meta4initEv(ptr dead_on_unwind nonnull writable sret(%"struct.langcc::rc_ptr.0") align 8 %1)
  %8 = call noundef ptr @_ZN6langcc6rc_ptrINS_8LangDescIN4lang4meta4Node2_TEXadL_ZNS3_6parser16action_by_vertexElNS_15ParserLookaheadEEEXadL_ZNS6_15vertex_dfa_stepEllNS_14ParserAttrMaskEEEEEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull @.str, ptr noundef nonnull align 1 dereferenceable(1) %4)
          to label %9 unwind label %21

9:                                                ; preds = %0
  invoke void @_ZN6langcc4SomeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEENS_6Option2_TIT_EERKS9_(ptr dead_on_unwind nonnull writable sret(%"struct.langcc::Option::_T.6") align 4 %2, ptr noundef nonnull align 8 dereferenceable(32) %3)
          to label %10 unwind label %23

10:                                               ; preds = %9
  %11 = invoke noundef zeroext i1 @_ZN6langcc8LangDescIN4lang4meta4Node2_TEXadL_ZNS2_6parser16action_by_vertexElNS_15ParserLookaheadEEEXadL_ZNS5_15vertex_dfa_stepEllNS_14ParserAttrMaskEEEE12test_exampleENS_6Option2_TINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEPKclb(ptr noundef nonnull align 8 dereferenceable(88) %8, ptr noundef nonnull %2, ptr noundef nonnull @.str.1, i64 noundef -1, i1 noundef zeroext true)
          to label %12 unwind label %25

12:                                               ; preds = %10
  call void @_ZN6langcc6Option2_TINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 4 dereferenceable(36) %2) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #7
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #7
  br i1 %11, label %13, label %.critedge48

13:                                               ; preds = %12
  %14 = call noundef ptr @_ZN6langcc6rc_ptrINS_8LangDescIN4lang4meta4Node2_TEXadL_ZNS3_6parser16action_by_vertexElNS_15ParserLookaheadEEEXadL_ZNS6_15vertex_dfa_stepEllNS_14ParserAttrMaskEEEEEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull @.str, ptr noundef nonnull align 1 dereferenceable(1) %7)
          to label %15 unwind label %29

15:                                               ; preds = %13
  invoke void @_ZN6langcc4SomeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEENS_6Option2_TIT_EERKS9_(ptr dead_on_unwind nonnull writable sret(%"struct.langcc::Option::_T.6") align 4 %5, ptr noundef nonnull align 8 dereferenceable(32) %6)
          to label %16 unwind label %31

16:                                               ; preds = %15
  %17 = invoke noundef zeroext i1 @_ZN6langcc8LangDescIN4lang4meta4Node2_TEXadL_ZNS2_6parser16action_by_vertexElNS_15ParserLookaheadEEEXadL_ZNS5_15vertex_dfa_stepEllNS_14ParserAttrMaskEEEE12test_exampleENS_6Option2_TINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEPKclb(ptr noundef nonnull align 8 dereferenceable(88) %14, ptr noundef nonnull %5, ptr noundef nonnull @.str.2, i64 noundef -1, i1 noundef zeroext true)
          to label %.critedge unwind label %33

.critedge:                                        ; preds = %16
  call void @_ZN6langcc6Option2_TINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 4 dereferenceable(36) %5) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #7
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #7
  %18 = xor i1 %17, true
  %19 = zext i1 %18 to i32
  br label %.critedge48

.critedge48:                                      ; preds = %12, %.critedge
  %20 = phi i32 [ %19, %.critedge ], [ 1, %12 ]
  call void @_ZN6langcc6rc_ptrINS_8LangDescIN4lang4meta4Node2_TEXadL_ZNS3_6parser16action_by_vertexElNS_15ParserLookaheadEEEXadL_ZNS6_15vertex_dfa_stepEllNS_14ParserAttrMaskEEEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %1) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %1) #7
  ret i32 %20

21:                                               ; preds = %0
  %22 = landingpad { ptr, i32 }
          cleanup
  br label %28

23:                                               ; preds = %9
  %24 = landingpad { ptr, i32 }
          cleanup
  br label %27

25:                                               ; preds = %10
  %26 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6langcc6Option2_TINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 4 dereferenceable(36) %2) #7
  br label %27

27:                                               ; preds = %23, %25
  %.pn = phi { ptr, i32 } [ %26, %25 ], [ %24, %23 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #7
  br label %28

28:                                               ; preds = %21, %27
  %.pn.pn = phi { ptr, i32 } [ %.pn, %27 ], [ %22, %21 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #7
  br label %37

29:                                               ; preds = %13
  %30 = landingpad { ptr, i32 }
          cleanup
  br label %36

31:                                               ; preds = %15
  %32 = landingpad { ptr, i32 }
          cleanup
  br label %35

33:                                               ; preds = %16
  %34 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6langcc6Option2_TINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 4 dereferenceable(36) %5) #7
  br label %35

35:                                               ; preds = %31, %33
  %.pn42 = phi { ptr, i32 } [ %34, %33 ], [ %32, %31 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #7
  br label %36

36:                                               ; preds = %29, %35
  %.pn42.pn = phi { ptr, i32 } [ %.pn42, %35 ], [ %30, %29 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #7
  br label %37

37:                                               ; preds = %36, %28
  %.pn42.pn.pn = phi { ptr, i32 } [ %.pn42.pn, %36 ], [ %.pn.pn, %28 ]
  call void @_ZN6langcc6rc_ptrINS_8LangDescIN4lang4meta4Node2_TEXadL_ZNS3_6parser16action_by_vertexElNS_15ParserLookaheadEEEXadL_ZNS6_15vertex_dfa_stepEllNS_14ParserAttrMaskEEEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %1) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %1) #7
  resume { ptr, i32 } %.pn42.pn.pn
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6langcc11global_initEv() local_unnamed_addr #1

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

declare void @_ZN4lang4meta4initEv(ptr dead_on_unwind writable sret(%"struct.langcc::rc_ptr.0") align 8) local_unnamed_addr #3

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN6langcc8LangDescIN4lang4meta4Node2_TEXadL_ZNS2_6parser16action_by_vertexElNS_15ParserLookaheadEEEXadL_ZNS5_15vertex_dfa_stepEllNS_14ParserAttrMaskEEEE12test_exampleENS_6Option2_TINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEPKclb(ptr noundef nonnull align 8 dereferenceable(88), ptr noundef, ptr noundef, i64 noundef, i1 noundef zeroext) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6langcc4SomeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEENS_6Option2_TIT_EERKS9_(ptr dead_on_unwind noalias writable sret(%"struct.langcc::Option::_T.6") align 4, ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #5

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6langcc6Option2_TINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 4 dereferenceable(36)) unnamed_addr #6 align 2

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

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

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN6langcc6rc_ptrINS_8LangDescIN4lang4meta4Node2_TEXadL_ZNS3_6parser16action_by_vertexElNS_15ParserLookaheadEEEXadL_ZNS6_15vertex_dfa_stepEllNS_14ParserAttrMaskEEEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #4 align 2

attributes #0 = { mustprogress norecurse 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 = { 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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { alwaysinline 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 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 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 }

!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)"}


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