; LLVM IR from facebook/redex :: service/type-analysis (GlobalTypeAnalyzer)

; 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.DexTypeEnvironment = type { %"class.sparta::ReducedProductAbstractDomain" }
%"class.sparta::ReducedProductAbstractDomain" = type { %"class.sparta::DirectProductAbstractDomain" }
%"class.sparta::DirectProductAbstractDomain" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Tuple_impl.1", %"struct.std::_Head_base.24" }
%"struct.std::_Tuple_impl.1" = type { %"struct.std::_Tuple_impl.2", %"struct.std::_Head_base.5" }
%"struct.std::_Tuple_impl.2" = type { %"struct.std::_Head_base" }
%"struct.std::_Head_base" = type { %"class.sparta::AbstractEnvironment" }
%"class.sparta::AbstractEnvironment" = type { %"class.sparta::AbstractDomainScaffolding" }
%"class.sparta::AbstractDomainScaffolding" = type { i32, %"class.sparta::environment_impl::MapValue" }
%"class.sparta::environment_impl::MapValue" = type { %"class.sparta::PatriciaTreeMap" }
%"class.sparta::PatriciaTreeMap" = type { %"class.sparta::pt_core::PatriciaTreeCore" }
%"class.sparta::pt_core::PatriciaTreeCore" = type { %"class.boost::intrusive_ptr" }
%"class.boost::intrusive_ptr" = type { ptr }
%"struct.std::_Head_base.5" = type { %"class.sparta::AbstractEnvironment.6" }
%"class.sparta::AbstractEnvironment.6" = type { %"class.sparta::AbstractDomainScaffolding.7" }
%"class.sparta::AbstractDomainScaffolding.7" = type { i32, %"class.sparta::environment_impl::MapValue.12" }
%"class.sparta::environment_impl::MapValue.12" = type { %"class.sparta::PatriciaTreeMap.15" }
%"class.sparta::PatriciaTreeMap.15" = type { %"class.sparta::pt_core::PatriciaTreeCore.20" }
%"class.sparta::pt_core::PatriciaTreeCore.20" = type { %"class.boost::intrusive_ptr.21" }
%"class.boost::intrusive_ptr.21" = type { ptr }
%"struct.std::_Head_base.24" = type { %"class.sparta::AbstractEnvironment.25" }
%"class.sparta::AbstractEnvironment.25" = type { %"class.sparta::AbstractDomainScaffolding.26" }
%"class.sparta::AbstractDomainScaffolding.26" = type { i32, %"class.sparta::environment_impl::MapValue.31" }
%"class.sparta::environment_impl::MapValue.31" = type { %"class.sparta::PatriciaTreeMap.34" }
%"class.sparta::PatriciaTreeMap.34" = type { %"class.sparta::pt_core::PatriciaTreeCore.39" }
%"class.sparta::pt_core::PatriciaTreeCore.39" = type { %"class.boost::intrusive_ptr.40" }
%"class.boost::intrusive_ptr.40" = type { ptr }
%"class.boost::sub_range" = type { %"class.boost::range_detail::sub_range_base" }
%"class.boost::range_detail::sub_range_base" = type { %"class.boost::range_detail::sub_range_base.43" }
%"class.boost::range_detail::sub_range_base.43" = type { %"class.boost::iterator_range" }
%"class.boost::iterator_range" = type { %"class.boost::iterator_range_detail::iterator_range_base" }
%"class.boost::iterator_range_detail::iterator_range_base" = type { %"class.boost::iterator_range_detail::iterator_range_base.44" }
%"class.boost::iterator_range_detail::iterator_range_base.44" = type { %"class.boost::intrusive::list_iterator", %"class.boost::intrusive::list_iterator" }
%"class.boost::intrusive::list_iterator" = type { %"struct.boost::intrusive::iiterator_members" }
%"struct.boost::intrusive::iiterator_members" = type { ptr }
%"class.ir_list::InstructionIterableImpl" = type { %"class.boost::intrusive::list_iterator", %"class.boost::intrusive::list_iterator" }
%"class.ir_list::InstructionIteratorImpl" = type { %"class.boost::intrusive::list_iterator", %"class.boost::intrusive::list_iterator" }
%struct.MethodItemEntry = type { %"class.boost::intrusive::list_member_hook", i32, %union.anon.69 }
%"class.boost::intrusive::list_member_hook" = type { %"class.boost::intrusive::generic_hook" }
%"class.boost::intrusive::generic_hook" = type { %"struct.boost::intrusive::list_node" }
%"struct.boost::intrusive::list_node" = type { ptr, ptr }
%union.anon.69 = 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 uwtable
define dso_local void @_ZN13type_analyzer6global15env_with_paramsEPK6IRCodeRKN6sparta19AbstractEnvironmentINS4_15PatriciaTreeMapIt13DexTypeDomainNS4_17TopValueInterfaceIS7_EEEEEE(ptr dead_on_unwind noalias writable sret(%class.DexTypeEnvironment) align 8 %0, ptr noundef %1, ptr noundef nonnull align 8 dereferenceable(16) %2) #1 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i64, align 8
  %8 = alloca i1, align 1
  %9 = alloca %"class.boost::sub_range", align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca %"class.ir_list::InstructionIterableImpl", align 8
  %14 = alloca %"class.ir_list::InstructionIteratorImpl", align 8
  %15 = alloca %"class.ir_list::InstructionIteratorImpl", align 8
  %16 = alloca ptr, align 8
  %17 = alloca i16, align 2
  store ptr %0, ptr %4, align 8
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  store i64 0, ptr %7, align 8, !tbaa !9
  store i1 false, ptr %8, align 1
  call void @_ZN18DexTypeEnvironmentC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %0)
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #6
  %18 = load ptr, ptr %5, align 8, !tbaa !5
  %19 = invoke noundef zeroext i1 @_ZNK6IRCode18editable_cfg_builtEv(ptr noundef nonnull align 8 dereferenceable(32) %18)
          to label %20 unwind label %39

20:                                               ; preds = %3
  br i1 %19, label %21, label %26

21:                                               ; preds = %20
  %22 = load ptr, ptr %5, align 8, !tbaa !5
  %23 = invoke noundef nonnull align 8 dereferenceable(160) ptr @_ZNK6IRCode3cfgEv(ptr noundef nonnull align 8 dereferenceable(32) %22)
          to label %24 unwind label %39

24:                                               ; preds = %21
  invoke void @_ZNK3cfg16ControlFlowGraph22get_param_instructionsEv(ptr dead_on_unwind writable sret(%"class.boost::sub_range") align 8 %9, ptr noundef nonnull align 8 dereferenceable(160) %23)
          to label %25 unwind label %39

25:                                               ; preds = %24
  br label %29

26:                                               ; preds = %20
  %27 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_ZNK6IRCode22get_param_instructionsEv(ptr dead_on_unwind writable sret(%"class.boost::sub_range") align 8 %9, ptr noundef nonnull align 8 dereferenceable(32) %27)
          to label %28 unwind label %39

28:                                               ; preds = %26
  br label %29

29:                                               ; preds = %28, %25
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #6
  invoke void @_Z19InstructionIterableIN5boost9sub_rangeI6IRListEEEN7ir_list23InstructionIterableImplILb0EEERT_(ptr dead_on_unwind writable sret(%"class.ir_list::InstructionIterableImpl") align 8 %13, ptr noundef nonnull align 8 dereferenceable(16) %9)
          to label %30 unwind label %43

30:                                               ; preds = %29
  store ptr %13, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #6
  %31 = load ptr, ptr %12, align 8, !tbaa !5
  invoke void @_ZNK7ir_list23InstructionIterableImplILb0EE5beginEv(ptr dead_on_unwind writable sret(%"class.ir_list::InstructionIteratorImpl") align 8 %14, ptr noundef nonnull align 8 dereferenceable(16) %31)
          to label %32 unwind label %47

32:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #6
  %33 = load ptr, ptr %12, align 8, !tbaa !5
  invoke void @_ZNK7ir_list23InstructionIterableImplILb0EE3endEv(ptr dead_on_unwind writable sret(%"class.ir_list::InstructionIteratorImpl") align 8 %15, ptr noundef nonnull align 8 dereferenceable(16) %33)
          to label %34 unwind label %51

34:                                               ; preds = %32
  br label %35

35:                                               ; preds = %73, %34
  %36 = invoke noundef zeroext i1 @_ZNK7ir_list23InstructionIteratorImplILb0EEneERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef nonnull align 8 dereferenceable(16) %15)
          to label %37 unwind label %51

37:                                               ; preds = %35
  br i1 %36, label %55, label %38

38:                                               ; preds = %37
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  br label %86

39:                                               ; preds = %26, %24, %21, %3
  %40 = landingpad { ptr, i32 }
          cleanup
  %41 = extractvalue { ptr, i32 } %40, 0
  store ptr %41, ptr %10, align 8
  %42 = extractvalue { ptr, i32 } %40, 1
  store i32 %42, ptr %11, align 4
  br label %88

43:                                               ; preds = %29
  %44 = landingpad { ptr, i32 }
          cleanup
  %45 = extractvalue { ptr, i32 } %44, 0
  store ptr %45, ptr %10, align 8
  %46 = extractvalue { ptr, i32 } %44, 1
  store i32 %46, ptr %11, align 4
  br label %85

47:                                               ; preds = %30
  %48 = landingpad { ptr, i32 }
          cleanup
  %49 = extractvalue { ptr, i32 } %48, 0
  store ptr %49, ptr %10, align 8
  %50 = extractvalue { ptr, i32 } %48, 1
  store i32 %50, ptr %11, align 4
  br label %84

51:                                               ; preds = %71, %35, %32
  %52 = landingpad { ptr, i32 }
          cleanup
  %53 = extractvalue { ptr, i32 } %52, 0
  store ptr %53, ptr %10, align 8
  %54 = extractvalue { ptr, i32 } %52, 1
  store i32 %54, ptr %11, align 4
  br label %83

55:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  %56 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNK7ir_list23InstructionIteratorImplILb0EEdeEv(ptr noundef nonnull align 8 dereferenceable(16) %14)
          to label %57 unwind label %74

57:                                               ; preds = %55
  store ptr %56, ptr %16, align 8, !tbaa !5
  %58 = load ptr, ptr %16, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.MethodItemEntry, ptr %58, i32 0, i32 2
  %60 = load ptr, ptr %59, align 8, !tbaa !11
  %61 = invoke noundef i32 @_ZNK13IRInstruction4destEv(ptr noundef nonnull align 8 dereferenceable(32) %60)
          to label %62 unwind label %74

62:                                               ; preds = %57
  %63 = load ptr, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 2, ptr %17) #6
  %64 = load i64, ptr %7, align 8, !tbaa !9
  %65 = add i64 %64, 1
  store i64 %65, ptr %7, align 8, !tbaa !9
  %66 = trunc i64 %64 to i16
  store i16 %66, ptr %17, align 2, !tbaa !12
  %67 = invoke noundef nonnull align 8 dereferenceable(56) ptr @_ZNK6sparta19AbstractEnvironmentINS_15PatriciaTreeMapIt13DexTypeDomainNS_17TopValueInterfaceIS2_EEEEE3getERKt(ptr noundef nonnull align 8 dereferenceable(16) %63, ptr noundef nonnull align 2 dereferenceable(2) %17)
          to label %68 unwind label %78

68:                                               ; preds = %62
  %69 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN18DexTypeEnvironment3setEjRK13DexTypeDomain(ptr noundef nonnull align 8 dereferenceable(48) %0, i32 noundef %61, ptr noundef nonnull align 8 dereferenceable(56) %67)
          to label %70 unwind label %78

70:                                               ; preds = %68
  call void @llvm.lifetime.end.p0(i64 2, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  br label %71

71:                                               ; preds = %70
  %72 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN7ir_list23InstructionIteratorImplILb0EEppEv(ptr noundef nonnull align 8 dereferenceable(16) %14)
          to label %73 unwind label %51

73:                                               ; preds = %71
  br label %35

74:                                               ; preds = %57, %55
  %75 = landingpad { ptr, i32 }
          cleanup
  %76 = extractvalue { ptr, i32 } %75, 0
  store ptr %76, ptr %10, align 8
  %77 = extractvalue { ptr, i32 } %75, 1
  store i32 %77, ptr %11, align 4
  br label %82

78:                                               ; preds = %68, %62
  %79 = landingpad { ptr, i32 }
          cleanup
  %80 = extractvalue { ptr, i32 } %79, 0
  store ptr %80, ptr %10, align 8
  %81 = extractvalue { ptr, i32 } %79, 1
  store i32 %81, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 2, ptr %17) #6
  br label %82

82:                                               ; preds = %78, %74
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  br label %83

83:                                               ; preds = %82, %51
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #6
  br label %84

84:                                               ; preds = %83, %47
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #6
  br label %85

85:                                               ; preds = %84, %43
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  br label %88

86:                                               ; preds = %38
  store i1 true, ptr %8, align 1
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #6
  %87 = load i1, ptr %8, align 1
  br i1 %87, label %90, label %89

88:                                               ; preds = %85, %39
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #6
  call void @_ZN6sparta28ReducedProductAbstractDomainI18DexTypeEnvironmentJNS_19AbstractEnvironmentINS_15PatriciaTreeMapIj13DexTypeDomainNS_17TopValueInterfaceIS4_EEEEEENS2_INS3_IPK8DexFieldS4_S6_EEEENS2_INS3_IjNS_22ConstantAbstractDomainIbEENS5_ISF_EEEEEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %0) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  br label %91

89:                                               ; preds = %86
  call void @_ZN6sparta28ReducedProductAbstractDomainI18DexTypeEnvironmentJNS_19AbstractEnvironmentINS_15PatriciaTreeMapIj13DexTypeDomainNS_17TopValueInterfaceIS4_EEEEEENS2_INS3_IPK8DexFieldS4_S6_EEEENS2_INS3_IjNS_22ConstantAbstractDomainIbEENS5_ISF_EEEEEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %0) #6
  br label %90

90:                                               ; preds = %89, %86
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  ret void

91:                                               ; preds = %88
  %92 = load ptr, ptr %10, align 8
  %93 = load i32, ptr %11, align 4
  %94 = insertvalue { ptr, i32 } poison, ptr %92, 0
  %95 = insertvalue { ptr, i32 } %94, i32 %93, 1
  resume { ptr, i32 } %95
}

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

declare noundef zeroext i1 @_ZNK6IRCode18editable_cfg_builtEv(ptr noundef nonnull align 8 dereferenceable(32)) #2

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

declare void @_ZNK3cfg16ControlFlowGraph22get_param_instructionsEv(ptr dead_on_unwind writable sret(%"class.boost::sub_range") align 8, ptr noundef nonnull align 8 dereferenceable(160)) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK6IRCode22get_param_instructionsEv(ptr dead_on_unwind noalias writable sret(%"class.boost::sub_range") align 8, ptr noundef nonnull align 8 dereferenceable(32)) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z19InstructionIterableIN5boost9sub_rangeI6IRListEEEN7ir_list23InstructionIterableImplILb0EEERT_(ptr dead_on_unwind noalias writable sret(%"class.ir_list::InstructionIterableImpl") align 8, ptr noundef nonnull align 8 dereferenceable(16)) #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7ir_list23InstructionIterableImplILb0EE5beginEv(ptr dead_on_unwind noalias writable sret(%"class.ir_list::InstructionIteratorImpl") align 8, ptr noundef nonnull align 8 dereferenceable(16)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7ir_list23InstructionIterableImplILb0EE3endEv(ptr dead_on_unwind noalias writable sret(%"class.ir_list::InstructionIteratorImpl") align 8, ptr noundef nonnull align 8 dereferenceable(16)) #1 align 2

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

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

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

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

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

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

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

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

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"short", !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.DexTypeEnvironment = type { %"class.sparta::ReducedProductAbstractDomain" }
%"class.sparta::ReducedProductAbstractDomain" = type { %"class.sparta::DirectProductAbstractDomain" }
%"class.sparta::DirectProductAbstractDomain" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Tuple_impl.1", %"struct.std::_Head_base.24" }
%"struct.std::_Tuple_impl.1" = type { %"struct.std::_Tuple_impl.2", %"struct.std::_Head_base.5" }
%"struct.std::_Tuple_impl.2" = type { %"struct.std::_Head_base" }
%"struct.std::_Head_base" = type { %"class.sparta::AbstractEnvironment" }
%"class.sparta::AbstractEnvironment" = type { %"class.sparta::AbstractDomainScaffolding" }
%"class.sparta::AbstractDomainScaffolding" = type { i32, %"class.sparta::environment_impl::MapValue" }
%"class.sparta::environment_impl::MapValue" = type { %"class.sparta::PatriciaTreeMap" }
%"class.sparta::PatriciaTreeMap" = type { %"class.sparta::pt_core::PatriciaTreeCore" }
%"class.sparta::pt_core::PatriciaTreeCore" = type { %"class.boost::intrusive_ptr" }
%"class.boost::intrusive_ptr" = type { ptr }
%"struct.std::_Head_base.5" = type { %"class.sparta::AbstractEnvironment.6" }
%"class.sparta::AbstractEnvironment.6" = type { %"class.sparta::AbstractDomainScaffolding.7" }
%"class.sparta::AbstractDomainScaffolding.7" = type { i32, %"class.sparta::environment_impl::MapValue.12" }
%"class.sparta::environment_impl::MapValue.12" = type { %"class.sparta::PatriciaTreeMap.15" }
%"class.sparta::PatriciaTreeMap.15" = type { %"class.sparta::pt_core::PatriciaTreeCore.20" }
%"class.sparta::pt_core::PatriciaTreeCore.20" = type { %"class.boost::intrusive_ptr.21" }
%"class.boost::intrusive_ptr.21" = type { ptr }
%"struct.std::_Head_base.24" = type { %"class.sparta::AbstractEnvironment.25" }
%"class.sparta::AbstractEnvironment.25" = type { %"class.sparta::AbstractDomainScaffolding.26" }
%"class.sparta::AbstractDomainScaffolding.26" = type { i32, %"class.sparta::environment_impl::MapValue.31" }
%"class.sparta::environment_impl::MapValue.31" = type { %"class.sparta::PatriciaTreeMap.34" }
%"class.sparta::PatriciaTreeMap.34" = type { %"class.sparta::pt_core::PatriciaTreeCore.39" }
%"class.sparta::pt_core::PatriciaTreeCore.39" = type { %"class.boost::intrusive_ptr.40" }
%"class.boost::intrusive_ptr.40" = type { ptr }
%"class.boost::sub_range" = type { %"class.boost::range_detail::sub_range_base" }
%"class.boost::range_detail::sub_range_base" = type { %"class.boost::range_detail::sub_range_base.43" }
%"class.boost::range_detail::sub_range_base.43" = type { %"class.boost::iterator_range" }
%"class.boost::iterator_range" = type { %"class.boost::iterator_range_detail::iterator_range_base" }
%"class.boost::iterator_range_detail::iterator_range_base" = type { %"class.boost::iterator_range_detail::iterator_range_base.44" }
%"class.boost::iterator_range_detail::iterator_range_base.44" = type { %"class.boost::intrusive::list_iterator", %"class.boost::intrusive::list_iterator" }
%"class.boost::intrusive::list_iterator" = type { %"struct.boost::intrusive::iiterator_members" }
%"struct.boost::intrusive::iiterator_members" = type { ptr }
%"class.ir_list::InstructionIterableImpl" = type { %"class.boost::intrusive::list_iterator", %"class.boost::intrusive::list_iterator" }
%"class.ir_list::InstructionIteratorImpl" = type { %"class.boost::intrusive::list_iterator", %"class.boost::intrusive::list_iterator" }

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN13type_analyzer6global15env_with_paramsEPK6IRCodeRKN6sparta19AbstractEnvironmentINS4_15PatriciaTreeMapIt13DexTypeDomainNS4_17TopValueInterfaceIS7_EEEEEE(ptr dead_on_unwind noalias nonnull writable sret(%class.DexTypeEnvironment) align 8 %0, ptr noundef %1, ptr noundef nonnull align 8 dereferenceable(16) %2) local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.boost::sub_range", align 8
  %5 = alloca %"class.ir_list::InstructionIterableImpl", align 8
  %6 = alloca %"class.ir_list::InstructionIteratorImpl", align 8
  %7 = alloca %"class.ir_list::InstructionIteratorImpl", align 8
  %8 = alloca i16, align 2
  tail call void @_ZN18DexTypeEnvironmentC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %0)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #6
  %9 = invoke noundef zeroext i1 @_ZNK6IRCode18editable_cfg_builtEv(ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %10 unwind label %19

10:                                               ; preds = %3
  br i1 %9, label %11, label %13

11:                                               ; preds = %10
  %12 = tail call noundef nonnull align 8 dereferenceable(160) ptr @_ZNK6IRCode3cfgEv(ptr noundef nonnull align 8 dereferenceable(32) %1)
  invoke void @_ZNK3cfg16ControlFlowGraph22get_param_instructionsEv(ptr dead_on_unwind nonnull writable sret(%"class.boost::sub_range") align 8 %4, ptr noundef nonnull align 8 dereferenceable(160) %12)
          to label %14 unwind label %19

13:                                               ; preds = %10
  invoke void @_ZNK6IRCode22get_param_instructionsEv(ptr dead_on_unwind nonnull writable sret(%"class.boost::sub_range") align 8 %4, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %14 unwind label %19

14:                                               ; preds = %13, %11
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #6
  invoke void @_Z19InstructionIterableIN5boost9sub_rangeI6IRListEEEN7ir_list23InstructionIterableImplILb0EEERT_(ptr dead_on_unwind nonnull writable sret(%"class.ir_list::InstructionIterableImpl") align 8 %5, ptr noundef nonnull align 8 dereferenceable(16) %4)
          to label %15 unwind label %21

15:                                               ; preds = %14
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #6
  invoke void @_ZNK7ir_list23InstructionIterableImplILb0EE5beginEv(ptr dead_on_unwind nonnull writable sret(%"class.ir_list::InstructionIteratorImpl") align 8 %6, ptr noundef nonnull align 8 dereferenceable(16) %5)
          to label %16 unwind label %23

16:                                               ; preds = %15
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #6
  invoke void @_ZNK7ir_list23InstructionIterableImplILb0EE3endEv(ptr dead_on_unwind nonnull writable sret(%"class.ir_list::InstructionIteratorImpl") align 8 %7, ptr noundef nonnull align 8 dereferenceable(16) %5)
          to label %.preheader unwind label %.loopexit.split-lp

.preheader:                                       ; preds = %16, %36
  %.0 = phi i16 [ %32, %36 ], [ 0, %16 ]
  %17 = call noundef zeroext i1 @_ZNK7ir_list23InstructionIteratorImplILb0EEneERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(16) %7)
  br i1 %17, label %25, label %18

18:                                               ; preds = %.preheader
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #6
  ret void

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

21:                                               ; preds = %14
  %22 = landingpad { ptr, i32 }
          cleanup
  br label %44

23:                                               ; preds = %15
  %24 = landingpad { ptr, i32 }
          cleanup
  br label %43

.loopexit:                                        ; preds = %36
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %42

.loopexit.split-lp:                               ; preds = %16
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %42

25:                                               ; preds = %.preheader
  %26 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNK7ir_list23InstructionIteratorImplILb0EEdeEv(ptr noundef nonnull align 8 dereferenceable(16) %6)
          to label %27 unwind label %38

27:                                               ; preds = %25
  %28 = getelementptr inbounds i8, ptr %26, i64 24
  %29 = load ptr, ptr %28, align 8, !tbaa !5
  %30 = invoke noundef i32 @_ZNK13IRInstruction4destEv(ptr noundef nonnull align 8 dereferenceable(32) %29)
          to label %31 unwind label %38

31:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %8) #6
  %32 = add i16 %.0, 1
  store i16 %.0, ptr %8, align 2, !tbaa !8
  %33 = invoke noundef nonnull align 8 dereferenceable(56) ptr @_ZNK6sparta19AbstractEnvironmentINS_15PatriciaTreeMapIt13DexTypeDomainNS_17TopValueInterfaceIS2_EEEEE3getERKt(ptr noundef nonnull align 8 dereferenceable(16) %2, ptr noundef nonnull align 2 dereferenceable(2) %8)
          to label %34 unwind label %40

34:                                               ; preds = %31
  %35 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN18DexTypeEnvironment3setEjRK13DexTypeDomain(ptr noundef nonnull align 8 dereferenceable(48) %0, i32 noundef %30, ptr noundef nonnull align 8 dereferenceable(56) %33)
          to label %36 unwind label %40

36:                                               ; preds = %34
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %8) #6
  %37 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN7ir_list23InstructionIteratorImplILb0EEppEv(ptr noundef nonnull align 8 dereferenceable(16) %6)
          to label %.preheader unwind label %.loopexit

38:                                               ; preds = %27, %25
  %39 = landingpad { ptr, i32 }
          cleanup
  br label %42

40:                                               ; preds = %34, %31
  %41 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %8) #6
  br label %42

42:                                               ; preds = %.loopexit, %.loopexit.split-lp, %38, %40
  %.pn17 = phi { ptr, i32 } [ %41, %40 ], [ %39, %38 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #6
  br label %43

43:                                               ; preds = %42, %23
  %.pn17.pn = phi { ptr, i32 } [ %.pn17, %42 ], [ %24, %23 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #6
  br label %44

44:                                               ; preds = %21, %43, %19
  %.pn17.pn.pn.pn = phi { ptr, i32 } [ %20, %19 ], [ %.pn17.pn, %43 ], [ %22, %21 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #6
  call void @_ZN6sparta28ReducedProductAbstractDomainI18DexTypeEnvironmentJNS_19AbstractEnvironmentINS_15PatriciaTreeMapIj13DexTypeDomainNS_17TopValueInterfaceIS4_EEEEEENS2_INS3_IPK8DexFieldS4_S6_EEEENS2_INS3_IjNS_22ConstantAbstractDomainIbEENS5_ISF_EEEEEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %0) #6
  resume { ptr, i32 } %.pn17.pn.pn.pn
}

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

declare noundef zeroext i1 @_ZNK6IRCode18editable_cfg_builtEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2

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

declare void @_ZNK3cfg16ControlFlowGraph22get_param_instructionsEv(ptr dead_on_unwind writable sret(%"class.boost::sub_range") align 8, ptr noundef nonnull align 8 dereferenceable(160)) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK6IRCode22get_param_instructionsEv(ptr dead_on_unwind noalias writable sret(%"class.boost::sub_range") align 8, ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z19InstructionIterableIN5boost9sub_rangeI6IRListEEEN7ir_list23InstructionIterableImplILb0EEERT_(ptr dead_on_unwind noalias writable sret(%"class.ir_list::InstructionIterableImpl") align 8, ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7ir_list23InstructionIterableImplILb0EE5beginEv(ptr dead_on_unwind noalias writable sret(%"class.ir_list::InstructionIteratorImpl") align 8, ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7ir_list23InstructionIterableImplILb0EE3endEv(ptr dead_on_unwind noalias writable sret(%"class.ir_list::InstructionIteratorImpl") align 8, ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(48) ptr @_ZN18DexTypeEnvironment3setEjRK13DexTypeDomain(ptr noundef nonnull align 8 dereferenceable(48), i32 noundef, ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #1 align 2

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

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

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

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

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


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