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

; 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: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt7sc_uintILi8EEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #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: mustprogress uwtable
declare dso_local void @_ZN5sc_dt7sc_uintILi3EEC2Ei(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) unnamed_addr #0 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5sc_dt7sc_uintILi3EEppEi(ptr dead_on_unwind noalias writable sret(%"class.sc_dt::sc_uint.0") align 8, ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) #0 align 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
declare dso_local void @_ZN5sc_dt7sc_uintILi8EEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #0 align 2

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

24:                                               ; preds = %26, %2
  %25 = phi ptr [ %22, %2 ], [ %27, %26 ]
  invoke void @_ZN5sc_dt7sc_uintILi8EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25)
          to label %26 unwind label %36

26:                                               ; preds = %24
  %27 = getelementptr inbounds %"class.sc_dt::sc_uint", ptr %25, i64 1
  %28 = icmp eq ptr %27, %23
  br i1 %28, label %29, label %24

29:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 24, ptr %8) #3
  invoke void @_ZN5sc_dt7sc_uintILi3EEC2Ei(ptr noundef nonnull align 8 dereferenceable(24) %8, i32 noundef 0)
          to label %30 unwind label %46

30:                                               ; preds = %29
  br label %31

31:                                               ; preds = %162, %30
  %32 = invoke noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %8)
          to label %33 unwind label %50

33:                                               ; preds = %31
  %34 = icmp ult i64 %32, 4
  br i1 %34, label %54, label %35

35:                                               ; preds = %33
  store i32 2, ptr %9, align 4
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #3
  br label %165

36:                                               ; preds = %24
  %37 = landingpad { ptr, i32 }
          cleanup
  %38 = extractvalue { ptr, i32 } %37, 0
  store ptr %38, ptr %6, align 8
  %39 = extractvalue { ptr, i32 } %37, 1
  store i32 %39, ptr %7, align 4
  %40 = icmp eq ptr %22, %25
  br i1 %40, label %45, label %41

41:                                               ; preds = %41, %36
  %42 = phi ptr [ %25, %36 ], [ %43, %41 ]
  %43 = getelementptr inbounds %"class.sc_dt::sc_uint", ptr %42, i64 -1
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %43) #3
  %44 = icmp eq ptr %43, %22
  br i1 %44, label %45, label %41

45:                                               ; preds = %41, %36
  br label %235

46:                                               ; preds = %29
  %47 = landingpad { ptr, i32 }
          cleanup
  %48 = extractvalue { ptr, i32 } %47, 0
  store ptr %48, ptr %6, align 8
  %49 = extractvalue { ptr, i32 } %47, 1
  store i32 %49, ptr %7, align 4
  br label %164

50:                                               ; preds = %161, %31
  %51 = landingpad { ptr, i32 }
          cleanup
  %52 = extractvalue { ptr, i32 } %51, 0
  store ptr %52, ptr %6, align 8
  %53 = extractvalue { ptr, i32 } %51, 1
  store i32 %53, ptr %7, align 4
  br label %163

54:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 24, ptr %10) #3
  invoke void @_ZN5sc_dt7sc_uintILi3EEC2Ei(ptr noundef nonnull align 8 dereferenceable(24) %10, i32 noundef 0)
          to label %55 unwind label %61

55:                                               ; preds = %54
  br label %56

56:                                               ; preds = %128, %55
  %57 = invoke noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %10)
          to label %58 unwind label %65

58:                                               ; preds = %56
  %59 = icmp ult i64 %57, 4
  br i1 %59, label %69, label %60

60:                                               ; preds = %58
  store i32 5, ptr %9, align 4
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #3
  br label %160

61:                                               ; preds = %54
  %62 = landingpad { ptr, i32 }
          cleanup
  %63 = extractvalue { ptr, i32 } %62, 0
  store ptr %63, ptr %6, align 8
  %64 = extractvalue { ptr, i32 } %62, 1
  store i32 %64, ptr %7, align 4
  br label %159

65:                                               ; preds = %127, %56
  %66 = landingpad { ptr, i32 }
          cleanup
  %67 = extractvalue { ptr, i32 } %66, 0
  store ptr %67, ptr %6, align 8
  %68 = extractvalue { ptr, i32 } %66, 1
  store i32 %68, ptr %7, align 4
  br label %158

69:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 24, ptr %11) #3
  %70 = load ptr, ptr %4, align 8, !tbaa !5
  %71 = invoke noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %10)
          to label %72 unwind label %129

72:                                               ; preds = %69
  %73 = getelementptr inbounds [4 x %"class.sc_dt::sc_uint"], ptr %70, i64 %71
  %74 = invoke noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %8)
          to label %75 unwind label %129

75:                                               ; preds = %72
  %76 = getelementptr inbounds [4 x %"class.sc_dt::sc_uint"], ptr %73, i64 0, i64 %74
  invoke void @_ZN5sc_dt7sc_uintILi8EEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %12, ptr noundef nonnull align 8 dereferenceable(24) %76)
          to label %77 unwind label %129

