; LLVM IR from facebook/redex :: service/escape-analysis (LocalPointersAnalysis)

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

%"struct.local_pointers::EscapeSummary" = type { %class.UnorderedSet.88, %"class.sparta::SetAbstractDomain.110" }
%class.UnorderedSet.88 = type { %"class.std::unordered_set.90" }
%"class.std::unordered_set.90" = type { %"class.std::_Hashtable.91" }
%"class.std::_Hashtable.91" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"class.sparta::SetAbstractDomain.110" = type { %"class.sparta::PowersetAbstractDomain.111" }
%"class.sparta::PowersetAbstractDomain.111" = type { %"class.sparta::AbstractDomainScaffolding.112" }
%"class.sparta::AbstractDomainScaffolding.112" = type { i32, %"class.sparta::set_impl::SetValue.117" }
%"class.sparta::set_impl::SetValue.117" = type { %"class.sparta::PatriciaTreeSet.121" }
%"class.sparta::PatriciaTreeSet.121" = type { %"class.sparta::pt_core::PatriciaTreeCore.124" }
%"class.sparta::pt_core::PatriciaTreeCore.124" = type { %"class.boost::intrusive_ptr.125" }
%"class.boost::intrusive_ptr.125" = type { ptr }
%"class.sparta::s_expr" = type { %"class.boost::intrusive_ptr.413" }
%"class.boost::intrusive_ptr.413" = type { ptr }
%"struct.std::pair.404" = type <{ %"class.UnorderedSet<unsigned short>::FixedIterator", i8, [7 x i8] }>
%"class.UnorderedSet<unsigned short>::FixedIterator" = type { %"struct.std::__detail::_Node_iterator.406" }
%"struct.std::__detail::_Node_iterator.406" = type { %"struct.std::__detail::_Node_iterator_base.407" }
%"struct.std::__detail::_Node_iterator_base.407" = type { ptr }

@.str.12 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [98 x i8], align 1
@__PRETTY_FUNCTION__._ZN14local_pointers13EscapeSummary11from_s_exprERKN6sparta6s_exprE = external hidden unnamed_addr constant [88 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [33 x i8], align 1

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZN6sparta17SetAbstractDomainINS_15PatriciaTreeSetItEEEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #1 align 2

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN14local_pointers13EscapeSummary11from_s_exprERKN6sparta6s_exprE(ptr dead_on_unwind noalias writable sret(%"struct.local_pointers::EscapeSummary") align 8 %0, ptr noundef nonnull align 8 dereferenceable(8) %1) #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i1, align 1
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca %"class.sparta::s_expr", align 8
  %9 = alloca i64, align 8
  %10 = alloca i32, align 4
  %11 = alloca %"class.sparta::s_expr", align 8
  %12 = alloca %"struct.std::pair.404", align 8
  %13 = alloca %"class.sparta::s_expr", align 8
  %14 = alloca ptr, align 8
  %15 = alloca %"class.sparta::SetAbstractDomain.110", align 8
  %16 = alloca i64, align 8
  %17 = alloca i16, align 2
  %18 = alloca %"class.sparta::s_expr", align 8
  store ptr %0, ptr %3, align 8
  store ptr %1, ptr %4, align 8, !tbaa !5
  store i1 false, ptr %5, align 1
  call void @_ZN14local_pointers13EscapeSummaryC2Ev(ptr noundef nonnull align 8 dereferenceable(72) %0)
  %19 = load ptr, ptr %4, align 8, !tbaa !5
  %20 = invoke noundef zeroext i1 @_ZNK6sparta6s_expr7is_listEv(ptr noundef nonnull align 8 dereferenceable(8) %19)
          to label %21 unwind label %30

21:                                               ; preds = %2
  br i1 %20, label %22, label %28

22:                                               ; preds = %21
  %23 = load ptr, ptr %4, align 8, !tbaa !5
  %24 = invoke noundef i64 @_ZNK6sparta6s_expr4sizeEv(ptr noundef nonnull align 8 dereferenceable(8) %23)
          to label %25 unwind label %30

25:                                               ; preds = %22
  %26 = icmp eq i64 %24, 2
  br i1 %26, label %27, label %28

27:                                               ; preds = %25
  br label %35

28:                                               ; preds = %25, %21
  invoke void (ptr, ptr, i32, ptr, i32, ptr, ...) @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef @.str.14, ptr noundef @.str.15, i32 noundef 600, ptr noundef @__PRETTY_FUNCTION__._ZN14local_pointers13EscapeSummary11from_s_exprERKN6sparta6s_exprE, i32 noundef 2, ptr noundef @.str.16) #5
          to label %29 unwind label %30

29:                                               ; preds = %28
  unreachable

30:                                               ; preds = %28, %22, %2
  %31 = landingpad { ptr, i32 }
          cleanup
  %32 = extractvalue { ptr, i32 } %31, 0
  store ptr %32, ptr %6, align 8
  %33 = extractvalue { ptr, i32 } %31, 1
  store i32 %33, ptr %7, align 4
  br label %181

34:                                               ; No predecessors!
  br label %35

35:                                               ; preds = %34, %27
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %36 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZNK6sparta6s_exprixEm(ptr dead_on_unwind writable sret(%"class.sparta::s_expr") align 8 %8, ptr noundef nonnull align 8 dereferenceable(8) %36, i64 noundef 0)
          to label %37 unwind label %43

37:                                               ; preds = %35
  %38 = invoke noundef zeroext i1 @_ZNK6sparta6s_expr7is_listEv(ptr noundef nonnull align 8 dereferenceable(8) %8)
          to label %39 unwind label %47

39:                                               ; preds = %37
  br i1 %38, label %40, label %41

40:                                               ; preds = %39
  br label %52

41:                                               ; preds = %39
  invoke void (ptr, ptr, i32, ptr, i32, ptr, ...) @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef @.str.17, ptr noundef @.str.15, i32 noundef 602, ptr noundef @__PRETTY_FUNCTION__._ZN14local_pointers13EscapeSummary11from_s_exprERKN6sparta6s_exprE, i32 noundef 2, ptr noundef @.str.16) #5
          to label %42 unwind label %47

42:                                               ; preds = %41
  unreachable

43:                                               ; preds = %35
  %44 = landingpad { ptr, i32 }
          cleanup
  %45 = extractvalue { ptr, i32 } %44, 0
  store ptr %45, ptr %6, align 8
  %46 = extractvalue { ptr, i32 } %44, 1
  store i32 %46, ptr %7, align 4
  br label %178

47:                                               ; preds = %41, %37
  %48 = landingpad { ptr, i32 }
          cleanup
  %49 = extractvalue { ptr, i32 } %48, 0
  store ptr %49, ptr %6, align 8
  %50 = extractvalue { ptr, i32 } %48, 1
  store i32 %50, ptr %7, align 4
  br label %177

51:                                               ; No predecessors!
  br label %52

52:                                               ; preds = %51, %40
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  store i64 0, ptr %9, align 8, !tbaa !9
  br label %53

53:                                               ; preds = %75, %52
  %54 = load i64, ptr %9, align 8, !tbaa !9
  %55 = invoke noundef i64 @_ZNK6sparta6s_expr4sizeEv(ptr noundef nonnull align 8 dereferenceable(8) %8)
          to label %56 unwind label %59

56:                                               ; preds = %53
  %57 = icmp ult i64 %54, %55
  br i1 %57, label %63, label %58

58:                                               ; preds = %56
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  br label %88

59:                                               ; preds = %53
  %60 = landingpad { ptr, i32 }
          cleanup
  %61 = extractvalue { ptr, i32 } %60, 0
  store ptr %61, ptr %6, align 8
  %62 = extractvalue { ptr, i32 } %60, 1
  store i32 %62, ptr %7, align 4
  br label %87

63:                                               ; preds = %56
  %64 = getelementptr inbounds %"struct.local_pointers::EscapeSummary", ptr %0, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %65 = load i64, ptr %9, align 8, !tbaa !9
  invoke void @_ZNK6sparta6s_exprixEm(ptr dead_on_unwind writable sret(%"class.sparta::s_expr") align 8 %11, ptr noundef nonnull align 8 dereferenceable(8) %8, i64 noundef %65)
          to label %66 unwind label %78

66:                                               ; preds = %63
  %67 = invoke noundef i32 @_ZNK6sparta6s_expr9get_int32Ev(ptr noundef nonnull align 8 dereferenceable(8) %11)
          to label %68 unwind label %82

68:                                               ; preds = %66
  store i32 %67, ptr %10, align 4, !tbaa !11
  %69 = invoke { ptr, i8 } @_ZN12UnorderedSetItSt4hashItESt8equal_toItEE7emplaceIJiEEESt4pairINS4_13FixedIteratorEbEDpOT_(ptr noundef nonnull align 8 dereferenceable(56) %64, ptr noundef nonnull align 4 dereferenceable(4) %10)
          to label %70 unwind label %82

70:                                               ; preds = %68
  %71 = getelementptr inbounds { ptr, i8 }, ptr %12, i32 0, i32 0
  %72 = extractvalue { ptr, i8 } %69, 0
  store ptr %72, ptr %71, align 8
  %73 = getelementptr inbounds { ptr, i8 }, ptr %12, i32 0, i32 1
  %74 = extractvalue { ptr, i8 } %69, 1
  store i8 %74, ptr %73, align 8
  call void @_ZN6sparta6s_exprD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  br label %75

75:                                               ; preds = %70
  %76 = load i64, ptr %9, align 8, !tbaa !9
  %77 = add i64 %76, 1
  store i64 %77, ptr %9, align 8, !tbaa !9
  br label %53, !llvm.loop !13

78:                                               ; preds = %63
  %79 = landingpad { ptr, i32 }
          cleanup
  %80 = extractvalue { ptr, i32 } %79, 0
  store ptr %80, ptr %6, align 8
  %81 = extractvalue { ptr, i32 } %79, 1
  store i32 %81, ptr %7, align 4
  br label %86

82:                                               ; preds = %68, %66
  %83 = landingpad { ptr, i32 }
          cleanup
  %84 = extractvalue { ptr, i32 } %83, 0
  store ptr %84, ptr %6, align 8
  %85 = extractvalue { ptr, i32 } %83, 1
  store i32 %85, ptr %7, align 4
  call void @_ZN6sparta6s_exprD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #6
  br label %86

86:                                               ; preds = %82, %78
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  br label %87

87:                                               ; preds = %86, %59
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  br label %177

88:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %89 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZNK6sparta6s_exprixEm(ptr dead_on_unwind writable sret(%"class.sparta::s_expr") align 8 %13, ptr noundef nonnull align 8 dereferenceable(8) %89, i64 noundef 1)
          to label %90 unwind label %102

90:                                               ; preds = %88
  %91 = invoke noundef zeroext i1 @_ZNK6sparta6s_expr9is_stringEv(ptr noundef nonnull align 8 dereferenceable(8) %13)
          to label %92 unwind label %106

92:                                               ; preds = %90
  br i1 %91, label %93, label %126

93:                                               ; preds = %92
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %94 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNK6sparta6s_expr10get_stringB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(8) %13)
          to label %95 unwind label %110

95:                                               ; preds = %93
  store ptr %94, ptr %14, align 8, !tbaa !5
  %96 = load ptr, ptr %14, align 8, !tbaa !5
  %97 = invoke noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %96, ptr noundef @.str.12)
          to label %98 unwind label %110

98:                                               ; preds = %95
  br i1 %97, label %99, label %114

99:                                               ; preds = %98
  %100 = getelementptr inbounds %"struct.local_pointers::EscapeSummary", ptr %0, i32 0, i32 1
  invoke void @_ZN6sparta25AbstractDomainScaffoldingINS_8set_impl8SetValueINS_15PatriciaTreeSetItEEEENS_17SetAbstractDomainIS4_EEE10set_to_topEv(ptr noundef nonnull align 8 dereferenceable(16) %100)
          to label %101 unwind label %110

101:                                              ; preds = %99
  br label %125

102:                                              ; preds = %88
  %103 = landingpad { ptr, i32 }
          cleanup
  %104 = extractvalue { ptr, i32 } %103, 0
  store ptr %104, ptr %6, align 8
  %105 = extractvalue { ptr, i32 } %103, 1
  store i32 %105, ptr %7, align 4
  br label %176

106:                                              ; preds = %130, %126, %90
  %107 = landingpad { ptr, i32 }
          cleanup
  %108 = extractvalue { ptr, i32 } %107, 0
  store ptr %108, ptr %6, align 8
  %109 = extractvalue { ptr, i32 } %107, 1
  store i32 %109, ptr %7, align 4
  br label %175

110:                                              ; preds = %122, %119, %114, %99, %95, %93
  %111 = landingpad { ptr, i32 }
          cleanup
  %112 = extractvalue { ptr, i32 } %111, 0
  store ptr %112, ptr %6, align 8
  %113 = extractvalue { ptr, i32 } %111, 1
  store i32 %113, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  br label %175

114:                                              ; preds = %98
  %115 = load ptr, ptr %14, align 8, !tbaa !5
  %116 = invoke noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %115, ptr noundef @.str.13)
          to label %117 unwind label %110

117:                                              ; preds = %114
  br i1 %116, label %118, label %119

118:                                              ; preds = %117
  br label %122

119:                                              ; preds = %117
  invoke void (ptr, ptr, i32, ptr, i32, ptr, ...) @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef @.str.18, ptr noundef @.str.15, i32 noundef 612, ptr noundef @__PRETTY_FUNCTION__._ZN14local_pointers13EscapeSummary11from_s_exprERKN6sparta6s_exprE, i32 noundef 2, ptr noundef @.str.16) #5
          to label %120 unwind label %110

120:                                              ; preds = %119
  unreachable

121:                                              ; No predecessors!
  br label %122

122:                                              ; preds = %121, %118
  %123 = getelementptr inbounds %"struct.local_pointers::EscapeSummary", ptr %0, i32 0, i32 1
  invoke void @_ZN6sparta25AbstractDomainScaffoldingINS_8set_impl8SetValueINS_15PatriciaTreeSetItEEEENS_17SetAbstractDomainIS4_EEE13set_to_bottomEv(ptr noundef nonnull align 8 dereferenceable(16) %123)
          to label %124 unwind label %110

124:                                              ; preds = %122
  br label %125

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

126:                                              ; preds = %92
  %127 = invoke noundef zeroext i1 @_ZNK6sparta6s_expr7is_listEv(ptr noundef nonnull align 8 dereferenceable(8) %13)
          to label %128 unwind label %106

128:                                              ; preds = %126
  br i1 %127, label %129, label %130

129:                                              ; preds = %128
  br label %133

130:                                              ; preds = %128
  invoke void (ptr, ptr, i32, ptr, i32, ptr, ...) @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef @.str.19, ptr noundef @.str.15, i32 noundef 616, ptr noundef @__PRETTY_FUNCTION__._ZN14local_pointers13EscapeSummary11from_s_exprERKN6sparta6s_exprE, i32 noundef 2, ptr noundef @.str.16) #5
          to label %131 unwind label %106

131:                                              ; preds = %130
  unreachable

132:                                              ; No predecessors!
  br label %133

133:                                              ; preds = %132, %129
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #6
  invoke void @_ZN6sparta17SetAbstractDomainINS_15PatriciaTreeSetItEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %15)
          to label %134 unwind label %143

134:                                              ; preds = %133
  %135 = getelementptr inbounds %"struct.local_pointers::EscapeSummary", ptr %0, i32 0, i32 1
  %136 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN6sparta17SetAbstractDomainINS_15PatriciaTreeSetItEEEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(16) %135, ptr noundef nonnull align 8 dereferenceable(16) %15) #6
  call void @_ZN6sparta17SetAbstractDomainINS_15PatriciaTreeSetItEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  store i64 0, ptr %16, align 8, !tbaa !9
  br label %137

137:                                              ; preds = %159, %134
  %138 = load i64, ptr %16, align 8, !tbaa !9
  %139 = invoke noundef i64 @_ZNK6sparta6s_expr4sizeEv(ptr noundef nonnull align 8 dereferenceable(8) %13)
          to label %140 unwind label %147

140:                                              ; preds = %137
  %141 = icmp ult i64 %138, %139
  br i1 %141, label %151, label %142

142:                                              ; preds = %140
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  br label %172

143:                                              ; preds = %133
  %144 = landingpad { ptr, i32 }
          cleanup
  %145 = extractvalue { ptr, i32 } %144, 0
  store ptr %145, ptr %6, align 8
  %146 = extractvalue { ptr, i32 } %144, 1
  store i32 %146, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #6
  br label %175

147:                                              ; preds = %137
  %148 = landingpad { ptr, i32 }
          cleanup
  %149 = extractvalue { ptr, i32 } %148, 0
  store ptr %149, ptr %6, align 8
  %150 = extractvalue { ptr, i32 } %148, 1
  store i32 %150, ptr %7, align 4
  br label %171

151:                                              ; preds = %140
  %152 = getelementptr inbounds %"struct.local_pointers::EscapeSummary", ptr %0, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 2, ptr %17) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  %153 = load i64, ptr %16, align 8, !tbaa !9
  invoke void @_ZNK6sparta6s_exprixEm(ptr dead_on_unwind writable sret(%"class.sparta::s_expr") align 8 %18, ptr noundef nonnull align 8 dereferenceable(8) %13, i64 noundef %153)
          to label %154 unwind label %162

154:                                              ; preds = %151
  %155 = invoke noundef i32 @_ZNK6sparta6s_expr9get_int32Ev(ptr noundef nonnull align 8 dereferenceable(8) %18)
          to label %156 unwind label %166

156:                                              ; preds = %154
  %157 = trunc i32 %155 to i16
  store i16 %157, ptr %17, align 2, !tbaa !15
  invoke void @_ZN6sparta22PowersetAbstractDomainItNS_8set_impl8SetValueINS_15PatriciaTreeSetItEEEERKS4_NS_17SetAbstractDomainIS4_EEE3addEOt(ptr noundef nonnull align 8 dereferenceable(16) %152, ptr noundef nonnull align 2 dereferenceable(2) %17)
          to label %158 unwind label %166

