#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ storage_class_specifier(int *);
int /*<<< orphan*/ type_qualifier(int *);
int /*<<< orphan*/ type_specifier();
int yyselect();
declaration_specifiers() {
  int c;
  int q;
  switch (yyselect()) {
  case 7: {
    switch (yyselect()) {
    case 111: {
      storage_class_specifier(&c);
    } break;
    case 112: {
      type_specifier();
    } break;
    case 113: {
      type_qualifier(&q);
    } break;
    default:
      printf("???\n");
      exit(1);
    }
    switch (yyselect()) {
    case 114: {
      declaration_specifiers();
    } break;
    default:;
    }
  } break;
  }
}


x86 assembly (clang, -O0):
<declaration_specifiers>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
xor    %eax,%eax
call   1060 <yyselect@plt>
sub    $0x7,%eax
jne    1230 <declaration_specifiers+0xc0>
jmp    118d <declaration_specifiers+0x1d>
xor    %eax,%eax
call   1060 <yyselect@plt>
mov    %eax,%ecx
mov    %ecx,-0x10(%rbp)
sub    $0x6f,%eax
je     11c9 <declaration_specifiers+0x59>
jmp    11a7 <declaration_specifiers+0x37>
mov    -0x10(%rbp),%eax
sub    $0x70,%eax
je     11d7 <declaration_specifiers+0x67>
jmp    11b8 <declaration_specifiers+0x48>
mov    -0x10(%rbp),%eax
sub    $0x71,%eax
je     11e3 <declaration_specifiers+0x73>
jmp    11f1 <declaration_specifiers+0x81>
lea    -0x8(%rbp),%rdi
call   1030 <storage_class_specifier@plt>
jmp    1207 <declaration_specifiers+0x97>
mov    $0x0,%al
call   1090 <type_specifier@plt>
jmp    1207 <declaration_specifiers+0x97>
lea    -0xc(%rbp),%rdi
call   1040 <type_qualifier@plt>
jmp    1207 <declaration_specifiers+0x97>
lea    0xe08(%rip),%rdi
call   1050 <printf@plt>
mov    $0x1,%edi
call   1080 <exit@plt>
xor    %eax,%eax
call   1060 <yyselect@plt>
sub    $0x72,%eax
jne    1226 <declaration_specifiers+0xb6>
jmp    121c <declaration_specifiers+0xac>
call   1070 <declaration_specifiers@plt>
jmp    122b <declaration_specifiers+0xbb>
jmp    122b <declaration_specifiers+0xbb>
jmp    1230 <declaration_specifiers+0xc0>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<declaration_specifiers>:
push   %rax
xor    %eax,%eax
call   1060 <yyselect@plt>
cmp    $0x7,%eax
jne    11c1 <declaration_specifiers+0x51>
xor    %eax,%eax
call   1060 <yyselect@plt>
cmp    $0x71,%eax
je     119f <declaration_specifiers+0x2f>
cmp    $0x70,%eax
je     11a9 <declaration_specifiers+0x39>
cmp    $0x6f,%eax
jne    11c3 <declaration_specifiers+0x53>
lea    0x4(%rsp),%rdi
call   1030 <storage_class_specifier@plt>
jmp    11b0 <declaration_specifiers+0x40>
mov    %rsp,%rdi
call   1050 <type_qualifier@plt>
jmp    11b0 <declaration_specifiers+0x40>
xor    %eax,%eax
call   1090 <type_specifier@plt>
xor    %eax,%eax
call   1060 <yyselect@plt>
cmp    $0x72,%eax
jne    11c1 <declaration_specifiers+0x51>
call   1070 <declaration_specifiers@plt>
pop    %rcx
ret
lea    0xe36(%rip),%rdi
call   1040 <puts@plt>
mov    $0x1,%edi
call   1080 <exit@plt>

LLVM IR (-O0):
@.str = [5 x i8] c"???\0A\00"
define i32 @declaration_specifiers() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = call i32 (...) @yyselect()
switch i32 %4, label %22 [
i32 7, label %5
]
5: ; preds = %0
%6 = call i32 (...) @yyselect()
switch i32 %6, label %13 [
i32 111, label %7
i32 112, label %9
i32 113, label %11
]
7: ; preds = %5
%8 = call i32 @storage_class_specifier(i32* %2)
br label %16
9: ; preds = %5
%10 = call i32 (...) @type_specifier()
br label %16
11: ; preds = %5
%12 = call i32 @type_qualifier(i32* %3)
br label %16
13: ; preds = %5
%14 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%15 = call i32 @exit(i32 1)
unreachable
16: ; preds = %11, %9, %7
%17 = call i32 (...) @yyselect()
switch i32 %17, label %20 [
i32 114, label %18
]
18: ; preds = %16
%19 = call i32 @declaration_specifiers()
br label %21
20: ; preds = %16
br label %21
21: ; preds = %20, %18
br label %22
22: ; preds = %0, %21
%23 = load i32, i32* %1
ret i32 %23
}

LLVM IR (-O2):
@str = [4 x i8] c"???\00"
define i32 @declaration_specifiers() {
%1 = alloca i32
%2 = alloca i32
%3 = bitcast i32* %1 to i8*
%4 = bitcast i32* %2 to i8*
%5 = tail call i32 (...) @yyselect()
%6 = icmp eq i32 %5, 7
br i1 %6, label %7, label %23
7: ; preds = %0
%8 = tail call i32 (...) @yyselect()
switch i32 %8, label %15 [
i32 111, label %9
i32 112, label %11
i32 113, label %13
]
9: ; preds = %7
%10 = call i32 @storage_class_specifier(i32* %1)
br label %18
11: ; preds = %7
%12 = tail call i32 (...) @type_specifier()
br label %18
13: ; preds = %7
%14 = call i32 @type_qualifier(i32* %2)
br label %18
15: ; preds = %7
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @str, i64 0, i64 0))
%17 = tail call i32 @exit(i32 1)
unreachable
18: ; preds = %13, %11, %9
%19 = call i32 (...) @yyselect()
%20 = icmp eq i32 %19, 114
br i1 %20, label %21, label %23
21: ; preds = %18
%22 = call i32 @declaration_specifiers()
br label %23
23: ; preds = %21, %18, %0
ret i32 undef
}