; LLVM IR from facebook/hermes :: external/llvh/lib/Demangle (MicrosoftDemangleNodes)

; 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.StringView = type { ptr, ptr }
%"struct.llvh::ms_demangle::PrimitiveTypeNode" = type { %"struct.llvh::ms_demangle::TypeNode.base", i32, [4 x i8] }
%"struct.llvh::ms_demangle::TypeNode.base" = type { %"struct.llvh::ms_demangle::Node.base", i8 }
%"struct.llvh::ms_demangle::Node.base" = type <{ ptr, i32 }>
%"struct.llvh::ms_demangle::TypeNode" = type { %"struct.llvh::ms_demangle::Node.base", i8, [3 x i8] }

@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [15 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK4llvh11ms_demangle17PrimitiveTypeNode9outputPreER12OutputStreamNS0_11OutputFlagsE(ptr noundef nonnull align 8 dereferenceable(20) %0, ptr noundef nonnull align 8 dereferenceable(32) %1, i32 noundef %2) unnamed_addr #0 align 2 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca %class.StringView, align 8
  %8 = alloca %class.StringView, align 8
  %9 = alloca %class.StringView, align 8
  %10 = alloca %class.StringView, align 8
  %11 = alloca %class.StringView, align 8
  %12 = alloca %class.StringView, align 8
  %13 = alloca %class.StringView, align 8
  %14 = alloca %class.StringView, align 8
  %15 = alloca %class.StringView, align 8
  %16 = alloca %class.StringView, align 8
  %17 = alloca %class.StringView, align 8
  %18 = alloca %class.StringView, align 8
  %19 = alloca %class.StringView, align 8
  %20 = alloca %class.StringView, align 8
  %21 = alloca %class.StringView, align 8
  %22 = alloca %class.StringView, align 8
  %23 = alloca %class.StringView, align 8
  %24 = alloca %class.StringView, align 8
  %25 = alloca %class.StringView, align 8
  %26 = alloca %class.StringView, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store i32 %2, ptr %6, align 4, !tbaa !9
  %27 = load ptr, ptr %4, align 8
  %28 = getelementptr inbounds %"struct.llvh::ms_demangle::PrimitiveTypeNode", ptr %27, i32 0, i32 1
  %29 = load i32, ptr %28, align 8, !tbaa !11
  switch i32 %29, label %170 [
    i32 0, label %30
    i32 1, label %37
    i32 2, label %44
    i32 3, label %51
    i32 4, label %58
    i32 5, label %65
    i32 6, label %72
    i32 7, label %79
    i32 8, label %86
    i32 9, label %93
    i32 10, label %100
    i32 11, label %107
    i32 12, label %114
    i32 13, label %121
    i32 14, label %128
    i32 15, label %135
    i32 16, label %142
    i32 17, label %149
    i32 18, label %156
    i32 19, label %163
  ]

30:                                               ; preds = %3
  %31 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN10StringViewC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef @.str)
  %32 = getelementptr inbounds { ptr, ptr }, ptr %7, i32 0, i32 0
  %33 = load ptr, ptr %32, align 8
  %34 = getelementptr inbounds { ptr, ptr }, ptr %7, i32 0, i32 1
  %35 = load ptr, ptr %34, align 8
  %36 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZN12OutputStreamlsE10StringView(ptr noundef nonnull align 8 dereferenceable(32) %31, ptr %33, ptr %35)
  br label %170

37:                                               ; preds = %3
  %38 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN10StringViewC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef @.str.1)
  %39 = getelementptr inbounds { ptr, ptr }, ptr %8, i32 0, i32 0
  %40 = load ptr, ptr %39, align 8
  %41 = getelementptr inbounds { ptr, ptr }, ptr %8, i32 0, i32 1
  %42 = load ptr, ptr %41, align 8
  %43 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZN12OutputStreamlsE10StringView(ptr noundef nonnull align 8 dereferenceable(32) %38, ptr %40, ptr %42)
  br label %170

44:                                               ; preds = %3
  %45 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN10StringViewC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef @.str.2)
  %46 = getelementptr inbounds { ptr, ptr }, ptr %9, i32 0, i32 0
  %47 = load ptr, ptr %46, align 8
  %48 = getelementptr inbounds { ptr, ptr }, ptr %9, i32 0, i32 1
  %49 = load ptr, ptr %48, align 8
  %50 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZN12OutputStreamlsE10StringView(ptr noundef nonnull align 8 dereferenceable(32) %45, ptr %47, ptr %49)
  br label %170

51:                                               ; preds = %3
  %52 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN10StringViewC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef @.str.3)
  %53 = getelementptr inbounds { ptr, ptr }, ptr %10, i32 0, i32 0
  %54 = load ptr, ptr %53, align 8
  %55 = getelementptr inbounds { ptr, ptr }, ptr %10, i32 0, i32 1
  %56 = load ptr, ptr %55, align 8
  %57 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZN12OutputStreamlsE10StringView(ptr noundef nonnull align 8 dereferenceable(32) %52, ptr %54, ptr %56)
  br label %170

58:                                               ; preds = %3
  %59 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN10StringViewC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef @.str.4)
  %60 = getelementptr inbounds { ptr, ptr }, ptr %11, i32 0, i32 0
  %61 = load ptr, ptr %60, align 8
  %62 = getelementptr inbounds { ptr, ptr }, ptr %11, i32 0, i32 1
  %63 = load ptr, ptr %62, align 8
  %64 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZN12OutputStreamlsE10StringView(ptr noundef nonnull align 8 dereferenceable(32) %59, ptr %61, ptr %63)
  br label %170

65:                                               ; preds = %3
  %66 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN10StringViewC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef @.str.5)
  %67 = getelementptr inbounds { ptr, ptr }, ptr %12, i32 0, i32 0
  %68 = load ptr, ptr %67, align 8
  %69 = getelementptr inbounds { ptr, ptr }, ptr %12, i32 0, i32 1
  %70 = load ptr, ptr %69, align 8
  %71 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZN12OutputStreamlsE10StringView(ptr noundef nonnull align 8 dereferenceable(32) %66, ptr %68, ptr %70)
  br label %170

72:                                               ; preds = %3
  %73 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN10StringViewC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef @.str.6)
  %74 = getelementptr inbounds { ptr, ptr }, ptr %13, i32 0, i32 0
  %75 = load ptr, ptr %74, align 8
  %76 = getelementptr inbounds { ptr, ptr }, ptr %13, i32 0, i32 1
  %77 = load ptr, ptr %76, align 8
  %78 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZN12OutputStreamlsE10StringView(ptr noundef nonnull align 8 dereferenceable(32) %73, ptr %75, ptr %77)
  br label %170

79:                                               ; preds = %3
  %80 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN10StringViewC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef @.str.7)
  %81 = getelementptr inbounds { ptr, ptr }, ptr %14, i32 0, i32 0
  %82 = load ptr, ptr %81, align 8
  %83 = getelementptr inbounds { ptr, ptr }, ptr %14, i32 0, i32 1
  %84 = load ptr, ptr %83, align 8
  %85 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZN12OutputStreamlsE10StringView(ptr noundef nonnull align 8 dereferenceable(32) %80, ptr %82, ptr %84)
  br label %170

86:                                               ; preds = %3
  %87 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN10StringViewC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef @.str.8)
  %88 = getelementptr inbounds { ptr, ptr }, ptr %15, i32 0, i32 0
  %89 = load ptr, ptr %88, align 8
  %90 = getelementptr inbounds { ptr, ptr }, ptr %15, i32 0, i32 1
  %91 = load ptr, ptr %90, align 8
  %92 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZN12OutputStreamlsE10StringView(ptr noundef nonnull align 8 dereferenceable(32) %87, ptr %89, ptr %91)
  br label %170

93:                                               ; preds = %3
  %94 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN10StringViewC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef @.str.9)
  %95 = getelementptr inbounds { ptr, ptr }, ptr %16, i32 0, i32 0
  %96 = load ptr, ptr %95, align 8
  %97 = getelementptr inbounds { ptr, ptr }, ptr %16, i32 0, i32 1
  %98 = load ptr, ptr %97, align 8
  %99 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZN12OutputStreamlsE10StringView(ptr noundef nonnull align 8 dereferenceable(32) %94, ptr %96, ptr %98)
  br label %170

100:                                              ; preds = %3
  %101 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN10StringViewC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %17, ptr noundef @.str.10)
  %102 = getelementptr inbounds { ptr, ptr }, ptr %17, i32 0, i32 0
  %103 = load ptr, ptr %102, align 8
  %104 = getelementptr inbounds { ptr, ptr }, ptr %17, i32 0, i32 1
  %105 = load ptr, ptr %104, align 8
  %106 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZN12OutputStreamlsE10StringView(ptr noundef nonnull align 8 dereferenceable(32) %101, ptr %103, ptr %105)
  br label %170

107:                                              ; preds = %3
  %108 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN10StringViewC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef @.str.11)
  %109 = getelementptr inbounds { ptr, ptr }, ptr %18, i32 0, i32 0
  %110 = load ptr, ptr %109, align 8
  %111 = getelementptr inbounds { ptr, ptr }, ptr %18, i32 0, i32 1
  %112 = load ptr, ptr %111, align 8
  %113 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZN12OutputStreamlsE10StringView(ptr noundef nonnull align 8 dereferenceable(32) %108, ptr %110, ptr %112)
  br label %170

114:                                              ; preds = %3
  %115 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN10StringViewC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %19, ptr noundef @.str.12)
  %116 = getelementptr inbounds { ptr, ptr }, ptr %19, i32 0, i32 0
  %117 = load ptr, ptr %116, align 8
  %118 = getelementptr inbounds { ptr, ptr }, ptr %19, i32 0, i32 1
  %119 = load ptr, ptr %118, align 8
  %120 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZN12OutputStreamlsE10StringView(ptr noundef nonnull align 8 dereferenceable(32) %115, ptr %117, ptr %119)
  br label %170

121:                                              ; preds = %3
  %122 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN10StringViewC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef @.str.13)
  %123 = getelementptr inbounds { ptr, ptr }, ptr %20, i32 0, i32 0
  %124 = load ptr, ptr %123, align 8
  %125 = getelementptr inbounds { ptr, ptr }, ptr %20, i32 0, i32 1
  %126 = load ptr, ptr %125, align 8
  %127 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZN12OutputStreamlsE10StringView(ptr noundef nonnull align 8 dereferenceable(32) %122, ptr %124, ptr %126)
  br label %170

128:                                              ; preds = %3
  %129 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN10StringViewC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %21, ptr noundef @.str.14)
  %130 = getelementptr inbounds { ptr, ptr }, ptr %21, i32 0, i32 0
  %131 = load ptr, ptr %130, align 8
  %132 = getelementptr inbounds { ptr, ptr }, ptr %21, i32 0, i32 1
  %133 = load ptr, ptr %132, align 8
  %134 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZN12OutputStreamlsE10StringView(ptr noundef nonnull align 8 dereferenceable(32) %129, ptr %131, ptr %133)
  br label %170

135:                                              ; preds = %3
  %136 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN10StringViewC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %22, ptr noundef @.str.15)
  %137 = getelementptr inbounds { ptr, ptr }, ptr %22, i32 0, i32 0
  %138 = load ptr, ptr %137, align 8
  %139 = getelementptr inbounds { ptr, ptr }, ptr %22, i32 0, i32 1
  %140 = load ptr, ptr %139, align 8
  %141 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZN12OutputStreamlsE10StringView(ptr noundef nonnull align 8 dereferenceable(32) %136, ptr %138, ptr %140)
  br label %170

142:                                              ; preds = %3
  %143 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN10StringViewC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %23, ptr noundef @.str.16)
  %144 = getelementptr inbounds { ptr, ptr }, ptr %23, i32 0, i32 0
  %145 = load ptr, ptr %144, align 8
  %146 = getelementptr inbounds { ptr, ptr }, ptr %23, i32 0, i32 1
  %147 = load ptr, ptr %146, align 8
  %148 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZN12OutputStreamlsE10StringView(ptr noundef nonnull align 8 dereferenceable(32) %143, ptr %145, ptr %147)
  br label %170

149:                                              ; preds = %3
  %150 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN10StringViewC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %24, ptr noundef @.str.17)
  %151 = getelementptr inbounds { ptr, ptr }, ptr %24, i32 0, i32 0
  %152 = load ptr, ptr %151, align 8
  %153 = getelementptr inbounds { ptr, ptr }, ptr %24, i32 0, i32 1
  %154 = load ptr, ptr %153, align 8
  %155 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZN12OutputStreamlsE10StringView(ptr noundef nonnull align 8 dereferenceable(32) %150, ptr %152, ptr %154)
  br label %170

