; LLVM IR from pmwkaa/monotone :: monotone/main/command (parse_config)

; 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.Runtime = type { %struct.ExceptionMgr, %struct.Error, ptr }
%struct.ExceptionMgr = type { ptr }
%struct.Error = type { [256 x i8], i32, ptr, ptr, i32, ptr, ptr }
%struct.Guard = type { ptr, ptr, ptr }
%struct.Token = type { i32, %union.anon }
%union.anon = type { %struct.anon }
%struct.anon = type { %struct.Str, i8 }
%struct.Str = type { ptr, ptr, i8 }
%struct.CmdShow = type { %struct.Cmd, %struct.List, i32 }
%struct.Cmd = type { i32, ptr }
%struct.List = type { ptr, ptr }
%struct.Exception = type { ptr, i8, ptr, [1 x %struct.__jmp_buf_tag] }
%struct.__jmp_buf_tag = type { [8 x i64], i32, %struct.__sigset_t }
%struct.__sigset_t = type { [16 x i64] }
%struct.CmdShowOp = type { i32, i8, %struct.Token, %struct.List }

@mn_runtime = external thread_local global %struct.Runtime, align 8
@.str = external hidden unnamed_addr constant [86 x i8], align 1
@__func__.parse_show = external hidden unnamed_addr constant [11 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [92 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local ptr @parse_show(ptr noundef %0) #0 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca %struct.Guard, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca %struct.Token, align 8
  %10 = alloca i8, align 1
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #7
  %13 = call ptr @cmd_show_allocate()
  store ptr %13, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %4) #7
  %14 = getelementptr inbounds %struct.Guard, ptr %4, i32 0, i32 0
  store ptr @cmd_free, ptr %14, align 8, !tbaa !9
  %15 = getelementptr inbounds %struct.Guard, ptr %4, i32 0, i32 1
  %16 = load ptr, ptr %3, align 8, !tbaa !5
  %17 = getelementptr inbounds %struct.CmdShow, ptr %16, i32 0, i32 0
  store ptr %17, ptr %15, align 8, !tbaa !11
  %18 = getelementptr inbounds %struct.Guard, ptr %4, i32 0, i32 2
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #7
  %19 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @mn_runtime)
  %20 = getelementptr inbounds %struct.Runtime, ptr %19, i32 0, i32 0
  %21 = getelementptr inbounds %struct.ExceptionMgr, ptr %20, i32 0, i32 0
  %22 = load ptr, ptr %21, align 8, !tbaa !12
  store ptr %22, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #7
  %23 = load ptr, ptr %5, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.Exception, ptr %23, i32 0, i32 2
  %25 = load ptr, ptr %24, align 8, !tbaa !17
  store ptr %25, ptr %6, align 8, !tbaa !5
  %26 = load ptr, ptr %5, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.Exception, ptr %26, i32 0, i32 2
  store ptr %4, ptr %27, align 8, !tbaa !17
  %28 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %28, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #7
  %29 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %29, ptr %18, align 8, !tbaa !20
  br label %30

30:                                               ; preds = %103, %1
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.start.p0(i64 40, ptr %9) #7
  %31 = load ptr, ptr %2, align 8, !tbaa !5
  call void @lex_next(ptr noundef %31, ptr noundef %9)
  %32 = getelementptr inbounds %struct.Token, ptr %9, i32 0, i32 0
  %33 = load i32, ptr %32, align 8, !tbaa !21
  switch i32 %33, label %78 [
    i32 58, label %34
    i32 57, label %35
    i32 51, label %36
    i32 52, label %45
    i32 33, label %46
    i32 34, label %55
    i32 35, label %56
    i32 36, label %65
    i32 41, label %68
    i32 29, label %69
    i32 28, label %69
    i32 4, label %77
    i32 3, label %77
  ]

34:                                               ; preds = %30
  store i32 0, ptr %8, align 4, !tbaa !23
  br label %83

35:                                               ; preds = %30
  store i32 1, ptr %8, align 4, !tbaa !23
  br label %83

36:                                               ; preds = %30
  %37 = load ptr, ptr %2, align 8, !tbaa !5
  %38 = call zeroext i1 @lex_if(ptr noundef %37, i32 noundef 4, ptr noundef %9)
  br i1 %38, label %44, label %39

39:                                               ; preds = %36
  %40 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @mn_runtime)
  %41 = getelementptr inbounds %struct.Runtime, ptr %40, i32 0, i32 1
  %42 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @mn_runtime)
  %43 = getelementptr inbounds %struct.Runtime, ptr %42, i32 0, i32 0
  call void (ptr, ptr, ptr, ptr, i32, ptr, ...) @error_throw_as(ptr noundef %41, ptr noundef %43, ptr noundef @.str, ptr noundef @__func__.parse_show, i32 noundef 46, ptr noundef @.str.1) #8
  unreachable

