; LLVM IR from ox-vgg/vise :: src/search_engine/relja_retrival/compression (char_streams)

; 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.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }

@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [28 x i8], align 1
@__FUNCTION__._ZN10charStream16charStreamCreateEh = external hidden unnamed_addr constant [17 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [110 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [12 x i8], align 1
@_ZTISt13runtime_error = external constant ptr

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN10charStream16charStreamCreateEh(i8 noundef zeroext %0) #0 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca i8, align 1
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  store i8 %0, ptr %2, align 1, !tbaa !5
  %6 = load i8, ptr %2, align 1, !tbaa !5
  %7 = zext i8 %6 to i32
  %8 = icmp sle i32 %7, 64
  br i1 %8, label %15, label %9

9:                                                ; preds = %1
  %10 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str)
  %11 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef @__FUNCTION__._ZN10charStream16charStreamCreateEh)
  %12 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef @.str.1)
  %13 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %12, i32 noundef 24)
  %14 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef @.str.2)
  call void @exit(i32 noundef 1) #9
  unreachable

15:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #10
  %16 = load i8, ptr %2, align 1, !tbaa !5
  %17 = zext i8 %16 to i32
  %18 = icmp sle i32 %17, 4
  br i1 %18, label %19, label %26

19:                                               ; preds = %15
  %20 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 56) #11
  invoke void @_ZN11charStream4C2Ev(ptr noundef nonnull align 8 dereferenceable(49) %20)
          to label %21 unwind label %22

21:                                               ; preds = %19
  store ptr %20, ptr %3, align 8, !tbaa !8
  br label %105

22:                                               ; preds = %19
  %23 = landingpad { ptr, i32 }
          cleanup
  %24 = extractvalue { ptr, i32 } %23, 0
  store ptr %24, ptr %4, align 8
  %25 = extractvalue { ptr, i32 } %23, 1
  store i32 %25, ptr %5, align 4
  call void @_ZdlPvm(ptr noundef %20, i64 noundef 56) #12
  br label %146

26:                                               ; preds = %15
  %27 = load i8, ptr %2, align 1, !tbaa !5
  %28 = zext i8 %27 to i32
  %29 = icmp sle i32 %28, 6
  br i1 %29, label %30, label %37

30:                                               ; preds = %26
  %31 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 56) #11
  invoke void @_ZN11charStream6C2Ev(ptr noundef nonnull align 8 dereferenceable(49) %31)
          to label %32 unwind label %33

32:                                               ; preds = %30
  store ptr %31, ptr %3, align 8, !tbaa !8
  br label %104

33:                                               ; preds = %30
  %34 = landingpad { ptr, i32 }
          cleanup
  %35 = extractvalue { ptr, i32 } %34, 0
  store ptr %35, ptr %4, align 8
  %36 = extractvalue { ptr, i32 } %34, 1
  store i32 %36, ptr %5, align 4
  call void @_ZdlPvm(ptr noundef %31, i64 noundef 56) #12
  br label %146

37:                                               ; preds = %26
  %38 = load i8, ptr %2, align 1, !tbaa !5
  %39 = zext i8 %38 to i32
  %40 = icmp sle i32 %39, 8
  br i1 %40, label %41, label %48

41:                                               ; preds = %37
  %42 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 48) #11
  invoke void @_ZN16charStreamNativeIhEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %42)
          to label %43 unwind label %44

43:                                               ; preds = %41
  store ptr %42, ptr %3, align 8, !tbaa !8
  br label %103

44:                                               ; preds = %41
  %45 = landingpad { ptr, i32 }
          cleanup
  %46 = extractvalue { ptr, i32 } %45, 0
  store ptr %46, ptr %4, align 8
  %47 = extractvalue { ptr, i32 } %45, 1
  store i32 %47, ptr %5, align 4
  call void @_ZdlPvm(ptr noundef %42, i64 noundef 48) #12
  br label %146

48:                                               ; preds = %37
  %49 = load i8, ptr %2, align 1, !tbaa !5
  %50 = zext i8 %49 to i32
  %51 = icmp sle i32 %50, 10
  br i1 %51, label %52, label %59

52:                                               ; preds = %48
  %53 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 56) #11
  invoke void @_ZN12charStream10C2Ev(ptr noundef nonnull align 8 dereferenceable(49) %53)
          to label %54 unwind label %55

54:                                               ; preds = %52
  store ptr %53, ptr %3, align 8, !tbaa !8
  br label %102

55:                                               ; preds = %52
  %56 = landingpad { ptr, i32 }
          cleanup
  %57 = extractvalue { ptr, i32 } %56, 0
  store ptr %57, ptr %4, align 8
  %58 = extractvalue { ptr, i32 } %56, 1
  store i32 %58, ptr %5, align 4
  call void @_ZdlPvm(ptr noundef %53, i64 noundef 56) #12
  br label %146

59:                                               ; preds = %48
  %60 = load i8, ptr %2, align 1, !tbaa !5
  %61 = zext i8 %60 to i32
  %62 = icmp sle i32 %61, 12
  br i1 %62, label %63, label %70

63:                                               ; preds = %59
  %64 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 48) #11
  invoke void @_ZN12charStream12C2Ev(ptr noundef nonnull align 8 dereferenceable(48) %64)
          to label %65 unwind label %66

65:                                               ; preds = %63
  store ptr %64, ptr %3, align 8, !tbaa !8
  br label %101

66:                                               ; preds = %63
  %67 = landingpad { ptr, i32 }
          cleanup
  %68 = extractvalue { ptr, i32 } %67, 0
  store ptr %68, ptr %4, align 8
  %69 = extractvalue { ptr, i32 } %67, 1
  store i32 %69, ptr %5, align 4
  call void @_ZdlPvm(ptr noundef %64, i64 noundef 48) #12
  br label %146

70:                                               ; preds = %59
  %71 = load i8, ptr %2, align 1, !tbaa !5
  %72 = zext i8 %71 to i32
  %73 = icmp sle i32 %72, 16
  br i1 %73, label %74, label %81

74:                                               ; preds = %70
  %75 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 48) #11
  invoke void @_ZN16charStreamNativeItEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %75)
          to label %76 unwind label %77

76:                                               ; preds = %74
  store ptr %75, ptr %3, align 8, !tbaa !8
  br label %100

77:                                               ; preds = %74
  %78 = landingpad { ptr, i32 }
          cleanup
  %79 = extractvalue { ptr, i32 } %78, 0
  store ptr %79, ptr %4, align 8
  %80 = extractvalue { ptr, i32 } %78, 1
  store i32 %80, ptr %5, align 4
  call void @_ZdlPvm(ptr noundef %75, i64 noundef 48) #12
  br label %146

81:                                               ; preds = %70
  %82 = load i8, ptr %2, align 1, !tbaa !5
  %83 = zext i8 %82 to i32
  %84 = icmp sle i32 %83, 32
  br i1 %84, label %85, label %92

85:                                               ; preds = %81
  %86 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 48) #11
  invoke void @_ZN16charStreamNativeIjEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %86)
          to label %87 unwind label %88

87:                                               ; preds = %85
  store ptr %86, ptr %3, align 8, !tbaa !8
  br label %99

88:                                               ; preds = %85
  %89 = landingpad { ptr, i32 }
          cleanup
  %90 = extractvalue { ptr, i32 } %89, 0
  store ptr %90, ptr %4, align 8
  %91 = extractvalue { ptr, i32 } %89, 1
  store i32 %91, ptr %5, align 4
  call void @_ZdlPvm(ptr noundef %86, i64 noundef 48) #12
  br label %146

92:                                               ; preds = %81
  %93 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 48) #11
  invoke void @_ZN16charStreamNativeImEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %93)
          to label %94 unwind label %95