158:                                              ; preds = %156
  call void @_ZN6sparta6s_exprD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 2, ptr %17) #6
  br label %159

159:                                              ; preds = %158
  %160 = load i64, ptr %16, align 8, !tbaa !9
  %161 = add i64 %160, 1
  store i64 %161, ptr %16, align 8, !tbaa !9
  br label %137, !llvm.loop !17

162:                                              ; preds = %151
  %163 = landingpad { ptr, i32 }
          cleanup
  %164 = extractvalue { ptr, i32 } %163, 0
  store ptr %164, ptr %6, align 8
  %165 = extractvalue { ptr, i32 } %163, 1
  store i32 %165, ptr %7, align 4
  br label %170

166:                                              ; preds = %156, %154
  %167 = landingpad { ptr, i32 }
          cleanup
  %168 = extractvalue { ptr, i32 } %167, 0
  store ptr %168, ptr %6, align 8
  %169 = extractvalue { ptr, i32 } %167, 1
  store i32 %169, ptr %7, align 4
  call void @_ZN6sparta6s_exprD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %18) #6
  br label %170

170:                                              ; preds = %166, %162
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 2, ptr %17) #6
  br label %171

171:                                              ; preds = %170, %147
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  br label %175

172:                                              ; preds = %142
  br label %173

173:                                              ; preds = %172, %125
  store i1 true, ptr %5, align 1
  call void @_ZN6sparta6s_exprD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @_ZN6sparta6s_exprD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  %174 = load i1, ptr %5, align 1
  br i1 %174, label %180, label %179

175:                                              ; preds = %171, %143, %110, %106
  call void @_ZN6sparta6s_exprD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #6
  br label %176

176:                                              ; preds = %175, %102
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  br label %177

177:                                              ; preds = %176, %87, %47
  call void @_ZN6sparta6s_exprD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #6
  br label %178

178:                                              ; preds = %177, %43
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  br label %181

179:                                              ; preds = %173
  call void @_ZN14local_pointers13EscapeSummaryD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %0) #6
  br label %180

180:                                              ; preds = %179, %173
  ret void

181:                                              ; preds = %178, %30
  call void @_ZN14local_pointers13EscapeSummaryD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %0) #6
  br label %182

182:                                              ; preds = %181
  %183 = load ptr, ptr %6, align 8
  %184 = load i32, ptr %7, align 4
  %185 = insertvalue { ptr, i32 } poison, ptr %183, 0
  %186 = insertvalue { ptr, i32 } %185, i32 %184, 1
  resume { ptr, i32 } %186
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK6sparta6s_expr7is_listEv(ptr noundef nonnull align 8 dereferenceable(8)) #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: noreturn
declare void @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, ...) #4

; 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: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZN12UnorderedSetItSt4hashItESt8equal_toItEE7emplaceIJiEEESt4pairINS4_13FixedIteratorEbEDpOT_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 4 dereferenceable(4)) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZNK6sparta6s_expr9get_int32Ev(ptr noundef nonnull align 8 dereferenceable(8)) #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)) #1 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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) #1

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 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 = { noreturn "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 = { noreturn }
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, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!16, !16, i64 0}
!16 = !{!"short", !7, i64 0}
!17 = distinct !{!17, !14}


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

%"struct.local_pointers::EscapeSummary" = type { %class.UnorderedSet.88, %"class.sparta::SetAbstractDomain.110" }
%class.UnorderedSet.88 = type { %"class.std::unordered_set.90" }
%"class.std::unordered_set.90" = type { %"class.std::_Hashtable.91" }
%"class.std::_Hashtable.91" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"class.sparta::SetAbstractDomain.110" = type { %"class.sparta::PowersetAbstractDomain.111" }
%"class.sparta::PowersetAbstractDomain.111" = type { %"class.sparta::AbstractDomainScaffolding.112" }
%"class.sparta::AbstractDomainScaffolding.112" = type { i32, %"class.sparta::set_impl::SetValue.117" }
%"class.sparta::set_impl::SetValue.117" = type { %"class.sparta::PatriciaTreeSet.121" }
%"class.sparta::PatriciaTreeSet.121" = type { %"class.sparta::pt_core::PatriciaTreeCore.124" }
%"class.sparta::pt_core::PatriciaTreeCore.124" = type { %"class.boost::intrusive_ptr.125" }
%"class.boost::intrusive_ptr.125" = type { ptr }
%"class.sparta::s_expr" = type { %"class.boost::intrusive_ptr.413" }
%"class.boost::intrusive_ptr.413" = type { ptr }

@.str.12 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [98 x i8], align 1
@__PRETTY_FUNCTION__._ZN14local_pointers13EscapeSummary11from_s_exprERKN6sparta6s_exprE = external hidden unnamed_addr constant [88 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [33 x i8], align 1

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZN6sparta17SetAbstractDomainINS_15PatriciaTreeSetItEEEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN14local_pointers13EscapeSummary11from_s_exprERKN6sparta6s_exprE(ptr dead_on_unwind noalias nonnull writable sret(%"struct.local_pointers::EscapeSummary") align 8 %0, ptr noundef nonnull align 8 dereferenceable(8) %1) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.sparta::s_expr", align 8
  %4 = alloca i32, align 4
  %5 = alloca %"class.sparta::s_expr", align 8
  %6 = alloca %"class.sparta::s_expr", align 8
  %7 = alloca %"class.sparta::SetAbstractDomain.110", align 8
  %8 = alloca i16, align 2
  %9 = alloca %"class.sparta::s_expr", align 8
  tail call void @_ZN14local_pointers13EscapeSummaryC2Ev(ptr noundef nonnull align 8 dereferenceable(72) %0)
  %10 = tail call noundef zeroext i1 @_ZNK6sparta6s_expr7is_listEv(ptr noundef nonnull align 8 dereferenceable(8) %1)
  br i1 %10, label %11, label %15

11:                                               ; preds = %2
  %12 = invoke noundef i64 @_ZNK6sparta6s_expr4sizeEv(ptr noundef nonnull align 8 dereferenceable(8) %1)
          to label %13 unwind label %17

13:                                               ; preds = %11
  %14 = icmp eq i64 %12, 2
  br i1 %14, label %19, label %15

15:                                               ; preds = %13, %2
  invoke void (ptr, ptr, i32, ptr, i32, ptr, ...) @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef nonnull @.str.14, ptr noundef nonnull @.str.15, i32 noundef 600, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN14local_pointers13EscapeSummary11from_s_exprERKN6sparta6s_exprE, i32 noundef 2, ptr noundef nonnull @.str.16) #5
          to label %16 unwind label %17

16:                                               ; preds = %15
  unreachable

17:                                               ; preds = %15, %11
  %18 = landingpad { ptr, i32 }
          cleanup
  br label %98

19:                                               ; preds = %13
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #6
  invoke void @_ZNK6sparta6s_exprixEm(ptr dead_on_unwind nonnull writable sret(%"class.sparta::s_expr") align 8 %3, ptr noundef nonnull align 8 dereferenceable(8) %1, i64 noundef 0)
          to label %20 unwind label %24

20:                                               ; preds = %19
  %21 = call noundef zeroext i1 @_ZNK6sparta6s_expr7is_listEv(ptr noundef nonnull align 8 dereferenceable(8) %3)
  br i1 %21, label %.preheader, label %22

22:                                               ; preds = %20
  invoke void (ptr, ptr, i32, ptr, i32, ptr, ...) @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef nonnull @.str.17, ptr noundef nonnull @.str.15, i32 noundef 602, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN14local_pointers13EscapeSummary11from_s_exprERKN6sparta6s_exprE, i32 noundef 2, ptr noundef nonnull @.str.16) #5
          to label %23 unwind label %26

23:                                               ; preds = %22
  unreachable

24:                                               ; preds = %19
  %25 = landingpad { ptr, i32 }
          cleanup
  br label %97

26:                                               ; preds = %22
  %27 = landingpad { ptr, i32 }
          cleanup
  br label %96

.preheader:                                       ; preds = %20, %39
  %.024 = phi i64 [ %40, %39 ], [ 0, %20 ]
  %28 = invoke noundef i64 @_ZNK6sparta6s_expr4sizeEv(ptr noundef nonnull align 8 dereferenceable(8) %3)
          to label %29 unwind label %32

29:                                               ; preds = %.preheader
  %30 = icmp ult i64 %.024, %28
  br i1 %30, label %34, label %31

31:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #6
  invoke void @_ZNK6sparta6s_exprixEm(ptr dead_on_unwind nonnull writable sret(%"class.sparta::s_expr") align 8 %6, ptr noundef nonnull align 8 dereferenceable(8) %1, i64 noundef 1)
          to label %46 unwind label %54

32:                                               ; preds = %.preheader
  %33 = landingpad { ptr, i32 }
          cleanup
  br label %96

34:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #6
  invoke void @_ZNK6sparta6s_exprixEm(ptr dead_on_unwind nonnull writable sret(%"class.sparta::s_expr") align 8 %5, ptr noundef nonnull align 8 dereferenceable(8) %3, i64 noundef %.024)
          to label %35 unwind label %41

35:                                               ; preds = %34
  %36 = invoke noundef i32 @_ZNK6sparta6s_expr9get_int32Ev(ptr noundef nonnull align 8 dereferenceable(8) %5)
          to label %37 unwind label %43

37:                                               ; preds = %35
  store i32 %36, ptr %4, align 4, !tbaa !5
  %38 = invoke { ptr, i8 } @_ZN12UnorderedSetItSt4hashItESt8equal_toItEE7emplaceIJiEEESt4pairINS4_13FixedIteratorEbEDpOT_(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef nonnull align 4 dereferenceable(4) %4)
          to label %39 unwind label %43

39:                                               ; preds = %37
  call void @_ZN6sparta6s_exprD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #6
  %40 = add nuw i64 %.024, 1
  br label %.preheader, !llvm.loop !9

41:                                               ; preds = %34
  %42 = landingpad { ptr, i32 }
          cleanup
  br label %45

43:                                               ; preds = %37, %35
  %44 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6sparta6s_exprD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #6
  br label %45

45:                                               ; preds = %43, %41
  %.pn30 = phi { ptr, i32 } [ %44, %43 ], [ %42, %41 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #6
  br label %96

46:                                               ; preds = %31
  %47 = call noundef zeroext i1 @_ZNK6sparta6s_expr9is_stringEv(ptr noundef nonnull align 8 dereferenceable(8) %6)
  br i1 %47, label %48, label %66

48:                                               ; preds = %46
  %49 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNK6sparta6s_expr10get_stringB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(8) %6)
          to label %50 unwind label %58

50:                                               ; preds = %48
  %51 = call noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %49, ptr noundef nonnull @.str.12)
  br i1 %51, label %52, label %60

52:                                               ; preds = %50
  %53 = getelementptr inbounds i8, ptr %0, i64 56
  invoke void @_ZN6sparta25AbstractDomainScaffoldingINS_8set_impl8SetValueINS_15PatriciaTreeSetItEEEENS_17SetAbstractDomainIS4_EEE10set_to_topEv(ptr noundef nonnull align 8 dereferenceable(16) %53)
          to label %.loopexit unwind label %58

54:                                               ; preds = %31
  %55 = landingpad { ptr, i32 }
          cleanup
  br label %95

56:                                               ; preds = %68
  %57 = landingpad { ptr, i32 }
          cleanup
  br label %94

58:                                               ; preds = %64, %62, %52, %48
  %59 = landingpad { ptr, i32 }
          cleanup
  br label %94

60:                                               ; preds = %50
  %61 = call noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %49, ptr noundef nonnull @.str.13)
  br i1 %61, label %64, label %62

62:                                               ; preds = %60
  invoke void (ptr, ptr, i32, ptr, i32, ptr, ...) @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef nonnull @.str.18, ptr noundef nonnull @.str.15, i32 noundef 612, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN14local_pointers13EscapeSummary11from_s_exprERKN6sparta6s_exprE, i32 noundef 2, ptr noundef nonnull @.str.16) #5
          to label %63 unwind label %58

63:                                               ; preds = %62
  unreachable

64:                                               ; preds = %60
  %65 = getelementptr inbounds i8, ptr %0, i64 56
  invoke void @_ZN6sparta25AbstractDomainScaffoldingINS_8set_impl8SetValueINS_15PatriciaTreeSetItEEEENS_17SetAbstractDomainIS4_EEE13set_to_bottomEv(ptr noundef nonnull align 8 dereferenceable(16) %65)
          to label %.loopexit unwind label %58

66:                                               ; preds = %46
  %67 = call noundef zeroext i1 @_ZNK6sparta6s_expr7is_listEv(ptr noundef nonnull align 8 dereferenceable(8) %6)
  br i1 %67, label %70, label %68

68:                                               ; preds = %66
  invoke void (ptr, ptr, i32, ptr, i32, ptr, ...) @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef nonnull @.str.19, ptr noundef nonnull @.str.15, i32 noundef 616, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN14local_pointers13EscapeSummary11from_s_exprERKN6sparta6s_exprE, i32 noundef 2, ptr noundef nonnull @.str.16) #5
          to label %69 unwind label %56

69:                                               ; preds = %68
  unreachable

70:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #6
  invoke void @_ZN6sparta17SetAbstractDomainINS_15PatriciaTreeSetItEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7)
          to label %71 unwind label %78

71:                                               ; preds = %70
  %72 = getelementptr inbounds i8, ptr %0, i64 56
  %73 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN6sparta17SetAbstractDomainINS_15PatriciaTreeSetItEEEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(16) %72, ptr noundef nonnull align 8 dereferenceable(16) %7) #6
  call void @_ZN6sparta17SetAbstractDomainINS_15PatriciaTreeSetItEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #6
  br label %74

74:                                               ; preds = %87, %71
  %.0 = phi i64 [ 0, %71 ], [ %88, %87 ]
  %75 = invoke noundef i64 @_ZNK6sparta6s_expr4sizeEv(ptr noundef nonnull align 8 dereferenceable(8) %6)
          to label %76 unwind label %80

76:                                               ; preds = %74
  %77 = icmp ult i64 %.0, %75
  br i1 %77, label %82, label %.loopexit

78:                                               ; preds = %70
  %79 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #6
  br label %94

80:                                               ; preds = %74
  %81 = landingpad { ptr, i32 }
          cleanup
  br label %94

82:                                               ; preds = %76
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #6
  invoke void @_ZNK6sparta6s_exprixEm(ptr dead_on_unwind nonnull writable sret(%"class.sparta::s_expr") align 8 %9, ptr noundef nonnull align 8 dereferenceable(8) %6, i64 noundef %.0)
          to label %83 unwind label %89

83:                                               ; preds = %82
  %84 = invoke noundef i32 @_ZNK6sparta6s_expr9get_int32Ev(ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %85 unwind label %91

85:                                               ; preds = %83
  %86 = trunc i32 %84 to i16
  store i16 %86, ptr %8, align 2, !tbaa !11
  invoke void @_ZN6sparta22PowersetAbstractDomainItNS_8set_impl8SetValueINS_15PatriciaTreeSetItEEEERKS4_NS_17SetAbstractDomainIS4_EEE3addEOt(ptr noundef nonnull align 8 dereferenceable(16) %72, ptr noundef nonnull align 2 dereferenceable(2) %8)
          to label %87 unwind label %91

87:                                               ; preds = %85
  call void @_ZN6sparta6s_exprD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %8) #6
  %88 = add nuw i64 %.0, 1
  br label %74, !llvm.loop !13

89:                                               ; preds = %82
  %90 = landingpad { ptr, i32 }
          cleanup
  br label %93

91:                                               ; preds = %85, %83
  %92 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6sparta6s_exprD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  br label %93

93:                                               ; preds = %91, %89
  %.pn = phi { ptr, i32 } [ %92, %91 ], [ %90, %89 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %8) #6
  br label %94

.loopexit:                                        ; preds = %76, %52, %64
  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 @_ZN6sparta6s_exprD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  ret void

94:                                               ; preds = %80, %93, %78, %58, %56
  %.pn27 = phi { ptr, i32 } [ %59, %58 ], [ %79, %78 ], [ %57, %56 ], [ %.pn, %93 ], [ %81, %80 ]
  call void @_ZN6sparta6s_exprD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  br label %95

95:                                               ; preds = %94, %54
  %.pn27.pn = phi { ptr, i32 } [ %.pn27, %94 ], [ %55, %54 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  br label %96

96:                                               ; preds = %32, %45, %95, %26
  %.pn30.pn.pn = phi { ptr, i32 } [ %.pn27.pn, %95 ], [ %27, %26 ], [ %.pn30, %45 ], [ %33, %32 ]
  call void @_ZN6sparta6s_exprD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #6
  br label %97

97:                                               ; preds = %96, %24
  %.pn30.pn.pn.pn = phi { ptr, i32 } [ %.pn30.pn.pn, %96 ], [ %25, %24 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  br label %98

98:                                               ; preds = %97, %17
  %.pn30.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn30.pn.pn.pn, %97 ], [ %18, %17 ]
  call void @_ZN14local_pointers13EscapeSummaryD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %0) #6
  resume { ptr, i32 } %.pn30.pn.pn.pn.pn
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK6sparta6s_expr7is_listEv(ptr noundef nonnull align 8 dereferenceable(8)) local_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: noreturn
declare void @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, ...) local_unnamed_addr #4

; 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: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZN12UnorderedSetItSt4hashItESt8equal_toItEE7emplaceIJiEEESt4pairINS4_13FixedIteratorEbEDpOT_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZNK6sparta6s_expr9get_int32Ev(ptr noundef nonnull align 8 dereferenceable(8)) 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 #1 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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) local_unnamed_addr #1

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 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 = { noreturn "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 = { noreturn }
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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !12, i64 0}
!12 = !{!"short", !7, i64 0}
!13 = distinct !{!13, !10}


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