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

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

%struct.AVRState = type <{ [34 x i8], i8, i8, i8, [4096 x i8], [3 x i8], i32, i32, %class.Sbox, i32, [4 x i8] }>
%class.Sbox = 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 }
%class.Insn = type <{ i32, i8, i8, [2 x i8] }>
%class.Code = type { %"class.std::vector.0", %"class.std::vector.5", %"class.std::vector", i32, i32, i32, i32, [16 x i8], i32, i32, i32, %"class.std::__cxx11::basic_string", %"class.std::map" }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<Insn, std::allocator<Insn>>::_Vector_impl" }
%"struct.std::_Vector_base<Insn, std::allocator<Insn>>::_Vector_impl" = type { %"struct.std::_Vector_base<Insn, std::allocator<Insn>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Insn, std::allocator<Insn>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon.13 }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon.13 = type { i64, [8 x i8] }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<unsigned char, std::pair<const unsigned char, Sbox>, std::_Select1st<std::pair<const unsigned char, Sbox>>, std::less<unsigned char>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<unsigned char, std::pair<const unsigned char, Sbox>, std::_Select1st<std::pair<const unsigned char, Sbox>>, std::less<unsigned char>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }

@_ZTISt16invalid_argument = external constant ptr
@.str.1 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [37 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

declare ptr @__cxa_allocate_exception(i64)

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

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

declare void @__cxa_throw(ptr, ptr, ptr)

; 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 i32 @_ZN8AVRState12alloc_bufferEj(ptr noundef nonnull align 8 dereferenceable(4172), i32 noundef) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN8AVRState12alloc_bufferEPKvj(ptr noundef nonnull align 8 dereferenceable(4172), ptr noundef, i32 noundef) #3 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8AVRState7setPairEij(ptr noundef nonnull align 8 dereferenceable(4172), i32 noundef, i32 noundef) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8AVRState6push16Ej(ptr noundef nonnull align 8 dereferenceable(4172), i32 noundef) #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK8AVRState4pairEi(ptr noundef nonnull align 8 dereferenceable(4172), i32 noundef) #3 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(6) ptr @_ZNSt6vectorI4InsnSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4InsnC2ERKS_(ptr noundef nonnull align 4 dereferenceable(6), ptr noundef nonnull align 4 dereferenceable(6)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL9exec_insnR8AVRStateRK4CodeRK4Insn(ptr noundef nonnull align 8 dereferenceable(4172), ptr noundef nonnull align 8 dereferenceable(200), ptr noundef nonnull align 4 dereferenceable(6)) #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4InsnD2Ev(ptr noundef nonnull align 4 dereferenceable(6)) unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4Code7hasFlagENS_4FlagE(ptr noundef nonnull align 8 dereferenceable(200), i32 noundef) #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN8AVRStateD2Ev(ptr noundef nonnull align 8 dereferenceable(4172)) unnamed_addr #6 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4Code33exec_encrypt_block_with_tweak_ptrEPKvjPvjS1_jS1_j(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, i32 noundef %4, ptr noundef %5, i32 noundef %6, ptr noundef %7, i32 noundef %8) #5 align 2 personality ptr @__gxx_personality_v0 {
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca %struct.AVRState, align 8
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca ptr, align 8
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca %class.Insn, align 4
  store ptr %0, ptr %10, align 8, !tbaa !5
  store ptr %1, ptr %11, align 8, !tbaa !5
  store i32 %2, ptr %12, align 4, !tbaa !9
  store ptr %3, ptr %13, align 8, !tbaa !5
  store i32 %4, ptr %14, align 4, !tbaa !9
  store ptr %5, ptr %15, align 8, !tbaa !5
  store i32 %6, ptr %16, align 4, !tbaa !9
  store ptr %7, ptr %17, align 8, !tbaa !5
  store i32 %8, ptr %18, align 4, !tbaa !9
  %28 = load ptr, ptr %10, align 8
  call void @llvm.lifetime.start.p0(i64 4176, ptr %19) #7
  call void @_ZN8AVRStateC2Ev(ptr noundef nonnull align 8 dereferenceable(4172) %19)
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  %29 = load ptr, ptr %11, align 8, !tbaa !5
  %30 = load i32, ptr %12, align 4, !tbaa !9
  %31 = call noundef i32 @_ZN8AVRState12alloc_bufferEPKvj(ptr noundef nonnull align 8 dereferenceable(4172) %19, ptr noundef %29, i32 noundef %30)
  store i32 %31, ptr %20, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #7
  %32 = load i32, ptr %14, align 4, !tbaa !9
  %33 = call noundef i32 @_ZN8AVRState12alloc_bufferEj(ptr noundef nonnull align 8 dereferenceable(4172) %19, i32 noundef %32)
  store i32 %33, ptr %21, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #7
  %34 = load ptr, ptr %15, align 8, !tbaa !5
  %35 = load i32, ptr %16, align 4, !tbaa !9
  %36 = call noundef i32 @_ZN8AVRState12alloc_bufferEPKvj(ptr noundef nonnull align 8 dereferenceable(4172) %19, ptr noundef %34, i32 noundef %35)
  store i32 %36, ptr %22, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #7
  %37 = load ptr, ptr %17, align 8, !tbaa !5
  %38 = load i32, ptr %18, align 4, !tbaa !9
  %39 = call noundef i32 @_ZN8AVRState12alloc_bufferEPKvj(ptr noundef nonnull align 8 dereferenceable(4172) %19, ptr noundef %37, i32 noundef %38)
  store i32 %39, ptr %23, align 4, !tbaa !9
  %40 = load i32, ptr %22, align 4, !tbaa !9
  invoke void @_ZN8AVRState7setPairEij(ptr noundef nonnull align 8 dereferenceable(4172) %19, i32 noundef 26, i32 noundef %40)
          to label %41 unwind label %80

41:                                               ; preds = %9
  %42 = load i32, ptr %20, align 4, !tbaa !9
  invoke void @_ZN8AVRState7setPairEij(ptr noundef nonnull align 8 dereferenceable(4172) %19, i32 noundef 30, i32 noundef %42)
          to label %43 unwind label %80

43:                                               ; preds = %41
  invoke void @_ZN8AVRState6push16Ej(ptr noundef nonnull align 8 dereferenceable(4172) %19, i32 noundef 65535)
          to label %44 unwind label %80

44:                                               ; preds = %43
  %45 = load i32, ptr %21, align 4, !tbaa !9
  invoke void @_ZN8AVRState6push16Ej(ptr noundef nonnull align 8 dereferenceable(4172) %19, i32 noundef %45)
          to label %46 unwind label %80

46:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #7
  %47 = invoke noundef i32 @_ZNK8AVRState4pairEi(ptr noundef nonnull align 8 dereferenceable(4172) %19, i32 noundef 32)
          to label %48 unwind label %84

48:                                               ; preds = %46
  %49 = getelementptr inbounds %class.Code, ptr %28, i32 0, i32 10
  %50 = load i32, ptr %49, align 8, !tbaa !11
  %51 = sub i32 %47, %50
  %52 = sub i32 %51, 1
  store i32 %52, ptr %26, align 4, !tbaa !9
  %53 = load i32, ptr %26, align 4, !tbaa !9
  invoke void @_ZN8AVRState7setPairEij(ptr noundef nonnull align 8 dereferenceable(4172) %19, i32 noundef 28, i32 noundef %53)
          to label %54 unwind label %84

54:                                               ; preds = %48
  %55 = load i32, ptr %26, align 4, !tbaa !9
  invoke void @_ZN8AVRState7setPairEij(ptr noundef nonnull align 8 dereferenceable(4172) %19, i32 noundef 32, i32 noundef %55)
          to label %56 unwind label %84

56:                                               ; preds = %54
  %57 = load i32, ptr %23, align 4, !tbaa !9
  invoke void @_ZN8AVRState7setPairEij(ptr noundef nonnull align 8 dereferenceable(4172) %19, i32 noundef 18, i32 noundef %57)
          to label %58 unwind label %84

58:                                               ; preds = %56
  br label %59

59:                                               ; preds = %100, %58
  %60 = getelementptr inbounds %struct.AVRState, ptr %19, i32 0, i32 7
  %61 = load i32, ptr %60, align 4, !tbaa !37
  %62 = getelementptr inbounds %class.Code, ptr %28, i32 0, i32 0
  %63 = call noundef i64 @_ZNKSt6vectorI4InsnSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %62) #7
  %64 = trunc i64 %63 to i32
  %65 = icmp ne i32 %61, %64
  br i1 %65, label %66, label %110

66:                                               ; preds = %59
  %67 = getelementptr inbounds %struct.AVRState, ptr %19, i32 0, i32 7
  %68 = load i32, ptr %67, align 4, !tbaa !37
  %69 = icmp slt i32 %68, 0
  br i1 %69, label %77, label %70

70:                                               ; preds = %66
  %71 = getelementptr inbounds %struct.AVRState, ptr %19, i32 0, i32 7
  %72 = load i32, ptr %71, align 4, !tbaa !37
  %73 = getelementptr inbounds %class.Code, ptr %28, i32 0, i32 0
  %74 = call noundef i64 @_ZNKSt6vectorI4InsnSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %73) #7
  %75 = trunc i64 %74 to i32
  %76 = icmp sgt i32 %72, %75
  br i1 %76, label %77, label %92

77:                                               ; preds = %70, %66
  %78 = call ptr @__cxa_allocate_exception(i64 16) #7
  invoke void @_ZNSt16invalid_argumentC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %78, ptr noundef @.str.1)
          to label %79 unwind label %88

79:                                               ; preds = %77
  invoke void @__cxa_throw(ptr %78, ptr @_ZTISt16invalid_argument, ptr @_ZNSt16invalid_argumentD1Ev) #8
          to label %153 unwind label %84

80:                                               ; preds = %44, %43, %41, %9
  %81 = landingpad { ptr, i32 }
          cleanup
  %82 = extractvalue { ptr, i32 } %81, 0
  store ptr %82, ptr %24, align 8
  %83 = extractvalue { ptr, i32 } %81, 1
  store i32 %83, ptr %25, align 4
  br label %147

84:                                               ; preds = %133, %126, %121, %116, %79, %56, %54, %48, %46
  %85 = landingpad { ptr, i32 }
          cleanup
  %86 = extractvalue { ptr, i32 } %85, 0
  store ptr %86, ptr %24, align 8
  %87 = extractvalue { ptr, i32 } %85, 1
  store i32 %87, ptr %25, align 4
  br label %146

88:                                               ; preds = %77
  %89 = landingpad { ptr, i32 }
          cleanup
  %90 = extractvalue { ptr, i32 } %89, 0
  store ptr %90, ptr %24, align 8
  %91 = extractvalue { ptr, i32 } %89, 1
  store i32 %91, ptr %25, align 4
  call void @__cxa_free_exception(ptr %78) #7
  br label %146

92:                                               ; preds = %70
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #7
  %93 = getelementptr inbounds %class.Code, ptr %28, i32 0, i32 0
  %94 = getelementptr inbounds %struct.AVRState, ptr %19, i32 0, i32 7
  %95 = load i32, ptr %94, align 4, !tbaa !37
  %96 = add nsw i32 %95, 1
  store i32 %96, ptr %94, align 4, !tbaa !37
  %97 = sext i32 %95 to i64
  %98 = call noundef nonnull align 4 dereferenceable(6) ptr @_ZNSt6vectorI4InsnSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %93, i64 noundef %97) #7
  invoke void @_ZN4InsnC2ERKS_(ptr noundef nonnull align 4 dereferenceable(6) %27, ptr noundef nonnull align 4 dereferenceable(6) %98)
          to label %99 unwind label %101

99:                                               ; preds = %92
  invoke void @_ZL9exec_insnR8AVRStateRK4CodeRK4Insn(ptr noundef nonnull align 8 dereferenceable(4172) %19, ptr noundef nonnull align 8 dereferenceable(200) %28, ptr noundef nonnull align 4 dereferenceable(6) %27)
          to label %100 unwind label %105

100:                                              ; preds = %99
  call void @_ZN4InsnD2Ev(ptr noundef nonnull align 4 dereferenceable(6) %27) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #7
  br label %59, !llvm.loop !40

101:                                              ; preds = %92
  %102 = landingpad { ptr, i32 }
          cleanup
  %103 = extractvalue { ptr, i32 } %102, 0
  store ptr %103, ptr %24, align 8
  %104 = extractvalue { ptr, i32 } %102, 1
  store i32 %104, ptr %25, align 4
  br label %109

105:                                              ; preds = %99
  %106 = landingpad { ptr, i32 }
          cleanup
  %107 = extractvalue { ptr, i32 } %106, 0
  store ptr %107, ptr %24, align 8
  %108 = extractvalue { ptr, i32 } %106, 1
  store i32 %108, ptr %25, align 4
  call void @_ZN4InsnD2Ev(ptr noundef nonnull align 4 dereferenceable(6) %27) #7
  br label %109

109:                                              ; preds = %105, %101
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #7
  br label %146

110:                                              ; preds = %59
  %111 = getelementptr inbounds %struct.AVRState, ptr %19, i32 0, i32 0
  %112 = getelementptr inbounds [34 x i8], ptr %111, i64 0, i64 1
  %113 = load i8, ptr %112, align 1, !tbaa !42
  %114 = zext i8 %113 to i32
  %115 = icmp ne i32 %114, 0
  br i1 %115, label %116, label %126

116:                                              ; preds = %110
  %117 = invoke noundef zeroext i1 @_ZNK4Code7hasFlagENS_4FlagE(ptr noundef nonnull align 8 dereferenceable(200) %28, i32 noundef 128)
          to label %118 unwind label %84

118:                                              ; preds = %116
  br i1 %117, label %126, label %119

119:                                              ; preds = %118
  %120 = call ptr @__cxa_allocate_exception(i64 16) #7
  invoke void @_ZNSt16invalid_argumentC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %120, ptr noundef @.str.2)
          to label %121 unwind label %122

121:                                              ; preds = %119
  invoke void @__cxa_throw(ptr %120, ptr @_ZTISt16invalid_argument, ptr @_ZNSt16invalid_argumentD1Ev) #8
          to label %153 unwind label %84

122:                                              ; preds = %119
  %123 = landingpad { ptr, i32 }
          cleanup
  %124 = extractvalue { ptr, i32 } %123, 0
  store ptr %124, ptr %24, align 8
  %125 = extractvalue { ptr, i32 } %123, 1
  store i32 %125, ptr %25, align 4
  call void @__cxa_free_exception(ptr %120) #7
  br label %146

126:                                              ; preds = %118, %110
  %127 = invoke noundef i32 @_ZNK8AVRState4pairEi(ptr noundef nonnull align 8 dereferenceable(4172) %19, i32 noundef 32)
          to label %128 unwind label %84

128:                                              ; preds = %126
  %129 = load i32, ptr %26, align 4, !tbaa !9
  %130 = icmp ne i32 %127, %129
  br i1 %130, label %131, label %138

131:                                              ; preds = %128
  %132 = call ptr @__cxa_allocate_exception(i64 16) #7
  invoke void @_ZNSt16invalid_argumentC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %132, ptr noundef @.str.3)
          to label %133 unwind label %134

133:                                              ; preds = %131
  invoke void @__cxa_throw(ptr %132, ptr @_ZTISt16invalid_argument, ptr @_ZNSt16invalid_argumentD1Ev) #8
          to label %153 unwind label %84

134:                                              ; preds = %131
  %135 = landingpad { ptr, i32 }
          cleanup
  %136 = extractvalue { ptr, i32 } %135, 0
  store ptr %136, ptr %24, align 8
  %137 = extractvalue { ptr, i32 } %135, 1
  store i32 %137, ptr %25, align 4
  call void @__cxa_free_exception(ptr %132) #7
  br label %146

138:                                              ; preds = %128
  %139 = load ptr, ptr %13, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.AVRState, ptr %19, i32 0, i32 4
  %141 = load i32, ptr %21, align 4, !tbaa !9
  %142 = zext i32 %141 to i64
  %143 = getelementptr inbounds [4096 x i8], ptr %140, i64 0, i64 %142
  %144 = load i32, ptr %14, align 4, !tbaa !9
  %145 = zext i32 %144 to i64
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %139, ptr align 1 %143, i64 %145, i1 false)
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  call void @_ZN8AVRStateD2Ev(ptr noundef nonnull align 8 dereferenceable(4172) %19) #7
  call void @llvm.lifetime.end.p0(i64 4176, ptr %19) #7
  ret void

146:                                              ; preds = %134, %122, %109, %88, %84
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #7
  br label %147

147:                                              ; preds = %146, %80
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  call void @_ZN8AVRStateD2Ev(ptr noundef nonnull align 8 dereferenceable(4172) %19) #7
  call void @llvm.lifetime.end.p0(i64 4176, ptr %19) #7
  br label %148

148:                                              ; preds = %147
  %149 = load ptr, ptr %24, align 8
  %150 = load i32, ptr %25, align 4
  %151 = insertvalue { ptr, i32 } poison, ptr %149, 0
  %152 = insertvalue { ptr, i32 } %151, i32 %150, 1
  resume { ptr, i32 } %152

153:                                              ; preds = %133, %121, %79
  unreachable
}

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

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 112}
!12 = !{!"_ZTS4Code", !13, i64 0, !17, i64 24, !21, i64 48, !10, i64 72, !10, i64 76, !10, i64 80, !10, i64 84, !7, i64 88, !10, i64 104, !25, i64 108, !10, i64 112, !26, i64 120, !29, i64 152}
!13 = !{!"_ZTSSt6vectorI4InsnSaIS0_EE", !14, i64 0}
!14 = !{!"_ZTSSt12_Vector_baseI4InsnSaIS0_EE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseI4InsnSaIS0_EE12_Vector_implE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseI4InsnSaIS0_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!17 = !{!"_ZTSSt6vectorIiSaIiEE", !18, i64 0}
!18 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!21 = !{!"_ZTSSt6vectorIhSaIhEE", !22, i64 0}
!22 = !{!"_ZTSSt12_Vector_baseIhSaIhEE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIhSaIhEE12_Vector_implE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIhSaIhEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!25 = !{!"_ZTSN4Code12PrologueTypeE", !7, i64 0}
!26 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !27, i64 0, !28, i64 8, !7, i64 16}
!27 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!28 = !{!"long", !7, i64 0}
!29 = !{!"_ZTSSt3mapIh4SboxSt4lessIhESaISt4pairIKhS0_EEE", !30, i64 0}
!30 = !{!"_ZTSSt8_Rb_treeIhSt4pairIKh4SboxESt10_Select1stIS3_ESt4lessIhESaIS3_EE", !31, i64 0}
!31 = !{!"_ZTSNSt8_Rb_treeIhSt4pairIKh4SboxESt10_Select1stIS3_ESt4lessIhESaIS3_EE13_Rb_tree_implIS7_Lb1EEE", !32, i64 0, !34, i64 8}
!32 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIhEE", !33, i64 0}
!33 = !{!"_ZTSSt4lessIhE"}
!34 = !{!"_ZTSSt15_Rb_tree_header", !35, i64 0, !28, i64 32}
!35 = !{!"_ZTSSt18_Rb_tree_node_base", !36, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!36 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!37 = !{!38, !10, i64 4140}
!38 = !{!"_ZTS8AVRState", !7, i64 0, !7, i64 34, !7, i64 35, !7, i64 36, !7, i64 37, !10, i64 4136, !10, i64 4140, !39, i64 4144, !10, i64 4168}
!39 = !{!"_ZTS4Sbox", !21, i64 0}
!40 = distinct !{!40, !41}
!41 = !{!"llvm.loop.mustprogress"}
!42 = !{!7, !7, i64 0}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.AVRState = type <{ [34 x i8], i8, i8, i8, [4096 x i8], [3 x i8], i32, i32, %class.Sbox, i32, [4 x i8] }>
%class.Sbox = 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 }
%class.Insn = type <{ i32, i8, i8, [2 x i8] }>

@_ZTISt16invalid_argument = external constant ptr
@.str.1 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [37 x i8], align 1

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

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN8AVRState12alloc_bufferEj(ptr noundef nonnull align 8 dereferenceable(4172), i32 noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN8AVRState12alloc_bufferEPKvj(ptr noundef nonnull align 8 dereferenceable(4172), ptr noundef, i32 noundef) local_unnamed_addr #3 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8AVRState7setPairEij(ptr noundef nonnull align 8 dereferenceable(4172), i32 noundef, i32 noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8AVRState6push16Ej(ptr noundef nonnull align 8 dereferenceable(4172), i32 noundef) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK8AVRState4pairEi(ptr noundef nonnull align 8 dereferenceable(4172), i32 noundef) local_unnamed_addr #3 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(6) ptr @_ZNSt6vectorI4InsnSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4InsnC2ERKS_(ptr noundef nonnull align 4 dereferenceable(6), ptr noundef nonnull align 4 dereferenceable(6)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL9exec_insnR8AVRStateRK4CodeRK4Insn(ptr noundef nonnull align 8 dereferenceable(4172), ptr noundef nonnull align 8 dereferenceable(200), ptr noundef nonnull align 4 dereferenceable(6)) local_unnamed_addr #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4InsnD2Ev(ptr noundef nonnull align 4 dereferenceable(6)) unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4Code7hasFlagENS_4FlagE(ptr noundef nonnull align 8 dereferenceable(200), i32 noundef) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN8AVRStateD2Ev(ptr noundef nonnull align 8 dereferenceable(4172)) unnamed_addr #6 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4Code33exec_encrypt_block_with_tweak_ptrEPKvjPvjS1_jS1_j(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef %1, i32 noundef %2, ptr nocapture noundef writeonly %3, i32 noundef %4, ptr noundef %5, i32 noundef %6, ptr noundef %7, i32 noundef %8) local_unnamed_addr #5 align 2 personality ptr @__gxx_personality_v0 {
  %10 = alloca %struct.AVRState, align 8
  %11 = alloca %class.Insn, align 4
  call void @llvm.lifetime.start.p0(i64 4176, ptr nonnull %10) #7
  call void @_ZN8AVRStateC2Ev(ptr noundef nonnull align 8 dereferenceable(4172) %10)
  %12 = call noundef i32 @_ZN8AVRState12alloc_bufferEPKvj(ptr noundef nonnull align 8 dereferenceable(4172) %10, ptr noundef %1, i32 noundef %2)
  %13 = call noundef i32 @_ZN8AVRState12alloc_bufferEj(ptr noundef nonnull align 8 dereferenceable(4172) %10, i32 noundef %4)
  %14 = call noundef i32 @_ZN8AVRState12alloc_bufferEPKvj(ptr noundef nonnull align 8 dereferenceable(4172) %10, ptr noundef %5, i32 noundef %6)
  %15 = call noundef i32 @_ZN8AVRState12alloc_bufferEPKvj(ptr noundef nonnull align 8 dereferenceable(4172) %10, ptr noundef %7, i32 noundef %8)
  call void @_ZN8AVRState7setPairEij(ptr noundef nonnull align 8 dereferenceable(4172) %10, i32 noundef 26, i32 noundef %14)
  call void @_ZN8AVRState7setPairEij(ptr noundef nonnull align 8 dereferenceable(4172) %10, i32 noundef 30, i32 noundef %12)
  invoke void @_ZN8AVRState6push16Ej(ptr noundef nonnull align 8 dereferenceable(4172) %10, i32 noundef 65535)
          to label %16 unwind label %35

16:                                               ; preds = %9
  invoke void @_ZN8AVRState6push16Ej(ptr noundef nonnull align 8 dereferenceable(4172) %10, i32 noundef %13)
          to label %17 unwind label %35

17:                                               ; preds = %16
  %18 = call noundef i32 @_ZNK8AVRState4pairEi(ptr noundef nonnull align 8 dereferenceable(4172) %10, i32 noundef 32)
  %19 = getelementptr inbounds i8, ptr %0, i64 112
  %20 = load i32, ptr %19, align 8, !tbaa !5
  %21 = xor i32 %20, -1
  %22 = add i32 %18, %21
  call void @_ZN8AVRState7setPairEij(ptr noundef nonnull align 8 dereferenceable(4172) %10, i32 noundef 28, i32 noundef %22)
  call void @_ZN8AVRState7setPairEij(ptr noundef nonnull align 8 dereferenceable(4172) %10, i32 noundef 32, i32 noundef %22)
  call void @_ZN8AVRState7setPairEij(ptr noundef nonnull align 8 dereferenceable(4172) %10, i32 noundef 18, i32 noundef %15)
  %23 = getelementptr inbounds i8, ptr %10, i64 4140
  %24 = load i32, ptr %23, align 4, !tbaa !35
  %25 = call noundef i64 @_ZNKSt6vectorI4InsnSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #7
  %26 = trunc i64 %25 to i32
  %.not26 = icmp eq i32 %24, %26
  br i1 %.not26, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %17, %46
  %27 = load i32, ptr %23, align 4, !tbaa !35
  %28 = icmp slt i32 %27, 0
  br i1 %28, label %33, label %29

29:                                               ; preds = %.lr.ph
  %30 = call noundef i64 @_ZNKSt6vectorI4InsnSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #7
  %31 = trunc i64 %30 to i32
  %32 = icmp sgt i32 %27, %31
  br i1 %32, label %33, label %41

33:                                               ; preds = %29, %.lr.ph
  %34 = call ptr @__cxa_allocate_exception(i64 16) #7
  invoke void @_ZNSt16invalid_argumentC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %34, ptr noundef nonnull @.str.1)
          to label %.invoke unwind label %39

35:                                               ; preds = %16, %9
  %36 = landingpad { ptr, i32 }
          cleanup
  br label %72

37:                                               ; preds = %.invoke
  %38 = landingpad { ptr, i32 }
          cleanup
  br label %72

39:                                               ; preds = %33
  %40 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %34) #7
  br label %72

41:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #7
  %42 = load i32, ptr %23, align 4, !tbaa !35
  %43 = add nsw i32 %42, 1
  store i32 %43, ptr %23, align 4, !tbaa !35
  %44 = sext i32 %42 to i64
  %45 = call noundef nonnull align 4 dereferenceable(6) ptr @_ZNSt6vectorI4InsnSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %44) #7
  call void @_ZN4InsnC2ERKS_(ptr noundef nonnull align 4 dereferenceable(6) %11, ptr noundef nonnull align 4 dereferenceable(6) %45)
  invoke void @_ZL9exec_insnR8AVRStateRK4CodeRK4Insn(ptr noundef nonnull align 8 dereferenceable(4172) %10, ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 4 dereferenceable(6) %11)
          to label %46 unwind label %50

46:                                               ; preds = %41
  call void @_ZN4InsnD2Ev(ptr noundef nonnull align 4 dereferenceable(6) %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #7
  %47 = load i32, ptr %23, align 4, !tbaa !35
  %48 = call noundef i64 @_ZNKSt6vectorI4InsnSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #7
  %49 = trunc i64 %48 to i32
  %.not = icmp eq i32 %47, %49
  br i1 %.not, label %._crit_edge, label %.lr.ph, !llvm.loop !38

50:                                               ; preds = %41
  %51 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4InsnD2Ev(ptr noundef nonnull align 4 dereferenceable(6) %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #7
  br label %72

._crit_edge:                                      ; preds = %46, %17
  %52 = getelementptr inbounds i8, ptr %10, i64 1
  %53 = load i8, ptr %52, align 1, !tbaa !40
  %.not22 = icmp eq i8 %53, 0
  br i1 %.not22, label %60, label %54

54:                                               ; preds = %._crit_edge
  %55 = call noundef zeroext i1 @_ZNK4Code7hasFlagENS_4FlagE(ptr noundef nonnull align 8 dereferenceable(200) %0, i32 noundef 128)
  br i1 %55, label %60, label %56

56:                                               ; preds = %54
  %57 = call ptr @__cxa_allocate_exception(i64 16) #7
  invoke void @_ZNSt16invalid_argumentC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %57, ptr noundef nonnull @.str.2)
          to label %.invoke unwind label %58

58:                                               ; preds = %56
  %59 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %57) #7
  br label %72

60:                                               ; preds = %54, %._crit_edge
  %61 = call noundef i32 @_ZNK8AVRState4pairEi(ptr noundef nonnull align 8 dereferenceable(4172) %10, i32 noundef 32)
  %.not23 = icmp eq i32 %61, %22
  br i1 %.not23, label %67, label %62

62:                                               ; preds = %60
  %63 = call ptr @__cxa_allocate_exception(i64 16) #7
  invoke void @_ZNSt16invalid_argumentC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %63, ptr noundef nonnull @.str.3)
          to label %.invoke unwind label %65

.invoke:                                          ; preds = %33, %62, %56
  %64 = phi ptr [ %57, %56 ], [ %63, %62 ], [ %34, %33 ]
  invoke void @__cxa_throw(ptr nonnull %64, ptr nonnull @_ZTISt16invalid_argument, ptr nonnull @_ZNSt16invalid_argumentD1Ev) #8
          to label %.cont unwind label %37

.cont:                                            ; preds = %.invoke
  unreachable

65:                                               ; preds = %62
  %66 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %63) #7
  br label %72

67:                                               ; preds = %60
  %68 = getelementptr inbounds i8, ptr %10, i64 37
  %69 = zext i32 %13 to i64
  %70 = getelementptr inbounds [4096 x i8], ptr %68, i64 0, i64 %69
  %71 = zext i32 %4 to i64
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %3, ptr nonnull align 1 %70, i64 %71, i1 false)
  call void @_ZN8AVRStateD2Ev(ptr noundef nonnull align 8 dereferenceable(4172) %10) #7
  call void @llvm.lifetime.end.p0(i64 4176, ptr nonnull %10) #7
  ret void

72:                                               ; preds = %37, %39, %50, %58, %65, %35
  %.pn.pn = phi { ptr, i32 } [ %36, %35 ], [ %38, %37 ], [ %40, %39 ], [ %51, %50 ], [ %66, %65 ], [ %59, %58 ]
  call void @_ZN8AVRStateD2Ev(ptr noundef nonnull align 8 dereferenceable(4172) %10) #7
  call void @llvm.lifetime.end.p0(i64 4176, ptr nonnull %10) #7
  resume { ptr, i32 } %.pn.pn
}

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

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !22, i64 112}
!6 = !{!"_ZTS4Code", !7, i64 0, !14, i64 24, !18, i64 48, !22, i64 72, !22, i64 76, !22, i64 80, !22, i64 84, !12, i64 88, !22, i64 104, !23, i64 108, !22, i64 112, !24, i64 120, !27, i64 152}
!7 = !{!"_ZTSSt6vectorI4InsnSaIS0_EE", !8, i64 0}
!8 = !{!"_ZTSSt12_Vector_baseI4InsnSaIS0_EE", !9, i64 0}
!9 = !{!"_ZTSNSt12_Vector_baseI4InsnSaIS0_EE12_Vector_implE", !10, i64 0}
!10 = !{!"_ZTSNSt12_Vector_baseI4InsnSaIS0_EE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!11 = !{!"any pointer", !12, i64 0}
!12 = !{!"omnipotent char", !13, i64 0}
!13 = !{!"Simple C++ TBAA"}
!14 = !{!"_ZTSSt6vectorIiSaIiEE", !15, i64 0}
!15 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!18 = !{!"_ZTSSt6vectorIhSaIhEE", !19, i64 0}
!19 = !{!"_ZTSSt12_Vector_baseIhSaIhEE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIhSaIhEE12_Vector_implE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIhSaIhEE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!22 = !{!"int", !12, i64 0}
!23 = !{!"_ZTSN4Code12PrologueTypeE", !12, i64 0}
!24 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !25, i64 0, !26, i64 8, !12, i64 16}
!25 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !11, i64 0}
!26 = !{!"long", !12, i64 0}
!27 = !{!"_ZTSSt3mapIh4SboxSt4lessIhESaISt4pairIKhS0_EEE", !28, i64 0}
!28 = !{!"_ZTSSt8_Rb_treeIhSt4pairIKh4SboxESt10_Select1stIS3_ESt4lessIhESaIS3_EE", !29, i64 0}
!29 = !{!"_ZTSNSt8_Rb_treeIhSt4pairIKh4SboxESt10_Select1stIS3_ESt4lessIhESaIS3_EE13_Rb_tree_implIS7_Lb1EEE", !30, i64 0, !32, i64 8}
!30 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIhEE", !31, i64 0}
!31 = !{!"_ZTSSt4lessIhE"}
!32 = !{!"_ZTSSt15_Rb_tree_header", !33, i64 0, !26, i64 32}
!33 = !{!"_ZTSSt18_Rb_tree_node_base", !34, i64 0, !11, i64 8, !11, i64 16, !11, i64 24}
!34 = !{!"_ZTSSt14_Rb_tree_color", !12, i64 0}
!35 = !{!36, !22, i64 4140}
!36 = !{!"_ZTS8AVRState", !12, i64 0, !12, i64 34, !12, i64 35, !12, i64 36, !12, i64 37, !22, i64 4136, !22, i64 4140, !37, i64 4144, !22, i64 4168}
!37 = !{!"_ZTS4Sbox", !18, i64 0}
!38 = distinct !{!38, !39}
!39 = !{!"llvm.loop.mustprogress"}
!40 = !{!12, !12, i64 0}


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