; LLVM IR from facebook/redex :: libredex/PointsToSemantics.ll (ZN8pts_impl20s_expr_to_dex_methodERKN6sparta6s_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.boost::optional.47" = type { %"class.boost::optional_detail::tc_optional_base.48" }
%"class.boost::optional_detail::tc_optional_base.48" = type { i8, ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.sparta::s_expr" = type { %"class.boost::intrusive_ptr" }
%"class.boost::intrusive_ptr" = type { ptr }
%"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.std::vector.42" = type { %"struct.std::_Vector_base.43" }
%"struct.std::_Vector_base.43" = type { %"struct.std::_Vector_base<DexType *, std::allocator<DexType *>>::_Vector_impl" }
%"struct.std::_Vector_base<DexType *, std::allocator<DexType *>>::_Vector_impl" = type { %"struct.std::_Vector_base<DexType *, std::allocator<DexType *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<DexType *, std::allocator<DexType *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::basic_string_view" = type { i64, 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 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
define dso_local { i8, ptr } @_ZN8pts_impl20s_expr_to_dex_methodERKN6sparta6s_exprE(ptr noundef nonnull align 8 dereferenceable(8) %0) #4 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.boost::optional.47", align 8
  %3 = alloca ptr, align 8
  %4 = alloca %"class.std::__cxx11::basic_string", align 8
  %5 = alloca %"class.std::__cxx11::basic_string", align 8
  %6 = alloca %"class.std::__cxx11::basic_string", align 8
  %7 = alloca %"class.sparta::s_expr", align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca %"class.sparta::s_patn", align 8
  %11 = alloca %"class.std::initializer_list.2", align 8
  %12 = alloca [4 x %"class.sparta::s_patn"], align 8
  %13 = alloca ptr, align 8
  %14 = alloca %"class.std::initializer_list.2", align 8
  %15 = alloca i32, align 4
  %16 = alloca %"class.std::vector.42", align 8
  %17 = alloca i64, align 8
  %18 = alloca %"class.sparta::s_expr", align 8
  %19 = alloca ptr, align 8
  %20 = alloca %"class.std::basic_string_view", align 8
  %21 = alloca %"class.sparta::s_expr", align 8
  %22 = alloca ptr, align 8
  %23 = alloca %"class.std::basic_string_view", align 8
  %24 = alloca %"class.std::basic_string_view", align 8
  %25 = alloca %"class.std::basic_string_view", align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %4) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %5) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %6) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  invoke void @_ZN6sparta6s_exprC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %26 unwind label %57

26:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %12) #6
  store ptr %12, ptr %13, align 8
  invoke void @_ZN6sparta6s_patnC2EPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef %4)
          to label %27 unwind label %61

27:                                               ; preds = %26
  %28 = getelementptr inbounds %"class.sparta::s_patn", ptr %12, i64 1
  store ptr %28, ptr %13, align 8
  invoke void @_ZN6sparta6s_patnC2EPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(8) %28, ptr noundef %5)
          to label %29 unwind label %61

29:                                               ; preds = %27
  %30 = getelementptr inbounds %"class.sparta::s_patn", ptr %12, i64 2
  store ptr %30, ptr %13, align 8
  invoke void @_ZN6sparta6s_patnC2EPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(8) %30, ptr noundef %6)
          to label %31 unwind label %61

31:                                               ; preds = %29
  %32 = getelementptr inbounds %"class.sparta::s_patn", ptr %12, i64 3
  store ptr %32, ptr %13, align 8
  call void @_ZNSt16initializer_listIN6sparta6s_patnEEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #6
  %33 = getelementptr inbounds { ptr, i64 }, ptr %14, i32 0, i32 0
  %34 = load ptr, ptr %33, align 8
  %35 = getelementptr inbounds { ptr, i64 }, ptr %14, i32 0, i32 1
  %36 = load i64, ptr %35, align 8
  invoke void @_ZN6sparta6s_patnC2ESt16initializer_listIS0_ERNS_6s_exprE(ptr noundef nonnull align 8 dereferenceable(8) %32, ptr %34, i64 %36, ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %37 unwind label %61

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

44:                                               ; preds = %37
  %45 = load ptr, ptr %3, align 8, !tbaa !5
  %46 = invoke noundef zeroext i1 @_ZN6sparta6s_patn10match_withERKNS_6s_exprE(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %45)
          to label %47 unwind label %76

47:                                               ; preds = %44
  %48 = xor i1 %46, true
  call void @_ZN6sparta6s_patnD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  %49 = getelementptr inbounds [4 x %"class.sparta::s_patn"], ptr %12, i32 0, i32 0
  %50 = getelementptr inbounds %"class.sparta::s_patn", ptr %49, i64 4
  br label %51

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

55:                                               ; preds = %51
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  br i1 %48, label %56, label %89

56:                                               ; preds = %55
  call void @_ZN5boost8optionalIP12DexMethodRefEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %2) #6
  store i32 1, ptr %15, align 4
  br label %195

57:                                               ; preds = %1
  %58 = landingpad { ptr, i32 }
          cleanup
  %59 = extractvalue { ptr, i32 } %58, 0
  store ptr %59, ptr %8, align 8
  %60 = extractvalue { ptr, i32 } %58, 1
  store i32 %60, ptr %9, align 4
  br label %199

61:                                               ; preds = %31, %29, %27, %26
  %62 = landingpad { ptr, i32 }
          cleanup
  %63 = extractvalue { ptr, i32 } %62, 0
  store ptr %63, ptr %8, align 8
  %64 = extractvalue { ptr, i32 } %62, 1
  store i32 %64, ptr %9, align 4
  %65 = load ptr, ptr %13, align 8
  %66 = icmp eq ptr %12, %65
  br i1 %66, label %71, label %67

67:                                               ; preds = %67, %61
  %68 = phi ptr [ %65, %61 ], [ %69, %67 ]
  %69 = getelementptr inbounds %"class.sparta::s_patn", ptr %68, i64 -1
  call void @_ZN6sparta6s_patnD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %69) #6
  %70 = icmp eq ptr %69, %12
  br i1 %70, label %71, label %67

71:                                               ; preds = %67, %61
  br label %88

72:                                               ; preds = %37
  %73 = landingpad { ptr, i32 }
          cleanup
  %74 = extractvalue { ptr, i32 } %73, 0
  store ptr %74, ptr %8, align 8
  %75 = extractvalue { ptr, i32 } %73, 1
  store i32 %75, ptr %9, align 4
  br label %80

76:                                               ; preds = %44
  %77 = landingpad { ptr, i32 }
          cleanup
  %78 = extractvalue { ptr, i32 } %77, 0
  store ptr %78, ptr %8, align 8
  %79 = extractvalue { ptr, i32 } %77, 1
  store i32 %79, ptr %9, align 4
  call void @_ZN6sparta6s_patnD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  br label %80

80:                                               ; preds = %76, %72
  %81 = getelementptr inbounds [4 x %"class.sparta::s_patn"], ptr %12, i32 0, i32 0
  %82 = getelementptr inbounds %"class.sparta::s_patn", ptr %81, i64 4
  br label %83

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

87:                                               ; preds = %83
  br label %88

88:                                               ; preds = %87, %71
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  br label %198

89:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 24, ptr %16) #6
  call void @_ZNSt6vectorIP7DexTypeSaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  store i64 0, ptr %17, align 8, !tbaa !13
  br label %90

90:                                               ; preds = %133, %89
  %91 = load i64, ptr %17, align 8, !tbaa !13
  %92 = invoke noundef i64 @_ZNK6sparta6s_expr4sizeEv(ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %93 unwind label %96

93:                                               ; preds = %90
  %94 = icmp ult i64 %91, %92
  br i1 %94, label %100, label %95

95:                                               ; preds = %93
  store i32 2, ptr %15, align 4
  br label %145

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

100:                                              ; preds = %93
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  %101 = load i64, ptr %17, align 8, !tbaa !13
  invoke void @_ZNK6sparta6s_exprixEm(ptr dead_on_unwind writable sret(%"class.sparta::s_expr") align 8 %18, ptr noundef nonnull align 8 dereferenceable(8) %7, i64 noundef %101)
          to label %102 unwind label %107

102:                                              ; preds = %100
  %103 = invoke noundef zeroext i1 @_ZNK6sparta6s_expr9is_stringEv(ptr noundef nonnull align 8 dereferenceable(8) %18)
          to label %104 unwind label %111

104:                                              ; preds = %102
  %105 = xor i1 %103, true
  call void @_ZN6sparta6s_exprD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  br i1 %105, label %106, label %116

106:                                              ; preds = %104
  call void @_ZN5boost8optionalIP12DexMethodRefEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %2) #6
  store i32 1, ptr %15, align 4
  br label %145

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

111:                                              ; preds = %102
  %112 = landingpad { ptr, i32 }
          cleanup
  %113 = extractvalue { ptr, i32 } %112, 0
  store ptr %113, ptr %8, align 8
  %114 = extractvalue { ptr, i32 } %112, 1
  store i32 %114, ptr %9, align 4
  call void @_ZN6sparta6s_exprD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %18) #6
  br label %115

115:                                              ; preds = %111, %107
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  br label %147

116:                                              ; preds = %104
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  %117 = load i64, ptr %17, align 8, !tbaa !13
  invoke void @_ZNK6sparta6s_exprixEm(ptr dead_on_unwind writable sret(%"class.sparta::s_expr") align 8 %21, ptr noundef nonnull align 8 dereferenceable(8) %7, i64 noundef %117)
          to label %118 unwind label %136

118:                                              ; preds = %116
  %119 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNK6sparta6s_expr10get_stringB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(8) %21)
          to label %120 unwind label %140

120:                                              ; preds = %118
  %121 = call { i64, ptr } @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEcvSt17basic_string_viewIcS2_EEv(ptr noundef nonnull align 8 dereferenceable(32) %119) #6
  %122 = getelementptr inbounds { i64, ptr }, ptr %20, i32 0, i32 0
  %123 = extractvalue { i64, ptr } %121, 0
  store i64 %123, ptr %122, align 8
  %124 = getelementptr inbounds { i64, ptr }, ptr %20, i32 0, i32 1
  %125 = extractvalue { i64, ptr } %121, 1
  store ptr %125, ptr %124, align 8
  %126 = getelementptr inbounds { i64, ptr }, ptr %20, i32 0, i32 0
  %127 = load i64, ptr %126, align 8
  %128 = getelementptr inbounds { i64, ptr }, ptr %20, i32 0, i32 1
  %129 = load ptr, ptr %128, align 8
  %130 = invoke noundef ptr @_ZN7DexType9make_typeESt17basic_string_viewIcSt11char_traitsIcEE(i64 %127, ptr %129)
          to label %131 unwind label %140

131:                                              ; preds = %120
  store ptr %130, ptr %19, align 8, !tbaa !5
  invoke void @_ZNSt6vectorIP7DexTypeSaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %16, ptr noundef nonnull align 8 dereferenceable(8) %19)
          to label %132 unwind label %140

132:                                              ; preds = %131
  call void @_ZN6sparta6s_exprD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  br label %133

133:                                              ; preds = %132
  %134 = load i64, ptr %17, align 8, !tbaa !13
  %135 = add i64 %134, 1
  store i64 %135, ptr %17, align 8, !tbaa !13
  br label %90, !llvm.loop !14

136:                                              ; preds = %116
  %137 = landingpad { ptr, i32 }
          cleanup
  %138 = extractvalue { ptr, i32 } %137, 0
  store ptr %138, ptr %8, align 8
  %139 = extractvalue { ptr, i32 } %137, 1
  store i32 %139, ptr %9, align 4
  br label %144

140:                                              ; preds = %131, %120, %118
  %141 = landingpad { ptr, i32 }
          cleanup
  %142 = extractvalue { ptr, i32 } %141, 0
  store ptr %142, ptr %8, align 8
  %143 = extractvalue { ptr, i32 } %141, 1
  store i32 %143, ptr %9, align 4
  call void @_ZN6sparta6s_exprD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %21) #6
  br label %144

144:                                              ; preds = %140, %136
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  br label %147

145:                                              ; preds = %106, %95
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  %146 = load i32, ptr %15, align 4
  switch i32 %146, label %193 [
    i32 2, label %148
  ]

147:                                              ; preds = %144, %115, %96
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  br label %194

