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

; 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_biguint" = type { %"class.sc_dt::sc_unsigned" }
%"class.sc_dt::sc_unsigned" = type { %"class.sc_dt::sc_value_base", i32, i32, i32, ptr }
%"class.sc_dt::sc_value_base" = type { ptr }
%"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 }

; 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 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: 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_dt10sc_biguintILi128EEC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #0 align 2

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

; 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) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN5sc_dt11sc_unsignedD2Ev(ptr noundef nonnull align 8 dereferenceable(32)) 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)) #3 align 2

declare noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt18sc_unsigned_bitrefaSEb(ptr noundef nonnull align 8 dereferenceable(24), i1 noundef zeroext) #4

; Function Attrs: mustprogress uwtable
define dso_local void @_Z7makekeyPc(ptr dead_on_unwind noalias writable sret(%"class.sc_dt::sc_biguint") align 8 %0, ptr noundef %1) #0 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca [4 x [4 x %"class.sc_dt::sc_uint"]], align 16
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca %"class.sc_dt::sc_uint", align 8
  %13 = alloca i1, align 1
  store ptr %0, ptr %3, align 8
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 384, ptr %9) #6
  %14 = getelementptr inbounds [4 x [4 x %"class.sc_dt::sc_uint"]], ptr %9, i32 0, i32 0, i32 0
  %15 = getelementptr inbounds %"class.sc_dt::sc_uint", ptr %14, i64 16
  br label %16

16:                                               ; preds = %18, %2
  %17 = phi ptr [ %14, %2 ], [ %19, %18 ]
  invoke void @_ZN5sc_dt7sc_uintILi8EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17)
          to label %18 unwind label %44

18:                                               ; preds = %16
  %19 = getelementptr inbounds %"class.sc_dt::sc_uint", ptr %17, i64 1
  %20 = icmp eq ptr %19, %15
  br i1 %20, label %21, label %16

21:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 24, ptr %12) #6
  invoke void @_ZN5sc_dt7sc_uintILi8EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12)
          to label %22 unwind label %54

22:                                               ; preds = %21
  store i1 false, ptr %13, align 1
  invoke void @_ZN5sc_dt10sc_biguintILi128EEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %0)
          to label %23 unwind label %58

23:                                               ; preds = %22
  store i32 0, ptr %5, align 4, !tbaa !9
  br label %24

24:                                               ; preds = %145, %23
  %25 = load i32, ptr %5, align 4, !tbaa !9
  %26 = icmp slt i32 %25, 16
  br i1 %26, label %27, label %152

27:                                               ; preds = %24
  %28 = load ptr, ptr %4, align 8, !tbaa !5
  %29 = load i32, ptr %5, align 4, !tbaa !9
  %30 = mul nsw i32 2, %29
  %31 = sext i32 %30 to i64
  %32 = getelementptr inbounds i8, ptr %28, i64 %31
  %33 = load i8, ptr %32, align 1, !tbaa !11
  %34 = sext i8 %33 to i32
  store i32 %34, ptr %7, align 4, !tbaa !9
  %35 = load i32, ptr %7, align 4, !tbaa !9
  %36 = icmp sge i32 %35, 48
  br i1 %36, label %37, label %62

37:                                               ; preds = %27
  %38 = load i32, ptr %7, align 4, !tbaa !9
  %39 = icmp sle i32 %38, 57
  br i1 %39, label %40, label %62

40:                                               ; preds = %37
  %41 = load i32, ptr %7, align 4, !tbaa !9
  %42 = sub nsw i32 %41, 48
  %43 = shl i32 %42, 4
  store i32 %43, ptr %6, align 4, !tbaa !9
  br label %87

44:                                               ; preds = %16
  %45 = landingpad { ptr, i32 }
          cleanup
  %46 = extractvalue { ptr, i32 } %45, 0
  store ptr %46, ptr %10, align 8
  %47 = extractvalue { ptr, i32 } %45, 1
  store i32 %47, ptr %11, align 4
  %48 = icmp eq ptr %14, %17
  br i1 %48, label %53, label %49

49:                                               ; preds = %49, %44
  %50 = phi ptr [ %17, %44 ], [ %51, %49 ]
  %51 = getelementptr inbounds %"class.sc_dt::sc_uint", ptr %50, i64 -1
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %51) #6
  %52 = icmp eq ptr %51, %14
  br i1 %52, label %53, label %49

53:                                               ; preds = %49, %44
  br label %221

54:                                               ; preds = %21
  %55 = landingpad { ptr, i32 }
          cleanup
  %56 = extractvalue { ptr, i32 } %55, 0
  store ptr %56, ptr %10, align 8
  %57 = extractvalue { ptr, i32 } %55, 1
  store i32 %57, ptr %11, align 4
  br label %208

58:                                               ; preds = %22
  %59 = landingpad { ptr, i32 }
          cleanup
  %60 = extractvalue { ptr, i32 } %59, 0
  store ptr %60, ptr %10, align 8
  %61 = extractvalue { ptr, i32 } %59, 1
  store i32 %61, ptr %11, align 4
  br label %207

62:                                               ; preds = %37, %27
  %63 = load i32, ptr %7, align 4, !tbaa !9
  %64 = icmp sge i32 %63, 97
  br i1 %64, label %65, label %73

65:                                               ; preds = %62
  %66 = load i32, ptr %7, align 4, !tbaa !9
  %67 = icmp sle i32 %66, 102
  br i1 %67, label %68, label %73

68:                                               ; preds = %65
  %69 = load i32, ptr %7, align 4, !tbaa !9
  %70 = sub nsw i32 %69, 97
  %71 = add nsw i32 %70, 10
  %72 = shl i32 %71, 4
  store i32 %72, ptr %6, align 4, !tbaa !9
  br label %86

73:                                               ; preds = %65, %62
  %74 = load i32, ptr %7, align 4, !tbaa !9
  %75 = icmp sge i32 %74, 65
  br i1 %75, label %76, label %84

76:                                               ; preds = %73
  %77 = load i32, ptr %7, align 4, !tbaa !9
  %78 = icmp sle i32 %77, 70
  br i1 %78, label %79, label %84

79:                                               ; preds = %76
  %80 = load i32, ptr %7, align 4, !tbaa !9
  %81 = sub nsw i32 %80, 65
  %82 = add nsw i32 %81, 10
  %83 = shl i32 %82, 4
  store i32 %83, ptr %6, align 4, !tbaa !9
  br label %85

84:                                               ; preds = %76, %73
  call void @abort() #7
  unreachable

85:                                               ; preds = %79
  br label %86

86:                                               ; preds = %85, %68
  br label %87

87:                                               ; preds = %86, %40
  %88 = load ptr, ptr %4, align 8, !tbaa !5
  %89 = load i32, ptr %5, align 4, !tbaa !9
  %90 = mul nsw i32 2, %89
  %91 = add nsw i32 %90, 1
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds i8, ptr %88, i64 %92
  %94 = load i8, ptr %93, align 1, !tbaa !11
  %95 = sext i8 %94 to i32
  store i32 %95, ptr %7, align 4, !tbaa !9
  %96 = load i32, ptr %7, align 4, !tbaa !9
  %97 = icmp sge i32 %96, 48
  br i1 %97, label %98, label %106

98:                                               ; preds = %87
  %99 = load i32, ptr %7, align 4, !tbaa !9
  %100 = icmp sle i32 %99, 57
  br i1 %100, label %101, label %106

101:                                              ; preds = %98
  %102 = load i32, ptr %7, align 4, !tbaa !9
  %103 = sub nsw i32 %102, 48
  %104 = load i32, ptr %6, align 4, !tbaa !9
  %105 = xor i32 %104, %103
  store i32 %105, ptr %6, align 4, !tbaa !9
  br label %133

106:                                              ; preds = %98, %87
  %107 = load i32, ptr %7, align 4, !tbaa !9
  %108 = icmp sge i32 %107, 97
  br i1 %108, label %109, label %118

109:                                              ; preds = %106
  %110 = load i32, ptr %7, align 4, !tbaa !9
  %111 = icmp sle i32 %110, 102
  br i1 %111, label %112, label %118

112:                                              ; preds = %109
  %113 = load i32, ptr %7, align 4, !tbaa !9
  %114 = sub nsw i32 %113, 97
  %115 = add nsw i32 %114, 10
  %116 = load i32, ptr %6, align 4, !tbaa !9
  %117 = xor i32 %116, %115
  store i32 %117, ptr %6, align 4, !tbaa !9
  br label %132

118:                                              ; preds = %109, %106
  %119 = load i32, ptr %7, align 4, !tbaa !9
  %120 = icmp sge i32 %119, 65
  br i1 %120, label %121, label %130

121:                                              ; preds = %118
  %122 = load i32, ptr %7, align 4, !tbaa !9
  %123 = icmp sle i32 %122, 70
  br i1 %123, label %124, label %130

124:                                              ; preds = %121
  %125 = load i32, ptr %7, align 4, !tbaa !9
  %126 = sub nsw i32 %125, 65
  %127 = add nsw i32 %126, 10
  %128 = load i32, ptr %6, align 4, !tbaa !9
  %129 = xor i32 %128, %127
  store i32 %129, ptr %6, align 4, !tbaa !9
  br label %131

130:                                              ; preds = %121, %118
  call void @abort() #7
  unreachable

131:                                              ; preds = %124
  br label %132

132:                                              ; preds = %131, %112
  br label %133

133:                                              ; preds = %132, %101
  %134 = load i32, ptr %6, align 4, !tbaa !9
  %135 = load i32, ptr %5, align 4, !tbaa !9
  %136 = srem i32 %135, 4
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds [4 x [4 x %"class.sc_dt::sc_uint"]], ptr %9, i64 0, i64 %137
  %139 = load i32, ptr %5, align 4, !tbaa !9
  %140 = sdiv i32 %139, 4
  %141 = sext i32 %140 to i64
  %142 = getelementptr inbounds [4 x %"class.sc_dt::sc_uint"], ptr %138, i64 0, i64 %141
  %143 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt7sc_uintILi8EEaSEi(ptr noundef nonnull align 8 dereferenceable(24) %142, i32 noundef %134)
          to label %144 unwind label %148

144:                                              ; preds = %133
  br label %145

145:                                              ; preds = %144
  %146 = load i32, ptr %5, align 4, !tbaa !9
  %147 = add nsw i32 %146, 1
  store i32 %147, ptr %5, align 4, !tbaa !9
  br label %24, !llvm.loop !12

148:                                              ; preds = %187, %177, %175, %172, %160, %133
  %149 = landingpad { ptr, i32 }
          cleanup
  %150 = extractvalue { ptr, i32 } %149, 0
  store ptr %150, ptr %10, align 8
  %151 = extractvalue { ptr, i32 } %149, 1
  store i32 %151, ptr %11, align 4
  call void @_ZN5sc_dt11sc_unsignedD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %0) #6
  br label %207

152:                                              ; preds = %24
  store i32 0, ptr %5, align 4, !tbaa !9
  br label %153

153:                                              ; preds = %198, %152
  %154 = load i32, ptr %5, align 4, !tbaa !9
  %155 = icmp slt i32 %154, 4
  br i1 %155, label %156, label %201

156:                                              ; preds = %153
  store i32 0, ptr %6, align 4, !tbaa !9
  br label %157

157:                                              ; preds = %194, %156
  %158 = load i32, ptr %6, align 4, !tbaa !9
  %159 = icmp slt i32 %158, 4
  br i1 %159, label %160, label %197

160:                                              ; preds = %157
  %161 = load i32, ptr %5, align 4, !tbaa !9
  %162 = sext i32 %161 to i64
  %163 = getelementptr inbounds [4 x [4 x %"class.sc_dt::sc_uint"]], ptr %9, i64 0, i64 %162
  %164 = load i32, ptr %6, align 4, !tbaa !9
  %165 = sext i32 %164 to i64
  %166 = getelementptr inbounds [4 x %"class.sc_dt::sc_uint"], ptr %163, i64 0, i64 %165
  %167 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt7sc_uintILi8EEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %12, ptr noundef nonnull align 8 dereferenceable(24) %166)
          to label %168 unwind label %148

168:                                              ; preds = %160
  store i32 0, ptr %8, align 4, !tbaa !9
  br label %169

169:                                              ; preds = %190, %168
  %170 = load i32, ptr %8, align 4, !tbaa !9
  %171 = icmp slt i32 %170, 8
  br i1 %171, label %172, label %193

172:                                              ; preds = %169
  %173 = load i32, ptr %8, align 4, !tbaa !9
  %174 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt12sc_uint_baseixEi(ptr noundef nonnull align 8 dereferenceable(24) %12, i32 noundef %173)
          to label %175 unwind label %148

175:                                              ; preds = %172
  %176 = invoke noundef i64 @_ZNK5sc_dt16sc_uint_bitref_rcvyEv(ptr noundef nonnull align 8 dereferenceable(24) %174)
          to label %177 unwind label %148

177:                                              ; preds = %175
  %178 = icmp ne i64 %176, 0
  %179 = load i32, ptr %5, align 4, !tbaa !9
  %180 = mul nsw i32 %179, 4
  %181 = load i32, ptr %6, align 4, !tbaa !9
  %182 = add nsw i32 %180, %181
  %183 = mul nsw i32 %182, 8
  %184 = load i32, ptr %8, align 4, !tbaa !9
  %185 = add nsw i32 %183, %184
  %186 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt11sc_unsignedixEi(ptr noundef nonnull align 8 dereferenceable(32) %0, i32 noundef %185)
          to label %187 unwind label %148

187:                                              ; preds = %177
  %188 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt18sc_unsigned_bitrefaSEb(ptr noundef nonnull align 8 dereferenceable(24) %186, i1 noundef zeroext %178)
          to label %189 unwind label %148

189:                                              ; preds = %187
  br label %190

190:                                              ; preds = %189
  %191 = load i32, ptr %8, align 4, !tbaa !9
  %192 = add nsw i32 %191, 1
  store i32 %192, ptr %8, align 4, !tbaa !9
  br label %169, !llvm.loop !14

193:                                              ; preds = %169
  br label %194

194:                                              ; preds = %193
  %195 = load i32, ptr %6, align 4, !tbaa !9
  %196 = add nsw i32 %195, 1
  store i32 %196, ptr %6, align 4, !tbaa !9
  br label %157, !llvm.loop !15

197:                                              ; preds = %157
  br label %198

198:                                              ; preds = %197
  %199 = load i32, ptr %5, align 4, !tbaa !9
  %200 = add nsw i32 %199, 1
  store i32 %200, ptr %5, align 4, !tbaa !9
  br label %153, !llvm.loop !16

201:                                              ; preds = %153
  store i1 true, ptr %13, align 1
  %202 = load i1, ptr %13, align 1
  br i1 %202, label %204, label %203

203:                                              ; preds = %201
  call void @_ZN5sc_dt11sc_unsignedD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %0) #6
  br label %204

204:                                              ; preds = %203, %201
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #6
  %205 = getelementptr inbounds [4 x [4 x %"class.sc_dt::sc_uint"]], ptr %9, i32 0, i32 0, i32 0
  %206 = getelementptr inbounds %"class.sc_dt::sc_uint", ptr %205, i64 16
  br label %211

207:                                              ; preds = %148, %58
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #6
  br label %208

208:                                              ; preds = %207, %54
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #6
  %209 = getelementptr inbounds [4 x [4 x %"class.sc_dt::sc_uint"]], ptr %9, i32 0, i32 0, i32 0
  %210 = getelementptr inbounds %"class.sc_dt::sc_uint", ptr %209, i64 16
  br label %216

211:                                              ; preds = %211, %204
  %212 = phi ptr [ %206, %204 ], [ %213, %211 ]
  %213 = getelementptr inbounds %"class.sc_dt::sc_uint", ptr %212, i64 -1
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %213) #6
  %214 = icmp eq ptr %213, %205
  br i1 %214, label %215, label %211

215:                                              ; preds = %211
  call void @llvm.lifetime.end.p0(i64 384, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  ret void

216:                                              ; preds = %216, %208
  %217 = phi ptr [ %210, %208 ], [ %218, %216 ]
  %218 = getelementptr inbounds %"class.sc_dt::sc_uint", ptr %217, i64 -1
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %218) #6
  %219 = icmp eq ptr %218, %209
  br i1 %219, label %220, label %216

220:                                              ; preds = %216
  br label %221

221:                                              ; preds = %220, %53
  call void @llvm.lifetime.end.p0(i64 384, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  br label %222

222:                                              ; preds = %221
  %223 = load ptr, ptr %10, align 8
  %224 = load i32, ptr %11, align 4
  %225 = insertvalue { ptr, i32 } poison, ptr %223, 0
  %226 = insertvalue { ptr, i32 } %225, i32 %224, 1
  resume { ptr, i32 } %226
}

; Function Attrs: noreturn nounwind
declare void @abort() #5

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt7sc_uintILi8EEaSEi(ptr noundef nonnull align 8 dereferenceable(24), i32 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 = { 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 #4 = { "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 #5 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }
attributes #7 = { noreturn 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 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}
!15 = distinct !{!15, !13}
!16 = distinct !{!16, !13}


; 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_biguint" = type { %"class.sc_dt::sc_unsigned" }
%"class.sc_dt::sc_unsigned" = type { %"class.sc_dt::sc_value_base", i32, i32, i32, ptr }
%"class.sc_dt::sc_value_base" = type { ptr }
%"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 }

; 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 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 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_dt10sc_biguintILi128EEC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #0 align 2

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

; 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 #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN5sc_dt11sc_unsignedD2Ev(ptr noundef nonnull align 8 dereferenceable(32)) 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 #3 align 2

declare noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt18sc_unsigned_bitrefaSEb(ptr noundef nonnull align 8 dereferenceable(24), i1 noundef zeroext) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
define dso_local void @_Z7makekeyPc(ptr dead_on_unwind noalias writable sret(%"class.sc_dt::sc_biguint") align 8 %0, ptr nocapture noundef readonly %1) local_unnamed_addr #0 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", align 8
  call void @llvm.lifetime.start.p0(i64 384, ptr nonnull %3) #6
  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 %5 unwind label %.preheader81.preheader

5:                                                ; 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 %6 unwind label %.preheader81.preheader

6:                                                ; preds = %5
  %.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 %7 unwind label %.preheader81.preheader

7:                                                ; preds = %6
  %.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 %8 unwind label %.preheader81.preheader

8:                                                ; preds = %7
  %.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 %9 unwind label %.preheader81.preheader

9:                                                ; preds = %8
  %.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 %10 unwind label %.preheader81.preheader

10:                                               ; preds = %9
  %.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 %11 unwind label %.preheader81.preheader

11:                                               ; preds = %10
  %.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 %12 unwind label %.preheader81.preheader

12:                                               ; preds = %11
  %.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 %13 unwind label %.preheader81.preheader

13:                                               ; preds = %12
  %.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 %14 unwind label %.preheader81.preheader

14:                                               ; preds = %13
  %.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 %15 unwind label %.preheader81.preheader

15:                                               ; preds = %14
  %.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 %16 unwind label %.preheader81.preheader

16:                                               ; preds = %15
  %.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 %17 unwind label %.preheader81.preheader

17:                                               ; preds = %16
  %.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 %18 unwind label %.preheader81.preheader

18:                                               ; preds = %17
  %.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 %19 unwind label %.preheader81.preheader

19:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #6
  invoke void @_ZN5sc_dt7sc_uintILi8EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4)
          to label %20 unwind label %29

20:                                               ; preds = %19
  invoke void @_ZN5sc_dt10sc_biguintILi128EEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %0)
          to label %.preheader80 unwind label %31

.preheader80:                                     ; preds = %20, %58
  %indvars.iv = phi i64 [ %indvars.iv.next, %58 ], [ 0, %20 ]
  %21 = shl nuw nsw i64 %indvars.iv, 1
  %22 = getelementptr inbounds i8, ptr %1, i64 %21
  %23 = load i8, ptr %22, align 1, !tbaa !5
  %24 = sext i8 %23 to i32
  %25 = add i8 %23, -48
  %or.cond = icmp ult i8 %25, 10
  br i1 %or.cond, label %38, label %33

.preheader81.preheader:                           ; preds = %2, %5, %6, %7, %8, %9, %10, %11, %12, %13, %14, %15, %16, %17, %18
  %.ptr.lcssa.ph = phi ptr [ %.ptr.15, %18 ], [ %.ptr.14, %17 ], [ %.ptr.13, %16 ], [ %.ptr.12, %15 ], [ %.ptr.11, %14 ], [ %.ptr.10, %13 ], [ %.ptr.9, %12 ], [ %.ptr.8, %11 ], [ %.ptr.7, %10 ], [ %.ptr.6, %9 ], [ %.ptr.5, %8 ], [ %.ptr.4, %7 ], [ %.ptr.3, %6 ], [ %.ptr.2, %5 ], [ %.ptr.1, %2 ]
  %lpad.thr_comm = landingpad { ptr, i32 }
          cleanup
  br label %.preheader81

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

29:                                               ; preds = %19
  %30 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.loopexit

31:                                               ; preds = %20
  %32 = landingpad { ptr, i32 }
          cleanup
  br label %170

33:                                               ; preds = %.preheader80
  %34 = add i8 %23, -97
  %or.cond3 = icmp ult i8 %34, 6
  br i1 %or.cond3, label %38, label %35

35:                                               ; preds = %33
  %36 = add i8 %23, -65
  %or.cond5 = icmp ult i8 %36, 6
  br i1 %or.cond5, label %38, label %37

37:                                               ; preds = %35
  call void @abort() #7
  unreachable

38:                                               ; preds = %35, %33, %.preheader80
  %.sink108 = phi i32 [ -768, %.preheader80 ], [ -1392, %33 ], [ -880, %35 ]
  %39 = shl nuw nsw i32 %24, 4
  %40 = add nsw i32 %39, %.sink108
  %41 = or disjoint i64 %21, 1
  %42 = getelementptr inbounds i8, ptr %1, i64 %41
  %43 = load i8, ptr %42, align 1, !tbaa !5
  %44 = sext i8 %43 to i32
  %45 = add i8 %43, -48
  %or.cond7 = icmp ult i8 %45, 10
  br i1 %or.cond7, label %51, label %46

46:                                               ; preds = %38
  %47 = add i8 %43, -97
  %or.cond9 = icmp ult i8 %47, 6
  br i1 %or.cond9, label %51, label %48

48:                                               ; preds = %46
  %49 = add i8 %43, -65
  %or.cond11 = icmp ult i8 %49, 6
  br i1 %or.cond11, label %51, label %50

50:                                               ; preds = %48
  call void @abort() #7
  unreachable

51:                                               ; preds = %48, %46, %38
  %.sink = phi i32 [ -48, %38 ], [ -87, %46 ], [ -55, %48 ]
  %52 = add nsw i32 %.sink, %44
  %.160 = xor i32 %52, %40
  %53 = and i64 %indvars.iv, 3
  %54 = lshr i64 %indvars.iv, 2
  %55 = and i64 %54, 1073741823
  %56 = getelementptr inbounds [4 x [4 x %"class.sc_dt::sc_uint"]], ptr %3, i64 0, i64 %53, i64 %55
  %57 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt7sc_uintILi8EEaSEi(ptr noundef nonnull align 8 dereferenceable(24) %56, i32 noundef %.160)
          to label %58 unwind label %.loopexit.split-lp

58:                                               ; preds = %51
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 16
  br i1 %exitcond.not, label %.preheader, label %.preheader80, !llvm.loop !8

.loopexit78:                                      ; preds = %149, %145, %143, %141, %138, %134, %132, %130, %127, %123, %121, %119, %116, %112, %110, %108, %105, %101, %99, %97, %94, %90, %88, %86, %83, %79, %77, %75, %61, %67, %69, %72
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %59

.loopexit.split-lp:                               ; preds = %51
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %59

59:                                               ; preds = %.loopexit.split-lp, %.loopexit78
  %lpad.phi = phi { ptr, i32 } [ %lpad.loopexit, %.loopexit78 ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @_ZN5sc_dt11sc_unsignedD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %0) #6
  br label %170

.preheader:                                       ; preds = %58, %153
  %indvars.iv98 = phi i64 [ %indvars.iv.next99, %153 ], [ 0, %58 ]
  %60 = shl nuw nsw i64 %indvars.iv98, 5
  br label %61

61:                                               ; preds = %.preheader, %152
  %indvars.iv94 = phi i64 [ 0, %.preheader ], [ %indvars.iv.next95, %152 ]
  %62 = getelementptr inbounds [4 x [4 x %"class.sc_dt::sc_uint"]], ptr %3, i64 0, i64 %indvars.iv98, i64 %indvars.iv94
  %63 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt7sc_uintILi8EEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) %62)
  %64 = shl nuw nsw i64 %indvars.iv94, 3
  %65 = add nuw nsw i64 %64, %60
  %66 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt12sc_uint_baseixEi(ptr noundef nonnull align 8 dereferenceable(24) %4, i32 noundef 0)
          to label %67 unwind label %.loopexit78

67:                                               ; preds = %61
  %68 = invoke noundef i64 @_ZNK5sc_dt16sc_uint_bitref_rcvyEv(ptr noundef nonnull align 8 dereferenceable(24) %66)
          to label %69 unwind label %.loopexit78

69:                                               ; preds = %67
  %70 = trunc nuw nsw i64 %65 to i32
  %71 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt11sc_unsignedixEi(ptr noundef nonnull align 8 dereferenceable(32) %0, i32 noundef %70)
          to label %72 unwind label %.loopexit78

72:                                               ; preds = %69
  %73 = icmp ne i64 %68, 0
  %74 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt18sc_unsigned_bitrefaSEb(ptr noundef nonnull align 8 dereferenceable(24) %71, i1 noundef zeroext %73)
          to label %75 unwind label %.loopexit78

75:                                               ; preds = %72
  %76 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt12sc_uint_baseixEi(ptr noundef nonnull align 8 dereferenceable(24) %4, i32 noundef 1)
          to label %77 unwind label %.loopexit78

77:                                               ; preds = %75
  %78 = invoke noundef i64 @_ZNK5sc_dt16sc_uint_bitref_rcvyEv(ptr noundef nonnull align 8 dereferenceable(24) %76)
          to label %79 unwind label %.loopexit78

79:                                               ; preds = %77
  %80 = trunc i64 %65 to i32
  %81 = or disjoint i32 %80, 1
  %82 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt11sc_unsignedixEi(ptr noundef nonnull align 8 dereferenceable(32) %0, i32 noundef %81)
          to label %83 unwind label %.loopexit78

83:                                               ; preds = %79
  %84 = icmp ne i64 %78, 0
  %85 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt18sc_unsigned_bitrefaSEb(ptr noundef nonnull align 8 dereferenceable(24) %82, i1 noundef zeroext %84)
          to label %86 unwind label %.loopexit78

86:                                               ; preds = %83
  %87 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt12sc_uint_baseixEi(ptr noundef nonnull align 8 dereferenceable(24) %4, i32 noundef 2)
          to label %88 unwind label %.loopexit78

88:                                               ; preds = %86
  %89 = invoke noundef i64 @_ZNK5sc_dt16sc_uint_bitref_rcvyEv(ptr noundef nonnull align 8 dereferenceable(24) %87)
          to label %90 unwind label %.loopexit78

90:                                               ; preds = %88
  %91 = trunc i64 %65 to i32
  %92 = or disjoint i32 %91, 2
  %93 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt11sc_unsignedixEi(ptr noundef nonnull align 8 dereferenceable(32) %0, i32 noundef %92)
          to label %94 unwind label %.loopexit78

94:                                               ; preds = %90
  %95 = icmp ne i64 %89, 0
  %96 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt18sc_unsigned_bitrefaSEb(ptr noundef nonnull align 8 dereferenceable(24) %93, i1 noundef zeroext %95)
          to label %97 unwind label %.loopexit78

97:                                               ; preds = %94
  %98 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt12sc_uint_baseixEi(ptr noundef nonnull align 8 dereferenceable(24) %4, i32 noundef 3)
          to label %99 unwind label %.loopexit78

99:                                               ; preds = %97
  %100 = invoke noundef i64 @_ZNK5sc_dt16sc_uint_bitref_rcvyEv(ptr noundef nonnull align 8 dereferenceable(24) %98)
          to label %101 unwind label %.loopexit78

101:                                              ; preds = %99
  %102 = trunc i64 %65 to i32
  %103 = or disjoint i32 %102, 3
  %104 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt11sc_unsignedixEi(ptr noundef nonnull align 8 dereferenceable(32) %0, i32 noundef %103)
          to label %105 unwind label %.loopexit78

105:                                              ; preds = %101
  %106 = icmp ne i64 %100, 0
  %107 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt18sc_unsigned_bitrefaSEb(ptr noundef nonnull align 8 dereferenceable(24) %104, i1 noundef zeroext %106)
          to label %108 unwind label %.loopexit78

108:                                              ; preds = %105
  %109 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt12sc_uint_baseixEi(ptr noundef nonnull align 8 dereferenceable(24) %4, i32 noundef 4)
          to label %110 unwind label %.loopexit78

110:                                              ; preds = %108
  %111 = invoke noundef i64 @_ZNK5sc_dt16sc_uint_bitref_rcvyEv(ptr noundef nonnull align 8 dereferenceable(24) %109)
          to label %112 unwind label %.loopexit78

112:                                              ; preds = %110
  %113 = trunc i64 %65 to i32
  %114 = or disjoint i32 %113, 4
  %115 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt11sc_unsignedixEi(ptr noundef nonnull align 8 dereferenceable(32) %0, i32 noundef %114)
          to label %116 unwind label %.loopexit78

116:                                              ; preds = %112
  %117 = icmp ne i64 %111, 0
  %118 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt18sc_unsigned_bitrefaSEb(ptr noundef nonnull align 8 dereferenceable(24) %115, i1 noundef zeroext %117)
          to label %119 unwind label %.loopexit78

119:                                              ; preds = %116
  %120 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt12sc_uint_baseixEi(ptr noundef nonnull align 8 dereferenceable(24) %4, i32 noundef 5)
          to label %121 unwind label %.loopexit78

121:                                              ; preds = %119
  %122 = invoke noundef i64 @_ZNK5sc_dt16sc_uint_bitref_rcvyEv(ptr noundef nonnull align 8 dereferenceable(24) %120)
          to label %123 unwind label %.loopexit78

123:                                              ; preds = %121
  %124 = trunc i64 %65 to i32
  %125 = or disjoint i32 %124, 5
  %126 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt11sc_unsignedixEi(ptr noundef nonnull align 8 dereferenceable(32) %0, i32 noundef %125)
          to label %127 unwind label %.loopexit78

127:                                              ; preds = %123
  %128 = icmp ne i64 %122, 0
  %129 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt18sc_unsigned_bitrefaSEb(ptr noundef nonnull align 8 dereferenceable(24) %126, i1 noundef zeroext %128)
          to label %130 unwind label %.loopexit78

130:                                              ; preds = %127
  %131 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt12sc_uint_baseixEi(ptr noundef nonnull align 8 dereferenceable(24) %4, i32 noundef 6)
          to label %132 unwind label %.loopexit78

132:                                              ; preds = %130
  %133 = invoke noundef i64 @_ZNK5sc_dt16sc_uint_bitref_rcvyEv(ptr noundef nonnull align 8 dereferenceable(24) %131)
          to label %134 unwind label %.loopexit78

134:                                              ; preds = %132
  %135 = trunc i64 %65 to i32
  %136 = or disjoint i32 %135, 6
  %137 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt11sc_unsignedixEi(ptr noundef nonnull align 8 dereferenceable(32) %0, i32 noundef %136)
          to label %138 unwind label %.loopexit78

138:                                              ; preds = %134
  %139 = icmp ne i64 %133, 0
  %140 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt18sc_unsigned_bitrefaSEb(ptr noundef nonnull align 8 dereferenceable(24) %137, i1 noundef zeroext %139)
          to label %141 unwind label %.loopexit78

141:                                              ; preds = %138
  %142 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt12sc_uint_baseixEi(ptr noundef nonnull align 8 dereferenceable(24) %4, i32 noundef 7)
          to label %143 unwind label %.loopexit78

143:                                              ; preds = %141
  %144 = invoke noundef i64 @_ZNK5sc_dt16sc_uint_bitref_rcvyEv(ptr noundef nonnull align 8 dereferenceable(24) %142)
          to label %145 unwind label %.loopexit78

145:                                              ; preds = %143
  %146 = trunc i64 %65 to i32
  %147 = or disjoint i32 %146, 7
  %148 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt11sc_unsignedixEi(ptr noundef nonnull align 8 dereferenceable(32) %0, i32 noundef %147)
          to label %149 unwind label %.loopexit78

149:                                              ; preds = %145
  %150 = icmp ne i64 %144, 0
  %151 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt18sc_unsigned_bitrefaSEb(ptr noundef nonnull align 8 dereferenceable(24) %148, i1 noundef zeroext %150)
          to label %152 unwind label %.loopexit78

152:                                              ; preds = %149
  %indvars.iv.next95 = add nuw nsw i64 %indvars.iv94, 1
  %exitcond97.not = icmp eq i64 %indvars.iv.next95, 4
  br i1 %exitcond97.not, label %153, label %61, !llvm.loop !10

153:                                              ; preds = %152
  %indvars.iv.next99 = add nuw nsw i64 %indvars.iv98, 1
  %exitcond101.not = icmp eq i64 %indvars.iv.next99, 4
  br i1 %exitcond101.not, label %154, label %.preheader, !llvm.loop !11

154:                                              ; preds = %153
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #6
  %155 = getelementptr inbounds i8, ptr %3, i64 360
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %155) #6
  %156 = getelementptr inbounds i8, ptr %3, i64 336
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %156) #6
  %157 = getelementptr inbounds i8, ptr %3, i64 312
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %157) #6
  %158 = getelementptr inbounds i8, ptr %3, i64 288
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %158) #6
  %159 = getelementptr inbounds i8, ptr %3, i64 264
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %159) #6
  %160 = getelementptr inbounds i8, ptr %3, i64 240
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %160) #6
  %161 = getelementptr inbounds i8, ptr %3, i64 216
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %161) #6
  %162 = getelementptr inbounds i8, ptr %3, i64 192
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %162) #6
  %163 = getelementptr inbounds i8, ptr %3, i64 168
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %163) #6
  %164 = getelementptr inbounds i8, ptr %3, i64 144
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %164) #6
  %165 = getelementptr inbounds i8, ptr %3, i64 120
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %165) #6
  %166 = getelementptr inbounds i8, ptr %3, i64 96
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %166) #6
  %167 = getelementptr inbounds i8, ptr %3, i64 72
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %167) #6
  %168 = getelementptr inbounds i8, ptr %3, i64 48
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %168) #6
  %169 = getelementptr inbounds i8, ptr %3, i64 24
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %169) #6
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  call void @llvm.lifetime.end.p0(i64 384, ptr nonnull %3) #6
  ret void

170:                                              ; preds = %59, %31
  %.pn74 = phi { ptr, i32 } [ %lpad.phi, %59 ], [ %32, %31 ]
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  br label %.loopexit.loopexit

.loopexit.loopexit:                               ; preds = %170, %29
  %.pn74.pn = phi { ptr, i32 } [ %.pn74, %170 ], [ %30, %29 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #6
  %171 = getelementptr inbounds i8, ptr %3, i64 360
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %171) #6
  %172 = getelementptr inbounds i8, ptr %3, i64 336
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %172) #6
  %173 = getelementptr inbounds i8, ptr %3, i64 312
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %173) #6
  %174 = getelementptr inbounds i8, ptr %3, i64 288
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %174) #6
  %175 = getelementptr inbounds i8, ptr %3, i64 264
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %175) #6
  %176 = getelementptr inbounds i8, ptr %3, i64 240
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %176) #6
  %177 = getelementptr inbounds i8, ptr %3, i64 216
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %177) #6
  %178 = getelementptr inbounds i8, ptr %3, i64 192
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %178) #6
  %179 = getelementptr inbounds i8, ptr %3, i64 168
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %179) #6
  %180 = getelementptr inbounds i8, ptr %3, i64 144
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %180) #6
  %181 = getelementptr inbounds i8, ptr %3, i64 120
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %181) #6
  %182 = getelementptr inbounds i8, ptr %3, i64 96
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %182) #6
  %183 = getelementptr inbounds i8, ptr %3, i64 72
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %183) #6
  %184 = getelementptr inbounds i8, ptr %3, i64 48
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %184) #6
  %185 = getelementptr inbounds i8, ptr %3, i64 24
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %185) #6
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  br label %.loopexit

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

; Function Attrs: noreturn nounwind
declare void @abort() local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt7sc_uintILi8EEaSEi(ptr noundef nonnull align 8 dereferenceable(24), i32 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 = { 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 #4 = { "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 #5 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }
attributes #7 = { noreturn 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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = distinct !{!8, !9}
!9 = !{!"llvm.loop.mustprogress"}
!10 = distinct !{!10, !9}
!11 = distinct !{!11, !9}


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