; LLVM IR from gem5/gem5 :: src/systemc/tests/systemc/examples/aes/aes.ll (ZN11AES_Decrypt7DecryptEv)

; 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.sc_dt::sc_uint.1" = type { %"class.sc_dt::sc_uint_base" }
%"class.sc_dt::sc_uint_base" = type { %"class.sc_dt::sc_value_base", i64, i32, i32 }
%"class.sc_dt::sc_value_base" = type { ptr }
%class.AES_Decrypt = type { %struct.AES_Base, %"class.sc_core::sc_in", %"class.sc_core::sc_in", %"class.sc_core::sc_in.15", %"class.sc_core::sc_out", %"class.sc_core::sc_in", %"class.sc_core::sc_in", %"class.sc_core::sc_out.30", %"class.sc_core::sc_in", %"class.sc_core::sc_out", %"class.sc_dt::sc_uint.39", [11 x [4 x [4 x %"class.sc_dt::sc_uint"]]], [4 x [4 x %"class.sc_dt::sc_uint"]] }
%struct.AES_Base = type { %"class.sc_core::sc_module" }
%"class.sc_core::sc_module" = type { %"class.sc_core::sc_object", %"class.sc_core::sc_process_host", %"class.sc_core::sc_sensitive", %"class.sc_core::sc_sensitive_pos", %"class.sc_core::sc_sensitive_neg", i8, ptr, i32, ptr, ptr }
%"class.sc_core::sc_object" = type { ptr, ptr, %"class.std::vector", %"class.std::vector.2", %"class.std::__cxx11::basic_string", ptr, ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<sc_core::sc_event *, std::allocator<sc_core::sc_event *>>::_Vector_impl" }
%"struct.std::_Vector_base<sc_core::sc_event *, std::allocator<sc_core::sc_event *>>::_Vector_impl" = type { %"struct.std::_Vector_base<sc_core::sc_event *, std::allocator<sc_core::sc_event *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<sc_core::sc_event *, std::allocator<sc_core::sc_event *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.2" = type { %"struct.std::_Vector_base.3" }
%"struct.std::_Vector_base.3" = type { %"struct.std::_Vector_base<sc_core::sc_object *, std::allocator<sc_core::sc_object *>>::_Vector_impl" }
%"struct.std::_Vector_base<sc_core::sc_object *, std::allocator<sc_core::sc_object *>>::_Vector_impl" = type { %"struct.std::_Vector_base<sc_core::sc_object *, std::allocator<sc_core::sc_object *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<sc_core::sc_object *, std::allocator<sc_core::sc_object *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.sc_core::sc_process_host" = type { ptr }
%"class.sc_core::sc_sensitive" = type { ptr, i32, ptr }
%"class.sc_core::sc_sensitive_pos" = type { ptr, i32, ptr }
%"class.sc_core::sc_sensitive_neg" = type { ptr, i32, ptr }
%"class.sc_core::sc_in.15" = type { %"class.sc_core::sc_port.16", ptr, ptr }
%"class.sc_core::sc_port.16" = type { %"class.sc_core::sc_port_b.17" }
%"class.sc_core::sc_port_b.17" = type { %"class.sc_core::sc_port_base", ptr, %"class.std::vector.18" }
%"class.sc_core::sc_port_base" = type { %"class.sc_core::sc_object", ptr }
%"class.std::vector.18" = type { %"struct.std::_Vector_base.19" }
%"struct.std::_Vector_base.19" = type { %"struct.std::_Vector_base<sc_core::sc_signal_in_if<sc_dt::sc_biguint<128>> *, std::allocator<sc_core::sc_signal_in_if<sc_dt::sc_biguint<128>> *>>::_Vector_impl" }
%"struct.std::_Vector_base<sc_core::sc_signal_in_if<sc_dt::sc_biguint<128>> *, std::allocator<sc_core::sc_signal_in_if<sc_dt::sc_biguint<128>> *>>::_Vector_impl" = type { %"struct.std::_Vector_base<sc_core::sc_signal_in_if<sc_dt::sc_biguint<128>> *, std::allocator<sc_core::sc_signal_in_if<sc_dt::sc_biguint<128>> *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<sc_core::sc_signal_in_if<sc_dt::sc_biguint<128>> *, std::allocator<sc_core::sc_signal_in_if<sc_dt::sc_biguint<128>> *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.sc_core::sc_out.30" = type { %"class.sc_core::sc_inout.31" }
%"class.sc_core::sc_inout.31" = type { %"class.sc_core::sc_port.32", ptr, ptr, ptr }
%"class.sc_core::sc_port.32" = type { %"class.sc_core::sc_port_b.33" }
%"class.sc_core::sc_port_b.33" = type { %"class.sc_core::sc_port_base", ptr, %"class.std::vector.34" }
%"class.std::vector.34" = type { %"struct.std::_Vector_base.35" }
%"struct.std::_Vector_base.35" = type { %"struct.std::_Vector_base<sc_core::sc_signal_inout_if<sc_dt::sc_biguint<128>> *, std::allocator<sc_core::sc_signal_inout_if<sc_dt::sc_biguint<128>> *>>::_Vector_impl" }
%"struct.std::_Vector_base<sc_core::sc_signal_inout_if<sc_dt::sc_biguint<128>> *, std::allocator<sc_core::sc_signal_inout_if<sc_dt::sc_biguint<128>> *>>::_Vector_impl" = type { %"struct.std::_Vector_base<sc_core::sc_signal_inout_if<sc_dt::sc_biguint<128>> *, std::allocator<sc_core::sc_signal_inout_if<sc_dt::sc_biguint<128>> *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<sc_core::sc_signal_inout_if<sc_dt::sc_biguint<128>> *, std::allocator<sc_core::sc_signal_inout_if<sc_dt::sc_biguint<128>> *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.sc_core::sc_in" = type { %"class.sc_core::sc_port", ptr, ptr, ptr, ptr }
%"class.sc_core::sc_port" = type { %"class.sc_core::sc_port_b" }
%"class.sc_core::sc_port_b" = type { %"class.sc_core::sc_port_base", ptr, %"class.std::vector.10" }
%"class.std::vector.10" = type { %"struct.std::_Vector_base.11" }
%"struct.std::_Vector_base.11" = type { %"struct.std::_Vector_base<sc_core::sc_signal_in_if<bool> *, std::allocator<sc_core::sc_signal_in_if<bool> *>>::_Vector_impl" }
%"struct.std::_Vector_base<sc_core::sc_signal_in_if<bool> *, std::allocator<sc_core::sc_signal_in_if<bool> *>>::_Vector_impl" = type { %"struct.std::_Vector_base<sc_core::sc_signal_in_if<bool> *, std::allocator<sc_core::sc_signal_in_if<bool> *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<sc_core::sc_signal_in_if<bool> *, std::allocator<sc_core::sc_signal_in_if<bool> *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.sc_core::sc_out" = type { %"class.sc_core::sc_inout" }
%"class.sc_core::sc_inout" = type { %"class.sc_core::sc_port.23", ptr, ptr, ptr, ptr, ptr }
%"class.sc_core::sc_port.23" = type { %"class.sc_core::sc_port_b.24" }
%"class.sc_core::sc_port_b.24" = type { %"class.sc_core::sc_port_base", ptr, %"class.std::vector.25" }
%"class.std::vector.25" = type { %"struct.std::_Vector_base.26" }
%"struct.std::_Vector_base.26" = type { %"struct.std::_Vector_base<sc_core::sc_signal_inout_if<bool> *, std::allocator<sc_core::sc_signal_inout_if<bool> *>>::_Vector_impl" }
%"struct.std::_Vector_base<sc_core::sc_signal_inout_if<bool> *, std::allocator<sc_core::sc_signal_inout_if<bool> *>>::_Vector_impl" = type { %"struct.std::_Vector_base<sc_core::sc_signal_inout_if<bool> *, std::allocator<sc_core::sc_signal_inout_if<bool> *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<sc_core::sc_signal_inout_if<bool> *, std::allocator<sc_core::sc_signal_inout_if<bool> *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.sc_dt::sc_uint.39" = type { %"class.sc_dt::sc_uint_base" }
%"class.sc_dt::sc_uint" = type { %"class.sc_dt::sc_uint_base" }

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8AES_Base11AddRoundKeyEPA4_N5sc_dt7sc_uintILi8EEEPA4_KS2_(ptr noundef nonnull align 8 dereferenceable(232), ptr noundef, ptr noundef) #1 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11AES_Decrypt7DecryptEv(ptr noundef nonnull align 8 dereferenceable(6512) %0) #1 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca %"class.sc_dt::sc_uint.1", align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca %"class.sc_dt::sc_uint.1", align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %7 = load ptr, ptr %2, align 8
  %8 = getelementptr inbounds %class.AES_Decrypt, ptr %7, i32 0, i32 12
  %9 = getelementptr inbounds [4 x [4 x %"class.sc_dt::sc_uint"]], ptr %8, i64 0, i64 0
  %10 = getelementptr inbounds %class.AES_Decrypt, ptr %7, i32 0, i32 11
  %11 = getelementptr inbounds [11 x [4 x [4 x %"class.sc_dt::sc_uint"]]], ptr %10, i64 0, i64 10
  %12 = getelementptr inbounds [4 x [4 x %"class.sc_dt::sc_uint"]], ptr %11, i64 0, i64 0
  call void @_ZN8AES_Base11AddRoundKeyEPA4_N5sc_dt7sc_uintILi8EEEPA4_KS2_(ptr noundef nonnull align 8 dereferenceable(232) %7, ptr noundef %9, ptr noundef %12)
  %13 = getelementptr inbounds %class.AES_Decrypt, ptr %7, i32 0, i32 12
  %14 = getelementptr inbounds [4 x [4 x %"class.sc_dt::sc_uint"]], ptr %13, i64 0, i64 0
  call void @_ZN11AES_Decrypt15Substitution_SiEPA4_N5sc_dt7sc_uintILi8EEE(ptr noundef nonnull align 8 dereferenceable(6512) %7, ptr noundef %14)
  %15 = getelementptr inbounds %class.AES_Decrypt, ptr %7, i32 0, i32 12
  %16 = getelementptr inbounds [4 x [4 x %"class.sc_dt::sc_uint"]], ptr %15, i64 0, i64 0
  call void @_ZN11AES_Decrypt22ShiftRows_Right_RotateEPA4_N5sc_dt7sc_uintILi8EEE(ptr noundef nonnull align 8 dereferenceable(6512) %7, ptr noundef %16)
  call void @llvm.lifetime.start.p0(i64 24, ptr %3) #3
  call void @_ZN5sc_dt7sc_uintILi4EEC2Ei(ptr noundef nonnull align 8 dereferenceable(24) %3, i32 noundef 9)
  br label %17

17:                                               ; preds = %45, %1
  %18 = invoke noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %3)
          to label %19 unwind label %22

19:                                               ; preds = %17
  %20 = icmp ugt i64 %18, 0
  br i1 %20, label %26, label %21

21:                                               ; preds = %19
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr %3) #3
  br label %46

22:                                               ; preds = %44, %40, %37, %34, %31, %26, %17
  %23 = landingpad { ptr, i32 }
          cleanup
  %24 = extractvalue { ptr, i32 } %23, 0
  store ptr %24, ptr %4, align 8
  %25 = extractvalue { ptr, i32 } %23, 1
  store i32 %25, ptr %5, align 4
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr %3) #3
  br label %52

26:                                               ; preds = %19
  %27 = getelementptr inbounds %class.AES_Decrypt, ptr %7, i32 0, i32 12
  %28 = getelementptr inbounds [4 x [4 x %"class.sc_dt::sc_uint"]], ptr %27, i64 0, i64 0
  %29 = getelementptr inbounds %class.AES_Decrypt, ptr %7, i32 0, i32 11
  %30 = invoke noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %3)
          to label %31 unwind label %22

31:                                               ; preds = %26
  %32 = getelementptr inbounds [11 x [4 x [4 x %"class.sc_dt::sc_uint"]]], ptr %29, i64 0, i64 %30
  %33 = getelementptr inbounds [4 x [4 x %"class.sc_dt::sc_uint"]], ptr %32, i64 0, i64 0
  invoke void @_ZN8AES_Base11AddRoundKeyEPA4_N5sc_dt7sc_uintILi8EEEPA4_KS2_(ptr noundef nonnull align 8 dereferenceable(232) %7, ptr noundef %28, ptr noundef %33)
          to label %34 unwind label %22

34:                                               ; preds = %31
  %35 = getelementptr inbounds %class.AES_Decrypt, ptr %7, i32 0, i32 12
  %36 = getelementptr inbounds [4 x [4 x %"class.sc_dt::sc_uint"]], ptr %35, i64 0, i64 0
  invoke void @_ZN11AES_Decrypt13InvMixColumnsEPA4_N5sc_dt7sc_uintILi8EEE(ptr noundef nonnull align 8 dereferenceable(6512) %7, ptr noundef %36)
          to label %37 unwind label %22

37:                                               ; preds = %34
  %38 = getelementptr inbounds %class.AES_Decrypt, ptr %7, i32 0, i32 12
  %39 = getelementptr inbounds [4 x [4 x %"class.sc_dt::sc_uint"]], ptr %38, i64 0, i64 0
  invoke void @_ZN11AES_Decrypt15Substitution_SiEPA4_N5sc_dt7sc_uintILi8EEE(ptr noundef nonnull align 8 dereferenceable(6512) %7, ptr noundef %39)
          to label %40 unwind label %22

40:                                               ; preds = %37
  %41 = getelementptr inbounds %class.AES_Decrypt, ptr %7, i32 0, i32 12
  %42 = getelementptr inbounds [4 x [4 x %"class.sc_dt::sc_uint"]], ptr %41, i64 0, i64 0
  invoke void @_ZN11AES_Decrypt22ShiftRows_Right_RotateEPA4_N5sc_dt7sc_uintILi8EEE(ptr noundef nonnull align 8 dereferenceable(6512) %7, ptr noundef %42)
          to label %43 unwind label %22

43:                                               ; preds = %40
  br label %44

44:                                               ; preds = %43
  invoke void @_ZN5sc_dt7sc_uintILi4EEmmEi(ptr dead_on_unwind writable sret(%"class.sc_dt::sc_uint.1") align 8 %6, ptr noundef nonnull align 8 dereferenceable(24) %3, i32 noundef 0)
          to label %45 unwind label %22

45:                                               ; preds = %44
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #3
  br label %17, !llvm.loop !9

46:                                               ; preds = %21
  %47 = getelementptr inbounds %class.AES_Decrypt, ptr %7, i32 0, i32 12
  %48 = getelementptr inbounds [4 x [4 x %"class.sc_dt::sc_uint"]], ptr %47, i64 0, i64 0
  %49 = getelementptr inbounds %class.AES_Decrypt, ptr %7, i32 0, i32 11
  %50 = getelementptr inbounds [11 x [4 x [4 x %"class.sc_dt::sc_uint"]]], ptr %49, i64 0, i64 0
  %51 = getelementptr inbounds [4 x [4 x %"class.sc_dt::sc_uint"]], ptr %50, i64 0, i64 0
  call void @_ZN8AES_Base11AddRoundKeyEPA4_N5sc_dt7sc_uintILi8EEEPA4_KS2_(ptr noundef nonnull align 8 dereferenceable(232) %7, ptr noundef %48, ptr noundef %51)
  ret void

52:                                               ; preds = %22
  %53 = load ptr, ptr %4, align 8
  %54 = load i32, ptr %5, align 4
  %55 = insertvalue { ptr, i32 } poison, ptr %53, 0
  %56 = insertvalue { ptr, i32 } %55, i32 %54, 1
  resume { ptr, i32 } %56
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11AES_Decrypt15Substitution_SiEPA4_N5sc_dt7sc_uintILi8EEE(ptr noundef nonnull align 8 dereferenceable(6512), ptr noundef) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11AES_Decrypt22ShiftRows_Right_RotateEPA4_N5sc_dt7sc_uintILi8EEE(ptr noundef nonnull align 8 dereferenceable(6512), ptr noundef) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5sc_dt7sc_uintILi4EEC2Ei(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11AES_Decrypt13InvMixColumnsEPA4_N5sc_dt7sc_uintILi8EEE(ptr noundef nonnull align 8 dereferenceable(6512), ptr noundef) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5sc_dt7sc_uintILi4EEmmEi(ptr dead_on_unwind noalias writable sret(%"class.sc_dt::sc_uint.1") align 8, ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) #1 align 2

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

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

!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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}


; 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.sc_dt::sc_uint.1" = type { %"class.sc_dt::sc_uint_base" }
%"class.sc_dt::sc_uint_base" = type { %"class.sc_dt::sc_value_base", i64, i32, i32 }
%"class.sc_dt::sc_value_base" = type { ptr }
%"class.sc_dt::sc_uint" = type { %"class.sc_dt::sc_uint_base" }

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8AES_Base11AddRoundKeyEPA4_N5sc_dt7sc_uintILi8EEEPA4_KS2_(ptr noundef nonnull align 8 dereferenceable(232), ptr noundef, ptr noundef) local_unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11AES_Decrypt7DecryptEv(ptr noundef nonnull align 8 dereferenceable(6512) %0) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.sc_dt::sc_uint.1", align 8
  %3 = alloca %"class.sc_dt::sc_uint.1", align 8
  %4 = getelementptr inbounds i8, ptr %0, i64 6128
  %5 = getelementptr inbounds i8, ptr %0, i64 1904
  %6 = getelementptr inbounds i8, ptr %0, i64 5744
  tail call void @_ZN8AES_Base11AddRoundKeyEPA4_N5sc_dt7sc_uintILi8EEEPA4_KS2_(ptr noundef nonnull align 8 dereferenceable(232) %0, ptr noundef nonnull %4, ptr noundef nonnull %6)
  tail call void @_ZN11AES_Decrypt15Substitution_SiEPA4_N5sc_dt7sc_uintILi8EEE(ptr noundef nonnull align 8 dereferenceable(6512) %0, ptr noundef nonnull %4)
  tail call void @_ZN11AES_Decrypt22ShiftRows_Right_RotateEPA4_N5sc_dt7sc_uintILi8EEE(ptr noundef nonnull align 8 dereferenceable(6512) %0, ptr noundef nonnull %4)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %2) #3
  call void @_ZN5sc_dt7sc_uintILi4EEC2Ei(ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef 9)
  %7 = call noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %2)
  %.not2 = icmp eq i64 %7, 0
  br i1 %.not2, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %16, %1
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #3
  call void @_ZN8AES_Base11AddRoundKeyEPA4_N5sc_dt7sc_uintILi8EEEPA4_KS2_(ptr noundef nonnull align 8 dereferenceable(232) %0, ptr noundef nonnull %4, ptr noundef nonnull %5)
  ret void

8:                                                ; preds = %15, %14, %13, %12, %.lr.ph
  %9 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #3
  resume { ptr, i32 } %9

.lr.ph:                                           ; preds = %1, %16
  %10 = call noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %2)
  %11 = getelementptr inbounds [11 x [4 x [4 x %"class.sc_dt::sc_uint"]]], ptr %5, i64 0, i64 %10
  invoke void @_ZN8AES_Base11AddRoundKeyEPA4_N5sc_dt7sc_uintILi8EEEPA4_KS2_(ptr noundef nonnull align 8 dereferenceable(232) %0, ptr noundef nonnull %4, ptr noundef nonnull %11)
          to label %12 unwind label %8

12:                                               ; preds = %.lr.ph
  invoke void @_ZN11AES_Decrypt13InvMixColumnsEPA4_N5sc_dt7sc_uintILi8EEE(ptr noundef nonnull align 8 dereferenceable(6512) %0, ptr noundef nonnull %4)
          to label %13 unwind label %8

13:                                               ; preds = %12
  invoke void @_ZN11AES_Decrypt15Substitution_SiEPA4_N5sc_dt7sc_uintILi8EEE(ptr noundef nonnull align 8 dereferenceable(6512) %0, ptr noundef nonnull %4)
          to label %14 unwind label %8

14:                                               ; preds = %13
  invoke void @_ZN11AES_Decrypt22ShiftRows_Right_RotateEPA4_N5sc_dt7sc_uintILi8EEE(ptr noundef nonnull align 8 dereferenceable(6512) %0, ptr noundef nonnull %4)
          to label %15 unwind label %8

15:                                               ; preds = %14
  invoke void @_ZN5sc_dt7sc_uintILi4EEmmEi(ptr dead_on_unwind nonnull writable sret(%"class.sc_dt::sc_uint.1") align 8 %3, ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef 0)
          to label %16 unwind label %8

16:                                               ; preds = %15
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #3
  %17 = call noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %2)
  %.not = icmp eq i64 %17, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph, !llvm.loop !5
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11AES_Decrypt15Substitution_SiEPA4_N5sc_dt7sc_uintILi8EEE(ptr noundef nonnull align 8 dereferenceable(6512), ptr noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11AES_Decrypt22ShiftRows_Right_RotateEPA4_N5sc_dt7sc_uintILi8EEE(ptr noundef nonnull align 8 dereferenceable(6512), ptr noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5sc_dt7sc_uintILi4EEC2Ei(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11AES_Decrypt13InvMixColumnsEPA4_N5sc_dt7sc_uintILi8EEE(ptr noundef nonnull align 8 dereferenceable(6512), ptr noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5sc_dt7sc_uintILi4EEmmEi(ptr dead_on_unwind noalias writable sret(%"class.sc_dt::sc_uint.1") align 8, ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) local_unnamed_addr #1 align 2

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

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

!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"}


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