; LLVM IR from rweather/lightweight-crypto :: src/genavr/code.ll (ZN4Code15compare_and_setERK3RegS2_S2_h)

; 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.Reg = type { %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@_ZTISt16invalid_argument = external constant ptr
@.str.14 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [31 x i8], align 1

declare ptr @__cxa_allocate_exception(i64)

declare void @_ZNSt16invalid_argumentC1EPKc(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) unnamed_addr #0

declare i32 @__gxx_personality_v0(...)

declare void @__cxa_free_exception(ptr)

; Function Attrs: nounwind
declare void @_ZNSt16invalid_argumentD1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #1

declare void @__cxa_throw(ptr, ptr, ptr)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK3Reg4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4Code11allocateRegEj(ptr dead_on_unwind noalias writable sret(%class.Reg) align 8, ptr noundef nonnull align 8 dereferenceable(200), i32 noundef) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4Code10releaseRegERK3Reg(ptr noundef nonnull align 8 dereferenceable(200), ptr noundef nonnull align 8 dereferenceable(24)) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i8 @_ZNK3Reg3regEi(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4Code6tworegEN4Insn4TypeEhh(ptr noundef nonnull align 8 dereferenceable(200), i32 noundef, i8 noundef zeroext, i8 noundef zeroext) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i8 @_ZN4Code7immtempEh(ptr noundef nonnull align 8 dereferenceable(200), i8 noundef zeroext) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4Code6oneregEN4Insn4TypeEh(ptr noundef nonnull align 8 dereferenceable(200), i32 noundef, i8 noundef zeroext) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i8 @_ZN4Code7tempregEv(ptr noundef nonnull align 8 dereferenceable(200)) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4Code7zeroregEhb(ptr noundef nonnull align 8 dereferenceable(200), i8 noundef zeroext, i1 noundef zeroext) #4 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4Code15compare_and_setERK3RegS2_S2_h(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(24) %3, i8 noundef zeroext %4) #4 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 i8, align 1
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca %class.Reg, align 8
  %14 = alloca i8, align 1
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i8, align 1
  %18 = alloca i32, align 4
  %19 = 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 i8 %4, ptr %10, align 1, !tbaa !9
  %20 = load ptr, ptr %6, align 8
  %21 = load ptr, ptr %8, align 8, !tbaa !5
  %22 = call noundef i32 @_ZNK3Reg4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %21)
  %23 = load ptr, ptr %9, align 8, !tbaa !5
  %24 = call noundef i32 @_ZNK3Reg4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %23)
  %25 = icmp ne i32 %22, %24
  br i1 %25, label %26, label %33

26:                                               ; preds = %5
  %27 = call ptr @__cxa_allocate_exception(i64 16) #5
  invoke void @_ZNSt16invalid_argumentC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %27, ptr noundef @.str.14)
          to label %28 unwind label %29

28:                                               ; preds = %26
  call void @__cxa_throw(ptr %27, ptr @_ZTISt16invalid_argument, ptr @_ZNSt16invalid_argumentD1Ev) #6
  unreachable

29:                                               ; preds = %26
  %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
  call void @__cxa_free_exception(ptr %27) #5
  br label %227

33:                                               ; preds = %5
  %34 = load ptr, ptr %8, align 8, !tbaa !5
  %35 = call noundef i32 @_ZNK3Reg4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %34)
  %36 = icmp eq i32 %35, 0
  br i1 %36, label %37, label %44

37:                                               ; preds = %33
  %38 = call ptr @__cxa_allocate_exception(i64 16) #5
  invoke void @_ZNSt16invalid_argumentC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %38, ptr noundef @.str.15)
          to label %39 unwind label %40

39:                                               ; preds = %37
  call void @__cxa_throw(ptr %38, ptr @_ZTISt16invalid_argument, ptr @_ZNSt16invalid_argumentD1Ev) #6
  unreachable

40:                                               ; preds = %37
  %41 = landingpad { ptr, i32 }
          cleanup
  %42 = extractvalue { ptr, i32 } %41, 0
  store ptr %42, ptr %11, align 8
  %43 = extractvalue { ptr, i32 } %41, 1
  store i32 %43, ptr %12, align 4
  call void @__cxa_free_exception(ptr %38) #5
  br label %227

44:                                               ; preds = %33
  br label %45

45:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 24, ptr %13) #5
  call void @_ZN4Code11allocateRegEj(ptr dead_on_unwind writable sret(%class.Reg) align 8 %13, ptr noundef nonnull align 8 dereferenceable(200) %20, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #5
  %46 = invoke noundef zeroext i8 @_ZN4Code7tempregEv(ptr noundef nonnull align 8 dereferenceable(200) %20)
          to label %47 unwind label %65

47:                                               ; preds = %45
  store i8 %46, ptr %14, align 1, !tbaa !9
  %48 = load i8, ptr %14, align 1, !tbaa !9
  %49 = load ptr, ptr %8, align 8, !tbaa !5
  %50 = invoke noundef zeroext i8 @_ZNK3Reg3regEi(ptr noundef nonnull align 8 dereferenceable(24) %49, i32 noundef 0)
          to label %51 unwind label %65

51:                                               ; preds = %47
  invoke void @_ZN4Code6tworegEN4Insn4TypeEhh(ptr noundef nonnull align 8 dereferenceable(200) %20, i32 noundef 34, i8 noundef zeroext %48, i8 noundef zeroext %50)
          to label %52 unwind label %65

52:                                               ; preds = %51
  %53 = load i8, ptr %14, align 1, !tbaa !9
  %54 = load ptr, ptr %9, align 8, !tbaa !5
  %55 = invoke noundef zeroext i8 @_ZNK3Reg3regEi(ptr noundef nonnull align 8 dereferenceable(24) %54, i32 noundef 0)
          to label %56 unwind label %65

56:                                               ; preds = %52
  invoke void @_ZN4Code6tworegEN4Insn4TypeEhh(ptr noundef nonnull align 8 dereferenceable(200) %20, i32 noundef 19, i8 noundef zeroext %53, i8 noundef zeroext %55)
          to label %57 unwind label %65

57:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  store i32 1, ptr %15, align 4, !tbaa !10
  br label %58

58:                                               ; preds = %90, %57
  %59 = load i32, ptr %15, align 4, !tbaa !10
  %60 = load ptr, ptr %8, align 8, !tbaa !5
  %61 = invoke noundef i32 @_ZNK3Reg4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %60)
          to label %62 unwind label %69

62:                                               ; preds = %58
  %63 = icmp slt i32 %59, %61
  br i1 %63, label %73, label %64

64:                                               ; preds = %62
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  br label %93

65:                                               ; preds = %198, %195, %194, %191, %190, %187, %152, %149, %148, %145, %115, %112, %109, %108, %105, %100, %98, %96, %95, %93, %56, %52, %51, %47, %45
  %66 = landingpad { ptr, i32 }
          cleanup
  %67 = extractvalue { ptr, i32 } %66, 0
  store ptr %67, ptr %11, align 8
  %68 = extractvalue { ptr, i32 } %66, 1
  store i32 %68, ptr %12, align 4
  br label %226

69:                                               ; preds = %88, %85, %84, %81, %79, %78, %75, %73, %58
  %70 = landingpad { ptr, i32 }
          cleanup
  %71 = extractvalue { ptr, i32 } %70, 0
  store ptr %71, ptr %11, align 8
  %72 = extractvalue { ptr, i32 } %70, 1
  store i32 %72, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  br label %226

73:                                               ; preds = %62
  %74 = invoke noundef zeroext i8 @_ZNK3Reg3regEi(ptr noundef nonnull align 8 dereferenceable(24) %13, i32 noundef 0)
          to label %75 unwind label %69

75:                                               ; preds = %73
  %76 = load ptr, ptr %8, align 8, !tbaa !5
  %77 = invoke noundef zeroext i8 @_ZNK3Reg3regEi(ptr noundef nonnull align 8 dereferenceable(24) %76, i32 noundef 0)
          to label %78 unwind label %69

78:                                               ; preds = %75
  invoke void @_ZN4Code6tworegEN4Insn4TypeEhh(ptr noundef nonnull align 8 dereferenceable(200) %20, i32 noundef 34, i8 noundef zeroext %74, i8 noundef zeroext %77)
          to label %79 unwind label %69

79:                                               ; preds = %78
  %80 = invoke noundef zeroext i8 @_ZNK3Reg3regEi(ptr noundef nonnull align 8 dereferenceable(24) %13, i32 noundef 0)
          to label %81 unwind label %69

81:                                               ; preds = %79
  %82 = load ptr, ptr %9, align 8, !tbaa !5
  %83 = invoke noundef zeroext i8 @_ZNK3Reg3regEi(ptr noundef nonnull align 8 dereferenceable(24) %82, i32 noundef 0)
          to label %84 unwind label %69

84:                                               ; preds = %81
  invoke void @_ZN4Code6tworegEN4Insn4TypeEhh(ptr noundef nonnull align 8 dereferenceable(200) %20, i32 noundef 19, i8 noundef zeroext %80, i8 noundef zeroext %83)
          to label %85 unwind label %69

85:                                               ; preds = %84
  %86 = load i8, ptr %14, align 1, !tbaa !9
  %87 = invoke noundef zeroext i8 @_ZNK3Reg3regEi(ptr noundef nonnull align 8 dereferenceable(24) %13, i32 noundef 0)
          to label %88 unwind label %69

88:                                               ; preds = %85
  invoke void @_ZN4Code6tworegEN4Insn4TypeEhh(ptr noundef nonnull align 8 dereferenceable(200) %20, i32 noundef 38, i8 noundef zeroext %86, i8 noundef zeroext %87)
          to label %89 unwind label %69

89:                                               ; preds = %88
  br label %90

90:                                               ; preds = %89
  %91 = load i32, ptr %15, align 4, !tbaa !10
  %92 = add nsw i32 %91, 1
  store i32 %92, ptr %15, align 4, !tbaa !10
  br label %58, !llvm.loop !12

93:                                               ; preds = %64
  %94 = invoke noundef zeroext i8 @_ZNK3Reg3regEi(ptr noundef nonnull align 8 dereferenceable(24) %13, i32 noundef 0)
          to label %95 unwind label %65

95:                                               ; preds = %93
  invoke void @_ZN4Code7zeroregEhb(ptr noundef nonnull align 8 dereferenceable(200) %20, i8 noundef zeroext %94, i1 noundef zeroext true)
          to label %96 unwind label %65

96:                                               ; preds = %95
  %97 = invoke noundef zeroext i8 @_ZNK3Reg3regEi(ptr noundef nonnull align 8 dereferenceable(24) %13, i32 noundef 0)
          to label %98 unwind label %65

98:                                               ; preds = %96
  %99 = load i8, ptr %14, align 1, !tbaa !9
  invoke void @_ZN4Code6tworegEN4Insn4TypeEhh(ptr noundef nonnull align 8 dereferenceable(200) %20, i32 noundef 49, i8 noundef zeroext %97, i8 noundef zeroext %99)
          to label %100 unwind label %65

100:                                              ; preds = %98
  invoke void @_ZN4Code10releaseRegERK3Reg(ptr noundef nonnull align 8 dereferenceable(200) %20, ptr noundef nonnull align 8 dereferenceable(24) %13)
          to label %101 unwind label %65

101:                                              ; preds = %100
  %102 = load i8, ptr %10, align 1, !tbaa !9
  %103 = zext i8 %102 to i32
  %104 = icmp eq i32 %103, 0
  br i1 %104, label %105, label %141

105:                                              ; preds = %101
  %106 = load ptr, ptr %7, align 8, !tbaa !5
  %107 = invoke noundef zeroext i8 @_ZNK3Reg3regEi(ptr noundef nonnull align 8 dereferenceable(24) %106, i32 noundef 0)
          to label %108 unwind label %65

108:                                              ; preds = %105
  invoke void @_ZN4Code13zeroreg_no_ccEh(ptr noundef nonnull align 8 dereferenceable(200) %20, i8 noundef zeroext %107)
          to label %109 unwind label %65

109:                                              ; preds = %108
  %110 = load ptr, ptr %7, align 8, !tbaa !5
  %111 = invoke noundef zeroext i8 @_ZNK3Reg3regEi(ptr noundef nonnull align 8 dereferenceable(24) %110, i32 noundef 0)
          to label %112 unwind label %65

112:                                              ; preds = %109
  %113 = load ptr, ptr %7, align 8, !tbaa !5
  %114 = invoke noundef zeroext i8 @_ZNK3Reg3regEi(ptr noundef nonnull align 8 dereferenceable(24) %113, i32 noundef 0)
          to label %115 unwind label %65

115:                                              ; preds = %112
  invoke void @_ZN4Code6tworegEN4Insn4TypeEhh(ptr noundef nonnull align 8 dereferenceable(200) %20, i32 noundef 48, i8 noundef zeroext %111, i8 noundef zeroext %114)
          to label %116 unwind label %65

116:                                              ; preds = %115
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  store i32 1, ptr %16, align 4, !tbaa !10
  br label %117

117:                                              ; preds = %137, %116
  %118 = load i32, ptr %16, align 4, !tbaa !10
  %119 = load ptr, ptr %7, align 8, !tbaa !5
  %120 = invoke noundef i32 @_ZNK3Reg4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %119)
          to label %121 unwind label %124

121:                                              ; preds = %117
  %122 = icmp slt i32 %118, %120
  br i1 %122, label %128, label %123

123:                                              ; preds = %121
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  br label %140

124:                                              ; preds = %135, %132, %128, %117
  %125 = landingpad { ptr, i32 }
          cleanup
  %126 = extractvalue { ptr, i32 } %125, 0
  store ptr %126, ptr %11, align 8
  %127 = extractvalue { ptr, i32 } %125, 1
  store i32 %127, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  br label %226

128:                                              ; preds = %121
  %129 = load ptr, ptr %7, align 8, !tbaa !5
  %130 = load i32, ptr %16, align 4, !tbaa !10
  %131 = invoke noundef zeroext i8 @_ZNK3Reg3regEi(ptr noundef nonnull align 8 dereferenceable(24) %129, i32 noundef %130)
          to label %132 unwind label %124

132:                                              ; preds = %128
  %133 = load ptr, ptr %7, align 8, !tbaa !5
  %134 = invoke noundef zeroext i8 @_ZNK3Reg3regEi(ptr noundef nonnull align 8 dereferenceable(24) %133, i32 noundef 0)
          to label %135 unwind label %124

135:                                              ; preds = %132
  invoke void @_ZN4Code6tworegEN4Insn4TypeEhh(ptr noundef nonnull align 8 dereferenceable(200) %20, i32 noundef 34, i8 noundef zeroext %131, i8 noundef zeroext %134)
          to label %136 unwind label %124

136:                                              ; preds = %135
  br label %137

137:                                              ; preds = %136
  %138 = load i32, ptr %16, align 4, !tbaa !10
  %139 = add nsw i32 %138, 1
  store i32 %139, ptr %16, align 4, !tbaa !10
  br label %117, !llvm.loop !14

140:                                              ; preds = %123
  br label %225

141:                                              ; preds = %101
  %142 = load i8, ptr %10, align 1, !tbaa !9
  %143 = zext i8 %142 to i32
  %144 = icmp eq i32 %143, 1
  br i1 %144, label %145, label %187

145:                                              ; preds = %141
  %146 = load ptr, ptr %7, align 8, !tbaa !5
  %147 = invoke noundef zeroext i8 @_ZNK3Reg3regEi(ptr noundef nonnull align 8 dereferenceable(24) %146, i32 noundef 0)
          to label %148 unwind label %65

148:                                              ; preds = %145
  invoke void @_ZN4Code13zeroreg_no_ccEh(ptr noundef nonnull align 8 dereferenceable(200) %20, i8 noundef zeroext %147)
          to label %149 unwind label %65

149:                                              ; preds = %148
  %150 = load ptr, ptr %7, align 8, !tbaa !5
  %151 = invoke noundef zeroext i8 @_ZNK3Reg3regEi(ptr noundef nonnull align 8 dereferenceable(24) %150, i32 noundef 0)
          to label %152 unwind label %65

152:                                              ; preds = %149
  invoke void @_ZN4Code6oneregEN4Insn4TypeEh(ptr noundef nonnull align 8 dereferenceable(200) %20, i32 noundef 46, i8 noundef zeroext %151)
          to label %153 unwind label %65

153:                                              ; preds = %152
  call void @llvm.lifetime.start.p0(i64 1, ptr %17) #5
  %154 = invoke noundef zeroext i8 @_ZN4Code7immtempEh(ptr noundef nonnull align 8 dereferenceable(200) %20, i8 noundef zeroext 1)
          to label %155 unwind label %168

155:                                              ; preds = %153
  store i8 %154, ptr %17, align 1, !tbaa !9
  %156 = load ptr, ptr %7, align 8, !tbaa !5
  %157 = invoke noundef zeroext i8 @_ZNK3Reg3regEi(ptr noundef nonnull align 8 dereferenceable(24) %156, i32 noundef 0)
          to label %158 unwind label %168

158:                                              ; preds = %155
  %159 = load i8, ptr %17, align 1, !tbaa !9
  invoke void @_ZN4Code6tworegEN4Insn4TypeEhh(ptr noundef nonnull align 8 dereferenceable(200) %20, i32 noundef 19, i8 noundef zeroext %157, i8 noundef zeroext %159)
          to label %160 unwind label %168

160:                                              ; preds = %158
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  store i32 1, ptr %18, align 4, !tbaa !10
  br label %161

161:                                              ; preds = %182, %160
  %162 = load i32, ptr %18, align 4, !tbaa !10
  %163 = load ptr, ptr %7, align 8, !tbaa !5
  %164 = invoke noundef i32 @_ZNK3Reg4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %163)
          to label %165 unwind label %172

165:                                              ; preds = %161
  %166 = icmp slt i32 %162, %164
  br i1 %166, label %176, label %167

167:                                              ; preds = %165
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  br label %185

168:                                              ; preds = %158, %155, %153
  %169 = landingpad { ptr, i32 }
          cleanup
  %170 = extractvalue { ptr, i32 } %169, 0
  store ptr %170, ptr %11, align 8
  %171 = extractvalue { ptr, i32 } %169, 1
  store i32 %171, ptr %12, align 4
  br label %186

172:                                              ; preds = %180, %176, %161
  %173 = landingpad { ptr, i32 }
          cleanup
  %174 = extractvalue { ptr, i32 } %173, 0
  store ptr %174, ptr %11, align 8
  %175 = extractvalue { ptr, i32 } %173, 1
  store i32 %175, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  br label %186

176:                                              ; preds = %165
  %177 = load ptr, ptr %7, align 8, !tbaa !5
  %178 = load i32, ptr %18, align 4, !tbaa !10
  %179 = invoke noundef zeroext i8 @_ZNK3Reg3regEi(ptr noundef nonnull align 8 dereferenceable(24) %177, i32 noundef %178)
          to label %180 unwind label %172

180:                                              ; preds = %176
  invoke void @_ZN4Code7zeroregEhb(ptr noundef nonnull align 8 dereferenceable(200) %20, i8 noundef zeroext %179, i1 noundef zeroext true)
          to label %181 unwind label %172

181:                                              ; preds = %180
  br label %182

182:                                              ; preds = %181
  %183 = load i32, ptr %18, align 4, !tbaa !10
  %184 = add nsw i32 %183, 1
  store i32 %184, ptr %18, align 4, !tbaa !10
  br label %161, !llvm.loop !15

185:                                              ; preds = %167
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #5
  br label %224

186:                                              ; preds = %172, %168
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #5
  br label %226

187:                                              ; preds = %141
  %188 = load ptr, ptr %7, align 8, !tbaa !5
  %189 = invoke noundef zeroext i8 @_ZNK3Reg3regEi(ptr noundef nonnull align 8 dereferenceable(24) %188, i32 noundef 0)
          to label %190 unwind label %65

190:                                              ; preds = %187
  invoke void @_ZN4Code13zeroreg_no_ccEh(ptr noundef nonnull align 8 dereferenceable(200) %20, i8 noundef zeroext %189)
          to label %191 unwind label %65

191:                                              ; preds = %190
  %192 = load ptr, ptr %7, align 8, !tbaa !5
  %193 = invoke noundef zeroext i8 @_ZNK3Reg3regEi(ptr noundef nonnull align 8 dereferenceable(24) %192, i32 noundef 0)
          to label %194 unwind label %65

194:                                              ; preds = %191
  invoke void @_ZN4Code6oneregEN4Insn4TypeEh(ptr noundef nonnull align 8 dereferenceable(200) %20, i32 noundef 46, i8 noundef zeroext %193)
          to label %195 unwind label %65

195:                                              ; preds = %194
  %196 = load ptr, ptr %7, align 8, !tbaa !5
  %197 = invoke noundef zeroext i8 @_ZNK3Reg3regEi(ptr noundef nonnull align 8 dereferenceable(24) %196, i32 noundef 0)
          to label %198 unwind label %65

198:                                              ; preds = %195
  invoke void @_ZN4Code6oneregEN4Insn4TypeEh(ptr noundef nonnull align 8 dereferenceable(200) %20, i32 noundef 18, i8 noundef zeroext %197)
          to label %199 unwind label %65

199:                                              ; preds = %198
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  store i32 1, ptr %19, align 4, !tbaa !10
  br label %200

200:                                              ; preds = %220, %199
  %201 = load i32, ptr %19, align 4, !tbaa !10
  %202 = load ptr, ptr %7, align 8, !tbaa !5
  %203 = invoke noundef i32 @_ZNK3Reg4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %202)
          to label %204 unwind label %207

204:                                              ; preds = %200
  %205 = icmp slt i32 %201, %203
  br i1 %205, label %211, label %206

206:                                              ; preds = %204
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  br label %223

207:                                              ; preds = %218, %215, %211, %200
  %208 = landingpad { ptr, i32 }
          cleanup
  %209 = extractvalue { ptr, i32 } %208, 0
  store ptr %209, ptr %11, align 8
  %210 = extractvalue { ptr, i32 } %208, 1
  store i32 %210, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  br label %226

211:                                              ; preds = %204
  %212 = load ptr, ptr %7, align 8, !tbaa !5
  %213 = load i32, ptr %19, align 4, !tbaa !10
  %214 = invoke noundef zeroext i8 @_ZNK3Reg3regEi(ptr noundef nonnull align 8 dereferenceable(24) %212, i32 noundef %213)
          to label %215 unwind label %207

215:                                              ; preds = %211
  %216 = load ptr, ptr %7, align 8, !tbaa !5
  %217 = invoke noundef zeroext i8 @_ZNK3Reg3regEi(ptr noundef nonnull align 8 dereferenceable(24) %216, i32 noundef 0)
          to label %218 unwind label %207

218:                                              ; preds = %215
  invoke void @_ZN4Code6tworegEN4Insn4TypeEhh(ptr noundef nonnull align 8 dereferenceable(200) %20, i32 noundef 34, i8 noundef zeroext %214, i8 noundef zeroext %217)
          to label %219 unwind label %207

219:                                              ; preds = %218
  br label %220

220:                                              ; preds = %219
  %221 = load i32, ptr %19, align 4, !tbaa !10
  %222 = add nsw i32 %221, 1
  store i32 %222, ptr %19, align 4, !tbaa !10
  br label %200, !llvm.loop !16

223:                                              ; preds = %206
  br label %224

224:                                              ; preds = %223, %185
  br label %225

225:                                              ; preds = %224, %140
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #5
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #5
  ret void

226:                                              ; preds = %207, %186, %124, %69, %65
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #5
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #5
  br label %227

227:                                              ; preds = %226, %40, %29
  %228 = load ptr, ptr %11, align 8
  %229 = load i32, ptr %12, align 4
  %230 = insertvalue { ptr, i32 } poison, ptr %228, 0
  %231 = insertvalue { ptr, i32 } %230, i32 %229, 1
  resume { ptr, i32 } %231
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4Code13zeroreg_no_ccEh(ptr noundef nonnull align 8 dereferenceable(200), i8 noundef zeroext) #4 align 2

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


; 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.Reg = type { %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@_ZTISt16invalid_argument = external constant ptr
@.str.14 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [31 x i8], align 1

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

declare void @_ZNSt16invalid_argumentC1EPKc(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) unnamed_addr #0

declare i32 @__gxx_personality_v0(...)

declare void @__cxa_free_exception(ptr) local_unnamed_addr

; Function Attrs: nounwind
declare void @_ZNSt16invalid_argumentD1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #1

declare void @__cxa_throw(ptr, ptr, ptr) local_unnamed_addr

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK3Reg4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4Code11allocateRegEj(ptr dead_on_unwind noalias writable sret(%class.Reg) align 8, ptr noundef nonnull align 8 dereferenceable(200), i32 noundef) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4Code10releaseRegERK3Reg(ptr noundef nonnull align 8 dereferenceable(200), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i8 @_ZNK3Reg3regEi(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4Code6tworegEN4Insn4TypeEhh(ptr noundef nonnull align 8 dereferenceable(200), i32 noundef, i8 noundef zeroext, i8 noundef zeroext) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i8 @_ZN4Code7immtempEh(ptr noundef nonnull align 8 dereferenceable(200), i8 noundef zeroext) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4Code6oneregEN4Insn4TypeEh(ptr noundef nonnull align 8 dereferenceable(200), i32 noundef, i8 noundef zeroext) local_unnamed_addr #4 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4Code7zeroregEhb(ptr noundef nonnull align 8 dereferenceable(200), i8 noundef zeroext, i1 noundef zeroext) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4Code15compare_and_setERK3RegS2_S2_h(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(24) %3, i8 noundef zeroext %4) local_unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca %class.Reg, align 8
  %7 = tail call noundef i32 @_ZNK3Reg4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2)
  %8 = tail call noundef i32 @_ZNK3Reg4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3)
  %.not = icmp eq i32 %7, %8
  br i1 %.not, label %14, label %9

9:                                                ; preds = %5
  %10 = tail call ptr @__cxa_allocate_exception(i64 16) #5
  invoke void @_ZNSt16invalid_argumentC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull @.str.14)
          to label %11 unwind label %12

11:                                               ; preds = %9
  tail call void @__cxa_throw(ptr nonnull %10, ptr nonnull @_ZTISt16invalid_argument, ptr nonnull @_ZNSt16invalid_argumentD1Ev) #6
  unreachable

12:                                               ; preds = %9
  %13 = landingpad { ptr, i32 }
          cleanup
  tail call void @__cxa_free_exception(ptr %10) #5
  br label %124

14:                                               ; preds = %5
  %15 = tail call noundef i32 @_ZNK3Reg4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2)
  %16 = icmp eq i32 %15, 0
  br i1 %16, label %17, label %22

17:                                               ; preds = %14
  %18 = tail call ptr @__cxa_allocate_exception(i64 16) #5
  invoke void @_ZNSt16invalid_argumentC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef nonnull @.str.15)
          to label %19 unwind label %20

19:                                               ; preds = %17
  tail call void @__cxa_throw(ptr nonnull %18, ptr nonnull @_ZTISt16invalid_argument, ptr nonnull @_ZNSt16invalid_argumentD1Ev) #6
  unreachable

20:                                               ; preds = %17
  %21 = landingpad { ptr, i32 }
          cleanup
  tail call void @__cxa_free_exception(ptr %18) #5
  br label %124

22:                                               ; preds = %14
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #5
  call void @_ZN4Code11allocateRegEj(ptr dead_on_unwind nonnull writable sret(%class.Reg) align 8 %6, ptr noundef nonnull align 8 dereferenceable(200) %0, i32 noundef 1)
  %23 = invoke noundef zeroext i8 @_ZN4Code7tempregEv(ptr noundef nonnull align 8 dereferenceable(200) %0)
          to label %24 unwind label %33

24:                                               ; preds = %22
  %25 = invoke noundef zeroext i8 @_ZNK3Reg3regEi(ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef 0)
          to label %26 unwind label %33

26:                                               ; preds = %24
  invoke void @_ZN4Code6tworegEN4Insn4TypeEhh(ptr noundef nonnull align 8 dereferenceable(200) %0, i32 noundef 34, i8 noundef zeroext %23, i8 noundef zeroext %25)
          to label %27 unwind label %33

27:                                               ; preds = %26
  %28 = invoke noundef zeroext i8 @_ZNK3Reg3regEi(ptr noundef nonnull align 8 dereferenceable(24) %3, i32 noundef 0)
          to label %29 unwind label %33

29:                                               ; preds = %27
  invoke void @_ZN4Code6tworegEN4Insn4TypeEhh(ptr noundef nonnull align 8 dereferenceable(200) %0, i32 noundef 19, i8 noundef zeroext %23, i8 noundef zeroext %28)
          to label %.preheader62 unwind label %33

.preheader62:                                     ; preds = %29
  %30 = call noundef i32 @_ZNK3Reg4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2)
  %31 = icmp sgt i32 %30, 1
  br i1 %31, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %49, %.preheader62
  %32 = invoke noundef zeroext i8 @_ZNK3Reg3regEi(ptr noundef nonnull align 8 dereferenceable(24) %6, i32 noundef 0)
          to label %53 unwind label %33

33:                                               ; preds = %110, %108, %107, %105, %104, %102, %84, %82, %81, %79, %66, %64, %62, %61, %59, %57, %56, %54, %53, %._crit_edge, %29, %27, %26, %24, %22
  %34 = landingpad { ptr, i32 }
          cleanup
  br label %123

35:                                               ; preds = %48, %46, %45, %43, %41, %40, %38, %.lr.ph
  %36 = landingpad { ptr, i32 }
          cleanup
  br label %123

.lr.ph:                                           ; preds = %.preheader62, %49
  %.04863 = phi i32 [ %50, %49 ], [ 1, %.preheader62 ]
  %37 = invoke noundef zeroext i8 @_ZNK3Reg3regEi(ptr noundef nonnull align 8 dereferenceable(24) %6, i32 noundef 0)
          to label %38 unwind label %35

38:                                               ; preds = %.lr.ph
  %39 = invoke noundef zeroext i8 @_ZNK3Reg3regEi(ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef 0)
          to label %40 unwind label %35

40:                                               ; preds = %38
  invoke void @_ZN4Code6tworegEN4Insn4TypeEhh(ptr noundef nonnull align 8 dereferenceable(200) %0, i32 noundef 34, i8 noundef zeroext %37, i8 noundef zeroext %39)
          to label %41 unwind label %35

41:                                               ; preds = %40
  %42 = invoke noundef zeroext i8 @_ZNK3Reg3regEi(ptr noundef nonnull align 8 dereferenceable(24) %6, i32 noundef 0)
          to label %43 unwind label %35

43:                                               ; preds = %41
  %44 = invoke noundef zeroext i8 @_ZNK3Reg3regEi(ptr noundef nonnull align 8 dereferenceable(24) %3, i32 noundef 0)
          to label %45 unwind label %35

45:                                               ; preds = %43
  invoke void @_ZN4Code6tworegEN4Insn4TypeEhh(ptr noundef nonnull align 8 dereferenceable(200) %0, i32 noundef 19, i8 noundef zeroext %42, i8 noundef zeroext %44)
          to label %46 unwind label %35

46:                                               ; preds = %45
  %47 = invoke noundef zeroext i8 @_ZNK3Reg3regEi(ptr noundef nonnull align 8 dereferenceable(24) %6, i32 noundef 0)
          to label %48 unwind label %35

48:                                               ; preds = %46
  invoke void @_ZN4Code6tworegEN4Insn4TypeEhh(ptr noundef nonnull align 8 dereferenceable(200) %0, i32 noundef 38, i8 noundef zeroext %23, i8 noundef zeroext %47)
          to label %49 unwind label %35

49:                                               ; preds = %48
  %50 = add nuw nsw i32 %.04863, 1
  %51 = call noundef i32 @_ZNK3Reg4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2)
  %52 = icmp slt i32 %50, %51
  br i1 %52, label %.lr.ph, label %._crit_edge, !llvm.loop !5

53:                                               ; preds = %._crit_edge
  invoke void @_ZN4Code7zeroregEhb(ptr noundef nonnull align 8 dereferenceable(200) %0, i8 noundef zeroext %32, i1 noundef zeroext true)
          to label %54 unwind label %33

54:                                               ; preds = %53
  %55 = invoke noundef zeroext i8 @_ZNK3Reg3regEi(ptr noundef nonnull align 8 dereferenceable(24) %6, i32 noundef 0)
          to label %56 unwind label %33

56:                                               ; preds = %54
  invoke void @_ZN4Code6tworegEN4Insn4TypeEhh(ptr noundef nonnull align 8 dereferenceable(200) %0, i32 noundef 49, i8 noundef zeroext %55, i8 noundef zeroext %23)
          to label %57 unwind label %33

57:                                               ; preds = %56
  invoke void @_ZN4Code10releaseRegERK3Reg(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %6)
          to label %58 unwind label %33

58:                                               ; preds = %57
  switch i8 %4, label %102 [
    i8 0, label %59
    i8 1, label %79
  ]

59:                                               ; preds = %58
  %60 = invoke noundef zeroext i8 @_ZNK3Reg3regEi(ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef 0)
          to label %61 unwind label %33

61:                                               ; preds = %59
  invoke void @_ZN4Code13zeroreg_no_ccEh(ptr noundef nonnull align 8 dereferenceable(200) %0, i8 noundef zeroext %60)
          to label %62 unwind label %33

62:                                               ; preds = %61
  %63 = invoke noundef zeroext i8 @_ZNK3Reg3regEi(ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef 0)
          to label %64 unwind label %33

64:                                               ; preds = %62
  %65 = invoke noundef zeroext i8 @_ZNK3Reg3regEi(ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef 0)
          to label %66 unwind label %33

66:                                               ; preds = %64
  invoke void @_ZN4Code6tworegEN4Insn4TypeEhh(ptr noundef nonnull align 8 dereferenceable(200) %0, i32 noundef 48, i8 noundef zeroext %63, i8 noundef zeroext %65)
          to label %.preheader58 unwind label %33

.preheader58:                                     ; preds = %66
  %67 = call noundef i32 @_ZNK3Reg4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1)
  %68 = icmp sgt i32 %67, 1
  br i1 %68, label %.lr.ph67, label %.loopexit

69:                                               ; preds = %74, %72, %.lr.ph67
  %70 = landingpad { ptr, i32 }
          cleanup
  br label %123

.lr.ph67:                                         ; preds = %.preheader58, %75
  %.04766 = phi i32 [ %76, %75 ], [ 1, %.preheader58 ]
  %71 = invoke noundef zeroext i8 @_ZNK3Reg3regEi(ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef %.04766)
          to label %72 unwind label %69

72:                                               ; preds = %.lr.ph67
  %73 = invoke noundef zeroext i8 @_ZNK3Reg3regEi(ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef 0)
          to label %74 unwind label %69

74:                                               ; preds = %72
  invoke void @_ZN4Code6tworegEN4Insn4TypeEhh(ptr noundef nonnull align 8 dereferenceable(200) %0, i32 noundef 34, i8 noundef zeroext %71, i8 noundef zeroext %73)
          to label %75 unwind label %69

75:                                               ; preds = %74
  %76 = add nuw nsw i32 %.04766, 1
  %77 = call noundef i32 @_ZNK3Reg4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1)
  %78 = icmp slt i32 %76, %77
  br i1 %78, label %.lr.ph67, label %.loopexit, !llvm.loop !7

79:                                               ; preds = %58
  %80 = invoke noundef zeroext i8 @_ZNK3Reg3regEi(ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef 0)
          to label %81 unwind label %33

81:                                               ; preds = %79
  invoke void @_ZN4Code13zeroreg_no_ccEh(ptr noundef nonnull align 8 dereferenceable(200) %0, i8 noundef zeroext %80)
          to label %82 unwind label %33

82:                                               ; preds = %81
  %83 = invoke noundef zeroext i8 @_ZNK3Reg3regEi(ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef 0)
          to label %84 unwind label %33

84:                                               ; preds = %82
  invoke void @_ZN4Code6oneregEN4Insn4TypeEh(ptr noundef nonnull align 8 dereferenceable(200) %0, i32 noundef 46, i8 noundef zeroext %83)
          to label %85 unwind label %33

85:                                               ; preds = %84
  %86 = invoke noundef zeroext i8 @_ZN4Code7immtempEh(ptr noundef nonnull align 8 dereferenceable(200) %0, i8 noundef zeroext 1)
          to label %87 unwind label %92

87:                                               ; preds = %85
  %88 = invoke noundef zeroext i8 @_ZNK3Reg3regEi(ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef 0)
          to label %89 unwind label %92

89:                                               ; preds = %87
  invoke void @_ZN4Code6tworegEN4Insn4TypeEhh(ptr noundef nonnull align 8 dereferenceable(200) %0, i32 noundef 19, i8 noundef zeroext %88, i8 noundef zeroext %86)
          to label %.preheader60 unwind label %92

.preheader60:                                     ; preds = %89
  %90 = call noundef i32 @_ZNK3Reg4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1)
  %91 = icmp sgt i32 %90, 1
  br i1 %91, label %.lr.ph65, label %.loopexit

92:                                               ; preds = %89, %87, %85
  %93 = landingpad { ptr, i32 }
          cleanup
  br label %123

94:                                               ; preds = %97, %.lr.ph65
  %95 = landingpad { ptr, i32 }
          cleanup
  br label %123

.lr.ph65:                                         ; preds = %.preheader60, %98
  %.04564 = phi i32 [ %99, %98 ], [ 1, %.preheader60 ]
  %96 = invoke noundef zeroext i8 @_ZNK3Reg3regEi(ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef %.04564)
          to label %97 unwind label %94

97:                                               ; preds = %.lr.ph65
  invoke void @_ZN4Code7zeroregEhb(ptr noundef nonnull align 8 dereferenceable(200) %0, i8 noundef zeroext %96, i1 noundef zeroext true)
          to label %98 unwind label %94

98:                                               ; preds = %97
  %99 = add nuw nsw i32 %.04564, 1
  %100 = call noundef i32 @_ZNK3Reg4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1)
  %101 = icmp slt i32 %99, %100
  br i1 %101, label %.lr.ph65, label %.loopexit, !llvm.loop !8

102:                                              ; preds = %58
  %103 = invoke noundef zeroext i8 @_ZNK3Reg3regEi(ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef 0)
          to label %104 unwind label %33

104:                                              ; preds = %102
  invoke void @_ZN4Code13zeroreg_no_ccEh(ptr noundef nonnull align 8 dereferenceable(200) %0, i8 noundef zeroext %103)
          to label %105 unwind label %33

105:                                              ; preds = %104
  %106 = invoke noundef zeroext i8 @_ZNK3Reg3regEi(ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef 0)
          to label %107 unwind label %33

107:                                              ; preds = %105
  invoke void @_ZN4Code6oneregEN4Insn4TypeEh(ptr noundef nonnull align 8 dereferenceable(200) %0, i32 noundef 46, i8 noundef zeroext %106)
          to label %108 unwind label %33

108:                                              ; preds = %107
  %109 = invoke noundef zeroext i8 @_ZNK3Reg3regEi(ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef 0)
          to label %110 unwind label %33

110:                                              ; preds = %108
  invoke void @_ZN4Code6oneregEN4Insn4TypeEh(ptr noundef nonnull align 8 dereferenceable(200) %0, i32 noundef 18, i8 noundef zeroext %109)
          to label %.preheader unwind label %33

.preheader:                                       ; preds = %110
  %111 = call noundef i32 @_ZNK3Reg4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1)
  %112 = icmp sgt i32 %111, 1
  br i1 %112, label %.lr.ph69, label %.loopexit

113:                                              ; preds = %118, %116, %.lr.ph69
  %114 = landingpad { ptr, i32 }
          cleanup
  br label %123

.lr.ph69:                                         ; preds = %.preheader, %119
  %.068 = phi i32 [ %120, %119 ], [ 1, %.preheader ]
  %115 = invoke noundef zeroext i8 @_ZNK3Reg3regEi(ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef %.068)
          to label %116 unwind label %113

116:                                              ; preds = %.lr.ph69
  %117 = invoke noundef zeroext i8 @_ZNK3Reg3regEi(ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef 0)
          to label %118 unwind label %113

118:                                              ; preds = %116
  invoke void @_ZN4Code6tworegEN4Insn4TypeEhh(ptr noundef nonnull align 8 dereferenceable(200) %0, i32 noundef 34, i8 noundef zeroext %115, i8 noundef zeroext %117)
          to label %119 unwind label %113

119:                                              ; preds = %118
  %120 = add nuw nsw i32 %.068, 1
  %121 = call noundef i32 @_ZNK3Reg4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1)
  %122 = icmp slt i32 %120, %121
  br i1 %122, label %.lr.ph69, label %.loopexit, !llvm.loop !9

.loopexit:                                        ; preds = %98, %75, %119, %.preheader60, %.preheader58, %.preheader
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #5
  ret void

123:                                              ; preds = %92, %94, %113, %69, %35, %33
  %.pn54 = phi { ptr, i32 } [ %36, %35 ], [ %70, %69 ], [ %34, %33 ], [ %114, %113 ], [ %95, %94 ], [ %93, %92 ]
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #5
  br label %124

124:                                              ; preds = %123, %20, %12
  %.pn56 = phi { ptr, i32 } [ %13, %12 ], [ %21, %20 ], [ %.pn54, %123 ]
  resume { ptr, i32 } %.pn56
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4Code13zeroreg_no_ccEh(ptr noundef nonnull align 8 dereferenceable(200), i8 noundef zeroext) local_unnamed_addr #4 align 2

attributes #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 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 = { 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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = distinct !{!7, !6}
!8 = distinct !{!8, !6}
!9 = distinct !{!9, !6}


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