#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 */
bool isCurrentSymbolASubtractiveForThePreviousSymbol(int possibleSubtractve,
                                                     int symbolValue) {
  bool isASubtractiveValue = false;
  switch (symbolValue) {
  case 5:
  case 10:
    isASubtractiveValue = (possibleSubtractve == 1);
    break;
  case 50:
  case 100:
    isASubtractiveValue = (possibleSubtractve == 10);
    break;
  case 500:
  case 1000:
    isASubtractiveValue = (possibleSubtractve == 100);
    break;
  case 1:
  default:
    isASubtractiveValue = false;
  }
  return isASubtractiveValue;
}


x86 assembly (clang, -O0):
<isCurrentSymbolASubtractiveForThePreviousSymbol>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0x10(%rbp)
sub    $0x1,%eax
je     11cb <isCurrentSymbolASubtractiveForThePreviousSymbol+0xcb>
jmp    1125 <isCurrentSymbolASubtractiveForThePreviousSymbol+0x25>
mov    -0x10(%rbp),%eax
sub    $0x5,%eax
je     118f <isCurrentSymbolASubtractiveForThePreviousSymbol+0x8f>
jmp    1136 <isCurrentSymbolASubtractiveForThePreviousSymbol+0x36>
mov    -0x10(%rbp),%eax
sub    $0xa,%eax
je     118f <isCurrentSymbolASubtractiveForThePreviousSymbol+0x8f>
jmp    1147 <isCurrentSymbolASubtractiveForThePreviousSymbol+0x47>
mov    -0x10(%rbp),%eax
sub    $0x32,%eax
je     11a3 <isCurrentSymbolASubtractiveForThePreviousSymbol+0xa3>
jmp    1158 <isCurrentSymbolASubtractiveForThePreviousSymbol+0x58>
mov    -0x10(%rbp),%eax
sub    $0x64,%eax
je     11a3 <isCurrentSymbolASubtractiveForThePreviousSymbol+0xa3>
jmp    1169 <isCurrentSymbolASubtractiveForThePreviousSymbol+0x69>
mov    -0x10(%rbp),%eax
sub    $0x1f4,%eax
je     11b7 <isCurrentSymbolASubtractiveForThePreviousSymbol+0xb7>
jmp    117c <isCurrentSymbolASubtractiveForThePreviousSymbol+0x7c>
mov    -0x10(%rbp),%eax
sub    $0x3e8,%eax
je     11b7 <isCurrentSymbolASubtractiveForThePreviousSymbol+0xb7>
jmp    11d0 <isCurrentSymbolASubtractiveForThePreviousSymbol+0xd0>
cmpl   $0x1,-0x4(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0xc(%rbp)
jmp    11d7 <isCurrentSymbolASubtractiveForThePreviousSymbol+0xd7>
cmpl   $0xa,-0x4(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0xc(%rbp)
jmp    11d7 <isCurrentSymbolASubtractiveForThePreviousSymbol+0xd7>
cmpl   $0x64,-0x4(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0xc(%rbp)
jmp    11d7 <isCurrentSymbolASubtractiveForThePreviousSymbol+0xd7>
jmp    11d0 <isCurrentSymbolASubtractiveForThePreviousSymbol+0xd0>
movl   $0x0,-0xc(%rbp)
mov    -0xc(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<isCurrentSymbolASubtractiveForThePreviousSymbol>:
xor    %eax,%eax
cmp    $0x63,%esi
jg     111a <isCurrentSymbolASubtractiveForThePreviousSymbol+0x1a>
cmp    $0x5,%esi
je     1134 <isCurrentSymbolASubtractiveForThePreviousSymbol+0x34>
cmp    $0xa,%esi
je     1134 <isCurrentSymbolASubtractiveForThePreviousSymbol+0x34>
cmp    $0x32,%esi
je     1139 <isCurrentSymbolASubtractiveForThePreviousSymbol+0x39>
movzbl %al,%eax
ret
cmp    $0x64,%esi
je     1139 <isCurrentSymbolASubtractiveForThePreviousSymbol+0x39>
cmp    $0x1f4,%esi
je     112f <isCurrentSymbolASubtractiveForThePreviousSymbol+0x2f>
cmp    $0x3e8,%esi
jne    1116 <isCurrentSymbolASubtractiveForThePreviousSymbol+0x16>
cmp    $0x64,%edi
jmp    113c <isCurrentSymbolASubtractiveForThePreviousSymbol+0x3c>
cmp    $0x1,%edi
jmp    113c <isCurrentSymbolASubtractiveForThePreviousSymbol+0x3c>
cmp    $0xa,%edi
sete   %al
movzbl %al,%eax
ret

LLVM IR (-O0):
define i32 @isCurrentSymbolASubtractiveForThePreviousSymbol(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
store i32 0, i32* %5
%6 = load i32, i32* %4
switch i32 %6, label %20 [
i32 5, label %7
i32 10, label %7
i32 50, label %11
i32 100, label %11
i32 500, label %15
i32 1000, label %15
i32 1, label %19
]
7: ; preds = %2, %2
%8 = load i32, i32* %3
%9 = icmp eq i32 %8, 1
%10 = zext i1 %9 to i32
store i32 %10, i32* %5
br label %21
11: ; preds = %2, %2
%12 = load i32, i32* %3
%13 = icmp eq i32 %12, 10
%14 = zext i1 %13 to i32
store i32 %14, i32* %5
br label %21
15: ; preds = %2, %2
%16 = load i32, i32* %3
%17 = icmp eq i32 %16, 100
%18 = zext i1 %17 to i32
store i32 %18, i32* %5
br label %21
19: ; preds = %2
br label %20
20: ; preds = %2, %19
store i32 0, i32* %5
br label %21
21: ; preds = %20, %15, %11, %7
%22 = load i32, i32* %5
ret i32 %22
}

LLVM IR (-O2):
define i32 @isCurrentSymbolASubtractiveForThePreviousSymbol(i32 %0, i32 %1) {
switch i32 %1, label %9 [
i32 5, label %3
i32 10, label %3
i32 50, label %5
i32 100, label %5
i32 500, label %7
i32 1000, label %7
]
3: ; preds = %2, %2
%4 = icmp eq i32 %0, 1
br label %9
5: ; preds = %2, %2
%6 = icmp eq i32 %0, 10
br label %9
7: ; preds = %2, %2
%8 = icmp eq i32 %0, 100
br label %9
9: ; preds = %2, %7, %5, %3
%10 = phi i1 [ %8, %7 ], [ %6, %5 ], [ %4, %3 ], [ false, %2 ]
%11 = zext i1 %10 to i32
ret i32 %11
}