; 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.DisjointUnionWithSignedConstantDomain = type { %"class.boost::variant.75" }
%"class.boost::variant.75" = type { i32, [4 x i8], %"class.boost::aligned_storage.76" }
%"class.boost::aligned_storage.76" = type { %"struct.boost::detail::aligned_storage::aligned_storage_imp.77" }
%"struct.boost::detail::aligned_storage::aligned_storage_imp.77" = type { %"union.boost::detail::aligned_storage::aligned_storage_imp<40, 8>::data_t" }
%"union.boost::detail::aligned_storage::aligned_storage_imp<40, 8>::data_t" = type { [40 x i8] }
%"class.boost::optional.435" = type { %"class.boost::optional_detail::optional_base.436" }
%"class.boost::optional_detail::optional_base.436" = type { i8, [7 x i8], %"class.boost::optional_detail::aligned_storage.437" }
%"class.boost::optional_detail::aligned_storage.437" = type { %"union.boost::optional_detail::aligned_storage<NewObjectDomain>::dummy_u" }
%"union.boost::optional_detail::aligned_storage<NewObjectDomain>::dummy_u" = type { [40 x i8] }
%class.SignedConstantDomain = type { %"struct.SignedConstantDomain::Bounds" }
%"struct.SignedConstantDomain::Bounds" = type { i8, i64, i64 }

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

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

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

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

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

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

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

declare noundef ptr @_Z10type_classPK7DexType(ptr noundef) #1

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

21:                                               ; preds = %3
  call void @_ZN37DisjointUnionWithSignedConstantDomainI17is_object_visitorJN6sparta22ConstantAbstractDomainIPK8DexFieldEENS1_17SetAbstractDomainINS1_7HashSetIlSt4hashIlESt8equal_toIlEEEEENS7_INS1_15PatriciaTreeSetIPK9DexStringEEEENS2_ISI_EENS2_IPK7DexTypeEENS2_IiEE25ObjectWithImmutAttrDomain15NewObjectDomainNS2_IPK13IRInstructionEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %9) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr %9) #5
  %22 = call noundef zeroext i1 @_ZNK5boost8optionalI15NewObjectDomainEntEv(ptr noundef nonnull align 8 dereferenceable(48) %8) #5
  br i1 %22, label %23, label %28

23:                                               ; preds = %21
  store i1 false, ptr %4, align 1
  store i32 1, ptr %12, align 4
  br label %104

24:                                               ; preds = %3
  %25 = landingpad { ptr, i32 }
          cleanup
  %26 = extractvalue { ptr, i32 } %25, 0
  store ptr %26, ptr %10, align 8
  %27 = extractvalue { ptr, i32 } %25, 1
  store i32 %27, ptr %11, align 4
  call void @_ZN37DisjointUnionWithSignedConstantDomainI17is_object_visitorJN6sparta22ConstantAbstractDomainIPK8DexFieldEENS1_17SetAbstractDomainINS1_7HashSetIlSt4hashIlESt8equal_toIlEEEEENS7_INS1_15PatriciaTreeSetIPK9DexStringEEEENS2_ISI_EENS2_IPK7DexTypeEENS2_IiEE25ObjectWithImmutAttrDomain15NewObjectDomainNS2_IPK13IRInstructionEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %9) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr %9) #5
  br label %106

28:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %29 = invoke noundef ptr @_ZN5boost8optionalI15NewObjectDomainEptEv(ptr noundef nonnull align 8 dereferenceable(48) %8)
          to label %30 unwind label %36

30:                                               ; preds = %28
  %31 = invoke noundef ptr @_ZNK15NewObjectDomain8get_typeEv(ptr noundef nonnull align 8 dereferenceable(40) %29)
          to label %32 unwind label %36

32:                                               ; preds = %30
  store ptr %31, ptr %13, align 8, !tbaa !5
  %33 = load ptr, ptr %13, align 8, !tbaa !5
  %34 = icmp ne ptr %33, null
  br i1 %34, label %40, label %35

35:                                               ; preds = %32
  store i1 false, ptr %4, align 1
  store i32 1, ptr %12, align 4
  br label %102

36:                                               ; preds = %30, %28
  %37 = landingpad { ptr, i32 }
          cleanup
  %38 = extractvalue { ptr, i32 } %37, 0
  store ptr %38, ptr %10, align 8
  %39 = extractvalue { ptr, i32 } %37, 1
  store i32 %39, ptr %11, align 4
  br label %103

40:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %41 = load ptr, ptr %13, align 8, !tbaa !5
  %42 = invoke noundef ptr @_ZN4type25get_element_type_if_arrayEPK7DexType(ptr noundef %41)
          to label %43 unwind label %59

43:                                               ; preds = %40
  %44 = invoke noundef ptr @_Z10type_classPK7DexType(ptr noundef %42)
          to label %45 unwind label %59

45:                                               ; preds = %43
  store ptr %44, ptr %14, align 8, !tbaa !5
  %46 = load ptr, ptr %14, align 8, !tbaa !5
  %47 = icmp ne ptr %46, null
  br i1 %47, label %48, label %58

48:                                               ; preds = %45
  %49 = load ptr, ptr %14, align 8, !tbaa !5
  %50 = invoke noundef zeroext i1 @_ZNK8DexClass11is_externalEv(ptr noundef nonnull align 8 dereferenceable(176) %49)
          to label %51 unwind label %59

51:                                               ; preds = %48
  br i1 %50, label %52, label %63

52:                                               ; preds = %51
  %53 = load ptr, ptr %13, align 8, !tbaa !5
  %54 = load ptr, ptr %6, align 8, !tbaa !5
  %55 = invoke noundef ptr @_ZNK13IRInstruction8get_typeEv(ptr noundef nonnull align 8 dereferenceable(32) %54)
          to label %56 unwind label %59

56:                                               ; preds = %52
  %57 = icmp ne ptr %53, %55
  br i1 %57, label %58, label %63

58:                                               ; preds = %56, %45
  store i1 false, ptr %4, align 1
  store i32 1, ptr %12, align 4
  br label %100

59:                                               ; preds = %52, %48, %43, %40
  %60 = landingpad { ptr, i32 }
          cleanup
  %61 = extractvalue { ptr, i32 } %60, 0
  store ptr %61, ptr %10, align 8
  %62 = extractvalue { ptr, i32 } %60, 1
  store i32 %62, ptr %11, align 4
  br label %101

63:                                               ; preds = %56, %51
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #5
  %64 = load ptr, ptr %13, align 8, !tbaa !5
  %65 = load ptr, ptr %6, align 8, !tbaa !5
  %66 = invoke noundef ptr @_ZNK13IRInstruction8get_typeEv(ptr noundef nonnull align 8 dereferenceable(32) %65)
          to label %67 unwind label %81

67:                                               ; preds = %63
  %68 = invoke noundef zeroext i1 @_ZN4type10check_castEPK7DexTypeS2_(ptr noundef %64, ptr noundef %66)
          to label %69 unwind label %81

69:                                               ; preds = %67
  %70 = zext i1 %68 to i8
  store i8 %70, ptr %15, align 1, !tbaa !9
  %71 = load ptr, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 48, ptr %16) #5
  %72 = load i8, ptr %15, align 1, !tbaa !9, !range !11, !noundef !12
  %73 = trunc i8 %72 to i1
  %74 = zext i1 %73 to i64
  %75 = select i1 %73, i32 1, i32 0
  %76 = sext i32 %75 to i64
  invoke void @_ZN20SignedConstantDomainC2El(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %76)
          to label %77 unwind label %85

77:                                               ; preds = %69
  invoke void @_ZN37DisjointUnionWithSignedConstantDomainI17is_object_visitorJN6sparta22ConstantAbstractDomainIPK8DexFieldEENS1_17SetAbstractDomainINS1_7HashSetIlSt4hashIlESt8equal_toIlEEEEENS7_INS1_15PatriciaTreeSetIPK9DexStringEEEENS2_ISI_EENS2_IPK7DexTypeEENS2_IiEE25ObjectWithImmutAttrDomain15NewObjectDomainNS2_IPK13IRInstructionEEEEC2I20SignedConstantDomainEET_(ptr noundef nonnull align 8 dereferenceable(48) %16, ptr noundef %17)
          to label %78 unwind label %89

78:                                               ; preds = %77
  %79 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN19ConstantEnvironment3setEjRK37DisjointUnionWithSignedConstantDomainI17is_object_visitorJN6sparta22ConstantAbstractDomainIPK8DexFieldEENS2_17SetAbstractDomainINS2_7HashSetIlSt4hashIlESt8equal_toIlEEEEENS8_INS2_15PatriciaTreeSetIPK9DexStringEEEENS3_ISJ_EENS3_IPK7DexTypeEENS3_IiEE25ObjectWithImmutAttrDomain15NewObjectDomainNS3_IPK13IRInstructionEEEE(ptr noundef nonnull align 8 dereferenceable(48) %71, i32 noundef -2, ptr noundef nonnull align 8 dereferenceable(48) %16)
          to label %80 unwind label %93

80:                                               ; preds = %78
  call void @_ZN37DisjointUnionWithSignedConstantDomainI17is_object_visitorJN6sparta22ConstantAbstractDomainIPK8DexFieldEENS1_17SetAbstractDomainINS1_7HashSetIlSt4hashIlESt8equal_toIlEEEEENS7_INS1_15PatriciaTreeSetIPK9DexStringEEEENS2_ISI_EENS2_IPK7DexTypeEENS2_IiEE25ObjectWithImmutAttrDomain15NewObjectDomainNS2_IPK13IRInstructionEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %16) #5
  call void @_ZN6sparta14AbstractDomainI20SignedConstantDomainED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr %16) #5
  store i1 true, ptr %4, align 1
  store i32 1, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #5
  br label %100

81:                                               ; preds = %67, %63
  %82 = landingpad { ptr, i32 }
          cleanup
  %83 = extractvalue { ptr, i32 } %82, 0
  store ptr %83, ptr %10, align 8
  %84 = extractvalue { ptr, i32 } %82, 1
  store i32 %84, ptr %11, align 4
  br label %99

85:                                               ; preds = %69
  %86 = landingpad { ptr, i32 }
          cleanup
  %87 = extractvalue { ptr, i32 } %86, 0
  store ptr %87, ptr %10, align 8
  %88 = extractvalue { ptr, i32 } %86, 1
  store i32 %88, ptr %11, align 4
  br label %98

89:                                               ; preds = %77
  %90 = landingpad { ptr, i32 }
          cleanup
  %91 = extractvalue { ptr, i32 } %90, 0
  store ptr %91, ptr %10, align 8
  %92 = extractvalue { ptr, i32 } %90, 1
  store i32 %92, ptr %11, align 4
  br label %97

93:                                               ; preds = %78
  %94 = landingpad { ptr, i32 }
          cleanup
  %95 = extractvalue { ptr, i32 } %94, 0
  store ptr %95, ptr %10, align 8
  %96 = extractvalue { ptr, i32 } %94, 1
  store i32 %96, ptr %11, align 4
  call void @_ZN37DisjointUnionWithSignedConstantDomainI17is_object_visitorJN6sparta22ConstantAbstractDomainIPK8DexFieldEENS1_17SetAbstractDomainINS1_7HashSetIlSt4hashIlESt8equal_toIlEEEEENS7_INS1_15PatriciaTreeSetIPK9DexStringEEEENS2_ISI_EENS2_IPK7DexTypeEENS2_IiEE25ObjectWithImmutAttrDomain15NewObjectDomainNS2_IPK13IRInstructionEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %16) #5
  br label %97

97:                                               ; preds = %93, %89
  call void @_ZN6sparta14AbstractDomainI20SignedConstantDomainED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #5
  br label %98

98:                                               ; preds = %97, %85
  call void @llvm.lifetime.end.p0(i64 48, ptr %16) #5
  br label %99

99:                                               ; preds = %98, %81
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #5
  br label %101

100:                                              ; preds = %80, %58
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  br label %102

101:                                              ; preds = %99, %59
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  br label %103

102:                                              ; preds = %100, %35
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  br label %104

103:                                              ; preds = %101, %36
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @_ZN5boost15optional_detail13optional_baseI15NewObjectDomainED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %8) #5
  br label %106

104:                                              ; preds = %102, %23
  call void @_ZN5boost15optional_detail13optional_baseI15NewObjectDomainED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %8) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr %8) #5
  %105 = load i1, ptr %4, align 1
  ret i1 %105

106:                                              ; preds = %103, %24
  call void @llvm.lifetime.end.p0(i64 48, ptr %8) #5
  br label %107

107:                                              ; preds = %106
  %108 = load ptr, ptr %10, align 8
  %109 = load i32, ptr %11, align 4
  %110 = insertvalue { ptr, i32 } poison, ptr %108, 0
  %111 = insertvalue { ptr, i32 } %110, i32 %109, 1
  resume { ptr, i32 } %111
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK37DisjointUnionWithSignedConstantDomainI17is_object_visitorJN6sparta22ConstantAbstractDomainIPK8DexFieldEENS1_17SetAbstractDomainINS1_7HashSetIlSt4hashIlESt8equal_toIlEEEEENS7_INS1_15PatriciaTreeSetIPK9DexStringEEEENS2_ISI_EENS2_IPK7DexTypeEENS2_IiEE25ObjectWithImmutAttrDomain15NewObjectDomainNS2_IPK13IRInstructionEEEE9maybe_getISS_EEN5boost8optionalIT_EEv(ptr dead_on_unwind noalias writable sret(%"class.boost::optional.435") align 8, ptr noundef nonnull align 8 dereferenceable(48)) #3 align 2

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

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

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

declare noundef ptr @_ZN4type25get_element_type_if_arrayEPK7DexType(ptr noundef) #1

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

declare noundef zeroext i1 @_ZN4type10check_castEPK7DexTypeS2_(ptr noundef, ptr noundef) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN5boost15optional_detail13optional_baseI15NewObjectDomainED2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #2 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 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 #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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.DisjointUnionWithSignedConstantDomain = type { %"class.boost::variant.75" }
%"class.boost::variant.75" = type { i32, [4 x i8], %"class.boost::aligned_storage.76" }
%"class.boost::aligned_storage.76" = type { %"struct.boost::detail::aligned_storage::aligned_storage_imp.77" }
%"struct.boost::detail::aligned_storage::aligned_storage_imp.77" = type { %"union.boost::detail::aligned_storage::aligned_storage_imp<40, 8>::data_t" }
%"union.boost::detail::aligned_storage::aligned_storage_imp<40, 8>::data_t" = type { [40 x i8] }
%"class.boost::optional.435" = type { %"class.boost::optional_detail::optional_base.436" }
%"class.boost::optional_detail::optional_base.436" = type { i8, [7 x i8], %"class.boost::optional_detail::aligned_storage.437" }
%"class.boost::optional_detail::aligned_storage.437" = type { %"union.boost::optional_detail::aligned_storage<NewObjectDomain>::dummy_u" }
%"union.boost::optional_detail::aligned_storage<NewObjectDomain>::dummy_u" = type { [40 x i8] }
%class.SignedConstantDomain = type { %"struct.SignedConstantDomain::Bounds" }
%"struct.SignedConstantDomain::Bounds" = type { i8, i64, i64 }

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

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

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

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

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

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

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

declare noundef ptr @_Z10type_classPK7DexType(ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN20constant_propagation17NewObjectAnalyzer19analyze_instance_ofEPKNS_31ImmutableAttributeAnalyzerStateEPK13IRInstructionP19ConstantEnvironment(ptr nocapture noundef readnone %0, ptr noundef nonnull %1, ptr noundef %2) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.boost::optional.435", align 8
  %5 = alloca %class.DisjointUnionWithSignedConstantDomain, align 8
  %6 = alloca %class.DisjointUnionWithSignedConstantDomain, align 8
  %7 = alloca %class.SignedConstantDomain, align 8
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %4) #5
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %5) #5
  %8 = tail call noundef i32 @_ZNK13IRInstruction3srcEt(ptr noundef nonnull align 8 dereferenceable(32) %1, i16 noundef zeroext 0)
  call void @_ZNK19ConstantEnvironment3getEj(ptr dead_on_unwind nonnull writable sret(%class.DisjointUnionWithSignedConstantDomain) align 8 %5, ptr noundef nonnull align 8 dereferenceable(48) %2, i32 noundef %8)
  invoke void @_ZNK37DisjointUnionWithSignedConstantDomainI17is_object_visitorJN6sparta22ConstantAbstractDomainIPK8DexFieldEENS1_17SetAbstractDomainINS1_7HashSetIlSt4hashIlESt8equal_toIlEEEEENS7_INS1_15PatriciaTreeSetIPK9DexStringEEEENS2_ISI_EENS2_IPK7DexTypeEENS2_IiEE25ObjectWithImmutAttrDomain15NewObjectDomainNS2_IPK13IRInstructionEEEE9maybe_getISS_EEN5boost8optionalIT_EEv(ptr dead_on_unwind nonnull writable sret(%"class.boost::optional.435") align 8 %4, ptr noundef nonnull align 8 dereferenceable(48) %5)
          to label %9 unwind label %11

9:                                                ; preds = %3
  call void @_ZN37DisjointUnionWithSignedConstantDomainI17is_object_visitorJN6sparta22ConstantAbstractDomainIPK8DexFieldEENS1_17SetAbstractDomainINS1_7HashSetIlSt4hashIlESt8equal_toIlEEEEENS7_INS1_15PatriciaTreeSetIPK9DexStringEEEENS2_ISI_EENS2_IPK7DexTypeEENS2_IiEE25ObjectWithImmutAttrDomain15NewObjectDomainNS2_IPK13IRInstructionEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %5) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %5) #5
  %10 = call noundef zeroext i1 @_ZNK5boost8optionalI15NewObjectDomainEntEv(ptr noundef nonnull align 8 dereferenceable(48) %4) #5
  br i1 %10, label %53, label %13

11:                                               ; preds = %3
  %12 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN37DisjointUnionWithSignedConstantDomainI17is_object_visitorJN6sparta22ConstantAbstractDomainIPK8DexFieldEENS1_17SetAbstractDomainINS1_7HashSetIlSt4hashIlESt8equal_toIlEEEEENS7_INS1_15PatriciaTreeSetIPK9DexStringEEEENS2_ISI_EENS2_IPK7DexTypeEENS2_IiEE25ObjectWithImmutAttrDomain15NewObjectDomainNS2_IPK13IRInstructionEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %5) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %5) #5
  br label %54

13:                                               ; preds = %9
  %14 = invoke noundef ptr @_ZN5boost8optionalI15NewObjectDomainEptEv(ptr noundef nonnull align 8 dereferenceable(48) %4)
          to label %15 unwind label %18

15:                                               ; preds = %13
  %16 = invoke noundef ptr @_ZNK15NewObjectDomain8get_typeEv(ptr noundef nonnull align 8 dereferenceable(40) %14)
          to label %17 unwind label %18

17:                                               ; preds = %15
  %.not = icmp eq ptr %16, null
  br i1 %.not, label %53, label %20

18:                                               ; preds = %15, %13
  %19 = landingpad { ptr, i32 }
          cleanup
  br label %52

20:                                               ; preds = %17
  %21 = invoke noundef ptr @_ZN4type25get_element_type_if_arrayEPK7DexType(ptr noundef nonnull %16)
          to label %22 unwind label %30

22:                                               ; preds = %20
  %23 = invoke noundef ptr @_Z10type_classPK7DexType(ptr noundef %21)
          to label %24 unwind label %30

24:                                               ; preds = %22
  %.not25 = icmp eq ptr %23, null
  br i1 %.not25, label %53, label %25

25:                                               ; preds = %24
  %26 = call noundef zeroext i1 @_ZNK8DexClass11is_externalEv(ptr noundef nonnull align 8 dereferenceable(176) %23)
  br i1 %26, label %27, label %32

27:                                               ; preds = %25
  %28 = invoke noundef ptr @_ZNK13IRInstruction8get_typeEv(ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %29 unwind label %30

29:                                               ; preds = %27
  %.not26 = icmp eq ptr %16, %28
  br i1 %.not26, label %32, label %53

30:                                               ; preds = %27, %22, %20
  %31 = landingpad { ptr, i32 }
          cleanup
  br label %52

32:                                               ; preds = %29, %25
  %33 = invoke noundef ptr @_ZNK13IRInstruction8get_typeEv(ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %34 unwind label %42

34:                                               ; preds = %32
  %35 = invoke noundef zeroext i1 @_ZN4type10check_castEPK7DexTypeS2_(ptr noundef nonnull %16, ptr noundef %33)
          to label %36 unwind label %42

36:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %6) #5
  %37 = zext i1 %35 to i64
  invoke void @_ZN20SignedConstantDomainC2El(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %37)
          to label %38 unwind label %44

38:                                               ; preds = %36
  invoke void @_ZN37DisjointUnionWithSignedConstantDomainI17is_object_visitorJN6sparta22ConstantAbstractDomainIPK8DexFieldEENS1_17SetAbstractDomainINS1_7HashSetIlSt4hashIlESt8equal_toIlEEEEENS7_INS1_15PatriciaTreeSetIPK9DexStringEEEENS2_ISI_EENS2_IPK7DexTypeEENS2_IiEE25ObjectWithImmutAttrDomain15NewObjectDomainNS2_IPK13IRInstructionEEEEC2I20SignedConstantDomainEET_(ptr noundef nonnull align 8 dereferenceable(48) %6, ptr noundef nonnull %7)
          to label %39 unwind label %46

39:                                               ; preds = %38
  %40 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN19ConstantEnvironment3setEjRK37DisjointUnionWithSignedConstantDomainI17is_object_visitorJN6sparta22ConstantAbstractDomainIPK8DexFieldEENS2_17SetAbstractDomainINS2_7HashSetIlSt4hashIlESt8equal_toIlEEEEENS8_INS2_15PatriciaTreeSetIPK9DexStringEEEENS3_ISJ_EENS3_IPK7DexTypeEENS3_IiEE25ObjectWithImmutAttrDomain15NewObjectDomainNS3_IPK13IRInstructionEEEE(ptr noundef nonnull align 8 dereferenceable(48) %2, i32 noundef -2, ptr noundef nonnull align 8 dereferenceable(48) %6)
          to label %41 unwind label %48

41:                                               ; preds = %39
  call void @_ZN37DisjointUnionWithSignedConstantDomainI17is_object_visitorJN6sparta22ConstantAbstractDomainIPK8DexFieldEENS1_17SetAbstractDomainINS1_7HashSetIlSt4hashIlESt8equal_toIlEEEEENS7_INS1_15PatriciaTreeSetIPK9DexStringEEEENS2_ISI_EENS2_IPK7DexTypeEENS2_IiEE25ObjectWithImmutAttrDomain15NewObjectDomainNS2_IPK13IRInstructionEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %6) #5
  call void @_ZN6sparta14AbstractDomainI20SignedConstantDomainED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %6) #5
  br label %53

42:                                               ; preds = %34, %32
  %43 = landingpad { ptr, i32 }
          cleanup
  br label %52

44:                                               ; preds = %36
  %45 = landingpad { ptr, i32 }
          cleanup
  br label %51

46:                                               ; preds = %38
  %47 = landingpad { ptr, i32 }
          cleanup
  br label %50

48:                                               ; preds = %39
  %49 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN37DisjointUnionWithSignedConstantDomainI17is_object_visitorJN6sparta22ConstantAbstractDomainIPK8DexFieldEENS1_17SetAbstractDomainINS1_7HashSetIlSt4hashIlESt8equal_toIlEEEEENS7_INS1_15PatriciaTreeSetIPK9DexStringEEEENS2_ISI_EENS2_IPK7DexTypeEENS2_IiEE25ObjectWithImmutAttrDomain15NewObjectDomainNS2_IPK13IRInstructionEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %6) #5
  br label %50

50:                                               ; preds = %48, %46
  %.pn = phi { ptr, i32 } [ %49, %48 ], [ %47, %46 ]
  call void @_ZN6sparta14AbstractDomainI20SignedConstantDomainED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
  br label %51

51:                                               ; preds = %50, %44
  %.pn.pn = phi { ptr, i32 } [ %.pn, %50 ], [ %45, %44 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %6) #5
  br label %52

52:                                               ; preds = %30, %51, %42, %18
  %.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %19, %18 ], [ %31, %30 ], [ %.pn.pn, %51 ], [ %43, %42 ]
  call void @_ZN5boost15optional_detail13optional_baseI15NewObjectDomainED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %4) #5
  br label %54

53:                                               ; preds = %17, %24, %29, %41, %9
  %.2 = phi i1 [ false, %9 ], [ false, %17 ], [ true, %41 ], [ false, %29 ], [ false, %24 ]
  call void @_ZN5boost15optional_detail13optional_baseI15NewObjectDomainED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %4) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %4) #5
  ret i1 %.2

54:                                               ; preds = %52, %11
  %.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn, %52 ], [ %12, %11 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %4) #5
  resume { ptr, i32 } %.pn.pn.pn.pn.pn.pn
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK37DisjointUnionWithSignedConstantDomainI17is_object_visitorJN6sparta22ConstantAbstractDomainIPK8DexFieldEENS1_17SetAbstractDomainINS1_7HashSetIlSt4hashIlESt8equal_toIlEEEEENS7_INS1_15PatriciaTreeSetIPK9DexStringEEEENS2_ISI_EENS2_IPK7DexTypeEENS2_IiEE25ObjectWithImmutAttrDomain15NewObjectDomainNS2_IPK13IRInstructionEEEE9maybe_getISS_EEN5boost8optionalIT_EEv(ptr dead_on_unwind noalias writable sret(%"class.boost::optional.435") align 8, ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #3 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZNK15NewObjectDomain8get_typeEv(ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #3 align 2

declare noundef ptr @_ZN4type25get_element_type_if_arrayEPK7DexType(ptr noundef) local_unnamed_addr #1

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

declare noundef zeroext i1 @_ZN4type10check_castEPK7DexTypeS2_(ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN5boost15optional_detail13optional_baseI15NewObjectDomainED2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #2 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 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 #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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)"}


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