; LLVM IR from jzimmerman/langcc :: gen/data (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] }

@.str = external hidden unnamed_addr constant [41 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [78 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [111 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [219 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 i1, align 1
  %8 = alloca %"struct.langcc::Option::_T.6", align 4
  %9 = alloca i1, align 1
  %10 = alloca %"struct.langcc::Option::_T.6", align 4
  %11 = alloca i1, align 1
  %12 = alloca %"struct.langcc::Option::_T.6", align 4
  %13 = alloca i1, align 1
  %14 = alloca %"struct.langcc::Option::_T.6", align 4
  %15 = 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 @_ZN4lang4data4initEv(ptr dead_on_unwind writable sret(%"struct.langcc::rc_ptr.0") align 8 %3)
  %16 = load i8, ptr %2, align 1, !tbaa !5, !range !9, !noundef !10
  %17 = trunc i8 %16 to i1
  store i1 false, ptr %7, align 1
  br i1 %17, label %18, label %24

18:                                               ; preds = %0
  %19 = invoke noundef ptr @_ZN6langcc6rc_ptrINS_8LangDescIN4lang4data4Node2_TEXadL_ZNS3_6parser16action_by_vertexElNS_15ParserLookaheadEEEXadL_ZNS6_15vertex_dfa_stepEllNS_14ParserAttrMaskEEEEEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %3)
          to label %20 unwind label %91

20:                                               ; preds = %18
  invoke void @_ZN6langcc4NoneINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEENS_6Option2_TIT_EEv(ptr dead_on_unwind writable sret(%"struct.langcc::Option::_T.6") align 4 %6)
          to label %21 unwind label %91

21:                                               ; preds = %20
  store i1 true, ptr %7, align 1
  %22 = invoke noundef zeroext i1 @_ZN6langcc8LangDescIN4lang4data4Node2_TEXadL_ZNS2_6parser16action_by_vertexElNS_15ParserLookaheadEEEXadL_ZNS5_15vertex_dfa_stepEllNS_14ParserAttrMaskEEEE12test_exampleENS_6Option2_TINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEPKclb(ptr noundef nonnull align 8 dereferenceable(88) %19, ptr noundef %6, ptr noundef @.str, i64 noundef -1, i1 noundef zeroext true)
          to label %23 unwind label %95

23:                                               ; preds = %21
  br label %24

24:                                               ; preds = %23, %0
  %25 = phi i1 [ false, %0 ], [ %22, %23 ]
  %26 = zext i1 %25 to i8
  store i8 %26, ptr %2, align 1, !tbaa !5
  %27 = load i1, ptr %7, align 1
  br i1 %27, label %28, label %29

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

29:                                               ; preds = %28, %24
  %30 = load i8, ptr %2, align 1, !tbaa !5, !range !9, !noundef !10
  %31 = trunc i8 %30 to i1
  store i1 false, ptr %9, align 1
  br i1 %31, label %32, label %38

32:                                               ; preds = %29
  %33 = invoke noundef ptr @_ZN6langcc6rc_ptrINS_8LangDescIN4lang4data4Node2_TEXadL_ZNS3_6parser16action_by_vertexElNS_15ParserLookaheadEEEXadL_ZNS6_15vertex_dfa_stepEllNS_14ParserAttrMaskEEEEEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %3)
          to label %34 unwind label %91

34:                                               ; preds = %32
  invoke void @_ZN6langcc4NoneINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEENS_6Option2_TIT_EEv(ptr dead_on_unwind writable sret(%"struct.langcc::Option::_T.6") align 4 %8)
          to label %35 unwind label %91

35:                                               ; preds = %34
  store i1 true, ptr %9, align 1
  %36 = invoke noundef zeroext i1 @_ZN6langcc8LangDescIN4lang4data4Node2_TEXadL_ZNS2_6parser16action_by_vertexElNS_15ParserLookaheadEEEXadL_ZNS5_15vertex_dfa_stepEllNS_14ParserAttrMaskEEEE12test_exampleENS_6Option2_TINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEPKclb(ptr noundef nonnull align 8 dereferenceable(88) %33, ptr noundef %8, ptr noundef @.str.1, i64 noundef -1, i1 noundef zeroext true)
          to label %37 unwind label %102

37:                                               ; preds = %35
  br label %38

38:                                               ; preds = %37, %29
  %39 = phi i1 [ false, %29 ], [ %36, %37 ]
  %40 = zext i1 %39 to i8
  store i8 %40, ptr %2, align 1, !tbaa !5
  %41 = load i1, ptr %9, align 1
  br i1 %41, label %42, label %43

42:                                               ; preds = %38
  call void @_ZN6langcc6Option2_TINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 4 dereferenceable(36) %8) #7
  br label %43

43:                                               ; preds = %42, %38
  %44 = load i8, ptr %2, align 1, !tbaa !5, !range !9, !noundef !10
  %45 = trunc i8 %44 to i1
  store i1 false, ptr %11, align 1
  br i1 %45, label %46, label %52

46:                                               ; preds = %43
  %47 = invoke noundef ptr @_ZN6langcc6rc_ptrINS_8LangDescIN4lang4data4Node2_TEXadL_ZNS3_6parser16action_by_vertexElNS_15ParserLookaheadEEEXadL_ZNS6_15vertex_dfa_stepEllNS_14ParserAttrMaskEEEEEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %3)
          to label %48 unwind label %91

48:                                               ; preds = %46
  invoke void @_ZN6langcc4NoneINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEENS_6Option2_TIT_EEv(ptr dead_on_unwind writable sret(%"struct.langcc::Option::_T.6") align 4 %10)
          to label %49 unwind label %91

49:                                               ; preds = %48
  store i1 true, ptr %11, align 1
  %50 = invoke noundef zeroext i1 @_ZN6langcc8LangDescIN4lang4data4Node2_TEXadL_ZNS2_6parser16action_by_vertexElNS_15ParserLookaheadEEEXadL_ZNS5_15vertex_dfa_stepEllNS_14ParserAttrMaskEEEE12test_exampleENS_6Option2_TINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEPKclb(ptr noundef nonnull align 8 dereferenceable(88) %47, ptr noundef %10, ptr noundef @.str.2, i64 noundef -1, i1 noundef zeroext true)
          to label %51 unwind label %109

51:                                               ; preds = %49
  br label %52

52:                                               ; preds = %51, %43
  %53 = phi i1 [ false, %43 ], [ %50, %51 ]
  %54 = zext i1 %53 to i8
  store i8 %54, ptr %2, align 1, !tbaa !5
  %55 = load i1, ptr %11, align 1
  br i1 %55, label %56, label %57

56:                                               ; preds = %52
  call void @_ZN6langcc6Option2_TINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 4 dereferenceable(36) %10) #7
  br label %57

57:                                               ; preds = %56, %52
  %58 = load i8, ptr %2, align 1, !tbaa !5, !range !9, !noundef !10
  %59 = trunc i8 %58 to i1
  store i1 false, ptr %13, align 1
  br i1 %59, label %60, label %66

60:                                               ; preds = %57
  %61 = invoke noundef ptr @_ZN6langcc6rc_ptrINS_8LangDescIN4lang4data4Node2_TEXadL_ZNS3_6parser16action_by_vertexElNS_15ParserLookaheadEEEXadL_ZNS6_15vertex_dfa_stepEllNS_14ParserAttrMaskEEEEEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %3)
          to label %62 unwind label %91

62:                                               ; preds = %60
  invoke void @_ZN6langcc4NoneINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEENS_6Option2_TIT_EEv(ptr dead_on_unwind writable sret(%"struct.langcc::Option::_T.6") align 4 %12)
          to label %63 unwind label %91

63:                                               ; preds = %62
  store i1 true, ptr %13, align 1
  %64 = invoke noundef zeroext i1 @_ZN6langcc8LangDescIN4lang4data4Node2_TEXadL_ZNS2_6parser16action_by_vertexElNS_15ParserLookaheadEEEXadL_ZNS5_15vertex_dfa_stepEllNS_14ParserAttrMaskEEEE12test_exampleENS_6Option2_TINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEPKclb(ptr noundef nonnull align 8 dereferenceable(88) %61, ptr noundef %12, ptr noundef @.str.3, i64 noundef -1, i1 noundef zeroext true)
          to label %65 unwind label %116

65:                                               ; preds = %63
  br label %66

66:                                               ; preds = %65, %57
  %67 = phi i1 [ false, %57 ], [ %64, %65 ]
  %68 = zext i1 %67 to i8
  store i8 %68, ptr %2, align 1, !tbaa !5
  %69 = load i1, ptr %13, align 1
  br i1 %69, label %70, label %71

70:                                               ; preds = %66
  call void @_ZN6langcc6Option2_TINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 4 dereferenceable(36) %12) #7
  br label %71

71:                                               ; preds = %70, %66
  %72 = load i8, ptr %2, align 1, !tbaa !5, !range !9, !noundef !10
  %73 = trunc i8 %72 to i1
  store i1 false, ptr %15, align 1
  br i1 %73, label %74, label %80

74:                                               ; preds = %71
  %75 = invoke noundef ptr @_ZN6langcc6rc_ptrINS_8LangDescIN4lang4data4Node2_TEXadL_ZNS3_6parser16action_by_vertexElNS_15ParserLookaheadEEEXadL_ZNS6_15vertex_dfa_stepEllNS_14ParserAttrMaskEEEEEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %3)
          to label %76 unwind label %91

76:                                               ; preds = %74
  invoke void @_ZN6langcc4NoneINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEENS_6Option2_TIT_EEv(ptr dead_on_unwind writable sret(%"struct.langcc::Option::_T.6") align 4 %14)
          to label %77 unwind label %91

77:                                               ; preds = %76
  store i1 true, ptr %15, align 1
  %78 = invoke noundef zeroext i1 @_ZN6langcc8LangDescIN4lang4data4Node2_TEXadL_ZNS2_6parser16action_by_vertexElNS_15ParserLookaheadEEEXadL_ZNS5_15vertex_dfa_stepEllNS_14ParserAttrMaskEEEE12test_exampleENS_6Option2_TINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEPKclb(ptr noundef nonnull align 8 dereferenceable(88) %75, ptr noundef %14, ptr noundef @.str.4, i64 noundef -1, i1 noundef zeroext true)
          to label %79 unwind label %123

79:                                               ; preds = %77
  br label %80

80:                                               ; preds = %79, %71
  %81 = phi i1 [ false, %71 ], [ %78, %79 ]
  %82 = zext i1 %81 to i8
  store i8 %82, ptr %2, align 1, !tbaa !5
  %83 = load i1, ptr %15, align 1
  br i1 %83, label %84, label %85

84:                                               ; preds = %80
  call void @_ZN6langcc6Option2_TINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 4 dereferenceable(36) %14) #7
  br label %85

85:                                               ; preds = %84, %80
  %86 = load i8, ptr %2, align 1, !tbaa !5, !range !9, !noundef !10
  %87 = trunc i8 %86 to i1
  %88 = xor i1 %87, true
  %89 = zext i1 %88 to i32
  store i32 %89, ptr %1, align 4
  call void @_ZN6langcc6rc_ptrINS_8LangDescIN4lang4data4Node2_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
  %90 = load i32, ptr %1, align 4
  ret i32 %90

91:                                               ; preds = %76, %74, %62, %60, %48, %46, %34, %32, %20, %18
  %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
  br label %130

95:                                               ; preds = %21
  %96 = landingpad { ptr, i32 }
          cleanup
  %97 = extractvalue { ptr, i32 } %96, 0
  store ptr %97, ptr %4, align 8
  %98 = extractvalue { ptr, i32 } %96, 1
  store i32 %98, ptr %5, align 4
  %99 = load i1, ptr %7, align 1
  br i1 %99, label %100, label %101

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

101:                                              ; preds = %100, %95
  br label %130

102:                                              ; preds = %35
  %103 = landingpad { ptr, i32 }
          cleanup
  %104 = extractvalue { ptr, i32 } %103, 0
  store ptr %104, ptr %4, align 8
  %105 = extractvalue { ptr, i32 } %103, 1
  store i32 %105, ptr %5, align 4
  %106 = load i1, ptr %9, align 1
  br i1 %106, label %107, label %108

107:                                              ; preds = %102
  call void @_ZN6langcc6Option2_TINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 4 dereferenceable(36) %8) #7
  br label %108

108:                                              ; preds = %107, %102
  br label %130

109:                                              ; preds = %49
  %110 = landingpad { ptr, i32 }
          cleanup
  %111 = extractvalue { ptr, i32 } %110, 0
  store ptr %111, ptr %4, align 8
  %112 = extractvalue { ptr, i32 } %110, 1
  store i32 %112, ptr %5, align 4
  %113 = load i1, ptr %11, align 1
  br i1 %113, label %114, label %115

114:                                              ; preds = %109
  call void @_ZN6langcc6Option2_TINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 4 dereferenceable(36) %10) #7
  br label %115

115:                                              ; preds = %114, %109
  br label %130

116:                                              ; preds = %63
  %117 = landingpad { ptr, i32 }
          cleanup
  %118 = extractvalue { ptr, i32 } %117, 0
  store ptr %118, ptr %4, align 8
  %119 = extractvalue { ptr, i32 } %117, 1
  store i32 %119, ptr %5, align 4
  %120 = load i1, ptr %13, align 1
  br i1 %120, label %121, label %122

121:                                              ; preds = %116
  call void @_ZN6langcc6Option2_TINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 4 dereferenceable(36) %12) #7
  br label %122

122:                                              ; preds = %121, %116
  br label %130

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

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

129:                                              ; preds = %128, %123
  br label %130

130:                                              ; preds = %129, %122, %115, %108, %101, %91
  call void @_ZN6langcc6rc_ptrINS_8LangDescIN4lang4data4Node2_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 %131

131:                                              ; preds = %130
  %132 = load ptr, ptr %4, align 8
  %133 = load i32, ptr %5, align 4
  %134 = insertvalue { ptr, i32 } poison, ptr %132, 0
  %135 = insertvalue { ptr, i32 } %134, i32 %133, 1
  resume { ptr, i32 } %135
}

; 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 @_ZN4lang4data4initEv(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_8LangDescIN4lang4data4Node2_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 @_ZN6langcc8LangDescIN4lang4data4Node2_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 @_ZN6langcc4NoneINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEENS_6Option2_TIT_EEv(ptr dead_on_unwind noalias writable sret(%"struct.langcc::Option::_T.6") align 4) #5

; 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: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN6langcc6rc_ptrINS_8LangDescIN4lang4data4Node2_TEXadL_ZNS3_6parser16action_by_vertexElNS_15ParserLookaheadEEEXadL_ZNS6_15vertex_dfa_stepEllNS_14ParserAttrMaskEEEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #4 align 2

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

@.str = external hidden unnamed_addr constant [41 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [78 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [111 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [219 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 %"struct.langcc::Option::_T.6", align 4
  %4 = alloca %"struct.langcc::Option::_T.6", align 4
  %5 = alloca %"struct.langcc::Option::_T.6", align 4
  %6 = alloca %"struct.langcc::Option::_T.6", align 4
  tail call void @_ZN6langcc11global_initEv()
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %1) #7
  call void @_ZN4lang4data4initEv(ptr dead_on_unwind nonnull writable sret(%"struct.langcc::rc_ptr.0") align 8 %1)
  %7 = call noundef ptr @_ZN6langcc6rc_ptrINS_8LangDescIN4lang4data4Node2_TEXadL_ZNS3_6parser16action_by_vertexElNS_15ParserLookaheadEEEXadL_ZNS6_15vertex_dfa_stepEllNS_14ParserAttrMaskEEEEEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
  invoke void @_ZN6langcc4NoneINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEENS_6Option2_TIT_EEv(ptr dead_on_unwind nonnull writable sret(%"struct.langcc::Option::_T.6") align 4 %2)
          to label %8 unwind label %34

8:                                                ; preds = %0
  %9 = invoke noundef zeroext i1 @_ZN6langcc8LangDescIN4lang4data4Node2_TEXadL_ZNS2_6parser16action_by_vertexElNS_15ParserLookaheadEEEXadL_ZNS5_15vertex_dfa_stepEllNS_14ParserAttrMaskEEEE12test_exampleENS_6Option2_TINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEPKclb(ptr noundef nonnull align 8 dereferenceable(88) %7, ptr noundef nonnull %2, ptr noundef nonnull @.str, i64 noundef -1, i1 noundef zeroext true)
          to label %10 unwind label %36

10:                                               ; preds = %8
  call void @_ZN6langcc6Option2_TINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 4 dereferenceable(36) %2) #7
  br i1 %9, label %11, label %.thread32

11:                                               ; preds = %10
  %12 = call noundef ptr @_ZN6langcc6rc_ptrINS_8LangDescIN4lang4data4Node2_TEXadL_ZNS3_6parser16action_by_vertexElNS_15ParserLookaheadEEEXadL_ZNS6_15vertex_dfa_stepEllNS_14ParserAttrMaskEEEEEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
  invoke void @_ZN6langcc4NoneINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEENS_6Option2_TIT_EEv(ptr dead_on_unwind nonnull writable sret(%"struct.langcc::Option::_T.6") align 4 %3)
          to label %13 unwind label %34

13:                                               ; preds = %11
  %14 = invoke noundef zeroext i1 @_ZN6langcc8LangDescIN4lang4data4Node2_TEXadL_ZNS2_6parser16action_by_vertexElNS_15ParserLookaheadEEEXadL_ZNS5_15vertex_dfa_stepEllNS_14ParserAttrMaskEEEE12test_exampleENS_6Option2_TINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEPKclb(ptr noundef nonnull align 8 dereferenceable(88) %12, ptr noundef nonnull %3, ptr noundef nonnull @.str.1, i64 noundef -1, i1 noundef zeroext true)
          to label %15 unwind label %38

15:                                               ; preds = %13
  call void @_ZN6langcc6Option2_TINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 4 dereferenceable(36) %3) #7
  br i1 %14, label %16, label %.thread32

16:                                               ; preds = %15
  %17 = call noundef ptr @_ZN6langcc6rc_ptrINS_8LangDescIN4lang4data4Node2_TEXadL_ZNS3_6parser16action_by_vertexElNS_15ParserLookaheadEEEXadL_ZNS6_15vertex_dfa_stepEllNS_14ParserAttrMaskEEEEEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
  invoke void @_ZN6langcc4NoneINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEENS_6Option2_TIT_EEv(ptr dead_on_unwind nonnull writable sret(%"struct.langcc::Option::_T.6") align 4 %4)
          to label %18 unwind label %34

18:                                               ; preds = %16
  %19 = invoke noundef zeroext i1 @_ZN6langcc8LangDescIN4lang4data4Node2_TEXadL_ZNS2_6parser16action_by_vertexElNS_15ParserLookaheadEEEXadL_ZNS5_15vertex_dfa_stepEllNS_14ParserAttrMaskEEEE12test_exampleENS_6Option2_TINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEPKclb(ptr noundef nonnull align 8 dereferenceable(88) %17, ptr noundef nonnull %4, ptr noundef nonnull @.str.2, i64 noundef -1, i1 noundef zeroext true)
          to label %20 unwind label %40

20:                                               ; preds = %18
  call void @_ZN6langcc6Option2_TINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 4 dereferenceable(36) %4) #7
  br i1 %19, label %21, label %.thread32

21:                                               ; preds = %20
  %22 = call noundef ptr @_ZN6langcc6rc_ptrINS_8LangDescIN4lang4data4Node2_TEXadL_ZNS3_6parser16action_by_vertexElNS_15ParserLookaheadEEEXadL_ZNS6_15vertex_dfa_stepEllNS_14ParserAttrMaskEEEEEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
  invoke void @_ZN6langcc4NoneINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEENS_6Option2_TIT_EEv(ptr dead_on_unwind nonnull writable sret(%"struct.langcc::Option::_T.6") align 4 %5)
          to label %23 unwind label %34

23:                                               ; preds = %21
  %24 = invoke noundef zeroext i1 @_ZN6langcc8LangDescIN4lang4data4Node2_TEXadL_ZNS2_6parser16action_by_vertexElNS_15ParserLookaheadEEEXadL_ZNS5_15vertex_dfa_stepEllNS_14ParserAttrMaskEEEE12test_exampleENS_6Option2_TINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEPKclb(ptr noundef nonnull align 8 dereferenceable(88) %22, ptr noundef nonnull %5, ptr noundef nonnull @.str.3, i64 noundef -1, i1 noundef zeroext true)
          to label %25 unwind label %42

25:                                               ; preds = %23
  call void @_ZN6langcc6Option2_TINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 4 dereferenceable(36) %5) #7
  br i1 %24, label %26, label %.thread32

26:                                               ; preds = %25
  %27 = call noundef ptr @_ZN6langcc6rc_ptrINS_8LangDescIN4lang4data4Node2_TEXadL_ZNS3_6parser16action_by_vertexElNS_15ParserLookaheadEEEXadL_ZNS6_15vertex_dfa_stepEllNS_14ParserAttrMaskEEEEEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
  invoke void @_ZN6langcc4NoneINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEENS_6Option2_TIT_EEv(ptr dead_on_unwind nonnull writable sret(%"struct.langcc::Option::_T.6") align 4 %6)
          to label %28 unwind label %34

28:                                               ; preds = %26
  %29 = invoke noundef zeroext i1 @_ZN6langcc8LangDescIN4lang4data4Node2_TEXadL_ZNS2_6parser16action_by_vertexElNS_15ParserLookaheadEEEXadL_ZNS5_15vertex_dfa_stepEllNS_14ParserAttrMaskEEEE12test_exampleENS_6Option2_TINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEPKclb(ptr noundef nonnull align 8 dereferenceable(88) %27, ptr noundef nonnull %6, ptr noundef nonnull @.str.4, i64 noundef -1, i1 noundef zeroext true)
          to label %30 unwind label %44

30:                                               ; preds = %28
  call void @_ZN6langcc6Option2_TINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 4 dereferenceable(36) %6) #7
  %31 = xor i1 %29, true
  %32 = zext i1 %31 to i32
  br label %.thread32

.thread32:                                        ; preds = %20, %10, %15, %25, %30
  %33 = phi i32 [ %32, %30 ], [ 1, %25 ], [ 1, %15 ], [ 1, %10 ], [ 1, %20 ]
  call void @_ZN6langcc6rc_ptrINS_8LangDescIN4lang4data4Node2_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 %33

34:                                               ; preds = %26, %21, %16, %11, %0
  %35 = landingpad { ptr, i32 }
          cleanup
  br label %46

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

38:                                               ; preds = %13
  %39 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6langcc6Option2_TINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 4 dereferenceable(36) %3) #7
  br label %46

40:                                               ; preds = %18
  %41 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6langcc6Option2_TINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 4 dereferenceable(36) %4) #7
  br label %46

42:                                               ; preds = %23
  %43 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6langcc6Option2_TINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 4 dereferenceable(36) %5) #7
  br label %46

44:                                               ; preds = %28
  %45 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6langcc6Option2_TINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 4 dereferenceable(36) %6) #7
  br label %46

46:                                               ; preds = %44, %42, %40, %38, %36, %34
  %.pn = phi { ptr, i32 } [ %45, %44 ], [ %35, %34 ], [ %43, %42 ], [ %41, %40 ], [ %39, %38 ], [ %37, %36 ]
  call void @_ZN6langcc6rc_ptrINS_8LangDescIN4lang4data4Node2_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 } %.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 @_ZN4lang4data4initEv(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_8LangDescIN4lang4data4Node2_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 @_ZN6langcc8LangDescIN4lang4data4Node2_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 @_ZN6langcc4NoneINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEENS_6Option2_TIT_EEv(ptr dead_on_unwind noalias writable sret(%"struct.langcc::Option::_T.6") align 4) local_unnamed_addr #5

; 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: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN6langcc6rc_ptrINS_8LangDescIN4lang4data4Node2_TEXadL_ZNS3_6parser16action_by_vertexElNS_15ParserLookaheadEEEXadL_ZNS6_15vertex_dfa_stepEllNS_14ParserAttrMaskEEEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #4 align 2

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #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: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,SROAPass,SimplifyCFGPass,TailCallElimPass