; LLVM IR from gem5/gem5 :: ext/systemc/src/sysc/datatypes/fx (sc_fxval)

; 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_string" = type { i64, i64, ptr }
%"class.sc_dt::scfx_ieee_double" = type { %"union.sc_dt::ieee_double" }
%"union.sc_dt::ieee_double" = type { double }

@__dso_handle = external hidden global i8
@_ZZN5sc_dt9to_stringERKNS_16scfx_ieee_doubleENS_9sc_numrepEiNS_6sc_fmtEPKNS_11scfx_paramsEE1s = external hidden global %"class.sc_dt::scfx_string", align 8
@_ZGVZN5sc_dt9to_stringERKNS_16scfx_ieee_doubleENS_9sc_numrepEiNS_6sc_fmtEPKNS_11scfx_paramsEE1s = external hidden global i64, align 8
@.str.4 = external hidden unnamed_addr constant [9 x i8], align 1

; Function Attrs: nounwind
declare i32 @__cxa_atexit(ptr, ptr, ptr) #0

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN5sc_dt9to_stringERKNS_16scfx_ieee_doubleENS_9sc_numrepEiNS_6sc_fmtEPKNS_11scfx_paramsE(ptr noundef nonnull align 8 dereferenceable(8) %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, ptr noundef %4) #1 personality ptr @__gxx_personality_v0 {
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca %"class.sc_dt::scfx_ieee_double", align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store i32 %1, ptr %7, align 4, !tbaa !9
  store i32 %2, ptr %8, align 4, !tbaa !11
  store i32 %3, ptr %9, align 4, !tbaa !13
  store ptr %4, ptr %10, align 8, !tbaa !5
  %14 = load atomic i8, ptr @_ZGVZN5sc_dt9to_stringERKNS_16scfx_ieee_doubleENS_9sc_numrepEiNS_6sc_fmtEPKNS_11scfx_paramsEE1s acquire, align 8
  %15 = icmp eq i8 %14, 0
  br i1 %15, label %16, label %22, !prof !15

16:                                               ; preds = %5
  %17 = call i32 @__cxa_guard_acquire(ptr @_ZGVZN5sc_dt9to_stringERKNS_16scfx_ieee_doubleENS_9sc_numrepEiNS_6sc_fmtEPKNS_11scfx_paramsEE1s) #0
  %18 = icmp ne i32 %17, 0
  br i1 %18, label %19, label %22

19:                                               ; preds = %16
  invoke void @_ZN5sc_dt11scfx_stringC2Ev(ptr noundef nonnull align 8 dereferenceable(24) @_ZZN5sc_dt9to_stringERKNS_16scfx_ieee_doubleENS_9sc_numrepEiNS_6sc_fmtEPKNS_11scfx_paramsEE1s)
          to label %20 unwind label %26

20:                                               ; preds = %19
  %21 = call i32 @__cxa_atexit(ptr @_ZN5sc_dt11scfx_stringD2Ev, ptr @_ZZN5sc_dt9to_stringERKNS_16scfx_ieee_doubleENS_9sc_numrepEiNS_6sc_fmtEPKNS_11scfx_paramsEE1s, ptr @__dso_handle) #0
  call void @__cxa_guard_release(ptr @_ZGVZN5sc_dt9to_stringERKNS_16scfx_ieee_doubleENS_9sc_numrepEiNS_6sc_fmtEPKNS_11scfx_paramsEE1s) #0
  br label %22

22:                                               ; preds = %20, %16, %5
  call void @_ZN5sc_dt11scfx_string5clearEv(ptr noundef nonnull align 8 dereferenceable(24) @_ZZN5sc_dt9to_stringERKNS_16scfx_ieee_doubleENS_9sc_numrepEiNS_6sc_fmtEPKNS_11scfx_paramsEE1s)
  %23 = load ptr, ptr %6, align 8, !tbaa !5
  %24 = call noundef zeroext i1 @_ZNK5sc_dt16scfx_ieee_double6is_nanEv(ptr noundef nonnull align 8 dereferenceable(8) %23)
  br i1 %24, label %25, label %30

25:                                               ; preds = %22
  call void @_ZN5sc_dt14scfx_print_nanERNS_11scfx_stringE(ptr noundef nonnull align 8 dereferenceable(24) @_ZZN5sc_dt9to_stringERKNS_16scfx_ieee_doubleENS_9sc_numrepEiNS_6sc_fmtEPKNS_11scfx_paramsEE1s)
  br label %70

26:                                               ; preds = %19
  %27 = landingpad { ptr, i32 }
          cleanup
  %28 = extractvalue { ptr, i32 } %27, 0
  store ptr %28, ptr %11, align 8
  %29 = extractvalue { ptr, i32 } %27, 1
  store i32 %29, ptr %12, align 4
  call void @__cxa_guard_abort(ptr @_ZGVZN5sc_dt9to_stringERKNS_16scfx_ieee_doubleENS_9sc_numrepEiNS_6sc_fmtEPKNS_11scfx_paramsEE1s) #0
  br label %72

30:                                               ; preds = %22
  %31 = load ptr, ptr %6, align 8, !tbaa !5
  %32 = call noundef zeroext i1 @_ZNK5sc_dt16scfx_ieee_double6is_infEv(ptr noundef nonnull align 8 dereferenceable(8) %31)
  br i1 %32, label %33, label %37

33:                                               ; preds = %30
  %34 = load ptr, ptr %6, align 8, !tbaa !5
  %35 = call noundef i32 @_ZNK5sc_dt16scfx_ieee_double8negativeEv(ptr noundef nonnull align 8 dereferenceable(8) %34)
  %36 = icmp ne i32 %35, 0
  call void @_ZN5sc_dt14scfx_print_infERNS_11scfx_stringEb(ptr noundef nonnull align 8 dereferenceable(24) @_ZZN5sc_dt9to_stringERKNS_16scfx_ieee_doubleENS_9sc_numrepEiNS_6sc_fmtEPKNS_11scfx_paramsEE1s, i1 noundef zeroext %36)
  br label %69

37:                                               ; preds = %30
  %38 = load ptr, ptr %6, align 8, !tbaa !5
  %39 = call noundef i32 @_ZNK5sc_dt16scfx_ieee_double8negativeEv(ptr noundef nonnull align 8 dereferenceable(8) %38)
  %40 = icmp ne i32 %39, 0
  br i1 %40, label %41, label %54

41:                                               ; preds = %37
  %42 = load ptr, ptr %6, align 8, !tbaa !5
  %43 = call noundef zeroext i1 @_ZNK5sc_dt16scfx_ieee_double7is_zeroEv(ptr noundef nonnull align 8 dereferenceable(8) %42)
  br i1 %43, label %54, label %44

44:                                               ; preds = %41
  %45 = load i32, ptr %7, align 4, !tbaa !9
  %46 = icmp eq i32 %45, 17
  br i1 %46, label %53, label %47

47:                                               ; preds = %44
  %48 = load i32, ptr %7, align 4, !tbaa !9
  %49 = icmp eq i32 %48, 19
  br i1 %49, label %53, label %50

50:                                               ; preds = %47
  %51 = load i32, ptr %7, align 4, !tbaa !9
  %52 = icmp eq i32 %51, 21
  br i1 %52, label %53, label %54

53:                                               ; preds = %50, %47, %44
  call void @_ZN5sc_dt11scfx_stringpLEPKc(ptr noundef nonnull align 8 dereferenceable(24) @_ZZN5sc_dt9to_stringERKNS_16scfx_ieee_doubleENS_9sc_numrepEiNS_6sc_fmtEPKNS_11scfx_paramsEE1s, ptr noundef @.str.4)
  br label %68

54:                                               ; preds = %50, %41, %37
  %55 = load i32, ptr %7, align 4, !tbaa !9
  %56 = icmp eq i32 %55, 10
  br i1 %56, label %57, label %61

57:                                               ; preds = %54
  %58 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN5sc_dt16scfx_ieee_doubleC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %58)
  %59 = load i32, ptr %8, align 4, !tbaa !11
  %60 = load i32, ptr %9, align 4, !tbaa !13
  call void @_ZN5sc_dtL9print_decERNS_11scfx_stringENS_16scfx_ieee_doubleEiNS_6sc_fmtE(ptr noundef nonnull align 8 dereferenceable(24) @_ZZN5sc_dt9to_stringERKNS_16scfx_ieee_doubleENS_9sc_numrepEiNS_6sc_fmtEPKNS_11scfx_paramsEE1s, ptr noundef %13, i32 noundef %59, i32 noundef %60)
  br label %67

61:                                               ; preds = %54
  %62 = load ptr, ptr %6, align 8, !tbaa !5
  %63 = load i32, ptr %7, align 4, !tbaa !9
  %64 = load i32, ptr %8, align 4, !tbaa !11
  %65 = load i32, ptr %9, align 4, !tbaa !13
  %66 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN5sc_dtL11print_otherERNS_11scfx_stringERKNS_16scfx_ieee_doubleENS_9sc_numrepEiNS_6sc_fmtEPKNS_11scfx_paramsE(ptr noundef nonnull align 8 dereferenceable(24) @_ZZN5sc_dt9to_stringERKNS_16scfx_ieee_doubleENS_9sc_numrepEiNS_6sc_fmtEPKNS_11scfx_paramsEE1s, ptr noundef nonnull align 8 dereferenceable(8) %62, i32 noundef %63, i32 noundef %64, i32 noundef %65, ptr noundef %66)
  br label %67

67:                                               ; preds = %61, %57
  br label %68

68:                                               ; preds = %67, %53
  br label %69

69:                                               ; preds = %68, %33
  br label %70

70:                                               ; preds = %69, %25
  %71 = call noundef ptr @_ZN5sc_dt11scfx_stringcvPKcEv(ptr noundef nonnull align 8 dereferenceable(24) @_ZZN5sc_dt9to_stringERKNS_16scfx_ieee_doubleENS_9sc_numrepEiNS_6sc_fmtEPKNS_11scfx_paramsEE1s)
  ret ptr %71

72:                                               ; preds = %26
  %73 = load ptr, ptr %11, align 8
  %74 = load i32, ptr %12, align 4
  %75 = insertvalue { ptr, i32 } poison, ptr %73, 0
  %76 = insertvalue { ptr, i32 } %75, i32 %74, 1
  resume { ptr, i32 } %76
}

; Function Attrs: nounwind
declare i32 @__cxa_guard_acquire(ptr) #0

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN5sc_dt11scfx_stringD2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2

; Function Attrs: nounwind
declare void @__cxa_guard_abort(ptr) #0

; Function Attrs: nounwind
declare void @__cxa_guard_release(ptr) #0

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN5sc_dtL9print_decERNS_11scfx_stringENS_16scfx_ieee_doubleEiNS_6sc_fmtE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef, i32 noundef, i32 noundef) #1

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN5sc_dtL11print_otherERNS_11scfx_stringERKNS_16scfx_ieee_doubleENS_9sc_numrepEiNS_6sc_fmtEPKNS_11scfx_paramsE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8), i32 noundef, i32 noundef, i32 noundef, ptr noundef) #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN5sc_dt11scfx_stringcvPKcEv(ptr noundef nonnull align 8 dereferenceable(24)) #3 align 2

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

!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 = !{!"_ZTSN5sc_dt9sc_numrepE", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"_ZTSN5sc_dt6sc_fmtE", !7, i64 0}
!15 = !{!"branch_weights", i32 1, i32 1048575}


; 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_string" = type { i64, i64, ptr }
%"class.sc_dt::scfx_ieee_double" = type { %"union.sc_dt::ieee_double" }
%"union.sc_dt::ieee_double" = type { double }

@__dso_handle = external hidden global i8
@_ZZN5sc_dt9to_stringERKNS_16scfx_ieee_doubleENS_9sc_numrepEiNS_6sc_fmtEPKNS_11scfx_paramsEE1s = external hidden global %"class.sc_dt::scfx_string", align 8
@_ZGVZN5sc_dt9to_stringERKNS_16scfx_ieee_doubleENS_9sc_numrepEiNS_6sc_fmtEPKNS_11scfx_paramsEE1s = external hidden global i64, align 8
@.str.4 = external hidden unnamed_addr constant [9 x i8], align 1

; Function Attrs: nofree nounwind
declare i32 @__cxa_atexit(ptr, ptr, ptr) local_unnamed_addr #0

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN5sc_dt9to_stringERKNS_16scfx_ieee_doubleENS_9sc_numrepEiNS_6sc_fmtEPKNS_11scfx_paramsE(ptr noundef nonnull align 8 dereferenceable(8) %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, ptr noundef %4) local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %6 = alloca %"class.sc_dt::scfx_ieee_double", align 8
  %7 = load atomic i8, ptr @_ZGVZN5sc_dt9to_stringERKNS_16scfx_ieee_doubleENS_9sc_numrepEiNS_6sc_fmtEPKNS_11scfx_paramsEE1s acquire, align 8
  %8 = icmp eq i8 %7, 0
  br i1 %8, label %9, label %14, !prof !5

9:                                                ; preds = %5
  %10 = tail call i32 @__cxa_guard_acquire(ptr nonnull @_ZGVZN5sc_dt9to_stringERKNS_16scfx_ieee_doubleENS_9sc_numrepEiNS_6sc_fmtEPKNS_11scfx_paramsEE1s) #4
  %.not = icmp eq i32 %10, 0
  br i1 %.not, label %14, label %11

11:                                               ; preds = %9
  invoke void @_ZN5sc_dt11scfx_stringC2Ev(ptr noundef nonnull align 8 dereferenceable(24) @_ZZN5sc_dt9to_stringERKNS_16scfx_ieee_doubleENS_9sc_numrepEiNS_6sc_fmtEPKNS_11scfx_paramsEE1s)
          to label %12 unwind label %17

12:                                               ; preds = %11
  %13 = tail call i32 @__cxa_atexit(ptr nonnull @_ZN5sc_dt11scfx_stringD2Ev, ptr nonnull @_ZZN5sc_dt9to_stringERKNS_16scfx_ieee_doubleENS_9sc_numrepEiNS_6sc_fmtEPKNS_11scfx_paramsEE1s, ptr nonnull @__dso_handle) #4
  tail call void @__cxa_guard_release(ptr nonnull @_ZGVZN5sc_dt9to_stringERKNS_16scfx_ieee_doubleENS_9sc_numrepEiNS_6sc_fmtEPKNS_11scfx_paramsEE1s) #4
  br label %14

14:                                               ; preds = %12, %9, %5
  tail call void @_ZN5sc_dt11scfx_string5clearEv(ptr noundef nonnull align 8 dereferenceable(24) @_ZZN5sc_dt9to_stringERKNS_16scfx_ieee_doubleENS_9sc_numrepEiNS_6sc_fmtEPKNS_11scfx_paramsEE1s)
  %15 = tail call noundef zeroext i1 @_ZNK5sc_dt16scfx_ieee_double6is_nanEv(ptr noundef nonnull align 8 dereferenceable(8) %0)
  br i1 %15, label %16, label %19

16:                                               ; preds = %14
  tail call void @_ZN5sc_dt14scfx_print_nanERNS_11scfx_stringE(ptr noundef nonnull align 8 dereferenceable(24) @_ZZN5sc_dt9to_stringERKNS_16scfx_ieee_doubleENS_9sc_numrepEiNS_6sc_fmtEPKNS_11scfx_paramsEE1s)
  br label %33

17:                                               ; preds = %11
  %18 = landingpad { ptr, i32 }
          cleanup
  tail call void @__cxa_guard_abort(ptr nonnull @_ZGVZN5sc_dt9to_stringERKNS_16scfx_ieee_doubleENS_9sc_numrepEiNS_6sc_fmtEPKNS_11scfx_paramsEE1s) #4
  resume { ptr, i32 } %18

19:                                               ; preds = %14
  %20 = tail call noundef zeroext i1 @_ZNK5sc_dt16scfx_ieee_double6is_infEv(ptr noundef nonnull align 8 dereferenceable(8) %0)
  %21 = tail call noundef i32 @_ZNK5sc_dt16scfx_ieee_double8negativeEv(ptr noundef nonnull align 8 dereferenceable(8) %0)
  br i1 %20, label %22, label %24

22:                                               ; preds = %19
  %23 = icmp ne i32 %21, 0
  tail call void @_ZN5sc_dt14scfx_print_infERNS_11scfx_stringEb(ptr noundef nonnull align 8 dereferenceable(24) @_ZZN5sc_dt9to_stringERKNS_16scfx_ieee_doubleENS_9sc_numrepEiNS_6sc_fmtEPKNS_11scfx_paramsEE1s, i1 noundef zeroext %23)
  br label %33

24:                                               ; preds = %19
  %.not21 = icmp eq i32 %21, 0
  br i1 %.not21, label %29, label %25

25:                                               ; preds = %24
  %26 = tail call noundef zeroext i1 @_ZNK5sc_dt16scfx_ieee_double7is_zeroEv(ptr noundef nonnull align 8 dereferenceable(8) %0)
  br i1 %26, label %29, label %27

27:                                               ; preds = %25
  switch i32 %1, label %32 [
    i32 21, label %28
    i32 19, label %28
    i32 17, label %28
    i32 10, label %31
  ]

28:                                               ; preds = %27, %27, %27
  tail call void @_ZN5sc_dt11scfx_stringpLEPKc(ptr noundef nonnull align 8 dereferenceable(24) @_ZZN5sc_dt9to_stringERKNS_16scfx_ieee_doubleENS_9sc_numrepEiNS_6sc_fmtEPKNS_11scfx_paramsEE1s, ptr noundef nonnull @.str.4)
  br label %33

29:                                               ; preds = %25, %24
  %30 = icmp eq i32 %1, 10
  br i1 %30, label %31, label %32

31:                                               ; preds = %27, %29
  call void @_ZN5sc_dt16scfx_ieee_doubleC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %0)
  call void @_ZN5sc_dtL9print_decERNS_11scfx_stringENS_16scfx_ieee_doubleEiNS_6sc_fmtE(ptr noundef nonnull align 8 dereferenceable(24) @_ZZN5sc_dt9to_stringERKNS_16scfx_ieee_doubleENS_9sc_numrepEiNS_6sc_fmtEPKNS_11scfx_paramsEE1s, ptr noundef nonnull %6, i32 noundef %2, i32 noundef %3)
  br label %33

32:                                               ; preds = %27, %29
  tail call void @_ZN5sc_dtL11print_otherERNS_11scfx_stringERKNS_16scfx_ieee_doubleENS_9sc_numrepEiNS_6sc_fmtEPKNS_11scfx_paramsE(ptr noundef nonnull align 8 dereferenceable(24) @_ZZN5sc_dt9to_stringERKNS_16scfx_ieee_doubleENS_9sc_numrepEiNS_6sc_fmtEPKNS_11scfx_paramsEE1s, ptr noundef nonnull align 8 dereferenceable(8) %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, ptr noundef %4)
  br label %33

33:                                               ; preds = %22, %31, %32, %28, %16
  %34 = call noundef ptr @_ZN5sc_dt11scfx_stringcvPKcEv(ptr noundef nonnull align 8 dereferenceable(24) @_ZZN5sc_dt9to_stringERKNS_16scfx_ieee_doubleENS_9sc_numrepEiNS_6sc_fmtEPKNS_11scfx_paramsEE1s)
  ret ptr %34
}

; Function Attrs: nofree nounwind
declare i32 @__cxa_guard_acquire(ptr) local_unnamed_addr #0

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN5sc_dt11scfx_stringD2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2

; Function Attrs: nofree nounwind
declare void @__cxa_guard_abort(ptr) local_unnamed_addr #0

; Function Attrs: nofree nounwind
declare void @__cxa_guard_release(ptr) local_unnamed_addr #0

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN5sc_dtL9print_decERNS_11scfx_stringENS_16scfx_ieee_doubleEiNS_6sc_fmtE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN5sc_dtL11print_otherERNS_11scfx_stringERKNS_16scfx_ieee_doubleENS_9sc_numrepEiNS_6sc_fmtEPKNS_11scfx_paramsE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8), i32 noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN5sc_dt11scfx_stringcvPKcEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 align 2

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


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