#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*/ printf(char *, ...);
void dissect_national_decimal_sign(unsigned long local_sign) {
  switch (local_sign) {
  case 0x002b:
    printf("( + )");
    break;
  case 0x002d:
    printf("( - )");
    break;
  default:
    printf("unhandled sign value: %lx", local_sign);
  }
}


x86 assembly (clang, -O0):
<dissect_national_decimal_sign>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x10(%rbp)
sub    $0x2b,%rax
je     1146 <dissect_national_decimal_sign+0x36>
jmp    1133 <dissect_national_decimal_sign+0x23>
mov    -0x10(%rbp),%rax
sub    $0x2d,%rax
je     1159 <dissect_national_decimal_sign+0x49>
jmp    116c <dissect_national_decimal_sign+0x5c>
lea    0xeb3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    117e <dissect_national_decimal_sign+0x6e>
lea    0xea6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    117e <dissect_national_decimal_sign+0x6e>
mov    -0x8(%rbp),%rsi
lea    0xe95(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<dissect_national_decimal_sign>:
cmp    $0x2d,%rdi
je     112d <dissect_national_decimal_sign+0x1d>
mov    %rdi,%rsi
cmp    $0x2b,%rdi
jne    113b <dissect_national_decimal_sign+0x2b>
lea    0xeda(%rip),%rdi
xor    %eax,%eax
jmp    1030 <printf@plt>
lea    0xed2(%rip),%rdi
xor    %eax,%eax
jmp    1030 <printf@plt>
lea    0xeca(%rip),%rdi
xor    %eax,%eax
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [6 x i8] c"( + )\00"
@.str.1 = [6 x i8] c"( - )\00"
@.str.2 = [26 x i8] c"unhandled sign value: %lx\00"
define void @dissect_national_decimal_sign(i64 %0) {
%2 = alloca i64
store i64 %0, i64* %2
%3 = load i64, i64* %2
switch i64 %3, label %8 [
i64 43, label %4
i64 45, label %6
]
4: ; preds = %1
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
br label %11
6: ; preds = %1
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
br label %11
8: ; preds = %1
%9 = load i64, i64* %2
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.2, i64 0, i64 0), i64 %9)
br label %11
11: ; preds = %8, %6, %4
ret void
}

LLVM IR (-O2):
@.str = [6 x i8] c"( + )\00"
@.str.1 = [6 x i8] c"( - )\00"
@.str.2 = [26 x i8] c"unhandled sign value: %lx\00"
define void @dissect_national_decimal_sign(i64 %0) {
switch i64 %0, label %6 [
i64 43, label %2
i64 45, label %4
]
2: ; preds = %1
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
br label %8
4: ; preds = %1
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
br label %8
6: ; preds = %1
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.2, i64 0, i64 0), i64 %0)
br label %8
8: ; preds = %6, %4, %2
ret void
}