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

; 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_ieee_double" = type { %"union.sc_dt::ieee_double" }
%"union.sc_dt::ieee_double" = type { double }
%"class.sc_dt::scfx_rep" = type <{ %"class.sc_dt::scfx_mant", i32, i32, i32, i32, i32, i8, [3 x i8] }>
%"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 uwtable
declare dso_local void @_ZN5sc_dt9scfx_mant5clearEv(ptr noundef nonnull align 8 dereferenceable(12)) #0 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: mustprogress uwtable
define dso_local void @_ZN5sc_dt8scfx_repC2Ed(ptr noundef nonnull align 8 dereferenceable(37) %0, double noundef %1) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca double, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca %"class.sc_dt::scfx_ieee_double", align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store double %1, ptr %4, align 8, !tbaa !9
  %8 = load ptr, ptr %3, align 8
  %9 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %8, i32 0, i32 0
  call void @_ZN5sc_dt9scfx_mantC2Em(ptr noundef nonnull align 8 dereferenceable(12) %9, i64 noundef 4)
  %10 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %8, i32 0, i32 1
  store i32 0, ptr %10, align 8, !tbaa !11
  %11 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %8, i32 0, i32 2
  store i32 0, ptr %11, align 4, !tbaa !17
  %12 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %8, i32 0, i32 3
  store i32 0, ptr %12, align 8, !tbaa !18
  %13 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %8, i32 0, i32 4
  store i32 0, ptr %13, align 4, !tbaa !19
  %14 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %8, i32 0, i32 5
  store i32 0, ptr %14, align 8, !tbaa !20
  %15 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %8, i32 0, i32 6
  store i8 0, ptr %15, align 4, !tbaa !21
  %16 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %8, i32 0, i32 0
  invoke void @_ZN5sc_dt9scfx_mant5clearEv(ptr noundef nonnull align 8 dereferenceable(12) %16)
          to label %17 unwind label %30

17:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  %18 = load double, ptr %4, align 8, !tbaa !9
  invoke void @_ZN5sc_dt16scfx_ieee_doubleC2Ed(ptr noundef nonnull align 8 dereferenceable(8) %7, double noundef %18)
          to label %19 unwind label %34

19:                                               ; preds = %17
  %20 = invoke noundef i32 @_ZNK5sc_dt16scfx_ieee_double8negativeEv(ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %21 unwind label %34

21:                                               ; preds = %19
  %22 = icmp ne i32 %20, 0
  %23 = zext i1 %22 to i64
  %24 = select i1 %22, i32 -1, i32 1
  %25 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %8, i32 0, i32 2
  store i32 %24, ptr %25, align 4, !tbaa !17
  %26 = invoke noundef zeroext i1 @_ZNK5sc_dt16scfx_ieee_double6is_nanEv(ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %27 unwind label %34

27:                                               ; preds = %21
  br i1 %26, label %28, label %38

28:                                               ; preds = %27
  %29 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %8, i32 0, i32 3
  store i32 2, ptr %29, align 8, !tbaa !18
  br label %84

30:                                               ; preds = %2
  %31 = landingpad { ptr, i32 }
          cleanup
  %32 = extractvalue { ptr, i32 } %31, 0
  store ptr %32, ptr %5, align 8
  %33 = extractvalue { ptr, i32 } %31, 1
  store i32 %33, ptr %6, align 4
  br label %85

34:                                               ; preds = %78, %76, %72, %70, %67, %65, %62, %58, %56, %53, %51, %48, %46, %43, %38, %21, %19, %17
  %35 = landingpad { ptr, i32 }
          cleanup
  %36 = extractvalue { ptr, i32 } %35, 0
  store ptr %36, ptr %5, align 8
  %37 = extractvalue { ptr, i32 } %35, 1
  store i32 %37, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  br label %85

38:                                               ; preds = %27
  %39 = invoke noundef zeroext i1 @_ZNK5sc_dt16scfx_ieee_double6is_infEv(ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %40 unwind label %34

40:                                               ; preds = %38
  br i1 %39, label %41, label %43

41:                                               ; preds = %40
  %42 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %8, i32 0, i32 3
  store i32 1, ptr %42, align 8, !tbaa !18
  br label %83

43:                                               ; preds = %40
  %44 = invoke noundef zeroext i1 @_ZNK5sc_dt16scfx_ieee_double12is_subnormalEv(ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %45 unwind label %34

45:                                               ; preds = %43
  br i1 %44, label %46, label %62

46:                                               ; preds = %45
  %47 = invoke noundef i32 @_ZNK5sc_dt16scfx_ieee_double9mantissa1Ev(ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %48 unwind label %34

48:                                               ; preds = %46
  %49 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %8, i32 0, i32 0
  %50 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN5sc_dt9scfx_mantixEi(ptr noundef nonnull align 8 dereferenceable(12) %49, i32 noundef 0)
          to label %51 unwind label %34

51:                                               ; preds = %48
  store i32 %47, ptr %50, align 4, !tbaa !22
  %52 = invoke noundef i32 @_ZNK5sc_dt16scfx_ieee_double9mantissa0Ev(ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %53 unwind label %34

53:                                               ; preds = %51
  %54 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %8, i32 0, i32 0
  %55 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN5sc_dt9scfx_mantixEi(ptr noundef nonnull align 8 dereferenceable(12) %54, i32 noundef 1)
          to label %56 unwind label %34

56:                                               ; preds = %53
  store i32 %52, ptr %55, align 4, !tbaa !22
  %57 = invoke noundef i32 @_ZNK5sc_dt16scfx_ieee_double8exponentEv(ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %58 unwind label %34

58:                                               ; preds = %56
  %59 = add nsw i32 %57, 1
  %60 = sub i32 %59, 52
  invoke void @_ZN5sc_dt8scfx_rep9normalizeEi(ptr noundef nonnull align 8 dereferenceable(37) %8, i32 noundef %60)
          to label %61 unwind label %34

61:                                               ; preds = %58
  br label %82

62:                                               ; preds = %45
  %63 = invoke noundef zeroext i1 @_ZNK5sc_dt16scfx_ieee_double9is_normalEv(ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %64 unwind label %34

64:                                               ; preds = %62
  br i1 %63, label %65, label %81

65:                                               ; preds = %64
  %66 = invoke noundef i32 @_ZNK5sc_dt16scfx_ieee_double9mantissa1Ev(ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %67 unwind label %34

67:                                               ; preds = %65
  %68 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %8, i32 0, i32 0
  %69 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN5sc_dt9scfx_mantixEi(ptr noundef nonnull align 8 dereferenceable(12) %68, i32 noundef 0)
          to label %70 unwind label %34

70:                                               ; preds = %67
  store i32 %66, ptr %69, align 4, !tbaa !22
  %71 = invoke noundef i32 @_ZNK5sc_dt16scfx_ieee_double9mantissa0Ev(ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %72 unwind label %34

72:                                               ; preds = %70
  %73 = or i32 %71, 1048576
  %74 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %8, i32 0, i32 0
  %75 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN5sc_dt9scfx_mantixEi(ptr noundef nonnull align 8 dereferenceable(12) %74, i32 noundef 1)
          to label %76 unwind label %34

76:                                               ; preds = %72
  store i32 %73, ptr %75, align 4, !tbaa !22
  %77 = invoke noundef i32 @_ZNK5sc_dt16scfx_ieee_double8exponentEv(ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %78 unwind label %34

78:                                               ; preds = %76
  %79 = sub i32 %77, 52
  invoke void @_ZN5sc_dt8scfx_rep9normalizeEi(ptr noundef nonnull align 8 dereferenceable(37) %8, i32 noundef %79)
          to label %80 unwind label %34

80:                                               ; preds = %78
  br label %81

81:                                               ; preds = %80, %64
  br label %82

82:                                               ; preds = %81, %61
  br label %83

83:                                               ; preds = %82, %41
  br label %84

84:                                               ; preds = %83, %28
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  ret void

85:                                               ; preds = %34, %30
  call void @_ZN5sc_dt9scfx_mantD2Ev(ptr noundef nonnull align 8 dereferenceable(12) %9) #4
  br label %86

86:                                               ; preds = %85
  %87 = load ptr, ptr %5, align 8
  %88 = load i32, ptr %6, align 4
  %89 = insertvalue { ptr, i32 } poison, ptr %87, 0
  %90 = insertvalue { ptr, i32 } %89, i32 %88, 1
  resume { ptr, i32 } %90
}

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK5sc_dt16scfx_ieee_double6is_nanEv(ptr noundef nonnull align 8 dereferenceable(8)) #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK5sc_dt16scfx_ieee_double6is_infEv(ptr noundef nonnull align 8 dereferenceable(8)) #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK5sc_dt16scfx_ieee_double12is_subnormalEv(ptr noundef nonnull align 8 dereferenceable(8)) #0 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5sc_dt8scfx_rep9normalizeEi(ptr noundef nonnull align 8 dereferenceable(37), i32 noundef) #2 align 2

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

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

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

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 uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = !{!"double", !7, i64 0}
!11 = !{!12, !14, i64 16}
!12 = !{!"_ZTSN5sc_dt8scfx_repE", !13, i64 0, !14, i64 16, !14, i64 20, !15, i64 24, !14, i64 28, !14, i64 32, !16, i64 36}
!13 = !{!"_ZTSN5sc_dt9scfx_mantE", !6, i64 0, !14, i64 8}
!14 = !{!"int", !7, i64 0}
!15 = !{!"_ZTSN5sc_dt8scfx_rep5stateE", !7, i64 0}
!16 = !{!"bool", !7, i64 0}
!17 = !{!12, !14, i64 20}
!18 = !{!12, !15, i64 24}
!19 = !{!12, !14, i64 28}
!20 = !{!12, !14, i64 32}
!21 = !{!12, !16, i64 36}
!22 = !{!14, !14, i64 0}


; 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_ieee_double" = type { %"union.sc_dt::ieee_double" }
%"union.sc_dt::ieee_double" = type { double }

; 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 uwtable
declare dso_local void @_ZN5sc_dt9scfx_mant5clearEv(ptr noundef nonnull align 8 dereferenceable(12)) local_unnamed_addr #0 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 uwtable
define dso_local void @_ZN5sc_dt8scfx_repC2Ed(ptr noundef nonnull align 8 dereferenceable(37) %0, double noundef %1) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.sc_dt::scfx_ieee_double", align 8
  tail call void @_ZN5sc_dt9scfx_mantC2Em(ptr noundef nonnull align 8 dereferenceable(12) %0, i64 noundef 4)
  %4 = getelementptr inbounds i8, ptr %0, i64 16
  %5 = getelementptr inbounds i8, ptr %0, i64 24
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(21) %4, i8 0, i64 21, i1 false)
  invoke void @_ZN5sc_dt9scfx_mant5clearEv(ptr noundef nonnull align 8 dereferenceable(12) %0)
          to label %6 unwind label %12

6:                                                ; preds = %2
  %7 = getelementptr inbounds i8, ptr %0, i64 20
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #5
  call void @_ZN5sc_dt16scfx_ieee_doubleC2Ed(ptr noundef nonnull align 8 dereferenceable(8) %3, double noundef %1)
  %8 = call noundef i32 @_ZNK5sc_dt16scfx_ieee_double8negativeEv(ptr noundef nonnull align 8 dereferenceable(8) %3)
  %.not = icmp eq i32 %8, 0
  %9 = select i1 %.not, i32 1, i32 -1
  store i32 %9, ptr %7, align 4, !tbaa !5
  %10 = invoke noundef zeroext i1 @_ZNK5sc_dt16scfx_ieee_double6is_nanEv(ptr noundef nonnull align 8 dereferenceable(8) %3)
          to label %11 unwind label %14

11:                                               ; preds = %6
  br i1 %10, label %.sink.split, label %16

12:                                               ; preds = %2
  %13 = landingpad { ptr, i32 }
          cleanup
  br label %37

14:                                               ; preds = %.invoke, %19, %16, %6
  %15 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  br label %37

16:                                               ; preds = %11
  %17 = invoke noundef zeroext i1 @_ZNK5sc_dt16scfx_ieee_double6is_infEv(ptr noundef nonnull align 8 dereferenceable(8) %3)
          to label %18 unwind label %14

18:                                               ; preds = %16
  br i1 %17, label %.sink.split, label %19

19:                                               ; preds = %18
  %20 = invoke noundef zeroext i1 @_ZNK5sc_dt16scfx_ieee_double12is_subnormalEv(ptr noundef nonnull align 8 dereferenceable(8) %3)
          to label %21 unwind label %14

21:                                               ; preds = %19
  br i1 %20, label %22, label %26

22:                                               ; preds = %21
  %23 = call noundef i32 @_ZNK5sc_dt16scfx_ieee_double9mantissa1Ev(ptr noundef nonnull align 8 dereferenceable(8) %3)
  %24 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5sc_dt9scfx_mantixEi(ptr noundef nonnull align 8 dereferenceable(12) %0, i32 noundef 0)
  store i32 %23, ptr %24, align 4, !tbaa !14
  %25 = call noundef i32 @_ZNK5sc_dt16scfx_ieee_double9mantissa0Ev(ptr noundef nonnull align 8 dereferenceable(8) %3)
  br label %.invoke

26:                                               ; preds = %21
  %27 = call noundef zeroext i1 @_ZNK5sc_dt16scfx_ieee_double9is_normalEv(ptr noundef nonnull align 8 dereferenceable(8) %3)
  br i1 %27, label %28, label %36

28:                                               ; preds = %26
  %29 = call noundef i32 @_ZNK5sc_dt16scfx_ieee_double9mantissa1Ev(ptr noundef nonnull align 8 dereferenceable(8) %3)
  %30 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5sc_dt9scfx_mantixEi(ptr noundef nonnull align 8 dereferenceable(12) %0, i32 noundef 0)
  store i32 %29, ptr %30, align 4, !tbaa !14
  %31 = call noundef i32 @_ZNK5sc_dt16scfx_ieee_double9mantissa0Ev(ptr noundef nonnull align 8 dereferenceable(8) %3)
  %32 = or i32 %31, 1048576
  br label %.invoke

.invoke:                                          ; preds = %22, %28
  %.sink = phi i32 [ %25, %22 ], [ %32, %28 ]
  %.sink5 = phi i32 [ -51, %22 ], [ -52, %28 ]
  %33 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5sc_dt9scfx_mantixEi(ptr noundef nonnull align 8 dereferenceable(12) %0, i32 noundef 1)
  store i32 %.sink, ptr %33, align 4, !tbaa !14
  %34 = call noundef i32 @_ZNK5sc_dt16scfx_ieee_double8exponentEv(ptr noundef nonnull align 8 dereferenceable(8) %3)
  %35 = add i32 %34, %.sink5
  invoke void @_ZN5sc_dt8scfx_rep9normalizeEi(ptr noundef nonnull align 8 dereferenceable(37) %0, i32 noundef %35)
          to label %36 unwind label %14

.sink.split:                                      ; preds = %18, %11
  %.sink7 = phi i32 [ 2, %11 ], [ 1, %18 ]
  store i32 %.sink7, ptr %5, align 8, !tbaa !15
  br label %36

36:                                               ; preds = %.sink.split, %.invoke, %26
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  ret void

37:                                               ; preds = %14, %12
  %.pn = phi { ptr, i32 } [ %15, %14 ], [ %13, %12 ]
  call void @_ZN5sc_dt9scfx_mantD2Ev(ptr noundef nonnull align 8 dereferenceable(12) %0) #5
  resume { ptr, i32 } %.pn
}

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK5sc_dt16scfx_ieee_double6is_nanEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK5sc_dt16scfx_ieee_double6is_infEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK5sc_dt16scfx_ieee_double12is_subnormalEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5sc_dt8scfx_rep9normalizeEi(ptr noundef nonnull align 8 dereferenceable(37), i32 noundef) local_unnamed_addr #2 align 2

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

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #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 uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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, !11, i64 20}
!6 = !{!"_ZTSN5sc_dt8scfx_repE", !7, i64 0, !11, i64 16, !11, i64 20, !12, i64 24, !11, i64 28, !11, i64 32, !13, i64 36}
!7 = !{!"_ZTSN5sc_dt9scfx_mantE", !8, i64 0, !11, i64 8}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"int", !9, i64 0}
!12 = !{!"_ZTSN5sc_dt8scfx_rep5stateE", !9, i64 0}
!13 = !{!"bool", !9, i64 0}
!14 = !{!11, !11, i64 0}
!15 = !{!6, !12, i64 24}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,MemCpyOptPass,SROAPass,SimplifyCFGPass,TailCallElimPass