; LLVM IR from facebook/redex :: libredex/PointsToSemantics.ll (ZNK14PointsToAction9to_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.boost::container::vec_iterator" = 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.std::initializer_list" = type { ptr, i64 }
%class.PointsToAction = type { %struct.PointsToOperation, %"class.boost::container::flat_map" }
%struct.PointsToOperation = type { i32, %union.anon.49 }
%union.anon.49 = type { ptr }
%"class.boost::container::flat_map" = type { %"class.boost::container::dtl::flat_tree" }
%"class.boost::container::dtl::flat_tree" = type { %"struct.boost::container::dtl::flat_tree<boost::container::dtl::pair<int, PointsToVariable>, boost::container::dtl::select1st<int>, std::less<int>, boost::container::new_allocator<boost::container::dtl::pair<int, PointsToVariable>>>::Data" }
%"struct.boost::container::dtl::flat_tree<boost::container::dtl::pair<int, PointsToVariable>, boost::container::dtl::select1st<int>, std::less<int>, boost::container::new_allocator<boost::container::dtl::pair<int, PointsToVariable>>>::Data" = type { %"class.boost::container::vector" }
%"class.boost::container::vector" = type { %"struct.boost::container::vector_alloc_holder" }
%"struct.boost::container::vector_alloc_holder" = type { ptr, i64, i64 }
%"struct.std::pair.59" = type { i32, %class.PointsToVariable }
%class.PointsToVariable = type { i32 }

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: mustprogress uwtable
declare dso_local void @_ZNK16PointsToVariable9to_s_exprEv(ptr dead_on_unwind noalias writable sret(%"class.sparta::s_expr") align 8, ptr noundef nonnull align 4 dereferenceable(4)) #1 align 2

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

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

; 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: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIN6sparta6s_exprESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8)) #1 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 #2 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 @_ZNK17PointsToOperation9to_s_exprEv(ptr dead_on_unwind noalias writable sret(%"class.sparta::s_expr") align 8, ptr noundef nonnull align 8 dereferenceable(16)) #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNK5boost9container8flat_mapIi16PointsToVariableSt4lessIiEvE5beginEv(ptr dead_on_unwind noalias writable sret(%"class.boost::container::vec_iterator") align 8, ptr noundef nonnull align 8 dereferenceable(24)) #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNK5boost9container8flat_mapIi16PointsToVariableSt4lessIiEvE3endEv(ptr dead_on_unwind noalias writable sret(%"class.boost::container::vec_iterator") align 8, ptr noundef nonnull align 8 dereferenceable(24)) #3 align 2

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK14PointsToAction9to_s_exprEv(ptr dead_on_unwind noalias writable sret(%"class.sparta::s_expr") align 8 %0, ptr noundef nonnull align 8 dereferenceable(40) %1) #1 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 ptr, align 8
  %7 = alloca %"class.boost::container::vec_iterator", align 8
  %8 = alloca %"class.boost::container::vec_iterator", align 8
  %9 = alloca ptr, align 8
  %10 = alloca %"class.sparta::s_expr", align 8
  %11 = alloca %"class.std::initializer_list", align 8
  %12 = alloca [2 x %"class.sparta::s_expr"], align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca %"class.std::initializer_list", align 8
  %17 = alloca [2 x %"class.sparta::s_expr"], align 8
  %18 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8
  store ptr %1, ptr %4, align 8, !tbaa !5
  %19 = 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
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %20 = getelementptr inbounds %class.PointsToAction, ptr %19, i32 0, i32 1
  store ptr %20, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %21 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZNK5boost9container8flat_mapIi16PointsToVariableSt4lessIiEvE5beginEv(ptr dead_on_unwind writable sret(%"class.boost::container::vec_iterator") align 8 %7, ptr noundef nonnull align 8 dereferenceable(24) %21) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %22 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZNK5boost9container8flat_mapIi16PointsToVariableSt4lessIiEvE3endEv(ptr dead_on_unwind writable sret(%"class.boost::container::vec_iterator") align 8 %8, ptr noundef nonnull align 8 dereferenceable(24) %22) #5
  br label %23

23:                                               ; preds = %51, %2
  %24 = call noundef zeroext i1 @_ZN5boost9containerneERKNS0_12vec_iteratorIPSt4pairIi16PointsToVariableELb1EEES8_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  br i1 %24, label %26, label %25

25:                                               ; preds = %23
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  br label %81

26:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %27 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK5boost9container12vec_iteratorIPSt4pairIi16PointsToVariableELb1EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  store ptr %27, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #5
  store ptr %12, ptr %13, align 8
  %28 = load ptr, ptr %9, align 8, !tbaa !5
  %29 = getelementptr inbounds %"struct.std::pair.59", ptr %28, i32 0, i32 0
  %30 = load i32, ptr %29, align 4, !tbaa !9
  invoke void @_ZN6sparta6s_exprC2Ei(ptr noundef nonnull align 8 dereferenceable(8) %12, i32 noundef %30)
          to label %31 unwind label %53

31:                                               ; preds = %26
  %32 = getelementptr inbounds %"class.sparta::s_expr", ptr %12, i64 1
  store ptr %32, ptr %13, align 8
  %33 = load ptr, ptr %9, align 8, !tbaa !5
  %34 = getelementptr inbounds %"struct.std::pair.59", ptr %33, i32 0, i32 1
  invoke void @_ZNK16PointsToVariable9to_s_exprEv(ptr dead_on_unwind writable sret(%"class.sparta::s_expr") align 8 %32, ptr noundef nonnull align 4 dereferenceable(4) %34)
          to label %35 unwind label %53

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

42:                                               ; preds = %35
  invoke void @_ZNSt6vectorIN6sparta6s_exprESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(8) %10)
          to label %43 unwind label %68

43:                                               ; preds = %42
  call void @_ZN6sparta6s_exprD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #5
  %44 = getelementptr inbounds [2 x %"class.sparta::s_expr"], ptr %12, i32 0, i32 0
  %45 = getelementptr inbounds %"class.sparta::s_expr", ptr %44, i64 2
  br label %46

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

50:                                               ; preds = %46
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  br label %51

51:                                               ; preds = %50
  %52 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN5boost9container12vec_iteratorIPSt4pairIi16PointsToVariableELb1EEppEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  br label %23

53:                                               ; preds = %31, %26
  %54 = landingpad { ptr, i32 }
          cleanup
  %55 = extractvalue { ptr, i32 } %54, 0
  store ptr %55, ptr %14, align 8
  %56 = extractvalue { ptr, i32 } %54, 1
  store i32 %56, ptr %15, align 4
  %57 = load ptr, ptr %13, align 8
  %58 = icmp eq ptr %12, %57
  br i1 %58, label %63, label %59

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

63:                                               ; preds = %59, %53
  br label %80

64:                                               ; preds = %35
  %65 = landingpad { ptr, i32 }
          cleanup
  %66 = extractvalue { ptr, i32 } %65, 0
  store ptr %66, ptr %14, align 8
  %67 = extractvalue { ptr, i32 } %65, 1
  store i32 %67, ptr %15, align 4
  br label %72

68:                                               ; preds = %42
  %69 = landingpad { ptr, i32 }
          cleanup
  %70 = extractvalue { ptr, i32 } %69, 0
  store ptr %70, ptr %14, align 8
  %71 = extractvalue { ptr, i32 } %69, 1
  store i32 %71, ptr %15, align 4
  call void @_ZN6sparta6s_exprD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #5
  br label %72

72:                                               ; preds = %68, %64
  %73 = getelementptr inbounds [2 x %"class.sparta::s_expr"], ptr %12, i32 0, i32 0
  %74 = getelementptr inbounds %"class.sparta::s_expr", ptr %73, i64 2
  br label %75

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

79:                                               ; preds = %75
  br label %80

80:                                               ; preds = %79, %63
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  br label %123

81:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #5
  store ptr %17, ptr %18, align 8
  %82 = getelementptr inbounds %class.PointsToAction, ptr %19, i32 0, i32 0
  invoke void @_ZNK17PointsToOperation9to_s_exprEv(ptr dead_on_unwind writable sret(%"class.sparta::s_expr") align 8 %17, ptr noundef nonnull align 8 dereferenceable(16) %82)
          to label %83 unwind label %100

83:                                               ; preds = %81
  %84 = getelementptr inbounds %"class.sparta::s_expr", ptr %17, i64 1
  store ptr %84, ptr %18, align 8
  invoke void @_ZN6sparta6s_exprC2ERKSt6vectorIS0_SaIS0_EE(ptr noundef nonnull align 8 dereferenceable(8) %84, ptr noundef nonnull align 8 dereferenceable(24) %5)
          to label %85 unwind label %100

85:                                               ; preds = %83
  %86 = getelementptr inbounds %"class.std::initializer_list", ptr %16, i32 0, i32 0
  store ptr %17, ptr %86, align 8, !tbaa !13
  %87 = getelementptr inbounds %"class.std::initializer_list", ptr %16, i32 0, i32 1
  store i64 2, ptr %87, align 8, !tbaa !16
  %88 = getelementptr inbounds { ptr, i64 }, ptr %16, i32 0, i32 0
  %89 = load ptr, ptr %88, align 8
  %90 = getelementptr inbounds { ptr, i64 }, ptr %16, i32 0, i32 1
  %91 = load i64, ptr %90, align 8
  invoke void @_ZN6sparta6s_exprC2ESt16initializer_listIS0_E(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr %89, i64 %91)
          to label %92 unwind label %111

92:                                               ; preds = %85
  %93 = getelementptr inbounds [2 x %"class.sparta::s_expr"], ptr %17, i32 0, i32 0
  %94 = getelementptr inbounds %"class.sparta::s_expr", ptr %93, i64 2
  br label %95

95:                                               ; preds = %95, %92
  %96 = phi ptr [ %94, %92 ], [ %97, %95 ]
  %97 = getelementptr inbounds %"class.sparta::s_expr", ptr %96, i64 -1
  call void @_ZN6sparta6s_exprD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %97) #5
  %98 = icmp eq ptr %97, %93
  br i1 %98, label %99, label %95

99:                                               ; preds = %95
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #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

100:                                              ; preds = %83, %81
  %101 = landingpad { ptr, i32 }
          cleanup
  %102 = extractvalue { ptr, i32 } %101, 0
  store ptr %102, ptr %14, align 8
  %103 = extractvalue { ptr, i32 } %101, 1
  store i32 %103, ptr %15, align 4
  %104 = load ptr, ptr %18, align 8
  %105 = icmp eq ptr %17, %104
  br i1 %105, label %110, label %106

106:                                              ; preds = %106, %100
  %107 = phi ptr [ %104, %100 ], [ %108, %106 ]
  %108 = getelementptr inbounds %"class.sparta::s_expr", ptr %107, i64 -1
  call void @_ZN6sparta6s_exprD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %108) #5
  %109 = icmp eq ptr %108, %17
  br i1 %109, label %110, label %106

110:                                              ; preds = %106, %100
  br label %122

111:                                              ; preds = %85
  %112 = landingpad { ptr, i32 }
          cleanup
  %113 = extractvalue { ptr, i32 } %112, 0
  store ptr %113, ptr %14, align 8
  %114 = extractvalue { ptr, i32 } %112, 1
  store i32 %114, ptr %15, align 4
  %115 = getelementptr inbounds [2 x %"class.sparta::s_expr"], ptr %17, i32 0, i32 0
  %116 = getelementptr inbounds %"class.sparta::s_expr", ptr %115, i64 2
  br label %117

117:                                              ; preds = %117, %111
  %118 = phi ptr [ %116, %111 ], [ %119, %117 ]
  %119 = getelementptr inbounds %"class.sparta::s_expr", ptr %118, i64 -1
  call void @_ZN6sparta6s_exprD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %119) #5
  %120 = icmp eq ptr %119, %115
  br i1 %120, label %121, label %117

121:                                              ; preds = %117
  br label %122

122:                                              ; preds = %121, %110
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #5
  br label %123

123:                                              ; preds = %122, %80
  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 %124

124:                                              ; preds = %123
  %125 = load ptr, ptr %14, align 8
  %126 = load i32, ptr %15, align 4
  %127 = insertvalue { ptr, i32 } poison, ptr %125, 0
  %128 = insertvalue { ptr, i32 } %127, i32 %126, 1
  resume { ptr, i32 } %128
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 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 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 #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, !11, i64 0}
!10 = !{!"_ZTSSt4pairIi16PointsToVariableE", !11, i64 0, !12, i64 4}
!11 = !{!"int", !7, i64 0}
!12 = !{!"_ZTS16PointsToVariable", !11, i64 0}
!13 = !{!14, !6, i64 0}
!14 = !{!"_ZTSSt16initializer_listIN6sparta6s_exprEE", !6, i64 0, !15, i64 8}
!15 = !{!"long", !7, i64 0}
!16 = !{!14, !15, 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.boost::container::vec_iterator" = 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: mustprogress uwtable
declare dso_local void @_ZNK16PointsToVariable9to_s_exprEv(ptr dead_on_unwind noalias writable sret(%"class.sparta::s_expr") align 8, ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1 align 2

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

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

; 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: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIN6sparta6s_exprESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 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 #2 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 @_ZNK17PointsToOperation9to_s_exprEv(ptr dead_on_unwind noalias writable sret(%"class.sparta::s_expr") align 8, ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNK5boost9container8flat_mapIi16PointsToVariableSt4lessIiEvE5beginEv(ptr dead_on_unwind noalias writable sret(%"class.boost::container::vec_iterator") align 8, ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNK5boost9container8flat_mapIi16PointsToVariableSt4lessIiEvE3endEv(ptr dead_on_unwind noalias writable sret(%"class.boost::container::vec_iterator") align 8, ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 align 2

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK14PointsToAction9to_s_exprEv(ptr dead_on_unwind noalias writable sret(%"class.sparta::s_expr") align 8 %0, ptr noundef nonnull align 8 dereferenceable(40) %1) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.std::vector", align 8
  %4 = alloca %"class.boost::container::vec_iterator", align 8
  %5 = alloca %"class.boost::container::vec_iterator", align 8
  %6 = alloca %"class.sparta::s_expr", align 8
  %7 = alloca [2 x %"class.sparta::s_expr"], align 8
  %8 = alloca [2 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
  %9 = getelementptr inbounds i8, ptr %1, i64 16
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #5
  call void @_ZNK5boost9container8flat_mapIi16PointsToVariableSt4lessIiEvE5beginEv(ptr dead_on_unwind nonnull writable sret(%"class.boost::container::vec_iterator") align 8 %4, ptr noundef nonnull align 8 dereferenceable(24) %9) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  call void @_ZNK5boost9container8flat_mapIi16PointsToVariableSt4lessIiEvE3endEv(ptr dead_on_unwind nonnull writable sret(%"class.boost::container::vec_iterator") align 8 %5, ptr noundef nonnull align 8 dereferenceable(24) %9) #5
  %10 = call noundef zeroext i1 @_ZN5boost9containerneERKNS0_12vec_iteratorIPSt4pairIi16PointsToVariableELb1EEES8_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  br i1 %10, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %2
  %11 = getelementptr inbounds i8, ptr %7, i64 8
  %12 = getelementptr inbounds i8, ptr %7, i64 8
  br label %14

._crit_edge:                                      ; preds = %22, %2
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #5
  invoke void @_ZNK17PointsToOperation9to_s_exprEv(ptr dead_on_unwind nonnull writable sret(%"class.sparta::s_expr") align 8 %8, ptr noundef nonnull align 8 dereferenceable(16) %1)
          to label %31 unwind label %.thread24

.thread24:                                        ; preds = %._crit_edge
  %13 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit27

14:                                               ; preds = %.lr.ph, %22
  %15 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK5boost9container12vec_iteratorIPSt4pairIi16PointsToVariableELb1EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #5
  %16 = load i32, ptr %15, align 4, !tbaa !5
  invoke void @_ZN6sparta6s_exprC2Ei(ptr noundef nonnull align 8 dereferenceable(8) %7, i32 noundef %16)
          to label %18 unwind label %.thread

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

18:                                               ; preds = %14
  %19 = getelementptr inbounds i8, ptr %15, i64 4
  invoke void @_ZNK16PointsToVariable9to_s_exprEv(ptr dead_on_unwind nonnull writable sret(%"class.sparta::s_expr") align 8 %11, ptr noundef nonnull align 4 dereferenceable(4) %19)
          to label %20 unwind label %.loopexit.loopexit32

20:                                               ; preds = %18
  invoke void @_ZN6sparta6s_exprC2ESt16initializer_listIS0_E(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr nonnull %7, i64 2)
          to label %21 unwind label %26

21:                                               ; preds = %20
  invoke void @_ZNSt6vectorIN6sparta6s_exprESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(8) %6)
          to label %22 unwind label %28

22:                                               ; preds = %21
  call void @_ZN6sparta6s_exprD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  call void @_ZN6sparta6s_exprD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #5
  call void @_ZN6sparta6s_exprD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  %23 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN5boost9container12vec_iteratorIPSt4pairIi16PointsToVariableELb1EEppEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #5
  %24 = call noundef zeroext i1 @_ZN5boost9containerneERKNS0_12vec_iteratorIPSt4pairIi16PointsToVariableELb1EEES8_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  br i1 %24, label %14, label %._crit_edge

.loopexit.loopexit32:                             ; preds = %18
  %25 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6sparta6s_exprD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  br label %.loopexit

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

28:                                               ; preds = %21
  %29 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6sparta6s_exprD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  br label %.loopexit.loopexit

.loopexit.loopexit:                               ; preds = %28, %26
  %.pn19 = phi { ptr, i32 } [ %29, %28 ], [ %27, %26 ]
  %30 = getelementptr inbounds i8, ptr %7, i64 8
  call void @_ZN6sparta6s_exprD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %30) #5
  call void @_ZN6sparta6s_exprD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  br label %.loopexit

.loopexit:                                        ; preds = %.loopexit.loopexit32, %.loopexit.loopexit, %.thread
  %.pn19.pn = phi { ptr, i32 } [ %17, %.thread ], [ %.pn19, %.loopexit.loopexit ], [ %25, %.loopexit.loopexit32 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  br label %39

31:                                               ; preds = %._crit_edge
  %32 = getelementptr inbounds i8, ptr %8, i64 8
  invoke void @_ZN6sparta6s_exprC2ERKSt6vectorIS0_SaIS0_EE(ptr noundef nonnull align 8 dereferenceable(8) %32, ptr noundef nonnull align 8 dereferenceable(24) %3)
          to label %33 unwind label %.loopexit27.loopexit31

33:                                               ; preds = %31
  invoke void @_ZN6sparta6s_exprC2ESt16initializer_listIS0_E(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr nonnull %8, i64 2)
          to label %34 unwind label %.loopexit27.loopexit

34:                                               ; preds = %33
  %35 = getelementptr inbounds i8, ptr %8, i64 8
  call void @_ZN6sparta6s_exprD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %35) #5
  call void @_ZN6sparta6s_exprD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #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

.loopexit27.loopexit31:                           ; preds = %31
  %36 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6sparta6s_exprD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  br label %.loopexit27

.loopexit27.loopexit:                             ; preds = %33
  %37 = landingpad { ptr, i32 }
          cleanup
  %38 = getelementptr inbounds i8, ptr %8, i64 8
  call void @_ZN6sparta6s_exprD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %38) #5
  call void @_ZN6sparta6s_exprD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  br label %.loopexit27

.loopexit27:                                      ; preds = %.loopexit27.loopexit31, %.loopexit27.loopexit, %.thread24
  %.pn = phi { ptr, i32 } [ %13, %.thread24 ], [ %37, %.loopexit27.loopexit ], [ %36, %.loopexit27.loopexit31 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #5
  br label %39

39:                                               ; preds = %.loopexit27, %.loopexit
  %.pn19.pn.pn = phi { ptr, i32 } [ %.pn19.pn, %.loopexit ], [ %.pn, %.loopexit27 ]
  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 } %.pn19.pn.pn
}

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 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 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 #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 = !{!"_ZTSSt4pairIi16PointsToVariableE", !7, i64 0, !10, i64 4}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTS16PointsToVariable", !7, i64 0}


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