; 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"

%"class.sparta::SetAbstractDomain" = type { %"class.sparta::PowersetAbstractDomain" }
%"class.sparta::PowersetAbstractDomain" = type { %"class.sparta::AbstractDomainScaffolding" }
%"class.sparta::AbstractDomainScaffolding" = type { i32, %"class.sparta::set_impl::SetValue" }
%"class.sparta::set_impl::SetValue" = type { %"class.sparta::PatriciaTreeSet" }
%"class.sparta::PatriciaTreeSet" = type { %"class.sparta::pt_core::PatriciaTreeCore" }
%"class.sparta::pt_core::PatriciaTreeCore" = type { %"class.boost::intrusive_ptr" }
%"class.boost::intrusive_ptr" = type { 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: mustprogress nounwind uwtable
declare dso_local noundef zeroext i16 @_ZNK13IRInstruction6opcodeEv(ptr noundef nonnull align 8 dereferenceable(32)) #1 align 2

declare noundef i32 @_ZNK13IRInstruction3srcEt(ptr noundef nonnull align 8 dereferenceable(32), i16 noundef zeroext) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN14local_pointers11escape_destEPK13IRInstructionjPNS_20EnvironmentWithStoreE(ptr noundef, i32 noundef, ptr noundef) #3

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN14local_pointers27default_instruction_handlerEPK13IRInstructionPNS_20EnvironmentWithStoreE(ptr noundef %0, ptr noundef %1) #3 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i16, align 2
  %6 = alloca %"class.sparta::SetAbstractDomain", align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca %"class.sparta::SetAbstractDomain", align 8
  %10 = alloca %"class.sparta::SetAbstractDomain", align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 2, ptr %5) #6
  %11 = load ptr, ptr %3, align 8, !tbaa !5
  %12 = call noundef zeroext i16 @_ZNK13IRInstruction6opcodeEv(ptr noundef nonnull align 8 dereferenceable(32) %11)
  store i16 %12, ptr %5, align 2, !tbaa !9
  %13 = load i16, ptr %5, align 2, !tbaa !9
  %14 = call noundef zeroext i1 @_ZN6opcode12is_an_invokeE8IROpcode(i16 noundef zeroext %13)
  br i1 %14, label %15, label %18

15:                                               ; preds = %2
  %16 = load ptr, ptr %3, align 8, !tbaa !5
  %17 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN12_GLOBAL__N_122analyze_generic_invokeEPK13IRInstructionPN14local_pointers20EnvironmentWithStoreE(ptr noundef %16, ptr noundef %17)
  br label %91

18:                                               ; preds = %2
  %19 = load i16, ptr %5, align 2, !tbaa !9
  %20 = call noundef zeroext i1 @_ZN6opcode9is_a_moveE8IROpcode(i16 noundef zeroext %19)
  br i1 %20, label %21, label %37

21:                                               ; preds = %18
  %22 = load ptr, ptr %4, align 8, !tbaa !5
  %23 = load ptr, ptr %3, align 8, !tbaa !5
  %24 = call noundef i32 @_ZNK13IRInstruction4destEv(ptr noundef nonnull align 8 dereferenceable(32) %23)
  %25 = load ptr, ptr %4, align 8, !tbaa !5
  %26 = load ptr, ptr %3, align 8, !tbaa !5
  %27 = call noundef i32 @_ZNK13IRInstruction3srcEt(ptr noundef nonnull align 8 dereferenceable(32) %26, i16 noundef zeroext 0)
  %28 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK14local_pointers20EnvironmentWithStore12get_pointersEj(ptr noundef nonnull align 8 dereferenceable(8) %25, i32 noundef %27)
  call void @_ZN6sparta17SetAbstractDomainINS_15PatriciaTreeSetIPK13IRInstructionEEEC2ERKS6_(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(16) %28)
  %29 = load ptr, ptr %22, align 8, !tbaa !11
  %30 = getelementptr inbounds ptr, ptr %29, i64 4
  %31 = load ptr, ptr %30, align 8
  invoke void %31(ptr noundef nonnull align 8 dereferenceable(8) %22, i32 noundef %24, ptr noundef %6)
          to label %32 unwind label %33

32:                                               ; preds = %21
  call void @_ZN6sparta17SetAbstractDomainINS_15PatriciaTreeSetIPK13IRInstructionEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #6
  br label %90

33:                                               ; preds = %21
  %34 = landingpad { ptr, i32 }
          cleanup
  %35 = extractvalue { ptr, i32 } %34, 0
  store ptr %35, ptr %7, align 8
  %36 = extractvalue { ptr, i32 } %34, 1
  store i32 %36, ptr %8, align 4
  call void @_ZN6sparta17SetAbstractDomainINS_15PatriciaTreeSetIPK13IRInstructionEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #6
  br label %92

37:                                               ; preds = %18
  %38 = load i16, ptr %5, align 2, !tbaa !9
  %39 = zext i16 %38 to i32
  %40 = icmp eq i32 %39, 18
  br i1 %40, label %41, label %55

41:                                               ; preds = %37
  %42 = load ptr, ptr %4, align 8, !tbaa !5
  %43 = load ptr, ptr %4, align 8, !tbaa !5
  %44 = load ptr, ptr %3, align 8, !tbaa !5
  %45 = call noundef i32 @_ZNK13IRInstruction3srcEt(ptr noundef nonnull align 8 dereferenceable(32) %44, i16 noundef zeroext 0)
  %46 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK14local_pointers20EnvironmentWithStore12get_pointersEj(ptr noundef nonnull align 8 dereferenceable(8) %43, i32 noundef %45)
  call void @_ZN6sparta17SetAbstractDomainINS_15PatriciaTreeSetIPK13IRInstructionEEEC2ERKS6_(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(16) %46)
  %47 = load ptr, ptr %42, align 8, !tbaa !11
  %48 = getelementptr inbounds ptr, ptr %47, i64 4
  %49 = load ptr, ptr %48, align 8
  invoke void %49(ptr noundef nonnull align 8 dereferenceable(8) %42, i32 noundef -2, ptr noundef %9)
          to label %50 unwind label %51

50:                                               ; preds = %41
  call void @_ZN6sparta17SetAbstractDomainINS_15PatriciaTreeSetIPK13IRInstructionEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #6
  br label %89

51:                                               ; preds = %41
  %52 = landingpad { ptr, i32 }
          cleanup
  %53 = extractvalue { ptr, i32 } %52, 0
  store ptr %53, ptr %7, align 8
  %54 = extractvalue { ptr, i32 } %52, 1
  store i32 %54, ptr %8, align 4
  call void @_ZN6sparta17SetAbstractDomainINS_15PatriciaTreeSetIPK13IRInstructionEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #6
  br label %92

55:                                               ; preds = %37
  %56 = load i16, ptr %5, align 2, !tbaa !9
  %57 = call noundef zeroext i1 @_ZN6opcode18is_move_result_anyE8IROpcode(i16 noundef zeroext %56)
  br i1 %57, label %58, label %72

58:                                               ; preds = %55
  %59 = load ptr, ptr %4, align 8, !tbaa !5
  %60 = load ptr, ptr %3, align 8, !tbaa !5
  %61 = call noundef i32 @_ZNK13IRInstruction4destEv(ptr noundef nonnull align 8 dereferenceable(32) %60)
  %62 = load ptr, ptr %4, align 8, !tbaa !5
  %63 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK14local_pointers20EnvironmentWithStore12get_pointersEj(ptr noundef nonnull align 8 dereferenceable(8) %62, i32 noundef -2)
  call void @_ZN6sparta17SetAbstractDomainINS_15PatriciaTreeSetIPK13IRInstructionEEEC2ERKS6_(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 8 dereferenceable(16) %63)
  %64 = load ptr, ptr %59, align 8, !tbaa !11
  %65 = getelementptr inbounds ptr, ptr %64, i64 4
  %66 = load ptr, ptr %65, align 8
  invoke void %66(ptr noundef nonnull align 8 dereferenceable(8) %59, i32 noundef %61, ptr noundef %10)
          to label %67 unwind label %68

67:                                               ; preds = %58
  call void @_ZN6sparta17SetAbstractDomainINS_15PatriciaTreeSetIPK13IRInstructionEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #6
  br label %88

68:                                               ; preds = %58
  %69 = landingpad { ptr, i32 }
          cleanup
  %70 = extractvalue { ptr, i32 } %69, 0
  store ptr %70, ptr %7, align 8
  %71 = extractvalue { ptr, i32 } %69, 1
  store i32 %71, ptr %8, align 4
  call void @_ZN6sparta17SetAbstractDomainINS_15PatriciaTreeSetIPK13IRInstructionEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #6
  br label %92

72:                                               ; preds = %55
  %73 = load ptr, ptr %3, align 8, !tbaa !5
  %74 = call noundef zeroext i1 @_ZNK13IRInstruction8has_destEv(ptr noundef nonnull align 8 dereferenceable(32) %73)
  br i1 %74, label %75, label %80

75:                                               ; preds = %72
  %76 = load ptr, ptr %3, align 8, !tbaa !5
  %77 = load ptr, ptr %3, align 8, !tbaa !5
  %78 = call noundef i32 @_ZNK13IRInstruction4destEv(ptr noundef nonnull align 8 dereferenceable(32) %77)
  %79 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN14local_pointers11escape_destEPK13IRInstructionjPNS_20EnvironmentWithStoreE(ptr noundef %76, i32 noundef %78, ptr noundef %79)
  br label %87

80:                                               ; preds = %72
  %81 = load ptr, ptr %3, align 8, !tbaa !5
  %82 = call noundef zeroext i1 @_ZNK13IRInstruction19has_move_result_anyEv(ptr noundef nonnull align 8 dereferenceable(32) %81)
  br i1 %82, label %83, label %86

83:                                               ; preds = %80
  %84 = load ptr, ptr %3, align 8, !tbaa !5
  %85 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN14local_pointers11escape_destEPK13IRInstructionjPNS_20EnvironmentWithStoreE(ptr noundef %84, i32 noundef -2, ptr noundef %85)
  br label %86

86:                                               ; preds = %83, %80
  br label %87

87:                                               ; preds = %86, %75
  br label %88

88:                                               ; preds = %87, %67
  br label %89

89:                                               ; preds = %88, %50
  br label %90

90:                                               ; preds = %89, %32
  br label %91

91:                                               ; preds = %90, %15
  call void @llvm.lifetime.end.p0(i64 2, ptr %5) #6
  ret void

92:                                               ; preds = %68, %51, %33
  call void @llvm.lifetime.end.p0(i64 2, ptr %5) #6
  br label %93

93:                                               ; preds = %92
  %94 = load ptr, ptr %7, align 8
  %95 = load i32, ptr %8, align 4
  %96 = insertvalue { ptr, i32 } poison, ptr %94, 0
  %97 = insertvalue { ptr, i32 } %96, i32 %95, 1
  resume { ptr, i32 } %97
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN6opcode12is_an_invokeE8IROpcode(i16 noundef zeroext) #4

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN12_GLOBAL__N_122analyze_generic_invokeEPK13IRInstructionPN14local_pointers20EnvironmentWithStoreE(ptr noundef, ptr noundef) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN6opcode9is_a_moveE8IROpcode(i16 noundef zeroext) #4

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

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

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

declare noundef zeroext i1 @_ZN6opcode18is_move_result_anyE8IROpcode(i16 noundef zeroext) #2

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "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 = { 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 #5 = { 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 #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 = !{!"_ZTS8IROpcode", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"vtable pointer", !8, i64 0}


; 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::SetAbstractDomain" = type { %"class.sparta::PowersetAbstractDomain" }
%"class.sparta::PowersetAbstractDomain" = type { %"class.sparta::AbstractDomainScaffolding" }
%"class.sparta::AbstractDomainScaffolding" = type { i32, %"class.sparta::set_impl::SetValue" }
%"class.sparta::set_impl::SetValue" = type { %"class.sparta::PatriciaTreeSet" }
%"class.sparta::PatriciaTreeSet" = type { %"class.sparta::pt_core::PatriciaTreeCore" }
%"class.sparta::pt_core::PatriciaTreeCore" = type { %"class.boost::intrusive_ptr" }
%"class.boost::intrusive_ptr" = type { ptr }

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i16 @_ZNK13IRInstruction6opcodeEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #0 align 2

declare noundef i32 @_ZNK13IRInstruction3srcEt(ptr noundef nonnull align 8 dereferenceable(32), i16 noundef zeroext) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN14local_pointers11escape_destEPK13IRInstructionjPNS_20EnvironmentWithStoreE(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN14local_pointers27default_instruction_handlerEPK13IRInstructionPNS_20EnvironmentWithStoreE(ptr noundef nonnull %0, ptr noundef %1) local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.sparta::SetAbstractDomain", align 8
  %4 = alloca %"class.sparta::SetAbstractDomain", align 8
  %5 = alloca %"class.sparta::SetAbstractDomain", align 8
  %6 = tail call noundef zeroext i16 @_ZNK13IRInstruction6opcodeEv(ptr noundef nonnull align 8 dereferenceable(32) %0)
  %7 = tail call noundef zeroext i1 @_ZN6opcode12is_an_invokeE8IROpcode(i16 noundef zeroext %6)
  br i1 %7, label %8, label %9

8:                                                ; preds = %2
  tail call void @_ZN12_GLOBAL__N_122analyze_generic_invokeEPK13IRInstructionPN14local_pointers20EnvironmentWithStoreE(ptr noundef nonnull %0, ptr noundef %1)
  br label %50

9:                                                ; preds = %2
  %10 = tail call noundef zeroext i1 @_ZN6opcode9is_a_moveE8IROpcode(i16 noundef zeroext %6)
  br i1 %10, label %11, label %21

11:                                               ; preds = %9
  %12 = tail call noundef i32 @_ZNK13IRInstruction4destEv(ptr noundef nonnull align 8 dereferenceable(32) %0)
  %13 = tail call noundef i32 @_ZNK13IRInstruction3srcEt(ptr noundef nonnull align 8 dereferenceable(32) %0, i16 noundef zeroext 0)
  %14 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK14local_pointers20EnvironmentWithStore12get_pointersEj(ptr noundef nonnull align 8 dereferenceable(8) %1, i32 noundef %13)
  call void @_ZN6sparta17SetAbstractDomainINS_15PatriciaTreeSetIPK13IRInstructionEEEC2ERKS6_(ptr noundef nonnull align 8 dereferenceable(16) %3, ptr noundef nonnull align 8 dereferenceable(16) %14)
  %15 = load ptr, ptr %1, align 8, !tbaa !5
  %16 = getelementptr inbounds i8, ptr %15, i64 32
  %17 = load ptr, ptr %16, align 8
  invoke void %17(ptr noundef nonnull align 8 dereferenceable(8) %1, i32 noundef %12, ptr noundef nonnull %3)
          to label %18 unwind label %19

18:                                               ; preds = %11
  call void @_ZN6sparta17SetAbstractDomainINS_15PatriciaTreeSetIPK13IRInstructionEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %3) #5
  br label %50

19:                                               ; preds = %11
  %20 = landingpad { ptr, i32 }
          cleanup
  br label %51

21:                                               ; preds = %9
  %22 = icmp eq i16 %6, 18
  br i1 %22, label %23, label %32

23:                                               ; preds = %21
  %24 = tail call noundef i32 @_ZNK13IRInstruction3srcEt(ptr noundef nonnull align 8 dereferenceable(32) %0, i16 noundef zeroext 0)
  %25 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK14local_pointers20EnvironmentWithStore12get_pointersEj(ptr noundef nonnull align 8 dereferenceable(8) %1, i32 noundef %24)
  call void @_ZN6sparta17SetAbstractDomainINS_15PatriciaTreeSetIPK13IRInstructionEEEC2ERKS6_(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull align 8 dereferenceable(16) %25)
  %26 = load ptr, ptr %1, align 8, !tbaa !5
  %27 = getelementptr inbounds i8, ptr %26, i64 32
  %28 = load ptr, ptr %27, align 8
  invoke void %28(ptr noundef nonnull align 8 dereferenceable(8) %1, i32 noundef -2, ptr noundef nonnull %4)
          to label %29 unwind label %30

29:                                               ; preds = %23
  call void @_ZN6sparta17SetAbstractDomainINS_15PatriciaTreeSetIPK13IRInstructionEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #5
  br label %50

30:                                               ; preds = %23
  %31 = landingpad { ptr, i32 }
          cleanup
  br label %51

32:                                               ; preds = %21
  %33 = tail call noundef zeroext i1 @_ZN6opcode18is_move_result_anyE8IROpcode(i16 noundef zeroext %6)
  br i1 %33, label %34, label %43

34:                                               ; preds = %32
  %35 = tail call noundef i32 @_ZNK13IRInstruction4destEv(ptr noundef nonnull align 8 dereferenceable(32) %0)
  %36 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK14local_pointers20EnvironmentWithStore12get_pointersEj(ptr noundef nonnull align 8 dereferenceable(8) %1, i32 noundef -2)
  call void @_ZN6sparta17SetAbstractDomainINS_15PatriciaTreeSetIPK13IRInstructionEEEC2ERKS6_(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull align 8 dereferenceable(16) %36)
  %37 = load ptr, ptr %1, align 8, !tbaa !5
  %38 = getelementptr inbounds i8, ptr %37, i64 32
  %39 = load ptr, ptr %38, align 8
  invoke void %39(ptr noundef nonnull align 8 dereferenceable(8) %1, i32 noundef %35, ptr noundef nonnull %5)
          to label %40 unwind label %41

40:                                               ; preds = %34
  call void @_ZN6sparta17SetAbstractDomainINS_15PatriciaTreeSetIPK13IRInstructionEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #5
  br label %50

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

43:                                               ; preds = %32
  %44 = tail call noundef zeroext i1 @_ZNK13IRInstruction8has_destEv(ptr noundef nonnull align 8 dereferenceable(32) %0)
  br i1 %44, label %45, label %47

45:                                               ; preds = %43
  %46 = tail call noundef i32 @_ZNK13IRInstruction4destEv(ptr noundef nonnull align 8 dereferenceable(32) %0)
  tail call void @_ZN14local_pointers11escape_destEPK13IRInstructionjPNS_20EnvironmentWithStoreE(ptr noundef nonnull %0, i32 noundef %46, ptr noundef %1)
  br label %50

47:                                               ; preds = %43
  %48 = tail call noundef zeroext i1 @_ZNK13IRInstruction19has_move_result_anyEv(ptr noundef nonnull align 8 dereferenceable(32) %0)
  br i1 %48, label %49, label %50

49:                                               ; preds = %47
  tail call void @_ZN14local_pointers11escape_destEPK13IRInstructionjPNS_20EnvironmentWithStoreE(ptr noundef nonnull %0, i32 noundef -2, ptr noundef %1)
  br label %50

50:                                               ; preds = %18, %40, %47, %49, %45, %29, %8
  ret void

51:                                               ; preds = %41, %30, %19
  %.sink = phi ptr [ %5, %41 ], [ %4, %30 ], [ %3, %19 ]
  %.pn = phi { ptr, i32 } [ %42, %41 ], [ %31, %30 ], [ %20, %19 ]
  call void @_ZN6sparta17SetAbstractDomainINS_15PatriciaTreeSetIPK13IRInstructionEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %.sink) #5
  resume { ptr, i32 } %.pn
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN6opcode12is_an_invokeE8IROpcode(i16 noundef zeroext) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN12_GLOBAL__N_122analyze_generic_invokeEPK13IRInstructionPN14local_pointers20EnvironmentWithStoreE(ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN6opcode9is_a_moveE8IROpcode(i16 noundef zeroext) local_unnamed_addr #3

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

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

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

declare noundef zeroext i1 @_ZN6opcode18is_move_result_anyE8IROpcode(i16 noundef zeroext) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK13IRInstruction8has_destEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK13IRInstruction19has_move_result_anyEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2 align 2

attributes #0 = { 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 #1 = { "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 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 = { 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 #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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}


; Effective O3 passes: GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass