; LLVM IR from gem5/gem5 :: ext/systemc/src/sysc/datatypes/fx/scfx_rep.ll (ZN5sc_dt8scfx_rep15multiply_by_tenEv)

; 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::scfx_mant" = type <{ ptr, i32, [4 x i8] }>
%"class.sc_dt::scfx_rep" = type <{ %"class.sc_dt::scfx_mant", i32, i32, i32, i32, i32, i8, [3 x i8] }>

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5sc_dt9scfx_mantC2Em(ptr noundef nonnull align 8 dereferenceable(12), i64 noundef) unnamed_addr #0 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN5sc_dt9scfx_mantD2Ev(ptr noundef nonnull align 8 dereferenceable(12)) unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN5sc_dt9scfx_mantixEi(ptr noundef nonnull align 8 dereferenceable(12), i32 noundef) #1 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5sc_dt8scfx_rep15multiply_by_tenEv(ptr noundef nonnull align 8 dereferenceable(37) %0) #3 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca %"class.sc_dt::scfx_mant", align 8
  %5 = alloca %"class.sc_dt::scfx_mant", align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %8 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #4
  %9 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %8, i32 0, i32 0
  %10 = call noundef i32 @_ZNK5sc_dt9scfx_mant4sizeEv(ptr noundef nonnull align 8 dereferenceable(12) %9)
  %11 = add nsw i32 %10, 1
  store i32 %11, ptr %3, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %4) #4
  %12 = load i32, ptr %3, align 4, !tbaa !9
  %13 = sext i32 %12 to i64
  call void @_ZN5sc_dt9scfx_mantC2Em(ptr noundef nonnull align 8 dereferenceable(12) %4, i64 noundef %13)
  call void @llvm.lifetime.start.p0(i64 16, ptr %5) #4
  %14 = load i32, ptr %3, align 4, !tbaa !9
  %15 = sext i32 %14 to i64
  invoke void @_ZN5sc_dt9scfx_mantC2Em(ptr noundef nonnull align 8 dereferenceable(12) %5, i64 noundef %15)
          to label %16 unwind label %78

16:                                               ; preds = %1
  %17 = load i32, ptr %3, align 4, !tbaa !9
  %18 = add nsw i32 %17, -1
  store i32 %18, ptr %3, align 4, !tbaa !9
  %19 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %8, i32 0, i32 0
  %20 = load i32, ptr %3, align 4, !tbaa !9
  %21 = sub nsw i32 %20, 1
  %22 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN5sc_dt9scfx_mantixEi(ptr noundef nonnull align 8 dereferenceable(12) %19, i32 noundef %21)
          to label %23 unwind label %82

23:                                               ; preds = %16
  %24 = load i32, ptr %22, align 4, !tbaa !9
  %25 = lshr i32 %24, 29
  %26 = load i32, ptr %3, align 4, !tbaa !9
  %27 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN5sc_dt9scfx_mantixEi(ptr noundef nonnull align 8 dereferenceable(12) %4, i32 noundef %26)
          to label %28 unwind label %82

28:                                               ; preds = %23
  store i32 %25, ptr %27, align 4, !tbaa !9
  %29 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %8, i32 0, i32 0
  %30 = load i32, ptr %3, align 4, !tbaa !9
  %31 = sub nsw i32 %30, 1
  %32 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN5sc_dt9scfx_mantixEi(ptr noundef nonnull align 8 dereferenceable(12) %29, i32 noundef %31)
          to label %33 unwind label %82

33:                                               ; preds = %28
  %34 = load i32, ptr %32, align 4, !tbaa !9
  %35 = lshr i32 %34, 31
  %36 = load i32, ptr %3, align 4, !tbaa !9
  %37 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN5sc_dt9scfx_mantixEi(ptr noundef nonnull align 8 dereferenceable(12) %5, i32 noundef %36)
          to label %38 unwind label %82

38:                                               ; preds = %33
  store i32 %35, ptr %37, align 4, !tbaa !9
  br label %39

39:                                               ; preds = %77, %38
  %40 = load i32, ptr %3, align 4, !tbaa !9
  %41 = add nsw i32 %40, -1
  store i32 %41, ptr %3, align 4, !tbaa !9
  %42 = icmp ne i32 %41, 0
  br i1 %42, label %43, label %86

43:                                               ; preds = %39
  %44 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %8, i32 0, i32 0
  %45 = load i32, ptr %3, align 4, !tbaa !9
  %46 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN5sc_dt9scfx_mantixEi(ptr noundef nonnull align 8 dereferenceable(12) %44, i32 noundef %45)
          to label %47 unwind label %82

47:                                               ; preds = %43
  %48 = load i32, ptr %46, align 4, !tbaa !9
  %49 = shl i32 %48, 3
  %50 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %8, i32 0, i32 0
  %51 = load i32, ptr %3, align 4, !tbaa !9
  %52 = sub nsw i32 %51, 1
  %53 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN5sc_dt9scfx_mantixEi(ptr noundef nonnull align 8 dereferenceable(12) %50, i32 noundef %52)
          to label %54 unwind label %82

54:                                               ; preds = %47
  %55 = load i32, ptr %53, align 4, !tbaa !9
  %56 = lshr i32 %55, 29
  %57 = or i32 %49, %56
  %58 = load i32, ptr %3, align 4, !tbaa !9
  %59 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN5sc_dt9scfx_mantixEi(ptr noundef nonnull align 8 dereferenceable(12) %4, i32 noundef %58)
          to label %60 unwind label %82

60:                                               ; preds = %54
  store i32 %57, ptr %59, align 4, !tbaa !9
  %61 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %8, i32 0, i32 0
  %62 = load i32, ptr %3, align 4, !tbaa !9
  %63 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN5sc_dt9scfx_mantixEi(ptr noundef nonnull align 8 dereferenceable(12) %61, i32 noundef %62)
          to label %64 unwind label %82

64:                                               ; preds = %60
  %65 = load i32, ptr %63, align 4, !tbaa !9
  %66 = shl i32 %65, 1
  %67 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %8, i32 0, i32 0
  %68 = load i32, ptr %3, align 4, !tbaa !9
  %69 = sub nsw i32 %68, 1
  %70 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN5sc_dt9scfx_mantixEi(ptr noundef nonnull align 8 dereferenceable(12) %67, i32 noundef %69)
          to label %71 unwind label %82

71:                                               ; preds = %64
  %72 = load i32, ptr %70, align 4, !tbaa !9
  %73 = lshr i32 %72, 31
  %74 = or i32 %66, %73
  %75 = load i32, ptr %3, align 4, !tbaa !9
  %76 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN5sc_dt9scfx_mantixEi(ptr noundef nonnull align 8 dereferenceable(12) %5, i32 noundef %75)
          to label %77 unwind label %82

77:                                               ; preds = %71
  store i32 %74, ptr %76, align 4, !tbaa !9
  br label %39, !llvm.loop !11

78:                                               ; preds = %1
  %79 = landingpad { ptr, i32 }
          cleanup
  %80 = extractvalue { ptr, i32 } %79, 0
  store ptr %80, ptr %6, align 8
  %81 = extractvalue { ptr, i32 } %79, 1
  store i32 %81, ptr %7, align 4
  br label %107

82:                                               ; preds = %103, %100, %96, %93, %89, %86, %71, %64, %60, %54, %47, %43, %33, %28, %23, %16
  %83 = landingpad { ptr, i32 }
          cleanup
  %84 = extractvalue { ptr, i32 } %83, 0
  store ptr %84, ptr %6, align 8
  %85 = extractvalue { ptr, i32 } %83, 1
  store i32 %85, ptr %7, align 4
  call void @_ZN5sc_dt9scfx_mantD2Ev(ptr noundef nonnull align 8 dereferenceable(12) %5) #4
  br label %107

86:                                               ; preds = %39
  %87 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %8, i32 0, i32 0
  %88 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN5sc_dt9scfx_mantixEi(ptr noundef nonnull align 8 dereferenceable(12) %87, i32 noundef 0)
          to label %89 unwind label %82

89:                                               ; preds = %86
  %90 = load i32, ptr %88, align 4, !tbaa !9
  %91 = shl i32 %90, 3
  %92 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN5sc_dt9scfx_mantixEi(ptr noundef nonnull align 8 dereferenceable(12) %4, i32 noundef 0)
          to label %93 unwind label %82

93:                                               ; preds = %89
  store i32 %91, ptr %92, align 4, !tbaa !9
  %94 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %8, i32 0, i32 0
  %95 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN5sc_dt9scfx_mantixEi(ptr noundef nonnull align 8 dereferenceable(12) %94, i32 noundef 0)
          to label %96 unwind label %82