77:                                               ; preds = %75
  invoke void @_ZN11AES_Encrypt5dmul2EN5sc_dt7sc_uintILi8EEE(ptr dead_on_unwind writable sret(%"class.sc_dt::sc_uint") align 8 %11, ptr noundef nonnull align 8 dereferenceable(6512) %21, ptr noundef %12)
          to label %78 unwind label %133

78:                                               ; preds = %77
  %79 = invoke noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %11)
          to label %80 unwind label %137

80:                                               ; preds = %78
  call void @llvm.lifetime.start.p0(i64 24, ptr %13) #3
  %81 = load ptr, ptr %4, align 8, !tbaa !5
  %82 = invoke noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %10)
          to label %83 unwind label %141

83:                                               ; preds = %80
  %84 = add i64 %82, 1
  %85 = and i64 %84, 3
  %86 = getelementptr inbounds [4 x %"class.sc_dt::sc_uint"], ptr %81, i64 %85
  %87 = invoke noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %8)
          to label %88 unwind label %141

88:                                               ; preds = %83
  %89 = getelementptr inbounds [4 x %"class.sc_dt::sc_uint"], ptr %86, i64 0, i64 %87
  invoke void @_ZN5sc_dt7sc_uintILi8EEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef nonnull align 8 dereferenceable(24) %89)
          to label %90 unwind label %141

90:                                               ; preds = %88
  invoke void @_ZN11AES_Encrypt5dmul3EN5sc_dt7sc_uintILi8EEE(ptr dead_on_unwind writable sret(%"class.sc_dt::sc_uint") align 8 %13, ptr noundef nonnull align 8 dereferenceable(6512) %21, ptr noundef %14)
          to label %91 unwind label %145

91:                                               ; preds = %90
  %92 = invoke noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %13)
          to label %93 unwind label %149

93:                                               ; preds = %91
  %94 = xor i64 %79, %92
  %95 = load ptr, ptr %4, align 8, !tbaa !5
  %96 = invoke noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %10)
          to label %97 unwind label %149

97:                                               ; preds = %93
  %98 = add i64 %96, 2
  %99 = and i64 %98, 3
  %100 = getelementptr inbounds [4 x %"class.sc_dt::sc_uint"], ptr %95, i64 %99
  %101 = invoke noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %8)
          to label %102 unwind label %149

102:                                              ; preds = %97
  %103 = getelementptr inbounds [4 x %"class.sc_dt::sc_uint"], ptr %100, i64 0, i64 %101
  %104 = invoke noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %103)
          to label %105 unwind label %149

105:                                              ; preds = %102
  %106 = xor i64 %94, %104
  %107 = load ptr, ptr %4, align 8, !tbaa !5
  %108 = invoke noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %10)
          to label %109 unwind label %149

109:                                              ; preds = %105
  %110 = add i64 %108, 3
  %111 = and i64 %110, 3
  %112 = getelementptr inbounds [4 x %"class.sc_dt::sc_uint"], ptr %107, i64 %111
  %113 = invoke noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %8)
          to label %114 unwind label %149

114:                                              ; preds = %109
  %115 = getelementptr inbounds [4 x %"class.sc_dt::sc_uint"], ptr %112, i64 0, i64 %113
  %116 = invoke noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %115)
          to label %117 unwind label %149

117:                                              ; preds = %114
  %118 = xor i64 %106, %116
  %119 = invoke noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %10)
          to label %120 unwind label %149

120:                                              ; preds = %117
  %121 = getelementptr inbounds [4 x [4 x %"class.sc_dt::sc_uint"]], ptr %5, i64 0, i64 %119
  %122 = invoke noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %8)
          to label %123 unwind label %149

123:                                              ; preds = %120
  %124 = getelementptr inbounds [4 x %"class.sc_dt::sc_uint"], ptr %121, i64 0, i64 %122
  %125 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt7sc_uintILi8EEaSEy(ptr noundef nonnull align 8 dereferenceable(24) %124, i64 noundef %118)
          to label %126 unwind label %149

126:                                              ; preds = %123
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #3
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #3
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #3
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #3
  br label %127

127:                                              ; preds = %126
  invoke void @_ZN5sc_dt7sc_uintILi3EEppEi(ptr dead_on_unwind writable sret(%"class.sc_dt::sc_uint.0") align 8 %15, ptr noundef nonnull align 8 dereferenceable(24) %10, i32 noundef 0)
          to label %128 unwind label %65

128:                                              ; preds = %127
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #3
  br label %56, !llvm.loop !9

129:                                              ; preds = %75, %72, %69
  %130 = landingpad { ptr, i32 }
          cleanup
  %131 = extractvalue { ptr, i32 } %130, 0
  store ptr %131, ptr %6, align 8
  %132 = extractvalue { ptr, i32 } %130, 1
  store i32 %132, ptr %7, align 4
  br label %157

133:                                              ; preds = %77
  %134 = landingpad { ptr, i32 }
          cleanup
  %135 = extractvalue { ptr, i32 } %134, 0
  store ptr %135, ptr %6, align 8
  %136 = extractvalue { ptr, i32 } %134, 1
  store i32 %136, ptr %7, align 4
  br label %156

137:                                              ; preds = %78
  %138 = landingpad { ptr, i32 }
          cleanup
  %139 = extractvalue { ptr, i32 } %138, 0
  store ptr %139, ptr %6, align 8
  %140 = extractvalue { ptr, i32 } %138, 1
  store i32 %140, ptr %7, align 4
  br label %155

141:                                              ; preds = %88, %83, %80
  %142 = landingpad { ptr, i32 }
          cleanup
  %143 = extractvalue { ptr, i32 } %142, 0
  store ptr %143, ptr %6, align 8
  %144 = extractvalue { ptr, i32 } %142, 1
  store i32 %144, ptr %7, align 4
  br label %154

145:                                              ; preds = %90
  %146 = landingpad { ptr, i32 }
          cleanup
  %147 = extractvalue { ptr, i32 } %146, 0
  store ptr %147, ptr %6, align 8
  %148 = extractvalue { ptr, i32 } %146, 1
  store i32 %148, ptr %7, align 4
  br label %153

149:                                              ; preds = %123, %120, %117, %114, %109, %105, %102, %97, %93, %91
  %150 = landingpad { ptr, i32 }
          cleanup
  %151 = extractvalue { ptr, i32 } %150, 0
  store ptr %151, ptr %6, align 8
  %152 = extractvalue { ptr, i32 } %150, 1
  store i32 %152, ptr %7, align 4
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #3
  br label %153

153:                                              ; preds = %149, %145
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #3
  br label %154

154:                                              ; preds = %153, %141
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #3
  br label %155

155:                                              ; preds = %154, %137
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #3
  br label %156

156:                                              ; preds = %155, %133
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #3
  br label %157

157:                                              ; preds = %156, %129
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #3
  br label %158

158:                                              ; preds = %157, %65
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #3
  br label %159

159:                                              ; preds = %158, %61
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #3
  br label %163

160:                                              ; preds = %60
  br label %161

161:                                              ; preds = %160
  invoke void @_ZN5sc_dt7sc_uintILi3EEppEi(ptr dead_on_unwind writable sret(%"class.sc_dt::sc_uint.0") align 8 %16, ptr noundef nonnull align 8 dereferenceable(24) %8, i32 noundef 0)
          to label %162 unwind label %50

162:                                              ; preds = %161
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #3
  br label %31, !llvm.loop !11

163:                                              ; preds = %159, %50
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #3
  br label %164

164:                                              ; preds = %163, %46
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #3
  br label %227

165:                                              ; preds = %35
  call void @llvm.lifetime.start.p0(i64 24, ptr %17) #3
  invoke void @_ZN5sc_dt7sc_uintILi3EEC2Ei(ptr noundef nonnull align 8 dereferenceable(24) %17, i32 noundef 0)
          to label %166 unwind label %172

166:                                              ; preds = %165
  br label %167

167:                                              ; preds = %216, %166
  %168 = invoke noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %17)
          to label %169 unwind label %176

169:                                              ; preds = %167
  %170 = icmp ult i64 %168, 4
  br i1 %170, label %180, label %171

171:                                              ; preds = %169
  store i32 8, ptr %9, align 4
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #3
  br label %219

172:                                              ; preds = %165
  %173 = landingpad { ptr, i32 }
          cleanup
  %174 = extractvalue { ptr, i32 } %173, 0
  store ptr %174, ptr %6, align 8
  %175 = extractvalue { ptr, i32 } %173, 1
  store i32 %175, ptr %7, align 4
  br label %218

176:                                              ; preds = %215, %167
  %177 = landingpad { ptr, i32 }
          cleanup
  %178 = extractvalue { ptr, i32 } %177, 0
  store ptr %178, ptr %6, align 8
  %179 = extractvalue { ptr, i32 } %177, 1
  store i32 %179, ptr %7, align 4
  br label %217

180:                                              ; preds = %169
  call void @llvm.lifetime.start.p0(i64 24, ptr %18) #3
  invoke void @_ZN5sc_dt7sc_uintILi3EEC2Ei(ptr noundef nonnull align 8 dereferenceable(24) %18, i32 noundef 0)
          to label %181 unwind label %187

181:                                              ; preds = %180
  br label %182

182:                                              ; preds = %212, %181
  %183 = invoke noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %18)
          to label %184 unwind label %191

184:                                              ; preds = %182
  %185 = icmp ult i64 %183, 4
  br i1 %185, label %195, label %186

186:                                              ; preds = %184
  store i32 11, ptr %9, align 4
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #3
  br label %214

187:                                              ; preds = %180
  %188 = landingpad { ptr, i32 }
          cleanup
  %189 = extractvalue { ptr, i32 } %188, 0
  store ptr %189, ptr %6, align 8
  %190 = extractvalue { ptr, i32 } %188, 1
  store i32 %190, ptr %7, align 4
  br label %213

191:                                              ; preds = %211, %207, %204, %200, %197, %195, %182
  %192 = landingpad { ptr, i32 }
          cleanup
  %193 = extractvalue { ptr, i32 } %192, 0
  store ptr %193, ptr %6, align 8
  %194 = extractvalue { ptr, i32 } %192, 1
  store i32 %194, ptr %7, align 4
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #3
  br label %213

195:                                              ; preds = %184
  %196 = invoke noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %18)
          to label %197 unwind label %191

197:                                              ; preds = %195
  %198 = getelementptr inbounds [4 x [4 x %"class.sc_dt::sc_uint"]], ptr %5, i64 0, i64 %196
  %199 = invoke noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %17)
          to label %200 unwind label %191

200:                                              ; preds = %197
  %201 = getelementptr inbounds [4 x %"class.sc_dt::sc_uint"], ptr %198, i64 0, i64 %199
  %202 = load ptr, ptr %4, align 8, !tbaa !5
  %203 = invoke noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %18)
          to label %204 unwind label %191

204:                                              ; preds = %200
  %205 = getelementptr inbounds [4 x %"class.sc_dt::sc_uint"], ptr %202, i64 %203
  %206 = invoke noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %17)
          to label %207 unwind label %191

207:                                              ; preds = %204
  %208 = getelementptr inbounds [4 x %"class.sc_dt::sc_uint"], ptr %205, i64 0, i64 %206
  %209 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt7sc_uintILi8EEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %208, ptr noundef nonnull align 8 dereferenceable(24) %201)
          to label %210 unwind label %191

210:                                              ; preds = %207
  br label %211

211:                                              ; preds = %210
  invoke void @_ZN5sc_dt7sc_uintILi3EEppEi(ptr dead_on_unwind writable sret(%"class.sc_dt::sc_uint.0") align 8 %19, ptr noundef nonnull align 8 dereferenceable(24) %18, i32 noundef 0)
          to label %212 unwind label %191

212:                                              ; preds = %211
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #3
  br label %182, !llvm.loop !12

213:                                              ; preds = %191, %187
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #3
  br label %217

214:                                              ; preds = %186
  br label %215

215:                                              ; preds = %214
  invoke void @_ZN5sc_dt7sc_uintILi3EEppEi(ptr dead_on_unwind writable sret(%"class.sc_dt::sc_uint.0") align 8 %20, ptr noundef nonnull align 8 dereferenceable(24) %17, i32 noundef 0)
          to label %216 unwind label %176

216:                                              ; preds = %215
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #3
  br label %167, !llvm.loop !13

217:                                              ; preds = %213, %176
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #3
  br label %218

218:                                              ; preds = %217, %172
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #3
  br label %227

219:                                              ; preds = %171
  %220 = getelementptr inbounds [4 x [4 x %"class.sc_dt::sc_uint"]], ptr %5, i32 0, i32 0, i32 0
  %221 = getelementptr inbounds %"class.sc_dt::sc_uint", ptr %220, i64 16
  br label %222

222:                                              ; preds = %222, %219
  %223 = phi ptr [ %221, %219 ], [ %224, %222 ]
  %224 = getelementptr inbounds %"class.sc_dt::sc_uint", ptr %223, i64 -1
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %224) #3
  %225 = icmp eq ptr %224, %220
  br i1 %225, label %226, label %222

226:                                              ; preds = %222
  call void @llvm.lifetime.end.p0(i64 384, ptr %5) #3
  ret void

227:                                              ; preds = %218, %164
  %228 = getelementptr inbounds [4 x [4 x %"class.sc_dt::sc_uint"]], ptr %5, i32 0, i32 0, i32 0
  %229 = getelementptr inbounds %"class.sc_dt::sc_uint", ptr %228, i64 16
  br label %230

230:                                              ; preds = %230, %227
  %231 = phi ptr [ %229, %227 ], [ %232, %230 ]
  %232 = getelementptr inbounds %"class.sc_dt::sc_uint", ptr %231, i64 -1
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %232) #3
  %233 = icmp eq ptr %232, %228
  br i1 %233, label %234, label %230

234:                                              ; preds = %230
  br label %235

235:                                              ; preds = %234, %45
  call void @llvm.lifetime.end.p0(i64 384, ptr %5) #3
  br label %236

236:                                              ; preds = %235
  %237 = load ptr, ptr %6, align 8
  %238 = load i32, ptr %7, align 4
  %239 = insertvalue { ptr, i32 } poison, ptr %237, 0
  %240 = insertvalue { ptr, i32 } %239, i32 %238, 1
  resume { ptr, i32 } %240
}

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #1 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 = { 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 #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"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !10}


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

; 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: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt7sc_uintILi8EEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) 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 uwtable
declare dso_local void @_ZN5sc_dt7sc_uintILi3EEC2Ei(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) unnamed_addr #0 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5sc_dt7sc_uintILi3EEppEi(ptr dead_on_unwind noalias writable sret(%"class.sc_dt::sc_uint.0") align 8, ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) local_unnamed_addr #0 align 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
declare dso_local void @_ZN5sc_dt7sc_uintILi8EEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11AES_Encrypt10MixColumnsEPA4_N5sc_dt7sc_uintILi8EEE(ptr noundef nonnull align 8 dereferenceable(6512) %0, ptr noundef %1) local_unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca [4 x [4 x %"class.sc_dt::sc_uint"]], align 16
  %4 = alloca %"class.sc_dt::sc_uint.0", align 8
  %5 = alloca %"class.sc_dt::sc_uint.0", align 8
  %6 = alloca %"class.sc_dt::sc_uint", align 8
  %7 = alloca %"class.sc_dt::sc_uint", align 8
  %8 = alloca %"class.sc_dt::sc_uint", align 8
  %9 = alloca %"class.sc_dt::sc_uint", align 8
  %10 = alloca %"class.sc_dt::sc_uint.0", align 8
  %11 = alloca %"class.sc_dt::sc_uint.0", align 8
  %12 = alloca %"class.sc_dt::sc_uint.0", align 8
  %13 = alloca %"class.sc_dt::sc_uint.0", align 8
  %14 = alloca %"class.sc_dt::sc_uint.0", align 8
  %15 = alloca %"class.sc_dt::sc_uint.0", align 8
  call void @llvm.lifetime.start.p0(i64 384, ptr nonnull %3) #3
  call void @_ZN5sc_dt7sc_uintILi8EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3)
  %.ptr.1 = getelementptr inbounds i8, ptr %3, i64 24
  invoke void @_ZN5sc_dt7sc_uintILi8EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.1)
          to label %16 unwind label %.preheader43.preheader

16:                                               ; preds = %2
  %.ptr.2 = getelementptr inbounds i8, ptr %3, i64 48
  invoke void @_ZN5sc_dt7sc_uintILi8EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.2)
          to label %17 unwind label %.preheader43.preheader

17:                                               ; preds = %16
  %.ptr.3 = getelementptr inbounds i8, ptr %3, i64 72
  invoke void @_ZN5sc_dt7sc_uintILi8EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.3)
          to label %18 unwind label %.preheader43.preheader

18:                                               ; preds = %17
  %.ptr.4 = getelementptr inbounds i8, ptr %3, i64 96
  invoke void @_ZN5sc_dt7sc_uintILi8EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.4)
          to label %19 unwind label %.preheader43.preheader

19:                                               ; preds = %18
  %.ptr.5 = getelementptr inbounds i8, ptr %3, i64 120
  invoke void @_ZN5sc_dt7sc_uintILi8EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.5)
          to label %20 unwind label %.preheader43.preheader

20:                                               ; preds = %19
  %.ptr.6 = getelementptr inbounds i8, ptr %3, i64 144
  invoke void @_ZN5sc_dt7sc_uintILi8EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.6)
          to label %21 unwind label %.preheader43.preheader

21:                                               ; preds = %20
  %.ptr.7 = getelementptr inbounds i8, ptr %3, i64 168
  invoke void @_ZN5sc_dt7sc_uintILi8EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.7)
          to label %22 unwind label %.preheader43.preheader

22:                                               ; preds = %21
  %.ptr.8 = getelementptr inbounds i8, ptr %3, i64 192
  invoke void @_ZN5sc_dt7sc_uintILi8EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.8)
          to label %23 unwind label %.preheader43.preheader

23:                                               ; preds = %22
  %.ptr.9 = getelementptr inbounds i8, ptr %3, i64 216
  invoke void @_ZN5sc_dt7sc_uintILi8EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.9)
          to label %24 unwind label %.preheader43.preheader

24:                                               ; preds = %23
  %.ptr.10 = getelementptr inbounds i8, ptr %3, i64 240
  invoke void @_ZN5sc_dt7sc_uintILi8EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.10)
          to label %25 unwind label %.preheader43.preheader

25:                                               ; preds = %24
  %.ptr.11 = getelementptr inbounds i8, ptr %3, i64 264
  invoke void @_ZN5sc_dt7sc_uintILi8EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.11)
          to label %26 unwind label %.preheader43.preheader

26:                                               ; preds = %25
  %.ptr.12 = getelementptr inbounds i8, ptr %3, i64 288
  invoke void @_ZN5sc_dt7sc_uintILi8EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.12)
          to label %27 unwind label %.preheader43.preheader

27:                                               ; preds = %26
  %.ptr.13 = getelementptr inbounds i8, ptr %3, i64 312
  invoke void @_ZN5sc_dt7sc_uintILi8EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.13)
          to label %28 unwind label %.preheader43.preheader

28:                                               ; preds = %27
  %.ptr.14 = getelementptr inbounds i8, ptr %3, i64 336
  invoke void @_ZN5sc_dt7sc_uintILi8EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.14)
          to label %29 unwind label %.preheader43.preheader

29:                                               ; preds = %28
  %.ptr.15 = getelementptr inbounds i8, ptr %3, i64 360
  invoke void @_ZN5sc_dt7sc_uintILi8EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.15)
          to label %30 unwind label %.preheader43.preheader

30:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #3
  invoke void @_ZN5sc_dt7sc_uintILi3EEC2Ei(ptr noundef nonnull align 8 dereferenceable(24) %4, i32 noundef 0)
          to label %.preheader42 unwind label %38

.preheader42:                                     ; preds = %30
  %31 = call noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %4)
  %32 = icmp ult i64 %31, 4
  br i1 %32, label %.lr.ph47, label %._crit_edge48

._crit_edge48:                                    ; preds = %101, %.preheader42
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #3
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %12) #3
  invoke void @_ZN5sc_dt7sc_uintILi3EEC2Ei(ptr noundef nonnull align 8 dereferenceable(24) %12, i32 noundef 0)
          to label %.preheader40 unwind label %121

.preheader40:                                     ; preds = %._crit_edge48
  %33 = call noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %12)
  %34 = icmp ult i64 %33, 4
  br i1 %34, label %.lr.ph51, label %._crit_edge52

.preheader43.preheader:                           ; preds = %2, %16, %17, %18, %19, %20, %21, %22, %23, %24, %25, %26, %27, %28, %29
  %.ptr.lcssa.ph = phi ptr [ %.ptr.15, %29 ], [ %.ptr.14, %28 ], [ %.ptr.13, %27 ], [ %.ptr.12, %26 ], [ %.ptr.11, %25 ], [ %.ptr.10, %24 ], [ %.ptr.9, %23 ], [ %.ptr.8, %22 ], [ %.ptr.7, %21 ], [ %.ptr.6, %20 ], [ %.ptr.5, %19 ], [ %.ptr.4, %18 ], [ %.ptr.3, %17 ], [ %.ptr.2, %16 ], [ %.ptr.1, %2 ]
  %lpad.thr_comm = landingpad { ptr, i32 }
          cleanup
  br label %.preheader43

.preheader43:                                     ; preds = %.preheader43.preheader, %.preheader43
  %35 = phi ptr [ %36, %.preheader43 ], [ %.ptr.lcssa.ph, %.preheader43.preheader ]
  %36 = getelementptr inbounds i8, ptr %35, i64 -24
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %36) #3
  %37 = icmp eq ptr %36, %3
  br i1 %37, label %.loopexit, label %.preheader43

38:                                               ; preds = %30
  %39 = landingpad { ptr, i32 }
          cleanup
  br label %105

40:                                               ; preds = %._crit_edge
  %41 = landingpad { ptr, i32 }
          cleanup
  br label %104

.lr.ph47:                                         ; preds = %.preheader42, %101
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #3
  invoke void @_ZN5sc_dt7sc_uintILi3EEC2Ei(ptr noundef nonnull align 8 dereferenceable(24) %5, i32 noundef 0)
          to label %.preheader41 unwind label %44

.preheader41:                                     ; preds = %.lr.ph47
  %42 = call noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %5)
  %43 = icmp ult i64 %42, 4
  br i1 %43, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %82, %.preheader41
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #3
  invoke void @_ZN5sc_dt7sc_uintILi3EEppEi(ptr dead_on_unwind nonnull writable sret(%"class.sc_dt::sc_uint.0") align 8 %11, ptr noundef nonnull align 8 dereferenceable(24) %4, i32 noundef 0)
          to label %101 unwind label %40

44:                                               ; preds = %.lr.ph47
  %45 = landingpad { ptr, i32 }
          cleanup
  br label %100

46:                                               ; preds = %81
  %47 = landingpad { ptr, i32 }
          cleanup
  br label %99

.lr.ph:                                           ; preds = %.preheader41, %82
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #3
  %48 = call noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %5)
  %49 = call noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %4)
  %50 = getelementptr inbounds [4 x %"class.sc_dt::sc_uint"], ptr %1, i64 %48, i64 %49
  invoke void @_ZN5sc_dt7sc_uintILi8EEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(24) %50)
          to label %51 unwind label %85

51:                                               ; preds = %.lr.ph
  invoke void @_ZN11AES_Encrypt5dmul2EN5sc_dt7sc_uintILi8EEE(ptr dead_on_unwind nonnull writable sret(%"class.sc_dt::sc_uint") align 8 %6, ptr noundef nonnull align 8 dereferenceable(6512) %0, ptr noundef nonnull %7)
          to label %52 unwind label %87

52:                                               ; preds = %51
  %53 = call noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %6)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #3
  %54 = call noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %5)
  %55 = add i64 %54, 1
  %56 = and i64 %55, 3
  %57 = call noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %4)
  %58 = getelementptr inbounds [4 x %"class.sc_dt::sc_uint"], ptr %1, i64 %56, i64 %57
  invoke void @_ZN5sc_dt7sc_uintILi8EEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 8 dereferenceable(24) %58)
          to label %59 unwind label %89

59:                                               ; preds = %52
  invoke void @_ZN11AES_Encrypt5dmul3EN5sc_dt7sc_uintILi8EEE(ptr dead_on_unwind nonnull writable sret(%"class.sc_dt::sc_uint") align 8 %8, ptr noundef nonnull align 8 dereferenceable(6512) %0, ptr noundef nonnull %9)
          to label %60 unwind label %91

60:                                               ; preds = %59
  %61 = call noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %8)
  %62 = xor i64 %61, %53
  %63 = call noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %5)
  %64 = and i64 %63, 3
  %65 = xor i64 %64, 2
  %66 = call noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %4)
  %67 = getelementptr inbounds [4 x %"class.sc_dt::sc_uint"], ptr %1, i64 %65, i64 %66
  %68 = call noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %67)
  %69 = xor i64 %62, %68
  %70 = call noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %5)
  %71 = add i64 %70, 3
  %72 = and i64 %71, 3
  %73 = call noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %4)
  %74 = getelementptr inbounds [4 x %"class.sc_dt::sc_uint"], ptr %1, i64 %72, i64 %73
  %75 = call noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %74)
  %76 = xor i64 %69, %75
  %77 = call noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %5)
  %78 = call noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %4)
  %79 = getelementptr inbounds [4 x [4 x %"class.sc_dt::sc_uint"]], ptr %3, i64 0, i64 %77, i64 %78
  %80 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt7sc_uintILi8EEaSEy(ptr noundef nonnull align 8 dereferenceable(24) %79, i64 noundef %76)
          to label %81 unwind label %93

81:                                               ; preds = %60
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #3
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #3
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #3
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #3
  invoke void @_ZN5sc_dt7sc_uintILi3EEppEi(ptr dead_on_unwind nonnull writable sret(%"class.sc_dt::sc_uint.0") align 8 %10, ptr noundef nonnull align 8 dereferenceable(24) %5, i32 noundef 0)
          to label %82 unwind label %46

82:                                               ; preds = %81
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #3
  %83 = call noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %5)
  %84 = icmp ult i64 %83, 4
  br i1 %84, label %.lr.ph, label %._crit_edge, !llvm.loop !5

85:                                               ; preds = %.lr.ph
  %86 = landingpad { ptr, i32 }
          cleanup
  br label %98

87:                                               ; preds = %51
  %88 = landingpad { ptr, i32 }
          cleanup
  br label %97

89:                                               ; preds = %52
  %90 = landingpad { ptr, i32 }
          cleanup
  br label %96

91:                                               ; preds = %59
  %92 = landingpad { ptr, i32 }
          cleanup
  br label %95

93:                                               ; preds = %60
  %94 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #3
  br label %95

95:                                               ; preds = %93, %91
  %.pn28 = phi { ptr, i32 } [ %94, %93 ], [ %92, %91 ]
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #3
  br label %96

96:                                               ; preds = %95, %89
  %.pn28.pn = phi { ptr, i32 } [ %.pn28, %95 ], [ %90, %89 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #3
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #3
  br label %97

97:                                               ; preds = %96, %87
  %.pn28.pn.pn = phi { ptr, i32 } [ %.pn28.pn, %96 ], [ %88, %87 ]
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #3
  br label %98

98:                                               ; preds = %97, %85
  %.pn28.pn.pn.pn = phi { ptr, i32 } [ %.pn28.pn.pn, %97 ], [ %86, %85 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #3
  br label %99

99:                                               ; preds = %98, %46
  %.pn33 = phi { ptr, i32 } [ %47, %46 ], [ %.pn28.pn.pn.pn, %98 ]
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #3
  br label %100

100:                                              ; preds = %99, %44
  %.pn33.pn = phi { ptr, i32 } [ %.pn33, %99 ], [ %45, %44 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #3
  br label %104

101:                                              ; preds = %._crit_edge
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #3
  %102 = call noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %4)
  %103 = icmp ult i64 %102, 4
  br i1 %103, label %.lr.ph47, label %._crit_edge48, !llvm.loop !7

104:                                              ; preds = %100, %40
  %.pn33.pn.pn = phi { ptr, i32 } [ %.pn33.pn, %100 ], [ %41, %40 ]
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #3
  br label %105

105:                                              ; preds = %104, %38
  %.pn33.pn.pn.pn = phi { ptr, i32 } [ %.pn33.pn.pn, %104 ], [ %39, %38 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #3
  br label %.loopexit.loopexit

._crit_edge52:                                    ; preds = %142, %.preheader40
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #3
  %106 = getelementptr inbounds i8, ptr %3, i64 360
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %106) #3
  %107 = getelementptr inbounds i8, ptr %3, i64 336
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %107) #3
  %108 = getelementptr inbounds i8, ptr %3, i64 312
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %108) #3
  %109 = getelementptr inbounds i8, ptr %3, i64 288
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %109) #3
  %110 = getelementptr inbounds i8, ptr %3, i64 264
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %110) #3
  %111 = getelementptr inbounds i8, ptr %3, i64 240
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %111) #3
  %112 = getelementptr inbounds i8, ptr %3, i64 216
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %112) #3
  %113 = getelementptr inbounds i8, ptr %3, i64 192
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %113) #3
  %114 = getelementptr inbounds i8, ptr %3, i64 168
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %114) #3
  %115 = getelementptr inbounds i8, ptr %3, i64 144
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %115) #3
  %116 = getelementptr inbounds i8, ptr %3, i64 120
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %116) #3
  %117 = getelementptr inbounds i8, ptr %3, i64 96
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %117) #3
  %118 = getelementptr inbounds i8, ptr %3, i64 72
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %118) #3
  %119 = getelementptr inbounds i8, ptr %3, i64 48
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %119) #3
  %120 = getelementptr inbounds i8, ptr %3, i64 24
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %120) #3
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #3
  call void @llvm.lifetime.end.p0(i64 384, ptr nonnull %3) #3
  ret void

121:                                              ; preds = %._crit_edge48
  %122 = landingpad { ptr, i32 }
          cleanup
  br label %146

123:                                              ; preds = %._crit_edge50
  %124 = landingpad { ptr, i32 }
          cleanup
  br label %145

.lr.ph51:                                         ; preds = %.preheader40, %142
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %13) #3
  invoke void @_ZN5sc_dt7sc_uintILi3EEC2Ei(ptr noundef nonnull align 8 dereferenceable(24) %13, i32 noundef 0)
          to label %.preheader unwind label %127

.preheader:                                       ; preds = %.lr.ph51
  %125 = call noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %13)
  %126 = icmp ult i64 %125, 4
  br i1 %126, label %.lr.ph49, label %._crit_edge50

._crit_edge50:                                    ; preds = %138, %.preheader
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #3
  invoke void @_ZN5sc_dt7sc_uintILi3EEppEi(ptr dead_on_unwind nonnull writable sret(%"class.sc_dt::sc_uint.0") align 8 %15, ptr noundef nonnull align 8 dereferenceable(24) %12, i32 noundef 0)
          to label %142 unwind label %123

127:                                              ; preds = %.lr.ph51
  %128 = landingpad { ptr, i32 }
          cleanup
  br label %141

129:                                              ; preds = %.lr.ph49
  %130 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #3
  br label %141

.lr.ph49:                                         ; preds = %.preheader, %138
  %131 = call noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %13)
  %132 = call noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %12)
  %133 = getelementptr inbounds [4 x [4 x %"class.sc_dt::sc_uint"]], ptr %3, i64 0, i64 %131, i64 %132
  %134 = call noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %13)
  %135 = call noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %12)
  %136 = getelementptr inbounds [4 x %"class.sc_dt::sc_uint"], ptr %1, i64 %134, i64 %135
  %137 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt7sc_uintILi8EEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %136, ptr noundef nonnull align 8 dereferenceable(24) %133)
  invoke void @_ZN5sc_dt7sc_uintILi3EEppEi(ptr dead_on_unwind nonnull writable sret(%"class.sc_dt::sc_uint.0") align 8 %14, ptr noundef nonnull align 8 dereferenceable(24) %13, i32 noundef 0)
          to label %138 unwind label %129

138:                                              ; preds = %.lr.ph49
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #3
  %139 = call noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %13)
  %140 = icmp ult i64 %139, 4
  br i1 %140, label %.lr.ph49, label %._crit_edge50, !llvm.loop !8

141:                                              ; preds = %129, %127
  %.pn = phi { ptr, i32 } [ %130, %129 ], [ %128, %127 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #3
  br label %145

142:                                              ; preds = %._crit_edge50
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #3
  %143 = call noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %12)
  %144 = icmp ult i64 %143, 4
  br i1 %144, label %.lr.ph51, label %._crit_edge52, !llvm.loop !9

145:                                              ; preds = %141, %123
  %.pn.pn = phi { ptr, i32 } [ %.pn, %141 ], [ %124, %123 ]
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #3
  br label %146

146:                                              ; preds = %145, %121
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %145 ], [ %122, %121 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #3
  br label %.loopexit.loopexit

.loopexit.loopexit:                               ; preds = %146, %105
  %.pn33.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn33.pn.pn.pn, %105 ], [ %.pn.pn.pn, %146 ]
  %147 = getelementptr inbounds i8, ptr %3, i64 360
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %147) #3
  %148 = getelementptr inbounds i8, ptr %3, i64 336
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %148) #3
  %149 = getelementptr inbounds i8, ptr %3, i64 312
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %149) #3
  %150 = getelementptr inbounds i8, ptr %3, i64 288
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %150) #3
  %151 = getelementptr inbounds i8, ptr %3, i64 264
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %151) #3
  %152 = getelementptr inbounds i8, ptr %3, i64 240
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %152) #3
  %153 = getelementptr inbounds i8, ptr %3, i64 216
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %153) #3
  %154 = getelementptr inbounds i8, ptr %3, i64 192
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %154) #3
  %155 = getelementptr inbounds i8, ptr %3, i64 168
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %155) #3
  %156 = getelementptr inbounds i8, ptr %3, i64 144
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %156) #3
  %157 = getelementptr inbounds i8, ptr %3, i64 120
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %157) #3
  %158 = getelementptr inbounds i8, ptr %3, i64 96
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %158) #3
  %159 = getelementptr inbounds i8, ptr %3, i64 72
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %159) #3
  %160 = getelementptr inbounds i8, ptr %3, i64 48
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %160) #3
  %161 = getelementptr inbounds i8, ptr %3, i64 24
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %161) #3
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #3
  br label %.loopexit

.loopexit:                                        ; preds = %.preheader43, %.loopexit.loopexit
  %.pn33.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn33.pn.pn.pn.pn, %.loopexit.loopexit ], [ %lpad.thr_comm, %.preheader43 ]
  call void @llvm.lifetime.end.p0(i64 384, ptr nonnull %3) #3
  resume { ptr, i32 } %.pn33.pn.pn.pn.pn.pn
}

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #1 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 = { 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 #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"}
!7 = distinct !{!7, !6}
!8 = distinct !{!8, !6}
!9 = distinct !{!9, !6}


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