; LLVM IR from facebook/redex :: service/constant-propagation (ConstantPropagationAnalysis)

; 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.SignedConstantDomain = type { %"struct.SignedConstantDomain::Bounds" }
%"struct.SignedConstantDomain::Bounds" = type { i8, i64, i64 }
%"class.boost::optional.55" = type { %"class.boost::optional_detail::tc_optional_base.56" }
%"class.boost::optional_detail::tc_optional_base.56" = type { i8, i64 }
%"class.sparta::DisjointUnionAbstractDomain" = type { %"class.boost::variant" }
%"class.boost::variant" = type { i32, [4 x i8], %"class.boost::aligned_storage" }
%"class.boost::aligned_storage" = type { %"struct.boost::detail::aligned_storage::aligned_storage_imp" }
%"struct.boost::detail::aligned_storage::aligned_storage_imp" = type { %"union.boost::detail::aligned_storage::aligned_storage_imp<24, 8>::data_t" }
%"union.boost::detail::aligned_storage::aligned_storage_imp<24, 8>::data_t" = type { [24 x i8] }
%class.ConstantArrayDomain = type { %"class.sparta::ReducedProductAbstractDomain.59" }
%"class.sparta::ReducedProductAbstractDomain.59" = type { %"class.sparta::DirectProductAbstractDomain.60" }
%"class.sparta::DirectProductAbstractDomain.60" = type { %"class.std::tuple.63" }
%"class.std::tuple.63" = type { %"struct.std::_Tuple_impl.64" }
%"struct.std::_Tuple_impl.64" = type { %"struct.std::_Tuple_impl.65", %"struct.std::_Head_base.67" }
%"struct.std::_Tuple_impl.65" = type { %"struct.std::_Head_base.66" }
%"struct.std::_Head_base.66" = type { %"class.sparta::AbstractEnvironment.37" }
%"class.sparta::AbstractEnvironment.37" = type { %"class.sparta::AbstractDomainScaffolding.38" }
%"class.sparta::AbstractDomainScaffolding.38" = type { i32, %"class.sparta::environment_impl::MapValue.43" }
%"class.sparta::environment_impl::MapValue.43" = type { %"class.sparta::PatriciaTreeMap.46" }
%"class.sparta::PatriciaTreeMap.46" = type { %"class.sparta::pt_core::PatriciaTreeCore.51" }
%"class.sparta::pt_core::PatriciaTreeCore.51" = type { %"class.boost::intrusive_ptr.52" }
%"class.boost::intrusive_ptr.52" = type { ptr }
%"struct.std::_Head_base.67" = type { %"class.sparta::ConstantAbstractDomain" }
%"class.sparta::ConstantAbstractDomain" = type { %"class.sparta::acd_impl::ConstantAbstractValueRepr" }
%"class.sparta::acd_impl::ConstantAbstractValueRepr" = type { i32, 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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN20constant_propagation18LocalArrayAnalyzer17analyze_new_arrayEPK13IRInstructionP19ConstantEnvironment(ptr noundef %0, ptr noundef %1) #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca i1, align 1
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca %class.SignedConstantDomain, align 8
  %7 = alloca %"class.boost::optional.55", align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca %"class.sparta::DisjointUnionAbstractDomain", align 8
  %12 = alloca %class.ConstantArrayDomain, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %6) #5
  %13 = load ptr, ptr %5, align 8, !tbaa !5
  %14 = load ptr, ptr %4, align 8, !tbaa !5
  %15 = call noundef i32 @_ZNK13IRInstruction3srcEt(ptr noundef nonnull align 8 dereferenceable(32) %14, i16 noundef zeroext 0)
  call void @_ZNK19ConstantEnvironment3getI20SignedConstantDomainEET_j(ptr dead_on_unwind writable sret(%class.SignedConstantDomain) align 8 %6, ptr noundef nonnull align 8 dereferenceable(48) %13, i32 noundef %15)
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #5
  %16 = invoke { i8, i64 } @_ZNK20SignedConstantDomain12get_constantEv(ptr noundef nonnull align 8 dereferenceable(24) %6)
          to label %17 unwind label %25

17:                                               ; preds = %2
  %18 = getelementptr inbounds %"class.boost::optional.55", ptr %7, i32 0, i32 0
  %19 = getelementptr inbounds { i8, i64 }, ptr %18, i32 0, i32 0
  %20 = extractvalue { i8, i64 } %16, 0
  store i8 %20, ptr %19, align 8
  %21 = getelementptr inbounds { i8, i64 }, ptr %18, i32 0, i32 1
  %22 = extractvalue { i8, i64 } %16, 1
  store i64 %22, ptr %21, align 8
  %23 = call noundef zeroext i1 @_ZNK5boost8optionalIlEntEv(ptr noundef nonnull align 8 dereferenceable(16) %7) #5
  br i1 %23, label %24, label %29

24:                                               ; preds = %17
  store i1 false, ptr %3, align 1
  store i32 1, ptr %10, align 4
  br label %53

25:                                               ; preds = %2
  %26 = landingpad { ptr, i32 }
          cleanup
  %27 = extractvalue { ptr, i32 } %26, 0
  store ptr %27, ptr %8, align 8
  %28 = extractvalue { ptr, i32 } %26, 1
  store i32 %28, ptr %9, align 4
  br label %55

29:                                               ; preds = %17
  %30 = load ptr, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %11) #5
  %31 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNR5boost8optionalIlEdeEv(ptr noundef nonnull align 8 dereferenceable(16) %7)
          to label %32 unwind label %39

32:                                               ; preds = %29
  %33 = load i64, ptr %31, align 8, !tbaa !9
  %34 = trunc i64 %33 to i32
  invoke void @_ZN19ConstantArrayDomainI37DisjointUnionWithSignedConstantDomainI17is_object_visitorJN6sparta22ConstantAbstractDomainIPK8DexFieldEENS2_17SetAbstractDomainINS2_7HashSetIlSt4hashIlESt8equal_toIlEEEEENS8_INS2_15PatriciaTreeSetIPK9DexStringEEEENS3_ISJ_EENS3_IPK7DexTypeEENS3_IiEE25ObjectWithImmutAttrDomain15NewObjectDomainNS3_IPK13IRInstructionEEEE25ConstantValueDefaultValueEC2Ej(ptr noundef nonnull align 8 dereferenceable(24) %12, i32 noundef %34)
          to label %35 unwind label %39

35:                                               ; preds = %32
  invoke void @_ZN6sparta27DisjointUnionAbstractDomainI19ConstantArrayDomainI37DisjointUnionWithSignedConstantDomainI17is_object_visitorJNS_22ConstantAbstractDomainIPK8DexFieldEENS_17SetAbstractDomainINS_7HashSetIlSt4hashIlESt8equal_toIlEEEEENS9_INS_15PatriciaTreeSetIPK9DexStringEEEENS4_ISK_EENS4_IPK7DexTypeEENS4_IiEE25ObjectWithImmutAttrDomain15NewObjectDomainNS4_IPK13IRInstructionEEEE25ConstantValueDefaultValueEJ12ObjectDomainISZ_EEEC2IS11_EET_(ptr noundef nonnull align 8 dereferenceable(32) %11, ptr noundef %12)
          to label %36 unwind label %43

36:                                               ; preds = %35
  %37 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN19ConstantEnvironment14new_heap_valueEjRKPK13IRInstructionRKN6sparta27DisjointUnionAbstractDomainI19ConstantArrayDomainI37DisjointUnionWithSignedConstantDomainI17is_object_visitorJNS5_22ConstantAbstractDomainIPK8DexFieldEENS5_17SetAbstractDomainINS5_7HashSetIlSt4hashIlESt8equal_toIlEEEEENSF_INS5_15PatriciaTreeSetIPK9DexStringEEEENSA_ISQ_EENSA_IPK7DexTypeEENSA_IiEE25ObjectWithImmutAttrDomain15NewObjectDomainNSA_IS2_EEEE25ConstantValueDefaultValueEJ12ObjectDomainIS12_EEEE(ptr noundef nonnull align 8 dereferenceable(48) %30, i32 noundef -2, ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(32) %11)
          to label %38 unwind label %47

38:                                               ; preds = %36
  call void @_ZN6sparta27DisjointUnionAbstractDomainI19ConstantArrayDomainI37DisjointUnionWithSignedConstantDomainI17is_object_visitorJNS_22ConstantAbstractDomainIPK8DexFieldEENS_17SetAbstractDomainINS_7HashSetIlSt4hashIlESt8equal_toIlEEEEENS9_INS_15PatriciaTreeSetIPK9DexStringEEEENS4_ISK_EENS4_IPK7DexTypeEENS4_IiEE25ObjectWithImmutAttrDomain15NewObjectDomainNS4_IPK13IRInstructionEEEE25ConstantValueDefaultValueEJ12ObjectDomainISZ_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #5
  call void @_ZN6sparta28ReducedProductAbstractDomainI19ConstantArrayDomainI37DisjointUnionWithSignedConstantDomainI17is_object_visitorJNS_22ConstantAbstractDomainIPK8DexFieldEENS_17SetAbstractDomainINS_7HashSetIlSt4hashIlESt8equal_toIlEEEEENS9_INS_15PatriciaTreeSetIPK9DexStringEEEENS4_ISK_EENS4_IPK7DexTypeEENS4_IiEE25ObjectWithImmutAttrDomain15NewObjectDomainNS4_IPK13IRInstructionEEEE25ConstantValueDefaultValueEJNS4_IjEENS_19AbstractEnvironmentINS_15PatriciaTreeMapIjSZ_NS_17TopValueInterfaceISZ_EEEEEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #5
  store i1 true, ptr %3, align 1
  store i32 1, ptr %10, align 4
  br label %53

39:                                               ; preds = %32, %29
  %40 = landingpad { ptr, i32 }
          cleanup
  %41 = extractvalue { ptr, i32 } %40, 0
  store ptr %41, ptr %8, align 8
  %42 = extractvalue { ptr, i32 } %40, 1
  store i32 %42, ptr %9, align 4
  br label %52

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

47:                                               ; preds = %36
  %48 = landingpad { ptr, i32 }
          cleanup
  %49 = extractvalue { ptr, i32 } %48, 0
  store ptr %49, ptr %8, align 8
  %50 = extractvalue { ptr, i32 } %48, 1
  store i32 %50, ptr %9, align 4
  call void @_ZN6sparta27DisjointUnionAbstractDomainI19ConstantArrayDomainI37DisjointUnionWithSignedConstantDomainI17is_object_visitorJNS_22ConstantAbstractDomainIPK8DexFieldEENS_17SetAbstractDomainINS_7HashSetIlSt4hashIlESt8equal_toIlEEEEENS9_INS_15PatriciaTreeSetIPK9DexStringEEEENS4_ISK_EENS4_IPK7DexTypeEENS4_IiEE25ObjectWithImmutAttrDomain15NewObjectDomainNS4_IPK13IRInstructionEEEE25ConstantValueDefaultValueEJ12ObjectDomainISZ_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #5
  br label %51

51:                                               ; preds = %47, %43
  call void @_ZN6sparta28ReducedProductAbstractDomainI19ConstantArrayDomainI37DisjointUnionWithSignedConstantDomainI17is_object_visitorJNS_22ConstantAbstractDomainIPK8DexFieldEENS_17SetAbstractDomainINS_7HashSetIlSt4hashIlESt8equal_toIlEEEEENS9_INS_15PatriciaTreeSetIPK9DexStringEEEENS4_ISK_EENS4_IPK7DexTypeEENS4_IiEE25ObjectWithImmutAttrDomain15NewObjectDomainNS4_IPK13IRInstructionEEEE25ConstantValueDefaultValueEJNS4_IjEENS_19AbstractEnvironmentINS_15PatriciaTreeMapIjSZ_NS_17TopValueInterfaceISZ_EEEEEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #5
  br label %52

52:                                               ; preds = %51, %39
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #5
  br label %55

53:                                               ; preds = %38, %24
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #5
  call void @_ZN6sparta14AbstractDomainI20SignedConstantDomainED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %6) #5
  %54 = load i1, ptr %3, align 1
  ret i1 %54

55:                                               ; preds = %52, %25
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #5
  call void @_ZN6sparta14AbstractDomainI20SignedConstantDomainED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %6) #5
  br label %56

56:                                               ; preds = %55
  %57 = load ptr, ptr %8, align 8
  %58 = load i32, ptr %9, align 4
  %59 = insertvalue { ptr, i32 } poison, ptr %57, 0
  %60 = insertvalue { ptr, i32 } %59, i32 %58, 1
  resume { ptr, i32 } %60
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK19ConstantEnvironment3getI20SignedConstantDomainEET_j(ptr dead_on_unwind noalias writable sret(%class.SignedConstantDomain) align 8, ptr noundef nonnull align 8 dereferenceable(48), i32 noundef) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { i8, i64 } @_ZNK20SignedConstantDomain12get_constantEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

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

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

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

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

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

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 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, !10, i64 0}
!10 = !{!"long", !7, 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.SignedConstantDomain = type { %"struct.SignedConstantDomain::Bounds" }
%"struct.SignedConstantDomain::Bounds" = type { i8, i64, i64 }
%"class.boost::optional.55" = type { %"class.boost::optional_detail::tc_optional_base.56" }
%"class.boost::optional_detail::tc_optional_base.56" = type { i8, i64 }
%"class.sparta::DisjointUnionAbstractDomain" = type { %"class.boost::variant" }
%"class.boost::variant" = type { i32, [4 x i8], %"class.boost::aligned_storage" }
%"class.boost::aligned_storage" = type { %"struct.boost::detail::aligned_storage::aligned_storage_imp" }
%"struct.boost::detail::aligned_storage::aligned_storage_imp" = type { %"union.boost::detail::aligned_storage::aligned_storage_imp<24, 8>::data_t" }
%"union.boost::detail::aligned_storage::aligned_storage_imp<24, 8>::data_t" = type { [24 x i8] }
%class.ConstantArrayDomain = type { %"class.sparta::ReducedProductAbstractDomain.59" }
%"class.sparta::ReducedProductAbstractDomain.59" = type { %"class.sparta::DirectProductAbstractDomain.60" }
%"class.sparta::DirectProductAbstractDomain.60" = type { %"class.std::tuple.63" }
%"class.std::tuple.63" = type { %"struct.std::_Tuple_impl.64" }
%"struct.std::_Tuple_impl.64" = type { %"struct.std::_Tuple_impl.65", %"struct.std::_Head_base.67" }
%"struct.std::_Tuple_impl.65" = type { %"struct.std::_Head_base.66" }
%"struct.std::_Head_base.66" = type { %"class.sparta::AbstractEnvironment.37" }
%"class.sparta::AbstractEnvironment.37" = type { %"class.sparta::AbstractDomainScaffolding.38" }
%"class.sparta::AbstractDomainScaffolding.38" = type { i32, %"class.sparta::environment_impl::MapValue.43" }
%"class.sparta::environment_impl::MapValue.43" = type { %"class.sparta::PatriciaTreeMap.46" }
%"class.sparta::PatriciaTreeMap.46" = type { %"class.sparta::pt_core::PatriciaTreeCore.51" }
%"class.sparta::pt_core::PatriciaTreeCore.51" = type { %"class.boost::intrusive_ptr.52" }
%"class.boost::intrusive_ptr.52" = type { ptr }
%"struct.std::_Head_base.67" = type { %"class.sparta::ConstantAbstractDomain" }
%"class.sparta::ConstantAbstractDomain" = type { %"class.sparta::acd_impl::ConstantAbstractValueRepr" }
%"class.sparta::acd_impl::ConstantAbstractValueRepr" = type { i32, i32 }

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN20constant_propagation18LocalArrayAnalyzer17analyze_new_arrayEPK13IRInstructionP19ConstantEnvironment(ptr noundef nonnull %0, ptr noundef %1) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca %class.SignedConstantDomain, align 8
  %5 = alloca %"class.boost::optional.55", align 8
  %6 = alloca %"class.sparta::DisjointUnionAbstractDomain", align 8
  %7 = alloca %class.ConstantArrayDomain, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #5
  %8 = tail call noundef i32 @_ZNK13IRInstruction3srcEt(ptr noundef nonnull align 8 dereferenceable(32) %0, i16 noundef zeroext 0)
  call void @_ZNK19ConstantEnvironment3getI20SignedConstantDomainEET_j(ptr dead_on_unwind nonnull writable sret(%class.SignedConstantDomain) align 8 %4, ptr noundef nonnull align 8 dereferenceable(48) %1, i32 noundef %8)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #5
  %9 = invoke { i8, i64 } @_ZNK20SignedConstantDomain12get_constantEv(ptr noundef nonnull align 8 dereferenceable(24) %4)
          to label %10 unwind label %15

10:                                               ; preds = %2
  %11 = extractvalue { i8, i64 } %9, 0
  store i8 %11, ptr %5, align 8
  %12 = getelementptr inbounds i8, ptr %5, i64 8
  %13 = extractvalue { i8, i64 } %9, 1
  store i64 %13, ptr %12, align 8
  %14 = call noundef zeroext i1 @_ZNK5boost8optionalIlEntEv(ptr noundef nonnull align 8 dereferenceable(16) %5) #5
  br i1 %14, label %34, label %17

15:                                               ; preds = %2
  %16 = landingpad { ptr, i32 }
          cleanup
  br label %35

17:                                               ; preds = %10
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #5
  %18 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNR5boost8optionalIlEdeEv(ptr noundef nonnull align 8 dereferenceable(16) %5)
          to label %19 unwind label %26

19:                                               ; preds = %17
  %20 = load i64, ptr %18, align 8, !tbaa !9
  %21 = trunc i64 %20 to i32
  invoke void @_ZN19ConstantArrayDomainI37DisjointUnionWithSignedConstantDomainI17is_object_visitorJN6sparta22ConstantAbstractDomainIPK8DexFieldEENS2_17SetAbstractDomainINS2_7HashSetIlSt4hashIlESt8equal_toIlEEEEENS8_INS2_15PatriciaTreeSetIPK9DexStringEEEENS3_ISJ_EENS3_IPK7DexTypeEENS3_IiEE25ObjectWithImmutAttrDomain15NewObjectDomainNS3_IPK13IRInstructionEEEE25ConstantValueDefaultValueEC2Ej(ptr noundef nonnull align 8 dereferenceable(24) %7, i32 noundef %21)
          to label %22 unwind label %26

22:                                               ; preds = %19
  invoke void @_ZN6sparta27DisjointUnionAbstractDomainI19ConstantArrayDomainI37DisjointUnionWithSignedConstantDomainI17is_object_visitorJNS_22ConstantAbstractDomainIPK8DexFieldEENS_17SetAbstractDomainINS_7HashSetIlSt4hashIlESt8equal_toIlEEEEENS9_INS_15PatriciaTreeSetIPK9DexStringEEEENS4_ISK_EENS4_IPK7DexTypeEENS4_IiEE25ObjectWithImmutAttrDomain15NewObjectDomainNS4_IPK13IRInstructionEEEE25ConstantValueDefaultValueEJ12ObjectDomainISZ_EEEC2IS11_EET_(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull %7)
          to label %23 unwind label %28

23:                                               ; preds = %22
  %24 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN19ConstantEnvironment14new_heap_valueEjRKPK13IRInstructionRKN6sparta27DisjointUnionAbstractDomainI19ConstantArrayDomainI37DisjointUnionWithSignedConstantDomainI17is_object_visitorJNS5_22ConstantAbstractDomainIPK8DexFieldEENS5_17SetAbstractDomainINS5_7HashSetIlSt4hashIlESt8equal_toIlEEEEENSF_INS5_15PatriciaTreeSetIPK9DexStringEEEENSA_ISQ_EENSA_IPK7DexTypeEENSA_IiEE25ObjectWithImmutAttrDomain15NewObjectDomainNSA_IS2_EEEE25ConstantValueDefaultValueEJ12ObjectDomainIS12_EEEE(ptr noundef nonnull align 8 dereferenceable(48) %1, i32 noundef -2, ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(32) %6)
          to label %25 unwind label %30

25:                                               ; preds = %23
  call void @_ZN6sparta27DisjointUnionAbstractDomainI19ConstantArrayDomainI37DisjointUnionWithSignedConstantDomainI17is_object_visitorJNS_22ConstantAbstractDomainIPK8DexFieldEENS_17SetAbstractDomainINS_7HashSetIlSt4hashIlESt8equal_toIlEEEEENS9_INS_15PatriciaTreeSetIPK9DexStringEEEENS4_ISK_EENS4_IPK7DexTypeEENS4_IiEE25ObjectWithImmutAttrDomain15NewObjectDomainNS4_IPK13IRInstructionEEEE25ConstantValueDefaultValueEJ12ObjectDomainISZ_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #5
  call void @_ZN6sparta28ReducedProductAbstractDomainI19ConstantArrayDomainI37DisjointUnionWithSignedConstantDomainI17is_object_visitorJNS_22ConstantAbstractDomainIPK8DexFieldEENS_17SetAbstractDomainINS_7HashSetIlSt4hashIlESt8equal_toIlEEEEENS9_INS_15PatriciaTreeSetIPK9DexStringEEEENS4_ISK_EENS4_IPK7DexTypeEENS4_IiEE25ObjectWithImmutAttrDomain15NewObjectDomainNS4_IPK13IRInstructionEEEE25ConstantValueDefaultValueEJNS4_IjEENS_19AbstractEnvironmentINS_15PatriciaTreeMapIjSZ_NS_17TopValueInterfaceISZ_EEEEEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #5
  br label %34

26:                                               ; preds = %19, %17
  %27 = landingpad { ptr, i32 }
          cleanup
  br label %33

28:                                               ; preds = %22
  %29 = landingpad { ptr, i32 }
          cleanup
  br label %32

30:                                               ; preds = %23
  %31 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6sparta27DisjointUnionAbstractDomainI19ConstantArrayDomainI37DisjointUnionWithSignedConstantDomainI17is_object_visitorJNS_22ConstantAbstractDomainIPK8DexFieldEENS_17SetAbstractDomainINS_7HashSetIlSt4hashIlESt8equal_toIlEEEEENS9_INS_15PatriciaTreeSetIPK9DexStringEEEENS4_ISK_EENS4_IPK7DexTypeEENS4_IiEE25ObjectWithImmutAttrDomain15NewObjectDomainNS4_IPK13IRInstructionEEEE25ConstantValueDefaultValueEJ12ObjectDomainISZ_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #5
  br label %32

32:                                               ; preds = %30, %28
  %.pn = phi { ptr, i32 } [ %31, %30 ], [ %29, %28 ]
  call void @_ZN6sparta28ReducedProductAbstractDomainI19ConstantArrayDomainI37DisjointUnionWithSignedConstantDomainI17is_object_visitorJNS_22ConstantAbstractDomainIPK8DexFieldEENS_17SetAbstractDomainINS_7HashSetIlSt4hashIlESt8equal_toIlEEEEENS9_INS_15PatriciaTreeSetIPK9DexStringEEEENS4_ISK_EENS4_IPK7DexTypeEENS4_IiEE25ObjectWithImmutAttrDomain15NewObjectDomainNS4_IPK13IRInstructionEEEE25ConstantValueDefaultValueEJNS4_IjEENS_19AbstractEnvironmentINS_15PatriciaTreeMapIjSZ_NS_17TopValueInterfaceISZ_EEEEEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
  br label %33

33:                                               ; preds = %32, %26
  %.pn.pn = phi { ptr, i32 } [ %.pn, %32 ], [ %27, %26 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #5
  br label %35

34:                                               ; preds = %10, %25
  %.07 = xor i1 %14, true
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #5
  call void @_ZN6sparta14AbstractDomainI20SignedConstantDomainED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #5
  ret i1 %.07

35:                                               ; preds = %33, %15
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %33 ], [ %16, %15 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #5
  call void @_ZN6sparta14AbstractDomainI20SignedConstantDomainED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #5
  resume { ptr, i32 } %.pn.pn.pn
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK19ConstantEnvironment3getI20SignedConstantDomainEET_j(ptr dead_on_unwind noalias writable sret(%class.SignedConstantDomain) align 8, ptr noundef nonnull align 8 dereferenceable(48), i32 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { i8, i64 } @_ZNK20SignedConstantDomain12get_constantEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK5boost8optionalIlEntEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(48) ptr @_ZN19ConstantEnvironment14new_heap_valueEjRKPK13IRInstructionRKN6sparta27DisjointUnionAbstractDomainI19ConstantArrayDomainI37DisjointUnionWithSignedConstantDomainI17is_object_visitorJNS5_22ConstantAbstractDomainIPK8DexFieldEENS5_17SetAbstractDomainINS5_7HashSetIlSt4hashIlESt8equal_toIlEEEEENSF_INS5_15PatriciaTreeSetIPK9DexStringEEEENSA_ISQ_EENSA_IPK7DexTypeEENSA_IiEE25ObjectWithImmutAttrDomain15NewObjectDomainNSA_IS2_EEEE25ConstantValueDefaultValueEJ12ObjectDomainIS12_EEEE(ptr noundef nonnull align 8 dereferenceable(48), i32 noundef, ptr noundef nonnull align 8 dereferenceable(8), 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(8) ptr @_ZNR5boost8optionalIlEdeEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #2 align 2

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

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

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 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, !10, i64 0}
!10 = !{!"long", !7, i64 0}


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