96:                                               ; preds = %93
  %97 = load i32, ptr %95, align 4, !tbaa !9
  %98 = shl i32 %97, 1
  %99 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN5sc_dt9scfx_mantixEi(ptr noundef nonnull align 8 dereferenceable(12) %5, i32 noundef 0)
          to label %100 unwind label %82

100:                                              ; preds = %96
  store i32 %98, ptr %99, align 4, !tbaa !9
  %101 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %8, i32 0, i32 0
  %102 = invoke noundef i32 @_ZNK5sc_dt9scfx_mant4sizeEv(ptr noundef nonnull align 8 dereferenceable(12) %101)
          to label %103 unwind label %82

103:                                              ; preds = %100
  %104 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %8, i32 0, i32 0
  %105 = invoke noundef i32 @_ZN5sc_dtL9add_mantsEiRNS_9scfx_mantERKS0_S3_(i32 noundef %102, ptr noundef nonnull align 8 dereferenceable(12) %104, ptr noundef nonnull align 8 dereferenceable(12) %4, ptr noundef nonnull align 8 dereferenceable(12) %5)
          to label %106 unwind label %82

106:                                              ; preds = %103
  call void @_ZN5sc_dt9scfx_mantD2Ev(ptr noundef nonnull align 8 dereferenceable(12) %5) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %5) #4
  call void @_ZN5sc_dt9scfx_mantD2Ev(ptr noundef nonnull align 8 dereferenceable(12) %4) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #4
  ret void

107:                                              ; preds = %82, %78
  call void @llvm.lifetime.end.p0(i64 16, ptr %5) #4
  call void @_ZN5sc_dt9scfx_mantD2Ev(ptr noundef nonnull align 8 dereferenceable(12) %4) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #4
  br label %108

108:                                              ; preds = %107
  %109 = load ptr, ptr %6, align 8
  %110 = load i32, ptr %7, align 4
  %111 = insertvalue { ptr, i32 } poison, ptr %109, 0
  %112 = insertvalue { ptr, i32 } %111, i32 %110, 1
  resume { ptr, i32 } %112
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK5sc_dt9scfx_mant4sizeEv(ptr noundef nonnull align 8 dereferenceable(12)) #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i32 @_ZN5sc_dtL9add_mantsEiRNS_9scfx_mantERKS0_S3_(i32 noundef, ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 8 dereferenceable(12)) #1

attributes #0 = { 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 #1 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 = { 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 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.sc_dt::scfx_mant" = type <{ ptr, i32, [4 x i8] }>

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5sc_dt9scfx_mantC2Em(ptr noundef nonnull align 8 dereferenceable(12), i64 noundef) unnamed_addr #0 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN5sc_dt9scfx_mantD2Ev(ptr noundef nonnull align 8 dereferenceable(12)) unnamed_addr #1 align 2

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5sc_dt8scfx_rep15multiply_by_tenEv(ptr noundef nonnull align 8 dereferenceable(37) %0) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.sc_dt::scfx_mant", align 8
  %3 = alloca %"class.sc_dt::scfx_mant", align 8
  %4 = tail call noundef i32 @_ZNK5sc_dt9scfx_mant4sizeEv(ptr noundef nonnull align 8 dereferenceable(12) %0)
  %5 = add nsw i32 %4, 1
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #5
  %6 = sext i32 %5 to i64
  call void @_ZN5sc_dt9scfx_mantC2Em(ptr noundef nonnull align 8 dereferenceable(12) %2, i64 noundef %6)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #5
  invoke void @_ZN5sc_dt9scfx_mantC2Em(ptr noundef nonnull align 8 dereferenceable(12) %3, i64 noundef %6)
          to label %7 unwind label %32

7:                                                ; preds = %1
  %8 = add nsw i32 %4, -1
  %9 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5sc_dt9scfx_mantixEi(ptr noundef nonnull align 8 dereferenceable(12) %0, i32 noundef %8)
  %10 = load i32, ptr %9, align 4, !tbaa !5
  %11 = lshr i32 %10, 29
  %12 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5sc_dt9scfx_mantixEi(ptr noundef nonnull align 8 dereferenceable(12) %2, i32 noundef %4)
  store i32 %11, ptr %12, align 4, !tbaa !5
  %13 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5sc_dt9scfx_mantixEi(ptr noundef nonnull align 8 dereferenceable(12) %0, i32 noundef %8)
  %14 = load i32, ptr %13, align 4, !tbaa !5
  %15 = lshr i32 %14, 31
  %16 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5sc_dt9scfx_mantixEi(ptr noundef nonnull align 8 dereferenceable(12) %3, i32 noundef %4)
  store i32 %15, ptr %16, align 4, !tbaa !5
  %.not17 = icmp eq i32 %8, 0
  br i1 %.not17, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %7, %.lr.ph
  %17 = phi i32 [ %31, %.lr.ph ], [ %8, %7 ]
  %.018 = phi i32 [ %17, %.lr.ph ], [ %4, %7 ]
  %18 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5sc_dt9scfx_mantixEi(ptr noundef nonnull align 8 dereferenceable(12) %0, i32 noundef %17)
  %19 = load i32, ptr %18, align 4, !tbaa !5
  %20 = add nsw i32 %.018, -2
  %21 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5sc_dt9scfx_mantixEi(ptr noundef nonnull align 8 dereferenceable(12) %0, i32 noundef %20)
  %22 = load i32, ptr %21, align 4, !tbaa !5
  %23 = call i32 @llvm.fshl.i32(i32 %19, i32 %22, i32 3)
  %24 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5sc_dt9scfx_mantixEi(ptr noundef nonnull align 8 dereferenceable(12) %2, i32 noundef %17)
  store i32 %23, ptr %24, align 4, !tbaa !5
  %25 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5sc_dt9scfx_mantixEi(ptr noundef nonnull align 8 dereferenceable(12) %0, i32 noundef %17)
  %26 = load i32, ptr %25, align 4, !tbaa !5
  %27 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5sc_dt9scfx_mantixEi(ptr noundef nonnull align 8 dereferenceable(12) %0, i32 noundef %20)
  %28 = load i32, ptr %27, align 4, !tbaa !5
  %29 = call i32 @llvm.fshl.i32(i32 %26, i32 %28, i32 1)
  %30 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5sc_dt9scfx_mantixEi(ptr noundef nonnull align 8 dereferenceable(12) %3, i32 noundef %17)
  store i32 %29, ptr %30, align 4, !tbaa !5
  %31 = add nsw i32 %17, -1
  %.not = icmp eq i32 %31, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph, !llvm.loop !9

32:                                               ; preds = %1
  %33 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #5
  call void @_ZN5sc_dt9scfx_mantD2Ev(ptr noundef nonnull align 8 dereferenceable(12) %2) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #5
  resume { ptr, i32 } %33

._crit_edge:                                      ; preds = %.lr.ph, %7
  %34 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5sc_dt9scfx_mantixEi(ptr noundef nonnull align 8 dereferenceable(12) %0, i32 noundef 0)
  %35 = load i32, ptr %34, align 4, !tbaa !5
  %36 = shl i32 %35, 3
  %37 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5sc_dt9scfx_mantixEi(ptr noundef nonnull align 8 dereferenceable(12) %2, i32 noundef 0)
  store i32 %36, ptr %37, align 4, !tbaa !5
  %38 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5sc_dt9scfx_mantixEi(ptr noundef nonnull align 8 dereferenceable(12) %0, i32 noundef 0)
  %39 = load i32, ptr %38, align 4, !tbaa !5
  %40 = shl i32 %39, 1
  %41 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5sc_dt9scfx_mantixEi(ptr noundef nonnull align 8 dereferenceable(12) %3, i32 noundef 0)
  store i32 %40, ptr %41, align 4, !tbaa !5
  %42 = call noundef i32 @_ZNK5sc_dt9scfx_mant4sizeEv(ptr noundef nonnull align 8 dereferenceable(12) %0)
  %43 = call noundef i32 @_ZN5sc_dtL9add_mantsEiRNS_9scfx_mantERKS0_S3_(i32 noundef %42, ptr noundef nonnull align 8 dereferenceable(12) %0, ptr noundef nonnull align 8 dereferenceable(12) %2, ptr noundef nonnull align 8 dereferenceable(12) %3)
  call void @_ZN5sc_dt9scfx_mantD2Ev(ptr noundef nonnull align 8 dereferenceable(12) %3) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #5
  call void @_ZN5sc_dt9scfx_mantD2Ev(ptr noundef nonnull align 8 dereferenceable(12) %2) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #5
  ret void
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK5sc_dt9scfx_mant4sizeEv(ptr noundef nonnull align 8 dereferenceable(12)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i32 @_ZN5sc_dtL9add_mantsEiRNS_9scfx_mantERKS0_S3_(i32 noundef, ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 8 dereferenceable(12)) local_unnamed_addr #1

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.fshl.i32(i32, i32, i32) #4

attributes #0 = { 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 #1 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}


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