156:                                              ; preds = %3
  %157 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN10StringViewC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %25, ptr noundef @.str.18)
  %158 = getelementptr inbounds { ptr, ptr }, ptr %25, i32 0, i32 0
  %159 = load ptr, ptr %158, align 8
  %160 = getelementptr inbounds { ptr, ptr }, ptr %25, i32 0, i32 1
  %161 = load ptr, ptr %160, align 8
  %162 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZN12OutputStreamlsE10StringView(ptr noundef nonnull align 8 dereferenceable(32) %157, ptr %159, ptr %161)
  br label %170

163:                                              ; preds = %3
  %164 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN10StringViewC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %26, ptr noundef @.str.19)
  %165 = getelementptr inbounds { ptr, ptr }, ptr %26, i32 0, i32 0
  %166 = load ptr, ptr %165, align 8
  %167 = getelementptr inbounds { ptr, ptr }, ptr %26, i32 0, i32 1
  %168 = load ptr, ptr %167, align 8
  %169 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZN12OutputStreamlsE10StringView(ptr noundef nonnull align 8 dereferenceable(32) %164, ptr %166, ptr %168)
  br label %170

170:                                              ; preds = %163, %156, %149, %142, %135, %128, %121, %114, %107, %100, %93, %86, %79, %72, %65, %58, %51, %44, %37, %30, %3
  %171 = load ptr, ptr %5, align 8, !tbaa !5
  %172 = getelementptr inbounds %"struct.llvh::ms_demangle::TypeNode", ptr %27, i32 0, i32 1
  %173 = load i8, ptr %172, align 4, !tbaa !18
  call void @_ZL16outputQualifiersR12OutputStreamN4llvh11ms_demangle10QualifiersEbb(ptr noundef nonnull align 8 dereferenceable(32) %171, i8 noundef zeroext %173, i1 noundef zeroext true, i1 noundef zeroext false)
  ret void
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZN12OutputStreamlsE10StringView(ptr noundef nonnull align 8 dereferenceable(32), ptr, ptr) #0 align 2

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL16outputQualifiersR12OutputStreamN4llvh11ms_demangle10QualifiersEbb(ptr noundef nonnull align 8 dereferenceable(32), i8 noundef zeroext, i1 noundef zeroext, i1 noundef zeroext) #0

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 = !{!"_ZTSN4llvh11ms_demangle11OutputFlagsE", !7, i64 0}
!11 = !{!12, !17, i64 16}
!12 = !{!"_ZTSN4llvh11ms_demangle17PrimitiveTypeNodeE", !13, i64 0, !17, i64 16}
!13 = !{!"_ZTSN4llvh11ms_demangle8TypeNodeE", !14, i64 0, !16, i64 12}
!14 = !{!"_ZTSN4llvh11ms_demangle4NodeE", !15, i64 8}
!15 = !{!"_ZTSN4llvh11ms_demangle8NodeKindE", !7, i64 0}
!16 = !{!"_ZTSN4llvh11ms_demangle10QualifiersE", !7, i64 0}
!17 = !{!"_ZTSN4llvh11ms_demangle13PrimitiveKindE", !7, i64 0}
!18 = !{!13, !16, i64 12}


; 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.StringView = type { ptr, ptr }

@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [15 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK4llvh11ms_demangle17PrimitiveTypeNode9outputPreER12OutputStreamNS0_11OutputFlagsE(ptr nocapture noundef nonnull readonly align 8 dereferenceable(20) %0, ptr noundef nonnull align 8 dereferenceable(32) %1, i32 noundef %2) unnamed_addr #0 align 2 {
  %4 = alloca %class.StringView, align 8
  %5 = alloca %class.StringView, align 8
  %6 = alloca %class.StringView, align 8
  %7 = alloca %class.StringView, align 8
  %8 = alloca %class.StringView, align 8
  %9 = alloca %class.StringView, align 8
  %10 = alloca %class.StringView, align 8
  %11 = alloca %class.StringView, align 8
  %12 = alloca %class.StringView, align 8
  %13 = alloca %class.StringView, align 8
  %14 = alloca %class.StringView, align 8
  %15 = alloca %class.StringView, align 8
  %16 = alloca %class.StringView, align 8
  %17 = alloca %class.StringView, align 8
  %18 = alloca %class.StringView, align 8
  %19 = alloca %class.StringView, align 8
  %20 = alloca %class.StringView, align 8
  %21 = alloca %class.StringView, align 8
  %22 = alloca %class.StringView, align 8
  %23 = alloca %class.StringView, align 8
  %24 = getelementptr inbounds i8, ptr %0, i64 16
  %25 = load i32, ptr %24, align 8, !tbaa !5
  switch i32 %25, label %48 [
    i32 0, label %26
    i32 1, label %27
    i32 2, label %28
    i32 3, label %29
    i32 4, label %30
    i32 5, label %31
    i32 6, label %32
    i32 7, label %33
    i32 8, label %34
    i32 9, label %35
    i32 10, label %36
    i32 11, label %37
    i32 12, label %38
    i32 13, label %39
    i32 14, label %40
    i32 15, label %41
    i32 16, label %42
    i32 17, label %43
    i32 18, label %44
    i32 19, label %45
  ]

26:                                               ; preds = %3
  %.sink24.sroa.gep43 = getelementptr inbounds i8, ptr %4, i64 8
  call void @_ZN10StringViewC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull @.str)
  br label %.sink.split

27:                                               ; preds = %3
  %.sink24.sroa.gep42 = getelementptr inbounds i8, ptr %5, i64 8
  call void @_ZN10StringViewC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull @.str.1)
  br label %.sink.split

28:                                               ; preds = %3
  %.sink24.sroa.gep41 = getelementptr inbounds i8, ptr %6, i64 8
  call void @_ZN10StringViewC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull @.str.2)
  br label %.sink.split

29:                                               ; preds = %3
  %.sink24.sroa.gep40 = getelementptr inbounds i8, ptr %7, i64 8
  call void @_ZN10StringViewC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull @.str.3)
  br label %.sink.split

30:                                               ; preds = %3
  %.sink24.sroa.gep39 = getelementptr inbounds i8, ptr %8, i64 8
  call void @_ZN10StringViewC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef nonnull @.str.4)
  br label %.sink.split

31:                                               ; preds = %3
  %.sink24.sroa.gep38 = getelementptr inbounds i8, ptr %9, i64 8
  call void @_ZN10StringViewC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull @.str.5)
  br label %.sink.split

32:                                               ; preds = %3
  %.sink24.sroa.gep37 = getelementptr inbounds i8, ptr %10, i64 8
  call void @_ZN10StringViewC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull @.str.6)
  br label %.sink.split

33:                                               ; preds = %3
  %.sink24.sroa.gep36 = getelementptr inbounds i8, ptr %11, i64 8
  call void @_ZN10StringViewC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull @.str.7)
  br label %.sink.split

34:                                               ; preds = %3
  %.sink24.sroa.gep35 = getelementptr inbounds i8, ptr %12, i64 8
  call void @_ZN10StringViewC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull @.str.8)
  br label %.sink.split

35:                                               ; preds = %3
  %.sink24.sroa.gep34 = getelementptr inbounds i8, ptr %13, i64 8
  call void @_ZN10StringViewC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull @.str.9)
  br label %.sink.split

36:                                               ; preds = %3
  %.sink24.sroa.gep33 = getelementptr inbounds i8, ptr %14, i64 8
  call void @_ZN10StringViewC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef nonnull @.str.10)
  br label %.sink.split

37:                                               ; preds = %3
  %.sink24.sroa.gep32 = getelementptr inbounds i8, ptr %15, i64 8
  call void @_ZN10StringViewC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull @.str.11)
  br label %.sink.split

38:                                               ; preds = %3
  %.sink24.sroa.gep31 = getelementptr inbounds i8, ptr %16, i64 8
  call void @_ZN10StringViewC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef nonnull @.str.12)
  br label %.sink.split

39:                                               ; preds = %3
  %.sink24.sroa.gep30 = getelementptr inbounds i8, ptr %17, i64 8
  call void @_ZN10StringViewC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %17, ptr noundef nonnull @.str.13)
  br label %.sink.split

40:                                               ; preds = %3
  %.sink24.sroa.gep29 = getelementptr inbounds i8, ptr %18, i64 8
  call void @_ZN10StringViewC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef nonnull @.str.14)
  br label %.sink.split

41:                                               ; preds = %3
  %.sink24.sroa.gep28 = getelementptr inbounds i8, ptr %19, i64 8
  call void @_ZN10StringViewC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %19, ptr noundef nonnull @.str.15)
  br label %.sink.split

42:                                               ; preds = %3
  %.sink24.sroa.gep27 = getelementptr inbounds i8, ptr %20, i64 8
  call void @_ZN10StringViewC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef nonnull @.str.16)
  br label %.sink.split

43:                                               ; preds = %3
  %.sink24.sroa.gep26 = getelementptr inbounds i8, ptr %21, i64 8
  call void @_ZN10StringViewC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %21, ptr noundef nonnull @.str.17)
  br label %.sink.split

44:                                               ; preds = %3
  %.sink24.sroa.gep25 = getelementptr inbounds i8, ptr %22, i64 8
  call void @_ZN10StringViewC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %22, ptr noundef nonnull @.str.18)
  br label %.sink.split

45:                                               ; preds = %3
  %.sink24.sroa.gep = getelementptr inbounds i8, ptr %23, i64 8
  call void @_ZN10StringViewC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %23, ptr noundef nonnull @.str.19)
  br label %.sink.split

.sink.split:                                      ; preds = %26, %27, %28, %29, %30, %31, %32, %33, %34, %35, %36, %37, %38, %39, %40, %41, %42, %43, %44, %45
  %.sink24.sroa.phi = phi ptr [ %.sink24.sroa.gep, %45 ], [ %.sink24.sroa.gep25, %44 ], [ %.sink24.sroa.gep26, %43 ], [ %.sink24.sroa.gep27, %42 ], [ %.sink24.sroa.gep28, %41 ], [ %.sink24.sroa.gep29, %40 ], [ %.sink24.sroa.gep30, %39 ], [ %.sink24.sroa.gep31, %38 ], [ %.sink24.sroa.gep32, %37 ], [ %.sink24.sroa.gep33, %36 ], [ %.sink24.sroa.gep34, %35 ], [ %.sink24.sroa.gep35, %34 ], [ %.sink24.sroa.gep36, %33 ], [ %.sink24.sroa.gep37, %32 ], [ %.sink24.sroa.gep38, %31 ], [ %.sink24.sroa.gep39, %30 ], [ %.sink24.sroa.gep40, %29 ], [ %.sink24.sroa.gep41, %28 ], [ %.sink24.sroa.gep42, %27 ], [ %.sink24.sroa.gep43, %26 ]
  %.sink24 = phi ptr [ %23, %45 ], [ %22, %44 ], [ %21, %43 ], [ %20, %42 ], [ %19, %41 ], [ %18, %40 ], [ %17, %39 ], [ %16, %38 ], [ %15, %37 ], [ %14, %36 ], [ %13, %35 ], [ %12, %34 ], [ %11, %33 ], [ %10, %32 ], [ %9, %31 ], [ %8, %30 ], [ %7, %29 ], [ %6, %28 ], [ %5, %27 ], [ %4, %26 ]
  %.sink = load ptr, ptr %.sink24, align 8
  %46 = load ptr, ptr %.sink24.sroa.phi, align 8
  %47 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZN12OutputStreamlsE10StringView(ptr noundef nonnull align 8 dereferenceable(32) %1, ptr %.sink, ptr %46)
  br label %48

48:                                               ; preds = %.sink.split, %3
  %49 = getelementptr inbounds i8, ptr %0, i64 12
  %50 = load i8, ptr %49, align 4, !tbaa !14
  call void @_ZL16outputQualifiersR12OutputStreamN4llvh11ms_demangle10QualifiersEbb(ptr noundef nonnull align 8 dereferenceable(32) %1, i8 noundef zeroext %50, i1 noundef zeroext true, i1 noundef zeroext false)
  ret void
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZN12OutputStreamlsE10StringView(ptr noundef nonnull align 8 dereferenceable(32), ptr, ptr) local_unnamed_addr #0 align 2

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL16outputQualifiersR12OutputStreamN4llvh11ms_demangle10QualifiersEbb(ptr noundef nonnull align 8 dereferenceable(32), i8 noundef zeroext, i1 noundef zeroext, i1 noundef zeroext) local_unnamed_addr #0

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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, !13, i64 16}
!6 = !{!"_ZTSN4llvh11ms_demangle17PrimitiveTypeNodeE", !7, i64 0, !13, i64 16}
!7 = !{!"_ZTSN4llvh11ms_demangle8TypeNodeE", !8, i64 0, !12, i64 12}
!8 = !{!"_ZTSN4llvh11ms_demangle4NodeE", !9, i64 8}
!9 = !{!"_ZTSN4llvh11ms_demangle8NodeKindE", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C++ TBAA"}
!12 = !{!"_ZTSN4llvh11ms_demangle10QualifiersE", !10, i64 0}
!13 = !{!"_ZTSN4llvh11ms_demangle13PrimitiveKindE", !10, i64 0}
!14 = !{!7, !12, i64 12}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass