; LLVM IR from facebook/redex :: opt/remove-builders (RemoveBuildersHelper)

; 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.UnorderedSet.132 = type { %"class.std::unordered_set.134" }
%"class.std::unordered_set.134" = type { %"class.std::_Hashtable.135" }
%"class.std::_Hashtable.135" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"class.std::function.184" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }

@.str.12 = external hidden unnamed_addr constant [93 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [19 x i8], align 1
@__PRETTY_FUNCTION__._Z19remove_builder_fromP9DexMethodP8DexClassR16BuilderTransformP7DexType = external hidden unnamed_addr constant [81 x i8], align 1
@_ZZ19remove_builder_fromP9DexMethodP8DexClassR16BuilderTransformP7DexTypeE11object_type = external hidden global ptr, align 8
@_ZGVZ19remove_builder_fromP9DexMethodP8DexClassR16BuilderTransformP7DexTypeE11object_type = external hidden global i64, align 8

; Function Attrs: nounwind
declare i32 @__cxa_guard_acquire(ptr) #0

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nounwind
declare void @__cxa_guard_abort(ptr) #0

; Function Attrs: nounwind
declare void @__cxa_guard_release(ptr) #0

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_Z11get_buildeeP7DexType(ptr noundef) #3

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z20get_non_init_methodsP6IRCodeP7DexType(ptr dead_on_unwind noalias writable sret(%class.UnorderedSet.132) align 8, ptr noundef, ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN16BuilderTransform14inline_methodsEP9DexMethodP7DexTypeRKSt8functionIF12UnorderedSetIS1_St4hashIS1_ESt8equal_toIS1_EEP6IRCodeS3_EE(ptr noundef nonnull align 8 dereferenceable(3208), ptr noundef, ptr noundef, ptr noundef nonnull align 8 dereferenceable(32)) #3 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z19remove_builder_fromP9DexMethodP8DexClassR16BuilderTransformP7DexType(ptr noundef %0, ptr noundef %1, ptr noundef nonnull align 8 dereferenceable(3208) %2, ptr noundef %3) #3 personality ptr @__gxx_personality_v0 {
  %5 = alloca i1, align 1
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i8, align 1
  %16 = alloca %class.UnorderedSet.132, align 8
  %17 = alloca %"class.std::function.184", align 8
  %18 = alloca ptr, align 8
  %19 = alloca %"class.std::function.184", align 8
  %20 = alloca i1, align 1
  %21 = alloca ptr, align 8
  %22 = alloca i1, align 1
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #0
  %23 = load ptr, ptr %7, align 8, !tbaa !5
  %24 = call noundef ptr @_ZNK8DexClass8get_typeEv(ptr noundef nonnull align 8 dereferenceable(176) %23)
  %25 = call noundef ptr @_Z11get_buildeeP7DexType(ptr noundef %24)
  store ptr %25, ptr %10, align 8, !tbaa !5
  %26 = load ptr, ptr %10, align 8, !tbaa !5
  %27 = icmp ne ptr %26, null
  br i1 %27, label %28, label %29

28:                                               ; preds = %4
  br label %31

29:                                               ; preds = %4
  call void (ptr, ptr, i32, ptr, i32, ptr, ...) @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef @.str.29, ptr noundef @.str.12, i32 noundef 1184, ptr noundef @__PRETTY_FUNCTION__._Z19remove_builder_fromP9DexMethodP8DexClassR16BuilderTransformP7DexType, i32 noundef 2, ptr noundef @.str.13) #7
  unreachable

30:                                               ; No predecessors!
  br label %31

31:                                               ; preds = %30, %28
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #0
  %32 = load ptr, ptr %9, align 8, !tbaa !5
  %33 = icmp ne ptr %32, null
  br i1 %33, label %34, label %36

34:                                               ; preds = %31
  %35 = load ptr, ptr %9, align 8, !tbaa !5
  br label %39

36:                                               ; preds = %31
  %37 = load ptr, ptr %7, align 8, !tbaa !5
  %38 = call noundef ptr @_ZNK8DexClass15get_super_classEv(ptr noundef nonnull align 8 dereferenceable(176) %37)
  br label %39

39:                                               ; preds = %36, %34
  %40 = phi ptr [ %35, %34 ], [ %38, %36 ]
  store ptr %40, ptr %11, align 8, !tbaa !5
  %41 = load atomic i8, ptr @_ZGVZ19remove_builder_fromP9DexMethodP8DexClassR16BuilderTransformP7DexTypeE11object_type acquire, align 8
  %42 = icmp eq i8 %41, 0
  br i1 %42, label %43, label %49, !prof !9

43:                                               ; preds = %39
  %44 = call i32 @__cxa_guard_acquire(ptr @_ZGVZ19remove_builder_fromP9DexMethodP8DexClassR16BuilderTransformP7DexTypeE11object_type) #0
  %45 = icmp ne i32 %44, 0
  br i1 %45, label %46, label %49

46:                                               ; preds = %43
  %47 = invoke noundef ptr @_ZN4type16java_lang_ObjectEv()
          to label %48 unwind label %54

48:                                               ; preds = %46
  store ptr %47, ptr @_ZZ19remove_builder_fromP9DexMethodP8DexClassR16BuilderTransformP7DexTypeE11object_type, align 8, !tbaa !5
  call void @__cxa_guard_release(ptr @_ZGVZ19remove_builder_fromP9DexMethodP8DexClassR16BuilderTransformP7DexTypeE11object_type) #0
  br label %49

49:                                               ; preds = %48, %43, %39
  %50 = load ptr, ptr %11, align 8, !tbaa !5
  %51 = load ptr, ptr @_ZZ19remove_builder_fromP9DexMethodP8DexClassR16BuilderTransformP7DexTypeE11object_type, align 8, !tbaa !5
  %52 = icmp ne ptr %50, %51
  br i1 %52, label %53, label %58

53:                                               ; preds = %49
  store i1 false, ptr %5, align 1
  store i32 1, ptr %14, align 4
  br label %136

54:                                               ; preds = %46
  %55 = landingpad { ptr, i32 }
          cleanup
  %56 = extractvalue { ptr, i32 } %55, 0
  store ptr %56, ptr %12, align 8
  %57 = extractvalue { ptr, i32 } %55, 1
  store i32 %57, ptr %13, align 4
  call void @__cxa_guard_abort(ptr @_ZGVZ19remove_builder_fromP9DexMethodP8DexClassR16BuilderTransformP7DexTypeE11object_type) #0
  br label %138

58:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #0
  store i8 0, ptr %15, align 1, !tbaa !10
  br label %59

59:                                               ; preds = %116, %58
  call void @llvm.lifetime.start.p0(i64 56, ptr %16) #0
  %60 = load ptr, ptr %6, align 8, !tbaa !5
  %61 = call noundef ptr @_ZN9DexMethod8get_codeEv(ptr noundef nonnull align 8 dereferenceable(88) %60)
  %62 = load ptr, ptr %7, align 8, !tbaa !5
  %63 = call noundef ptr @_ZNK8DexClass8get_typeEv(ptr noundef nonnull align 8 dereferenceable(176) %62)
  call void @_ZN12_GLOBAL__N_128get_non_trivial_init_methodsEP6IRCodeP7DexType(ptr dead_on_unwind writable sret(%class.UnorderedSet.132) align 8 %16, ptr noundef %61, ptr noundef %63)
  %64 = invoke noundef zeroext i1 @_ZNK12UnorderedSetIP9DexMethodSt4hashIS1_ESt8equal_toIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(56) %16)
          to label %65 unwind label %72

65:                                               ; preds = %59
  %66 = xor i1 %64, true
  call void @_ZN12UnorderedSetIP9DexMethodSt4hashIS1_ESt8equal_toIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %16) #0
  call void @llvm.lifetime.end.p0(i64 56, ptr %16) #0
  br i1 %66, label %67, label %117

67:                                               ; preds = %65
  store i8 1, ptr %15, align 1, !tbaa !10
  %68 = load ptr, ptr %6, align 8, !tbaa !5
  %69 = load ptr, ptr %11, align 8, !tbaa !5
  %70 = call noundef zeroext i1 @_ZN12_GLOBAL__N_131has_super_class_initializationsEP9DexMethodP7DexType(ptr noundef %68, ptr noundef %69)
  br i1 %70, label %71, label %76

71:                                               ; preds = %67
  store i1 false, ptr %5, align 1
  store i32 1, ptr %14, align 4
  br label %134

72:                                               ; preds = %59
  %73 = landingpad { ptr, i32 }
          cleanup
  %74 = extractvalue { ptr, i32 } %73, 0
  store ptr %74, ptr %12, align 8
  %75 = extractvalue { ptr, i32 } %73, 1
  store i32 %75, ptr %13, align 4
  call void @_ZN12UnorderedSetIP9DexMethodSt4hashIS1_ESt8equal_toIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %16) #0
  call void @llvm.lifetime.end.p0(i64 56, ptr %16) #0
  br label %135

76:                                               ; preds = %67
  %77 = load ptr, ptr %8, align 8, !tbaa !5
  %78 = load ptr, ptr %6, align 8, !tbaa !5
  %79 = load ptr, ptr %7, align 8, !tbaa !5
  %80 = call noundef ptr @_ZNK8DexClass8get_typeEv(ptr noundef nonnull align 8 dereferenceable(176) %79)
  call void @llvm.lifetime.start.p0(i64 32, ptr %17) #0
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #0
  store ptr @_ZN12_GLOBAL__N_128get_non_trivial_init_methodsEP6IRCodeP7DexType, ptr %18, align 8, !tbaa !5
  call void @_ZNSt8functionIF12UnorderedSetIP9DexMethodSt4hashIS2_ESt8equal_toIS2_EEP6IRCodeP7DexTypeEEC2IPSC_vEEOT_(ptr noundef nonnull align 8 dereferenceable(32) %17, ptr noundef nonnull align 8 dereferenceable(8) %18) #0
  store i1 false, ptr %20, align 1
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #0
  store i1 false, ptr %22, align 1
  %81 = invoke noundef zeroext i1 @_ZN16BuilderTransform14inline_methodsEP9DexMethodP7DexTypeRKSt8functionIF12UnorderedSetIS1_St4hashIS1_ESt8equal_toIS1_EEP6IRCodeS3_EE(ptr noundef nonnull align 8 dereferenceable(3208) %77, ptr noundef %78, ptr noundef %80, ptr noundef nonnull align 8 dereferenceable(32) %17)
          to label %82 unwind label %101

82:                                               ; preds = %76
  br i1 %81, label %83, label %92

83:                                               ; preds = %82
  %84 = load ptr, ptr %8, align 8, !tbaa !5
  %85 = load ptr, ptr %6, align 8, !tbaa !5
  %86 = load ptr, ptr %7, align 8, !tbaa !5
  %87 = invoke noundef ptr @_ZNK8DexClass8get_typeEv(ptr noundef nonnull align 8 dereferenceable(176) %86)
          to label %88 unwind label %101

88:                                               ; preds = %83
  call void @llvm.lifetime.start.p0(i64 32, ptr %19) #0
  store i1 true, ptr %20, align 1
  store ptr @_Z20get_non_init_methodsP6IRCodeP7DexType, ptr %21, align 8, !tbaa !5
  call void @_ZNSt8functionIF12UnorderedSetIP9DexMethodSt4hashIS2_ESt8equal_toIS2_EEP6IRCodeP7DexTypeEEC2IPSC_vEEOT_(ptr noundef nonnull align 8 dereferenceable(32) %19, ptr noundef nonnull align 8 dereferenceable(8) %21) #0
  store i1 true, ptr %22, align 1
  %89 = invoke noundef zeroext i1 @_ZN16BuilderTransform14inline_methodsEP9DexMethodP7DexTypeRKSt8functionIF12UnorderedSetIS1_St4hashIS1_ESt8equal_toIS1_EEP6IRCodeS3_EE(ptr noundef nonnull align 8 dereferenceable(3208) %84, ptr noundef %85, ptr noundef %87, ptr noundef nonnull align 8 dereferenceable(32) %19)
          to label %90 unwind label %105

90:                                               ; preds = %88
  %91 = xor i1 %89, true
  br label %92

92:                                               ; preds = %90, %82
  %93 = phi i1 [ true, %82 ], [ %91, %90 ]
  %94 = load i1, ptr %22, align 1
  br i1 %94, label %95, label %96

95:                                               ; preds = %92
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #0
  br label %96

96:                                               ; preds = %95, %92
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #0
  %97 = load i1, ptr %20, align 1
  br i1 %97, label %98, label %99

98:                                               ; preds = %96
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #0
  br label %99

99:                                               ; preds = %98, %96
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #0
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #0
  br i1 %93, label %100, label %116

100:                                              ; preds = %99
  store i1 false, ptr %5, align 1
  store i32 1, ptr %14, align 4
  br label %134

101:                                              ; preds = %83, %76
  %102 = landingpad { ptr, i32 }
          cleanup
  %103 = extractvalue { ptr, i32 } %102, 0
  store ptr %103, ptr %12, align 8
  %104 = extractvalue { ptr, i32 } %102, 1
  store i32 %104, ptr %13, align 4
  br label %115

105:                                              ; preds = %88
  %106 = landingpad { ptr, i32 }
          cleanup
  %107 = extractvalue { ptr, i32 } %106, 0
  store ptr %107, ptr %12, align 8
  %108 = extractvalue { ptr, i32 } %106, 1
  store i32 %108, ptr %13, align 4
  %109 = load i1, ptr %22, align 1
  br i1 %109, label %110, label %111

110:                                              ; preds = %105
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #0
  br label %111

111:                                              ; preds = %110, %105
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #0
  %112 = load i1, ptr %20, align 1
  br i1 %112, label %113, label %114

113:                                              ; preds = %111
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #0
  br label %114

114:                                              ; preds = %113, %111
  br label %115

115:                                              ; preds = %114, %101
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #0
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #0
  br label %135

116:                                              ; preds = %99
  br label %59, !llvm.loop !12

117:                                              ; preds = %65
  %118 = load ptr, ptr %6, align 8, !tbaa !5
  %119 = load ptr, ptr %7, align 8, !tbaa !5
  %120 = call noundef zeroext i1 @_ZN12_GLOBAL__N_126update_buildee_constructorEP9DexMethodP8DexClass(ptr noundef %118, ptr noundef %119)
  br i1 %120, label %122, label %121

121:                                              ; preds = %117
  store i1 false, ptr %5, align 1
  store i32 1, ptr %14, align 4
  br label %134

122:                                              ; preds = %117
  %123 = load ptr, ptr %6, align 8, !tbaa !5
  %124 = load ptr, ptr %7, align 8, !tbaa !5
  %125 = call noundef zeroext i1 @_ZN12_GLOBAL__N_114remove_builderEP9DexMethodP8DexClass(ptr noundef %123, ptr noundef %124)
  br i1 %125, label %127, label %126

126:                                              ; preds = %122
  store i1 false, ptr %5, align 1
  store i32 1, ptr %14, align 4
  br label %134

127:                                              ; preds = %122
  %128 = load i8, ptr %15, align 1, !tbaa !10, !range !14, !noundef !15
  %129 = trunc i8 %128 to i1
  br i1 %129, label %130, label %133

130:                                              ; preds = %127
  %131 = load ptr, ptr %6, align 8, !tbaa !5
  %132 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_ZN12_GLOBAL__N_124remove_super_class_callsEP9DexMethodP7DexType(ptr noundef %131, ptr noundef %132)
  br label %133

133:                                              ; preds = %130, %127
  store i1 true, ptr %5, align 1
  store i32 1, ptr %14, align 4
  br label %134

134:                                              ; preds = %133, %126, %121, %100, %71
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #0
  br label %136

135:                                              ; preds = %115, %72
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #0
  br label %138

136:                                              ; preds = %134, %53
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #0
  %137 = load i1, ptr %5, align 1
  ret i1 %137

138:                                              ; preds = %135, %54
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #0
  br label %139

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

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

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

declare noundef ptr @_ZN4type16java_lang_ObjectEv() #6

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN12_GLOBAL__N_128get_non_trivial_init_methodsEP6IRCodeP7DexType(ptr dead_on_unwind noalias writable sret(%class.UnorderedSet.132) align 8, ptr noundef, ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZN12_GLOBAL__N_131has_super_class_initializationsEP9DexMethodP7DexType(ptr noundef, ptr noundef) #3

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

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZN12_GLOBAL__N_126update_buildee_constructorEP9DexMethodP8DexClass(ptr noundef, ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZN12_GLOBAL__N_114remove_builderEP9DexMethodP8DexClass(ptr noundef, ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN12_GLOBAL__N_124remove_super_class_callsEP9DexMethodP7DexType(ptr noundef, ptr noundef) #3

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

attributes #0 = { nounwind }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #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 = { 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 = { "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 = { 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 = !{!"branch_weights", i32 1, i32 1048575}
!10 = !{!11, !11, i64 0}
!11 = !{!"bool", !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = !{i8 0, i8 2}
!15 = !{}


; 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.UnorderedSet.132 = type { %"class.std::unordered_set.134" }
%"class.std::unordered_set.134" = type { %"class.std::_Hashtable.135" }
%"class.std::_Hashtable.135" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"class.std::function.184" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }

@.str.12 = external hidden unnamed_addr constant [93 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [19 x i8], align 1
@__PRETTY_FUNCTION__._Z19remove_builder_fromP9DexMethodP8DexClassR16BuilderTransformP7DexType = external hidden unnamed_addr constant [81 x i8], align 1
@_ZZ19remove_builder_fromP9DexMethodP8DexClassR16BuilderTransformP7DexTypeE11object_type = external hidden local_unnamed_addr global ptr, align 8
@_ZGVZ19remove_builder_fromP9DexMethodP8DexClassR16BuilderTransformP7DexTypeE11object_type = external hidden global i64, align 8

; Function Attrs: nofree nounwind
declare i32 @__cxa_guard_acquire(ptr) local_unnamed_addr #0

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nofree nounwind
declare void @__cxa_guard_abort(ptr) local_unnamed_addr #0

; Function Attrs: nofree nounwind
declare void @__cxa_guard_release(ptr) local_unnamed_addr #0

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

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

; 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 #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_Z11get_buildeeP7DexType(ptr noundef) local_unnamed_addr #3

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z20get_non_init_methodsP6IRCodeP7DexType(ptr dead_on_unwind noalias writable sret(%class.UnorderedSet.132) align 8, ptr noundef, ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN16BuilderTransform14inline_methodsEP9DexMethodP7DexTypeRKSt8functionIF12UnorderedSetIS1_St4hashIS1_ESt8equal_toIS1_EEP6IRCodeS3_EE(ptr noundef nonnull align 8 dereferenceable(3208), ptr noundef, ptr noundef, ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #3 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z19remove_builder_fromP9DexMethodP8DexClassR16BuilderTransformP7DexType(ptr noundef %0, ptr noundef nonnull %1, ptr noundef nonnull align 8 dereferenceable(3208) %2, ptr noundef %3) local_unnamed_addr #3 personality ptr @__gxx_personality_v0 {
  %5 = alloca %class.UnorderedSet.132, align 8
  %6 = alloca %"class.std::function.184", align 8
  %7 = alloca ptr, align 8
  %8 = alloca %"class.std::function.184", align 8
  %9 = alloca ptr, align 8
  %10 = tail call noundef ptr @_ZNK8DexClass8get_typeEv(ptr noundef nonnull align 8 dereferenceable(176) %1)
  %11 = tail call noundef ptr @_Z11get_buildeeP7DexType(ptr noundef %10)
  %.not = icmp eq ptr %11, null
  br i1 %.not, label %12, label %13

12:                                               ; preds = %4
  tail call void (ptr, ptr, i32, ptr, i32, ptr, ...) @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef nonnull @.str.29, ptr noundef nonnull @.str.12, i32 noundef 1184, ptr noundef nonnull @__PRETTY_FUNCTION__._Z19remove_builder_fromP9DexMethodP8DexClassR16BuilderTransformP7DexType, i32 noundef 2, ptr noundef nonnull @.str.13) #7
  unreachable

13:                                               ; preds = %4
  %.not38 = icmp eq ptr %3, null
  br i1 %.not38, label %14, label %16

14:                                               ; preds = %13
  %15 = tail call noundef ptr @_ZNK8DexClass15get_super_classEv(ptr noundef nonnull align 8 dereferenceable(176) %1)
  br label %16

16:                                               ; preds = %13, %14
  %17 = phi ptr [ %15, %14 ], [ %3, %13 ]
  %18 = load atomic i8, ptr @_ZGVZ19remove_builder_fromP9DexMethodP8DexClassR16BuilderTransformP7DexTypeE11object_type acquire, align 8
  %19 = icmp eq i8 %18, 0
  br i1 %19, label %20, label %25, !prof !5

20:                                               ; preds = %16
  %21 = tail call i32 @__cxa_guard_acquire(ptr nonnull @_ZGVZ19remove_builder_fromP9DexMethodP8DexClassR16BuilderTransformP7DexTypeE11object_type) #8
  %.not39 = icmp eq i32 %21, 0
  br i1 %.not39, label %25, label %22

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

24:                                               ; preds = %22
  store ptr %23, ptr @_ZZ19remove_builder_fromP9DexMethodP8DexClassR16BuilderTransformP7DexTypeE11object_type, align 8, !tbaa !6
  tail call void @__cxa_guard_release(ptr nonnull @_ZGVZ19remove_builder_fromP9DexMethodP8DexClassR16BuilderTransformP7DexTypeE11object_type) #8
  br label %25

25:                                               ; preds = %24, %20, %16
  %26 = load ptr, ptr @_ZZ19remove_builder_fromP9DexMethodP8DexClassR16BuilderTransformP7DexTypeE11object_type, align 8, !tbaa !6
  %.not40 = icmp eq ptr %17, %26
  br i1 %.not40, label %.preheader, label %.loopexit

.preheader:                                       ; preds = %25
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %5) #8
  %27 = tail call noundef ptr @_ZN9DexMethod8get_codeEv(ptr noundef nonnull align 8 dereferenceable(88) %0)
  %28 = tail call noundef ptr @_ZNK8DexClass8get_typeEv(ptr noundef nonnull align 8 dereferenceable(176) %1)
  call void @_ZN12_GLOBAL__N_128get_non_trivial_init_methodsEP6IRCodeP7DexType(ptr dead_on_unwind nonnull writable sret(%class.UnorderedSet.132) align 8 %5, ptr noundef %27, ptr noundef %28)
  %29 = call noundef zeroext i1 @_ZNK12UnorderedSetIP9DexMethodSt4hashIS1_ESt8equal_toIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(56) %5)
  call void @_ZN12UnorderedSetIP9DexMethodSt4hashIS1_ESt8equal_toIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %5) #8
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %5) #8
  br i1 %29, label %._crit_edge, label %.lr.ph

30:                                               ; preds = %22
  %31 = landingpad { ptr, i32 }
          cleanup
  tail call void @__cxa_guard_abort(ptr nonnull @_ZGVZ19remove_builder_fromP9DexMethodP8DexClassR16BuilderTransformP7DexTypeE11object_type) #8
  br label %54

32:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %5) #8
  %33 = call noundef ptr @_ZN9DexMethod8get_codeEv(ptr noundef nonnull align 8 dereferenceable(88) %0)
  %34 = call noundef ptr @_ZNK8DexClass8get_typeEv(ptr noundef nonnull align 8 dereferenceable(176) %1)
  call void @_ZN12_GLOBAL__N_128get_non_trivial_init_methodsEP6IRCodeP7DexType(ptr dead_on_unwind nonnull writable sret(%class.UnorderedSet.132) align 8 %5, ptr noundef %33, ptr noundef %34)
  %35 = call noundef zeroext i1 @_ZNK12UnorderedSetIP9DexMethodSt4hashIS1_ESt8equal_toIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(56) %5)
  call void @_ZN12UnorderedSetIP9DexMethodSt4hashIS1_ESt8equal_toIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %5) #8
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %5) #8
  br i1 %35, label %._crit_edge, label %.lr.ph, !llvm.loop !10

.lr.ph:                                           ; preds = %.preheader, %32
  %36 = call noundef zeroext i1 @_ZN12_GLOBAL__N_131has_super_class_initializationsEP9DexMethodP7DexType(ptr noundef nonnull %0, ptr noundef %17)
  br i1 %36, label %.loopexit, label %37

37:                                               ; preds = %.lr.ph
  %38 = call noundef ptr @_ZNK8DexClass8get_typeEv(ptr noundef nonnull align 8 dereferenceable(176) %1)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #8
  store ptr @_ZN12_GLOBAL__N_128get_non_trivial_init_methodsEP6IRCodeP7DexType, ptr %7, align 8, !tbaa !6
  call void @_ZNSt8functionIF12UnorderedSetIP9DexMethodSt4hashIS2_ESt8equal_toIS2_EEP6IRCodeP7DexTypeEEC2IPSC_vEEOT_(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #8
  %39 = invoke noundef zeroext i1 @_ZN16BuilderTransform14inline_methodsEP9DexMethodP7DexTypeRKSt8functionIF12UnorderedSetIS1_St4hashIS1_ESt8equal_toIS1_EEP6IRCodeS3_EE(ptr noundef nonnull align 8 dereferenceable(3208) %2, ptr noundef nonnull %0, ptr noundef %38, ptr noundef nonnull align 8 dereferenceable(32) %6)
          to label %40 unwind label %45

40:                                               ; preds = %37
  br i1 %39, label %41, label %.thread44

41:                                               ; preds = %40
  %42 = call noundef ptr @_ZNK8DexClass8get_typeEv(ptr noundef nonnull align 8 dereferenceable(176) %1)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #8
  store ptr @_Z20get_non_init_methodsP6IRCodeP7DexType, ptr %9, align 8, !tbaa !6
  call void @_ZNSt8functionIF12UnorderedSetIP9DexMethodSt4hashIS2_ESt8equal_toIS2_EEP6IRCodeP7DexTypeEEC2IPSC_vEEOT_(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull align 8 dereferenceable(8) %9) #8
  %43 = invoke noundef zeroext i1 @_ZN16BuilderTransform14inline_methodsEP9DexMethodP7DexTypeRKSt8functionIF12UnorderedSetIS1_St4hashIS1_ESt8equal_toIS1_EEP6IRCodeS3_EE(ptr noundef nonnull align 8 dereferenceable(3208) %2, ptr noundef nonnull %0, ptr noundef %42, ptr noundef nonnull align 8 dereferenceable(32) %8)
          to label %44 unwind label %47

.thread44:                                        ; preds = %40
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #8
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #8
  br label %.loopexit

44:                                               ; preds = %41
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #8
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #8
  br i1 %43, label %32, label %.loopexit, !llvm.loop !10

45:                                               ; preds = %37
  %46 = landingpad { ptr, i32 }
          cleanup
  br label %49

47:                                               ; preds = %41
  %48 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #8
  br label %49

49:                                               ; preds = %47, %45
  %.pn = phi { ptr, i32 } [ %48, %47 ], [ %46, %45 ]
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #8
  br label %54

._crit_edge:                                      ; preds = %32, %.preheader
  %50 = call noundef zeroext i1 @_ZN12_GLOBAL__N_126update_buildee_constructorEP9DexMethodP8DexClass(ptr noundef nonnull %0, ptr noundef nonnull %1)
  br i1 %50, label %51, label %.loopexit

51:                                               ; preds = %._crit_edge
  %.030.not.not.lcssa = xor i1 %29, true
  %52 = call noundef zeroext i1 @_ZN12_GLOBAL__N_114remove_builderEP9DexMethodP8DexClass(ptr noundef nonnull %0, ptr noundef nonnull %1)
  %brmerge.not = and i1 %52, %.030.not.not.lcssa
  br i1 %brmerge.not, label %53, label %.loopexit

53:                                               ; preds = %51
  call void @_ZN12_GLOBAL__N_124remove_super_class_callsEP9DexMethodP7DexType(ptr noundef nonnull %0, ptr noundef %17)
  br label %.loopexit

.loopexit:                                        ; preds = %.lr.ph, %44, %.thread44, %51, %._crit_edge, %53, %25
  %.135 = phi i1 [ false, %25 ], [ false, %._crit_edge ], [ %52, %51 ], [ true, %53 ], [ false, %.thread44 ], [ false, %44 ], [ false, %.lr.ph ]
  ret i1 %.135

54:                                               ; preds = %49, %30
  %.pn.pn = phi { ptr, i32 } [ %.pn, %49 ], [ %31, %30 ]
  resume { ptr, i32 } %.pn.pn
}

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

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

declare noundef ptr @_ZN4type16java_lang_ObjectEv() local_unnamed_addr #6

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN12_GLOBAL__N_128get_non_trivial_init_methodsEP6IRCodeP7DexType(ptr dead_on_unwind noalias writable sret(%class.UnorderedSet.132) align 8, ptr noundef, ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZN12_GLOBAL__N_131has_super_class_initializationsEP9DexMethodP7DexType(ptr noundef, ptr noundef) local_unnamed_addr #3

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

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZN12_GLOBAL__N_126update_buildee_constructorEP9DexMethodP8DexClass(ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZN12_GLOBAL__N_114remove_builderEP9DexMethodP8DexClass(ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN12_GLOBAL__N_124remove_super_class_callsEP9DexMethodP7DexType(ptr noundef, ptr noundef) local_unnamed_addr #3

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

attributes #0 = { nofree nounwind }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #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 = { 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 = { "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 = { noreturn }
attributes #8 = { 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 = !{!"branch_weights", i32 1, i32 1048575}
!6 = !{!7, !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}


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