44:                                               ; preds = %36
  store i32 2, ptr %8, align 4, !tbaa !23
  br label %83

45:                                               ; preds = %30
  store i32 2, ptr %8, align 4, !tbaa !23
  br label %83

46:                                               ; preds = %30
  %47 = load ptr, ptr %2, align 8, !tbaa !5
  %48 = call zeroext i1 @lex_if(ptr noundef %47, i32 noundef 4, ptr noundef %9)
  br i1 %48, label %54, label %49

49:                                               ; preds = %46
  %50 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @mn_runtime)
  %51 = getelementptr inbounds %struct.Runtime, ptr %50, i32 0, i32 1
  %52 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @mn_runtime)
  %53 = getelementptr inbounds %struct.Runtime, ptr %52, i32 0, i32 0
  call void (ptr, ptr, ptr, ptr, i32, ptr, ...) @error_throw_as(ptr noundef %51, ptr noundef %53, ptr noundef @.str, ptr noundef @__func__.parse_show, i32 noundef 55, ptr noundef @.str.2) #8
  unreachable

54:                                               ; preds = %46
  store i32 3, ptr %8, align 4, !tbaa !23
  br label %83

55:                                               ; preds = %30
  store i32 3, ptr %8, align 4, !tbaa !23
  br label %83

56:                                               ; preds = %30
  %57 = load ptr, ptr %2, align 8, !tbaa !5
  %58 = call zeroext i1 @lex_if(ptr noundef %57, i32 noundef 2, ptr noundef %9)
  br i1 %58, label %64, label %59

59:                                               ; preds = %56
  %60 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @mn_runtime)
  %61 = getelementptr inbounds %struct.Runtime, ptr %60, i32 0, i32 1
  %62 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @mn_runtime)
  %63 = getelementptr inbounds %struct.Runtime, ptr %62, i32 0, i32 0
  call void (ptr, ptr, ptr, ptr, i32, ptr, ...) @error_throw_as(ptr noundef %61, ptr noundef %63, ptr noundef @.str, ptr noundef @__func__.parse_show, i32 noundef 64, ptr noundef @.str.3) #8
  unreachable

64:                                               ; preds = %56
  store i32 4, ptr %8, align 4, !tbaa !23
  br label %83

65:                                               ; preds = %30
  %66 = load ptr, ptr %2, align 8, !tbaa !5
  %67 = call zeroext i1 @lex_if(ptr noundef %66, i32 noundef 4, ptr noundef %9)
  store i32 5, ptr %8, align 4, !tbaa !23
  br label %83

68:                                               ; preds = %30
  store i32 6, ptr %8, align 4, !tbaa !23
  br label %83

69:                                               ; preds = %30, %30
  %70 = load ptr, ptr %2, align 8, !tbaa !5
  %71 = call zeroext i1 @lex_if_name(ptr noundef %70, ptr noundef %9)
  br i1 %71, label %75, label %72

72:                                               ; preds = %69
  %73 = load ptr, ptr %2, align 8, !tbaa !5
  %74 = call zeroext i1 @lex_if(ptr noundef %73, i32 noundef 3, ptr noundef %9)
  br i1 %74, label %75, label %76

75:                                               ; preds = %72, %69
  store i32 8, ptr %8, align 4, !tbaa !23
  br label %83

76:                                               ; preds = %72
  store i32 7, ptr %8, align 4, !tbaa !23
  br label %83

77:                                               ; preds = %30, %30
  store i32 8, ptr %8, align 4, !tbaa !23
  br label %83

78:                                               ; preds = %30
  %79 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @mn_runtime)
  %80 = getelementptr inbounds %struct.Runtime, ptr %79, i32 0, i32 1
  %81 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @mn_runtime)
  %82 = getelementptr inbounds %struct.Runtime, ptr %81, i32 0, i32 0
  call void (ptr, ptr, ptr, ptr, i32, ptr, ...) @error_throw_as(ptr noundef %80, ptr noundef %82, ptr noundef @.str, ptr noundef @__func__.parse_show, i32 noundef 90, ptr noundef @.str.4) #8
  unreachable

83:                                               ; preds = %77, %76, %75, %68, %65, %64, %55, %54, %45, %44, %35, %34
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #7
  %84 = load ptr, ptr %2, align 8, !tbaa !5
  %85 = call zeroext i1 @lex_if(ptr noundef %84, i32 noundef 56, ptr noundef null)
  %86 = zext i1 %85 to i8
  store i8 %86, ptr %10, align 1, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  %87 = load i32, ptr %8, align 4, !tbaa !23
  %88 = load i8, ptr %10, align 1, !tbaa !24, !range !25, !noundef !26
  %89 = trunc i8 %88 to i1
  %90 = call ptr @cmd_show_allocate_op(i32 noundef %87, ptr noundef %9, i1 noundef zeroext %89)
  store ptr %90, ptr %11, align 8, !tbaa !5
  %91 = load ptr, ptr %3, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.CmdShow, ptr %91, i32 0, i32 1
  %93 = load ptr, ptr %11, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.CmdShowOp, ptr %93, i32 0, i32 3
  call void @list_append(ptr noundef %92, ptr noundef %94)
  %95 = load ptr, ptr %3, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.CmdShow, ptr %95, i32 0, i32 2
  %97 = load i32, ptr %96, align 8, !tbaa !27
  %98 = add nsw i32 %97, 1
  store i32 %98, ptr %96, align 8, !tbaa !27
  %99 = load ptr, ptr %2, align 8, !tbaa !5
  %100 = call zeroext i1 @lex_if(ptr noundef %99, i32 noundef 44, ptr noundef null)
  br i1 %100, label %101, label %102

101:                                              ; preds = %83
  store i32 3, ptr %12, align 4
  br label %103

102:                                              ; preds = %83
  store i32 2, ptr %12, align 4
  br label %103

103:                                              ; preds = %102, %101
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  %104 = load i32, ptr %12, align 4
  switch i32 %104, label %109 [
    i32 3, label %30
    i32 2, label %105
  ]

105:                                              ; preds = %103
  %106 = call ptr @unguard()
  %107 = load ptr, ptr %3, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.CmdShow, ptr %107, i32 0, i32 0
  store i32 1, ptr %12, align 4
  call void @guard_runner(ptr noundef %4)
  call void @llvm.lifetime.end.p0(i64 24, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #7
  ret ptr %108

109:                                              ; preds = %103
  unreachable
}

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @cmd_show_allocate() #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @cmd_free(ptr noundef) #2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare nonnull ptr @llvm.threadlocal.address.p0(ptr nonnull) #3

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

; Function Attrs: alwaysinline nounwind uwtable
declare hidden void @guard_runner(ptr noundef) #4

declare void @lex_next(ptr noundef, ptr noundef) #5

declare zeroext i1 @lex_if(ptr noundef, i32 noundef, ptr noundef) #5

; Function Attrs: inlinehint noreturn nounwind uwtable
declare hidden void @error_throw_as(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, ...) #6

declare zeroext i1 @lex_if_name(ptr noundef, ptr noundef) #5

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @cmd_show_allocate_op(i32 noundef, ptr noundef, i1 noundef zeroext) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @list_append(ptr noundef, ptr noundef) #2

; Function Attrs: alwaysinline nounwind uwtable
declare hidden ptr @unguard() #4

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { inlinehint 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 #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { alwaysinline 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 #5 = { "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 = { inlinehint noreturn 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 }
attributes #8 = { 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/C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"Guard", !6, i64 0, !6, i64 8, !6, i64 16}
!11 = !{!10, !6, i64 8}
!12 = !{!13, !6, i64 0}
!13 = !{!"Runtime", !14, i64 0, !15, i64 8, !6, i64 312}
!14 = !{!"ExceptionMgr", !6, i64 0}
!15 = !{!"Error", !7, i64 0, !16, i64 256, !6, i64 264, !6, i64 272, !16, i64 280, !6, i64 288, !6, i64 296}
!16 = !{!"int", !7, i64 0}
!17 = !{!18, !6, i64 16}
!18 = !{!"Exception", !6, i64 0, !19, i64 8, !6, i64 16, !7, i64 24}
!19 = !{!"_Bool", !7, i64 0}
!20 = !{!10, !6, i64 16}
!21 = !{!22, !16, i64 0}
!22 = !{!"Token", !16, i64 0, !7, i64 8}
!23 = !{!16, !16, i64 0}
!24 = !{!19, !19, i64 0}
!25 = !{i8 0, i8 2}
!26 = !{}
!27 = !{!28, !16, i64 32}
!28 = !{!"CmdShow", !29, i64 0, !30, i64 16, !16, i64 32}
!29 = !{!"Cmd", !16, i64 0, !6, i64 8}
!30 = !{!"List", !6, i64 0, !6, i64 8}


; 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.Runtime = type { %struct.ExceptionMgr, %struct.Error, ptr }
%struct.ExceptionMgr = type { ptr }
%struct.Error = type { [256 x i8], i32, ptr, ptr, i32, ptr, ptr }
%struct.Guard = type { ptr, ptr, ptr }
%struct.Token = type { i32, %union.anon }
%union.anon = type { %struct.anon }
%struct.anon = type { %struct.Str, i8 }
%struct.Str = type { ptr, ptr, i8 }

@mn_runtime = external thread_local global %struct.Runtime, align 8
@.str = external hidden unnamed_addr constant [86 x i8], align 1
@__func__.parse_show = external hidden unnamed_addr constant [11 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [92 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local ptr @parse_show(ptr noundef %0) local_unnamed_addr #0 {
  %2 = alloca %struct.Guard, align 8
  %3 = alloca %struct.Token, align 8
  %4 = tail call ptr @cmd_show_allocate()
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %2) #7
  store ptr @cmd_free, ptr %2, align 8, !tbaa !5
  %5 = getelementptr inbounds i8, ptr %2, i64 8
  store ptr %4, ptr %5, align 8, !tbaa !10
  %6 = getelementptr inbounds i8, ptr %2, i64 16
  %7 = tail call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @mn_runtime)
  %8 = load ptr, ptr %7, align 8, !tbaa !11
  %9 = getelementptr inbounds i8, ptr %8, i64 16
  %10 = load ptr, ptr %9, align 8, !tbaa !16
  store ptr %2, ptr %9, align 8, !tbaa !16
  store ptr %10, ptr %6, align 8, !tbaa !19
  %11 = getelementptr inbounds i8, ptr %4, i64 16
  %12 = getelementptr inbounds i8, ptr %4, i64 32
  br label %13

13:                                               ; preds = %40, %1
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %3) #7
  call void @lex_next(ptr noundef %0, ptr noundef nonnull %3) #7
  %14 = load i32, ptr %3, align 8, !tbaa !20
  switch i32 %14, label %38 [
    i32 58, label %40
    i32 57, label %15
    i32 51, label %16
    i32 52, label %20
    i32 33, label %21
    i32 34, label %25
    i32 35, label %26
    i32 36, label %30
    i32 41, label %32
    i32 29, label %33
    i32 28, label %33
    i32 4, label %37
    i32 3, label %37
  ]

15:                                               ; preds = %13
  br label %40

16:                                               ; preds = %13
  %17 = call zeroext i1 @lex_if(ptr noundef %0, i32 noundef 4, ptr noundef nonnull %3) #7
  br i1 %17, label %40, label %18

18:                                               ; preds = %16
  %19 = getelementptr inbounds i8, ptr %7, i64 8
  call void (ptr, ptr, ptr, ptr, i32, ptr, ...) @error_throw_as(ptr noundef nonnull %19, ptr noundef nonnull %7, ptr noundef nonnull @.str, ptr noundef nonnull @__func__.parse_show, i32 noundef 46, ptr noundef nonnull @.str.1) #8
  unreachable

20:                                               ; preds = %13
  br label %40

21:                                               ; preds = %13
  %22 = call zeroext i1 @lex_if(ptr noundef %0, i32 noundef 4, ptr noundef nonnull %3) #7
  br i1 %22, label %40, label %23

23:                                               ; preds = %21
  %24 = getelementptr inbounds i8, ptr %7, i64 8
  call void (ptr, ptr, ptr, ptr, i32, ptr, ...) @error_throw_as(ptr noundef nonnull %24, ptr noundef nonnull %7, ptr noundef nonnull @.str, ptr noundef nonnull @__func__.parse_show, i32 noundef 55, ptr noundef nonnull @.str.2) #8
  unreachable

25:                                               ; preds = %13
  br label %40

26:                                               ; preds = %13
  %27 = call zeroext i1 @lex_if(ptr noundef %0, i32 noundef 2, ptr noundef nonnull %3) #7
  br i1 %27, label %40, label %28

28:                                               ; preds = %26
  %29 = getelementptr inbounds i8, ptr %7, i64 8
  call void (ptr, ptr, ptr, ptr, i32, ptr, ...) @error_throw_as(ptr noundef nonnull %29, ptr noundef nonnull %7, ptr noundef nonnull @.str, ptr noundef nonnull @__func__.parse_show, i32 noundef 64, ptr noundef nonnull @.str.3) #8
  unreachable

30:                                               ; preds = %13
  %31 = call zeroext i1 @lex_if(ptr noundef %0, i32 noundef 4, ptr noundef nonnull %3) #7
  br label %40

32:                                               ; preds = %13
  br label %40

33:                                               ; preds = %13, %13
  %34 = call zeroext i1 @lex_if_name(ptr noundef %0, ptr noundef nonnull %3) #7
  br i1 %34, label %40, label %35

35:                                               ; preds = %33
  %36 = call zeroext i1 @lex_if(ptr noundef %0, i32 noundef 3, ptr noundef nonnull %3) #7
  %spec.select = select i1 %36, i32 8, i32 7
  br label %40

37:                                               ; preds = %13, %13
  br label %40

38:                                               ; preds = %13
  %39 = getelementptr inbounds i8, ptr %7, i64 8
  call void (ptr, ptr, ptr, ptr, i32, ptr, ...) @error_throw_as(ptr noundef nonnull %39, ptr noundef nonnull %7, ptr noundef nonnull @.str, ptr noundef nonnull @__func__.parse_show, i32 noundef 90, ptr noundef nonnull @.str.4) #8
  unreachable

40:                                               ; preds = %35, %33, %26, %21, %16, %13, %37, %32, %30, %25, %20, %15
  %.020 = phi i32 [ 8, %37 ], [ 6, %32 ], [ 5, %30 ], [ 3, %25 ], [ 2, %20 ], [ 1, %15 ], [ 0, %13 ], [ 2, %16 ], [ 3, %21 ], [ 4, %26 ], [ 8, %33 ], [ %spec.select, %35 ]
  %41 = call zeroext i1 @lex_if(ptr noundef %0, i32 noundef 56, ptr noundef null) #7
  %42 = call ptr @cmd_show_allocate_op(i32 noundef %.020, ptr noundef nonnull %3, i1 noundef zeroext %41)
  %43 = getelementptr inbounds i8, ptr %42, i64 48
  call void @list_append(ptr noundef nonnull %11, ptr noundef nonnull %43)
  %44 = load i32, ptr %12, align 8, !tbaa !22
  %45 = add nsw i32 %44, 1
  store i32 %45, ptr %12, align 8, !tbaa !22
  %46 = call zeroext i1 @lex_if(ptr noundef %0, i32 noundef 44, ptr noundef null) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %3) #7
  br i1 %46, label %13, label %47

47:                                               ; preds = %40
  %48 = call ptr @unguard()
  call void @guard_runner(ptr noundef nonnull %2)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #7
  ret ptr %4
}

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @cmd_show_allocate() local_unnamed_addr #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @cmd_free(ptr noundef) #2

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare nonnull ptr @llvm.threadlocal.address.p0(ptr nonnull) #3

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

; Function Attrs: alwaysinline nounwind uwtable
declare hidden void @guard_runner(ptr noundef) local_unnamed_addr #4

declare void @lex_next(ptr noundef, ptr noundef) local_unnamed_addr #5

declare zeroext i1 @lex_if(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #5

; Function Attrs: inlinehint noreturn nounwind uwtable
declare hidden void @error_throw_as(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, ...) local_unnamed_addr #6

declare zeroext i1 @lex_if_name(ptr noundef, ptr noundef) local_unnamed_addr #5

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @cmd_show_allocate_op(i32 noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @list_append(ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: alwaysinline nounwind uwtable
declare hidden ptr @unguard() local_unnamed_addr #4

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { inlinehint 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 #3 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { alwaysinline 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 #5 = { "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 = { inlinehint noreturn 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 }
attributes #8 = { 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, !7, i64 0}
!6 = !{!"Guard", !7, i64 0, !7, i64 8, !7, i64 16}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!6, !7, i64 8}
!11 = !{!12, !7, i64 0}
!12 = !{!"Runtime", !13, i64 0, !14, i64 8, !7, i64 312}
!13 = !{!"ExceptionMgr", !7, i64 0}
!14 = !{!"Error", !8, i64 0, !15, i64 256, !7, i64 264, !7, i64 272, !15, i64 280, !7, i64 288, !7, i64 296}
!15 = !{!"int", !8, i64 0}
!16 = !{!17, !7, i64 16}
!17 = !{!"Exception", !7, i64 0, !18, i64 8, !7, i64 16, !8, i64 24}
!18 = !{!"_Bool", !8, i64 0}
!19 = !{!6, !7, i64 16}
!20 = !{!21, !15, i64 0}
!21 = !{!"Token", !15, i64 0, !8, i64 8}
!22 = !{!23, !15, i64 32}
!23 = !{!"CmdShow", !24, i64 0, !25, i64 16, !15, i64 32}
!24 = !{!"Cmd", !15, i64 0, !7, i64 8}
!25 = !{!"List", !7, i64 0, !7, i64 8}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,SROAPass,SimplifyCFGPass,TailCallElimPass