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

; 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
define dso_local void @_ZN4Code14exec_setup_keyEPvjPKvj(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, i32 noundef %4) #5 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca %struct.AVRState, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca %class.Insn, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store i32 %2, ptr %8, align 4, !tbaa !9
  store ptr %3, ptr %9, align 8, !tbaa !5
  store i32 %4, ptr %10, align 4, !tbaa !9
  %18 = load ptr, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 4176, ptr %11) #7
  call void @_ZN8AVRStateC2Ev(ptr noundef nonnull align 8 dereferenceable(4172) %11)
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  %19 = load i32, ptr %8, align 4, !tbaa !9
  %20 = call noundef i32 @_ZN8AVRState12alloc_bufferEj(ptr noundef nonnull align 8 dereferenceable(4172) %11, i32 noundef %19)
  store i32 %20, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  %21 = load ptr, ptr %9, align 8, !tbaa !5
  %22 = load i32, ptr %10, align 4, !tbaa !9
  %23 = call noundef i32 @_ZN8AVRState12alloc_bufferEPKvj(ptr noundef nonnull align 8 dereferenceable(4172) %11, ptr noundef %21, i32 noundef %22)
  store i32 %23, ptr %13, align 4, !tbaa !9
  %24 = load i32, ptr %12, align 4, !tbaa !9
  invoke void @_ZN8AVRState7setPairEij(ptr noundef nonnull align 8 dereferenceable(4172) %11, i32 noundef 30, i32 noundef %24)
          to label %25 unwind label %60

25:                                               ; preds = %5
  %26 = load i32, ptr %13, align 4, !tbaa !9
  invoke void @_ZN8AVRState7setPairEij(ptr noundef nonnull align 8 dereferenceable(4172) %11, i32 noundef 26, i32 noundef %26)
          to label %27 unwind label %60

27:                                               ; preds = %25
  invoke void @_ZN8AVRState6push16Ej(ptr noundef nonnull align 8 dereferenceable(4172) %11, i32 noundef 65535)
          to label %28 unwind label %60

28:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  %29 = invoke noundef i32 @_ZNK8AVRState4pairEi(ptr noundef nonnull align 8 dereferenceable(4172) %11, i32 noundef 32)
          to label %30 unwind label %64

30:                                               ; preds = %28
  %31 = getelementptr inbounds %class.Code, ptr %18, i32 0, i32 10
  %32 = load i32, ptr %31, align 8, !tbaa !11
  %33 = sub i32 %29, %32
  %34 = sub i32 %33, 1
  store i32 %34, ptr %16, align 4, !tbaa !9
  %35 = load i32, ptr %16, align 4, !tbaa !9
  invoke void @_ZN8AVRState7setPairEij(ptr noundef nonnull align 8 dereferenceable(4172) %11, i32 noundef 28, i32 noundef %35)
          to label %36 unwind label %64

36:                                               ; preds = %30
  %37 = load i32, ptr %16, align 4, !tbaa !9
  invoke void @_ZN8AVRState7setPairEij(ptr noundef nonnull align 8 dereferenceable(4172) %11, i32 noundef 32, i32 noundef %37)
          to label %38 unwind label %64

38:                                               ; preds = %36
  br label %39

39:                                               ; preds = %80, %38
  %40 = getelementptr inbounds %struct.AVRState, ptr %11, i32 0, i32 7
  %41 = load i32, ptr %40, align 4, !tbaa !37
  %42 = getelementptr inbounds %class.Code, ptr %18, i32 0, i32 0
  %43 = call noundef i64 @_ZNKSt6vectorI4InsnSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %42) #7
  %44 = trunc i64 %43 to i32
  %45 = icmp ne i32 %41, %44
  br i1 %45, label %46, label %90

46:                                               ; preds = %39
  %47 = getelementptr inbounds %struct.AVRState, ptr %11, i32 0, i32 7
  %48 = load i32, ptr %47, align 4, !tbaa !37
  %49 = icmp slt i32 %48, 0
  br i1 %49, label %57, label %50

50:                                               ; preds = %46
  %51 = getelementptr inbounds %struct.AVRState, ptr %11, i32 0, i32 7
  %52 = load i32, ptr %51, align 4, !tbaa !37
  %53 = getelementptr inbounds %class.Code, ptr %18, i32 0, i32 0
  %54 = call noundef i64 @_ZNKSt6vectorI4InsnSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %53) #7
  %55 = trunc i64 %54 to i32
  %56 = icmp sgt i32 %52, %55
  br i1 %56, label %57, label %72

57:                                               ; preds = %50, %46
  %58 = call ptr @__cxa_allocate_exception(i64 16) #7
  invoke void @_ZNSt16invalid_argumentC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %58, ptr noundef @.str.1)
          to label %59 unwind label %68

59:                                               ; preds = %57
  invoke void @__cxa_throw(ptr %58, ptr @_ZTISt16invalid_argument, ptr @_ZNSt16invalid_argumentD1Ev) #8
          to label %133 unwind label %64

60:                                               ; preds = %27, %25, %5
  %61 = landingpad { ptr, i32 }
          cleanup
  %62 = extractvalue { ptr, i32 } %61, 0
  store ptr %62, ptr %14, align 8
  %63 = extractvalue { ptr, i32 } %61, 1
  store i32 %63, ptr %15, align 4
  br label %127

64:                                               ; preds = %113, %106, %101, %96, %59, %36, %30, %28
  %65 = landingpad { ptr, i32 }
          cleanup
  %66 = extractvalue { ptr, i32 } %65, 0
  store ptr %66, ptr %14, align 8
  %67 = extractvalue { ptr, i32 } %65, 1
  store i32 %67, ptr %15, align 4
  br label %126

68:                                               ; preds = %57
  %69 = landingpad { ptr, i32 }
          cleanup
  %70 = extractvalue { ptr, i32 } %69, 0
  store ptr %70, ptr %14, align 8
  %71 = extractvalue { ptr, i32 } %69, 1
  store i32 %71, ptr %15, align 4
  call void @__cxa_free_exception(ptr %58) #7
  br label %126

72:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %73 = getelementptr inbounds %class.Code, ptr %18, i32 0, i32 0
  %74 = getelementptr inbounds %struct.AVRState, ptr %11, i32 0, i32 7
  %75 = load i32, ptr %74, align 4, !tbaa !37
  %76 = add nsw i32 %75, 1
  store i32 %76, ptr %74, align 4, !tbaa !37
  %77 = sext i32 %75 to i64
  %78 = call noundef nonnull align 4 dereferenceable(6) ptr @_ZNSt6vectorI4InsnSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %73, i64 noundef %77) #7
  invoke void @_ZN4InsnC2ERKS_(ptr noundef nonnull align 4 dereferenceable(6) %17, ptr noundef nonnull align 4 dereferenceable(6) %78)
          to label %79 unwind label %81

79:                                               ; preds = %72
  invoke void @_ZL9exec_insnR8AVRStateRK4CodeRK4Insn(ptr noundef nonnull align 8 dereferenceable(4172) %11, ptr noundef nonnull align 8 dereferenceable(200) %18, ptr noundef nonnull align 4 dereferenceable(6) %17)
          to label %80 unwind label %85

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

81:                                               ; preds = %72
  %82 = landingpad { ptr, i32 }
          cleanup
  %83 = extractvalue { ptr, i32 } %82, 0
  store ptr %83, ptr %14, align 8
  %84 = extractvalue { ptr, i32 } %82, 1
  store i32 %84, ptr %15, align 4
  br label %89

85:                                               ; preds = %79
  %86 = landingpad { ptr, i32 }
          cleanup
  %87 = extractvalue { ptr, i32 } %86, 0
  store ptr %87, ptr %14, align 8
  %88 = extractvalue { ptr, i32 } %86, 1
  store i32 %88, ptr %15, align 4
  call void @_ZN4InsnD2Ev(ptr noundef nonnull align 4 dereferenceable(6) %17) #7
  br label %89

89:                                               ; preds = %85, %81
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  br label %126

90:                                               ; preds = %39
  %91 = getelementptr inbounds %struct.AVRState, ptr %11, i32 0, i32 0
  %92 = getelementptr inbounds [34 x i8], ptr %91, i64 0, i64 1
  %93 = load i8, ptr %92, align 1, !tbaa !42
  %94 = zext i8 %93 to i32
  %95 = icmp ne i32 %94, 0
  br i1 %95, label %96, label %106

96:                                               ; preds = %90
  %97 = invoke noundef zeroext i1 @_ZNK4Code7hasFlagENS_4FlagE(ptr noundef nonnull align 8 dereferenceable(200) %18, i32 noundef 128)
          to label %98 unwind label %64

98:                                               ; preds = %96
  br i1 %97, label %106, label %99

99:                                               ; preds = %98
  %100 = call ptr @__cxa_allocate_exception(i64 16) #7
  invoke void @_ZNSt16invalid_argumentC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %100, ptr noundef @.str.2)
          to label %101 unwind label %102

101:                                              ; preds = %99
  invoke void @__cxa_throw(ptr %100, ptr @_ZTISt16invalid_argument, ptr @_ZNSt16invalid_argumentD1Ev) #8
          to label %133 unwind label %64

102:                                              ; preds = %99
  %103 = landingpad { ptr, i32 }
          cleanup
  %104 = extractvalue { ptr, i32 } %103, 0
  store ptr %104, ptr %14, align 8
  %105 = extractvalue { ptr, i32 } %103, 1
  store i32 %105, ptr %15, align 4
  call void @__cxa_free_exception(ptr %100) #7
  br label %126

106:                                              ; preds = %98, %90
  %107 = invoke noundef i32 @_ZNK8AVRState4pairEi(ptr noundef nonnull align 8 dereferenceable(4172) %11, i32 noundef 32)
          to label %108 unwind label %64

108:                                              ; preds = %106
  %109 = load i32, ptr %16, align 4, !tbaa !9
  %110 = icmp ne i32 %107, %109
  br i1 %110, label %111, label %118

111:                                              ; preds = %108
  %112 = call ptr @__cxa_allocate_exception(i64 16) #7
  invoke void @_ZNSt16invalid_argumentC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %112, ptr noundef @.str.3)
          to label %113 unwind label %114

113:                                              ; preds = %111
  invoke void @__cxa_throw(ptr %112, ptr @_ZTISt16invalid_argument, ptr @_ZNSt16invalid_argumentD1Ev) #8
          to label %133 unwind label %64

114:                                              ; preds = %111
  %115 = landingpad { ptr, i32 }
          cleanup
  %116 = extractvalue { ptr, i32 } %115, 0
  store ptr %116, ptr %14, align 8
  %117 = extractvalue { ptr, i32 } %115, 1
  store i32 %117, ptr %15, align 4
  call void @__cxa_free_exception(ptr %112) #7
  br label %126

118:                                              ; preds = %108
  %119 = load ptr, ptr %7, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.AVRState, ptr %11, i32 0, i32 4
  %121 = load i32, ptr %12, align 4, !tbaa !9
  %122 = zext i32 %121 to i64
  %123 = getelementptr inbounds [4096 x i8], ptr %120, i64 0, i64 %122
  %124 = load i32, ptr %8, align 4, !tbaa !9
  %125 = zext i32 %124 to i64
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %119, ptr align 1 %123, i64 %125, i1 false)
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  call void @_ZN8AVRStateD2Ev(ptr noundef nonnull align 8 dereferenceable(4172) %11) #7
  call void @llvm.lifetime.end.p0(i64 4176, ptr %11) #7
  ret void

126:                                              ; preds = %114, %102, %89, %68, %64
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  br label %127

127:                                              ; preds = %126, %60
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  call void @_ZN8AVRStateD2Ev(ptr noundef nonnull align 8 dereferenceable(4172) %11) #7
  call void @llvm.lifetime.end.p0(i64 4176, ptr %11) #7
  br label %128

128:                                              ; preds = %127
  %129 = load ptr, ptr %14, align 8
  %130 = load i32, ptr %15, align 4
  %131 = insertvalue { ptr, i32 } poison, ptr %129, 0
  %132 = insertvalue { ptr, i32 } %131, i32 %130, 1
  resume { ptr, i32 } %132

133:                                              ; preds = %113, %101, %59
  unreachable
}

; 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

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
define dso_local void @_ZN4Code14exec_setup_keyEPvjPKvj(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr nocapture noundef writeonly %1, i32 noundef %2, ptr noundef %3, i32 noundef %4) local_unnamed_addr #5 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca %struct.AVRState, align 8
  %7 = alloca %class.Insn, align 4
  call void @llvm.lifetime.start.p0(i64 4176, ptr nonnull %6) #7
  call void @_ZN8AVRStateC2Ev(ptr noundef nonnull align 8 dereferenceable(4172) %6)
  %8 = call noundef i32 @_ZN8AVRState12alloc_bufferEj(ptr noundef nonnull align 8 dereferenceable(4172) %6, i32 noundef %2)
  %9 = call noundef i32 @_ZN8AVRState12alloc_bufferEPKvj(ptr noundef nonnull align 8 dereferenceable(4172) %6, ptr noundef %3, i32 noundef %4)
  call void @_ZN8AVRState7setPairEij(ptr noundef nonnull align 8 dereferenceable(4172) %6, i32 noundef 30, i32 noundef %8)
  call void @_ZN8AVRState7setPairEij(ptr noundef nonnull align 8 dereferenceable(4172) %6, i32 noundef 26, i32 noundef %9)
  invoke void @_ZN8AVRState6push16Ej(ptr noundef nonnull align 8 dereferenceable(4172) %6, i32 noundef 65535)
          to label %10 unwind label %28

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

.lr.ph:                                           ; preds = %10, %39
  %20 = load i32, ptr %16, align 4, !tbaa !35
  %21 = icmp slt i32 %20, 0
  br i1 %21, label %26, label %22

22:                                               ; preds = %.lr.ph
  %23 = call noundef i64 @_ZNKSt6vectorI4InsnSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #7
  %24 = trunc i64 %23 to i32
  %25 = icmp sgt i32 %20, %24
  br i1 %25, label %26, label %34

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

28:                                               ; preds = %5
  %29 = landingpad { ptr, i32 }
          cleanup
  br label %65

30:                                               ; preds = %.invoke
  %31 = landingpad { ptr, i32 }
          cleanup
  br label %65

32:                                               ; preds = %26
  %33 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %27) #7
  br label %65

34:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  %35 = load i32, ptr %16, align 4, !tbaa !35
  %36 = add nsw i32 %35, 1
  store i32 %36, ptr %16, align 4, !tbaa !35
  %37 = sext i32 %35 to i64
  %38 = call noundef nonnull align 4 dereferenceable(6) ptr @_ZNSt6vectorI4InsnSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %37) #7
  call void @_ZN4InsnC2ERKS_(ptr noundef nonnull align 4 dereferenceable(6) %7, ptr noundef nonnull align 4 dereferenceable(6) %38)
  invoke void @_ZL9exec_insnR8AVRStateRK4CodeRK4Insn(ptr noundef nonnull align 8 dereferenceable(4172) %6, ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 4 dereferenceable(6) %7)
          to label %39 unwind label %43

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

43:                                               ; preds = %34
  %44 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4InsnD2Ev(ptr noundef nonnull align 4 dereferenceable(6) %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  br label %65

._crit_edge:                                      ; preds = %39, %10
  %45 = getelementptr inbounds i8, ptr %6, i64 1
  %46 = load i8, ptr %45, align 1, !tbaa !40
  %.not16 = icmp eq i8 %46, 0
  br i1 %.not16, label %53, label %47

47:                                               ; preds = %._crit_edge
  %48 = call noundef zeroext i1 @_ZNK4Code7hasFlagENS_4FlagE(ptr noundef nonnull align 8 dereferenceable(200) %0, i32 noundef 128)
  br i1 %48, label %53, label %49

49:                                               ; preds = %47
  %50 = call ptr @__cxa_allocate_exception(i64 16) #7
  invoke void @_ZNSt16invalid_argumentC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %50, ptr noundef nonnull @.str.2)
          to label %.invoke unwind label %51

51:                                               ; preds = %49
  %52 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %50) #7
  br label %65

53:                                               ; preds = %47, %._crit_edge
  %54 = call noundef i32 @_ZNK8AVRState4pairEi(ptr noundef nonnull align 8 dereferenceable(4172) %6, i32 noundef 32)
  %.not17 = icmp eq i32 %54, %15
  br i1 %.not17, label %60, label %55

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

.invoke:                                          ; preds = %26, %55, %49
  %57 = phi ptr [ %50, %49 ], [ %56, %55 ], [ %27, %26 ]
  invoke void @__cxa_throw(ptr nonnull %57, ptr nonnull @_ZTISt16invalid_argument, ptr nonnull @_ZNSt16invalid_argumentD1Ev) #8
          to label %.cont unwind label %30

.cont:                                            ; preds = %.invoke
  unreachable

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

60:                                               ; preds = %53
  %61 = getelementptr inbounds i8, ptr %6, i64 37
  %62 = zext i32 %8 to i64
  %63 = getelementptr inbounds [4096 x i8], ptr %61, i64 0, i64 %62
  %64 = zext i32 %2 to i64
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %1, ptr nonnull align 1 %63, i64 %64, i1 false)
  call void @_ZN8AVRStateD2Ev(ptr noundef nonnull align 8 dereferenceable(4172) %6) #7
  call void @llvm.lifetime.end.p0(i64 4176, ptr nonnull %6) #7
  ret void

65:                                               ; preds = %30, %32, %43, %51, %58, %28
  %.pn.pn = phi { ptr, i32 } [ %29, %28 ], [ %31, %30 ], [ %33, %32 ], [ %44, %43 ], [ %59, %58 ], [ %52, %51 ]
  call void @_ZN8AVRStateD2Ev(ptr noundef nonnull align 8 dereferenceable(4172) %6) #7
  call void @llvm.lifetime.end.p0(i64 4176, ptr nonnull %6) #7
  resume { ptr, i32 } %.pn.pn
}

; 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

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