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

; 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 }

@__dso_handle = external hidden global i8
@_ZZNK5sc_dt8scfx_rep9to_stringENS_9sc_numrepEiNS_6sc_fmtEPKNS_11scfx_paramsEE1s = external hidden global %"class.sc_dt::scfx_string", align 8
@_ZGVZNK5sc_dt8scfx_rep9to_stringENS_9sc_numrepEiNS_6sc_fmtEPKNS_11scfx_paramsEE1s = external hidden global i64, align 8
@.str = 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: inlinehint mustprogress uwtable
declare dso_local void @_ZN5sc_dt11scfx_stringC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZNK5sc_dt8scfx_rep9to_stringENS_9sc_numrepEiNS_6sc_fmtEPKNS_11scfx_paramsE(ptr noundef nonnull align 8 dereferenceable(37) %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, ptr noundef %4) #3 align 2 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
  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
  %13 = load ptr, ptr %6, align 8
  %14 = load atomic i8, ptr @_ZGVZNK5sc_dt8scfx_rep9to_stringENS_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 @_ZGVZNK5sc_dt8scfx_rep9to_stringENS_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) @_ZZNK5sc_dt8scfx_rep9to_stringENS_9sc_numrepEiNS_6sc_fmtEPKNS_11scfx_paramsEE1s)
          to label %20 unwind label %25

20:                                               ; preds = %19
  %21 = call i32 @__cxa_atexit(ptr @_ZN5sc_dt11scfx_stringD2Ev, ptr @_ZZNK5sc_dt8scfx_rep9to_stringENS_9sc_numrepEiNS_6sc_fmtEPKNS_11scfx_paramsEE1s, ptr @__dso_handle) #0
  call void @__cxa_guard_release(ptr @_ZGVZNK5sc_dt8scfx_rep9to_stringENS_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) @_ZZNK5sc_dt8scfx_rep9to_stringENS_9sc_numrepEiNS_6sc_fmtEPKNS_11scfx_paramsEE1s)
  %23 = call noundef zeroext i1 @_ZNK5sc_dt8scfx_rep6is_nanEv(ptr noundef nonnull align 8 dereferenceable(37) %13)
  br i1 %23, label %24, label %29

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

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

29:                                               ; preds = %22
  %30 = call noundef zeroext i1 @_ZNK5sc_dt8scfx_rep6is_infEv(ptr noundef nonnull align 8 dereferenceable(37) %13)
  br i1 %30, label %31, label %33

31:                                               ; preds = %29
  %32 = call noundef zeroext i1 @_ZNK5sc_dt8scfx_rep6is_negEv(ptr noundef nonnull align 8 dereferenceable(37) %13)
  call void @_ZN5sc_dt14scfx_print_infERNS_11scfx_stringEb(ptr noundef nonnull align 8 dereferenceable(24) @_ZZNK5sc_dt8scfx_rep9to_stringENS_9sc_numrepEiNS_6sc_fmtEPKNS_11scfx_paramsEE1s, i1 noundef zeroext %32)
  br label %63

33:                                               ; preds = %29
  %34 = call noundef zeroext i1 @_ZNK5sc_dt8scfx_rep6is_negEv(ptr noundef nonnull align 8 dereferenceable(37) %13)
  br i1 %34, label %35, label %47

35:                                               ; preds = %33
  %36 = call noundef zeroext i1 @_ZNK5sc_dt8scfx_rep7is_zeroEv(ptr noundef nonnull align 8 dereferenceable(37) %13)
  br i1 %36, label %47, label %37

37:                                               ; preds = %35
  %38 = load i32, ptr %7, align 4, !tbaa !9
  %39 = icmp eq i32 %38, 17
  br i1 %39, label %46, label %40

40:                                               ; preds = %37
  %41 = load i32, ptr %7, align 4, !tbaa !9
  %42 = icmp eq i32 %41, 19
  br i1 %42, label %46, label %43

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

46:                                               ; preds = %43, %40, %37
  call void @_ZN5sc_dt11scfx_stringpLEPKc(ptr noundef nonnull align 8 dereferenceable(24) @_ZZNK5sc_dt8scfx_rep9to_stringENS_9sc_numrepEiNS_6sc_fmtEPKNS_11scfx_paramsEE1s, ptr noundef @.str)
  br label %62

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

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

53:                                               ; preds = %50, %47
  %54 = load i32, ptr %8, align 4, !tbaa !11
  %55 = load i32, ptr %9, align 4, !tbaa !13
  call void @_ZN5sc_dt9print_decERNS_11scfx_stringERKNS_8scfx_repEiNS_6sc_fmtE(ptr noundef nonnull align 8 dereferenceable(24) @_ZZNK5sc_dt8scfx_rep9to_stringENS_9sc_numrepEiNS_6sc_fmtEPKNS_11scfx_paramsEE1s, ptr noundef nonnull align 8 dereferenceable(37) %13, i32 noundef %54, i32 noundef %55)
  br label %61

56:                                               ; preds = %50
  %57 = load i32, ptr %7, align 4, !tbaa !9
  %58 = load i32, ptr %8, align 4, !tbaa !11
  %59 = load i32, ptr %9, align 4, !tbaa !13
  %60 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN5sc_dt11print_otherERNS_11scfx_stringERKNS_8scfx_repENS_9sc_numrepEiNS_6sc_fmtEPKNS_11scfx_paramsE(ptr noundef nonnull align 8 dereferenceable(24) @_ZZNK5sc_dt8scfx_rep9to_stringENS_9sc_numrepEiNS_6sc_fmtEPKNS_11scfx_paramsEE1s, ptr noundef nonnull align 8 dereferenceable(37) %13, i32 noundef %57, i32 noundef %58, i32 noundef %59, ptr noundef %60)
  br label %61

61:                                               ; preds = %56, %53
  br label %62

62:                                               ; preds = %61, %46
  br label %63

63:                                               ; preds = %62, %31
  br label %64

64:                                               ; preds = %63, %24
  %65 = call noundef ptr @_ZN5sc_dt11scfx_stringcvPKcEv(ptr noundef nonnull align 8 dereferenceable(24) @_ZZNK5sc_dt8scfx_rep9to_stringENS_9sc_numrepEiNS_6sc_fmtEPKNS_11scfx_paramsEE1s)
  ret ptr %65

66:                                               ; preds = %25
  %67 = load ptr, ptr %11, align 8
  %68 = load i32, ptr %12, align 4
  %69 = insertvalue { ptr, i32 } poison, ptr %67, 0
  %70 = insertvalue { ptr, i32 } %69, i32 %68, 1
  resume { ptr, i32 } %70
}

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

; 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)) #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)) #1

; 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) #1

attributes #0 = { nounwind }
attributes #1 = { 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 #2 = { 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 #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" }

!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 }

@__dso_handle = external hidden global i8
@_ZZNK5sc_dt8scfx_rep9to_stringENS_9sc_numrepEiNS_6sc_fmtEPKNS_11scfx_paramsEE1s = external hidden global %"class.sc_dt::scfx_string", align 8
@_ZGVZNK5sc_dt8scfx_rep9to_stringENS_9sc_numrepEiNS_6sc_fmtEPKNS_11scfx_paramsEE1s = external hidden global i64, align 8
@.str = 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: inlinehint mustprogress uwtable
declare dso_local void @_ZN5sc_dt11scfx_stringC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 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 #1 align 2

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZNK5sc_dt8scfx_rep9to_stringENS_9sc_numrepEiNS_6sc_fmtEPKNS_11scfx_paramsE(ptr noundef nonnull align 8 dereferenceable(37) %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, ptr noundef %4) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %6 = load atomic i8, ptr @_ZGVZNK5sc_dt8scfx_rep9to_stringENS_9sc_numrepEiNS_6sc_fmtEPKNS_11scfx_paramsEE1s acquire, align 8
  %7 = icmp eq i8 %6, 0
  br i1 %7, label %8, label %13, !prof !5

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

10:                                               ; preds = %8
  invoke void @_ZN5sc_dt11scfx_stringC2Ev(ptr noundef nonnull align 8 dereferenceable(24) @_ZZNK5sc_dt8scfx_rep9to_stringENS_9sc_numrepEiNS_6sc_fmtEPKNS_11scfx_paramsEE1s)
          to label %11 unwind label %16

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

13:                                               ; preds = %11, %8, %5
  tail call void @_ZN5sc_dt11scfx_string5clearEv(ptr noundef nonnull align 8 dereferenceable(24) @_ZZNK5sc_dt8scfx_rep9to_stringENS_9sc_numrepEiNS_6sc_fmtEPKNS_11scfx_paramsEE1s)
  %14 = tail call noundef zeroext i1 @_ZNK5sc_dt8scfx_rep6is_nanEv(ptr noundef nonnull align 8 dereferenceable(37) %0)
  br i1 %14, label %15, label %18

15:                                               ; preds = %13
  tail call void @_ZN5sc_dt14scfx_print_nanERNS_11scfx_stringE(ptr noundef nonnull align 8 dereferenceable(24) @_ZZNK5sc_dt8scfx_rep9to_stringENS_9sc_numrepEiNS_6sc_fmtEPKNS_11scfx_paramsEE1s)
  br label %30

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

18:                                               ; preds = %13
  %19 = tail call noundef zeroext i1 @_ZNK5sc_dt8scfx_rep6is_infEv(ptr noundef nonnull align 8 dereferenceable(37) %0)
  %20 = tail call noundef zeroext i1 @_ZNK5sc_dt8scfx_rep6is_negEv(ptr noundef nonnull align 8 dereferenceable(37) %0)
  br i1 %19, label %21, label %22

21:                                               ; preds = %18
  tail call void @_ZN5sc_dt14scfx_print_infERNS_11scfx_stringEb(ptr noundef nonnull align 8 dereferenceable(24) @_ZZNK5sc_dt8scfx_rep9to_stringENS_9sc_numrepEiNS_6sc_fmtEPKNS_11scfx_paramsEE1s, i1 noundef zeroext %20)
  br label %30

22:                                               ; preds = %18
  br i1 %20, label %23, label %27

23:                                               ; preds = %22
  %24 = tail call noundef zeroext i1 @_ZNK5sc_dt8scfx_rep7is_zeroEv(ptr noundef nonnull align 8 dereferenceable(37) %0)
  br i1 %24, label %27, label %25

25:                                               ; preds = %23
  switch i32 %1, label %29 [
    i32 21, label %26
    i32 19, label %26
    i32 17, label %26
    i32 10, label %28
    i32 0, label %28
  ]

26:                                               ; preds = %25, %25, %25
  tail call void @_ZN5sc_dt11scfx_stringpLEPKc(ptr noundef nonnull align 8 dereferenceable(24) @_ZZNK5sc_dt8scfx_rep9to_stringENS_9sc_numrepEiNS_6sc_fmtEPKNS_11scfx_paramsEE1s, ptr noundef nonnull @.str)
  br label %30

27:                                               ; preds = %23, %22
  switch i32 %1, label %29 [
    i32 10, label %28
    i32 0, label %28
  ]

28:                                               ; preds = %25, %25, %27, %27
  tail call void @_ZN5sc_dt9print_decERNS_11scfx_stringERKNS_8scfx_repEiNS_6sc_fmtE(ptr noundef nonnull align 8 dereferenceable(24) @_ZZNK5sc_dt8scfx_rep9to_stringENS_9sc_numrepEiNS_6sc_fmtEPKNS_11scfx_paramsEE1s, ptr noundef nonnull align 8 dereferenceable(37) %0, i32 noundef %2, i32 noundef %3)
  br label %30

29:                                               ; preds = %25, %27
  tail call void @_ZN5sc_dt11print_otherERNS_11scfx_stringERKNS_8scfx_repENS_9sc_numrepEiNS_6sc_fmtEPKNS_11scfx_paramsE(ptr noundef nonnull align 8 dereferenceable(24) @_ZZNK5sc_dt8scfx_rep9to_stringENS_9sc_numrepEiNS_6sc_fmtEPKNS_11scfx_paramsEE1s, ptr noundef nonnull align 8 dereferenceable(37) %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, ptr noundef %4)
  br label %30

30:                                               ; preds = %21, %28, %29, %26, %15
  %31 = tail call noundef ptr @_ZN5sc_dt11scfx_stringcvPKcEv(ptr noundef nonnull align 8 dereferenceable(24) @_ZZNK5sc_dt8scfx_rep9to_stringENS_9sc_numrepEiNS_6sc_fmtEPKNS_11scfx_paramsEE1s)
  ret ptr %31
}

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

; 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 #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 #1

; 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 #1

attributes #0 = { nofree nounwind }
attributes #1 = { 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 #2 = { 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 #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 = !{!"branch_weights", i32 1, i32 1048575}


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