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

; 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.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<sparta::s_expr, std::allocator<sparta::s_expr>>::_Vector_impl" }
%"struct.std::_Vector_base<sparta::s_expr, std::allocator<sparta::s_expr>>::_Vector_impl" = type { %"struct.std::_Vector_base<sparta::s_expr, std::allocator<sparta::s_expr>>::_Vector_impl_data" }
%"struct.std::_Vector_base<sparta::s_expr, std::allocator<sparta::s_expr>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator.170" = type { ptr }
%"class.std::back_insert_iterator" = type { ptr }
%class.anon = type { i8 }
%"class.std::initializer_list" = type { ptr, i64 }
%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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

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

; 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_exprC2ESt16initializer_listIS0_E(ptr noundef nonnull align 8 dereferenceable(8), ptr, i64) unnamed_addr #1 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8pts_impl21method_kind_to_s_exprE10MethodKind(ptr dead_on_unwind noalias writable sret(%"class.sparta::s_expr") align 8, i32 noundef) #3

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK23PointsToMethodSemantics9to_s_exprEv(ptr dead_on_unwind noalias writable sret(%"class.sparta::s_expr") align 8 %0, ptr noundef nonnull align 8 dereferenceable(48) %1) #3 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %"class.std::vector", align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator.170", align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator.170", align 8
  %8 = alloca %"class.std::back_insert_iterator", align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca %class.anon, align 1
  %12 = alloca %"class.std::back_insert_iterator", align 8
  %13 = alloca %"class.std::initializer_list", align 8
  %14 = alloca [4 x %"class.sparta::s_expr"], align 8
  %15 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8
  store ptr %1, ptr %4, align 8, !tbaa !5
  %16 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr %5) #5
  call void @_ZNSt6vectorIN6sparta6s_exprESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #5
  %17 = getelementptr inbounds %class.PointsToMethodSemantics, ptr %16, i32 0, i32 3
  %18 = call ptr @_ZNKSt6vectorI14PointsToActionSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %17) #5
  %19 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.170", ptr %6, i32 0, i32 0
  store ptr %18, ptr %19, align 8
  %20 = getelementptr inbounds %class.PointsToMethodSemantics, ptr %16, i32 0, i32 3
  %21 = call ptr @_ZNKSt6vectorI14PointsToActionSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %20) #5
  %22 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.170", ptr %7, i32 0, i32 0
  store ptr %21, ptr %22, align 8
  %23 = invoke ptr @_ZSt13back_inserterISt6vectorIN6sparta6s_exprESaIS2_EEESt20back_insert_iteratorIT_ERS6_(ptr noundef nonnull align 8 dereferenceable(24) %5)
          to label %24 unwind label %63

24:                                               ; preds = %2
  %25 = getelementptr inbounds %"class.std::back_insert_iterator", ptr %8, i32 0, i32 0
  store ptr %23, ptr %25, align 8
  %26 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.170", ptr %6, i32 0, i32 0
  %27 = load ptr, ptr %26, align 8
  %28 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.170", ptr %7, i32 0, i32 0
  %29 = load ptr, ptr %28, align 8
  %30 = getelementptr inbounds %"class.std::back_insert_iterator", ptr %8, i32 0, i32 0
  %31 = load ptr, ptr %30, align 8
  %32 = invoke ptr @"_ZSt9transformIN9__gnu_cxx17__normal_iteratorIPK14PointsToActionSt6vectorIS2_SaIS2_EEEESt20back_insert_iteratorIS5_IN6sparta6s_exprESaISB_EEEZNK23PointsToMethodSemantics9to_s_exprEvE3$_0ET0_T_SI_SH_T1_"(ptr %27, ptr %29, ptr %31)
          to label %33 unwind label %63

33:                                               ; preds = %24
  %34 = getelementptr inbounds %"class.std::back_insert_iterator", ptr %12, i32 0, i32 0
  store ptr %32, ptr %34, align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr %14) #5
  store ptr %14, ptr %15, align 8
  %35 = getelementptr inbounds %class.PointsToMethodSemantics, ptr %16, i32 0, i32 0
  %36 = load ptr, ptr %35, align 8, !tbaa !9
  invoke void @_ZN8pts_impl20dex_method_to_s_exprEP12DexMethodRef(ptr dead_on_unwind writable sret(%"class.sparta::s_expr") align 8 %14, ptr noundef %36)
          to label %37 unwind label %67

37:                                               ; preds = %33
  %38 = getelementptr inbounds %"class.sparta::s_expr", ptr %14, i64 1
  store ptr %38, ptr %15, align 8
  %39 = getelementptr inbounds %class.PointsToMethodSemantics, ptr %16, i32 0, i32 1
  %40 = load i32, ptr %39, align 8, !tbaa !17
  invoke void @_ZN8pts_impl21method_kind_to_s_exprE10MethodKind(ptr dead_on_unwind writable sret(%"class.sparta::s_expr") align 8 %38, i32 noundef %40)
          to label %41 unwind label %67

41:                                               ; preds = %37
  %42 = getelementptr inbounds %"class.sparta::s_expr", ptr %14, i64 2
  store ptr %42, ptr %15, align 8
  %43 = getelementptr inbounds %class.PointsToMethodSemantics, ptr %16, i32 0, i32 2
  %44 = load i64, ptr %43, align 8, !tbaa !18
  %45 = trunc i64 %44 to i32
  invoke void @_ZN6sparta6s_exprC2Ei(ptr noundef nonnull align 8 dereferenceable(8) %42, i32 noundef %45)
          to label %46 unwind label %67

46:                                               ; preds = %41
  %47 = getelementptr inbounds %"class.sparta::s_expr", ptr %14, i64 3
  store ptr %47, ptr %15, align 8
  invoke void @_ZN6sparta6s_exprC2ERKSt6vectorIS0_SaIS0_EE(ptr noundef nonnull align 8 dereferenceable(8) %47, ptr noundef nonnull align 8 dereferenceable(24) %5)
          to label %48 unwind label %67

48:                                               ; preds = %46
  %49 = getelementptr inbounds %"class.std::initializer_list", ptr %13, i32 0, i32 0
  store ptr %14, ptr %49, align 8, !tbaa !19
  %50 = getelementptr inbounds %"class.std::initializer_list", ptr %13, i32 0, i32 1
  store i64 4, ptr %50, align 8, !tbaa !21
  %51 = getelementptr inbounds { ptr, i64 }, ptr %13, i32 0, i32 0
  %52 = load ptr, ptr %51, align 8
  %53 = getelementptr inbounds { ptr, i64 }, ptr %13, i32 0, i32 1
  %54 = load i64, ptr %53, align 8
  invoke void @_ZN6sparta6s_exprC2ESt16initializer_listIS0_E(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr %52, i64 %54)
          to label %55 unwind label %78

55:                                               ; preds = %48
  %56 = getelementptr inbounds [4 x %"class.sparta::s_expr"], ptr %14, i32 0, i32 0
  %57 = getelementptr inbounds %"class.sparta::s_expr", ptr %56, i64 4
  br label %58

58:                                               ; preds = %58, %55
  %59 = phi ptr [ %57, %55 ], [ %60, %58 ]
  %60 = getelementptr inbounds %"class.sparta::s_expr", ptr %59, i64 -1
  call void @_ZN6sparta6s_exprD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %60) #5
  %61 = icmp eq ptr %60, %56
  br i1 %61, label %62, label %58

62:                                               ; preds = %58
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #5
  call void @_ZNSt6vectorIN6sparta6s_exprESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #5
  ret void