148:                                              ; preds = %145
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  %149 = call { i64, ptr } @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEcvSt17basic_string_viewIcS2_EEv(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  %150 = getelementptr inbounds { i64, ptr }, ptr %23, i32 0, i32 0
  %151 = extractvalue { i64, ptr } %149, 0
  store i64 %151, ptr %150, align 8
  %152 = getelementptr inbounds { i64, ptr }, ptr %23, i32 0, i32 1
  %153 = extractvalue { i64, ptr } %149, 1
  store ptr %153, ptr %152, align 8
  %154 = getelementptr inbounds { i64, ptr }, ptr %23, i32 0, i32 0
  %155 = load i64, ptr %154, align 8
  %156 = getelementptr inbounds { i64, ptr }, ptr %23, i32 0, i32 1
  %157 = load ptr, ptr %156, align 8
  %158 = invoke noundef ptr @_ZN7DexType9make_typeESt17basic_string_viewIcSt11char_traitsIcEE(i64 %155, ptr %157)
          to label %159 unwind label %189

159:                                              ; preds = %148
  %160 = call { i64, ptr } @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEcvSt17basic_string_viewIcS2_EEv(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  %161 = getelementptr inbounds { i64, ptr }, ptr %24, i32 0, i32 0
  %162 = extractvalue { i64, ptr } %160, 0
  store i64 %162, ptr %161, align 8
  %163 = getelementptr inbounds { i64, ptr }, ptr %24, i32 0, i32 1
  %164 = extractvalue { i64, ptr } %160, 1
  store ptr %164, ptr %163, align 8
  %165 = getelementptr inbounds { i64, ptr }, ptr %24, i32 0, i32 0
  %166 = load i64, ptr %165, align 8
  %167 = getelementptr inbounds { i64, ptr }, ptr %24, i32 0, i32 1
  %168 = load ptr, ptr %167, align 8
  %169 = invoke noundef ptr @_ZN9DexString11make_stringESt17basic_string_viewIcSt11char_traitsIcEE(i64 %166, ptr %168)
          to label %170 unwind label %189

170:                                              ; preds = %159
  %171 = call { i64, ptr } @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEcvSt17basic_string_viewIcS2_EEv(ptr noundef nonnull align 8 dereferenceable(32) %6) #6
  %172 = getelementptr inbounds { i64, ptr }, ptr %25, i32 0, i32 0
  %173 = extractvalue { i64, ptr } %171, 0
  store i64 %173, ptr %172, align 8
  %174 = getelementptr inbounds { i64, ptr }, ptr %25, i32 0, i32 1
  %175 = extractvalue { i64, ptr } %171, 1
  store ptr %175, ptr %174, align 8
  %176 = getelementptr inbounds { i64, ptr }, ptr %25, i32 0, i32 0
  %177 = load i64, ptr %176, align 8
  %178 = getelementptr inbounds { i64, ptr }, ptr %25, i32 0, i32 1
  %179 = load ptr, ptr %178, align 8
  %180 = invoke noundef ptr @_ZN7DexType9make_typeESt17basic_string_viewIcSt11char_traitsIcEE(i64 %177, ptr %179)
          to label %181 unwind label %189

181:                                              ; preds = %170
  %182 = invoke noundef ptr @_ZN11DexTypeList14make_type_listEOSt6vectorIP7DexTypeSaIS2_EE(ptr noundef nonnull align 8 dereferenceable(24) %16)
          to label %183 unwind label %189

183:                                              ; preds = %181
  %184 = invoke noundef ptr @_ZN8DexProto10make_protoEPK7DexTypePK11DexTypeList(ptr noundef %180, ptr noundef %182)
          to label %185 unwind label %189

185:                                              ; preds = %183
  %186 = invoke noundef ptr @_ZN9DexMethod11make_methodEPK7DexTypePK9DexStringPK8DexProto(ptr noundef %158, ptr noundef %169, ptr noundef %184)
          to label %187 unwind label %189

187:                                              ; preds = %185
  store ptr %186, ptr %22, align 8, !tbaa !5
  invoke void @_ZN5boost8optionalIP12DexMethodRefEC2EOS2_(ptr noundef nonnull align 8 dereferenceable(16) %2, ptr noundef nonnull align 8 dereferenceable(8) %22)
          to label %188 unwind label %189

188:                                              ; preds = %187
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  store i32 1, ptr %15, align 4
  br label %193

189:                                              ; preds = %187, %185, %183, %181, %170, %159, %148
  %190 = landingpad { ptr, i32 }
          cleanup
  %191 = extractvalue { ptr, i32 } %190, 0
  store ptr %191, ptr %8, align 8
  %192 = extractvalue { ptr, i32 } %190, 1
  store i32 %192, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  br label %194

193:                                              ; preds = %188, %145
  call void @_ZNSt6vectorIP7DexTypeSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #6
  br label %195

194:                                              ; preds = %189, %147
  call void @_ZNSt6vectorIP7DexTypeSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #6
  br label %198

195:                                              ; preds = %193, %56
  call void @_ZN6sparta6s_exprD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %6) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %5) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %4) #6
  %196 = getelementptr inbounds %"class.boost::optional.47", ptr %2, i32 0, i32 0
  %197 = load { i8, ptr }, ptr %196, align 8
  ret { i8, ptr } %197

198:                                              ; preds = %194, %88
  call void @_ZN6sparta6s_exprD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #6
  br label %199

199:                                              ; preds = %198, %57
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %6) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %5) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %4) #6
  br label %200

200:                                              ; preds = %199
  %201 = load ptr, ptr %8, align 8
  %202 = load i32, ptr %9, align 4
  %203 = insertvalue { ptr, i32 } poison, ptr %201, 0
  %204 = insertvalue { ptr, i32 } %203, i32 %202, 1
  resume { ptr, i32 } %204
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIP7DexTypeSaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 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 nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK6sparta6s_expr9is_stringEv(ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN7DexType9make_typeESt17basic_string_viewIcSt11char_traitsIcEE(i64, ptr) #4 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare { i64, ptr } @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEcvSt17basic_string_viewIcS2_EEv(ptr noundef nonnull align 8 dereferenceable(32)) #1 align 2

declare noundef ptr @_ZN9DexMethod11make_methodEPK7DexTypePK9DexStringPK8DexProto(ptr noundef, ptr noundef, ptr noundef) #5

declare noundef ptr @_ZN9DexString11make_stringESt17basic_string_viewIcSt11char_traitsIcEE(i64, ptr) #5

declare noundef ptr @_ZN8DexProto10make_protoEPK7DexTypePK11DexTypeList(ptr noundef, ptr noundef) #5

declare noundef ptr @_ZN11DexTypeList14make_type_listEOSt6vectorIP7DexTypeSaIS2_EE(ptr noundef nonnull align 8 dereferenceable(24)) #5

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

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

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 = { "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 = { 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 = !{!11, !11, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"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.boost::optional.47" = type { %"class.boost::optional_detail::tc_optional_base.48" }
%"class.boost::optional_detail::tc_optional_base.48" = type { i8, ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.sparta::s_expr" = type { %"class.boost::intrusive_ptr" }
%"class.boost::intrusive_ptr" = type { ptr }
%"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.std::vector.42" = type { %"struct.std::_Vector_base.43" }
%"struct.std::_Vector_base.43" = type { %"struct.std::_Vector_base<DexType *, std::allocator<DexType *>>::_Vector_impl" }
%"struct.std::_Vector_base<DexType *, std::allocator<DexType *>>::_Vector_impl" = type { %"struct.std::_Vector_base<DexType *, std::allocator<DexType *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<DexType *, std::allocator<DexType *>>::_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 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
define dso_local { i8, ptr } @_ZN8pts_impl20s_expr_to_dex_methodERKN6sparta6s_exprE(ptr noundef nonnull align 8 dereferenceable(8) %0) local_unnamed_addr #4 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.boost::optional.47", align 8
  %3 = alloca %"class.std::__cxx11::basic_string", align 8
  %4 = alloca %"class.std::__cxx11::basic_string", align 8
  %5 = alloca %"class.std::__cxx11::basic_string", align 8
  %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.std::vector.42", align 8
  %11 = alloca %"class.sparta::s_expr", align 8
  %12 = alloca ptr, align 8
  %13 = alloca %"class.sparta::s_expr", align 8
  %14 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #6
  invoke void @_ZN6sparta6s_exprC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6)
          to label %15 unwind label %34

15:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #6
  invoke void @_ZN6sparta6s_patnC2EPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull %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_patnC2EPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(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) #6
  %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) %0)
          to label %29 unwind label %44

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

33:                                               ; preds = %29
  call void @_ZN5boost8optionalIP12DexMethodRefEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %2) #6
  br label %103

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

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

38:                                               ; preds = %36, %38
  %39 = phi ptr [ %.023, %36 ], [ %40, %38 ]
  %40 = getelementptr inbounds i8, ptr %39, i64 -8
  call void @_ZN6sparta6s_patnD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %40) #6
  %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) #6
  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) #6
  %47 = getelementptr inbounds i8, ptr %8, i64 16
  call void @_ZN6sparta6s_patnD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %47) #6
  %48 = getelementptr inbounds i8, ptr %8, i64 8
  call void @_ZN6sparta6s_patnD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %48) #6
  call void @_ZN6sparta6s_patnD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #6
  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) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  br label %104

49:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %10) #6
  call void @_ZNSt6vectorIP7DexTypeSaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  br label %50

50:                                               ; preds = %70, %49
  %.025 = phi i64 [ 0, %49 ], [ %71, %70 ]
  %51 = invoke noundef i64 @_ZNK6sparta6s_expr4sizeEv(ptr noundef nonnull align 8 dereferenceable(8) %6)
          to label %52 unwind label %53

52:                                               ; preds = %50
  %.not = icmp ult i64 %.025, %51
  br i1 %.not, label %55, label %.critedge

53:                                               ; preds = %50
  %54 = landingpad { ptr, i32 }
          cleanup
  br label %102

55:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #6
  invoke void @_ZNK6sparta6s_exprixEm(ptr dead_on_unwind nonnull writable sret(%"class.sparta::s_expr") align 8 %11, ptr noundef nonnull align 8 dereferenceable(8) %6, i64 noundef %.025)
          to label %56 unwind label %59

56:                                               ; preds = %55
  %57 = call noundef zeroext i1 @_ZNK6sparta6s_expr9is_stringEv(ptr noundef nonnull align 8 dereferenceable(8) %11)
  call void @_ZN6sparta6s_exprD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
  br i1 %57, label %61, label %58

58:                                               ; preds = %56
  call void @_ZN5boost8optionalIP12DexMethodRefEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %2) #6
  br label %101

59:                                               ; preds = %55
  %60 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
  br label %102

61:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #6
  invoke void @_ZNK6sparta6s_exprixEm(ptr dead_on_unwind nonnull writable sret(%"class.sparta::s_expr") align 8 %13, ptr noundef nonnull align 8 dereferenceable(8) %6, i64 noundef %.025)
          to label %62 unwind label %72

62:                                               ; preds = %61
  %63 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNK6sparta6s_expr10get_stringB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(8) %13)
          to label %64 unwind label %74

64:                                               ; preds = %62
  %65 = call { i64, ptr } @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEcvSt17basic_string_viewIcS2_EEv(ptr noundef nonnull align 8 dereferenceable(32) %63) #6
  %66 = extractvalue { i64, ptr } %65, 0
  %67 = extractvalue { i64, ptr } %65, 1
  %68 = invoke noundef ptr @_ZN7DexType9make_typeESt17basic_string_viewIcSt11char_traitsIcEE(i64 %66, ptr %67)
          to label %69 unwind label %74

69:                                               ; preds = %64
  store ptr %68, ptr %12, align 8, !tbaa !5
  invoke void @_ZNSt6vectorIP7DexTypeSaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 8 dereferenceable(8) %12)
          to label %70 unwind label %74

70:                                               ; preds = %69
  call void @_ZN6sparta6s_exprD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #6
  %71 = add nuw i64 %.025, 1
  br label %50, !llvm.loop !9

72:                                               ; preds = %61
  %73 = landingpad { ptr, i32 }
          cleanup
  br label %76

74:                                               ; preds = %69, %64, %62
  %75 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6sparta6s_exprD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #6
  br label %76

76:                                               ; preds = %74, %72
  %.pn29 = phi { ptr, i32 } [ %75, %74 ], [ %73, %72 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #6
  br label %102

.critedge:                                        ; preds = %52
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #6
  %77 = call { i64, ptr } @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEcvSt17basic_string_viewIcS2_EEv(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
  %78 = extractvalue { i64, ptr } %77, 0
  %79 = extractvalue { i64, ptr } %77, 1
  %80 = invoke noundef ptr @_ZN7DexType9make_typeESt17basic_string_viewIcSt11char_traitsIcEE(i64 %78, ptr %79)
          to label %81 unwind label %99

81:                                               ; preds = %.critedge
  %82 = call { i64, ptr } @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEcvSt17basic_string_viewIcS2_EEv(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  %83 = extractvalue { i64, ptr } %82, 0
  %84 = extractvalue { i64, ptr } %82, 1
  %85 = invoke noundef ptr @_ZN9DexString11make_stringESt17basic_string_viewIcSt11char_traitsIcEE(i64 %83, ptr %84)
          to label %86 unwind label %99

86:                                               ; preds = %81
  %87 = call { i64, ptr } @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEcvSt17basic_string_viewIcS2_EEv(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  %88 = extractvalue { i64, ptr } %87, 0
  %89 = extractvalue { i64, ptr } %87, 1
  %90 = invoke noundef ptr @_ZN7DexType9make_typeESt17basic_string_viewIcSt11char_traitsIcEE(i64 %88, ptr %89)
          to label %91 unwind label %99

91:                                               ; preds = %86
  %92 = invoke noundef ptr @_ZN11DexTypeList14make_type_listEOSt6vectorIP7DexTypeSaIS2_EE(ptr noundef nonnull align 8 dereferenceable(24) %10)
          to label %93 unwind label %99

93:                                               ; preds = %91
  %94 = invoke noundef ptr @_ZN8DexProto10make_protoEPK7DexTypePK11DexTypeList(ptr noundef %90, ptr noundef %92)
          to label %95 unwind label %99

95:                                               ; preds = %93
  %96 = invoke noundef ptr @_ZN9DexMethod11make_methodEPK7DexTypePK9DexStringPK8DexProto(ptr noundef %80, ptr noundef %85, ptr noundef %94)
          to label %97 unwind label %99

97:                                               ; preds = %95
  store ptr %96, ptr %14, align 8, !tbaa !5
  invoke void @_ZN5boost8optionalIP12DexMethodRefEC2EOS2_(ptr noundef nonnull align 8 dereferenceable(16) %2, ptr noundef nonnull align 8 dereferenceable(8) %14)
          to label %98 unwind label %99

98:                                               ; preds = %97
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #6
  br label %101

99:                                               ; preds = %97, %95, %93, %91, %86, %81, %.critedge
  %100 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #6
  br label %102

101:                                              ; preds = %58, %98
  call void @_ZNSt6vectorIP7DexTypeSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #6
  br label %103

102:                                              ; preds = %53, %59, %76, %99
  %.pn32 = phi { ptr, i32 } [ %100, %99 ], [ %.pn29, %76 ], [ %60, %59 ], [ %54, %53 ]
  call void @_ZNSt6vectorIP7DexTypeSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #6
  br label %104

103:                                              ; preds = %101, %33
  call void @_ZN6sparta6s_exprD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #6
  %.fca.0.load = load i8, ptr %2, align 8
  %.fca.0.insert = insertvalue { i8, ptr } poison, i8 %.fca.0.load, 0
  %.fca.1.gep = getelementptr inbounds i8, ptr %2, i64 8
  %.fca.1.load = load ptr, ptr %.fca.1.gep, align 8
  %.fca.1.insert = insertvalue { i8, ptr } %.fca.0.insert, ptr %.fca.1.load, 1
  ret { i8, ptr } %.fca.1.insert

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIP7DexTypeSaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 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 nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK6sparta6s_expr9is_stringEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN7DexType9make_typeESt17basic_string_viewIcSt11char_traitsIcEE(i64, ptr) local_unnamed_addr #4 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare { i64, ptr } @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEcvSt17basic_string_viewIcS2_EEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1 align 2

declare noundef ptr @_ZN9DexMethod11make_methodEPK7DexTypePK9DexStringPK8DexProto(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #5

declare noundef ptr @_ZN9DexString11make_stringESt17basic_string_viewIcSt11char_traitsIcEE(i64, ptr) local_unnamed_addr #5

declare noundef ptr @_ZN8DexProto10make_protoEPK7DexTypePK11DexTypeList(ptr noundef, ptr noundef) local_unnamed_addr #5

declare noundef ptr @_ZN11DexTypeList14make_type_listEOSt6vectorIP7DexTypeSaIS2_EE(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #5

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

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

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 = { "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 = { 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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}


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