; LLVM IR from thepowersgang/mrustc :: src/parse/lex.ll (ZN5Lexer7getc_cpEv)

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

%struct.Codepoint = type { i32 }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::allocator" = type { i8 }

@_ZTIN12CompileError7GenericE = external dso_local constant { ptr, ptr, ptr }, align 8
@.str.51 = external hidden unnamed_addr constant [25 x i8], align 1

declare i32 @__gxx_personality_v0(...)

declare ptr @__cxa_allocate_exception(i64)

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

declare void @__cxa_throw(ptr, ptr, ptr)

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

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

declare void @__cxa_free_exception(ptr)

; Function Attrs: mustprogress uwtable
declare dso_local noundef signext i8 @_ZN5Lexer9getc_byteEv(ptr noundef nonnull align 8 dereferenceable(256)) #2 align 2

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

declare void @_ZN12CompileError7GenericC1ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef) unnamed_addr #3

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local i32 @_ZN5Lexer7getc_cpEv(ptr noundef nonnull align 8 dereferenceable(256) %0) #2 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %struct.Codepoint, align 4
  %3 = alloca ptr, align 8
  %4 = alloca i8, align 1
  %5 = alloca i32, align 4
  %6 = alloca i8, align 1
  %7 = alloca i32, align 4
  %8 = alloca i8, align 1
  %9 = alloca i8, align 1
  %10 = alloca i32, align 4
  %11 = alloca i8, align 1
  %12 = alloca i8, align 1
  %13 = alloca i8, align 1
  %14 = alloca i32, align 4
  %15 = alloca %"class.std::__cxx11::basic_string", align 8
  %16 = alloca %"class.std::allocator", align 1
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca i1, align 1
  store ptr %0, ptr %3, align 8, !tbaa !5
  %20 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %4) #4
  %21 = call noundef signext i8 @_ZN5Lexer9getc_byteEv(ptr noundef nonnull align 8 dereferenceable(256) %20)
  store i8 %21, ptr %4, align 1, !tbaa !9
  %22 = load i8, ptr %4, align 1, !tbaa !9
  %23 = zext i8 %22 to i32
  %24 = icmp slt i32 %23, 128
  br i1 %24, label %25, label %28

25:                                               ; preds = %1
  %26 = load i8, ptr %4, align 1, !tbaa !9
  %27 = zext i8 %26 to i32
  call void @_ZN9CodepointC2Ej(ptr noundef nonnull align 4 dereferenceable(4) %2, i32 noundef %27)
  store i32 1, ptr %5, align 4
  br label %161

28:                                               ; preds = %1
  %29 = load i8, ptr %4, align 1, !tbaa !9
  %30 = zext i8 %29 to i32
  %31 = and i32 %30, 192
  %32 = icmp eq i32 %31, 128
  br i1 %32, label %33, label %34

33:                                               ; preds = %28
  call void @_ZN9CodepointC2Ej(ptr noundef nonnull align 4 dereferenceable(4) %2, i32 noundef 65534)
  store i32 1, ptr %5, align 4
  br label %161

34:                                               ; preds = %28
  %35 = load i8, ptr %4, align 1, !tbaa !9
  %36 = zext i8 %35 to i32
  %37 = and i32 %36, 224
  %38 = icmp eq i32 %37, 192
  br i1 %38, label %39, label %58

39:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 1, ptr %6) #4
  %40 = call noundef signext i8 @_ZN5Lexer9getc_byteEv(ptr noundef nonnull align 8 dereferenceable(256) %20)
  store i8 %40, ptr %6, align 1, !tbaa !9
  %41 = load i8, ptr %6, align 1, !tbaa !9
  %42 = zext i8 %41 to i32
  %43 = and i32 %42, 192
  %44 = icmp ne i32 %43, 128
  br i1 %44, label %45, label %46

45:                                               ; preds = %39
  call void @_ZN9CodepointC2Ej(ptr noundef nonnull align 4 dereferenceable(4) %2, i32 noundef 65534)
  store i32 1, ptr %5, align 4
  br label %57

46:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  %47 = load i8, ptr %4, align 1, !tbaa !9
  %48 = zext i8 %47 to i32
  %49 = and i32 %48, 31
  %50 = shl i32 %49, 6
  %51 = load i8, ptr %6, align 1, !tbaa !9
  %52 = zext i8 %51 to i32
  %53 = and i32 %52, 63
  %54 = shl i32 %53, 0
  %55 = or i32 %50, %54
  store i32 %55, ptr %7, align 4, !tbaa !10
  %56 = load i32, ptr %7, align 4, !tbaa !10
  call void @_ZN9CodepointC2Ej(ptr noundef nonnull align 4 dereferenceable(4) %2, i32 noundef %56)
  store i32 1, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  br label %57

57:                                               ; preds = %46, %45
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #4
  br label %161

58:                                               ; preds = %34
  %59 = load i8, ptr %4, align 1, !tbaa !9
  %60 = zext i8 %59 to i32
  %61 = and i32 %60, 240
  %62 = icmp eq i32 %61, 224
  br i1 %62, label %63, label %95

63:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #4
  %64 = call noundef signext i8 @_ZN5Lexer9getc_byteEv(ptr noundef nonnull align 8 dereferenceable(256) %20)
  store i8 %64, ptr %8, align 1, !tbaa !9
  %65 = load i8, ptr %8, align 1, !tbaa !9
  %66 = zext i8 %65 to i32
  %67 = and i32 %66, 192
  %68 = icmp ne i32 %67, 128
  br i1 %68, label %69, label %70

69:                                               ; preds = %63
  call void @_ZN9CodepointC2Ej(ptr noundef nonnull align 4 dereferenceable(4) %2, i32 noundef 65534)
  store i32 1, ptr %5, align 4
  br label %94

70:                                               ; preds = %63
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #4
  %71 = call noundef signext i8 @_ZN5Lexer9getc_byteEv(ptr noundef nonnull align 8 dereferenceable(256) %20)
  store i8 %71, ptr %9, align 1, !tbaa !9
  %72 = load i8, ptr %9, align 1, !tbaa !9
  %73 = zext i8 %72 to i32
  %74 = and i32 %73, 192
  %75 = icmp ne i32 %74, 128
  br i1 %75, label %76, label %77

76:                                               ; preds = %70
  call void @_ZN9CodepointC2Ej(ptr noundef nonnull align 4 dereferenceable(4) %2, i32 noundef 65534)
  store i32 1, ptr %5, align 4
  br label %93

77:                                               ; preds = %70
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  %78 = load i8, ptr %4, align 1, !tbaa !9
  %79 = zext i8 %78 to i32
  %80 = and i32 %79, 15
  %81 = shl i32 %80, 12
  %82 = load i8, ptr %8, align 1, !tbaa !9
  %83 = zext i8 %82 to i32
  %84 = and i32 %83, 63
  %85 = shl i32 %84, 6
  %86 = or i32 %81, %85
  %87 = load i8, ptr %9, align 1, !tbaa !9
  %88 = zext i8 %87 to i32
  %89 = and i32 %88, 63
  %90 = shl i32 %89, 0
  %91 = or i32 %86, %90
  store i32 %91, ptr %10, align 4, !tbaa !10
  %92 = load i32, ptr %10, align 4, !tbaa !10
  call void @_ZN9CodepointC2Ej(ptr noundef nonnull align 4 dereferenceable(4) %2, i32 noundef %92)
  store i32 1, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  br label %93

93:                                               ; preds = %77, %76
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #4
  br label %94

94:                                               ; preds = %93, %69
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #4
  br label %161

95:                                               ; preds = %58
  %96 = load i8, ptr %4, align 1, !tbaa !9
  %97 = zext i8 %96 to i32
  %98 = and i32 %97, 248
  %99 = icmp eq i32 %98, 240
  br i1 %99, label %100, label %145

100:                                              ; preds = %95
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #4
  %101 = call noundef signext i8 @_ZN5Lexer9getc_byteEv(ptr noundef nonnull align 8 dereferenceable(256) %20)
  store i8 %101, ptr %11, align 1, !tbaa !9
  %102 = load i8, ptr %11, align 1, !tbaa !9
  %103 = zext i8 %102 to i32
  %104 = and i32 %103, 192
  %105 = icmp ne i32 %104, 128
  br i1 %105, label %106, label %107

106:                                              ; preds = %100
  call void @_ZN9CodepointC2Ej(ptr noundef nonnull align 4 dereferenceable(4) %2, i32 noundef 65534)
  store i32 1, ptr %5, align 4
  br label %144

107:                                              ; preds = %100
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #4
  %108 = call noundef signext i8 @_ZN5Lexer9getc_byteEv(ptr noundef nonnull align 8 dereferenceable(256) %20)
  store i8 %108, ptr %12, align 1, !tbaa !9
  %109 = load i8, ptr %12, align 1, !tbaa !9
  %110 = zext i8 %109 to i32
  %111 = and i32 %110, 192
  %112 = icmp ne i32 %111, 128
  br i1 %112, label %113, label %114

113:                                              ; preds = %107
  call void @_ZN9CodepointC2Ej(ptr noundef nonnull align 4 dereferenceable(4) %2, i32 noundef 65534)
  store i32 1, ptr %5, align 4
  br label %143

114:                                              ; preds = %107
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #4
  %115 = call noundef signext i8 @_ZN5Lexer9getc_byteEv(ptr noundef nonnull align 8 dereferenceable(256) %20)
  store i8 %115, ptr %13, align 1, !tbaa !9
  %116 = load i8, ptr %13, align 1, !tbaa !9
  %117 = zext i8 %116 to i32
  %118 = and i32 %117, 192
  %119 = icmp ne i32 %118, 128
  br i1 %119, label %120, label %121

120:                                              ; preds = %114
  call void @_ZN9CodepointC2Ej(ptr noundef nonnull align 4 dereferenceable(4) %2, i32 noundef 65534)
  store i32 1, ptr %5, align 4
  br label %142

121:                                              ; preds = %114
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  %122 = load i8, ptr %4, align 1, !tbaa !9
  %123 = zext i8 %122 to i32
  %124 = and i32 %123, 7
  %125 = shl i32 %124, 18
  %126 = load i8, ptr %11, align 1, !tbaa !9
  %127 = zext i8 %126 to i32
  %128 = and i32 %127, 63
  %129 = shl i32 %128, 12
  %130 = or i32 %125, %129
  %131 = load i8, ptr %12, align 1, !tbaa !9
  %132 = zext i8 %131 to i32
  %133 = and i32 %132, 63
  %134 = shl i32 %133, 6
  %135 = or i32 %130, %134
  %136 = load i8, ptr %13, align 1, !tbaa !9
  %137 = zext i8 %136 to i32
  %138 = and i32 %137, 63
  %139 = shl i32 %138, 0
  %140 = or i32 %135, %139
  store i32 %140, ptr %14, align 4, !tbaa !10
  %141 = load i32, ptr %14, align 4, !tbaa !10
  call void @_ZN9CodepointC2Ej(ptr noundef nonnull align 4 dereferenceable(4) %2, i32 noundef %141)
  store i32 1, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  br label %142

142:                                              ; preds = %121, %120
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #4
  br label %143

143:                                              ; preds = %142, %113
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #4
  br label %144

144:                                              ; preds = %143, %106
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #4
  br label %161

145:                                              ; preds = %95
  store i1 true, ptr %19, align 1
  %146 = call ptr @__cxa_allocate_exception(i64 40) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #4
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #4
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef @.str.51, ptr noundef nonnull align 1 dereferenceable(1) %16)
          to label %147 unwind label %149

147:                                              ; preds = %145
  invoke void @_ZN12CompileError7GenericC1ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(40) %146, ptr noundef %15)
          to label %148 unwind label %153

148:                                              ; preds = %147
  store i1 false, ptr %19, align 1
  invoke void @__cxa_throw(ptr %146, ptr @_ZTIN12CompileError7GenericE, ptr @_ZN12CompileError7GenericD2Ev) #5
          to label %169 unwind label %153

149:                                              ; preds = %145
  %150 = landingpad { ptr, i32 }
          cleanup
  %151 = extractvalue { ptr, i32 } %150, 0
  store ptr %151, ptr %17, align 8
  %152 = extractvalue { ptr, i32 } %150, 1
  store i32 %152, ptr %18, align 4
  br label %157

153:                                              ; preds = %148, %147
  %154 = landingpad { ptr, i32 }
          cleanup
  %155 = extractvalue { ptr, i32 } %154, 0
  store ptr %155, ptr %17, align 8
  %156 = extractvalue { ptr, i32 } %154, 1
  store i32 %156, ptr %18, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #4
  br label %157

157:                                              ; preds = %153, %149
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #4
  %158 = load i1, ptr %19, align 1
  br i1 %158, label %159, label %160

159:                                              ; preds = %157
  call void @__cxa_free_exception(ptr %146) #4
  br label %160

160:                                              ; preds = %159, %157
  call void @llvm.lifetime.end.p0(i64 1, ptr %4) #4
  br label %164

161:                                              ; preds = %144, %94, %57, %33, %25
  call void @llvm.lifetime.end.p0(i64 1, ptr %4) #4
  %162 = getelementptr inbounds %struct.Codepoint, ptr %2, i32 0, i32 0
  %163 = load i32, ptr %162, align 4
  ret i32 %163

164:                                              ; preds = %160
  %165 = load ptr, ptr %17, align 8
  %166 = load i32, ptr %18, align 4
  %167 = insertvalue { ptr, i32 } poison, ptr %165, 0
  %168 = insertvalue { ptr, i32 } %167, i32 %166, 1
  resume { ptr, i32 } %168

169:                                              ; preds = %148
  unreachable
}

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }
attributes #5 = { 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !7, 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"

%struct.Codepoint = type { i32 }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::allocator" = type { i8 }

@_ZTIN12CompileError7GenericE = external dso_local constant { ptr, ptr, ptr }, align 8
@.str.51 = external hidden unnamed_addr constant [25 x i8], align 1

declare i32 @__gxx_personality_v0(...)

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

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

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

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

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

declare void @__cxa_free_exception(ptr) local_unnamed_addr

; Function Attrs: mustprogress uwtable
declare dso_local noundef signext i8 @_ZN5Lexer9getc_byteEv(ptr noundef nonnull align 8 dereferenceable(256)) local_unnamed_addr #2 align 2

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

declare void @_ZN12CompileError7GenericC1ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef) unnamed_addr #3

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local i32 @_ZN5Lexer7getc_cpEv(ptr noundef nonnull align 8 dereferenceable(256) %0) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %struct.Codepoint, align 4
  %3 = alloca %"class.std::__cxx11::basic_string", align 8
  %4 = alloca %"class.std::allocator", align 1
  %5 = tail call noundef signext i8 @_ZN5Lexer9getc_byteEv(ptr noundef nonnull align 8 dereferenceable(256) %0)
  %6 = zext i8 %5 to i32
  %7 = icmp sgt i8 %5, -1
  br i1 %7, label %77, label %8

8:                                                ; preds = %1
  %9 = and i32 %6, 192
  %10 = icmp eq i32 %9, 128
  br i1 %10, label %77, label %11

11:                                               ; preds = %8
  %12 = and i32 %6, 224
  %13 = icmp eq i32 %12, 192
  br i1 %13, label %14, label %23

14:                                               ; preds = %11
  %15 = tail call noundef signext i8 @_ZN5Lexer9getc_byteEv(ptr noundef nonnull align 8 dereferenceable(256) %0)
  %16 = zext i8 %15 to i32
  %17 = and i32 %16, 192
  %.not36 = icmp eq i32 %17, 128
  br i1 %.not36, label %18, label %77

18:                                               ; preds = %14
  %19 = shl nuw nsw i32 %6, 6
  %20 = and i32 %19, 1984
  %21 = and i32 %16, 63
  %22 = or disjoint i32 %21, %20
  br label %77

23:                                               ; preds = %11
  %24 = and i32 %6, 240
  %25 = icmp eq i32 %24, 224
  br i1 %25, label %26, label %42

26:                                               ; preds = %23
  %27 = tail call noundef signext i8 @_ZN5Lexer9getc_byteEv(ptr noundef nonnull align 8 dereferenceable(256) %0)
  %28 = zext i8 %27 to i32
  %29 = and i32 %28, 192
  %.not34 = icmp eq i32 %29, 128
  br i1 %.not34, label %30, label %77

30:                                               ; preds = %26
  %31 = tail call noundef signext i8 @_ZN5Lexer9getc_byteEv(ptr noundef nonnull align 8 dereferenceable(256) %0)
  %32 = zext i8 %31 to i32
  %33 = and i32 %32, 192
  %.not35 = icmp eq i32 %33, 128
  br i1 %.not35, label %34, label %77

34:                                               ; preds = %30
  %35 = shl nuw nsw i32 %6, 12
  %36 = and i32 %35, 61440
  %37 = shl nuw nsw i32 %28, 6
  %38 = and i32 %37, 4032
  %39 = or disjoint i32 %38, %36
  %40 = and i32 %32, 63
  %41 = or disjoint i32 %39, %40
  br label %77

42:                                               ; preds = %23
  %43 = and i32 %6, 248
  %44 = icmp eq i32 %43, 240
  br i1 %44, label %45, label %68

45:                                               ; preds = %42
  %46 = tail call noundef signext i8 @_ZN5Lexer9getc_byteEv(ptr noundef nonnull align 8 dereferenceable(256) %0)
  %47 = zext i8 %46 to i32
  %48 = and i32 %47, 192
  %.not = icmp eq i32 %48, 128
  br i1 %.not, label %49, label %77

49:                                               ; preds = %45
  %50 = tail call noundef signext i8 @_ZN5Lexer9getc_byteEv(ptr noundef nonnull align 8 dereferenceable(256) %0)
  %51 = zext i8 %50 to i32
  %52 = and i32 %51, 192
  %.not32 = icmp eq i32 %52, 128
  br i1 %.not32, label %53, label %77

53:                                               ; preds = %49
  %54 = tail call noundef signext i8 @_ZN5Lexer9getc_byteEv(ptr noundef nonnull align 8 dereferenceable(256) %0)
  %55 = zext i8 %54 to i32
  %56 = and i32 %55, 192
  %.not33 = icmp eq i32 %56, 128
  br i1 %.not33, label %57, label %77

57:                                               ; preds = %53
  %58 = shl nuw nsw i32 %6, 18
  %59 = and i32 %58, 1835008
  %60 = shl nuw nsw i32 %47, 12
  %61 = and i32 %60, 258048
  %62 = or disjoint i32 %61, %59
  %63 = shl nuw nsw i32 %51, 6
  %64 = and i32 %63, 4032
  %65 = or disjoint i32 %62, %64
  %66 = and i32 %55, 63
  %67 = or disjoint i32 %65, %66
  br label %77

68:                                               ; preds = %42
  %69 = tail call ptr @__cxa_allocate_exception(i64 40) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #4
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #4
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull @.str.51, ptr noundef nonnull align 1 dereferenceable(1) %4)
          to label %70 unwind label %.thread

70:                                               ; preds = %68
  invoke void @_ZN12CompileError7GenericC1ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(40) %69, ptr noundef nonnull %3)
          to label %71 unwind label %73

71:                                               ; preds = %70
  invoke void @__cxa_throw(ptr nonnull %69, ptr nonnull @_ZTIN12CompileError7GenericE, ptr nonnull @_ZN12CompileError7GenericD2Ev) #5
          to label %79 unwind label %73

.thread:                                          ; preds = %68
  %72 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #4
  br label %75

73:                                               ; preds = %70, %71
  %.0 = phi i1 [ false, %71 ], [ true, %70 ]
  %74 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #4
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #4
  br i1 %.0, label %75, label %76

75:                                               ; preds = %.thread, %73
  %.pn40 = phi { ptr, i32 } [ %72, %.thread ], [ %74, %73 ]
  call void @__cxa_free_exception(ptr %69) #4
  br label %76

76:                                               ; preds = %75, %73
  %.pn39 = phi { ptr, i32 } [ %.pn40, %75 ], [ %74, %73 ]
  resume { ptr, i32 } %.pn39

77:                                               ; preds = %53, %49, %45, %30, %26, %14, %8, %1, %57, %34, %18
  %.sink = phi i32 [ %67, %57 ], [ %41, %34 ], [ %22, %18 ], [ %6, %1 ], [ 65534, %8 ], [ 65534, %14 ], [ 65534, %26 ], [ 65534, %30 ], [ 65534, %45 ], [ 65534, %49 ], [ 65534, %53 ]
  call void @_ZN9CodepointC2Ej(ptr noundef nonnull align 4 dereferenceable(4) %2, i32 noundef %.sink)
  %78 = load i32, ptr %2, align 4
  ret i32 %78

79:                                               ; preds = %71
  unreachable
}

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

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