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

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

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt14sc_uint_bitrefaSEb(ptr noundef nonnull align 8 dereferenceable(24), i1 noundef zeroext) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_ZNK5sc_dt16sc_uint_bitref_rcvyEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11AES_Encrypt5dmul2EN5sc_dt7sc_uintILi8EEE(ptr dead_on_unwind noalias writable sret(%"class.sc_dt::sc_uint") align 8 %0, ptr noundef nonnull align 8 dereferenceable(6512) %1, ptr noundef %2) #0 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i1, align 1
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  store ptr %0, ptr %4, align 8
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %10 = load ptr, ptr %5, align 8
  store i1 false, ptr %7, align 1
  call void @_ZN5sc_dt7sc_uintILi8EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0)
  %11 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK5sc_dt12sc_uint_baseixEi(ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef 7)
          to label %12 unwind label %84

12:                                               ; preds = %3
  %13 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt12sc_uint_baseixEi(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef 0)
          to label %14 unwind label %84

14:                                               ; preds = %12
  %15 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt14sc_uint_bitrefaSERKNS_16sc_uint_bitref_rE(ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull align 8 dereferenceable(24) %11)
          to label %16 unwind label %84

16:                                               ; preds = %14
  %17 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK5sc_dt12sc_uint_baseixEi(ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef 0)
          to label %18 unwind label %84

18:                                               ; preds = %16
  %19 = invoke noundef i64 @_ZNK5sc_dt16sc_uint_bitref_rcvyEv(ptr noundef nonnull align 8 dereferenceable(24) %17)
          to label %20 unwind label %84

20:                                               ; preds = %18
  %21 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK5sc_dt12sc_uint_baseixEi(ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef 7)
          to label %22 unwind label %84

22:                                               ; preds = %20
  %23 = invoke noundef i64 @_ZNK5sc_dt16sc_uint_bitref_rcvyEv(ptr noundef nonnull align 8 dereferenceable(24) %21)
          to label %24 unwind label %84

24:                                               ; preds = %22
  %25 = xor i64 %19, %23
  %26 = icmp ne i64 %25, 0
  %27 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt12sc_uint_baseixEi(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef 1)
          to label %28 unwind label %84

28:                                               ; preds = %24
  %29 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt14sc_uint_bitrefaSEb(ptr noundef nonnull align 8 dereferenceable(24) %27, i1 noundef zeroext %26)
          to label %30 unwind label %84

30:                                               ; preds = %28
  %31 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK5sc_dt12sc_uint_baseixEi(ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef 1)
          to label %32 unwind label %84

32:                                               ; preds = %30
  %33 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt12sc_uint_baseixEi(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef 2)
          to label %34 unwind label %84

34:                                               ; preds = %32
  %35 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt14sc_uint_bitrefaSERKNS_16sc_uint_bitref_rE(ptr noundef nonnull align 8 dereferenceable(24) %33, ptr noundef nonnull align 8 dereferenceable(24) %31)
          to label %36 unwind label %84

36:                                               ; preds = %34
  %37 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK5sc_dt12sc_uint_baseixEi(ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef 2)
          to label %38 unwind label %84

38:                                               ; preds = %36
  %39 = invoke noundef i64 @_ZNK5sc_dt16sc_uint_bitref_rcvyEv(ptr noundef nonnull align 8 dereferenceable(24) %37)
          to label %40 unwind label %84

40:                                               ; preds = %38
  %41 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK5sc_dt12sc_uint_baseixEi(ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef 7)
          to label %42 unwind label %84

42:                                               ; preds = %40
  %43 = invoke noundef i64 @_ZNK5sc_dt16sc_uint_bitref_rcvyEv(ptr noundef nonnull align 8 dereferenceable(24) %41)
          to label %44 unwind label %84

44:                                               ; preds = %42
  %45 = xor i64 %39, %43
  %46 = icmp ne i64 %45, 0
  %47 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt12sc_uint_baseixEi(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef 3)
          to label %48 unwind label %84

48:                                               ; preds = %44
  %49 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt14sc_uint_bitrefaSEb(ptr noundef nonnull align 8 dereferenceable(24) %47, i1 noundef zeroext %46)
          to label %50 unwind label %84

50:                                               ; preds = %48
  %51 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK5sc_dt12sc_uint_baseixEi(ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef 3)
          to label %52 unwind label %84

52:                                               ; preds = %50
  %53 = invoke noundef i64 @_ZNK5sc_dt16sc_uint_bitref_rcvyEv(ptr noundef nonnull align 8 dereferenceable(24) %51)
          to label %54 unwind label %84

54:                                               ; preds = %52
  %55 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK5sc_dt12sc_uint_baseixEi(ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef 7)
          to label %56 unwind label %84

56:                                               ; preds = %54
  %57 = invoke noundef i64 @_ZNK5sc_dt16sc_uint_bitref_rcvyEv(ptr noundef nonnull align 8 dereferenceable(24) %55)
          to label %58 unwind label %84

58:                                               ; preds = %56
  %59 = xor i64 %53, %57
  %60 = icmp ne i64 %59, 0
  %61 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt12sc_uint_baseixEi(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef 4)
          to label %62 unwind label %84

62:                                               ; preds = %58
  %63 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt14sc_uint_bitrefaSEb(ptr noundef nonnull align 8 dereferenceable(24) %61, i1 noundef zeroext %60)
          to label %64 unwind label %84

64:                                               ; preds = %62
  %65 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK5sc_dt12sc_uint_baseixEi(ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef 4)
          to label %66 unwind label %84

66:                                               ; preds = %64
  %67 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt12sc_uint_baseixEi(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef 5)
          to label %68 unwind label %84

68:                                               ; preds = %66
  %69 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt14sc_uint_bitrefaSERKNS_16sc_uint_bitref_rE(ptr noundef nonnull align 8 dereferenceable(24) %67, ptr noundef nonnull align 8 dereferenceable(24) %65)
          to label %70 unwind label %84

70:                                               ; preds = %68
  %71 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK5sc_dt12sc_uint_baseixEi(ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef 5)
          to label %72 unwind label %84

72:                                               ; preds = %70
  %73 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt12sc_uint_baseixEi(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef 6)
          to label %74 unwind label %84

74:                                               ; preds = %72
  %75 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt14sc_uint_bitrefaSERKNS_16sc_uint_bitref_rE(ptr noundef nonnull align 8 dereferenceable(24) %73, ptr noundef nonnull align 8 dereferenceable(24) %71)
          to label %76 unwind label %84

76:                                               ; preds = %74
  %77 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK5sc_dt12sc_uint_baseixEi(ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef 6)
          to label %78 unwind label %84

78:                                               ; preds = %76
  %79 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt12sc_uint_baseixEi(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef 7)
          to label %80 unwind label %84

80:                                               ; preds = %78
  %81 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt14sc_uint_bitrefaSERKNS_16sc_uint_bitref_rE(ptr noundef nonnull align 8 dereferenceable(24) %79, ptr noundef nonnull align 8 dereferenceable(24) %77)
          to label %82 unwind label %84

82:                                               ; preds = %80
  store i1 true, ptr %7, align 1
  %83 = load i1, ptr %7, align 1
  br i1 %83, label %89, label %88

84:                                               ; preds = %80, %78, %76, %74, %72, %70, %68, %66, %64, %62, %58, %56, %54, %52, %50, %48, %44, %42, %40, %38, %36, %34, %32, %30, %28, %24, %22, %20, %18, %16, %14, %12, %3
  %85 = landingpad { ptr, i32 }
          cleanup
  %86 = extractvalue { ptr, i32 } %85, 0
  store ptr %86, ptr %8, align 8
  %87 = extractvalue { ptr, i32 } %85, 1
  store i32 %87, ptr %9, align 4
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #3
  br label %90

88:                                               ; preds = %82
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #3
  br label %89

89:                                               ; preds = %88, %82
  ret void

90:                                               ; preds = %84
  %91 = load ptr, ptr %8, align 8
  %92 = load i32, ptr %9, align 4
  %93 = insertvalue { ptr, i32 } poison, ptr %91, 0
  %94 = insertvalue { ptr, i32 } %93, i32 %92, 1
  resume { ptr, i32 } %94
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt14sc_uint_bitrefaSERKNS_16sc_uint_bitref_rE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #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 #2 align 2

attributes #0 = { 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 #1 = { inlinehint 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 nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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"}


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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt12sc_uint_baseixEi(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt14sc_uint_bitrefaSEb(ptr noundef nonnull align 8 dereferenceable(24), i1 noundef zeroext) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_ZNK5sc_dt16sc_uint_bitref_rcvyEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNK5sc_dt12sc_uint_baseixEi(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11AES_Encrypt5dmul2EN5sc_dt7sc_uintILi8EEE(ptr dead_on_unwind noalias nonnull writable sret(%"class.sc_dt::sc_uint") align 8 %0, ptr nocapture noundef nonnull readnone align 8 dereferenceable(6512) %1, ptr noundef %2) local_unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  tail call void @_ZN5sc_dt7sc_uintILi8EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0)
  %4 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK5sc_dt12sc_uint_baseixEi(ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef 7)
          to label %5 unwind label %72

5:                                                ; preds = %3
  %6 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt12sc_uint_baseixEi(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef 0)
          to label %7 unwind label %72

7:                                                ; preds = %5
  %8 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt14sc_uint_bitrefaSERKNS_16sc_uint_bitref_rE(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(24) %4)
          to label %9 unwind label %72

9:                                                ; preds = %7
  %10 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK5sc_dt12sc_uint_baseixEi(ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef 0)
          to label %11 unwind label %72

11:                                               ; preds = %9
  %12 = invoke noundef i64 @_ZNK5sc_dt16sc_uint_bitref_rcvyEv(ptr noundef nonnull align 8 dereferenceable(24) %10)
          to label %13 unwind label %72

13:                                               ; preds = %11
  %14 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK5sc_dt12sc_uint_baseixEi(ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef 7)
          to label %15 unwind label %72

15:                                               ; preds = %13
  %16 = invoke noundef i64 @_ZNK5sc_dt16sc_uint_bitref_rcvyEv(ptr noundef nonnull align 8 dereferenceable(24) %14)
          to label %17 unwind label %72

17:                                               ; preds = %15
  %18 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt12sc_uint_baseixEi(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef 1)
          to label %19 unwind label %72

19:                                               ; preds = %17
  %20 = icmp ne i64 %12, %16
  %21 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt14sc_uint_bitrefaSEb(ptr noundef nonnull align 8 dereferenceable(24) %18, i1 noundef zeroext %20)
          to label %22 unwind label %72

22:                                               ; preds = %19
  %23 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK5sc_dt12sc_uint_baseixEi(ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef 1)
          to label %24 unwind label %72

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

26:                                               ; preds = %24
  %27 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt14sc_uint_bitrefaSERKNS_16sc_uint_bitref_rE(ptr noundef nonnull align 8 dereferenceable(24) %25, ptr noundef nonnull align 8 dereferenceable(24) %23)
          to label %28 unwind label %72

28:                                               ; preds = %26
  %29 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK5sc_dt12sc_uint_baseixEi(ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef 2)
          to label %30 unwind label %72

30:                                               ; preds = %28
  %31 = invoke noundef i64 @_ZNK5sc_dt16sc_uint_bitref_rcvyEv(ptr noundef nonnull align 8 dereferenceable(24) %29)
          to label %32 unwind label %72

32:                                               ; preds = %30
  %33 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK5sc_dt12sc_uint_baseixEi(ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef 7)
          to label %34 unwind label %72

34:                                               ; preds = %32
  %35 = invoke noundef i64 @_ZNK5sc_dt16sc_uint_bitref_rcvyEv(ptr noundef nonnull align 8 dereferenceable(24) %33)
          to label %36 unwind label %72

36:                                               ; preds = %34
  %37 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt12sc_uint_baseixEi(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef 3)
          to label %38 unwind label %72

38:                                               ; preds = %36
  %39 = icmp ne i64 %31, %35
  %40 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt14sc_uint_bitrefaSEb(ptr noundef nonnull align 8 dereferenceable(24) %37, i1 noundef zeroext %39)
          to label %41 unwind label %72

41:                                               ; preds = %38
  %42 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK5sc_dt12sc_uint_baseixEi(ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef 3)
          to label %43 unwind label %72

43:                                               ; preds = %41
  %44 = invoke noundef i64 @_ZNK5sc_dt16sc_uint_bitref_rcvyEv(ptr noundef nonnull align 8 dereferenceable(24) %42)
          to label %45 unwind label %72

45:                                               ; preds = %43
  %46 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK5sc_dt12sc_uint_baseixEi(ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef 7)
          to label %47 unwind label %72

47:                                               ; preds = %45
  %48 = invoke noundef i64 @_ZNK5sc_dt16sc_uint_bitref_rcvyEv(ptr noundef nonnull align 8 dereferenceable(24) %46)
          to label %49 unwind label %72

49:                                               ; preds = %47
  %50 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt12sc_uint_baseixEi(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef 4)
          to label %51 unwind label %72

51:                                               ; preds = %49
  %52 = icmp ne i64 %44, %48
  %53 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt14sc_uint_bitrefaSEb(ptr noundef nonnull align 8 dereferenceable(24) %50, i1 noundef zeroext %52)
          to label %54 unwind label %72

54:                                               ; preds = %51
  %55 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK5sc_dt12sc_uint_baseixEi(ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef 4)
          to label %56 unwind label %72

56:                                               ; preds = %54
  %57 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt12sc_uint_baseixEi(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef 5)
          to label %58 unwind label %72

58:                                               ; preds = %56
  %59 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt14sc_uint_bitrefaSERKNS_16sc_uint_bitref_rE(ptr noundef nonnull align 8 dereferenceable(24) %57, ptr noundef nonnull align 8 dereferenceable(24) %55)
          to label %60 unwind label %72

60:                                               ; preds = %58
  %61 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK5sc_dt12sc_uint_baseixEi(ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef 5)
          to label %62 unwind label %72

62:                                               ; preds = %60
  %63 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt12sc_uint_baseixEi(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef 6)
          to label %64 unwind label %72

64:                                               ; preds = %62
  %65 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt14sc_uint_bitrefaSERKNS_16sc_uint_bitref_rE(ptr noundef nonnull align 8 dereferenceable(24) %63, ptr noundef nonnull align 8 dereferenceable(24) %61)
          to label %66 unwind label %72

66:                                               ; preds = %64
  %67 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK5sc_dt12sc_uint_baseixEi(ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef 6)
          to label %68 unwind label %72

68:                                               ; preds = %66
  %69 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt12sc_uint_baseixEi(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef 7)
          to label %70 unwind label %72

70:                                               ; preds = %68
  %71 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt14sc_uint_bitrefaSERKNS_16sc_uint_bitref_rE(ptr noundef nonnull align 8 dereferenceable(24) %69, ptr noundef nonnull align 8 dereferenceable(24) %67)
          to label %74 unwind label %72

72:                                               ; preds = %70, %68, %66, %64, %62, %60, %58, %56, %54, %51, %49, %47, %45, %43, %41, %38, %36, %34, %32, %30, %28, %26, %24, %22, %19, %17, %15, %13, %11, %9, %7, %5, %3
  %73 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #3
  resume { ptr, i32 } %73

74:                                               ; preds = %70
  ret void
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt14sc_uint_bitrefaSERKNS_16sc_uint_bitref_rE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) 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 #2 align 2

attributes #0 = { 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 #1 = { inlinehint 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 nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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)"}


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