#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*/ arguments();
int /*<<< orphan*/ block();
int /*<<< orphan*/ get_lexval();
int /*<<< orphan*/ printf(char *, int);
int /*<<< orphan*/ type();
int yyselect();
func_dcl() {
  switch (yyselect()) {
  case 15: {
    type();
    get_lexval();
    get_lexval();
    switch (yyselect()) {
    case 110: {
      arguments();
    } break;
    default:;
    }
    get_lexval();
    get_lexval();
    printf("%d\n", 3);
  } break;
  case 16: {
    type();
    get_lexval();
    get_lexval();
    switch (yyselect()) {
    case 111: {
      arguments();
    } break;
    default:;
    }
    get_lexval();
    block();
  } break;
  }
}


x86 assembly (clang, -O0):
<func_dcl>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
xor    %eax,%eax
call   1060 <yyselect@plt>
mov    %eax,%ecx
mov    %ecx,-0x8(%rbp)
sub    $0xf,%eax
je     1193 <func_dcl+0x33>
jmp    1182 <func_dcl+0x22>
mov    -0x8(%rbp),%eax
sub    $0x10,%eax
je     11f8 <func_dcl+0x98>
jmp    1247 <func_dcl+0xe7>
xor    %eax,%eax
mov    %al,-0x9(%rbp)
call   1040 <type@plt>
mov    -0x9(%rbp),%al
call   1070 <get_lexval@plt>
mov    -0x9(%rbp),%al
call   1070 <get_lexval@plt>
mov    -0x9(%rbp),%al
call   1060 <yyselect@plt>
sub    $0x6e,%eax
jne    11cf <func_dcl+0x6f>
jmp    11c3 <func_dcl+0x63>
mov    $0x0,%al
call   1030 <arguments@plt>
jmp    11d4 <func_dcl+0x74>
jmp    11d4 <func_dcl+0x74>
mov    $0x0,%al
call   1070 <get_lexval@plt>
mov    $0x0,%al
call   1070 <get_lexval@plt>
lea    0xe17(%rip),%rdi
mov    $0x3,%esi
call   1050 <printf@plt>
jmp    1247 <func_dcl+0xe7>
xor    %eax,%eax
mov    %al,-0xa(%rbp)
call   1040 <type@plt>
mov    -0xa(%rbp),%al
call   1070 <get_lexval@plt>
mov    -0xa(%rbp),%al
call   1070 <get_lexval@plt>
mov    -0xa(%rbp),%al
call   1060 <yyselect@plt>
sub    $0x6f,%eax
jne    1234 <func_dcl+0xd4>
jmp    1228 <func_dcl+0xc8>
mov    $0x0,%al
call   1030 <arguments@plt>
jmp    1239 <func_dcl+0xd9>
jmp    1239 <func_dcl+0xd9>
mov    $0x0,%al
call   1070 <get_lexval@plt>
mov    $0x0,%al
call   1080 <block@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<func_dcl>:
push   %rax
xor    %eax,%eax
call   1060 <yyselect@plt>
cmp    $0x10,%eax
je     11bb <func_dcl+0x5b>
cmp    $0xf,%eax
jne    11f1 <func_dcl+0x91>
xor    %eax,%eax
call   1040 <type@plt>
xor    %eax,%eax
call   1070 <get_lexval@plt>
xor    %eax,%eax
call   1070 <get_lexval@plt>
xor    %eax,%eax
call   1060 <yyselect@plt>
cmp    $0x6e,%eax
jne    119a <func_dcl+0x3a>
xor    %eax,%eax
call   1030 <arguments@plt>
xor    %eax,%eax
call   1070 <get_lexval@plt>
xor    %eax,%eax
call   1070 <get_lexval@plt>
lea    0xe51(%rip),%rdi
mov    $0x3,%esi
call   1050 <printf@plt>
pop    %rcx
ret
xor    %eax,%eax
call   1040 <type@plt>
xor    %eax,%eax
call   1070 <get_lexval@plt>
xor    %eax,%eax
call   1070 <get_lexval@plt>
xor    %eax,%eax
call   1060 <yyselect@plt>
cmp    $0x6f,%eax
jne    11e3 <func_dcl+0x83>
xor    %eax,%eax
call   1030 <arguments@plt>
xor    %eax,%eax
call   1070 <get_lexval@plt>
xor    %eax,%eax
call   1080 <block@plt>
pop    %rcx
ret

LLVM IR (-O0):
@.str = [4 x i8] c"%d\0A\00"
define i32 @func_dcl() {
%1 = alloca i32
%2 = call i32 (...) @yyselect()
switch i32 %2, label %26 [
i32 15, label %3
i32 16, label %15
]
3: ; preds = %0
%4 = call i32 (...) @type()
%5 = call i32 (...) @get_lexval()
%6 = call i32 (...) @get_lexval()
%7 = call i32 (...) @yyselect()
switch i32 %7, label %10 [
i32 110, label %8
]
8: ; preds = %3
%9 = call i32 (...) @arguments()
br label %11
10: ; preds = %3
br label %11
11: ; preds = %10, %8
%12 = call i32 (...) @get_lexval()
%13 = call i32 (...) @get_lexval()
%14 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 3)
br label %26
15: ; preds = %0
%16 = call i32 (...) @type()
%17 = call i32 (...) @get_lexval()
%18 = call i32 (...) @get_lexval()
%19 = call i32 (...) @yyselect()
switch i32 %19, label %22 [
i32 111, label %20
]
20: ; preds = %15
%21 = call i32 (...) @arguments()
br label %23
22: ; preds = %15
br label %23
23: ; preds = %22, %20
%24 = call i32 (...) @get_lexval()
%25 = call i32 (...) @block()
br label %26
26: ; preds = %0, %23, %11
%27 = load i32, i32* %1
ret i32 %27
}

LLVM IR (-O2):
@.str = [4 x i8] c"%d\0A\00"
define i32 @func_dcl() {
%1 = tail call i32 (...) @yyselect()
switch i32 %1, label %25 [
i32 15, label %2
i32 16, label %14
]
2: ; preds = %0
%3 = tail call i32 (...) @type()
%4 = tail call i32 (...) @get_lexval()
%5 = tail call i32 (...) @get_lexval()
%6 = tail call i32 (...) @yyselect()
%7 = icmp eq i32 %6, 110
br i1 %7, label %8, label %10
8: ; preds = %2
%9 = tail call i32 (...) @arguments()
br label %10
10: ; preds = %2, %8
%11 = tail call i32 (...) @get_lexval()
%12 = tail call i32 (...) @get_lexval()
%13 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 3)
br label %25
14: ; preds = %0
%15 = tail call i32 (...) @type()
%16 = tail call i32 (...) @get_lexval()
%17 = tail call i32 (...) @get_lexval()
%18 = tail call i32 (...) @yyselect()
%19 = icmp eq i32 %18, 111
br i1 %19, label %20, label %22
20: ; preds = %14
%21 = tail call i32 (...) @arguments()
br label %22
22: ; preds = %14, %20
%23 = tail call i32 (...) @get_lexval()
%24 = tail call i32 (...) @block()
br label %25
25: ; preds = %0, %22, %10
ret i32 undef
}