; LLVM IR from facebook/redex :: service/method-dedup (ConstantValue)

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

%"class.std::basic_string_view" = type { i64, ptr }
%class.ConstantValue = type <{ i32, [4 x i8], i64, %"class.std::__cxx11::basic_string", i32, [4 x i8] }>
%"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.7 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [87 x i8], align 1
@__PRETTY_FUNCTION__._ZN13ConstantValueC2EPK8TypeTagsRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESA_j = external hidden unnamed_addr constant [96 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [51 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: mustprogress uwtable
define dso_local void @_ZN13ConstantValueC2EPK8TypeTagsRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESA_j(ptr noundef nonnull align 8 dereferenceable(52) %0, ptr noundef %1, ptr noundef nonnull align 8 dereferenceable(32) %2, ptr noundef nonnull align 8 dereferenceable(32) %3, i32 noundef %4) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca %"class.std::basic_string_view", align 8
  %15 = alloca i32, align 4
  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
  store i32 %4, ptr %10, align 4, !tbaa !9
  %16 = load ptr, ptr %6, align 8
  %17 = getelementptr inbounds %class.ConstantValue, ptr %16, i32 0, i32 3
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #7
  %18 = getelementptr inbounds %class.ConstantValue, ptr %16, i32 0, i32 4
  %19 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %19, ptr %18, align 8, !tbaa !11
  %20 = load ptr, ptr %8, align 8, !tbaa !5
  %21 = invoke noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %20, ptr noundef @.str.7)
          to label %22 unwind label %29

22:                                               ; preds = %5
  br i1 %21, label %23, label %33

23:                                               ; preds = %22
  %24 = getelementptr inbounds %class.ConstantValue, ptr %16, i32 0, i32 0
  store i32 0, ptr %24, align 8, !tbaa !17
  %25 = load ptr, ptr %9, align 8, !tbaa !5
  %26 = invoke noundef i64 @_ZNSt7__cxx115stollERKNS_12basic_stringIcSt11char_traitsIcESaIcEEEPmi(ptr noundef nonnull align 8 dereferenceable(32) %25, ptr noundef null, i32 noundef 10)
          to label %27 unwind label %29

27:                                               ; preds = %23
  %28 = getelementptr inbounds %class.ConstantValue, ptr %16, i32 0, i32 2
  store i64 %26, ptr %28, align 8, !tbaa !18
  br label %148

29:                                               ; preds = %138, %135, %129, %118, %114, %33, %23, %5
  %30 = landingpad { ptr, i32 }
          cleanup
  %31 = extractvalue { ptr, i32 } %30, 0
  store ptr %31, ptr %11, align 8
  %32 = extractvalue { ptr, i32 } %30, 1
  store i32 %32, ptr %12, align 4
  br label %149

33:                                               ; preds = %22
  %34 = load ptr, ptr %8, align 8, !tbaa !5
  %35 = invoke noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %34, ptr noundef @.str.8)
          to label %36 unwind label %29

36:                                               ; preds = %33
  br i1 %35, label %37, label %114

37:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  %38 = load ptr, ptr %9, align 8, !tbaa !5
  %39 = call { i64, ptr } @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEcvSt17basic_string_viewIcS2_EEv(ptr noundef nonnull align 8 dereferenceable(32) %38) #7
  %40 = getelementptr inbounds { i64, ptr }, ptr %14, i32 0, i32 0
  %41 = extractvalue { i64, ptr } %39, 0
  store i64 %41, ptr %40, align 8
  %42 = getelementptr inbounds { i64, ptr }, ptr %14, i32 0, i32 1
  %43 = extractvalue { i64, ptr } %39, 1
  store ptr %43, ptr %42, align 8
  %44 = getelementptr inbounds { i64, ptr }, ptr %14, i32 0, i32 0
  %45 = load i64, ptr %44, align 8
  %46 = getelementptr inbounds { i64, ptr }, ptr %14, i32 0, i32 1
  %47 = load ptr, ptr %46, align 8
  %48 = invoke noundef ptr @_ZN7DexType8get_typeESt17basic_string_viewIcSt11char_traitsIcEE(i64 %45, ptr %47)
          to label %49 unwind label %74

49:                                               ; preds = %37
  store ptr %48, ptr %13, align 8, !tbaa !5
  %50 = load ptr, ptr %13, align 8, !tbaa !5
  %51 = icmp ne ptr %50, null
  br i1 %51, label %52, label %83

52:                                               ; preds = %49
  %53 = load ptr, ptr %7, align 8, !tbaa !5
  %54 = load ptr, ptr %13, align 8, !tbaa !5
  %55 = invoke noundef zeroext i1 @_ZNK8TypeTags12has_type_tagEPK7DexType(ptr noundef nonnull align 8 dereferenceable(112) %53, ptr noundef %54)
          to label %56 unwind label %74

56:                                               ; preds = %52
  br i1 %55, label %57, label %83

57:                                               ; preds = %56
  %58 = getelementptr inbounds %class.ConstantValue, ptr %16, i32 0, i32 0
  store i32 1, ptr %58, align 8, !tbaa !17
  %59 = load ptr, ptr %7, align 8, !tbaa !5
  %60 = load ptr, ptr %13, align 8, !tbaa !5
  %61 = invoke noundef i32 @_ZNK8TypeTags12get_type_tagEPK7DexType(ptr noundef nonnull align 8 dereferenceable(112) %59, ptr noundef %60)
          to label %62 unwind label %74

62:                                               ; preds = %57
  %63 = zext i32 %61 to i64
  %64 = getelementptr inbounds %class.ConstantValue, ptr %16, i32 0, i32 2
  store i64 %63, ptr %64, align 8, !tbaa !18
  %65 = getelementptr inbounds %class.ConstantValue, ptr %16, i32 0, i32 2
  %66 = load i64, ptr %65, align 8, !tbaa !18
  %67 = icmp eq i64 %66, 0
  br i1 %67, label %68, label %82

68:                                               ; preds = %62
  br label %69

69:                                               ; preds = %68
  %70 = invoke noundef zeroext i1 @_Z12traceEnabled11TraceModulei(i32 noundef 73, i32 noundef 9)
          to label %71 unwind label %74

71:                                               ; preds = %69
  br i1 %70, label %72, label %78

72:                                               ; preds = %71
  invoke void (i32, i32, i1, ptr, ...) @_Z5trace11TraceModuleibPKcz(i32 noundef 73, i32 noundef 9, i1 noundef zeroext false, ptr noundef @.str.9)
          to label %73 unwind label %74

73:                                               ; preds = %72
  br label %78

74:                                               ; preds = %101, %98, %90, %87, %72, %69, %57, %52, %37
  %75 = landingpad { ptr, i32 }
          cleanup
  %76 = extractvalue { ptr, i32 } %75, 0
  store ptr %76, ptr %11, align 8
  %77 = extractvalue { ptr, i32 } %75, 1
  store i32 %77, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  br label %149

78:                                               ; preds = %73, %71
  br label %79

79:                                               ; preds = %78
  br label %80

80:                                               ; preds = %79
  %81 = getelementptr inbounds %class.ConstantValue, ptr %16, i32 0, i32 0
  store i32 3, ptr %81, align 8, !tbaa !17
  br label %82

82:                                               ; preds = %80, %62
  store i32 1, ptr %15, align 4
  br label %111

83:                                               ; preds = %56, %49
  %84 = load ptr, ptr %13, align 8, !tbaa !5
  %85 = icmp eq ptr %84, null
  br i1 %85, label %86, label %97

86:                                               ; preds = %83
  br label %87

87:                                               ; preds = %86
  %88 = invoke noundef zeroext i1 @_Z12traceEnabled11TraceModulei(i32 noundef 73, i32 noundef 9)
          to label %89 unwind label %74

89:                                               ; preds = %87
  br i1 %88, label %90, label %94

90:                                               ; preds = %89
  %91 = load ptr, ptr %9, align 8, !tbaa !5
  %92 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %91) #7
  invoke void (i32, i32, i1, ptr, ...) @_Z5trace11TraceModuleibPKcz(i32 noundef 73, i32 noundef 9, i1 noundef zeroext false, ptr noundef @.str.10, ptr noundef %92)
          to label %93 unwind label %74

93:                                               ; preds = %90
  br label %94

94:                                               ; preds = %93, %89
  br label %95

95:                                               ; preds = %94
  br label %96

96:                                               ; preds = %95
  br label %108

97:                                               ; preds = %83
  br label %98

98:                                               ; preds = %97
  %99 = invoke noundef zeroext i1 @_Z12traceEnabled11TraceModulei(i32 noundef 73, i32 noundef 9)
          to label %100 unwind label %74

100:                                              ; preds = %98
  br i1 %99, label %101, label %105

101:                                              ; preds = %100
  %102 = load ptr, ptr %9, align 8, !tbaa !5
  %103 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %102) #7
  invoke void (i32, i32, i1, ptr, ...) @_Z5trace11TraceModuleibPKcz(i32 noundef 73, i32 noundef 9, i1 noundef zeroext false, ptr noundef @.str.11, ptr noundef %103)
          to label %104 unwind label %74

104:                                              ; preds = %101
  br label %105

105:                                              ; preds = %104, %100
  br label %106

106:                                              ; preds = %105
  br label %107

107:                                              ; preds = %106
  br label %108

108:                                              ; preds = %107, %96
  br label %109

109:                                              ; preds = %108
  %110 = getelementptr inbounds %class.ConstantValue, ptr %16, i32 0, i32 0
  store i32 3, ptr %110, align 8, !tbaa !17
  store i32 0, ptr %15, align 4
  br label %111

111:                                              ; preds = %109, %82
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  %112 = load i32, ptr %15, align 4
  switch i32 %112, label %155 [
    i32 0, label %113
    i32 1, label %148
  ]

113:                                              ; preds = %111
  br label %147

114:                                              ; preds = %36
  %115 = load ptr, ptr %8, align 8, !tbaa !5
  %116 = invoke noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %115, ptr noundef @.str.12)
          to label %117 unwind label %29

117:                                              ; preds = %114
  br i1 %116, label %118, label %124

118:                                              ; preds = %117
  %119 = getelementptr inbounds %class.ConstantValue, ptr %16, i32 0, i32 0
  store i32 2, ptr %119, align 8, !tbaa !17
  %120 = load ptr, ptr %9, align 8, !tbaa !5
  %121 = getelementptr inbounds %class.ConstantValue, ptr %16, i32 0, i32 3
  %122 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %121, ptr noundef nonnull align 8 dereferenceable(32) %120)
          to label %123 unwind label %29

123:                                              ; preds = %118
  br label %146

124:                                              ; preds = %117
  %125 = load ptr, ptr %8, align 8, !tbaa !5
  %126 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %125) #7
  %127 = icmp ugt i64 %126, 1
  br i1 %127, label %128, label %129

128:                                              ; preds = %124
  br label %134

129:                                              ; preds = %124
  %130 = load ptr, ptr %8, align 8, !tbaa !5
  %131 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %130) #7
  invoke void (ptr, ptr, i32, ptr, i32, ptr, ...) @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef @.str.13, ptr noundef @.str.14, i32 noundef 70, ptr noundef @__PRETTY_FUNCTION__._ZN13ConstantValueC2EPK8TypeTagsRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESA_j, i32 noundef 2, ptr noundef @.str.15, ptr noundef %131) #8
          to label %132 unwind label %29

132:                                              ; preds = %129
  unreachable

133:                                              ; No predecessors!
  br label %134

134:                                              ; preds = %133, %128
  br label %135

135:                                              ; preds = %134
  %136 = invoke noundef zeroext i1 @_Z12traceEnabled11TraceModulei(i32 noundef 73, i32 noundef 9)
          to label %137 unwind label %29

137:                                              ; preds = %135
  br i1 %136, label %138, label %142

138:                                              ; preds = %137
  %139 = load ptr, ptr %8, align 8, !tbaa !5
  %140 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %139) #7
  invoke void (i32, i32, i1, ptr, ...) @_Z5trace11TraceModuleibPKcz(i32 noundef 73, i32 noundef 9, i1 noundef zeroext false, ptr noundef @.str.16, ptr noundef %140)
          to label %141 unwind label %29

141:                                              ; preds = %138
  br label %142

142:                                              ; preds = %141, %137
  br label %143

143:                                              ; preds = %142
  br label %144

144:                                              ; preds = %143
  %145 = getelementptr inbounds %class.ConstantValue, ptr %16, i32 0, i32 0
  store i32 3, ptr %145, align 8, !tbaa !17
  br label %146

146:                                              ; preds = %144, %123
  br label %147

147:                                              ; preds = %146, %113
  br label %148

148:                                              ; preds = %147, %111, %27
  ret void

149:                                              ; preds = %74, %29
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #7
  br label %150

150:                                              ; preds = %149
  %151 = load ptr, ptr %11, align 8
  %152 = load i32, ptr %12, align 4
  %153 = insertvalue { ptr, i32 } poison, ptr %151, 0
  %154 = insertvalue { ptr, i32 } %153, i32 %152, 1
  resume { ptr, i32 } %154

155:                                              ; preds = %111
  unreachable
}

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

; 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) #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_ZNSt7__cxx115stollERKNS_12basic_stringIcSt11char_traitsIcESaIcEEEPmi(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, i32 noundef) #4

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN7DexType8get_typeESt17basic_string_viewIcSt11char_traitsIcEE(i64, ptr) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare { i64, ptr } @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEcvSt17basic_string_viewIcS2_EEv(ptr noundef nonnull align 8 dereferenceable(32)) #1 align 2

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

declare noundef i32 @_ZNK8TypeTags12get_type_tagEPK7DexType(ptr noundef nonnull align 8 dereferenceable(112), ptr noundef) #5

declare noundef zeroext i1 @_Z12traceEnabled11TraceModulei(i32 noundef, i32 noundef) #5

declare void @_Z5trace11TraceModuleibPKcz(i32 noundef, i32 noundef, i1 noundef zeroext, ptr noundef, ...) #5

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) #2 align 2

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { "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 = { 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 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 48}
!12 = !{!"_ZTS13ConstantValue", !13, i64 0, !14, i64 8, !15, i64 16, !10, i64 48}
!13 = !{!"_ZTSN13ConstantValue12ConstantKindE", !7, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !16, i64 0, !14, i64 8, !7, i64 16}
!16 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!17 = !{!12, !13, i64 0}
!18 = !{!12, !14, i64 8}


; 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"

@.str.7 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [87 x i8], align 1
@__PRETTY_FUNCTION__._ZN13ConstantValueC2EPK8TypeTagsRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESA_j = external hidden unnamed_addr constant [96 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [51 x i8], align 1

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN13ConstantValueC2EPK8TypeTagsRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESA_j(ptr noundef nonnull align 8 dereferenceable(52) %0, ptr noundef %1, ptr noundef nonnull align 8 dereferenceable(32) %2, ptr noundef nonnull align 8 dereferenceable(32) %3, i32 noundef %4) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %6 = getelementptr inbounds i8, ptr %0, i64 16
  tail call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #6
  %7 = getelementptr inbounds i8, ptr %0, i64 48
  store i32 %4, ptr %7, align 8, !tbaa !5
  %8 = tail call noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %2, ptr noundef nonnull @.str.7)
  br i1 %8, label %9, label %15

9:                                                ; preds = %5
  store i32 0, ptr %0, align 8, !tbaa !15
  %10 = invoke noundef i64 @_ZNSt7__cxx115stollERKNS_12basic_stringIcSt11char_traitsIcESaIcEEEPmi(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef null, i32 noundef 10)
          to label %11 unwind label %13

11:                                               ; preds = %9
  %12 = getelementptr inbounds i8, ptr %0, i64 8
  store i64 %10, ptr %12, align 8, !tbaa !16
  br label %64

13:                                               ; preds = %61, %58, %55, %50, %9
  %14 = landingpad { ptr, i32 }
          cleanup
  br label %65

15:                                               ; preds = %5
  %16 = tail call noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %2, ptr noundef nonnull @.str.8)
  br i1 %16, label %17, label %48

17:                                               ; preds = %15
  %18 = tail call { i64, ptr } @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEcvSt17basic_string_viewIcS2_EEv(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
  %19 = extractvalue { i64, ptr } %18, 0
  %20 = extractvalue { i64, ptr } %18, 1
  %21 = invoke noundef ptr @_ZN7DexType8get_typeESt17basic_string_viewIcSt11char_traitsIcEE(i64 %19, ptr %20)
          to label %22 unwind label %36

22:                                               ; preds = %17
  %cond = icmp eq ptr %21, null
  br i1 %cond, label %39, label %23

23:                                               ; preds = %22
  %24 = invoke noundef zeroext i1 @_ZNK8TypeTags12has_type_tagEPK7DexType(ptr noundef nonnull align 8 dereferenceable(112) %1, ptr noundef nonnull %21)
          to label %25 unwind label %36

25:                                               ; preds = %23
  br i1 %24, label %26, label %42

26:                                               ; preds = %25
  store i32 1, ptr %0, align 8, !tbaa !15
  %27 = invoke noundef i32 @_ZNK8TypeTags12get_type_tagEPK7DexType(ptr noundef nonnull align 8 dereferenceable(112) %1, ptr noundef nonnull %21)
          to label %28 unwind label %36

28:                                               ; preds = %26
  %29 = zext i32 %27 to i64
  %30 = getelementptr inbounds i8, ptr %0, i64 8
  store i64 %29, ptr %30, align 8, !tbaa !16
  %31 = icmp eq i32 %27, 0
  br i1 %31, label %32, label %64

32:                                               ; preds = %28
  %33 = invoke noundef zeroext i1 @_Z12traceEnabled11TraceModulei(i32 noundef 73, i32 noundef 9)
          to label %34 unwind label %36

34:                                               ; preds = %32
  br i1 %33, label %35, label %38

35:                                               ; preds = %34
  invoke void (i32, i32, i1, ptr, ...) @_Z5trace11TraceModuleibPKcz(i32 noundef 73, i32 noundef 9, i1 noundef zeroext false, ptr noundef nonnull @.str.9)
          to label %38 unwind label %36

36:                                               ; preds = %.invoke, %42, %39, %35, %32, %26, %23, %17
  %37 = landingpad { ptr, i32 }
          cleanup
  br label %65

38:                                               ; preds = %35, %34
  store i32 3, ptr %0, align 8, !tbaa !15
  br label %64

39:                                               ; preds = %22
  %40 = invoke noundef zeroext i1 @_Z12traceEnabled11TraceModulei(i32 noundef 73, i32 noundef 9)
          to label %41 unwind label %36

41:                                               ; preds = %39
  br i1 %40, label %.invoke, label %47

42:                                               ; preds = %25
  %43 = invoke noundef zeroext i1 @_Z12traceEnabled11TraceModulei(i32 noundef 73, i32 noundef 9)
          to label %44 unwind label %36

44:                                               ; preds = %42
  br i1 %43, label %.invoke, label %47

.invoke:                                          ; preds = %44, %41
  %45 = phi ptr [ @.str.10, %41 ], [ @.str.11, %44 ]
  %46 = tail call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
  invoke void (i32, i32, i1, ptr, ...) @_Z5trace11TraceModuleibPKcz(i32 noundef 73, i32 noundef 9, i1 noundef zeroext false, ptr noundef nonnull %45, ptr noundef %46)
          to label %47 unwind label %36

47:                                               ; preds = %.invoke, %41, %44
  store i32 3, ptr %0, align 8, !tbaa !15
  br label %64

48:                                               ; preds = %15
  %49 = tail call noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %2, ptr noundef nonnull @.str.12)
  br i1 %49, label %50, label %52

50:                                               ; preds = %48
  store i32 2, ptr %0, align 8, !tbaa !15
  %51 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 8 dereferenceable(32) %3)
          to label %64 unwind label %13

52:                                               ; preds = %48
  %53 = tail call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %2) #6
  %54 = icmp ugt i64 %53, 1
  br i1 %54, label %58, label %55

55:                                               ; preds = %52
  %56 = tail call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %2) #6
  invoke void (ptr, ptr, i32, ptr, i32, ptr, ...) @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.14, i32 noundef 70, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN13ConstantValueC2EPK8TypeTagsRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESA_j, i32 noundef 2, ptr noundef nonnull @.str.15, ptr noundef %56) #7
          to label %57 unwind label %13

57:                                               ; preds = %55
  unreachable

58:                                               ; preds = %52
  %59 = invoke noundef zeroext i1 @_Z12traceEnabled11TraceModulei(i32 noundef 73, i32 noundef 9)
          to label %60 unwind label %13

60:                                               ; preds = %58
  br i1 %59, label %61, label %63

61:                                               ; preds = %60
  %62 = tail call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %2) #6
  invoke void (i32, i32, i1, ptr, ...) @_Z5trace11TraceModuleibPKcz(i32 noundef 73, i32 noundef 9, i1 noundef zeroext false, ptr noundef nonnull @.str.16, ptr noundef %62)
          to label %63 unwind label %13

63:                                               ; preds = %61, %60
  store i32 3, ptr %0, align 8, !tbaa !15
  br label %64

64:                                               ; preds = %47, %38, %28, %50, %63, %11
  ret void

65:                                               ; preds = %36, %13
  %.pn = phi { ptr, i32 } [ %14, %13 ], [ %37, %36 ]
  tail call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #6
  resume { ptr, i32 } %.pn
}

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #0 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_ZNSt7__cxx115stollERKNS_12basic_stringIcSt11char_traitsIcESaIcEEEPmi(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN7DexType8get_typeESt17basic_string_viewIcSt11char_traitsIcEE(i64, ptr) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare { i64, ptr } @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEcvSt17basic_string_viewIcS2_EEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK8TypeTags12has_type_tagEPK7DexType(ptr noundef nonnull align 8 dereferenceable(112), ptr noundef) local_unnamed_addr #1 align 2

declare noundef i32 @_ZNK8TypeTags12get_type_tagEPK7DexType(ptr noundef nonnull align 8 dereferenceable(112), ptr noundef) local_unnamed_addr #4

declare noundef zeroext i1 @_Z12traceEnabled11TraceModulei(i32 noundef, i32 noundef) local_unnamed_addr #4

declare void @_Z5trace11TraceModuleibPKcz(i32 noundef, i32 noundef, i1 noundef zeroext, ptr noundef, ...) local_unnamed_addr #4

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

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

; Function Attrs: mustprogress nounwind uwtable
declare noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #0 align 2

; 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

attributes #0 = { 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 #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 #3 = { 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 #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 = { 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 = { nounwind }
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, !14, i64 48}
!6 = !{!"_ZTS13ConstantValue", !7, i64 0, !10, i64 8, !11, i64 16, !14, i64 48}
!7 = !{!"_ZTSN13ConstantValue12ConstantKindE", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"long", !8, i64 0}
!11 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !12, i64 0, !10, i64 8, !8, i64 16}
!12 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !13, i64 0}
!13 = !{!"any pointer", !8, i64 0}
!14 = !{!"int", !8, i64 0}
!15 = !{!6, !7, i64 0}
!16 = !{!6, !10, i64 8}


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