63:                                               ; preds = %24, %2
  %64 = landingpad { ptr, i32 }
          cleanup
  %65 = extractvalue { ptr, i32 } %64, 0
  store ptr %65, ptr %9, align 8
  %66 = extractvalue { ptr, i32 } %64, 1
  store i32 %66, ptr %10, align 4
  br label %90

67:                                               ; preds = %46, %41, %37, %33
  %68 = landingpad { ptr, i32 }
          cleanup
  %69 = extractvalue { ptr, i32 } %68, 0
  store ptr %69, ptr %9, align 8
  %70 = extractvalue { ptr, i32 } %68, 1
  store i32 %70, ptr %10, align 4
  %71 = load ptr, ptr %15, align 8
  %72 = icmp eq ptr %14, %71
  br i1 %72, label %77, label %73

73:                                               ; preds = %73, %67
  %74 = phi ptr [ %71, %67 ], [ %75, %73 ]
  %75 = getelementptr inbounds %"class.sparta::s_expr", ptr %74, i64 -1
  call void @_ZN6sparta6s_exprD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %75) #5
  %76 = icmp eq ptr %75, %14
  br i1 %76, label %77, label %73

77:                                               ; preds = %73, %67
  br label %89

78:                                               ; preds = %48
  %79 = landingpad { ptr, i32 }
          cleanup
  %80 = extractvalue { ptr, i32 } %79, 0
  store ptr %80, ptr %9, align 8
  %81 = extractvalue { ptr, i32 } %79, 1
  store i32 %81, ptr %10, align 4
  %82 = getelementptr inbounds [4 x %"class.sparta::s_expr"], ptr %14, i32 0, i32 0
  %83 = getelementptr inbounds %"class.sparta::s_expr", ptr %82, i64 4
  br label %84

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

88:                                               ; preds = %84
  br label %89

89:                                               ; preds = %88, %77
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #5
  br label %90

90:                                               ; preds = %89, %63
  call void @_ZNSt6vectorIN6sparta6s_exprESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #5
  br label %91

91:                                               ; preds = %90
  %92 = load ptr, ptr %9, align 8
  %93 = load i32, ptr %10, align 4
  %94 = insertvalue { ptr, i32 } poison, ptr %92, 0
  %95 = insertvalue { ptr, i32 } %94, i32 %93, 1
  resume { ptr, i32 } %95
}

; Function Attrs: mustprogress uwtable
declare hidden ptr @"_ZSt9transformIN9__gnu_cxx17__normal_iteratorIPK14PointsToActionSt6vectorIS2_SaIS2_EEEESt20back_insert_iteratorIS5_IN6sparta6s_exprESaISB_EEEZNK23PointsToMethodSemantics9to_s_exprEvE3$_0ET0_T_SI_SH_T1_"(ptr, ptr, ptr) #3

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local ptr @_ZSt13back_inserterISt6vectorIN6sparta6s_exprESaIS2_EEESt20back_insert_iteratorIT_ERS6_(ptr noundef nonnull align 8 dereferenceable(24)) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 = { 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 nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 = !{!"_ZTS23PointsToMethodSemantics", !6, i64 0, !11, i64 8, !12, i64 16, !13, i64 24}
!11 = !{!"_ZTS10MethodKind", !7, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!"_ZTSSt6vectorI14PointsToActionSaIS0_EE", !14, i64 0}
!14 = !{!"_ZTSSt12_Vector_baseI14PointsToActionSaIS0_EE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseI14PointsToActionSaIS0_EE12_Vector_implE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseI14PointsToActionSaIS0_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!17 = !{!10, !11, i64 8}
!18 = !{!10, !12, i64 16}
!19 = !{!20, !6, i64 0}
!20 = !{!"_ZTSSt16initializer_listIN6sparta6s_exprEE", !6, i64 0, !12, i64 8}
!21 = !{!20, !12, i64 8}


; 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.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<sparta::s_expr, std::allocator<sparta::s_expr>>::_Vector_impl" }
%"struct.std::_Vector_base<sparta::s_expr, std::allocator<sparta::s_expr>>::_Vector_impl" = type { %"struct.std::_Vector_base<sparta::s_expr, std::allocator<sparta::s_expr>>::_Vector_impl_data" }
%"struct.std::_Vector_base<sparta::s_expr, std::allocator<sparta::s_expr>>::_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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

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

; 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_exprC2ESt16initializer_listIS0_E(ptr noundef nonnull align 8 dereferenceable(8), ptr, i64) unnamed_addr #1 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8pts_impl21method_kind_to_s_exprE10MethodKind(ptr dead_on_unwind noalias writable sret(%"class.sparta::s_expr") align 8, i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK23PointsToMethodSemantics9to_s_exprEv(ptr dead_on_unwind noalias writable sret(%"class.sparta::s_expr") align 8 %0, ptr noundef nonnull align 8 dereferenceable(48) %1) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.std::vector", align 8
  %4 = alloca [4 x %"class.sparta::s_expr"], align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #5
  call void @_ZNSt6vectorIN6sparta6s_exprESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  %5 = getelementptr inbounds i8, ptr %1, i64 24
  %6 = call ptr @_ZNKSt6vectorI14PointsToActionSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #5
  %7 = call ptr @_ZNKSt6vectorI14PointsToActionSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #5
  %8 = invoke ptr @_ZSt13back_inserterISt6vectorIN6sparta6s_exprESaIS2_EEESt20back_insert_iteratorIT_ERS6_(ptr noundef nonnull align 8 dereferenceable(24) %3)
          to label %9 unwind label %30

9:                                                ; preds = %2
  %10 = invoke ptr @"_ZSt9transformIN9__gnu_cxx17__normal_iteratorIPK14PointsToActionSt6vectorIS2_SaIS2_EEEESt20back_insert_iteratorIS5_IN6sparta6s_exprESaISB_EEEZNK23PointsToMethodSemantics9to_s_exprEvE3$_0ET0_T_SI_SH_T1_"(ptr %6, ptr %7, ptr %8)
          to label %11 unwind label %30

11:                                               ; preds = %9
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #5
  %12 = load ptr, ptr %1, align 8, !tbaa !5
  invoke void @_ZN8pts_impl20dex_method_to_s_exprEP12DexMethodRef(ptr dead_on_unwind nonnull writable sret(%"class.sparta::s_expr") align 8 %4, ptr noundef %12)
          to label %14 unwind label %.thread

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

14:                                               ; preds = %11
  %15 = getelementptr inbounds i8, ptr %4, i64 8
  %16 = getelementptr inbounds i8, ptr %1, i64 8
  %17 = load i32, ptr %16, align 8, !tbaa !16
  invoke void @_ZN8pts_impl21method_kind_to_s_exprE10MethodKind(ptr dead_on_unwind nonnull writable sret(%"class.sparta::s_expr") align 8 %15, i32 noundef %17)
          to label %18 unwind label %32

18:                                               ; preds = %14
  %19 = getelementptr inbounds i8, ptr %4, i64 16
  %20 = getelementptr inbounds i8, ptr %1, i64 16
  %21 = load i64, ptr %20, align 8, !tbaa !17
  %22 = trunc i64 %21 to i32
  invoke void @_ZN6sparta6s_exprC2Ei(ptr noundef nonnull align 8 dereferenceable(8) %19, i32 noundef %22)
          to label %23 unwind label %32

23:                                               ; preds = %18
  %24 = getelementptr inbounds i8, ptr %4, i64 24
  invoke void @_ZN6sparta6s_exprC2ERKSt6vectorIS0_SaIS0_EE(ptr noundef nonnull align 8 dereferenceable(8) %24, ptr noundef nonnull align 8 dereferenceable(24) %3)
          to label %25 unwind label %32

25:                                               ; preds = %23
  invoke void @_ZN6sparta6s_exprC2ESt16initializer_listIS0_E(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr nonnull %4, i64 4)
          to label %26 unwind label %.loopexit.loopexit

26:                                               ; preds = %25
  %27 = getelementptr inbounds i8, ptr %4, i64 24
  call void @_ZN6sparta6s_exprD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %27) #5
  %28 = getelementptr inbounds i8, ptr %4, i64 16
  call void @_ZN6sparta6s_exprD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %28) #5
  %29 = getelementptr inbounds i8, ptr %4, i64 8
  call void @_ZN6sparta6s_exprD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %29) #5
  call void @_ZN6sparta6s_exprD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #5
  call void @_ZNSt6vectorIN6sparta6s_exprESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #5
  ret void

30:                                               ; preds = %9, %2
  %31 = landingpad { ptr, i32 }
          cleanup
  br label %42

32:                                               ; preds = %23, %18, %14
  %.0 = phi ptr [ %24, %23 ], [ %19, %18 ], [ %15, %14 ]
  %33 = landingpad { ptr, i32 }
          cleanup
  br label %34

34:                                               ; preds = %32, %34
  %35 = phi ptr [ %.0, %32 ], [ %36, %34 ]
  %36 = getelementptr inbounds i8, ptr %35, i64 -8
  call void @_ZN6sparta6s_exprD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %36) #5
  %37 = icmp eq ptr %36, %4
  br i1 %37, label %.loopexit, label %34

.loopexit.loopexit:                               ; preds = %25
  %38 = landingpad { ptr, i32 }
          cleanup
  %39 = getelementptr inbounds i8, ptr %4, i64 24
  call void @_ZN6sparta6s_exprD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %39) #5
  %40 = getelementptr inbounds i8, ptr %4, i64 16
  call void @_ZN6sparta6s_exprD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %40) #5
  %41 = getelementptr inbounds i8, ptr %4, i64 8
  call void @_ZN6sparta6s_exprD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %41) #5
  call void @_ZN6sparta6s_exprD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #5
  br label %.loopexit

.loopexit:                                        ; preds = %34, %.loopexit.loopexit, %.thread
  %.pn = phi { ptr, i32 } [ %13, %.thread ], [ %38, %.loopexit.loopexit ], [ %33, %34 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #5
  br label %42

42:                                               ; preds = %.loopexit, %30
  %.pn.pn = phi { ptr, i32 } [ %.pn, %.loopexit ], [ %31, %30 ]
  call void @_ZNSt6vectorIN6sparta6s_exprESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #5
  resume { ptr, i32 } %.pn.pn
}

; Function Attrs: mustprogress uwtable
declare hidden ptr @"_ZSt9transformIN9__gnu_cxx17__normal_iteratorIPK14PointsToActionSt6vectorIS2_SaIS2_EEEESt20back_insert_iteratorIS5_IN6sparta6s_exprESaISB_EEEZNK23PointsToMethodSemantics9to_s_exprEvE3$_0ET0_T_SI_SH_T1_"(ptr, ptr, ptr) local_unnamed_addr #3

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 = { 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 nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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, !7, i64 0}
!6 = !{!"_ZTS23PointsToMethodSemantics", !7, i64 0, !10, i64 8, !11, i64 16, !12, i64 24}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTS10MethodKind", !8, i64 0}
!11 = !{!"long", !8, i64 0}
!12 = !{!"_ZTSSt6vectorI14PointsToActionSaIS0_EE", !13, i64 0}
!13 = !{!"_ZTSSt12_Vector_baseI14PointsToActionSaIS0_EE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseI14PointsToActionSaIS0_EE12_Vector_implE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseI14PointsToActionSaIS0_EE17_Vector_impl_dataE", !7, i64 0, !7, i64 8, !7, i64 16}
!16 = !{!6, !10, i64 8}
!17 = !{!6, !11, i64 16}


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