94:                                               ; preds = %92
  store ptr %93, ptr %3, align 8, !tbaa !8
  br label %99

95:                                               ; preds = %92
  %96 = landingpad { ptr, i32 }
          cleanup
  %97 = extractvalue { ptr, i32 } %96, 0
  store ptr %97, ptr %4, align 8
  %98 = extractvalue { ptr, i32 } %96, 1
  store i32 %98, ptr %5, align 4
  call void @_ZdlPvm(ptr noundef %93, i64 noundef 48) #12
  br label %146

99:                                               ; preds = %94, %87
  br label %100

100:                                              ; preds = %99, %76
  br label %101

101:                                              ; preds = %100, %65
  br label %102

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

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

104:                                              ; preds = %103, %32
  br label %105

105:                                              ; preds = %104, %21
  %106 = load i8, ptr %2, align 1, !tbaa !5
  %107 = zext i8 %106 to i32
  %108 = icmp eq i32 %107, 4
  br i1 %108, label %144, label %109

109:                                              ; preds = %105
  %110 = load i8, ptr %2, align 1, !tbaa !5
  %111 = zext i8 %110 to i32
  %112 = icmp eq i32 %111, 6
  br i1 %112, label %144, label %113

113:                                              ; preds = %109
  %114 = load i8, ptr %2, align 1, !tbaa !5
  %115 = zext i8 %114 to i32
  %116 = icmp eq i32 %115, 8
  br i1 %116, label %144, label %117

117:                                              ; preds = %113
  %118 = load i8, ptr %2, align 1, !tbaa !5
  %119 = zext i8 %118 to i32
  %120 = icmp eq i32 %119, 10
  br i1 %120, label %144, label %121

121:                                              ; preds = %117
  %122 = load i8, ptr %2, align 1, !tbaa !5
  %123 = zext i8 %122 to i32
  %124 = icmp eq i32 %123, 12
  br i1 %124, label %144, label %125

125:                                              ; preds = %121
  %126 = load i8, ptr %2, align 1, !tbaa !5
  %127 = zext i8 %126 to i32
  %128 = icmp eq i32 %127, 16
  br i1 %128, label %144, label %129

129:                                              ; preds = %125
  %130 = load i8, ptr %2, align 1, !tbaa !5
  %131 = zext i8 %130 to i32
  %132 = icmp eq i32 %131, 32
  br i1 %132, label %144, label %133

133:                                              ; preds = %129
  %134 = load i8, ptr %2, align 1, !tbaa !5
  %135 = zext i8 %134 to i32
  %136 = icmp eq i32 %135, 64
  br i1 %136, label %144, label %137

137:                                              ; preds = %133
  %138 = call ptr @__cxa_allocate_exception(i64 16) #10
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %138, ptr noundef @.str.3)
          to label %139 unwind label %140

139:                                              ; preds = %137
  call void @__cxa_throw(ptr %138, ptr @_ZTISt13runtime_error, ptr @_ZNSt13runtime_errorD1Ev) #13
  unreachable

140:                                              ; preds = %137
  %141 = landingpad { ptr, i32 }
          cleanup
  %142 = extractvalue { ptr, i32 } %141, 0
  store ptr %142, ptr %4, align 8
  %143 = extractvalue { ptr, i32 } %141, 1
  store i32 %143, ptr %5, align 4
  call void @__cxa_free_exception(ptr %138) #10
  br label %146

144:                                              ; preds = %133, %129, %125, %121, %117, %113, %109, %105
  %145 = load ptr, ptr %3, align 8, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #10
  ret ptr %145

146:                                              ; preds = %140, %95, %88, %77, %66, %55, %44, %33, %22
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #10
  br label %147

