#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*/ type_qualifier(int *);
int /*<<< orphan*/ type_specifier();
int yyselect();
specifier_qualifier_list() {
  int q;
  switch (yyselect()) {
  case 25: {
    switch (yyselect()) {
    case 117: {
      type_specifier();
    } break;
    case 118: {
      type_qualifier(&q);
    } break;
    default:
      printf("???\n");
      exit(1);
    }
    switch (yyselect()) {
    case 119: {
      specifier_qualifier_list();
    } break;
    default:;
    }
  } break;
  }
}


x86 assembly (clang, -O0):
<specifier_qualifier_list>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
xor    %eax,%eax
call   1050 <yyselect@plt>
sub    $0x19,%eax
jne    1201 <specifier_qualifier_list+0xa1>
jmp    117d <specifier_qualifier_list+0x1d>
xor    %eax,%eax
call   1050 <yyselect@plt>
mov    %eax,%ecx
mov    %ecx,-0xc(%rbp)
sub    $0x75,%eax
je     11a8 <specifier_qualifier_list+0x48>
jmp    1197 <specifier_qualifier_list+0x37>
mov    -0xc(%rbp),%eax
sub    $0x76,%eax
je     11b4 <specifier_qualifier_list+0x54>
jmp    11c2 <specifier_qualifier_list+0x62>
mov    $0x0,%al
call   1080 <type_specifier@plt>
jmp    11d8 <specifier_qualifier_list+0x78>
lea    -0x8(%rbp),%rdi
call   1030 <type_qualifier@plt>
jmp    11d8 <specifier_qualifier_list+0x78>
lea    0xe37(%rip),%rdi
call   1040 <printf@plt>
mov    $0x1,%edi
call   1070 <exit@plt>
xor    %eax,%eax
call   1050 <yyselect@plt>
sub    $0x77,%eax
jne    11f7 <specifier_qualifier_list+0x97>
jmp    11ed <specifier_qualifier_list+0x8d>
call   1060 <specifier_qualifier_list@plt>
jmp    11fc <specifier_qualifier_list+0x9c>
jmp    11fc <specifier_qualifier_list+0x9c>
jmp    1201 <specifier_qualifier_list+0xa1>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<specifier_qualifier_list>:
push   %rax
xor    %eax,%eax
call   1050 <yyselect@plt>
cmp    $0x19,%eax
jne    11a2 <specifier_qualifier_list+0x42>
xor    %eax,%eax
call   1050 <yyselect@plt>
cmp    $0x76,%eax
je     1187 <specifier_qualifier_list+0x27>
cmp    $0x75,%eax
jne    11a4 <specifier_qualifier_list+0x44>
xor    %eax,%eax
call   1080 <type_specifier@plt>
jmp    1191 <specifier_qualifier_list+0x31>
lea    0x4(%rsp),%rdi
call   1040 <type_qualifier@plt>
xor    %eax,%eax
call   1050 <yyselect@plt>
cmp    $0x77,%eax
jne    11a2 <specifier_qualifier_list+0x42>
call   1060 <specifier_qualifier_list@plt>
pop    %rcx
ret
lea    0xe55(%rip),%rdi
call   1030 <puts@plt>
mov    $0x1,%edi
call   1070 <exit@plt>

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

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