; LLVM IR from justinxu9905/bustub-2022-fall :: third_party/fmt/test/enforce-checks-test.ll (Z15test_text_stylev)

; 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.fmt::v9::text_style" = type <{ %"struct.fmt::v9::detail::color_type", %"struct.fmt::v9::detail::color_type", i8, i8, i8, i8 }>
%"struct.fmt::v9::detail::color_type" = type { i8, %"union.fmt::v9::detail::color_type::color_union" }
%"union.fmt::v9::detail::color_type::color_union" = type { i32 }
%"struct.fmt::v9::rgb" = type { i8, i8, i8 }
%struct.FMT_COMPILE_STRING.29 = type { i8 }
%class.anon.30 = type { i8 }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%struct.FMT_COMPILE_STRING.32 = type { i8 }
%class.anon.33 = type { i8 }
%"class.std::back_insert_iterator.35" = type { ptr }
%struct.FMT_COMPILE_STRING.36 = type { i8 }
%class.anon.37 = type { i8 }

@.str = external hidden unnamed_addr constant [15 x i8], align 1

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
define dso_local void @_Z15test_text_stylev() #2 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.fmt::v9::text_style", align 4
  %2 = alloca %"struct.fmt::v9::detail::color_type", align 4
  %3 = alloca %"struct.fmt::v9::rgb", align 1
  %4 = alloca i24, align 4
  %5 = alloca %struct.FMT_COMPILE_STRING.29, align 1
  %6 = alloca %class.anon.30, align 1
  %7 = alloca %struct.FMT_COMPILE_STRING.29, align 1
  %8 = alloca %"class.std::__cxx11::basic_string", align 8
  %9 = alloca %"class.fmt::v9::text_style", align 4
  %10 = alloca %"struct.fmt::v9::detail::color_type", align 4
  %11 = alloca %"struct.fmt::v9::rgb", align 1
  %12 = alloca i24, align 4
  %13 = alloca %struct.FMT_COMPILE_STRING.32, align 1
  %14 = alloca %class.anon.33, align 1
  %15 = alloca %struct.FMT_COMPILE_STRING.32, align 1
  %16 = alloca %"class.fmt::v9::text_style", align 4
  %17 = alloca %"struct.fmt::v9::detail::color_type", align 4
  %18 = alloca %"struct.fmt::v9::rgb", align 1
  %19 = alloca i24, align 4
  %20 = alloca %"class.std::__cxx11::basic_string", align 8
  %21 = alloca %"class.std::back_insert_iterator.35", align 8
  %22 = alloca ptr, align 8
  %23 = alloca i32, align 4
  %24 = alloca %struct.FMT_COMPILE_STRING.36, align 1
  %25 = alloca %class.anon.37, align 1
  %26 = alloca %struct.FMT_COMPILE_STRING.36, align 1
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca %"class.std::back_insert_iterator.35", align 8
  call void @llvm.lifetime.start.p0(i64 20, ptr %1) #6
  call void @_ZN3fmt2v93rgbC2Ehhh(ptr noundef nonnull align 1 dereferenceable(3) %3, i8 noundef zeroext -1, i8 noundef zeroext 20, i8 noundef zeroext 30)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %4, ptr align 1 %3, i64 3, i1 false)
  %31 = load i24, ptr %4, align 4
  call void @_ZN3fmt2v96detail10color_typeC2ENS0_3rgbE(ptr noundef nonnull align 4 dereferenceable(8) %2, i24 %31) #6
  %32 = load i64, ptr %2, align 4
  call void @_ZN3fmt2v92fgENS0_6detail10color_typeE(ptr dead_on_unwind writable sret(%"class.fmt::v9::text_style") align 4 %1, i64 %32) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %5) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %6) #6
  call void @"_ZZ15test_text_stylevENK3$_0clEv"(ptr noundef nonnull align 1 dereferenceable(1) %6)
  call void @"_ZN3fmt2v95printIZZ15test_text_stylevENK3$_0clEvE18FMT_COMPILE_STRINGJA15_cETnNSt9enable_ifIXsr6detail9is_stringIT_EE5valueEiE4typeELi0EEEvRKNS0_10text_styleERKS6_DpRKT0_"(ptr noundef nonnull align 4 dereferenceable(19) %1, ptr noundef nonnull align 1 dereferenceable(1) %5, ptr noundef nonnull align 1 dereferenceable(15) @.str)
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 20, ptr %1) #6
  call void @llvm.lifetime.start.p0(i64 20, ptr %9) #6
  call void @_ZN3fmt2v93rgbC2Ehhh(ptr noundef nonnull align 1 dereferenceable(3) %11, i8 noundef zeroext -1, i8 noundef zeroext 20, i8 noundef zeroext 30)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %12, ptr align 1 %11, i64 3, i1 false)
  %33 = load i24, ptr %12, align 4
  call void @_ZN3fmt2v96detail10color_typeC2ENS0_3rgbE(ptr noundef nonnull align 4 dereferenceable(8) %10, i24 %33) #6
  %34 = load i64, ptr %10, align 4
  call void @_ZN3fmt2v92fgENS0_6detail10color_typeE(ptr dead_on_unwind writable sret(%"class.fmt::v9::text_style") align 4 %9, i64 %34) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #6
  call void @"_ZZ15test_text_stylevENK3$_1clEv"(ptr noundef nonnull align 1 dereferenceable(1) %14)
  call void @"_ZN3fmt2v96formatIZZ15test_text_stylevENK3$_1clEvE18FMT_COMPILE_STRINGJA15_cEcEENSt7__cxx1112basic_stringIT1_St11char_traitsIS7_ESaIS7_EEERKNS0_10text_styleERKT_DpRKT0_"(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %8, ptr noundef nonnull align 4 dereferenceable(19) %9, ptr noundef nonnull align 1 dereferenceable(1) %13, ptr noundef nonnull align 1 dereferenceable(15) @.str)
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 20, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 20, ptr %16) #6
  call void @_ZN3fmt2v93rgbC2Ehhh(ptr noundef nonnull align 1 dereferenceable(3) %18, i8 noundef zeroext -1, i8 noundef zeroext 20, i8 noundef zeroext 30)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %19, ptr align 1 %18, i64 3, i1 false)
  %35 = load i24, ptr %19, align 4
  call void @_ZN3fmt2v96detail10color_typeC2ENS0_3rgbE(ptr noundef nonnull align 4 dereferenceable(8) %17, i24 %35) #6
  %36 = load i64, ptr %17, align 4
  call void @_ZN3fmt2v92fgENS0_6detail10color_typeE(ptr dead_on_unwind writable sret(%"class.fmt::v9::text_style") align 4 %16, i64 %36) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %20) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #6
  %37 = invoke ptr @_ZSt13back_inserterINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESt20back_insert_iteratorIT_ERS7_(ptr noundef nonnull align 8 dereferenceable(32) %20)
          to label %38 unwind label %46

38:                                               ; preds = %0
  %39 = getelementptr inbounds %"class.std::back_insert_iterator.35", ptr %21, i32 0, i32 0
  store ptr %37, ptr %39, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %24) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %25) #6
  invoke void @"_ZZ15test_text_stylevENK3$_2clEv"(ptr noundef nonnull align 1 dereferenceable(1) %25)
          to label %40 unwind label %50

40:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #6
  store i32 1, ptr %27, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #6
  store i32 2, ptr %28, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #6
  store i32 3, ptr %29, align 4, !tbaa !5
  %41 = getelementptr inbounds %"class.std::back_insert_iterator.35", ptr %21, i32 0, i32 0
  %42 = load ptr, ptr %41, align 8
  %43 = invoke ptr @"_ZN3fmt2v99format_toISt20back_insert_iteratorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEZZ15test_text_stylevENK3$_2clEvE18FMT_COMPILE_STRINGJiiiELb1EEENSt9enable_ifIXT2_ET_E4typeESD_RKNS0_10text_styleERKT0_DpOT1_"(ptr %42, ptr noundef nonnull align 4 dereferenceable(19) %16, ptr noundef nonnull align 1 dereferenceable(1) %24, ptr noundef nonnull align 4 dereferenceable(4) %27, ptr noundef nonnull align 4 dereferenceable(4) %28, ptr noundef nonnull align 4 dereferenceable(4) %29)
          to label %44 unwind label %54

44:                                               ; preds = %40
  %45 = getelementptr inbounds %"class.std::back_insert_iterator.35", ptr %30, i32 0, i32 0
  store ptr %43, ptr %45, align 8
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 20, ptr %16) #6
  ret void

46:                                               ; preds = %0
  %47 = landingpad { ptr, i32 }
          cleanup
  %48 = extractvalue { ptr, i32 } %47, 0
  store ptr %48, ptr %22, align 8
  %49 = extractvalue { ptr, i32 } %47, 1
  store i32 %49, ptr %23, align 4
  br label %59

50:                                               ; preds = %38
  %51 = landingpad { ptr, i32 }
          cleanup
  %52 = extractvalue { ptr, i32 } %51, 0
  store ptr %52, ptr %22, align 8
  %53 = extractvalue { ptr, i32 } %51, 1
  store i32 %53, ptr %23, align 4
  br label %58

54:                                               ; preds = %40
  %55 = landingpad { ptr, i32 }
          cleanup
  %56 = extractvalue { ptr, i32 } %55, 0
  store ptr %56, ptr %22, align 8
  %57 = extractvalue { ptr, i32 } %55, 1
  store i32 %57, ptr %23, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #6
  br label %58

58:                                               ; preds = %54, %50
  call void @llvm.lifetime.end.p0(i64 1, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #6
  br label %59

59:                                               ; preds = %58, %46
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 20, ptr %16) #6
  br label %60

60:                                               ; preds = %59
  %61 = load ptr, ptr %22, align 8
  %62 = load i32, ptr %23, align 4
  %63 = insertvalue { ptr, i32 } poison, ptr %61, 0
  %64 = insertvalue { ptr, i32 } %63, i32 %62, 1
  resume { ptr, i32 } %64
}

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZN3fmt2v95printIZZ15test_text_stylevENK3$_0clEvE18FMT_COMPILE_STRINGJA15_cETnNSt9enable_ifIXsr6detail9is_stringIT_EE5valueEiE4typeELi0EEEvRKNS0_10text_styleERKS6_DpRKT0_"(ptr noundef nonnull align 4 dereferenceable(19), ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(15)) #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3fmt2v92fgENS0_6detail10color_typeE(ptr dead_on_unwind noalias writable sret(%"class.fmt::v9::text_style") align 4, i64) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3fmt2v93rgbC2Ehhh(ptr noundef nonnull align 1 dereferenceable(3), i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext) unnamed_addr #1 align 2

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden void @"_ZZ15test_text_stylevENK3$_0clEv"(ptr noundef nonnull align 1 dereferenceable(1)) #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZN3fmt2v96formatIZZ15test_text_stylevENK3$_1clEvE18FMT_COMPILE_STRINGJA15_cEcEENSt7__cxx1112basic_stringIT1_St11char_traitsIS7_ESaIS7_EEERKNS0_10text_styleERKT_DpRKT0_"(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 4 dereferenceable(19), ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(15)) #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden void @"_ZZ15test_text_stylevENK3$_1clEv"(ptr noundef nonnull align 1 dereferenceable(1)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden ptr @"_ZN3fmt2v99format_toISt20back_insert_iteratorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEZZ15test_text_stylevENK3$_2clEvE18FMT_COMPILE_STRINGJiiiELb1EEENSt9enable_ifIXT2_ET_E4typeESD_RKNS0_10text_styleERKT0_DpOT1_"(ptr, ptr noundef nonnull align 4 dereferenceable(19), ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local ptr @_ZSt13back_inserterINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESt20back_insert_iteratorIT_ERS7_(ptr noundef nonnull align 8 dereferenceable(32)) #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden void @"_ZZ15test_text_stylevENK3$_2clEv"(ptr noundef nonnull align 1 dereferenceable(1)) #3 align 2

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


; 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.fmt::v9::text_style" = type <{ %"struct.fmt::v9::detail::color_type", %"struct.fmt::v9::detail::color_type", i8, i8, i8, i8 }>
%"struct.fmt::v9::detail::color_type" = type { i8, %"union.fmt::v9::detail::color_type::color_union" }
%"union.fmt::v9::detail::color_type::color_union" = type { i32 }
%"struct.fmt::v9::rgb" = type { i8, i8, i8 }
%struct.FMT_COMPILE_STRING.29 = type { i8 }
%class.anon.30 = type { i8 }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%struct.FMT_COMPILE_STRING.32 = type { i8 }
%class.anon.33 = type { i8 }
%struct.FMT_COMPILE_STRING.36 = type { i8 }
%class.anon.37 = type { i8 }

@.str = external hidden unnamed_addr constant [15 x i8], align 1

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
define dso_local void @_Z15test_text_stylev() local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.fmt::v9::text_style", align 4
  %2 = alloca %"struct.fmt::v9::detail::color_type", align 8
  %3 = alloca %"struct.fmt::v9::rgb", align 4
  %4 = alloca %struct.FMT_COMPILE_STRING.29, align 1
  %5 = alloca %class.anon.30, align 1
  %6 = alloca %"class.std::__cxx11::basic_string", align 8
  %7 = alloca %"class.fmt::v9::text_style", align 4
  %8 = alloca %"struct.fmt::v9::detail::color_type", align 8
  %9 = alloca %"struct.fmt::v9::rgb", align 4
  %10 = alloca %struct.FMT_COMPILE_STRING.32, align 1
  %11 = alloca %class.anon.33, align 1
  %12 = alloca %"class.fmt::v9::text_style", align 4
  %13 = alloca %"struct.fmt::v9::detail::color_type", align 8
  %14 = alloca %"struct.fmt::v9::rgb", align 4
  %15 = alloca %"class.std::__cxx11::basic_string", align 8
  %16 = alloca %struct.FMT_COMPILE_STRING.36, align 1
  %17 = alloca %class.anon.37, align 1
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %1) #5
  call void @_ZN3fmt2v93rgbC2Ehhh(ptr noundef nonnull align 1 dereferenceable(3) %3, i8 noundef zeroext -1, i8 noundef zeroext 20, i8 noundef zeroext 30)
  %.0.copyload5 = load i24, ptr %3, align 4
  call void @_ZN3fmt2v96detail10color_typeC2ENS0_3rgbE(ptr noundef nonnull align 4 dereferenceable(8) %2, i24 %.0.copyload5) #5
  %21 = load i64, ptr %2, align 8
  call void @_ZN3fmt2v92fgENS0_6detail10color_typeE(ptr dead_on_unwind nonnull writable sret(%"class.fmt::v9::text_style") align 4 %1, i64 %21) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #5
  call void @"_ZZ15test_text_stylevENK3$_0clEv"(ptr noundef nonnull align 1 dereferenceable(1) %5)
  call void @"_ZN3fmt2v95printIZZ15test_text_stylevENK3$_0clEvE18FMT_COMPILE_STRINGJA15_cETnNSt9enable_ifIXsr6detail9is_stringIT_EE5valueEiE4typeELi0EEEvRKNS0_10text_styleERKS6_DpRKT0_"(ptr noundef nonnull align 4 dereferenceable(19) %1, ptr noundef nonnull align 1 dereferenceable(1) %4, ptr noundef nonnull align 1 dereferenceable(15) @.str)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %1) #5
  call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %7) #5
  call void @_ZN3fmt2v93rgbC2Ehhh(ptr noundef nonnull align 1 dereferenceable(3) %9, i8 noundef zeroext -1, i8 noundef zeroext 20, i8 noundef zeroext 30)
  %.0.copyload3 = load i24, ptr %9, align 4
  call void @_ZN3fmt2v96detail10color_typeC2ENS0_3rgbE(ptr noundef nonnull align 4 dereferenceable(8) %8, i24 %.0.copyload3) #5
  %22 = load i64, ptr %8, align 8
  call void @_ZN3fmt2v92fgENS0_6detail10color_typeE(ptr dead_on_unwind nonnull writable sret(%"class.fmt::v9::text_style") align 4 %7, i64 %22) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %10) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %11) #5
  call void @"_ZZ15test_text_stylevENK3$_1clEv"(ptr noundef nonnull align 1 dereferenceable(1) %11)
  call void @"_ZN3fmt2v96formatIZZ15test_text_stylevENK3$_1clEvE18FMT_COMPILE_STRINGJA15_cEcEENSt7__cxx1112basic_stringIT1_St11char_traitsIS7_ESaIS7_EEERKNS0_10text_styleERKT_DpRKT0_"(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %6, ptr noundef nonnull align 4 dereferenceable(19) %7, ptr noundef nonnull align 1 dereferenceable(1) %10, ptr noundef nonnull align 1 dereferenceable(15) @.str)
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %12) #5
  call void @_ZN3fmt2v93rgbC2Ehhh(ptr noundef nonnull align 1 dereferenceable(3) %14, i8 noundef zeroext -1, i8 noundef zeroext 20, i8 noundef zeroext 30)
  %.0.copyload = load i24, ptr %14, align 4
  call void @_ZN3fmt2v96detail10color_typeC2ENS0_3rgbE(ptr noundef nonnull align 4 dereferenceable(8) %13, i24 %.0.copyload) #5
  %23 = load i64, ptr %13, align 8
  call void @_ZN3fmt2v92fgENS0_6detail10color_typeE(ptr dead_on_unwind nonnull writable sret(%"class.fmt::v9::text_style") align 4 %12, i64 %23) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %15) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #5
  %24 = invoke ptr @_ZSt13back_inserterINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESt20back_insert_iteratorIT_ERS7_(ptr noundef nonnull align 8 dereferenceable(32) %15)
          to label %25 unwind label %28

25:                                               ; preds = %0
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %16) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %17) #5
  call void @"_ZZ15test_text_stylevENK3$_2clEv"(ptr noundef nonnull align 1 dereferenceable(1) %17)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #5
  store i32 1, ptr %18, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %19) #5
  store i32 2, ptr %19, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %20) #5
  store i32 3, ptr %20, align 4, !tbaa !5
  %26 = invoke ptr @"_ZN3fmt2v99format_toISt20back_insert_iteratorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEZZ15test_text_stylevENK3$_2clEvE18FMT_COMPILE_STRINGJiiiELb1EEENSt9enable_ifIXT2_ET_E4typeESD_RKNS0_10text_styleERKT0_DpOT1_"(ptr %24, ptr noundef nonnull align 4 dereferenceable(19) %12, ptr noundef nonnull align 1 dereferenceable(1) %16, ptr noundef nonnull align 4 dereferenceable(4) %18, ptr noundef nonnull align 4 dereferenceable(4) %19, ptr noundef nonnull align 4 dereferenceable(4) %20)
          to label %27 unwind label %30

27:                                               ; preds = %25
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %20) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %19) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %17) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %16) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %15) #5
  call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %12) #5
  ret void

28:                                               ; preds = %0
  %29 = landingpad { ptr, i32 }
          cleanup
  br label %32

30:                                               ; preds = %25
  %31 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %20) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %19) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %17) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %16) #5
  br label %32

32:                                               ; preds = %30, %28
  %.pn = phi { ptr, i32 } [ %31, %30 ], [ %29, %28 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %15) #5
  call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %12) #5
  resume { ptr, i32 } %.pn
}

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZN3fmt2v95printIZZ15test_text_stylevENK3$_0clEvE18FMT_COMPILE_STRINGJA15_cETnNSt9enable_ifIXsr6detail9is_stringIT_EE5valueEiE4typeELi0EEEvRKNS0_10text_styleERKS6_DpRKT0_"(ptr noundef nonnull align 4 dereferenceable(19), ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(15)) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3fmt2v92fgENS0_6detail10color_typeE(ptr dead_on_unwind noalias writable sret(%"class.fmt::v9::text_style") align 4, i64) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3fmt2v93rgbC2Ehhh(ptr noundef nonnull align 1 dereferenceable(3), i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext) unnamed_addr #1 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden void @"_ZZ15test_text_stylevENK3$_0clEv"(ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZN3fmt2v96formatIZZ15test_text_stylevENK3$_1clEvE18FMT_COMPILE_STRINGJA15_cEcEENSt7__cxx1112basic_stringIT1_St11char_traitsIS7_ESaIS7_EEERKNS0_10text_styleERKT_DpRKT0_"(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 4 dereferenceable(19), ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(15)) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden void @"_ZZ15test_text_stylevENK3$_1clEv"(ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden ptr @"_ZN3fmt2v99format_toISt20back_insert_iteratorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEZZ15test_text_stylevENK3$_2clEvE18FMT_COMPILE_STRINGJiiiELb1EEENSt9enable_ifIXT2_ET_E4typeESD_RKNS0_10text_styleERKT0_DpOT1_"(ptr, ptr noundef nonnull align 4 dereferenceable(19), ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local ptr @_ZSt13back_inserterINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESt20back_insert_iteratorIT_ERS7_(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden void @"_ZZ15test_text_stylevENK3$_2clEv"(ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #3 align 2

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


; Effective O3 passes: GlobalOptPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass