; LLVM IR from facebook/redex :: libredex/PointsToSemantics.ll (ZN23PointsToMethodSemantics11from_s_exprERKN6sparta6s_exprE)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.sparta::s_expr" = type { %"class.boost::intrusive_ptr" }
%"class.boost::intrusive_ptr" = type { ptr }
%"class.boost::optional.76" = type { %"class.boost::optional_detail::optional_base.77" }
%"class.boost::optional_detail::optional_base.77" = type { i8, [7 x i8], %"class.boost::optional_detail::aligned_storage.78" }
%"class.boost::optional_detail::aligned_storage.78" = type { %"union.boost::optional_detail::aligned_storage<PointsToAction>::dummy_u" }
%"union.boost::optional_detail::aligned_storage<PointsToAction>::dummy_u" = type { [40 x i8] }
%"class.boost::optional.171" = type { %"class.boost::optional_detail::optional_base.172" }
%"class.boost::optional_detail::optional_base.172" = type { i8, [7 x i8], %"class.boost::optional_detail::aligned_storage.173" }
%"class.boost::optional_detail::aligned_storage.173" = type { %"union.boost::optional_detail::aligned_storage<PointsToMethodSemantics>::dummy_u" }
%"union.boost::optional_detail::aligned_storage<PointsToMethodSemantics>::dummy_u" = type { [48 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.sparta::s_patn" = type { %"class.boost::intrusive_ptr.1" }
%"class.boost::intrusive_ptr.1" = type { ptr }
%"class.std::initializer_list.2" = type { ptr, i64 }
%"class.boost::optional.47" = type { %"class.boost::optional_detail::tc_optional_base.48" }
%"class.boost::optional_detail::tc_optional_base.48" = type { i8, ptr }
%"class.boost::optional.124" = type { %"class.boost::optional_detail::tc_optional_base.125" }
%"class.boost::optional_detail::tc_optional_base.125" = type { i8, i32 }
%class.PointsToMethodSemantics = type { ptr, i32, i64, %"class.std::vector.128" }
%"class.std::vector.128" = type { %"struct.std::_Vector_base.129" }
%"struct.std::_Vector_base.129" = type { %"struct.std::_Vector_base<PointsToAction, std::allocator<PointsToAction>>::_Vector_impl" }
%"struct.std::_Vector_base<PointsToAction, std::allocator<PointsToAction>>::_Vector_impl" = type { %"struct.std::_Vector_base<PointsToAction, std::allocator<PointsToAction>>::_Vector_impl_data" }
%"struct.std::_Vector_base<PointsToAction, std::allocator<PointsToAction>>::_Vector_impl_data" = type { ptr, ptr, ptr }

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { i8, ptr } @_ZN8pts_impl20s_expr_to_dex_methodERKN6sparta6s_exprE(ptr noundef nonnull align 8 dereferenceable(8)) #4

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_ZNK6sparta6s_expr4sizeEv(ptr noundef nonnull align 8 dereferenceable(8)) #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK6sparta6s_exprixEm(ptr dead_on_unwind noalias writable sret(%"class.sparta::s_expr") align 8, ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) #3 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN14PointsToAction11from_s_exprERKN6sparta6s_exprE(ptr dead_on_unwind noalias writable sret(%"class.boost::optional.76") align 8, ptr noundef nonnull align 8 dereferenceable(8)) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZN8pts_impl21string_to_method_kindERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32)) #4

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN23PointsToMethodSemantics11from_s_exprERKN6sparta6s_exprE(ptr dead_on_unwind noalias writable sret(%"class.boost::optional.171") align 8 %0, ptr noundef nonnull align 8 dereferenceable(8) %1) #4 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %"class.sparta::s_expr", align 8
  %6 = alloca %"class.std::__cxx11::basic_string", align 8
  %7 = alloca i32, align 4
  %8 = alloca %"class.sparta::s_expr", align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca %"class.sparta::s_patn", align 8
  %12 = alloca %"class.std::initializer_list.2", align 8
  %13 = alloca [4 x %"class.sparta::s_patn"], align 8
  %14 = alloca ptr, align 8
  %15 = alloca %"class.std::initializer_list.2", align 8
  %16 = alloca i32, align 4
  %17 = alloca %"class.boost::optional.47", align 8
  %18 = alloca %"class.boost::optional.124", align 4
  %19 = alloca %class.PointsToMethodSemantics, align 8
  %20 = alloca i64, align 8
  %21 = alloca %"class.boost::optional.76", align 8
  %22 = alloca %"class.sparta::s_expr", align 8
  store ptr %0, ptr %3, align 8
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  call void @_ZN6sparta6s_exprC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5)
  call void @llvm.lifetime.start.p0(i64 32, ptr %6) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  invoke void @_ZN6sparta6s_exprC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8)
          to label %23 unwind label %54

23:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr %13) #5
  store ptr %13, ptr %14, align 8
  invoke void @_ZN6sparta6s_patnC2ERNS_6s_exprE(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %5)
          to label %24 unwind label %58

24:                                               ; preds = %23
  %25 = getelementptr inbounds %"class.sparta::s_patn", ptr %13, i64 1
  store ptr %25, ptr %14, align 8
  invoke void @_ZN6sparta6s_patnC2EPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(8) %25, ptr noundef %6)
          to label %26 unwind label %58

26:                                               ; preds = %24
  %27 = getelementptr inbounds %"class.sparta::s_patn", ptr %13, i64 2
  store ptr %27, ptr %14, align 8
  invoke void @_ZN6sparta6s_patnC2EPi(ptr noundef nonnull align 8 dereferenceable(8) %27, ptr noundef %7)
          to label %28 unwind label %58

28:                                               ; preds = %26
  %29 = getelementptr inbounds %"class.sparta::s_patn", ptr %13, i64 3
  store ptr %29, ptr %14, align 8
  call void @_ZNSt16initializer_listIN6sparta6s_patnEEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #5
  %30 = getelementptr inbounds { ptr, i64 }, ptr %15, i32 0, i32 0
  %31 = load ptr, ptr %30, align 8
  %32 = getelementptr inbounds { ptr, i64 }, ptr %15, i32 0, i32 1
  %33 = load i64, ptr %32, align 8
  invoke void @_ZN6sparta6s_patnC2ESt16initializer_listIS0_ERNS_6s_exprE(ptr noundef nonnull align 8 dereferenceable(8) %29, ptr %31, i64 %33, ptr noundef nonnull align 8 dereferenceable(8) %8)
          to label %34 unwind label %58

34:                                               ; preds = %28
  %35 = getelementptr inbounds %"class.std::initializer_list.2", ptr %12, i32 0, i32 0
  store ptr %13, ptr %35, align 8, !tbaa !9
  %36 = getelementptr inbounds %"class.std::initializer_list.2", ptr %12, i32 0, i32 1
  store i64 4, ptr %36, align 8, !tbaa !12
  %37 = getelementptr inbounds { ptr, i64 }, ptr %12, i32 0, i32 0
  %38 = load ptr, ptr %37, align 8
  %39 = getelementptr inbounds { ptr, i64 }, ptr %12, i32 0, i32 1
  %40 = load i64, ptr %39, align 8
  invoke void @_ZN6sparta6s_patnC2ESt16initializer_listIS0_E(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr %38, i64 %40)
          to label %41 unwind label %69

41:                                               ; preds = %34
  %42 = load ptr, ptr %4, align 8, !tbaa !5
  %43 = invoke noundef zeroext i1 @_ZN6sparta6s_patn10match_withERKNS_6s_exprE(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %42)
          to label %44 unwind label %73

44:                                               ; preds = %41
  %45 = xor i1 %43, true
  call void @_ZN6sparta6s_patnD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #5
  %46 = getelementptr inbounds [4 x %"class.sparta::s_patn"], ptr %13, i32 0, i32 0
  %47 = getelementptr inbounds %"class.sparta::s_patn", ptr %46, i64 4
  br label %48

48:                                               ; preds = %48, %44
  %49 = phi ptr [ %47, %44 ], [ %50, %48 ]
  %50 = getelementptr inbounds %"class.sparta::s_patn", ptr %49, i64 -1
  call void @_ZN6sparta6s_patnD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %50) #5
  %51 = icmp eq ptr %50, %46
  br i1 %51, label %52, label %48

52:                                               ; preds = %48
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  br i1 %45, label %53, label %86

53:                                               ; preds = %52
  call void @_ZN5boost8optionalI23PointsToMethodSemanticsEC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %0) #5
  store i32 1, ptr %16, align 4
  br label %182

54:                                               ; preds = %2
  %55 = landingpad { ptr, i32 }
          cleanup
  %56 = extractvalue { ptr, i32 } %55, 0
  store ptr %56, ptr %9, align 8
  %57 = extractvalue { ptr, i32 } %55, 1
  store i32 %57, ptr %10, align 4
  br label %184

58:                                               ; preds = %28, %26, %24, %23
  %59 = landingpad { ptr, i32 }
          cleanup
  %60 = extractvalue { ptr, i32 } %59, 0
  store ptr %60, ptr %9, align 8
  %61 = extractvalue { ptr, i32 } %59, 1
  store i32 %61, ptr %10, align 4
  %62 = load ptr, ptr %14, align 8
  %63 = icmp eq ptr %13, %62
  br i1 %63, label %68, label %64

64:                                               ; preds = %64, %58
  %65 = phi ptr [ %62, %58 ], [ %66, %64 ]
  %66 = getelementptr inbounds %"class.sparta::s_patn", ptr %65, i64 -1
  call void @_ZN6sparta6s_patnD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %66) #5
  %67 = icmp eq ptr %66, %13
  br i1 %67, label %68, label %64

68:                                               ; preds = %64, %58
  br label %85

69:                                               ; preds = %34
  %70 = landingpad { ptr, i32 }
          cleanup
  %71 = extractvalue { ptr, i32 } %70, 0
  store ptr %71, ptr %9, align 8
  %72 = extractvalue { ptr, i32 } %70, 1
  store i32 %72, ptr %10, align 4
  br label %77

73:                                               ; preds = %41
  %74 = landingpad { ptr, i32 }
          cleanup
  %75 = extractvalue { ptr, i32 } %74, 0
  store ptr %75, ptr %9, align 8
  %76 = extractvalue { ptr, i32 } %74, 1
  store i32 %76, ptr %10, align 4
  call void @_ZN6sparta6s_patnD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #5
  br label %77

77:                                               ; preds = %73, %69
  %78 = getelementptr inbounds [4 x %"class.sparta::s_patn"], ptr %13, i32 0, i32 0
  %79 = getelementptr inbounds %"class.sparta::s_patn", ptr %78, i64 4
  br label %80

80:                                               ; preds = %80, %77
  %81 = phi ptr [ %79, %77 ], [ %82, %80 ]
  %82 = getelementptr inbounds %"class.sparta::s_patn", ptr %81, i64 -1
  call void @_ZN6sparta6s_patnD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %82) #5
  %83 = icmp eq ptr %82, %78
  br i1 %83, label %84, label %80

84:                                               ; preds = %80
  br label %85

85:                                               ; preds = %84, %68
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  br label %183

86:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #5
  %87 = invoke { i8, ptr } @_ZN8pts_impl20s_expr_to_dex_methodERKN6sparta6s_exprE(ptr noundef nonnull align 8 dereferenceable(8) %5)
          to label %88 unwind label %96

88:                                               ; preds = %86
  %89 = getelementptr inbounds %"class.boost::optional.47", ptr %17, i32 0, i32 0
  %90 = getelementptr inbounds { i8, ptr }, ptr %89, i32 0, i32 0
  %91 = extractvalue { i8, ptr } %87, 0
  store i8 %91, ptr %90, align 8
  %92 = getelementptr inbounds { i8, ptr }, ptr %89, i32 0, i32 1
  %93 = extractvalue { i8, ptr } %87, 1
  store ptr %93, ptr %92, align 8
  %94 = call noundef zeroext i1 @_ZNK5boost8optionalIP12DexMethodRefEntEv(ptr noundef nonnull align 8 dereferenceable(16) %17) #5
  br i1 %94, label %95, label %100

95:                                               ; preds = %88
  call void @_ZN5boost8optionalI23PointsToMethodSemanticsEC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %0) #5
  store i32 1, ptr %16, align 4
  br label %180

96:                                               ; preds = %86
  %97 = landingpad { ptr, i32 }
          cleanup
  %98 = extractvalue { ptr, i32 } %97, 0
  store ptr %98, ptr %9, align 8
  %99 = extractvalue { ptr, i32 } %97, 1
  store i32 %99, ptr %10, align 4
  br label %181

100:                                              ; preds = %88
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %101 = invoke i64 @_ZN8pts_impl21string_to_method_kindERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %6)
          to label %102 unwind label %106

102:                                              ; preds = %100
  %103 = getelementptr inbounds %"class.boost::optional.124", ptr %18, i32 0, i32 0
  store i64 %101, ptr %103, align 4
  %104 = call noundef zeroext i1 @_ZNK5boost8optionalI10MethodKindEntEv(ptr noundef nonnull align 4 dereferenceable(8) %18) #5
  br i1 %104, label %105, label %110

105:                                              ; preds = %102
  call void @_ZN5boost8optionalI23PointsToMethodSemanticsEC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %0) #5
  store i32 1, ptr %16, align 4
  br label %178

106:                                              ; preds = %100
  %107 = landingpad { ptr, i32 }
          cleanup
  %108 = extractvalue { ptr, i32 } %107, 0
  store ptr %108, ptr %9, align 8
  %109 = extractvalue { ptr, i32 } %107, 1
  store i32 %109, ptr %10, align 4
  br label %179

110:                                              ; preds = %102
  call void @llvm.lifetime.start.p0(i64 48, ptr %19) #5
  %111 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNR5boost8optionalIP12DexMethodRefEdeEv(ptr noundef nonnull align 8 dereferenceable(16) %17)
          to label %112 unwind label %128

112:                                              ; preds = %110
  %113 = load ptr, ptr %111, align 8, !tbaa !5
  %114 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNR5boost8optionalI10MethodKindEdeEv(ptr noundef nonnull align 4 dereferenceable(8) %18)
          to label %115 unwind label %128

115:                                              ; preds = %112
  %116 = load i32, ptr %114, align 4, !tbaa !13
  %117 = load i32, ptr %7, align 4, !tbaa !15
  %118 = sext i32 %117 to i64
  %119 = invoke noundef i64 @_ZNK6sparta6s_expr4sizeEv(ptr noundef nonnull align 8 dereferenceable(8) %8)
          to label %120 unwind label %128

120:                                              ; preds = %115
  invoke void @_ZN23PointsToMethodSemanticsC1EP12DexMethodRef10MethodKindmm(ptr noundef nonnull align 8 dereferenceable(48) %19, ptr noundef %113, i32 noundef %116, i64 noundef %118, i64 noundef %119)
          to label %121 unwind label %128

121:                                              ; preds = %120
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  store i64 0, ptr %20, align 8, !tbaa !17
  br label %122

122:                                              ; preds = %158, %121
  %123 = load i64, ptr %20, align 8, !tbaa !17
  %124 = invoke noundef i64 @_ZNK6sparta6s_expr4sizeEv(ptr noundef nonnull align 8 dereferenceable(8) %8)
          to label %125 unwind label %132

125:                                              ; preds = %122
  %126 = icmp ult i64 %123, %124
  br i1 %126, label %136, label %127

127:                                              ; preds = %125
  store i32 2, ptr %16, align 4
  br label %166

128:                                              ; preds = %120, %115, %112, %110
  %129 = landingpad { ptr, i32 }
          cleanup
  %130 = extractvalue { ptr, i32 } %129, 0
  store ptr %130, ptr %9, align 8
  %131 = extractvalue { ptr, i32 } %129, 1
  store i32 %131, ptr %10, align 4
  br label %177

132:                                              ; preds = %122
  %133 = landingpad { ptr, i32 }
          cleanup
  %134 = extractvalue { ptr, i32 } %133, 0
  store ptr %134, ptr %9, align 8
  %135 = extractvalue { ptr, i32 } %133, 1
  store i32 %135, ptr %10, align 4
  br label %168

136:                                              ; preds = %125
  call void @llvm.lifetime.start.p0(i64 48, ptr %21) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  %137 = load i64, ptr %20, align 8, !tbaa !17
  invoke void @_ZNK6sparta6s_exprixEm(ptr dead_on_unwind writable sret(%"class.sparta::s_expr") align 8 %22, ptr noundef nonnull align 8 dereferenceable(8) %8, i64 noundef %137)
          to label %138 unwind label %142

138:                                              ; preds = %136
  invoke void @_ZN14PointsToAction11from_s_exprERKN6sparta6s_exprE(ptr dead_on_unwind writable sret(%"class.boost::optional.76") align 8 %21, ptr noundef nonnull align 8 dereferenceable(8) %22)
          to label %139 unwind label %146

139:                                              ; preds = %138
  call void @_ZN6sparta6s_exprD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %22) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  %140 = call noundef zeroext i1 @_ZNK5boost8optionalI14PointsToActionEntEv(ptr noundef nonnull align 8 dereferenceable(48) %21) #5
  br i1 %140, label %141, label %151

141:                                              ; preds = %139
  call void @_ZN5boost8optionalI23PointsToMethodSemanticsEC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %0) #5
  store i32 1, ptr %16, align 4
  br label %155

142:                                              ; preds = %136
  %143 = landingpad { ptr, i32 }
          cleanup
  %144 = extractvalue { ptr, i32 } %143, 0
  store ptr %144, ptr %9, align 8
  %145 = extractvalue { ptr, i32 } %143, 1
  store i32 %145, ptr %10, align 4
  br label %150

146:                                              ; preds = %138
  %147 = landingpad { ptr, i32 }
          cleanup
  %148 = extractvalue { ptr, i32 } %147, 0
  store ptr %148, ptr %9, align 8
  %149 = extractvalue { ptr, i32 } %147, 1
  store i32 %149, ptr %10, align 4
  call void @_ZN6sparta6s_exprD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %22) #5
  br label %150

150:                                              ; preds = %146, %142
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  br label %165

151:                                              ; preds = %139
  %152 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNR5boost8optionalI14PointsToActionEdeEv(ptr noundef nonnull align 8 dereferenceable(48) %21)
          to label %153 unwind label %161

153:                                              ; preds = %151
  invoke void @_ZN23PointsToMethodSemantics3addERK14PointsToAction(ptr noundef nonnull align 8 dereferenceable(48) %19, ptr noundef nonnull align 8 dereferenceable(40) %152)
          to label %154 unwind label %161

154:                                              ; preds = %153
  store i32 0, ptr %16, align 4
  br label %155

155:                                              ; preds = %154, %141
  call void @_ZN5boost15optional_detail13optional_baseI14PointsToActionED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %21) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr %21) #5
  %156 = load i32, ptr %16, align 4
  switch i32 %156, label %166 [
    i32 0, label %157
  ]

157:                                              ; preds = %155
  br label %158

158:                                              ; preds = %157
  %159 = load i64, ptr %20, align 8, !tbaa !17
  %160 = add i64 %159, 1
  store i64 %160, ptr %20, align 8, !tbaa !17
  br label %122, !llvm.loop !18

161:                                              ; preds = %153, %151
  %162 = landingpad { ptr, i32 }
          cleanup
  %163 = extractvalue { ptr, i32 } %162, 0
  store ptr %163, ptr %9, align 8
  %164 = extractvalue { ptr, i32 } %162, 1
  store i32 %164, ptr %10, align 4
  call void @_ZN5boost15optional_detail13optional_baseI14PointsToActionED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %21) #5
  br label %165

165:                                              ; preds = %161, %150
  call void @llvm.lifetime.end.p0(i64 48, ptr %21) #5
  br label %168

166:                                              ; preds = %155, %127
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  %167 = load i32, ptr %16, align 4
  switch i32 %167, label %175 [
    i32 2, label %169
  ]

168:                                              ; preds = %165, %132
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  br label %176

169:                                              ; preds = %166
  invoke void @_ZN5boost8optionalI23PointsToMethodSemanticsEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef nonnull align 8 dereferenceable(48) %19)
          to label %170 unwind label %171

170:                                              ; preds = %169
  store i32 1, ptr %16, align 4
  br label %175

171:                                              ; preds = %169
  %172 = landingpad { ptr, i32 }
          cleanup
  %173 = extractvalue { ptr, i32 } %172, 0
  store ptr %173, ptr %9, align 8
  %174 = extractvalue { ptr, i32 } %172, 1
  store i32 %174, ptr %10, align 4
  br label %176

175:                                              ; preds = %170, %166
  call void @_ZN23PointsToMethodSemanticsD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %19) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr %19) #5
  br label %178

176:                                              ; preds = %171, %168
  call void @_ZN23PointsToMethodSemanticsD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %19) #5
  br label %177

177:                                              ; preds = %176, %128
  call void @llvm.lifetime.end.p0(i64 48, ptr %19) #5
  br label %179

178:                                              ; preds = %175, %105
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  br label %180

179:                                              ; preds = %177, %106
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  br label %181

180:                                              ; preds = %178, %95
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #5
  br label %182

181:                                              ; preds = %179, %96
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #5
  br label %183

182:                                              ; preds = %180, %53
  call void @_ZN6sparta6s_exprD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %6) #5
  call void @_ZN6sparta6s_exprD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  ret void

183:                                              ; preds = %181, %85
  call void @_ZN6sparta6s_exprD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  br label %184

184:                                              ; preds = %183, %54
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %6) #5
  call void @_ZN6sparta6s_exprD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  br label %185

185:                                              ; preds = %184
  %186 = load ptr, ptr %9, align 8
  %187 = load i32, ptr %10, align 4
  %188 = insertvalue { ptr, i32 } poison, ptr %186, 0
  %189 = insertvalue { ptr, i32 } %188, i32 %187, 1
  resume { ptr, i32 } %189
}

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN23PointsToMethodSemantics3addERK14PointsToAction(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(40)) #4 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5boost8optionalI23PointsToMethodSemanticsEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #4 align 2

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

declare void @_ZN23PointsToMethodSemanticsC1EP12DexMethodRef10MethodKindmm(ptr, ptr, i32, i64, i64)

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 nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { 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 #5 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"_ZTSSt16initializer_listIN6sparta6s_patnEE", !6, i64 0, !11, i64 8}
!11 = !{!"long", !7, i64 0}
!12 = !{!10, !11, i64 8}
!13 = !{!14, !14, i64 0}
!14 = !{!"_ZTS10MethodKind", !7, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"int", !7, i64 0}
!17 = !{!11, !11, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.sparta::s_expr" = type { %"class.boost::intrusive_ptr" }
%"class.boost::intrusive_ptr" = type { ptr }
%"class.boost::optional.76" = type { %"class.boost::optional_detail::optional_base.77" }
%"class.boost::optional_detail::optional_base.77" = type { i8, [7 x i8], %"class.boost::optional_detail::aligned_storage.78" }
%"class.boost::optional_detail::aligned_storage.78" = type { %"union.boost::optional_detail::aligned_storage<PointsToAction>::dummy_u" }
%"union.boost::optional_detail::aligned_storage<PointsToAction>::dummy_u" = type { [40 x i8] }
%"class.boost::optional.171" = type { %"class.boost::optional_detail::optional_base.172" }
%"class.boost::optional_detail::optional_base.172" = type { i8, [7 x i8], %"class.boost::optional_detail::aligned_storage.173" }
%"class.boost::optional_detail::aligned_storage.173" = type { %"union.boost::optional_detail::aligned_storage<PointsToMethodSemantics>::dummy_u" }
%"union.boost::optional_detail::aligned_storage<PointsToMethodSemantics>::dummy_u" = type { [48 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.sparta::s_patn" = type { %"class.boost::intrusive_ptr.1" }
%"class.boost::intrusive_ptr.1" = type { ptr }
%"class.std::initializer_list.2" = type { ptr, i64 }
%"class.boost::optional.47" = type { %"class.boost::optional_detail::tc_optional_base.48" }
%"class.boost::optional_detail::tc_optional_base.48" = type { i8, ptr }
%"class.boost::optional.124" = type { %"class.boost::optional_detail::tc_optional_base.125" }
%"class.boost::optional_detail::tc_optional_base.125" = type { i8, i32 }
%class.PointsToMethodSemantics = type { ptr, i32, i64, %"class.std::vector.128" }
%"class.std::vector.128" = type { %"struct.std::_Vector_base.129" }
%"struct.std::_Vector_base.129" = type { %"struct.std::_Vector_base<PointsToAction, std::allocator<PointsToAction>>::_Vector_impl" }
%"struct.std::_Vector_base<PointsToAction, std::allocator<PointsToAction>>::_Vector_impl" = type { %"struct.std::_Vector_base<PointsToAction, std::allocator<PointsToAction>>::_Vector_impl_data" }
%"struct.std::_Vector_base<PointsToAction, std::allocator<PointsToAction>>::_Vector_impl_data" = type { ptr, ptr, ptr }

declare i32 @__gxx_personality_v0(...)

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

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

; 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 nounwind uwtable
declare dso_local void @_ZN6sparta6s_exprD2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #2 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { i8, ptr } @_ZN8pts_impl20s_expr_to_dex_methodERKN6sparta6s_exprE(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_ZNK6sparta6s_expr4sizeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK6sparta6s_exprixEm(ptr dead_on_unwind noalias writable sret(%"class.sparta::s_expr") align 8, ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) local_unnamed_addr #3 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN14PointsToAction11from_s_exprERKN6sparta6s_exprE(ptr dead_on_unwind noalias writable sret(%"class.boost::optional.76") align 8, ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZN8pts_impl21string_to_method_kindERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN23PointsToMethodSemantics11from_s_exprERKN6sparta6s_exprE(ptr dead_on_unwind noalias writable sret(%"class.boost::optional.171") align 8 %0, ptr noundef nonnull align 8 dereferenceable(8) %1) local_unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.sparta::s_expr", align 8
  %4 = alloca %"class.std::__cxx11::basic_string", align 8
  %5 = alloca i32, align 4
  %6 = alloca %"class.sparta::s_expr", align 8
  %7 = alloca %"class.sparta::s_patn", align 8
  %8 = alloca [4 x %"class.sparta::s_patn"], align 8
  %9 = alloca %"class.std::initializer_list.2", align 8
  %10 = alloca %"class.boost::optional.47", align 8
  %11 = alloca %"class.boost::optional.124", align 8
  %12 = alloca %class.PointsToMethodSemantics, align 8
  %13 = alloca %"class.boost::optional.76", align 8
  %14 = alloca %"class.sparta::s_expr", align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #5
  call void @_ZN6sparta6s_exprC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  invoke void @_ZN6sparta6s_exprC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6)
          to label %15 unwind label %34

15:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #5
  invoke void @_ZN6sparta6s_patnC2ERNS_6s_exprE(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %3)
          to label %17 unwind label %.thread

.thread:                                          ; preds = %15
  %16 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit

17:                                               ; preds = %15
  %18 = getelementptr inbounds i8, ptr %8, i64 8
  invoke void @_ZN6sparta6s_patnC2EPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull %4)
          to label %19 unwind label %36

19:                                               ; preds = %17
  %20 = getelementptr inbounds i8, ptr %8, i64 16
  invoke void @_ZN6sparta6s_patnC2EPi(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull %5)
          to label %21 unwind label %36

21:                                               ; preds = %19
  %22 = getelementptr inbounds i8, ptr %8, i64 24
  call void @_ZNSt16initializer_listIN6sparta6s_patnEEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #5
  %23 = load ptr, ptr %9, align 8
  %24 = getelementptr inbounds i8, ptr %9, i64 8
  %25 = load i64, ptr %24, align 8
  invoke void @_ZN6sparta6s_patnC2ESt16initializer_listIS0_ERNS_6s_exprE(ptr noundef nonnull align 8 dereferenceable(8) %22, ptr %23, i64 %25, ptr noundef nonnull align 8 dereferenceable(8) %6)
          to label %26 unwind label %36

26:                                               ; preds = %21
  invoke void @_ZN6sparta6s_patnC2ESt16initializer_listIS0_E(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr nonnull %8, i64 4)
          to label %27 unwind label %42

27:                                               ; preds = %26
  %28 = invoke noundef zeroext i1 @_ZN6sparta6s_patn10match_withERKNS_6s_exprE(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %1)
          to label %29 unwind label %44

29:                                               ; preds = %27
  call void @_ZN6sparta6s_patnD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  %30 = getelementptr inbounds i8, ptr %8, i64 24
  call void @_ZN6sparta6s_patnD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %30) #5
  %31 = getelementptr inbounds i8, ptr %8, i64 16
  call void @_ZN6sparta6s_patnD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %31) #5
  %32 = getelementptr inbounds i8, ptr %8, i64 8
  call void @_ZN6sparta6s_patnD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %32) #5
  call void @_ZN6sparta6s_patnD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  br i1 %28, label %49, label %33

33:                                               ; preds = %29
  call void @_ZN5boost8optionalI23PointsToMethodSemanticsEC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %0) #5
  br label %110

34:                                               ; preds = %2
  %35 = landingpad { ptr, i32 }
          cleanup
  br label %112

36:                                               ; preds = %21, %19, %17
  %.010 = phi ptr [ %22, %21 ], [ %20, %19 ], [ %18, %17 ]
  %37 = landingpad { ptr, i32 }
          cleanup
  br label %38

38:                                               ; preds = %36, %38
  %39 = phi ptr [ %.010, %36 ], [ %40, %38 ]
  %40 = getelementptr inbounds i8, ptr %39, i64 -8
  call void @_ZN6sparta6s_patnD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %40) #5
  %41 = icmp eq ptr %40, %8
  br i1 %41, label %.loopexit, label %38

42:                                               ; preds = %26
  %43 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.loopexit

44:                                               ; preds = %27
  %45 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6sparta6s_patnD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  br label %.loopexit.loopexit

.loopexit.loopexit:                               ; preds = %44, %42
  %.pn = phi { ptr, i32 } [ %45, %44 ], [ %43, %42 ]
  %46 = getelementptr inbounds i8, ptr %8, i64 24
  call void @_ZN6sparta6s_patnD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %46) #5
  %47 = getelementptr inbounds i8, ptr %8, i64 16
  call void @_ZN6sparta6s_patnD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %47) #5
  %48 = getelementptr inbounds i8, ptr %8, i64 8
  call void @_ZN6sparta6s_patnD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %48) #5
  call void @_ZN6sparta6s_patnD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  br label %.loopexit

.loopexit:                                        ; preds = %38, %.loopexit.loopexit, %.thread
  %.pn.pn = phi { ptr, i32 } [ %16, %.thread ], [ %.pn, %.loopexit.loopexit ], [ %37, %38 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  br label %111

49:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #5
  %50 = invoke { i8, ptr } @_ZN8pts_impl20s_expr_to_dex_methodERKN6sparta6s_exprE(ptr noundef nonnull align 8 dereferenceable(8) %3)
          to label %51 unwind label %57

51:                                               ; preds = %49
  %52 = extractvalue { i8, ptr } %50, 0
  store i8 %52, ptr %10, align 8
  %53 = getelementptr inbounds i8, ptr %10, i64 8
  %54 = extractvalue { i8, ptr } %50, 1
  store ptr %54, ptr %53, align 8
  %55 = call noundef zeroext i1 @_ZNK5boost8optionalIP12DexMethodRefEntEv(ptr noundef nonnull align 8 dereferenceable(16) %10) #5
  br i1 %55, label %56, label %59

56:                                               ; preds = %51
  call void @_ZN5boost8optionalI23PointsToMethodSemanticsEC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %0) #5
  br label %108

57:                                               ; preds = %49
  %58 = landingpad { ptr, i32 }
          cleanup
  br label %109

59:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #5
  %60 = invoke i64 @_ZN8pts_impl21string_to_method_kindERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %4)
          to label %61 unwind label %64

61:                                               ; preds = %59
  store i64 %60, ptr %11, align 8
  %62 = call noundef zeroext i1 @_ZNK5boost8optionalI10MethodKindEntEv(ptr noundef nonnull align 4 dereferenceable(8) %11) #5
  br i1 %62, label %63, label %66

63:                                               ; preds = %61
  call void @_ZN5boost8optionalI23PointsToMethodSemanticsEC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %0) #5
  br label %106

64:                                               ; preds = %59
  %65 = landingpad { ptr, i32 }
          cleanup
  br label %107

66:                                               ; preds = %61
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %12) #5
  %67 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNR5boost8optionalIP12DexMethodRefEdeEv(ptr noundef nonnull align 8 dereferenceable(16) %10)
          to label %68 unwind label %79

68:                                               ; preds = %66
  %69 = load ptr, ptr %67, align 8, !tbaa !5
  %70 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNR5boost8optionalI10MethodKindEdeEv(ptr noundef nonnull align 4 dereferenceable(8) %11)
          to label %71 unwind label %79

71:                                               ; preds = %68
  %72 = load i32, ptr %70, align 4, !tbaa !9
  %73 = load i32, ptr %5, align 4, !tbaa !11
  %74 = invoke noundef i64 @_ZNK6sparta6s_expr4sizeEv(ptr noundef nonnull align 8 dereferenceable(8) %6)
          to label %75 unwind label %79

75:                                               ; preds = %71
  %76 = sext i32 %73 to i64
  invoke void @_ZN23PointsToMethodSemanticsC1EP12DexMethodRef10MethodKindmm(ptr noundef nonnull align 8 dereferenceable(48) %12, ptr noundef %69, i32 noundef %72, i64 noundef %76, i64 noundef %74)
          to label %.preheader unwind label %79

.preheader:                                       ; preds = %75, %95
  %.0 = phi i64 [ %96, %95 ], [ 0, %75 ]
  %77 = invoke noundef i64 @_ZNK6sparta6s_expr4sizeEv(ptr noundef nonnull align 8 dereferenceable(8) %6)
          to label %78 unwind label %81

78:                                               ; preds = %.preheader
  %.not = icmp ult i64 %.0, %77
  br i1 %.not, label %83, label %.critedge

79:                                               ; preds = %75, %71, %68, %66
  %80 = landingpad { ptr, i32 }
          cleanup
  br label %105

81:                                               ; preds = %.preheader
  %82 = landingpad { ptr, i32 }
          cleanup
  br label %104

83:                                               ; preds = %78
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %13) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #5
  invoke void @_ZNK6sparta6s_exprixEm(ptr dead_on_unwind nonnull writable sret(%"class.sparta::s_expr") align 8 %14, ptr noundef nonnull align 8 dereferenceable(8) %6, i64 noundef %.0)
          to label %84 unwind label %87

84:                                               ; preds = %83
  invoke void @_ZN14PointsToAction11from_s_exprERKN6sparta6s_exprE(ptr dead_on_unwind nonnull writable sret(%"class.boost::optional.76") align 8 %13, ptr noundef nonnull align 8 dereferenceable(8) %14)
          to label %85 unwind label %89

85:                                               ; preds = %84
  call void @_ZN6sparta6s_exprD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #5
  %86 = call noundef zeroext i1 @_ZNK5boost8optionalI14PointsToActionEntEv(ptr noundef nonnull align 8 dereferenceable(48) %13) #5
  br i1 %86, label %100, label %92

87:                                               ; preds = %83
  %88 = landingpad { ptr, i32 }
          cleanup
  br label %91

89:                                               ; preds = %84
  %90 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6sparta6s_exprD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #5
  br label %91

91:                                               ; preds = %89, %87
  %.pn27 = phi { ptr, i32 } [ %90, %89 ], [ %88, %87 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #5
  br label %99

92:                                               ; preds = %85
  %93 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNR5boost8optionalI14PointsToActionEdeEv(ptr noundef nonnull align 8 dereferenceable(48) %13)
          to label %94 unwind label %97

94:                                               ; preds = %92
  invoke void @_ZN23PointsToMethodSemantics3addERK14PointsToAction(ptr noundef nonnull align 8 dereferenceable(48) %12, ptr noundef nonnull align 8 dereferenceable(40) %93)
          to label %95 unwind label %97

95:                                               ; preds = %94
  call void @_ZN5boost15optional_detail13optional_baseI14PointsToActionED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %13) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %13) #5
  %96 = add nuw i64 %.0, 1
  br label %.preheader, !llvm.loop !13

97:                                               ; preds = %94, %92
  %98 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN5boost15optional_detail13optional_baseI14PointsToActionED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %13) #5
  br label %99

99:                                               ; preds = %97, %91
  %.pn29 = phi { ptr, i32 } [ %98, %97 ], [ %.pn27, %91 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %13) #5
  br label %104

100:                                              ; preds = %85
  call void @_ZN5boost8optionalI23PointsToMethodSemanticsEC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %0) #5
  call void @_ZN5boost15optional_detail13optional_baseI14PointsToActionED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %13) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %13) #5
  br label %103

.critedge:                                        ; preds = %78
  invoke void @_ZN5boost8optionalI23PointsToMethodSemanticsEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef nonnull align 8 dereferenceable(48) %12)
          to label %103 unwind label %101

101:                                              ; preds = %.critedge
  %102 = landingpad { ptr, i32 }
          cleanup
  br label %104

103:                                              ; preds = %100, %.critedge
  call void @_ZN23PointsToMethodSemanticsD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %12) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %12) #5
  br label %106

104:                                              ; preds = %81, %99, %101
  %.pn32 = phi { ptr, i32 } [ %102, %101 ], [ %.pn29, %99 ], [ %82, %81 ]
  call void @_ZN23PointsToMethodSemanticsD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %12) #5
  br label %105

105:                                              ; preds = %104, %79
  %.pn32.pn = phi { ptr, i32 } [ %.pn32, %104 ], [ %80, %79 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %12) #5
  br label %107

106:                                              ; preds = %103, %63
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #5
  br label %108

107:                                              ; preds = %105, %64
  %.pn32.pn.pn = phi { ptr, i32 } [ %.pn32.pn, %105 ], [ %65, %64 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #5
  br label %109

108:                                              ; preds = %106, %56
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #5
  br label %110

109:                                              ; preds = %107, %57
  %.pn32.pn.pn.pn = phi { ptr, i32 } [ %.pn32.pn.pn, %107 ], [ %58, %57 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #5
  br label %111

110:                                              ; preds = %108, %33
  call void @_ZN6sparta6s_exprD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #5
  call void @_ZN6sparta6s_exprD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  ret void

111:                                              ; preds = %109, %.loopexit
  %.pn32.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn32.pn.pn.pn, %109 ], [ %.pn.pn, %.loopexit ]
  call void @_ZN6sparta6s_exprD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  br label %112

112:                                              ; preds = %111, %34
  %.pn32.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn32.pn.pn.pn.pn, %111 ], [ %35, %34 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #5
  call void @_ZN6sparta6s_exprD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  resume { ptr, i32 } %.pn32.pn.pn.pn.pn.pn
}

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN23PointsToMethodSemantics3addERK14PointsToAction(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #4 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5boost8optionalI23PointsToMethodSemanticsEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #4 align 2

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

declare void @_ZN23PointsToMethodSemanticsC1EP12DexMethodRef10MethodKindmm(ptr, ptr, i32, i64, i64) local_unnamed_addr

attributes #0 = { mustprogress 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 nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { 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 #5 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"_ZTS10MethodKind", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass