; LLVM IR from facebook/redex :: libredex (MonitorCount)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.sparta::ConstantAbstractDomain" = type { %"class.sparta::acd_impl::ConstantAbstractValueRepr" }
%"class.sparta::acd_impl::ConstantAbstractValueRepr" = type { i32, i32 }
%"class.boost::intrusive::list_iterator" = type { %"struct.boost::intrusive::iiterator_members" }
%"struct.boost::intrusive::iiterator_members" = type { ptr }
%"class.boost::optional" = type { %"class.boost::optional_detail::tc_optional_base" }
%"class.boost::optional_detail::tc_optional_base" = type { i8, i32 }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%struct.MethodItemEntry = type { %"class.boost::intrusive::list_member_hook", i32, %union.anon.65 }
%"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.65 = type { ptr }

@.str.8 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [74 x i8], align 1
@__PRETTY_FUNCTION__._ZNK13monitor_count8Analyzer12analyze_edgeERKPN3cfg4EdgeERKN6sparta22ConstantAbstractDomainIjEE = external hidden unnamed_addr constant [115 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [53 x i8], align 1

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: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK13monitor_count8Analyzer12analyze_edgeERKPN3cfg4EdgeERKN6sparta22ConstantAbstractDomainIjEE(ptr dead_on_unwind noalias writable sret(%"class.sparta::ConstantAbstractDomain") align 4 %0, ptr noundef nonnull align 8 dereferenceable(256) %1, ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 4 dereferenceable(8) %3) unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca %"class.sparta::ConstantAbstractDomain", align 4
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca %"class.boost::intrusive::list_iterator", align 8
  %14 = alloca %"class.boost::intrusive::list_iterator", align 8
  %15 = alloca ptr, align 8
  %16 = alloca i16, align 2
  %17 = alloca %"class.boost::optional", align 4
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca %"class.std::__cxx11::basic_string", align 8
  store ptr %0, ptr %5, align 8
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  %21 = load ptr, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #8
  %22 = load ptr, ptr %8, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %9, ptr align 4 %22, i64 8, i1 false)
  %23 = invoke noundef zeroext i1 @_ZNK6sparta22ConstantAbstractDomainIjE8is_valueEv(ptr noundef nonnull align 4 dereferenceable(8) %9)
          to label %24 unwind label %33

24:                                               ; preds = %4
  br i1 %23, label %25, label %32

25:                                               ; preds = %24
  %26 = load ptr, ptr %7, align 8, !tbaa !5
  %27 = load ptr, ptr %26, align 8, !tbaa !5
  %28 = invoke noundef zeroext i8 @_ZNK3cfg4Edge4typeEv(ptr noundef nonnull align 8 dereferenceable(32) %27)
          to label %29 unwind label %33

29:                                               ; preds = %25
  %30 = zext i8 %28 to i32
  %31 = icmp ne i32 %30, 2
  br i1 %31, label %32, label %37

32:                                               ; preds = %29, %24
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %0, ptr align 4 %9, i64 8, i1 false)
  store i32 1, ptr %12, align 4
  br label %138

33:                                               ; preds = %25, %4
  %34 = landingpad { ptr, i32 }
          cleanup
  %35 = extractvalue { ptr, i32 } %34, 0
  store ptr %35, ptr %10, align 8
  %36 = extractvalue { ptr, i32 } %34, 1
  store i32 %36, ptr %11, align 4
  br label %139

37:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  %38 = load ptr, ptr %7, align 8, !tbaa !5
  %39 = load ptr, ptr %38, align 8, !tbaa !5
  %40 = invoke noundef ptr @_ZNK3cfg4Edge3srcEv(ptr noundef nonnull align 8 dereferenceable(32) %39)
          to label %41 unwind label %53

41:                                               ; preds = %37
  invoke void @_ZN3cfg5Block13get_last_insnEv(ptr dead_on_unwind writable sret(%"class.boost::intrusive::list_iterator") align 8 %13, ptr noundef nonnull align 8 dereferenceable(104) %40)
          to label %42 unwind label %53

42:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  %43 = load ptr, ptr %7, align 8, !tbaa !5
  %44 = load ptr, ptr %43, align 8, !tbaa !5
  %45 = invoke noundef ptr @_ZNK3cfg4Edge3srcEv(ptr noundef nonnull align 8 dereferenceable(32) %44)
          to label %46 unwind label %57

46:                                               ; preds = %42
  invoke void @_ZN3cfg5Block3endEv(ptr dead_on_unwind writable sret(%"class.boost::intrusive::list_iterator") align 8 %14, ptr noundef nonnull align 8 dereferenceable(104) %45)
          to label %47 unwind label %57

47:                                               ; preds = %46
  %48 = invoke noundef zeroext i1 @_ZN5boost9intrusiveneERKNS0_13list_iteratorINS0_8mhtraitsI15MethodItemEntryNS0_16list_member_hookIJEEEXadL_ZNS3_10list_hook_EEEEELb0EEES9_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %14)
          to label %49 unwind label %57

49:                                               ; preds = %47
  br i1 %48, label %50, label %51

50:                                               ; preds = %49
  br label %62

51:                                               ; preds = %49
  invoke void (ptr, ptr, i32, ptr, i32, ptr, ...) @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef @.str.8, ptr noundef @.str.9, i32 noundef 147, ptr noundef @__PRETTY_FUNCTION__._ZNK13monitor_count8Analyzer12analyze_edgeERKPN3cfg4EdgeERKN6sparta22ConstantAbstractDomainIjEE, i32 noundef 2, ptr noundef @.str.10) #9
          to label %52 unwind label %57

52:                                               ; preds = %51
  unreachable

53:                                               ; preds = %41, %37
  %54 = landingpad { ptr, i32 }
          cleanup
  %55 = extractvalue { ptr, i32 } %54, 0
  store ptr %55, ptr %10, align 8
  %56 = extractvalue { ptr, i32 } %54, 1
  store i32 %56, ptr %11, align 4
  br label %137

57:                                               ; preds = %51, %47, %46, %42
  %58 = landingpad { ptr, i32 }
          cleanup
  %59 = extractvalue { ptr, i32 } %58, 0
  store ptr %59, ptr %10, align 8
  %60 = extractvalue { ptr, i32 } %58, 1
  store i32 %60, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  br label %137

61:                                               ; No predecessors!
  br label %62

62:                                               ; preds = %61, %50
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #8
  %63 = invoke noundef ptr @_ZNK5boost9intrusive13list_iteratorINS0_8mhtraitsI15MethodItemEntryNS0_16list_member_hookIJEEEXadL_ZNS3_10list_hook_EEEEELb0EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %13)
          to label %64 unwind label %72

64:                                               ; preds = %62
  %65 = getelementptr inbounds %struct.MethodItemEntry, ptr %63, i32 0, i32 2
  %66 = load ptr, ptr %65, align 8, !tbaa !9
  store ptr %66, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 2, ptr %16) #8
  %67 = load ptr, ptr %15, align 8, !tbaa !5
  %68 = invoke noundef zeroext i16 @_ZNK13IRInstruction6opcodeEv(ptr noundef nonnull align 8 dereferenceable(32) %67)
          to label %69 unwind label %76

69:                                               ; preds = %64
  store i16 %68, ptr %16, align 2, !tbaa !10
  %70 = load i16, ptr %16, align 2, !tbaa !10
  %71 = zext i16 %70 to i32
  switch i32 %71, label %132 [
    i32 16, label %80
    i32 17, label %93
    i32 90, label %95
  ]

72:                                               ; preds = %62
  %73 = landingpad { ptr, i32 }
          cleanup
  %74 = extractvalue { ptr, i32 } %73, 0
  store ptr %74, ptr %10, align 8
  %75 = extractvalue { ptr, i32 } %73, 1
  store i32 %75, ptr %11, align 4
  br label %136

76:                                               ; preds = %93, %64
  %77 = landingpad { ptr, i32 }
          cleanup
  %78 = extractvalue { ptr, i32 } %77, 0
  store ptr %78, ptr %10, align 8
  %79 = extractvalue { ptr, i32 } %77, 1
  store i32 %79, ptr %11, align 4
  br label %135

80:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #8
  %81 = invoke i64 @_ZNK6sparta22ConstantAbstractDomainIjE12get_constantEv(ptr noundef nonnull align 4 dereferenceable(8) %9)
          to label %82 unwind label %89

82:                                               ; preds = %80
  %83 = getelementptr inbounds %"class.boost::optional", ptr %17, i32 0, i32 0
  store i64 %81, ptr %83, align 4
  %84 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNO5boost8optionalIjEdeEv(ptr noundef nonnull align 4 dereferenceable(8) %17)
          to label %85 unwind label %89

85:                                               ; preds = %82
  %86 = load i32, ptr %84, align 4, !tbaa !12
  %87 = sub i32 %86, 1
  invoke void @_ZN6sparta22ConstantAbstractDomainIjEC2Ej(ptr noundef nonnull align 4 dereferenceable(8) %0, i32 noundef %87)
          to label %88 unwind label %89

88:                                               ; preds = %85
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  store i32 1, ptr %12, align 4
  br label %134

89:                                               ; preds = %85, %82, %80
  %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
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  br label %135

93:                                               ; preds = %69
  invoke void @_ZN6sparta22ConstantAbstractDomainIjE6bottomEv(ptr dead_on_unwind writable sret(%"class.sparta::ConstantAbstractDomain") align 4 %0)
          to label %94 unwind label %76

94:                                               ; preds = %93
  store i32 1, ptr %12, align 4
  br label %134

95:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  %96 = load ptr, ptr %15, align 8, !tbaa !5
  %97 = invoke noundef ptr @_ZNK13IRInstruction10get_methodEv(ptr noundef nonnull align 8 dereferenceable(32) %96)
          to label %98 unwind label %111

98:                                               ; preds = %95
  %99 = invoke noundef ptr @_ZN12DexMethodRef6as_defEv(ptr noundef nonnull align 8 dereferenceable(26) %97)
          to label %100 unwind label %111

100:                                              ; preds = %98
  store ptr %99, ptr %18, align 8, !tbaa !5
  %101 = load ptr, ptr %18, align 8, !tbaa !5
  %102 = icmp ne ptr %101, null
  br i1 %102, label %103, label %128

103:                                              ; preds = %100
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr %20) #8
  %104 = load ptr, ptr %18, align 8, !tbaa !5
  invoke void @_ZNK9DexMethod27get_fully_deobfuscated_nameB5cxx11Ev(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %20, ptr noundef nonnull align 8 dereferenceable(88) %104)
          to label %105 unwind label %115

105:                                              ; preds = %103
  store ptr %20, ptr %19, align 8, !tbaa !5
  %106 = load ptr, ptr %19, align 8, !tbaa !5
  %107 = invoke noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %106, ptr noundef @.str.11)
          to label %108 unwind label %119

108:                                              ; preds = %105
  br i1 %107, label %109, label %123

109:                                              ; preds = %108
  invoke void @_ZN6sparta22ConstantAbstractDomainIjE6bottomEv(ptr dead_on_unwind writable sret(%"class.sparta::ConstantAbstractDomain") align 4 %0)
          to label %110 unwind label %119

110:                                              ; preds = %109
  store i32 1, ptr %12, align 4
  br label %124

111:                                              ; preds = %98, %95
  %112 = landingpad { ptr, i32 }
          cleanup
  %113 = extractvalue { ptr, i32 } %112, 0
  store ptr %113, ptr %10, align 8
  %114 = extractvalue { ptr, i32 } %112, 1
  store i32 %114, ptr %11, align 4
  br label %131

115:                                              ; preds = %103
  %116 = landingpad { ptr, i32 }
          cleanup
  %117 = extractvalue { ptr, i32 } %116, 0
  store ptr %117, ptr %10, align 8
  %118 = extractvalue { ptr, i32 } %116, 1
  store i32 %118, ptr %11, align 4
  br label %127

119:                                              ; preds = %109, %105
  %120 = landingpad { ptr, i32 }
          cleanup
  %121 = extractvalue { ptr, i32 } %120, 0
  store ptr %121, ptr %10, align 8
  %122 = extractvalue { ptr, i32 } %120, 1
  store i32 %122, ptr %11, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #8
  br label %127

123:                                              ; preds = %108
  store i32 0, ptr %12, align 4
  br label %124

124:                                              ; preds = %123, %110
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  %125 = load i32, ptr %12, align 4
  switch i32 %125, label %129 [
    i32 0, label %126
  ]

126:                                              ; preds = %124
  br label %128

127:                                              ; preds = %119, %115
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  br label %131

128:                                              ; preds = %126, %100
  store i32 2, ptr %12, align 4
  br label %129

129:                                              ; preds = %128, %124
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  %130 = load i32, ptr %12, align 4
  switch i32 %130, label %134 [
    i32 2, label %133
  ]

131:                                              ; preds = %127, %111
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  br label %135

132:                                              ; preds = %69
  br label %133

133:                                              ; preds = %132, %129
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %0, ptr align 4 %9, i64 8, i1 false)
  store i32 1, ptr %12, align 4
  br label %134

134:                                              ; preds = %133, %129, %94, %88
  call void @llvm.lifetime.end.p0(i64 2, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  br label %138

135:                                              ; preds = %131, %89, %76
  call void @llvm.lifetime.end.p0(i64 2, ptr %16) #8
  br label %136

136:                                              ; preds = %135, %72
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  br label %137

137:                                              ; preds = %136, %57, %53
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  br label %139

138:                                              ; preds = %134, %32
  call void @_ZN6sparta14AbstractDomainINS_22ConstantAbstractDomainIjEEED2Ev(ptr noundef nonnull align 4 dereferenceable(8) %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  ret void

139:                                              ; preds = %137, %33
  call void @_ZN6sparta14AbstractDomainINS_22ConstantAbstractDomainIjEEED2Ev(ptr noundef nonnull align 4 dereferenceable(8) %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  br label %140

140:                                              ; preds = %139
  %141 = load ptr, ptr %10, align 8
  %142 = load i32, ptr %11, align 4
  %143 = insertvalue { ptr, i32 } poison, ptr %141, 0
  %144 = insertvalue { ptr, i32 } %143, i32 %142, 1
  resume { ptr, i32 } %144
}

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

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

declare void @_ZN3cfg5Block13get_last_insnEv(ptr dead_on_unwind writable sret(%"class.boost::intrusive::list_iterator") align 8, ptr noundef nonnull align 8 dereferenceable(104)) #4

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

declare void @_ZN3cfg5Block3endEv(ptr dead_on_unwind writable sret(%"class.boost::intrusive::list_iterator") align 8, ptr noundef nonnull align 8 dereferenceable(104)) #4

; Function Attrs: noreturn
declare void @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, ...) #6

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZNK5boost9intrusive13list_iteratorINS0_8mhtraitsI15MethodItemEntryNS0_16list_member_hookIJEEEXadL_ZNS3_10list_hook_EEEEELb0EEptEv(ptr noundef nonnull align 8 dereferenceable(8)) #7 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6sparta22ConstantAbstractDomainIjE6bottomEv(ptr dead_on_unwind noalias writable sret(%"class.sparta::ConstantAbstractDomain") align 4) #3 align 2

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

declare noundef ptr @_ZN12DexMethodRef6as_defEv(ptr noundef nonnull align 8 dereferenceable(26)) #4

declare void @_ZNK9DexMethod27get_fully_deobfuscated_nameB5cxx11Ev(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(88)) #4

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

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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { "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 = { noreturn "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 #7 = { 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 #8 = { nounwind }
attributes #9 = { noreturn }

!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 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"_ZTS8IROpcode", !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"int", !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.sparta::ConstantAbstractDomain" = type { %"class.sparta::acd_impl::ConstantAbstractValueRepr" }
%"class.sparta::acd_impl::ConstantAbstractValueRepr" = type { i32, i32 }
%"class.boost::intrusive::list_iterator" = type { %"struct.boost::intrusive::iiterator_members" }
%"struct.boost::intrusive::iiterator_members" = type { ptr }
%"class.boost::optional" = type { %"class.boost::optional_detail::tc_optional_base" }
%"class.boost::optional_detail::tc_optional_base" = type { i8, i32 }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }

@.str.8 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [74 x i8], align 1
@__PRETTY_FUNCTION__._ZNK13monitor_count8Analyzer12analyze_edgeERKPN3cfg4EdgeERKN6sparta22ConstantAbstractDomainIjEE = external hidden unnamed_addr constant [115 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [53 x i8], align 1

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

; 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 void @_ZN6sparta14AbstractDomainINS_22ConstantAbstractDomainIjEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZNK6sparta22ConstantAbstractDomainIjE12get_constantEv(ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #2 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK13monitor_count8Analyzer12analyze_edgeERKPN3cfg4EdgeERKN6sparta22ConstantAbstractDomainIjEE(ptr dead_on_unwind noalias writable sret(%"class.sparta::ConstantAbstractDomain") align 4 %0, ptr nocapture noundef nonnull readnone align 8 dereferenceable(256) %1, ptr nocapture noundef nonnull readonly align 8 dereferenceable(8) %2, ptr nocapture noundef nonnull readonly align 4 dereferenceable(8) %3) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"class.sparta::ConstantAbstractDomain", align 8
  %6 = alloca %"class.boost::intrusive::list_iterator", align 8
  %7 = alloca %"class.boost::intrusive::list_iterator", align 8
  %8 = alloca %"class.boost::optional", align 8
  %9 = alloca %"class.std::__cxx11::basic_string", align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #7
  %10 = load i64, ptr %3, align 4
  store i64 %10, ptr %5, align 8
  %11 = call noundef zeroext i1 @_ZNK6sparta22ConstantAbstractDomainIjE8is_valueEv(ptr noundef nonnull align 4 dereferenceable(8) %5)
  br i1 %11, label %12, label %15

12:                                               ; preds = %4
  %13 = load ptr, ptr %2, align 8, !tbaa !5
  %14 = call noundef zeroext i8 @_ZNK3cfg4Edge4typeEv(ptr noundef nonnull align 8 dereferenceable(32) %13)
  %.not = icmp eq i8 %14, 2
  br i1 %.not, label %17, label %15

15:                                               ; preds = %12, %4
  %16 = load i64, ptr %5, align 8
  store i64 %16, ptr %0, align 4
  br label %71

17:                                               ; preds = %12
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  %18 = load ptr, ptr %2, align 8, !tbaa !5
  %19 = call noundef ptr @_ZNK3cfg4Edge3srcEv(ptr noundef nonnull align 8 dereferenceable(32) %18)
  invoke void @_ZN3cfg5Block13get_last_insnEv(ptr dead_on_unwind nonnull writable sret(%"class.boost::intrusive::list_iterator") align 8 %6, ptr noundef nonnull align 8 dereferenceable(104) %19)
          to label %20 unwind label %27

20:                                               ; preds = %17
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  %21 = load ptr, ptr %2, align 8, !tbaa !5
  %22 = call noundef ptr @_ZNK3cfg4Edge3srcEv(ptr noundef nonnull align 8 dereferenceable(32) %21)
  invoke void @_ZN3cfg5Block3endEv(ptr dead_on_unwind nonnull writable sret(%"class.boost::intrusive::list_iterator") align 8 %7, ptr noundef nonnull align 8 dereferenceable(104) %22)
          to label %23 unwind label %29

23:                                               ; preds = %20
  %24 = call noundef zeroext i1 @_ZN5boost9intrusiveneERKNS0_13list_iteratorINS0_8mhtraitsI15MethodItemEntryNS0_16list_member_hookIJEEEXadL_ZNS3_10list_hook_EEEEELb0EEES9_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7)
  br i1 %24, label %31, label %25

25:                                               ; preds = %23
  invoke void (ptr, ptr, i32, ptr, i32, ptr, ...) @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.9, i32 noundef 147, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK13monitor_count8Analyzer12analyze_edgeERKPN3cfg4EdgeERKN6sparta22ConstantAbstractDomainIjEE, i32 noundef 2, ptr noundef nonnull @.str.10) #8
          to label %26 unwind label %29

26:                                               ; preds = %25
  unreachable

27:                                               ; preds = %17
  %28 = landingpad { ptr, i32 }
          cleanup
  br label %70

29:                                               ; preds = %25, %20
  %30 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  br label %70

31:                                               ; preds = %23
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  %32 = invoke noundef ptr @_ZNK5boost9intrusive13list_iteratorINS0_8mhtraitsI15MethodItemEntryNS0_16list_member_hookIJEEEXadL_ZNS3_10list_hook_EEEEELb0EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %6)
          to label %33 unwind label %37

33:                                               ; preds = %31
  %34 = getelementptr inbounds i8, ptr %32, i64 24
  %35 = load ptr, ptr %34, align 8, !tbaa !9
  %36 = call noundef zeroext i16 @_ZNK13IRInstruction6opcodeEv(ptr noundef nonnull align 8 dereferenceable(32) %35)
  switch i16 %36, label %.critedge30 [
    i16 16, label %41
    i16 17, label %51
    i16 90, label %52
  ]

37:                                               ; preds = %31
  %38 = landingpad { ptr, i32 }
          cleanup
  br label %70

39:                                               ; preds = %51
  %40 = landingpad { ptr, i32 }
          cleanup
  br label %70

41:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #7
  %42 = invoke i64 @_ZNK6sparta22ConstantAbstractDomainIjE12get_constantEv(ptr noundef nonnull align 4 dereferenceable(8) %5)
          to label %43 unwind label %49

43:                                               ; preds = %41
  store i64 %42, ptr %8, align 8
  %44 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNO5boost8optionalIjEdeEv(ptr noundef nonnull align 4 dereferenceable(8) %8)
          to label %45 unwind label %49

45:                                               ; preds = %43
  %46 = load i32, ptr %44, align 4, !tbaa !10
  %47 = add i32 %46, -1
  invoke void @_ZN6sparta22ConstantAbstractDomainIjEC2Ej(ptr noundef nonnull align 4 dereferenceable(8) %0, i32 noundef %47)
          to label %48 unwind label %49

48:                                               ; preds = %45
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  br label %69

49:                                               ; preds = %45, %43, %41
  %50 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  br label %70

51:                                               ; preds = %33
  invoke void @_ZN6sparta22ConstantAbstractDomainIjE6bottomEv(ptr dead_on_unwind writable sret(%"class.sparta::ConstantAbstractDomain") align 4 %0)
          to label %69 unwind label %39

52:                                               ; preds = %33
  %53 = invoke noundef ptr @_ZNK13IRInstruction10get_methodEv(ptr noundef nonnull align 8 dereferenceable(32) %35)
          to label %54 unwind label %61

54:                                               ; preds = %52
  %55 = invoke noundef ptr @_ZN12DexMethodRef6as_defEv(ptr noundef nonnull align 8 dereferenceable(26) %53)
          to label %56 unwind label %61

56:                                               ; preds = %54
  %.not23 = icmp eq ptr %55, null
  br i1 %.not23, label %.critedge30, label %57

57:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #7
  invoke void @_ZNK9DexMethod27get_fully_deobfuscated_nameB5cxx11Ev(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %9, ptr noundef nonnull align 8 dereferenceable(88) %55)
          to label %58 unwind label %63

58:                                               ; preds = %57
  %59 = call noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef nonnull @.str.11)
  br i1 %59, label %60, label %.critedge

60:                                               ; preds = %58
  invoke void @_ZN6sparta22ConstantAbstractDomainIjE6bottomEv(ptr dead_on_unwind writable sret(%"class.sparta::ConstantAbstractDomain") align 4 %0)
          to label %67 unwind label %65

61:                                               ; preds = %54, %52
  %62 = landingpad { ptr, i32 }
          cleanup
  br label %70

63:                                               ; preds = %57
  %64 = landingpad { ptr, i32 }
          cleanup
  br label %70

65:                                               ; preds = %60
  %66 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #7
  br label %70

67:                                               ; preds = %60
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #7
  br label %69

.critedge:                                        ; preds = %58
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #7
  br label %.critedge30

.critedge30:                                      ; preds = %56, %.critedge, %33
  %68 = load i64, ptr %5, align 8
  store i64 %68, ptr %0, align 4
  br label %69

69:                                               ; preds = %67, %51, %.critedge30, %48
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  br label %71

70:                                               ; preds = %37, %61, %65, %63, %49, %39, %29, %27
  %.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %30, %29 ], [ %28, %27 ], [ %38, %37 ], [ %40, %39 ], [ %50, %49 ], [ %62, %61 ], [ %66, %65 ], [ %64, %63 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  call void @_ZN6sparta14AbstractDomainINS_22ConstantAbstractDomainIjEEED2Ev(ptr noundef nonnull align 4 dereferenceable(8) %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  resume { ptr, i32 } %.pn.pn.pn.pn.pn

71:                                               ; preds = %69, %15
  call void @_ZN6sparta14AbstractDomainINS_22ConstantAbstractDomainIjEEED2Ev(ptr noundef nonnull align 4 dereferenceable(8) %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  ret void
}

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

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

declare void @_ZN3cfg5Block13get_last_insnEv(ptr dead_on_unwind writable sret(%"class.boost::intrusive::list_iterator") align 8, ptr noundef nonnull align 8 dereferenceable(104)) local_unnamed_addr #3

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

declare void @_ZN3cfg5Block3endEv(ptr dead_on_unwind writable sret(%"class.boost::intrusive::list_iterator") align 8, ptr noundef nonnull align 8 dereferenceable(104)) local_unnamed_addr #3

; Function Attrs: noreturn
declare void @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, ...) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZNK5boost9intrusive13list_iteratorINS0_8mhtraitsI15MethodItemEntryNS0_16list_member_hookIJEEEXadL_ZNS3_10list_hook_EEEEELb0EEptEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #6 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6sparta22ConstantAbstractDomainIjE6bottomEv(ptr dead_on_unwind noalias writable sret(%"class.sparta::ConstantAbstractDomain") align 4) local_unnamed_addr #2 align 2

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

declare noundef ptr @_ZN12DexMethodRef6as_defEv(ptr noundef nonnull align 8 dereferenceable(26)) local_unnamed_addr #3

declare void @_ZNK9DexMethod27get_fully_deobfuscated_nameB5cxx11Ev(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(88)) local_unnamed_addr #3

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

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 = { noreturn "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 = { 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 #7 = { nounwind }
attributes #8 = { noreturn }

!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 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !7, i64 0}


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