147:                                              ; preds = %146
  %148 = load ptr, ptr %4, align 8
  %149 = load i32, ptr %5, align 4
  %150 = insertvalue { ptr, i32 } poison, ptr %148, 0
  %151 = insertvalue { ptr, i32 } %150, i32 %149, 1
  resume { ptr, i32 } %151
}

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #2

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #3

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

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) #5

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #6

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

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

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

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

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

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

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

declare ptr @__cxa_allocate_exception(i64)

declare void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) unnamed_addr #2

declare void @__cxa_free_exception(ptr)

; Function Attrs: nounwind
declare void @_ZNSt13runtime_errorD1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #8

declare void @__cxa_throw(ptr, ptr, ptr)

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

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

!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 = !{!9, !9, i64 0}
!9 = !{!"any pointer", !6, i64 0}


; 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.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }

@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [28 x i8], align 1
@__FUNCTION__._ZN10charStream16charStreamCreateEh = external hidden unnamed_addr constant [17 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [110 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [12 x i8], align 1
@_ZTISt13runtime_error = external constant ptr

; Function Attrs: mustprogress uwtable
define dso_local noundef nonnull ptr @_ZN10charStream16charStreamCreateEh(i8 noundef zeroext %0) local_unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %2 = icmp ult i8 %0, 65
  br i1 %2, label %9, label %3

3:                                                ; preds = %1
  %4 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str)
  %5 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull @__FUNCTION__._ZN10charStream16charStreamCreateEh)
  %6 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull @.str.1)
  %7 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %6, i32 noundef 24)
  %8 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull @.str.2)
  tail call void @exit(i32 noundef 1) #8
  unreachable

9:                                                ; preds = %1
  %10 = icmp ult i8 %0, 5
  br i1 %10, label %11, label %15

11:                                               ; preds = %9
  %12 = tail call noalias noundef nonnull dereferenceable(56) ptr @_Znwm(i64 noundef 56) #9
  invoke void @_ZN11charStream4C2Ev(ptr noundef nonnull align 8 dereferenceable(49) %12)
          to label %46 unwind label %13

13:                                               ; preds = %11
  %14 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZdlPvm(ptr noundef nonnull %12, i64 noundef 56) #10
  br label %60

15:                                               ; preds = %9
  %16 = icmp ult i8 %0, 7
  br i1 %16, label %17, label %21

17:                                               ; preds = %15
  %18 = tail call noalias noundef nonnull dereferenceable(56) ptr @_Znwm(i64 noundef 56) #9
  invoke void @_ZN11charStream6C2Ev(ptr noundef nonnull align 8 dereferenceable(49) %18)
          to label %46 unwind label %19

19:                                               ; preds = %17
  %20 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZdlPvm(ptr noundef nonnull %18, i64 noundef 56) #10
  br label %60

21:                                               ; preds = %15
  %22 = icmp ult i8 %0, 9
  br i1 %22, label %23, label %25

23:                                               ; preds = %21
  %24 = tail call noalias noundef nonnull dereferenceable(48) ptr @_Znwm(i64 noundef 48) #9
  tail call void @_ZN16charStreamNativeIhEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %24)
  br label %46

25:                                               ; preds = %21
  %26 = icmp ult i8 %0, 11
  br i1 %26, label %27, label %31

27:                                               ; preds = %25
  %28 = tail call noalias noundef nonnull dereferenceable(56) ptr @_Znwm(i64 noundef 56) #9
  invoke void @_ZN12charStream10C2Ev(ptr noundef nonnull align 8 dereferenceable(49) %28)
          to label %46 unwind label %29

29:                                               ; preds = %27
  %30 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZdlPvm(ptr noundef nonnull %28, i64 noundef 56) #10
  br label %60

31:                                               ; preds = %25
  %32 = icmp ult i8 %0, 13
  br i1 %32, label %33, label %37

33:                                               ; preds = %31
  %34 = tail call noalias noundef nonnull dereferenceable(48) ptr @_Znwm(i64 noundef 48) #9
  invoke void @_ZN12charStream12C2Ev(ptr noundef nonnull align 8 dereferenceable(48) %34)
          to label %46 unwind label %35

35:                                               ; preds = %33
  %36 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZdlPvm(ptr noundef nonnull %34, i64 noundef 48) #10
  br label %60

37:                                               ; preds = %31
  %38 = icmp ult i8 %0, 17
  br i1 %38, label %39, label %41

39:                                               ; preds = %37
  %40 = tail call noalias noundef nonnull dereferenceable(48) ptr @_Znwm(i64 noundef 48) #9
  tail call void @_ZN16charStreamNativeItEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %40)
  br label %46

41:                                               ; preds = %37
  %42 = icmp ult i8 %0, 33
  %43 = tail call noalias noundef nonnull dereferenceable(48) ptr @_Znwm(i64 noundef 48) #9
  br i1 %42, label %44, label %45

44:                                               ; preds = %41
  tail call void @_ZN16charStreamNativeIjEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %43)
  br label %46

45:                                               ; preds = %41
  tail call void @_ZN16charStreamNativeImEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %43)
  br label %46

46:                                               ; preds = %33, %27, %17, %11, %39, %45, %44, %23
  %.039 = phi ptr [ %24, %23 ], [ %40, %39 ], [ %43, %44 ], [ %43, %45 ], [ %12, %11 ], [ %18, %17 ], [ %28, %27 ], [ %34, %33 ]
  %47 = and i8 %0, 125
  %48 = insertelement <4 x i8> poison, i8 %0, i64 0
  %49 = shufflevector <4 x i8> %48, <4 x i8> poison, <4 x i32> zeroinitializer
  %50 = icmp eq <4 x i8> %49, <i8 12, i8 16, i8 32, i8 64>
  %51 = bitcast <4 x i1> %50 to i4
  %52 = icmp ne i4 %51, 0
  %53 = freeze i1 %52
  br i1 %53, label %59, label %switch.early.test

switch.early.test:                                ; preds = %46
  switch i8 %47, label %54 [
    i8 8, label %59
    i8 4, label %59
  ]

54:                                               ; preds = %switch.early.test
  %55 = tail call ptr @__cxa_allocate_exception(i64 16) #11
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %55, ptr noundef nonnull @.str.3)
          to label %56 unwind label %57

56:                                               ; preds = %54
  tail call void @__cxa_throw(ptr nonnull %55, ptr nonnull @_ZTISt13runtime_error, ptr nonnull @_ZNSt13runtime_errorD1Ev) #12
  unreachable

57:                                               ; preds = %54
  %58 = landingpad { ptr, i32 }
          cleanup
  tail call void @__cxa_free_exception(ptr %55) #11
  br label %60

59:                                               ; preds = %switch.early.test, %switch.early.test, %46
  ret ptr %.039

60:                                               ; preds = %57, %35, %29, %19, %13
  %.pn = phi { ptr, i32 } [ %58, %57 ], [ %14, %13 ], [ %20, %19 ], [ %30, %29 ], [ %36, %35 ]
  resume { ptr, i32 } %.pn
}

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #2

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #3

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) local_unnamed_addr #4

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) local_unnamed_addr #5

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

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

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

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

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

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

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

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

declare void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) unnamed_addr #2

declare void @__cxa_free_exception(ptr) local_unnamed_addr

; Function Attrs: nounwind
declare void @_ZNSt13runtime_errorD1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #7

declare void @__cxa_throw(ptr, ptr, ptr) local_unnamed_addr

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 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "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 = { noreturn nounwind "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 = { nobuiltin allocsize(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 = { nobuiltin nounwind "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 = { 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 #7 = { nounwind "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 #8 = { noreturn nounwind }
attributes #9 = { builtin allocsize(0) }
attributes #10 = { builtin nounwind }
attributes #11 = { nounwind }
attributes #12 = { noreturn }

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


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalDCEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass