; LLVM IR from pictools/pica :: test/gtest/fused-src/gtest (gtest-all)

; 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.testing::internal::String" = type { ptr, i64 }
%"class.testing::Message" = type { %"class.testing::internal::scoped_ptr" }
%"class.testing::internal::scoped_ptr" = type { ptr }

@.str.172 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.173 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.174 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.175 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.176 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.177 = external hidden unnamed_addr constant [9 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7testing8internal6StringD2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #0 align 2

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7testing8internal6String6FormatEPKcz(ptr dead_on_unwind noalias writable sret(%"class.testing::internal::String") align 8, ptr noundef, ...) #2 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN7testing7MessagelsINS_8internal6StringEEERS0_RKT_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(16)) #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7testing7Message9GetStringEv(ptr dead_on_unwind noalias writable sret(%"class.testing::internal::String") align 8, ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN7testing7MessagelsIA6_cEERS0_RKT_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 1 dereferenceable(6)) #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7testing8internal24XmlUnitTestResultPrinter9EscapeXmlEPKcb(ptr dead_on_unwind noalias writable sret(%"class.testing::internal::String") align 8 %0, ptr noundef %1, i1 noundef zeroext %2) #2 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i8, align 1
  %7 = alloca %"class.testing::Message", align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i8, align 1
  %12 = alloca i8, align 1
  %13 = alloca %"class.testing::internal::String", align 8
  store ptr %0, ptr %4, align 8
  store ptr %1, ptr %5, align 8, !tbaa !5
  %14 = zext i1 %2 to i8
  store i8 %14, ptr %6, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  call void @_ZN7testing7MessageC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7)
  %15 = load ptr, ptr %5, align 8, !tbaa !5
  %16 = icmp ne ptr %15, null
  br i1 %16, label %17, label %110

17:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %18 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %18, ptr %8, align 8, !tbaa !5
  br label %19

19:                                               ; preds = %105, %17
  %20 = load ptr, ptr %8, align 8, !tbaa !5
  %21 = load i8, ptr %20, align 1, !tbaa !11
  %22 = icmp ne i8 %21, 0
  br i1 %22, label %24, label %23

23:                                               ; preds = %19
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  br label %109

24:                                               ; preds = %19
  %25 = load ptr, ptr %8, align 8, !tbaa !5
  %26 = load i8, ptr %25, align 1, !tbaa !11
  %27 = sext i8 %26 to i32
  switch i32 %27, label %69 [
    i32 60, label %28
    i32 62, label %35
    i32 38, label %38
    i32 39, label %41
    i32 34, label %55
  ]

28:                                               ; preds = %24
  %29 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7testing7MessagelsIA5_cEERS0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 1 dereferenceable(5) @.str.172)
          to label %30 unwind label %31

30:                                               ; preds = %28
  br label %104

31:                                               ; preds = %98, %77, %69, %58, %44, %38, %35, %28
  %32 = landingpad { ptr, i32 }
          cleanup
  %33 = extractvalue { ptr, i32 } %32, 0
  store ptr %33, ptr %9, align 8
  %34 = extractvalue { ptr, i32 } %32, 1
  store i32 %34, ptr %10, align 4
  br label %108

35:                                               ; preds = %24
  %36 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7testing7MessagelsIA5_cEERS0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 1 dereferenceable(5) @.str.173)
          to label %37 unwind label %31

37:                                               ; preds = %35
  br label %104

38:                                               ; preds = %24
  %39 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7testing7MessagelsIA6_cEERS0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 1 dereferenceable(6) @.str.174)
          to label %40 unwind label %31

40:                                               ; preds = %38
  br label %104

41:                                               ; preds = %24
  %42 = load i8, ptr %6, align 1, !tbaa !9, !range !12, !noundef !13
  %43 = trunc i8 %42 to i1
  br i1 %43, label %44, label %47

44:                                               ; preds = %41
  %45 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7testing7MessagelsIA7_cEERS0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 1 dereferenceable(7) @.str.175)
          to label %46 unwind label %31

46:                                               ; preds = %44
  br label %54

47:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #5
  store i8 39, ptr %11, align 1, !tbaa !11
  %48 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7testing7MessagelsIcEERS0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 1 dereferenceable(1) %11)
          to label %49 unwind label %50

49:                                               ; preds = %47
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #5
  br label %54

50:                                               ; preds = %47
  %51 = landingpad { ptr, i32 }
          cleanup
  %52 = extractvalue { ptr, i32 } %51, 0
  store ptr %52, ptr %9, align 8
  %53 = extractvalue { ptr, i32 } %51, 1
  store i32 %53, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #5
  br label %108

54:                                               ; preds = %49, %46
  br label %104

55:                                               ; preds = %24
  %56 = load i8, ptr %6, align 1, !tbaa !9, !range !12, !noundef !13
  %57 = trunc i8 %56 to i1
  br i1 %57, label %58, label %61

58:                                               ; preds = %55
  %59 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7testing7MessagelsIA7_cEERS0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 1 dereferenceable(7) @.str.176)
          to label %60 unwind label %31

60:                                               ; preds = %58
  br label %68

61:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #5
  store i8 34, ptr %12, align 1, !tbaa !11
  %62 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7testing7MessagelsIcEERS0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 1 dereferenceable(1) %12)
          to label %63 unwind label %64

63:                                               ; preds = %61
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #5
  br label %68

64:                                               ; preds = %61
  %65 = landingpad { ptr, i32 }
          cleanup
  %66 = extractvalue { ptr, i32 } %65, 0
  store ptr %66, ptr %9, align 8
  %67 = extractvalue { ptr, i32 } %65, 1
  store i32 %67, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #5
  br label %108

68:                                               ; preds = %63, %60
  br label %104

69:                                               ; preds = %24
  %70 = load ptr, ptr %8, align 8, !tbaa !5
  %71 = load i8, ptr %70, align 1, !tbaa !11
  %72 = invoke noundef zeroext i1 @_ZN7testing8internal24XmlUnitTestResultPrinter19IsValidXmlCharacterEc(i8 noundef signext %71)
          to label %73 unwind label %31

73:                                               ; preds = %69
  br i1 %72, label %74, label %103

74:                                               ; preds = %73
  %75 = load i8, ptr %6, align 1, !tbaa !9, !range !12, !noundef !13
  %76 = trunc i8 %75 to i1
  br i1 %76, label %77, label %98

77:                                               ; preds = %74
  %78 = load ptr, ptr %8, align 8, !tbaa !5
  %79 = load i8, ptr %78, align 1, !tbaa !11
  %80 = invoke noundef zeroext i1 @_ZN7testing8internal24XmlUnitTestResultPrinter24IsNormalizableWhitespaceEc(i8 noundef signext %79)
          to label %81 unwind label %31

81:                                               ; preds = %77
  br i1 %80, label %82, label %98

82:                                               ; preds = %81
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #5
  %83 = load ptr, ptr %8, align 8, !tbaa !5
  %84 = load i8, ptr %83, align 1, !tbaa !11
  %85 = sext i8 %84 to i32
  invoke void (ptr, ptr, ...) @_ZN7testing8internal6String6FormatEPKcz(ptr dead_on_unwind writable sret(%"class.testing::internal::String") align 8 %13, ptr noundef @.str.177, i32 noundef %85)
          to label %86 unwind label %89

86:                                               ; preds = %82
  %87 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7testing7MessagelsINS_8internal6StringEEERS0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(16) %13)
          to label %88 unwind label %93

88:                                               ; preds = %86
  call void @_ZN7testing8internal6StringD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #5
  br label %102

89:                                               ; preds = %82
  %90 = landingpad { ptr, i32 }
          cleanup
  %91 = extractvalue { ptr, i32 } %90, 0
  store ptr %91, ptr %9, align 8
  %92 = extractvalue { ptr, i32 } %90, 1
  store i32 %92, ptr %10, align 4
  br label %97

93:                                               ; preds = %86
  %94 = landingpad { ptr, i32 }
          cleanup
  %95 = extractvalue { ptr, i32 } %94, 0
  store ptr %95, ptr %9, align 8
  %96 = extractvalue { ptr, i32 } %94, 1
  store i32 %96, ptr %10, align 4
  call void @_ZN7testing8internal6StringD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #5
  br label %97

97:                                               ; preds = %93, %89
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #5
  br label %108

98:                                               ; preds = %81, %74
  %99 = load ptr, ptr %8, align 8, !tbaa !5
  %100 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7testing7MessagelsIcEERS0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 1 dereferenceable(1) %99)
          to label %101 unwind label %31

101:                                              ; preds = %98
  br label %102

102:                                              ; preds = %101, %88
  br label %103

103:                                              ; preds = %102, %73
  br label %104

104:                                              ; preds = %103, %68, %54, %40, %37, %30
  br label %105

105:                                              ; preds = %104
  %106 = load ptr, ptr %8, align 8, !tbaa !5
  %107 = getelementptr inbounds i8, ptr %106, i32 1
  store ptr %107, ptr %8, align 8, !tbaa !5
  br label %19, !llvm.loop !14

108:                                              ; preds = %97, %64, %50, %31
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  br label %116

109:                                              ; preds = %23
  br label %110

110:                                              ; preds = %109, %3
  invoke void @_ZNK7testing7Message9GetStringEv(ptr dead_on_unwind writable sret(%"class.testing::internal::String") align 8 %0, ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %111 unwind label %112

111:                                              ; preds = %110
  call void @_ZN7testing7MessageD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  ret void

112:                                              ; preds = %110
  %113 = landingpad { ptr, i32 }
          cleanup
  %114 = extractvalue { ptr, i32 } %113, 0
  store ptr %114, ptr %9, align 8
  %115 = extractvalue { ptr, i32 } %113, 1
  store i32 %115, ptr %10, align 4
  br label %116

116:                                              ; preds = %112, %108
  call void @_ZN7testing7MessageD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  br label %117

117:                                              ; preds = %116
  %118 = load ptr, ptr %9, align 8
  %119 = load i32, ptr %10, align 4
  %120 = insertvalue { ptr, i32 } poison, ptr %118, 0
  %121 = insertvalue { ptr, i32 } %120, i32 %119, 1
  resume { ptr, i32 } %121
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN7testing7MessagelsIA5_cEERS0_RKT_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 1 dereferenceable(5)) #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN7testing7MessagelsIA7_cEERS0_RKT_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 1 dereferenceable(7)) #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN7testing8internal24XmlUnitTestResultPrinter19IsValidXmlCharacterEc(i8 noundef signext) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN7testing8internal24XmlUnitTestResultPrinter24IsNormalizableWhitespaceEc(i8 noundef signext) #0 align 2

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 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 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 #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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{i8 0, i8 2}
!13 = !{}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}


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

%"class.testing::internal::String" = type { ptr, i64 }
%"class.testing::Message" = type { %"class.testing::internal::scoped_ptr" }
%"class.testing::internal::scoped_ptr" = type { ptr }

@.str.172 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.173 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.174 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.175 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.176 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.177 = external hidden unnamed_addr constant [9 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7testing8internal6StringD2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #0 align 2

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7testing8internal6String6FormatEPKcz(ptr dead_on_unwind noalias writable sret(%"class.testing::internal::String") align 8, ptr noundef, ...) local_unnamed_addr #2 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN7testing7MessagelsINS_8internal6StringEEERS0_RKT_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7testing7Message9GetStringEv(ptr dead_on_unwind noalias writable sret(%"class.testing::internal::String") align 8, ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN7testing7MessagelsIA6_cEERS0_RKT_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 1 dereferenceable(6)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7testing8internal24XmlUnitTestResultPrinter9EscapeXmlEPKcb(ptr dead_on_unwind noalias writable sret(%"class.testing::internal::String") align 8 %0, ptr noundef %1, i1 noundef zeroext %2) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.testing::Message", align 8
  %5 = alloca i8, align 1
  %6 = alloca i8, align 1
  %7 = alloca %"class.testing::internal::String", align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #5
  call void @_ZN7testing7MessageC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %4)
  %.not = icmp eq ptr %1, null
  br i1 %.not, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %3
  br i1 %2, label %.preheader.split.us.split, label %.preheader.split

.preheader.split.us.split:                        ; preds = %.preheader, %31
  %.016.us = phi ptr [ %32, %31 ], [ %1, %.preheader ]
  %8 = load i8, ptr %.016.us, align 1, !tbaa !5
  switch i8 %8, label %17 [
    i8 0, label %.loopexit
    i8 60, label %14
    i8 62, label %.invoke
    i8 38, label %12
    i8 39, label %9
    i8 34, label %.invoke37
  ]

9:                                                ; preds = %.preheader.split.us.split
  br label %.invoke37

.invoke37:                                        ; preds = %.preheader.split.us.split, %9
  %10 = phi ptr [ @.str.175, %9 ], [ @.str.176, %.preheader.split.us.split ]
  %11 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7testing7MessagelsIA7_cEERS0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 1 dereferenceable(7) %10)
          to label %31 unwind label %.split24.us

12:                                               ; preds = %.preheader.split.us.split
  %13 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7testing7MessagelsIA6_cEERS0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 1 dereferenceable(6) @.str.174)
          to label %31 unwind label %.split24.us

14:                                               ; preds = %.preheader.split.us.split
  br label %.invoke

.invoke:                                          ; preds = %.preheader.split.us.split, %14
  %15 = phi ptr [ @.str.172, %14 ], [ @.str.173, %.preheader.split.us.split ]
  %16 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7testing7MessagelsIA5_cEERS0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 1 dereferenceable(5) %15)
          to label %31 unwind label %.split24.us

17:                                               ; preds = %.preheader.split.us.split
  %18 = invoke noundef zeroext i1 @_ZN7testing8internal24XmlUnitTestResultPrinter19IsValidXmlCharacterEc(i8 noundef signext %8)
          to label %19 unwind label %.split24.us

19:                                               ; preds = %17
  br i1 %18, label %20, label %31

20:                                               ; preds = %19
  %21 = load i8, ptr %.016.us, align 1, !tbaa !5
  %22 = call noundef zeroext i1 @_ZN7testing8internal24XmlUnitTestResultPrinter24IsNormalizableWhitespaceEc(i8 noundef signext %21)
  br i1 %22, label %25, label %23

23:                                               ; preds = %20
  %24 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7testing7MessagelsIcEERS0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 1 dereferenceable(1) %.016.us)
          to label %31 unwind label %.split24.us

25:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #5
  %26 = load i8, ptr %.016.us, align 1, !tbaa !5
  %27 = sext i8 %26 to i32
  invoke void (ptr, ptr, ...) @_ZN7testing8internal6String6FormatEPKcz(ptr dead_on_unwind nonnull writable sret(%"class.testing::internal::String") align 8 %7, ptr noundef nonnull @.str.177, i32 noundef %27)
          to label %28 unwind label %.split30.us

28:                                               ; preds = %25
  %29 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7testing7MessagelsINS_8internal6StringEEERS0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(16) %7)
          to label %30 unwind label %.split33.us

30:                                               ; preds = %28
  call void @_ZN7testing8internal6StringD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #5
  br label %31

31:                                               ; preds = %.invoke37, %.invoke, %30, %23, %19, %12
  %32 = getelementptr inbounds i8, ptr %.016.us, i64 1
  br label %.preheader.split.us.split, !llvm.loop !8

.split24.us:                                      ; preds = %.invoke37, %.invoke, %23, %17, %12
  %33 = landingpad { ptr, i32 }
          cleanup
  br label %62

.split30.us:                                      ; preds = %25
  %34 = landingpad { ptr, i32 }
          cleanup
  br label %56

.split33.us:                                      ; preds = %28
  %35 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7testing8internal6StringD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #5
  br label %56

.preheader.split:                                 ; preds = %.preheader, %57
  %.016 = phi ptr [ %58, %57 ], [ %1, %.preheader ]
  %36 = load i8, ptr %.016, align 1, !tbaa !5
  switch i8 %36, label %51 [
    i8 0, label %.loopexit
    i8 60, label %37
    i8 62, label %.invoke38
    i8 38, label %41
    i8 39, label %43
    i8 34, label %47
  ]

37:                                               ; preds = %.preheader.split
  br label %.invoke38

.split24:                                         ; preds = %.invoke38, %54, %51, %41
  %38 = landingpad { ptr, i32 }
          cleanup
  br label %62

.invoke38:                                        ; preds = %.preheader.split, %37
  %39 = phi ptr [ @.str.172, %37 ], [ @.str.173, %.preheader.split ]
  %40 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7testing7MessagelsIA5_cEERS0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 1 dereferenceable(5) %39)
          to label %57 unwind label %.split24

41:                                               ; preds = %.preheader.split
  %42 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7testing7MessagelsIA6_cEERS0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 1 dereferenceable(6) @.str.174)
          to label %57 unwind label %.split24

43:                                               ; preds = %.preheader.split
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #5
  store i8 39, ptr %5, align 1, !tbaa !5
  %44 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7testing7MessagelsIcEERS0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 1 dereferenceable(1) %5)
          to label %45 unwind label %.split27

45:                                               ; preds = %43
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #5
  br label %57

.split27:                                         ; preds = %43
  %46 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #5
  br label %62

47:                                               ; preds = %.preheader.split
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #5
  store i8 34, ptr %6, align 1, !tbaa !5
  %48 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7testing7MessagelsIcEERS0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %49 unwind label %.split

49:                                               ; preds = %47
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #5
  br label %57

.split:                                           ; preds = %47
  %50 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #5
  br label %62

51:                                               ; preds = %.preheader.split
  %52 = invoke noundef zeroext i1 @_ZN7testing8internal24XmlUnitTestResultPrinter19IsValidXmlCharacterEc(i8 noundef signext %36)
          to label %53 unwind label %.split24

53:                                               ; preds = %51
  br i1 %52, label %54, label %57

54:                                               ; preds = %53
  %55 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7testing7MessagelsIcEERS0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 1 dereferenceable(1) %.016)
          to label %57 unwind label %.split24

56:                                               ; preds = %.split33.us, %.split30.us
  %.pn = phi { ptr, i32 } [ %35, %.split33.us ], [ %34, %.split30.us ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #5
  br label %62

57:                                               ; preds = %.invoke38, %41, %45, %49, %54, %53
  %58 = getelementptr inbounds i8, ptr %.016, i64 1
  br label %.preheader.split, !llvm.loop !8

.loopexit:                                        ; preds = %.preheader.split, %.preheader.split.us.split, %3
  invoke void @_ZNK7testing7Message9GetStringEv(ptr dead_on_unwind writable sret(%"class.testing::internal::String") align 8 %0, ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %59 unwind label %60

59:                                               ; preds = %.loopexit
  call void @_ZN7testing7MessageD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  ret void

60:                                               ; preds = %.loopexit
  %61 = landingpad { ptr, i32 }
          cleanup
  br label %62

62:                                               ; preds = %.split24, %.split24.us, %.split27, %.split, %56, %60
  %.pn.pn.pn = phi { ptr, i32 } [ %61, %60 ], [ %.pn, %56 ], [ %50, %.split ], [ %46, %.split27 ], [ %38, %.split24 ], [ %33, %.split24.us ]
  call void @_ZN7testing7MessageD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  resume { ptr, i32 } %.pn.pn.pn
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN7testing7MessagelsIA5_cEERS0_RKT_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 1 dereferenceable(5)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN7testing7MessagelsIA7_cEERS0_RKT_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 1 dereferenceable(7)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN7testing7MessagelsIcEERS0_RKT_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN7testing8internal24XmlUnitTestResultPrinter19IsValidXmlCharacterEc(i8 noundef signext) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN7testing8internal24XmlUnitTestResultPrinter24IsNormalizableWhitespaceEc(i8 noundef signext) local_unnamed_addr #0 align 2

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 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 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 #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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = distinct !{!8, !9}
!9 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass