#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*/ get_lexval();
int yyselect();
arithmatic() {
  switch (yyselect()) {
  case 47: {
    get_lexval();
  } break;
  case 48: {
    get_lexval();
  } break;
  case 49: {
    get_lexval();
  } break;
  case 50: {
    get_lexval();
  } break;
  case 51: {
    get_lexval();
  } break;
  case 52: {
    get_lexval();
  } break;
  case 53: {
    get_lexval();
  } break;
  case 54: {
    get_lexval();
  } break;
  case 55: {
    get_lexval();
  } break;
  case 56: {
    get_lexval();
  } break;
  }
}


x86 assembly (clang, -O0):
<arithmatic>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
xor    %eax,%eax
call   1030 <yyselect@plt>
add    $0xffffffd1,%eax
mov    %eax,%ecx
mov    %rcx,-0x10(%rbp)
sub    $0x9,%eax
ja     11c8 <arithmatic+0xa8>
mov    -0x10(%rbp),%rax
lea    0xeb4(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    $0x0,%al
call   1040 <get_lexval@plt>
jmp    11c8 <arithmatic+0xa8>
mov    $0x0,%al
call   1040 <get_lexval@plt>
jmp    11c8 <arithmatic+0xa8>
mov    $0x0,%al
call   1040 <get_lexval@plt>
jmp    11c8 <arithmatic+0xa8>
mov    $0x0,%al
call   1040 <get_lexval@plt>
jmp    11c8 <arithmatic+0xa8>
mov    $0x0,%al
call   1040 <get_lexval@plt>
jmp    11c8 <arithmatic+0xa8>
mov    $0x0,%al
call   1040 <get_lexval@plt>
jmp    11c8 <arithmatic+0xa8>
mov    $0x0,%al
call   1040 <get_lexval@plt>
jmp    11c8 <arithmatic+0xa8>
mov    $0x0,%al
call   1040 <get_lexval@plt>
jmp    11c8 <arithmatic+0xa8>
mov    $0x0,%al
call   1040 <get_lexval@plt>
jmp    11c8 <arithmatic+0xa8>
mov    $0x0,%al
call   1040 <get_lexval@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<arithmatic>:
push   %rax
xor    %eax,%eax
call   1030 <yyselect@plt>
add    $0xffffffd1,%eax
cmp    $0x9,%eax
ja     1137 <arithmatic+0x17>
xor    %eax,%eax
call   1040 <get_lexval@plt>
pop    %rcx
ret

LLVM IR (-O0):
define i32 @arithmatic() {
%1 = alloca i32
%2 = call i32 (...) @yyselect()
switch i32 %2, label %23 [
i32 47, label %3
i32 48, label %5
i32 49, label %7
i32 50, label %9
i32 51, label %11
i32 52, label %13
i32 53, label %15
i32 54, label %17
i32 55, label %19
i32 56, label %21
]
3: ; preds = %0
%4 = call i32 (...) @get_lexval()
br label %23
5: ; preds = %0
%6 = call i32 (...) @get_lexval()
br label %23
7: ; preds = %0
%8 = call i32 (...) @get_lexval()
br label %23
9: ; preds = %0
%10 = call i32 (...) @get_lexval()
br label %23
11: ; preds = %0
%12 = call i32 (...) @get_lexval()
br label %23
13: ; preds = %0
%14 = call i32 (...) @get_lexval()
br label %23
15: ; preds = %0
%16 = call i32 (...) @get_lexval()
br label %23
17: ; preds = %0
%18 = call i32 (...) @get_lexval()
br label %23
19: ; preds = %0
%20 = call i32 (...) @get_lexval()
br label %23
21: ; preds = %0
%22 = call i32 (...) @get_lexval()
br label %23
23: ; preds = %0, %21, %19, %17, %15, %13, %11, %9, %7, %5, %3
%24 = load i32, i32* %1
ret i32 %24
}

LLVM IR (-O2):
define i32 @arithmatic() {
%1 = tail call i32 (...) @yyselect()
%2 = add i32 %1, -47
%3 = icmp ult i32 %2, 10
br i1 %3, label %4, label %6
4: ; preds = %0
%5 = tail call i32 (...) @get_lexval()
br label %6
6: ; preds = %0, %4
ret i32 undef
}