; LLVM IR from facebook/redex :: service/regalloc/RegisterType.ll (ZN8regalloc12src_reg_typeEPK13IRInstructiont)

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

@.str.9 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [82 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [21 x i8], align 1
@__PRETTY_FUNCTION__._ZN8regalloc12src_reg_typeEPK13IRInstructiont = external hidden unnamed_addr constant [67 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [2 x i8], align 1

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i16 @_ZNK13IRInstruction6opcodeEv(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, ...) #2

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN8regalloc12src_reg_typeEPK13IRInstructiont(ptr noundef %0, i16 noundef zeroext %1) #3 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca i16, align 2
  %6 = alloca i16, align 2
  %7 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i16 %1, ptr %5, align 2, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 2, ptr %6) #5
  %8 = load ptr, ptr %4, align 8, !tbaa !5
  %9 = call noundef zeroext i16 @_ZNK13IRInstruction6opcodeEv(ptr noundef nonnull align 8 dereferenceable(32) %8)
  store i16 %9, ptr %6, align 2, !tbaa !11
  %10 = load i16, ptr %6, align 2, !tbaa !11
  %11 = zext i16 %10 to i32
  switch i32 %11, label %166 [
    i32 0, label %12
    i32 1, label %16
    i32 2, label %17
    i32 3, label %18
    i32 4, label %19
    i32 5, label %19
    i32 6, label %19
    i32 7, label %19
    i32 8, label %19
    i32 9, label %23
    i32 10, label %24
    i32 11, label %25
    i32 16, label %26
    i32 17, label %26
    i32 25, label %26
    i32 26, label %27
    i32 94, label %31
    i32 95, label %31
    i32 96, label %32
    i32 97, label %32
    i32 98, label %33
    i32 99, label %34
    i32 100, label %35
    i32 101, label %35
    i32 102, label %35
    i32 103, label %36
    i32 104, label %36
    i32 105, label %36
    i32 106, label %37
    i32 107, label %37
    i32 108, label %37
    i32 109, label %38
    i32 110, label %38
    i32 111, label %38
    i32 112, label %39
    i32 113, label %39
    i32 114, label %39
    i32 20, label %40
    i32 28, label %41
    i32 29, label %41
    i32 30, label %42
    i32 31, label %42
    i32 32, label %42
    i32 33, label %43
    i32 34, label %43
    i32 35, label %43
    i32 36, label %43
    i32 37, label %43
    i32 38, label %43
    i32 39, label %43
    i32 40, label %43
    i32 41, label %43
    i32 42, label %43
    i32 43, label %43
    i32 44, label %43
    i32 45, label %44
    i32 46, label %44
    i32 47, label %44
    i32 48, label %44
    i32 49, label %44
    i32 50, label %44
    i32 51, label %44
    i32 52, label %50
    i32 53, label %56
    i32 54, label %69
    i32 55, label %75
    i32 56, label %75
    i32 57, label %75
    i32 58, label %75
    i32 115, label %81
    i32 116, label %81
    i32 117, label %81
    i32 118, label %81
    i32 119, label %81
    i32 120, label %81
    i32 121, label %81
    i32 122, label %81
    i32 123, label %81
    i32 124, label %81
    i32 125, label %81
    i32 126, label %82
    i32 127, label %82
    i32 128, label %82
    i32 129, label %82
    i32 130, label %82
    i32 131, label %82
    i32 132, label %82
    i32 133, label %82
    i32 134, label %83
    i32 135, label %83
    i32 136, label %83
    i32 137, label %89
    i32 138, label %89
    i32 139, label %89
    i32 140, label %89
    i32 141, label %89
    i32 142, label %90
    i32 143, label %90
    i32 144, label %90
    i32 145, label %90
    i32 146, label %90
    i32 147, label %91
    i32 148, label %91
    i32 149, label %91
    i32 150, label %91
    i32 151, label %91
    i32 152, label %91
    i32 153, label %91
    i32 154, label %91
    i32 155, label %91
    i32 156, label %91
    i32 157, label %91
    i32 12, label %92
    i32 24, label %96
    i32 27, label %97
    i32 13, label %98
    i32 59, label %102
    i32 60, label %102
    i32 61, label %102
    i32 62, label %102
    i32 63, label %102
    i32 64, label %102
    i32 65, label %102
    i32 66, label %110
    i32 67, label %116
    i32 68, label %122
    i32 69, label %123
    i32 70, label %123
    i32 71, label %123
    i32 72, label %123
    i32 73, label %129
    i32 74, label %129
    i32 75, label %129
    i32 76, label %129
    i32 77, label %129
    i32 78, label %129
    i32 79, label %129
    i32 80, label %133
    i32 81, label %134
    i32 82, label %135
    i32 83, label %136
    i32 84, label %136
    i32 85, label %136
    i32 86, label %136
    i32 87, label %137
    i32 88, label %137
    i32 89, label %137
    i32 90, label %137
    i32 91, label %137
    i32 93, label %137
    i32 92, label %137
    i32 14, label %141
    i32 15, label %141
    i32 18, label %145
    i32 19, label %145
    i32 21, label %146
    i32 22, label %150
    i32 23, label %151
    i32 160, label %158
    i32 161, label %158
    i32 162, label %158
    i32 163, label %162
    i32 165, label %162
  ]

12:                                               ; preds = %2
  br label %13

13:                                               ; preds = %14, %12
  call void (ptr, ptr, i32, ptr, i32, ptr, ...) @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef @.str.9, ptr noundef @.str.10, i32 noundef 346, ptr noundef @__PRETTY_FUNCTION__._ZN8regalloc12src_reg_typeEPK13IRInstructiont, i32 noundef 2, ptr noundef @.str.13) #6
  unreachable

14:                                               ; No predecessors!
  br i1 true, label %13, label %15, !llvm.loop !13

15:                                               ; preds = %14
  br label %16

16:                                               ; preds = %15, %2
  store i32 2, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %173

17:                                               ; preds = %2
  store i32 3, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %173

18:                                               ; preds = %2
  store i32 4, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %173

19:                                               ; preds = %2, %2, %2, %2, %2
  br label %20

20:                                               ; preds = %21, %19
  call void (ptr, ptr, i32, ptr, i32, ptr, ...) @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef @.str.9, ptr noundef @.str.10, i32 noundef 358, ptr noundef @__PRETTY_FUNCTION__._ZN8regalloc12src_reg_typeEPK13IRInstructiont, i32 noundef 2, ptr noundef @.str.13) #6
  unreachable

21:                                               ; No predecessors!
  br i1 true, label %20, label %22, !llvm.loop !15

22:                                               ; preds = %21
  br label %23

23:                                               ; preds = %22, %2
  store i32 2, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %173

24:                                               ; preds = %2
  store i32 3, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %173

25:                                               ; preds = %2
  store i32 4, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %173

26:                                               ; preds = %2, %2, %2
  store i32 4, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %173

27:                                               ; preds = %2
  br label %28

28:                                               ; preds = %29, %27
  call void (ptr, ptr, i32, ptr, i32, ptr, ...) @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef @.str.9, ptr noundef @.str.10, i32 noundef 370, ptr noundef @__PRETTY_FUNCTION__._ZN8regalloc12src_reg_typeEPK13IRInstructiont, i32 noundef 2, ptr noundef @.str.13) #6
  unreachable

29:                                               ; No predecessors!
  br i1 true, label %28, label %30, !llvm.loop !16

30:                                               ; preds = %29
  br label %31

31:                                               ; preds = %30, %2, %2
  store i32 2, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %173

32:                                               ; preds = %2, %2
  store i32 3, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %173

33:                                               ; preds = %2
  store i32 2, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %173

34:                                               ; preds = %2
  store i32 3, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %173

35:                                               ; preds = %2, %2, %2
  store i32 2, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %173

36:                                               ; preds = %2, %2, %2
  store i32 3, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %173

37:                                               ; preds = %2, %2, %2
  store i32 2, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %173

38:                                               ; preds = %2, %2, %2
  store i32 3, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %173

39:                                               ; preds = %2, %2, %2
  store i32 2, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %173

40:                                               ; preds = %2
  store i32 4, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %173

41:                                               ; preds = %2, %2
  store i32 2, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %173

42:                                               ; preds = %2, %2, %2
  store i32 3, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %173

43:                                               ; preds = %2, %2, %2, %2, %2, %2, %2, %2, %2, %2, %2, %2
  store i32 5, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %173

44:                                               ; preds = %2, %2, %2, %2, %2, %2, %2
  %45 = load i16, ptr %5, align 2, !tbaa !9
  %46 = zext i16 %45 to i32
  %47 = icmp eq i32 %46, 0
  %48 = zext i1 %47 to i64
  %49 = select i1 %47, i32 4, i32 2
  store i32 %49, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %173

50:                                               ; preds = %2
  %51 = load i16, ptr %5, align 2, !tbaa !9
  %52 = zext i16 %51 to i32
  %53 = icmp eq i32 %52, 1
  %54 = zext i1 %53 to i64
  %55 = select i1 %53, i32 4, i32 2
  store i32 %55, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %173

56:                                               ; preds = %2
  %57 = load i16, ptr %5, align 2, !tbaa !9
  %58 = zext i16 %57 to i32
  %59 = icmp eq i32 %58, 1
  br i1 %59, label %60, label %61

60:                                               ; preds = %56
  br label %67

61:                                               ; preds = %56
  %62 = load i16, ptr %5, align 2, !tbaa !9
  %63 = zext i16 %62 to i32
  %64 = icmp eq i32 %63, 2
  %65 = zext i1 %64 to i64
  %66 = select i1 %64, i32 2, i32 3
  br label %67

67:                                               ; preds = %61, %60
  %68 = phi i32 [ 4, %60 ], [ %66, %61 ]
  store i32 %68, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %173

69:                                               ; preds = %2
  %70 = load i16, ptr %5, align 2, !tbaa !9
  %71 = zext i16 %70 to i32
  %72 = icmp sle i32 %71, 1
  %73 = zext i1 %72 to i64
  %74 = select i1 %72, i32 4, i32 2
  store i32 %74, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %173

75:                                               ; preds = %2, %2, %2, %2
  %76 = load i16, ptr %5, align 2, !tbaa !9
  %77 = zext i16 %76 to i32
  %78 = icmp eq i32 %77, 1
  %79 = zext i1 %78 to i64
  %80 = select i1 %78, i32 4, i32 2
  store i32 %80, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %173

81:                                               ; preds = %2, %2, %2, %2, %2, %2, %2, %2, %2, %2, %2
  store i32 2, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %173

82:                                               ; preds = %2, %2, %2, %2, %2, %2, %2, %2
  store i32 3, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %173

83:                                               ; preds = %2, %2, %2
  %84 = load i16, ptr %5, align 2, !tbaa !9
  %85 = zext i16 %84 to i32
  %86 = icmp eq i32 %85, 0
  %87 = zext i1 %86 to i64
  %88 = select i1 %86, i32 3, i32 2
  store i32 %88, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %173

89:                                               ; preds = %2, %2, %2, %2, %2
  store i32 2, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %173

90:                                               ; preds = %2, %2, %2, %2, %2
  store i32 3, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %173

91:                                               ; preds = %2, %2, %2, %2, %2, %2, %2, %2, %2, %2, %2
  store i32 2, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %173

92:                                               ; preds = %2
  br label %93

93:                                               ; preds = %94, %92
  call void (ptr, ptr, i32, ptr, i32, ptr, ...) @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef @.str.9, ptr noundef @.str.10, i32 noundef 495, ptr noundef @__PRETTY_FUNCTION__._ZN8regalloc12src_reg_typeEPK13IRInstructiont, i32 noundef 2, ptr noundef @.str.13) #6
  unreachable

94:                                               ; No predecessors!
  br i1 true, label %93, label %95, !llvm.loop !17

95:                                               ; preds = %94
  br label %96

96:                                               ; preds = %95, %2
  store i32 4, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %173

97:                                               ; preds = %2
  store i32 5, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %173

98:                                               ; preds = %2
  br label %99

99:                                               ; preds = %100, %98
  call void (ptr, ptr, i32, ptr, i32, ptr, ...) @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef @.str.9, ptr noundef @.str.10, i32 noundef 501, ptr noundef @__PRETTY_FUNCTION__._ZN8regalloc12src_reg_typeEPK13IRInstructiont, i32 noundef 2, ptr noundef @.str.13) #6
  unreachable

100:                                              ; No predecessors!
  br i1 true, label %99, label %101, !llvm.loop !18

101:                                              ; preds = %100
  br label %102

102:                                              ; preds = %101, %2, %2, %2, %2, %2, %2, %2
  %103 = load i16, ptr %5, align 2, !tbaa !9
  %104 = zext i16 %103 to i32
  %105 = icmp eq i32 %104, 0
  br i1 %105, label %106, label %107

106:                                              ; preds = %102
  br label %109

107:                                              ; preds = %102
  call void (ptr, ptr, i32, ptr, i32, ptr, ...) @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef @.str.14, ptr noundef @.str.10, i32 noundef 509, ptr noundef @__PRETTY_FUNCTION__._ZN8regalloc12src_reg_typeEPK13IRInstructiont, i32 noundef 2, ptr noundef @.str.15) #6
  unreachable

108:                                              ; No predecessors!
  br label %109

109:                                              ; preds = %108, %106
  store i32 4, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %173

110:                                              ; preds = %2
  %111 = load i16, ptr %5, align 2, !tbaa !9
  %112 = zext i16 %111 to i32
  %113 = icmp eq i32 %112, 1
  %114 = zext i1 %113 to i64
  %115 = select i1 %113, i32 4, i32 2
  store i32 %115, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %173

116:                                              ; preds = %2
  %117 = load i16, ptr %5, align 2, !tbaa !9
  %118 = zext i16 %117 to i32
  %119 = icmp eq i32 %118, 1
  %120 = zext i1 %119 to i64
  %121 = select i1 %119, i32 4, i32 3
  store i32 %121, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %173

122:                                              ; preds = %2
  store i32 4, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %173

123:                                              ; preds = %2, %2, %2, %2
  %124 = load i16, ptr %5, align 2, !tbaa !9
  %125 = zext i16 %124 to i32
  %126 = icmp eq i32 %125, 1
  %127 = zext i1 %126 to i64
  %128 = select i1 %126, i32 4, i32 2
  store i32 %128, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %173

129:                                              ; preds = %2, %2, %2, %2, %2, %2, %2
  br label %130

130:                                              ; preds = %131, %129
  call void (ptr, ptr, i32, ptr, i32, ptr, ...) @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef @.str.9, ptr noundef @.str.10, i32 noundef 529, ptr noundef @__PRETTY_FUNCTION__._ZN8regalloc12src_reg_typeEPK13IRInstructiont, i32 noundef 2, ptr noundef @.str.13) #6
  unreachable

131:                                              ; No predecessors!
  br i1 true, label %130, label %132, !llvm.loop !19

132:                                              ; preds = %131
  br label %133

133:                                              ; preds = %132, %2
  store i32 2, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %173

134:                                              ; preds = %2
  store i32 3, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %173

135:                                              ; preds = %2
  store i32 4, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %173

136:                                              ; preds = %2, %2, %2, %2
  store i32 2, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %173

137:                                              ; preds = %2, %2, %2, %2, %2, %2, %2
  %138 = load ptr, ptr %4, align 8, !tbaa !5
  %139 = load i16, ptr %5, align 2, !tbaa !9
  %140 = call noundef i32 @_ZN8regallocL15invoke_src_typeEPK13IRInstructiont(ptr noundef %138, i16 noundef zeroext %139)
  store i32 %140, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %173

141:                                              ; preds = %2, %2
  br label %142

142:                                              ; preds = %143, %141
  call void (ptr, ptr, i32, ptr, i32, ptr, ...) @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef @.str.9, ptr noundef @.str.10, i32 noundef 551, ptr noundef @__PRETTY_FUNCTION__._ZN8regalloc12src_reg_typeEPK13IRInstructiont, i32 noundef 2, ptr noundef @.str.13) #6
  unreachable

143:                                              ; No predecessors!
  br i1 true, label %142, label %144, !llvm.loop !20

144:                                              ; preds = %143
  br label %145

145:                                              ; preds = %144, %2, %2
  store i32 4, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %173

146:                                              ; preds = %2
  br label %147

147:                                              ; preds = %148, %146
  call void (ptr, ptr, i32, ptr, i32, ptr, ...) @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef @.str.9, ptr noundef @.str.10, i32 noundef 556, ptr noundef @__PRETTY_FUNCTION__._ZN8regalloc12src_reg_typeEPK13IRInstructiont, i32 noundef 2, ptr noundef @.str.13) #6
  unreachable

148:                                              ; No predecessors!
  br i1 true, label %147, label %149, !llvm.loop !21

149:                                              ; preds = %148
  br label %150

150:                                              ; preds = %149, %2
  store i32 2, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %173

151:                                              ; preds = %2
  %152 = load ptr, ptr %4, align 8, !tbaa !5
  %153 = call noundef ptr @_ZNK13IRInstruction8get_typeEv(ptr noundef nonnull align 8 dereferenceable(32) %152)
  %154 = call noundef ptr @_ZN4type24get_array_component_typeEPK7DexType(ptr noundef %153)
  %155 = call noundef zeroext i1 @_ZN4type12is_primitiveEPK7DexType(ptr noundef %154)
  %156 = zext i1 %155 to i64
  %157 = select i1 %155, i32 2, i32 4
  store i32 %157, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %173

158:                                              ; preds = %2, %2, %2
  br label %159

159:                                              ; preds = %160, %158
  call void (ptr, ptr, i32, ptr, i32, ptr, ...) @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef @.str.9, ptr noundef @.str.10, i32 noundef 566, ptr noundef @__PRETTY_FUNCTION__._ZN8regalloc12src_reg_typeEPK13IRInstructiont, i32 noundef 2, ptr noundef @.str.13) #6
  unreachable

160:                                              ; No predecessors!
  br i1 true, label %159, label %161, !llvm.loop !22

161:                                              ; preds = %160
  br label %162

162:                                              ; preds = %161, %2, %2
  br label %163

163:                                              ; preds = %164, %162
  call void (ptr, ptr, i32, ptr, i32, ptr, ...) @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef @.str.9, ptr noundef @.str.10, i32 noundef 569, ptr noundef @__PRETTY_FUNCTION__._ZN8regalloc12src_reg_typeEPK13IRInstructiont, i32 noundef 2, ptr noundef @.str.13) #6
  unreachable

164:                                              ; No predecessors!
  br i1 true, label %163, label %165, !llvm.loop !23

165:                                              ; preds = %164
  br label %166

166:                                              ; preds = %165, %2
  br label %167

167:                                              ; preds = %170, %166
  %168 = load i16, ptr %6, align 2, !tbaa !11
  %169 = zext i16 %168 to i32
  call void (ptr, ptr, i32, ptr, i32, ptr, ...) @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef @.str.9, ptr noundef @.str.10, i32 noundef 571, ptr noundef @__PRETTY_FUNCTION__._ZN8regalloc12src_reg_typeEPK13IRInstructiont, i32 noundef 2, ptr noundef @.str.12, i32 noundef %169) #6
  unreachable

170:                                              ; No predecessors!
  br i1 true, label %167, label %171, !llvm.loop !24

171:                                              ; preds = %170
  br label %172

172:                                              ; preds = %171
  unreachable

173:                                              ; preds = %151, %150, %145, %137, %136, %135, %134, %133, %123, %122, %116, %110, %109, %97, %96, %91, %90, %89, %83, %82, %81, %75, %69, %67, %50, %44, %43, %42, %41, %40, %39, %38, %37, %36, %35, %34, %33, %32, %31, %26, %25, %24, %23, %18, %17, %16
  call void @llvm.lifetime.end.p0(i64 2, ptr %6) #5
  %174 = load i32, ptr %3, align 4
  ret i32 %174
}

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZN8regallocL15invoke_src_typeEPK13IRInstructiont(ptr noundef, i16 noundef zeroext) #3

declare noundef zeroext i1 @_ZN4type12is_primitiveEPK7DexType(ptr noundef) #4

declare noundef ptr @_ZN4type24get_array_component_typeEPK7DexType(ptr noundef) #4

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

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 = { 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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }
attributes #6 = { 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 = !{!"short", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"_ZTS8IROpcode", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !14}
!18 = distinct !{!18, !14}
!19 = distinct !{!19, !14}
!20 = distinct !{!20, !14}
!21 = distinct !{!21, !14}
!22 = distinct !{!22, !14}
!23 = distinct !{!23, !14}
!24 = distinct !{!24, !14}


; 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.9 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [82 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [21 x i8], align 1
@__PRETTY_FUNCTION__._ZN8regalloc12src_reg_typeEPK13IRInstructiont = external hidden unnamed_addr constant [67 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i16 @_ZNK13IRInstruction6opcodeEv(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 #1

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN8regalloc12src_reg_typeEPK13IRInstructiont(ptr noundef nonnull %0, i16 noundef zeroext %1) local_unnamed_addr #2 {
  %3 = tail call noundef zeroext i16 @_ZNK13IRInstruction6opcodeEv(ptr noundef nonnull align 8 dereferenceable(32) %0)
  switch i16 %3, label %73 [
    i16 0, label %4
    i16 1, label %75
    i16 2, label %5
    i16 3, label %6
    i16 4, label %7
    i16 5, label %7
    i16 6, label %7
    i16 7, label %7
    i16 8, label %7
    i16 9, label %75
    i16 10, label %8
    i16 11, label %9
    i16 16, label %10
    i16 17, label %10
    i16 25, label %10
    i16 26, label %11
    i16 94, label %75
    i16 95, label %75
    i16 96, label %12
    i16 97, label %12
    i16 98, label %75
    i16 99, label %13
    i16 100, label %75
    i16 101, label %75
    i16 102, label %75
    i16 103, label %14
    i16 104, label %14
    i16 105, label %14
    i16 106, label %75
    i16 107, label %75
    i16 108, label %75
    i16 109, label %15
    i16 110, label %15
    i16 111, label %15
    i16 112, label %75
    i16 113, label %75
    i16 114, label %75
    i16 20, label %16
    i16 28, label %75
    i16 29, label %75
    i16 30, label %17
    i16 31, label %17
    i16 32, label %17
    i16 33, label %18
    i16 34, label %18
    i16 35, label %18
    i16 36, label %18
    i16 37, label %18
    i16 38, label %18
    i16 39, label %18
    i16 40, label %18
    i16 41, label %18
    i16 42, label %18
    i16 43, label %18
    i16 44, label %18
    i16 45, label %19
    i16 46, label %19
    i16 47, label %19
    i16 48, label %19
    i16 49, label %19
    i16 50, label %19
    i16 51, label %19
    i16 52, label %22
    i16 53, label %25
    i16 54, label %30
    i16 55, label %33
    i16 56, label %33
    i16 57, label %33
    i16 58, label %33
    i16 115, label %75
    i16 116, label %75
    i16 117, label %75
    i16 118, label %75
    i16 119, label %75
    i16 120, label %75
    i16 121, label %75
    i16 122, label %75
    i16 123, label %75
    i16 124, label %75
    i16 125, label %75
    i16 126, label %36
    i16 127, label %36
    i16 128, label %36
    i16 129, label %36
    i16 130, label %36
    i16 131, label %36
    i16 132, label %36
    i16 133, label %36
    i16 134, label %37
    i16 135, label %37
    i16 136, label %37
    i16 137, label %75
    i16 138, label %75
    i16 139, label %75
    i16 140, label %75
    i16 141, label %75
    i16 142, label %40
    i16 143, label %40
    i16 144, label %40
    i16 145, label %40
    i16 146, label %40
    i16 147, label %75
    i16 148, label %75
    i16 149, label %75
    i16 150, label %75
    i16 151, label %75
    i16 152, label %75
    i16 153, label %75
    i16 154, label %75
    i16 155, label %75
    i16 156, label %75
    i16 157, label %75
    i16 12, label %41
    i16 24, label %42
    i16 27, label %43
    i16 13, label %44
    i16 59, label %45
    i16 60, label %45
    i16 61, label %45
    i16 62, label %45
    i16 63, label %45
    i16 64, label %45
    i16 65, label %45
    i16 66, label %48
    i16 67, label %51
    i16 68, label %54
    i16 69, label %55
    i16 70, label %55
    i16 71, label %55
    i16 72, label %55
    i16 73, label %58
    i16 74, label %58
    i16 75, label %58
    i16 76, label %58
    i16 77, label %58
    i16 78, label %58
    i16 79, label %58
    i16 80, label %75
    i16 81, label %59
    i16 82, label %60
    i16 83, label %75
    i16 84, label %75
    i16 85, label %75
    i16 86, label %75
    i16 87, label %61
    i16 88, label %61
    i16 89, label %61
    i16 90, label %61
    i16 91, label %61
    i16 93, label %61
    i16 92, label %61
    i16 14, label %63
    i16 15, label %63
    i16 18, label %64
    i16 19, label %64
    i16 21, label %65
    i16 22, label %75
    i16 23, label %66
    i16 160, label %71
    i16 161, label %71
    i16 162, label %71
    i16 163, label %72
    i16 165, label %72
  ]

4:                                                ; preds = %2
  tail call void (ptr, ptr, i32, ptr, i32, ptr, ...) @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.10, i32 noundef 346, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN8regalloc12src_reg_typeEPK13IRInstructiont, i32 noundef 2, ptr noundef nonnull @.str.13) #4
  unreachable

5:                                                ; preds = %2
  br label %75

6:                                                ; preds = %2
  br label %75

7:                                                ; preds = %2, %2, %2, %2, %2
  tail call void (ptr, ptr, i32, ptr, i32, ptr, ...) @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.10, i32 noundef 358, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN8regalloc12src_reg_typeEPK13IRInstructiont, i32 noundef 2, ptr noundef nonnull @.str.13) #4
  unreachable

8:                                                ; preds = %2
  br label %75

9:                                                ; preds = %2
  br label %75

10:                                               ; preds = %2, %2, %2
  br label %75

11:                                               ; preds = %2
  tail call void (ptr, ptr, i32, ptr, i32, ptr, ...) @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.10, i32 noundef 370, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN8regalloc12src_reg_typeEPK13IRInstructiont, i32 noundef 2, ptr noundef nonnull @.str.13) #4
  unreachable

12:                                               ; preds = %2, %2
  br label %75

13:                                               ; preds = %2
  br label %75

14:                                               ; preds = %2, %2, %2
  br label %75

15:                                               ; preds = %2, %2, %2
  br label %75

16:                                               ; preds = %2
  br label %75

17:                                               ; preds = %2, %2, %2
  br label %75

18:                                               ; preds = %2, %2, %2, %2, %2, %2, %2, %2, %2, %2, %2, %2
  br label %75

19:                                               ; preds = %2, %2, %2, %2, %2, %2, %2
  %20 = icmp eq i16 %1, 0
  %21 = select i1 %20, i32 4, i32 2
  br label %75

22:                                               ; preds = %2
  %23 = icmp eq i16 %1, 1
  %24 = select i1 %23, i32 4, i32 2
  br label %75

25:                                               ; preds = %2
  %26 = icmp eq i16 %1, 1
  %27 = icmp eq i16 %1, 2
  %28 = select i1 %27, i32 2, i32 3
  %29 = select i1 %26, i32 4, i32 %28
  br label %75

30:                                               ; preds = %2
  %31 = icmp ult i16 %1, 2
  %32 = select i1 %31, i32 4, i32 2
  br label %75

33:                                               ; preds = %2, %2, %2, %2
  %34 = icmp eq i16 %1, 1
  %35 = select i1 %34, i32 4, i32 2
  br label %75

36:                                               ; preds = %2, %2, %2, %2, %2, %2, %2, %2
  br label %75

37:                                               ; preds = %2, %2, %2
  %38 = icmp eq i16 %1, 0
  %39 = select i1 %38, i32 3, i32 2
  br label %75

40:                                               ; preds = %2, %2, %2, %2, %2
  br label %75

41:                                               ; preds = %2
  tail call void (ptr, ptr, i32, ptr, i32, ptr, ...) @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.10, i32 noundef 495, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN8regalloc12src_reg_typeEPK13IRInstructiont, i32 noundef 2, ptr noundef nonnull @.str.13) #4
  unreachable

42:                                               ; preds = %2
  br label %75

43:                                               ; preds = %2
  br label %75

44:                                               ; preds = %2
  tail call void (ptr, ptr, i32, ptr, i32, ptr, ...) @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.10, i32 noundef 501, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN8regalloc12src_reg_typeEPK13IRInstructiont, i32 noundef 2, ptr noundef nonnull @.str.13) #4
  unreachable

45:                                               ; preds = %2, %2, %2, %2, %2, %2, %2
  %46 = icmp eq i16 %1, 0
  br i1 %46, label %75, label %47

47:                                               ; preds = %45
  tail call void (ptr, ptr, i32, ptr, i32, ptr, ...) @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef nonnull @.str.14, ptr noundef nonnull @.str.10, i32 noundef 509, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN8regalloc12src_reg_typeEPK13IRInstructiont, i32 noundef 2, ptr noundef nonnull @.str.15) #4
  unreachable

48:                                               ; preds = %2
  %49 = icmp eq i16 %1, 1
  %50 = select i1 %49, i32 4, i32 2
  br label %75

51:                                               ; preds = %2
  %52 = icmp eq i16 %1, 1
  %53 = select i1 %52, i32 4, i32 3
  br label %75

54:                                               ; preds = %2
  br label %75

55:                                               ; preds = %2, %2, %2, %2
  %56 = icmp eq i16 %1, 1
  %57 = select i1 %56, i32 4, i32 2
  br label %75

58:                                               ; preds = %2, %2, %2, %2, %2, %2, %2
  tail call void (ptr, ptr, i32, ptr, i32, ptr, ...) @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.10, i32 noundef 529, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN8regalloc12src_reg_typeEPK13IRInstructiont, i32 noundef 2, ptr noundef nonnull @.str.13) #4
  unreachable

59:                                               ; preds = %2
  br label %75

60:                                               ; preds = %2
  br label %75

61:                                               ; preds = %2, %2, %2, %2, %2, %2, %2
  %62 = tail call noundef i32 @_ZN8regallocL15invoke_src_typeEPK13IRInstructiont(ptr noundef nonnull %0, i16 noundef zeroext %1)
  br label %75

63:                                               ; preds = %2, %2
  tail call void (ptr, ptr, i32, ptr, i32, ptr, ...) @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.10, i32 noundef 551, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN8regalloc12src_reg_typeEPK13IRInstructiont, i32 noundef 2, ptr noundef nonnull @.str.13) #4
  unreachable

64:                                               ; preds = %2, %2
  br label %75

65:                                               ; preds = %2
  tail call void (ptr, ptr, i32, ptr, i32, ptr, ...) @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.10, i32 noundef 556, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN8regalloc12src_reg_typeEPK13IRInstructiont, i32 noundef 2, ptr noundef nonnull @.str.13) #4
  unreachable

66:                                               ; preds = %2
  %67 = tail call noundef ptr @_ZNK13IRInstruction8get_typeEv(ptr noundef nonnull align 8 dereferenceable(32) %0)
  %68 = tail call noundef ptr @_ZN4type24get_array_component_typeEPK7DexType(ptr noundef %67)
  %69 = tail call noundef zeroext i1 @_ZN4type12is_primitiveEPK7DexType(ptr noundef %68)
  %70 = select i1 %69, i32 2, i32 4
  br label %75

71:                                               ; preds = %2, %2, %2
  tail call void (ptr, ptr, i32, ptr, i32, ptr, ...) @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.10, i32 noundef 566, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN8regalloc12src_reg_typeEPK13IRInstructiont, i32 noundef 2, ptr noundef nonnull @.str.13) #4
  unreachable

72:                                               ; preds = %2, %2
  tail call void (ptr, ptr, i32, ptr, i32, ptr, ...) @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.10, i32 noundef 569, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN8regalloc12src_reg_typeEPK13IRInstructiont, i32 noundef 2, ptr noundef nonnull @.str.13) #4
  unreachable

73:                                               ; preds = %2
  %74 = zext i16 %3 to i32
  tail call void (ptr, ptr, i32, ptr, i32, ptr, ...) @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.10, i32 noundef 571, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN8regalloc12src_reg_typeEPK13IRInstructiont, i32 noundef 2, ptr noundef nonnull @.str.12, i32 noundef %74) #4
  unreachable

75:                                               ; preds = %2, %2, %2, %2, %2, %2, %45, %2, %2, %2, %2, %2, %2, %2, %2, %2, %2, %2, %2, %2, %2, %2, %2, %2, %2, %2, %2, %2, %2, %2, %2, %2, %2, %2, %2, %2, %2, %2, %2, %2, %2, %2, %2, %2, %2, %2, %2, %2, %2, %2, %66, %64, %61, %60, %59, %55, %54, %51, %48, %43, %42, %40, %37, %36, %33, %30, %25, %22, %19, %18, %17, %16, %15, %14, %13, %12, %10, %9, %8, %6, %5
  %.0 = phi i32 [ %70, %66 ], [ 4, %64 ], [ %62, %61 ], [ 4, %60 ], [ 3, %59 ], [ %57, %55 ], [ 4, %54 ], [ %53, %51 ], [ %50, %48 ], [ 5, %43 ], [ 4, %42 ], [ 3, %40 ], [ %39, %37 ], [ 3, %36 ], [ %35, %33 ], [ %32, %30 ], [ %29, %25 ], [ %24, %22 ], [ %21, %19 ], [ 5, %18 ], [ 3, %17 ], [ 4, %16 ], [ 3, %15 ], [ 3, %14 ], [ 3, %13 ], [ 3, %12 ], [ 4, %10 ], [ 4, %9 ], [ 3, %8 ], [ 4, %6 ], [ 3, %5 ], [ 2, %2 ], [ 2, %2 ], [ 2, %2 ], [ 2, %2 ], [ 2, %2 ], [ 2, %2 ], [ 2, %2 ], [ 2, %2 ], [ 2, %2 ], [ 2, %2 ], [ 2, %2 ], [ 2, %2 ], [ 2, %2 ], [ 2, %2 ], [ 2, %2 ], [ 2, %2 ], [ 2, %2 ], [ 2, %2 ], [ 2, %2 ], [ 2, %2 ], [ 2, %2 ], [ 2, %2 ], [ 2, %2 ], [ 2, %2 ], [ 2, %2 ], [ 2, %2 ], [ 2, %2 ], [ 2, %2 ], [ 2, %2 ], [ 2, %2 ], [ 2, %2 ], [ 2, %2 ], [ 2, %2 ], [ 2, %2 ], [ 2, %2 ], [ 2, %2 ], [ 2, %2 ], [ 2, %2 ], [ 2, %2 ], [ 2, %2 ], [ 2, %2 ], [ 2, %2 ], [ 2, %2 ], [ 4, %45 ], [ 2, %2 ], [ 2, %2 ], [ 2, %2 ], [ 2, %2 ], [ 2, %2 ], [ 2, %2 ]
  ret i32 %.0
}

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZN8regallocL15invoke_src_typeEPK13IRInstructiont(ptr noundef, i16 noundef zeroext) local_unnamed_addr #2

declare noundef zeroext i1 @_ZN4type12is_primitiveEPK7DexType(ptr noundef) local_unnamed_addr #3

declare noundef ptr @_ZN4type24get_array_component_typeEPK7DexType(ptr noundef) local_unnamed_addr #3

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

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 = { 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 #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 = { 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)"}


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