; LLVM IR from ponylang/ponyc :: src/libponyc/ast (parserapi)

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

@.str = external hidden unnamed_addr constant [14 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [77 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [15 x i8], align 1
@stderr = external global ptr, align 8
@.str.7 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [2 x i8], align 1
@__func__.parse_rule_set = external hidden unnamed_addr constant [15 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [37 x i8], align 1

declare void @ponyint_assert_fail(ptr noundef, ptr noundef, i64 noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare hidden void @default_builder(ptr noundef, ptr noundef) #1

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

; Function Attrs: nounwind uwtable
declare hidden i32 @current_token_id(ptr noundef) #1

; Function Attrs: nounwind uwtable
declare hidden ptr @propogate_error(ptr noundef, ptr noundef) #1

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #3

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

; Function Attrs: nounwind uwtable
declare hidden ptr @handle_found(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
declare hidden ptr @handle_not_found(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
define dso_local ptr @parse_rule_set(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, i1 noundef zeroext %5) #1 {
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i8, align 1
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store ptr %2, ptr %10, align 8, !tbaa !5
  store ptr %3, ptr %11, align 8, !tbaa !5
  store ptr %4, ptr %12, align 8, !tbaa !5
  %19 = zext i1 %5 to i8
  store i8 %19, ptr %13, align 1, !tbaa !9
  %20 = load ptr, ptr %8, align 8, !tbaa !5
  %21 = icmp ne ptr %20, null
  br i1 %21, label %22, label %23

22:                                               ; preds = %6
  br label %24

23:                                               ; preds = %6
  call void @ponyint_assert_fail(ptr noundef @.str.4, ptr noundef @.str.1, i64 noundef 492, ptr noundef @__func__.parse_rule_set)
  br label %24

24:                                               ; preds = %23, %22
  %25 = load ptr, ptr %9, align 8, !tbaa !5
  %26 = icmp ne ptr %25, null
  br i1 %26, label %27, label %28

27:                                               ; preds = %24
  br label %29

28:                                               ; preds = %24
  call void @ponyint_assert_fail(ptr noundef @.str, ptr noundef @.str.1, i64 noundef 493, ptr noundef @__func__.parse_rule_set)
  br label %29

29:                                               ; preds = %28, %27
  %30 = load ptr, ptr %10, align 8, !tbaa !5
  %31 = icmp ne ptr %30, null
  br i1 %31, label %32, label %33

32:                                               ; preds = %29
  br label %34

33:                                               ; preds = %29
  call void @ponyint_assert_fail(ptr noundef @.str.16, ptr noundef @.str.1, i64 noundef 494, ptr noundef @__func__.parse_rule_set)
  br label %34

34:                                               ; preds = %33, %32
  %35 = load ptr, ptr %11, align 8, !tbaa !5
  %36 = icmp ne ptr %35, null
  br i1 %36, label %37, label %38

37:                                               ; preds = %34
  br label %39

38:                                               ; preds = %34
  call void @ponyint_assert_fail(ptr noundef @.str.17, ptr noundef @.str.1, i64 noundef 495, ptr noundef @__func__.parse_rule_set)
  br label %39

39:                                               ; preds = %38, %37
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  %40 = load ptr, ptr %8, align 8, !tbaa !5
  %41 = call i32 @current_token_id(ptr noundef %40)
  store i32 %41, ptr %14, align 4, !tbaa !11
  %42 = load i32, ptr %14, align 4, !tbaa !11
  %43 = icmp eq i32 %42, 1
  br i1 %43, label %44, label %48

44:                                               ; preds = %39
  %45 = load ptr, ptr %8, align 8, !tbaa !5
  %46 = load ptr, ptr %9, align 8, !tbaa !5
  %47 = call ptr @propogate_error(ptr noundef %45, ptr noundef %46)
  store ptr %47, ptr %7, align 8
  store i32 1, ptr %15, align 4
  br label %124

48:                                               ; preds = %39
  %49 = load ptr, ptr %8, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.parser_t, ptr %49, i32 0, i32 9
  %51 = load i8, ptr %50, align 8, !tbaa !13, !range !15, !noundef !16
  %52 = trunc i8 %51 to i1
  br i1 %52, label %53, label %72

53:                                               ; preds = %48
  %54 = load ptr, ptr @stderr, align 8, !tbaa !5
  %55 = load ptr, ptr %9, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.rule_state_t, ptr %55, i32 0, i32 0
  %57 = load ptr, ptr %56, align 8, !tbaa !17
  %58 = load ptr, ptr %9, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.rule_state_t, ptr %58, i32 0, i32 5
  %60 = load i32, ptr %59, align 8, !tbaa !20
  %61 = icmp eq i32 %60, 1
  %62 = zext i1 %61 to i64
  %63 = select i1 %61, ptr @.str.7, ptr @.str.8
  %64 = load ptr, ptr %11, align 8, !tbaa !5
  %65 = getelementptr inbounds ptr, ptr %64, i64 1
  %66 = load ptr, ptr %65, align 8, !tbaa !5
  %67 = icmp eq ptr %66, null
  %68 = zext i1 %67 to i64
  %69 = select i1 %67, ptr @.str.9, ptr @.str.10
  %70 = load ptr, ptr %10, align 8, !tbaa !5
  %71 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %54, ptr noundef @.str.18, ptr noundef %57, ptr noundef %63, ptr noundef %69, ptr noundef %70) #4
  br label %72

72:                                               ; preds = %53, %48
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  %73 = load i8, ptr %13, align 1, !tbaa !9, !range !15, !noundef !16
  %74 = trunc i8 %73 to i1
  %75 = zext i1 %74 to i64
  %76 = select i1 %74, ptr @annotation_builder, ptr @default_builder
  store ptr %76, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  %77 = load ptr, ptr %11, align 8, !tbaa !5
  store ptr %77, ptr %17, align 8, !tbaa !5
  br label %78

78:                                               ; preds = %112, %72
  %79 = load ptr, ptr %17, align 8, !tbaa !5
  %80 = load ptr, ptr %79, align 8, !tbaa !5
  %81 = icmp ne ptr %80, null
  br i1 %81, label %83, label %82

82:                                               ; preds = %78
  store i32 2, ptr %15, align 4
  br label %115

83:                                               ; preds = %78
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  %84 = load ptr, ptr %17, align 8, !tbaa !5
  %85 = load ptr, ptr %84, align 8, !tbaa !5
  %86 = load ptr, ptr %8, align 8, !tbaa !5
  %87 = load ptr, ptr %10, align 8, !tbaa !5
  %88 = call ptr %85(ptr noundef %86, ptr noundef %16, ptr noundef %87)
  store ptr %88, ptr %18, align 8, !tbaa !5
  %89 = load ptr, ptr %18, align 8, !tbaa !5
  %90 = icmp eq ptr %89, inttoptr (i64 2 to ptr)
  br i1 %90, label %91, label %95

91:                                               ; preds = %83
  %92 = load ptr, ptr %8, align 8, !tbaa !5
  %93 = load ptr, ptr %9, align 8, !tbaa !5
  %94 = call ptr @propogate_error(ptr noundef %92, ptr noundef %93)
  store ptr %94, ptr %7, align 8
  store i32 1, ptr %15, align 4
  br label %109

95:                                               ; preds = %83
  %96 = load ptr, ptr %18, align 8, !tbaa !5
  %97 = icmp ne ptr %96, inttoptr (i64 3 to ptr)
  br i1 %97, label %98, label %108

98:                                               ; preds = %95
  %99 = load ptr, ptr %10, align 8, !tbaa !5
  %100 = load ptr, ptr %8, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.parser_t, ptr %100, i32 0, i32 4
  store ptr %99, ptr %101, align 8, !tbaa !21
  %102 = load ptr, ptr %8, align 8, !tbaa !5
  %103 = load ptr, ptr %9, align 8, !tbaa !5
  %104 = load ptr, ptr %18, align 8, !tbaa !5
  %105 = load ptr, ptr %16, align 8, !tbaa !5
  %106 = load ptr, ptr %12, align 8, !tbaa !5
  %107 = call ptr @handle_found(ptr noundef %102, ptr noundef %103, ptr noundef %104, ptr noundef %105, ptr noundef %106)
  store ptr %107, ptr %7, align 8
  store i32 1, ptr %15, align 4
  br label %109

108:                                              ; preds = %95
  store i32 0, ptr %15, align 4
  br label %109

109:                                              ; preds = %108, %98, %91
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  %110 = load i32, ptr %15, align 4
  switch i32 %110, label %115 [
    i32 0, label %111
  ]

111:                                              ; preds = %109
  br label %112

112:                                              ; preds = %111
  %113 = load ptr, ptr %17, align 8, !tbaa !5
  %114 = getelementptr inbounds ptr, ptr %113, i32 1
  store ptr %114, ptr %17, align 8, !tbaa !5
  br label %78, !llvm.loop !22

115:                                              ; preds = %109, %82
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  %116 = load i32, ptr %15, align 4
  switch i32 %116, label %123 [
    i32 2, label %117
  ]

117:                                              ; preds = %115
  %118 = load ptr, ptr %8, align 8, !tbaa !5
  %119 = load ptr, ptr %9, align 8, !tbaa !5
  %120 = load ptr, ptr %10, align 8, !tbaa !5
  %121 = load ptr, ptr %12, align 8, !tbaa !5
  %122 = call ptr @handle_not_found(ptr noundef %118, ptr noundef %119, ptr noundef %120, ptr noundef null, ptr noundef %121)
  store ptr %122, ptr %7, align 8
  store i32 1, ptr %15, align 4
  br label %123

123:                                              ; preds = %117, %115
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  br label %124

124:                                              ; preds = %123, %44
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  %125 = load ptr, ptr %7, align 8
  ret ptr %125
}

; Function Attrs: nounwind uwtable
declare hidden void @annotation_builder(ptr noundef, ptr noundef) #1

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

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"_Bool", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !10, i64 56}
!14 = !{!"parser_t", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !12, i64 40, !10, i64 44, !10, i64 45, !6, i64 48, !10, i64 56}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = !{!18, !6, i64 0}
!18 = !{!"rule_state_t", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !12, i64 40, !10, i64 44, !10, i64 45, !10, i64 46, !12, i64 48, !19, i64 56, !19, i64 64}
!19 = !{!"long", !7, i64 0}
!20 = !{!18, !12, i64 40}
!21 = !{!14, !6, i64 32}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}


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

@.str = external hidden unnamed_addr constant [14 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [77 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [15 x i8], align 1
@stderr = external local_unnamed_addr global ptr, align 8
@.str.7 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [2 x i8], align 1
@__func__.parse_rule_set = external hidden unnamed_addr constant [15 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [37 x i8], align 1

declare void @ponyint_assert_fail(ptr noundef, ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden void @default_builder(ptr noundef, ptr noundef) #1

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

; Function Attrs: nounwind uwtable
declare hidden i32 @current_token_id(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare hidden ptr @propogate_error(ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #3

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

; Function Attrs: nounwind uwtable
declare hidden ptr @handle_found(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare hidden ptr @handle_not_found(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local ptr @parse_rule_set(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef readonly %3, ptr noundef %4, i1 noundef zeroext %5) local_unnamed_addr #1 {
  %7 = alloca ptr, align 8
  %.not = icmp eq ptr %0, null
  br i1 %.not, label %8, label %9

8:                                                ; preds = %6
  tail call void @ponyint_assert_fail(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.1, i64 noundef 492, ptr noundef nonnull @__func__.parse_rule_set) #4
  br label %9

9:                                                ; preds = %6, %8
  %.not42 = icmp eq ptr %1, null
  br i1 %.not42, label %10, label %11

10:                                               ; preds = %9
  tail call void @ponyint_assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i64 noundef 493, ptr noundef nonnull @__func__.parse_rule_set) #4
  br label %11

11:                                               ; preds = %9, %10
  %.not43 = icmp eq ptr %2, null
  br i1 %.not43, label %12, label %13

12:                                               ; preds = %11
  tail call void @ponyint_assert_fail(ptr noundef nonnull @.str.16, ptr noundef nonnull @.str.1, i64 noundef 494, ptr noundef nonnull @__func__.parse_rule_set) #4
  br label %13

13:                                               ; preds = %11, %12
  %.not44 = icmp eq ptr %3, null
  br i1 %.not44, label %14, label %15

14:                                               ; preds = %13
  tail call void @ponyint_assert_fail(ptr noundef nonnull @.str.17, ptr noundef nonnull @.str.1, i64 noundef 495, ptr noundef nonnull @__func__.parse_rule_set) #4
  br label %15

15:                                               ; preds = %13, %14
  %16 = tail call i32 @current_token_id(ptr noundef %0)
  %17 = icmp eq i32 %16, 1
  br i1 %17, label %18, label %20

18:                                               ; preds = %15
  %19 = tail call ptr @propogate_error(ptr noundef %0, ptr noundef %1)
  br label %52

20:                                               ; preds = %15
  %21 = getelementptr inbounds i8, ptr %0, i64 56
  %22 = load i8, ptr %21, align 8, !tbaa !5, !range !12, !noundef !13
  %23 = trunc nuw i8 %22 to i1
  br i1 %23, label %24, label %36

24:                                               ; preds = %20
  %25 = load ptr, ptr @stderr, align 8, !tbaa !14
  %26 = load ptr, ptr %1, align 8, !tbaa !15
  %27 = getelementptr inbounds i8, ptr %1, i64 40
  %28 = load i32, ptr %27, align 8, !tbaa !18
  %29 = icmp eq i32 %28, 1
  %30 = select i1 %29, ptr @.str.7, ptr @.str.8
  %31 = getelementptr inbounds i8, ptr %3, i64 8
  %32 = load ptr, ptr %31, align 8, !tbaa !14
  %33 = icmp eq ptr %32, null
  %34 = select i1 %33, ptr @.str.9, ptr @.str.10
  %35 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %25, ptr noundef nonnull @.str.18, ptr noundef %26, ptr noundef nonnull %30, ptr noundef nonnull %34, ptr noundef %2) #5
  br label %36

36:                                               ; preds = %24, %20
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #4
  %37 = select i1 %5, ptr @annotation_builder, ptr @default_builder
  store ptr %37, ptr %7, align 8, !tbaa !14
  %38 = load ptr, ptr %3, align 8, !tbaa !14
  %.not4552 = icmp eq ptr %38, null
  br i1 %.not4552, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %36, %47
  %39 = phi ptr [ %49, %47 ], [ %38, %36 ]
  %.03753 = phi ptr [ %48, %47 ], [ %3, %36 ]
  %40 = call ptr %39(ptr noundef %0, ptr noundef nonnull %7, ptr noundef %2) #4
  %magicptr = ptrtoint ptr %40 to i64
  switch i64 %magicptr, label %43 [
    i64 2, label %41
    i64 3, label %47
  ]

41:                                               ; preds = %.lr.ph
  %42 = call ptr @propogate_error(ptr noundef %0, ptr noundef %1)
  br label %51

43:                                               ; preds = %.lr.ph
  %44 = getelementptr inbounds i8, ptr %0, i64 32
  store ptr %2, ptr %44, align 8, !tbaa !19
  %45 = load ptr, ptr %7, align 8, !tbaa !14
  %46 = call ptr @handle_found(ptr noundef %0, ptr noundef %1, ptr noundef %40, ptr noundef %45, ptr noundef %4)
  br label %51

47:                                               ; preds = %.lr.ph
  %48 = getelementptr inbounds i8, ptr %.03753, i64 8
  %49 = load ptr, ptr %48, align 8, !tbaa !14
  %.not45 = icmp eq ptr %49, null
  br i1 %.not45, label %._crit_edge, label %.lr.ph, !llvm.loop !20

._crit_edge:                                      ; preds = %47, %36
  %50 = call ptr @handle_not_found(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef null, ptr noundef %4)
  br label %51

51:                                               ; preds = %43, %41, %._crit_edge
  %.3 = phi ptr [ %50, %._crit_edge ], [ %46, %43 ], [ %42, %41 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #4
  br label %52

52:                                               ; preds = %51, %18
  %.4 = phi ptr [ %19, %18 ], [ %.3, %51 ]
  ret ptr %.4
}

; Function Attrs: nounwind uwtable
declare hidden void @annotation_builder(ptr noundef, ptr noundef) #1

attributes #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 = { 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nofree 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 = { nounwind }
attributes #5 = { cold 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, !11, i64 56}
!6 = !{!"parser_t", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !10, i64 40, !11, i64 44, !11, i64 45, !7, i64 48, !11, i64 56}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"_Bool", !8, i64 0}
!12 = !{i8 0, i8 2}
!13 = !{}
!14 = !{!7, !7, i64 0}
!15 = !{!16, !7, i64 0}
!16 = !{!"rule_state_t", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !10, i64 40, !11, i64 44, !11, i64 45, !11, i64 46, !10, i64 48, !17, i64 56, !17, i64 64}
!17 = !{!"long", !8, i64 0}
!18 = !{!16, !10, i64 40}
!19 = !{!6, !7, i64 32}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}


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