; LLVM IR from Nykakin/chompjs :: _chompjs (parser)

; 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.State = type { ptr }
%struct.Lexer = type { ptr, i64, %struct.CharBuffer, i64, i32, ptr, %struct.CharBuffer, i64, i8 }
%struct.CharBuffer = type { ptr, i64, i64 }

@states = external dso_local global [5 x %struct.State], align 16

; Function Attrs: nounwind willreturn memory(none)
declare ptr @__ctype_b_loc() #0

; Function Attrs: nounwind uwtable
declare dso_local signext i8 @last_char(ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local void @emit(i8 noundef signext, ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local void @emit_in_place(i8 noundef signext, ptr noundef) #1

declare void @pop(ptr noundef) #2

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

; Function Attrs: nounwind uwtable
define dso_local ptr @handle_unrecognized(ptr noundef %0) #1 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca i8, align 1
  %5 = alloca i8, align 1
  %6 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  %7 = load ptr, ptr %3, align 8, !tbaa !5
  call void @emit_in_place(i8 noundef signext 34, ptr noundef %7)
  call void @llvm.lifetime.start.p0(i64 1, ptr %4) #4
  store i8 0, ptr %4, align 1, !tbaa !9
  %8 = load ptr, ptr %3, align 8, !tbaa !5
  %9 = getelementptr inbounds %struct.Lexer, ptr %8, i32 0, i32 7
  store i64 0, ptr %9, align 8, !tbaa !10
  br label %10

10:                                               ; preds = %136, %1
  call void @llvm.lifetime.start.p0(i64 1, ptr %5) #4
  %11 = load ptr, ptr %3, align 8, !tbaa !5
  %12 = getelementptr inbounds %struct.Lexer, ptr %11, i32 0, i32 0
  %13 = load ptr, ptr %12, align 8, !tbaa !16
  %14 = load ptr, ptr %3, align 8, !tbaa !5
  %15 = getelementptr inbounds %struct.Lexer, ptr %14, i32 0, i32 3
  %16 = load i64, ptr %15, align 8, !tbaa !17
  %17 = getelementptr inbounds i8, ptr %13, i64 %16
  %18 = load i8, ptr %17, align 1, !tbaa !9
  store i8 %18, ptr %5, align 1, !tbaa !9
  %19 = load i8, ptr %5, align 1, !tbaa !9
  %20 = sext i8 %19 to i32
  switch i32 %20, label %129 [
    i32 92, label %21
    i32 39, label %24
    i32 34, label %24
    i32 96, label %24
    i32 123, label %48
    i32 91, label %48
    i32 60, label %48
    i32 40, label %48
    i32 125, label %55
    i32 93, label %55
    i32 62, label %55
    i32 41, label %55
    i32 44, label %99
    i32 58, label %99
  ]

21:                                               ; preds = %10
  %22 = load ptr, ptr %3, align 8, !tbaa !5
  call void @emit_in_place(i8 noundef signext 92, ptr noundef %22)
  %23 = load ptr, ptr %3, align 8, !tbaa !5
  call void @emit(i8 noundef signext 92, ptr noundef %23)
  br label %132

24:                                               ; preds = %10, %10, %10
  %25 = load i8, ptr %5, align 1, !tbaa !9
  %26 = sext i8 %25 to i32
  %27 = icmp eq i32 %26, 34
  br i1 %27, label %28, label %31

28:                                               ; preds = %24
  %29 = load ptr, ptr %3, align 8, !tbaa !5
  call void @emit_in_place(i8 noundef signext 92, ptr noundef %29)
  %30 = load ptr, ptr %3, align 8, !tbaa !5
  call void @emit(i8 noundef signext 34, ptr noundef %30)
  br label %34

31:                                               ; preds = %24
  %32 = load i8, ptr %5, align 1, !tbaa !9
  %33 = load ptr, ptr %3, align 8, !tbaa !5
  call void @emit(i8 noundef signext %32, ptr noundef %33)
  br label %34

34:                                               ; preds = %31, %28
  %35 = load i8, ptr %4, align 1, !tbaa !9
  %36 = icmp ne i8 %35, 0
  br i1 %36, label %39, label %37

37:                                               ; preds = %34
  %38 = load i8, ptr %5, align 1, !tbaa !9
  store i8 %38, ptr %4, align 1, !tbaa !9
  br label %47

39:                                               ; preds = %34
  %40 = load i8, ptr %4, align 1, !tbaa !9
  %41 = sext i8 %40 to i32
  %42 = load i8, ptr %5, align 1, !tbaa !9
  %43 = sext i8 %42 to i32
  %44 = icmp eq i32 %41, %43
  br i1 %44, label %45, label %46

45:                                               ; preds = %39
  store i8 0, ptr %4, align 1, !tbaa !9
  br label %46

46:                                               ; preds = %45, %39
  br label %47

47:                                               ; preds = %46, %37
  br label %132

48:                                               ; preds = %10, %10, %10, %10
  %49 = load i8, ptr %5, align 1, !tbaa !9
  %50 = load ptr, ptr %3, align 8, !tbaa !5
  call void @emit(i8 noundef signext %49, ptr noundef %50)
  %51 = load ptr, ptr %3, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.Lexer, ptr %51, i32 0, i32 7
  %53 = load i64, ptr %52, align 8, !tbaa !10
  %54 = add i64 %53, 1
  store i64 %54, ptr %52, align 8, !tbaa !10
  br label %132

55:                                               ; preds = %10, %10, %10, %10
  %56 = load i8, ptr %4, align 1, !tbaa !9
  %57 = sext i8 %56 to i32
  %58 = icmp ne i32 %57, 0
  br i1 %58, label %59, label %67

59:                                               ; preds = %55
  %60 = load ptr, ptr %3, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.Lexer, ptr %60, i32 0, i32 7
  %62 = load i64, ptr %61, align 8, !tbaa !10
  %63 = icmp ugt i64 %62, 0
  br i1 %63, label %64, label %67

64:                                               ; preds = %59
  %65 = load i8, ptr %5, align 1, !tbaa !9
  %66 = load ptr, ptr %3, align 8, !tbaa !5
  call void @emit(i8 noundef signext %65, ptr noundef %66)
  br label %98

67:                                               ; preds = %59, %55
  %68 = load ptr, ptr %3, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.Lexer, ptr %68, i32 0, i32 7
  %70 = load i64, ptr %69, align 8, !tbaa !10
  %71 = icmp ugt i64 %70, 0
  br i1 %71, label %72, label %79

72:                                               ; preds = %67
  %73 = load i8, ptr %5, align 1, !tbaa !9
  %74 = load ptr, ptr %3, align 8, !tbaa !5
  call void @emit(i8 noundef signext %73, ptr noundef %74)
  %75 = load ptr, ptr %3, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.Lexer, ptr %75, i32 0, i32 7
  %77 = load i64, ptr %76, align 8, !tbaa !10
  %78 = sub i64 %77, 1
  store i64 %78, ptr %76, align 8, !tbaa !10
  br label %97

79:                                               ; preds = %67
  br label %80

80:                                               ; preds = %92, %79
  %81 = call ptr @__ctype_b_loc() #5
  %82 = load ptr, ptr %81, align 8, !tbaa !5
  %83 = load ptr, ptr %3, align 8, !tbaa !5
  %84 = call signext i8 @last_char(ptr noundef %83)
  %85 = sext i8 %84 to i32
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds i16, ptr %82, i64 %86
  %88 = load i16, ptr %87, align 2, !tbaa !18
  %89 = zext i16 %88 to i32
  %90 = and i32 %89, 8192
  %91 = icmp ne i32 %90, 0
  br i1 %91, label %92, label %95

92:                                               ; preds = %80
  %93 = load ptr, ptr %3, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.Lexer, ptr %93, i32 0, i32 2
  call void @pop(ptr noundef %94)
  br label %80, !llvm.loop !20

95:                                               ; preds = %80
  %96 = load ptr, ptr %3, align 8, !tbaa !5
  call void @emit_in_place(i8 noundef signext 34, ptr noundef %96)
  store ptr getelementptr inbounds ([5 x %struct.State], ptr @states, i64 0, i64 1), ptr %2, align 8
  store i32 1, ptr %6, align 4
  br label %133

97:                                               ; preds = %72
  br label %98

98:                                               ; preds = %97, %64
  br label %132

99:                                               ; preds = %10, %10
  %100 = load i8, ptr %4, align 1, !tbaa !9
  %101 = icmp ne i8 %100, 0
  br i1 %101, label %125, label %102

102:                                              ; preds = %99
  %103 = load ptr, ptr %3, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.Lexer, ptr %103, i32 0, i32 7
  %105 = load i64, ptr %104, align 8, !tbaa !10
  %106 = icmp ule i64 %105, 0
  br i1 %106, label %107, label %125

107:                                              ; preds = %102
  br label %108

108:                                              ; preds = %120, %107
  %109 = call ptr @__ctype_b_loc() #5
  %110 = load ptr, ptr %109, align 8, !tbaa !5
  %111 = load ptr, ptr %3, align 8, !tbaa !5
  %112 = call signext i8 @last_char(ptr noundef %111)
  %113 = sext i8 %112 to i32
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds i16, ptr %110, i64 %114
  %116 = load i16, ptr %115, align 2, !tbaa !18
  %117 = zext i16 %116 to i32
  %118 = and i32 %117, 8192
  %119 = icmp ne i32 %118, 0
  br i1 %119, label %120, label %123

120:                                              ; preds = %108
  %121 = load ptr, ptr %3, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.Lexer, ptr %121, i32 0, i32 2
  call void @pop(ptr noundef %122)
  br label %108, !llvm.loop !22

123:                                              ; preds = %108
  %124 = load ptr, ptr %3, align 8, !tbaa !5
  call void @emit_in_place(i8 noundef signext 34, ptr noundef %124)
  store ptr getelementptr inbounds ([5 x %struct.State], ptr @states, i64 0, i64 1), ptr %2, align 8
  store i32 1, ptr %6, align 4
  br label %133

125:                                              ; preds = %102, %99
  %126 = load i8, ptr %5, align 1, !tbaa !9
  %127 = load ptr, ptr %3, align 8, !tbaa !5
  call void @emit(i8 noundef signext %126, ptr noundef %127)
  br label %128

128:                                              ; preds = %125
  br label %132

129:                                              ; preds = %10
  %130 = load i8, ptr %5, align 1, !tbaa !9
  %131 = load ptr, ptr %3, align 8, !tbaa !5
  call void @emit(i8 noundef signext %130, ptr noundef %131)
  br label %132

132:                                              ; preds = %129, %128, %98, %48, %47, %21
  store i32 0, ptr %6, align 4
  br label %133

133:                                              ; preds = %132, %123, %95
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #4
  %134 = load i32, ptr %6, align 4
  switch i32 %134, label %148 [
    i32 0, label %135
  ]

135:                                              ; preds = %133
  br label %136

136:                                              ; preds = %135
  %137 = load ptr, ptr %3, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.Lexer, ptr %137, i32 0, i32 0
  %139 = load ptr, ptr %138, align 8, !tbaa !16
  %140 = load ptr, ptr %3, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.Lexer, ptr %140, i32 0, i32 3
  %142 = load i64, ptr %141, align 8, !tbaa !17
  %143 = getelementptr inbounds i8, ptr %139, i64 %142
  %144 = load i8, ptr %143, align 1, !tbaa !9
  %145 = sext i8 %144 to i32
  %146 = icmp ne i32 %145, 0
  br i1 %146, label %10, label %147, !llvm.loop !23

147:                                              ; preds = %136
  store ptr getelementptr inbounds ([5 x %struct.State], ptr @states, i64 0, i64 4), ptr %2, align 8
  store i32 1, ptr %6, align 4
  br label %148

148:                                              ; preds = %147, %133
  call void @llvm.lifetime.end.p0(i64 1, ptr %4) #4
  %149 = load ptr, ptr %2, align 8
  ret ptr %149
}

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

attributes #0 = { nounwind willreturn memory(none) "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 = { 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 = { "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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nounwind }
attributes #5 = { nounwind willreturn memory(none) }

!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/C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = !{!11, !12, i64 88}
!11 = !{!"Lexer", !6, i64 0, !12, i64 8, !13, i64 16, !12, i64 40, !14, i64 48, !6, i64 56, !13, i64 64, !12, i64 88, !15, i64 96}
!12 = !{!"long", !7, i64 0}
!13 = !{!"CharBuffer", !6, i64 0, !12, i64 8, !12, i64 16}
!14 = !{!"int", !7, i64 0}
!15 = !{!"_Bool", !7, i64 0}
!16 = !{!11, !6, i64 0}
!17 = !{!11, !12, i64 40}
!18 = !{!19, !19, i64 0}
!19 = !{!"short", !7, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = distinct !{!22, !21}
!23 = distinct !{!23, !21}


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

@states = external dso_local global [5 x %struct.State], align 16

; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none)
declare ptr @__ctype_b_loc() local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local signext i8 @last_char(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local void @emit(i8 noundef signext, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local void @emit_in_place(i8 noundef signext, ptr noundef) local_unnamed_addr #1

declare void @pop(ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local nonnull ptr @handle_unrecognized(ptr noundef %0) local_unnamed_addr #1 {
  tail call void @emit_in_place(i8 noundef signext 34, ptr noundef %0)
  %2 = getelementptr inbounds i8, ptr %0, i64 88
  store i64 0, ptr %2, align 8, !tbaa !5
  %3 = getelementptr inbounds i8, ptr %0, i64 40
  %.pre = load ptr, ptr %0, align 8, !tbaa !14
  %.pre61 = load i64, ptr %3, align 8, !tbaa !15
  %.phi.trans.insert = getelementptr inbounds i8, ptr %.pre, i64 %.pre61
  %.pre62 = load i8, ptr %.phi.trans.insert, align 1, !tbaa !16
  br label %4

4:                                                ; preds = %57, %1
  %5 = phi i8 [ %.pre62, %1 ], [ %61, %57 ]
  %.043 = phi i8 [ 0, %1 ], [ %.245.ph, %57 ]
  switch i8 %5, label %56 [
    i8 92, label %6
    i8 58, label %36
    i8 44, label %36
    i8 41, label %14
    i8 123, label %11
    i8 91, label %11
    i8 60, label %11
    i8 40, label %11
    i8 125, label %14
    i8 93, label %14
    i8 62, label %14
    i8 34, label %7
    i8 39, label %8
    i8 96, label %8
  ]

6:                                                ; preds = %4
  tail call void @emit_in_place(i8 noundef signext 92, ptr noundef nonnull %0)
  tail call void @emit(i8 noundef signext 92, ptr noundef nonnull %0)
  br label %57

7:                                                ; preds = %4
  tail call void @emit_in_place(i8 noundef signext 92, ptr noundef nonnull %0)
  br label %8

8:                                                ; preds = %4, %4, %7
  %.sink = phi i8 [ 34, %7 ], [ %5, %4 ], [ %5, %4 ]
  tail call void @emit(i8 noundef signext %.sink, ptr noundef nonnull %0)
  %.not51 = icmp eq i8 %.043, 0
  br i1 %.not51, label %57, label %9

9:                                                ; preds = %8
  %10 = icmp eq i8 %.043, %5
  %spec.store.select = select i1 %10, i8 0, i8 %.043
  br label %57

11:                                               ; preds = %4, %4, %4, %4
  tail call void @emit(i8 noundef signext %5, ptr noundef nonnull %0)
  %12 = load i64, ptr %2, align 8, !tbaa !5
  %13 = add i64 %12, 1
  store i64 %13, ptr %2, align 8, !tbaa !5
  br label %57

14:                                               ; preds = %4, %4, %4, %4
  %.not47 = icmp eq i8 %.043, 0
  %.pr = load i64, ptr %2, align 8, !tbaa !5
  %.not49 = icmp eq i64 %.pr, 0
  br i1 %.not47, label %17, label %15

15:                                               ; preds = %14
  br i1 %.not49, label %.preheader56, label %16

16:                                               ; preds = %15
  tail call void @emit(i8 noundef signext %5, ptr noundef nonnull %0)
  br label %57

17:                                               ; preds = %14
  br i1 %.not49, label %.preheader56, label %26

.preheader56:                                     ; preds = %15, %17
  %18 = tail call ptr @__ctype_b_loc() #3
  %19 = load ptr, ptr %18, align 8, !tbaa !17
  %20 = tail call signext i8 @last_char(ptr noundef nonnull %0)
  %21 = sext i8 %20 to i64
  %22 = getelementptr inbounds i16, ptr %19, i64 %21
  %23 = load i16, ptr %22, align 2, !tbaa !18
  %24 = and i16 %23, 8192
  %.not5057 = icmp eq i16 %24, 0
  br i1 %.not5057, label %.loopexit.sink.split, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader56
  %25 = getelementptr inbounds i8, ptr %0, i64 16
  br label %29

26:                                               ; preds = %17
  tail call void @emit(i8 noundef signext %5, ptr noundef nonnull %0)
  %27 = load i64, ptr %2, align 8, !tbaa !5
  %28 = add i64 %27, -1
  store i64 %28, ptr %2, align 8, !tbaa !5
  br label %57

29:                                               ; preds = %.lr.ph, %29
  tail call void @pop(ptr noundef nonnull %25) #4
  %30 = load ptr, ptr %18, align 8, !tbaa !17
  %31 = tail call signext i8 @last_char(ptr noundef nonnull %0)
  %32 = sext i8 %31 to i64
  %33 = getelementptr inbounds i16, ptr %30, i64 %32
  %34 = load i16, ptr %33, align 2, !tbaa !18
  %35 = and i16 %34, 8192
  %.not50 = icmp eq i16 %35, 0
  br i1 %.not50, label %.loopexit.sink.split, label %29, !llvm.loop !20

36:                                               ; preds = %4, %4
  %.not = icmp eq i8 %.043, 0
  br i1 %.not, label %37, label %55

37:                                               ; preds = %36
  %38 = load i64, ptr %2, align 8, !tbaa !5
  %39 = icmp eq i64 %38, 0
  br i1 %39, label %.preheader, label %55

.preheader:                                       ; preds = %37
  %40 = tail call ptr @__ctype_b_loc() #3
  %41 = load ptr, ptr %40, align 8, !tbaa !17
  %42 = tail call signext i8 @last_char(ptr noundef nonnull %0)
  %43 = sext i8 %42 to i64
  %44 = getelementptr inbounds i16, ptr %41, i64 %43
  %45 = load i16, ptr %44, align 2, !tbaa !18
  %46 = and i16 %45, 8192
  %.not4658 = icmp eq i16 %46, 0
  br i1 %.not4658, label %.loopexit.sink.split, label %.lr.ph59

.lr.ph59:                                         ; preds = %.preheader
  %47 = getelementptr inbounds i8, ptr %0, i64 16
  br label %48

48:                                               ; preds = %.lr.ph59, %48
  tail call void @pop(ptr noundef nonnull %47) #4
  %49 = load ptr, ptr %40, align 8, !tbaa !17
  %50 = tail call signext i8 @last_char(ptr noundef nonnull %0)
  %51 = sext i8 %50 to i64
  %52 = getelementptr inbounds i16, ptr %49, i64 %51
  %53 = load i16, ptr %52, align 2, !tbaa !18
  %54 = and i16 %53, 8192
  %.not46 = icmp eq i16 %54, 0
  br i1 %.not46, label %.loopexit.sink.split, label %48, !llvm.loop !22

55:                                               ; preds = %37, %36
  tail call void @emit(i8 noundef signext %5, ptr noundef nonnull %0)
  br label %57

56:                                               ; preds = %4
  tail call void @emit(i8 noundef signext %5, ptr noundef nonnull %0)
  br label %57

57:                                               ; preds = %8, %16, %26, %9, %56, %55, %11, %6
  %.245.ph = phi i8 [ %5, %8 ], [ %.043, %6 ], [ %spec.store.select, %9 ], [ %.043, %11 ], [ 0, %26 ], [ %.043, %16 ], [ %.043, %55 ], [ %.043, %56 ]
  %58 = load ptr, ptr %0, align 8, !tbaa !14
  %59 = load i64, ptr %3, align 8, !tbaa !15
  %60 = getelementptr inbounds i8, ptr %58, i64 %59
  %61 = load i8, ptr %60, align 1, !tbaa !16
  %.not52 = icmp eq i8 %61, 0
  br i1 %.not52, label %.loopexit, label %4, !llvm.loop !23

.loopexit.sink.split:                             ; preds = %29, %48, %.preheader, %.preheader56
  tail call void @emit_in_place(i8 noundef signext 34, ptr noundef nonnull %0)
  br label %.loopexit

.loopexit:                                        ; preds = %57, %.loopexit.sink.split
  %.2 = phi ptr [ getelementptr inbounds (i8, ptr @states, i64 8), %.loopexit.sink.split ], [ getelementptr inbounds (i8, ptr @states, i64 32), %57 ]
  ret ptr %.2
}

attributes #0 = { mustprogress nofree nosync nounwind willreturn memory(none) "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 = { 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 = { "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 = { nounwind willreturn memory(none) }
attributes #4 = { 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, !10, i64 88}
!6 = !{!"Lexer", !7, i64 0, !10, i64 8, !11, i64 16, !10, i64 40, !12, i64 48, !7, i64 56, !11, i64 64, !10, i64 88, !13, i64 96}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"long", !8, i64 0}
!11 = !{!"CharBuffer", !7, i64 0, !10, i64 8, !10, i64 16}
!12 = !{!"int", !8, i64 0}
!13 = !{!"_Bool", !8, i64 0}
!14 = !{!6, !7, i64 0}
!15 = !{!6, !10, i64 40}
!16 = !{!8, !8, i64 0}
!17 = !{!7, !7, i64 0}
!18 = !{!19, !19, i64 0}
!19 = !{!"short", !8, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = distinct !{!22, !21}
!23 = distinct !{!23, !21}


; Effective O3 passes: BDCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass