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

; 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.std::unique_ptr.566" = type { %"struct.std::__uniq_ptr_data.567" }
%"struct.std::__uniq_ptr_data.567" = type { %"class.std::__uniq_ptr_impl.568" }
%"class.std::__uniq_ptr_impl.568" = type { %"class.std::tuple.569" }
%"class.std::tuple.569" = type { %"struct.std::_Tuple_impl.570" }
%"struct.std::_Tuple_impl.570" = type { %"struct.std::_Head_base.573" }
%"struct.std::_Head_base.573" = type { ptr }
%"class.std::vector.556" = type { %"struct.std::_Vector_base.557" }
%"struct.std::_Vector_base.557" = type { %"struct.std::_Vector_base<cfg::Block *, std::allocator<cfg::Block *>>::_Vector_impl" }
%"struct.std::_Vector_base<cfg::Block *, std::allocator<cfg::Block *>>::_Vector_impl" = type { %"struct.std::_Vector_base<cfg::Block *, std::allocator<cfg::Block *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<cfg::Block *, std::allocator<cfg::Block *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator.561" = 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 i1 @_ZNK6sparta28ReducedProductAbstractDomainI19ConstantEnvironmentJNS_19AbstractEnvironmentINS_15PatriciaTreeMapIj37DisjointUnionWithSignedConstantDomainI17is_object_visitorJNS_22ConstantAbstractDomainIPK8DexFieldEENS_17SetAbstractDomainINS_7HashSetIlSt4hashIlESt8equal_toIlEEEEENSB_INS_15PatriciaTreeSetIPK9DexStringEEEENS6_ISM_EENS6_IPK7DexTypeEENS6_IiEE25ObjectWithImmutAttrDomain15NewObjectDomainNS6_IPK13IRInstructionEEEENS_17TopValueInterfaceIS11_EEEEEENS2_INS3_IS9_S11_S13_EEEENS2_INS3_ISZ_NS_27DisjointUnionAbstractDomainI19ConstantArrayDomainIS11_25ConstantValueDefaultValueEJ12ObjectDomainIS11_EEEENS12_IS1E_EEEEEEEE9is_bottomEv(ptr noundef nonnull align 8 dereferenceable(48)) #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN20constant_propagation9Transform28legacy_apply_forward_targetsERKNS_15intraprocedural16FixpointIteratorERN3cfg16ControlFlowGraphEbP7DexTypeP8DexProtoPK10XStoreRefs(ptr noundef nonnull align 8 dereferenceable(248) %0, ptr noundef nonnull align 8 dereferenceable(392) %1, ptr noundef nonnull align 8 dereferenceable(160) %2, i1 noundef zeroext %3, ptr noundef %4, ptr noundef %5, ptr noundef %6) #2 align 2 personality ptr @__gxx_personality_v0 {
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i8, align 1
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca %"class.std::unique_ptr.566", align 8
  %16 = alloca ptr, align 8
  %17 = alloca %"class.std::vector.556", align 8
  %18 = alloca ptr, align 8
  %19 = alloca i32, align 4
  %20 = alloca %"class.__gnu_cxx::__normal_iterator.561", align 8
  %21 = alloca %"class.__gnu_cxx::__normal_iterator.561", align 8
  %22 = alloca i32, align 4
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store ptr %2, ptr %10, align 8, !tbaa !5
  %25 = zext i1 %3 to i8
  store i8 %25, ptr %11, align 1, !tbaa !9
  store ptr %4, ptr %12, align 8, !tbaa !5
  store ptr %5, ptr %13, align 8, !tbaa !5
  store ptr %6, ptr %14, align 8, !tbaa !5
  %26 = load ptr, ptr %8, align 8
  %27 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN3cfg16ControlFlowGraph20calculate_exit_blockEv(ptr noundef nonnull align 8 dereferenceable(160) %27)
  %28 = load ptr, ptr %10, align 8, !tbaa !5
  %29 = load i8, ptr %11, align 1, !tbaa !9, !range !11, !noundef !12
  %30 = trunc i8 %29 to i1
  %31 = load ptr, ptr %12, align 8, !tbaa !5
  %32 = load ptr, ptr %13, align 8, !tbaa !5
  %33 = load ptr, ptr %14, align 8, !tbaa !5
  %34 = call noundef zeroext i1 @_ZN20constant_propagation9Transform22has_problematic_returnERN3cfg16ControlFlowGraphEbP7DexTypeP8DexProtoPK10XStoreRefs(ptr noundef nonnull align 8 dereferenceable(248) %26, ptr noundef nonnull align 8 dereferenceable(160) %28, i1 noundef zeroext %30, ptr noundef %31, ptr noundef %32, ptr noundef %33)
  br i1 %34, label %35, label %36

35:                                               ; preds = %7
  br label %82

36:                                               ; preds = %7
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  call void @_ZNSt10unique_ptrI24LivenessFixpointIteratorSt14default_deleteIS0_EEC2IS2_vEEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr %17) #5
  %37 = load ptr, ptr %10, align 8, !tbaa !5
  invoke void @_ZNK3cfg16ControlFlowGraph6blocksEv(ptr dead_on_unwind writable sret(%"class.std::vector.556") align 8 %17, ptr noundef nonnull align 8 dereferenceable(160) %37)
          to label %38 unwind label %48

38:                                               ; preds = %36
  store ptr %17, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  %39 = load ptr, ptr %16, align 8, !tbaa !5
  %40 = call ptr @_ZNSt6vectorIPN3cfg5BlockESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %39) #5
  %41 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.561", ptr %20, i32 0, i32 0
  store ptr %40, ptr %41, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  %42 = load ptr, ptr %16, align 8, !tbaa !5
  %43 = call ptr @_ZNSt6vectorIPN3cfg5BlockESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %42) #5
  %44 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.561", ptr %21, i32 0, i32 0
  store ptr %43, ptr %44, align 8
  br label %45

45:                                               ; preds = %78, %38
  %46 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPPN3cfg5BlockESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull align 8 dereferenceable(8) %21) #5
  br i1 %46, label %52, label %47

47:                                               ; preds = %45
  store i32 2, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @_ZNSt6vectorIPN3cfg5BlockESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  br label %81

48:                                               ; preds = %36
  %49 = landingpad { ptr, i32 }
          cleanup
  %50 = extractvalue { ptr, i32 } %49, 0
  store ptr %50, ptr %18, align 8
  %51 = extractvalue { ptr, i32 } %49, 1
  store i32 %51, ptr %19, align 4
  br label %80

52:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #5
  %53 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPN3cfg5BlockESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %20) #5
  %54 = load ptr, ptr %53, align 8, !tbaa !5
  store ptr %54, ptr %23, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #5
  %55 = load ptr, ptr %9, align 8, !tbaa !5
  %56 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZNK6sparta7fp_impl29MonotonicFixpointIteratorBaseIN3cfg14GraphInterfaceE19ConstantEnvironmentSt4hashIPNS2_5BlockEEE17get_exit_state_atERKS7_(ptr noundef nonnull align 8 dereferenceable(176) %55, ptr noundef nonnull align 8 dereferenceable(8) %23)
          to label %57 unwind label %62

57:                                               ; preds = %52
  store ptr %56, ptr %24, align 8, !tbaa !5
  %58 = load ptr, ptr %24, align 8, !tbaa !5
  %59 = invoke noundef zeroext i1 @_ZNK6sparta28ReducedProductAbstractDomainI19ConstantEnvironmentJNS_19AbstractEnvironmentINS_15PatriciaTreeMapIj37DisjointUnionWithSignedConstantDomainI17is_object_visitorJNS_22ConstantAbstractDomainIPK8DexFieldEENS_17SetAbstractDomainINS_7HashSetIlSt4hashIlESt8equal_toIlEEEEENSB_INS_15PatriciaTreeSetIPK9DexStringEEEENS6_ISM_EENS6_IPK7DexTypeEENS6_IiEE25ObjectWithImmutAttrDomain15NewObjectDomainNS6_IPK13IRInstructionEEEENS_17TopValueInterfaceIS11_EEEEEENS2_INS3_IS9_S11_S13_EEEENS2_INS3_ISZ_NS_27DisjointUnionAbstractDomainI19ConstantArrayDomainIS11_25ConstantValueDefaultValueEJ12ObjectDomainIS11_EEEENS12_IS1E_EEEEEEEE9is_bottomEv(ptr noundef nonnull align 8 dereferenceable(48) %58)
          to label %60 unwind label %62

60:                                               ; preds = %57
  br i1 %59, label %61, label %66

61:                                               ; preds = %60
  store i32 3, ptr %22, align 4
  br label %72

62:                                               ; preds = %66, %57, %52
  %63 = landingpad { ptr, i32 }
          cleanup
  %64 = extractvalue { ptr, i32 } %63, 0
  store ptr %64, ptr %18, align 8
  %65 = extractvalue { ptr, i32 } %63, 1
  store i32 %65, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @_ZNSt6vectorIPN3cfg5BlockESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #5
  br label %80

66:                                               ; preds = %60
  %67 = load ptr, ptr %9, align 8, !tbaa !5
  %68 = load ptr, ptr %24, align 8, !tbaa !5
  %69 = load ptr, ptr %10, align 8, !tbaa !5
  %70 = load ptr, ptr %23, align 8, !tbaa !5
  invoke void @_ZN20constant_propagation9Transform15forward_targetsERKNS_15intraprocedural16FixpointIteratorERK19ConstantEnvironmentRN3cfg16ControlFlowGraphEPNS8_5BlockERSt10unique_ptrI24LivenessFixpointIteratorSt14default_deleteISE_EE(ptr noundef nonnull align 8 dereferenceable(248) %26, ptr noundef nonnull align 8 dereferenceable(392) %67, ptr noundef nonnull align 8 dereferenceable(48) %68, ptr noundef nonnull align 8 dereferenceable(160) %69, ptr noundef %70, ptr noundef nonnull align 8 dereferenceable(8) %15)
          to label %71 unwind label %62

71:                                               ; preds = %66
  store i32 0, ptr %22, align 4
  br label %72

72:                                               ; preds = %71, %61
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  %73 = load i32, ptr %22, align 4
  switch i32 %73, label %75 [
    i32 0, label %74
  ]

74:                                               ; preds = %72
  store i32 0, ptr %22, align 4
  br label %75

75:                                               ; preds = %74, %72
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  %76 = load i32, ptr %22, align 4
  switch i32 %76, label %88 [
    i32 0, label %77
    i32 3, label %78
  ]

77:                                               ; preds = %75
  br label %78

78:                                               ; preds = %77, %75
  %79 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPPN3cfg5BlockESt6vectorIS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %20) #5
  br label %45

80:                                               ; preds = %62, %48
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @_ZNSt10unique_ptrI24LivenessFixpointIteratorSt14default_deleteIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  br label %83

81:                                               ; preds = %47
  call void @_ZNSt10unique_ptrI24LivenessFixpointIteratorSt14default_deleteIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  br label %82

82:                                               ; preds = %81, %35
  ret void

83:                                               ; preds = %80
  %84 = load ptr, ptr %18, align 8
  %85 = load i32, ptr %19, align 4
  %86 = insertvalue { ptr, i32 } poison, ptr %84, 0
  %87 = insertvalue { ptr, i32 } %86, i32 %85, 1
  resume { ptr, i32 } %87

88:                                               ; preds = %75
  unreachable
}

declare void @_ZNK3cfg16ControlFlowGraph6blocksEv(ptr dead_on_unwind writable sret(%"class.std::vector.556") align 8, ptr noundef nonnull align 8 dereferenceable(160)) #3

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN20constant_propagation9Transform15forward_targetsERKNS_15intraprocedural16FixpointIteratorERK19ConstantEnvironmentRN3cfg16ControlFlowGraphEPNS8_5BlockERSt10unique_ptrI24LivenessFixpointIteratorSt14default_deleteISE_EE(ptr noundef nonnull align 8 dereferenceable(248), ptr noundef nonnull align 8 dereferenceable(392), ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(160), ptr noundef, ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN20constant_propagation9Transform22has_problematic_returnERN3cfg16ControlFlowGraphEbP7DexTypeP8DexProtoPK10XStoreRefs(ptr noundef nonnull align 8 dereferenceable(248), ptr noundef nonnull align 8 dereferenceable(160), i1 noundef zeroext, ptr noundef, ptr noundef, ptr noundef) #2 align 2

declare void @_ZN3cfg16ControlFlowGraph20calculate_exit_blockEv(ptr noundef nonnull align 8 dereferenceable(160)) #3

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt10unique_ptrI24LivenessFixpointIteratorSt14default_deleteIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #1 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 = { 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 = { "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 = !{!"bool", !7, i64 0}
!11 = !{i8 0, i8 2}
!12 = !{}


; 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.std::unique_ptr.566" = type { %"struct.std::__uniq_ptr_data.567" }
%"struct.std::__uniq_ptr_data.567" = type { %"class.std::__uniq_ptr_impl.568" }
%"class.std::__uniq_ptr_impl.568" = type { %"class.std::tuple.569" }
%"class.std::tuple.569" = type { %"struct.std::_Tuple_impl.570" }
%"struct.std::_Tuple_impl.570" = type { %"struct.std::_Head_base.573" }
%"struct.std::_Head_base.573" = type { ptr }
%"class.std::vector.556" = type { %"struct.std::_Vector_base.557" }
%"struct.std::_Vector_base.557" = type { %"struct.std::_Vector_base<cfg::Block *, std::allocator<cfg::Block *>>::_Vector_impl" }
%"struct.std::_Vector_base<cfg::Block *, std::allocator<cfg::Block *>>::_Vector_impl" = type { %"struct.std::_Vector_base<cfg::Block *, std::allocator<cfg::Block *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<cfg::Block *, std::allocator<cfg::Block *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator.561" = type { ptr }

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK6sparta28ReducedProductAbstractDomainI19ConstantEnvironmentJNS_19AbstractEnvironmentINS_15PatriciaTreeMapIj37DisjointUnionWithSignedConstantDomainI17is_object_visitorJNS_22ConstantAbstractDomainIPK8DexFieldEENS_17SetAbstractDomainINS_7HashSetIlSt4hashIlESt8equal_toIlEEEEENSB_INS_15PatriciaTreeSetIPK9DexStringEEEENS6_ISM_EENS6_IPK7DexTypeEENS6_IiEE25ObjectWithImmutAttrDomain15NewObjectDomainNS6_IPK13IRInstructionEEEENS_17TopValueInterfaceIS11_EEEEEENS2_INS3_IS9_S11_S13_EEEENS2_INS3_ISZ_NS_27DisjointUnionAbstractDomainI19ConstantArrayDomainIS11_25ConstantValueDefaultValueEJ12ObjectDomainIS11_EEEENS12_IS1E_EEEEEEEE9is_bottomEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN20constant_propagation9Transform28legacy_apply_forward_targetsERKNS_15intraprocedural16FixpointIteratorERN3cfg16ControlFlowGraphEbP7DexTypeP8DexProtoPK10XStoreRefs(ptr noundef nonnull align 8 dereferenceable(248) %0, ptr noundef nonnull align 8 dereferenceable(392) %1, ptr noundef nonnull align 8 dereferenceable(160) %2, i1 noundef zeroext %3, ptr noundef %4, ptr noundef %5, ptr noundef %6) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %8 = alloca %"class.std::unique_ptr.566", align 8
  %9 = alloca %"class.std::vector.556", align 8
  %10 = alloca %"class.__gnu_cxx::__normal_iterator.561", align 8
  %11 = alloca %"class.__gnu_cxx::__normal_iterator.561", align 8
  %12 = alloca ptr, align 8
  tail call void @_ZN3cfg16ControlFlowGraph20calculate_exit_blockEv(ptr noundef nonnull align 8 dereferenceable(160) %2)
  %13 = tail call noundef zeroext i1 @_ZN20constant_propagation9Transform22has_problematic_returnERN3cfg16ControlFlowGraphEbP7DexTypeP8DexProtoPK10XStoreRefs(ptr noundef nonnull align 8 dereferenceable(248) %0, ptr noundef nonnull align 8 dereferenceable(160) %2, i1 noundef zeroext %3, ptr noundef %4, ptr noundef %5, ptr noundef %6)
  br i1 %13, label %34, label %14

14:                                               ; preds = %7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #5
  call void @_ZNSt10unique_ptrI24LivenessFixpointIteratorSt14default_deleteIS0_EEC2IS2_vEEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #5
  invoke void @_ZNK3cfg16ControlFlowGraph6blocksEv(ptr dead_on_unwind nonnull writable sret(%"class.std::vector.556") align 8 %9, ptr noundef nonnull align 8 dereferenceable(160) %2)
          to label %15 unwind label %19

15:                                               ; preds = %14
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #5
  %16 = call ptr @_ZNSt6vectorIPN3cfg5BlockESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #5
  store ptr %16, ptr %10, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #5
  %17 = call ptr @_ZNSt6vectorIPN3cfg5BlockESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #5
  store ptr %17, ptr %11, align 8
  %18 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPPN3cfg5BlockESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11) #5
  br i1 %18, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %30, %15
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
  call void @_ZNSt6vectorIPN3cfg5BlockESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #5
  call void @_ZNSt10unique_ptrI24LivenessFixpointIteratorSt14default_deleteIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  br label %34

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

.lr.ph:                                           ; preds = %15, %30
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #5
  %21 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPN3cfg5BlockESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #5
  %22 = load ptr, ptr %21, align 8, !tbaa !5
  store ptr %22, ptr %12, align 8, !tbaa !5
  %23 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZNK6sparta7fp_impl29MonotonicFixpointIteratorBaseIN3cfg14GraphInterfaceE19ConstantEnvironmentSt4hashIPNS2_5BlockEEE17get_exit_state_atERKS7_(ptr noundef nonnull align 8 dereferenceable(176) %1, ptr noundef nonnull align 8 dereferenceable(8) %12)
          to label %24 unwind label %26

24:                                               ; preds = %.lr.ph
  %25 = call noundef zeroext i1 @_ZNK6sparta28ReducedProductAbstractDomainI19ConstantEnvironmentJNS_19AbstractEnvironmentINS_15PatriciaTreeMapIj37DisjointUnionWithSignedConstantDomainI17is_object_visitorJNS_22ConstantAbstractDomainIPK8DexFieldEENS_17SetAbstractDomainINS_7HashSetIlSt4hashIlESt8equal_toIlEEEEENSB_INS_15PatriciaTreeSetIPK9DexStringEEEENS6_ISM_EENS6_IPK7DexTypeEENS6_IiEE25ObjectWithImmutAttrDomain15NewObjectDomainNS6_IPK13IRInstructionEEEENS_17TopValueInterfaceIS11_EEEEEENS2_INS3_IS9_S11_S13_EEEENS2_INS3_ISZ_NS_27DisjointUnionAbstractDomainI19ConstantArrayDomainIS11_25ConstantValueDefaultValueEJ12ObjectDomainIS11_EEEENS12_IS1E_EEEEEEEE9is_bottomEv(ptr noundef nonnull align 8 dereferenceable(48) %23)
  br i1 %25, label %30, label %28

26:                                               ; preds = %28, %.lr.ph
  %27 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
  call void @_ZNSt6vectorIPN3cfg5BlockESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #5
  br label %33

28:                                               ; preds = %24
  %29 = load ptr, ptr %12, align 8, !tbaa !5
  invoke void @_ZN20constant_propagation9Transform15forward_targetsERKNS_15intraprocedural16FixpointIteratorERK19ConstantEnvironmentRN3cfg16ControlFlowGraphEPNS8_5BlockERSt10unique_ptrI24LivenessFixpointIteratorSt14default_deleteISE_EE(ptr noundef nonnull align 8 dereferenceable(248) %0, ptr noundef nonnull align 8 dereferenceable(392) %1, ptr noundef nonnull align 8 dereferenceable(48) %23, ptr noundef nonnull align 8 dereferenceable(160) %2, ptr noundef %29, ptr noundef nonnull align 8 dereferenceable(8) %8)
          to label %30 unwind label %26

30:                                               ; preds = %28, %24
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #5
  %31 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPPN3cfg5BlockESt6vectorIS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #5
  %32 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPPN3cfg5BlockESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11) #5
  br i1 %32, label %.lr.ph, label %._crit_edge

33:                                               ; preds = %26, %19
  %.pn = phi { ptr, i32 } [ %27, %26 ], [ %20, %19 ]
  call void @_ZNSt10unique_ptrI24LivenessFixpointIteratorSt14default_deleteIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  resume { ptr, i32 } %.pn

34:                                               ; preds = %7, %._crit_edge
  ret void
}

declare void @_ZNK3cfg16ControlFlowGraph6blocksEv(ptr dead_on_unwind writable sret(%"class.std::vector.556") align 8, ptr noundef nonnull align 8 dereferenceable(160)) local_unnamed_addr #3

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN20constant_propagation9Transform15forward_targetsERKNS_15intraprocedural16FixpointIteratorERK19ConstantEnvironmentRN3cfg16ControlFlowGraphEPNS8_5BlockERSt10unique_ptrI24LivenessFixpointIteratorSt14default_deleteISE_EE(ptr noundef nonnull align 8 dereferenceable(248), ptr noundef nonnull align 8 dereferenceable(392), ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(160), ptr noundef, ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN20constant_propagation9Transform22has_problematic_returnERN3cfg16ControlFlowGraphEbP7DexTypeP8DexProtoPK10XStoreRefs(ptr noundef nonnull align 8 dereferenceable(248), ptr noundef nonnull align 8 dereferenceable(160), i1 noundef zeroext, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2 align 2

declare void @_ZN3cfg16ControlFlowGraph20calculate_exit_blockEv(ptr noundef nonnull align 8 dereferenceable(160)) local_unnamed_addr #3

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(48) ptr @_ZNK6sparta7fp_impl29MonotonicFixpointIteratorBaseIN3cfg14GraphInterfaceE19ConstantEnvironmentSt4hashIPNS2_5BlockEEE17get_exit_state_atERKS7_(ptr noundef nonnull align 8 dereferenceable(176), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 align 2

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

attributes #0 = { mustprogress 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 = { 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 = { "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"}


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