#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 */
char getTexChar();
scalar_t__ isdigit(int);
int /*<<< orphan*/ ungetTexChar(char);
void Cmd_OptParam_Without_braces(int code) {
  char cNext = ' ';
  char cLast = ' ';
  do {
    cLast = cNext;
    cNext = getTexChar();
  } while ((cNext != ' ') && (cNext != '\\') && (cNext != '{') &&
           (cNext != '\n') && (cNext != ',') &&
           ((cNext != '.') || (isdigit((int)cLast))) && (cNext != '}') &&
           (cNext != '\"') && (cNext != '[') && (cNext != '$'));
  ungetTexChar(cNext);
}


x86 assembly (clang, -O0):
<Cmd_OptParam_Without_braces>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
movb   $0x20,-0x5(%rbp)
movb   $0x20,-0x6(%rbp)
mov    -0x5(%rbp),%al
mov    %al,-0x6(%rbp)
mov    $0x0,%al
call   1050 <getTexChar@plt>
mov    %al,-0x5(%rbp)
movsbl -0x5(%rbp),%ecx
xor    %eax,%eax
cmp    $0x20,%ecx
mov    %al,-0x7(%rbp)
je     1218 <Cmd_OptParam_Without_braces+0xe8>
movsbl -0x5(%rbp),%ecx
xor    %eax,%eax
cmp    $0x5c,%ecx
mov    %al,-0x7(%rbp)
je     1218 <Cmd_OptParam_Without_braces+0xe8>
movsbl -0x5(%rbp),%ecx
xor    %eax,%eax
cmp    $0x7b,%ecx
mov    %al,-0x7(%rbp)
je     1218 <Cmd_OptParam_Without_braces+0xe8>
movsbl -0x5(%rbp),%ecx
xor    %eax,%eax
cmp    $0xa,%ecx
mov    %al,-0x7(%rbp)
je     1218 <Cmd_OptParam_Without_braces+0xe8>
movsbl -0x5(%rbp),%ecx
xor    %eax,%eax
cmp    $0x2c,%ecx
mov    %al,-0x7(%rbp)
je     1218 <Cmd_OptParam_Without_braces+0xe8>
movsbl -0x5(%rbp),%eax
cmp    $0x2e,%eax
jne    11d5 <Cmd_OptParam_Without_braces+0xa5>
movsbl -0x6(%rbp),%edi
call   1030 <isdigit@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    $0x0,%rcx
mov    %al,-0x7(%rbp)
je     1218 <Cmd_OptParam_Without_braces+0xe8>
movsbl -0x5(%rbp),%ecx
xor    %eax,%eax
cmp    $0x7d,%ecx
mov    %al,-0x7(%rbp)
je     1218 <Cmd_OptParam_Without_braces+0xe8>
movsbl -0x5(%rbp),%ecx
xor    %eax,%eax
cmp    $0x22,%ecx
mov    %al,-0x7(%rbp)
je     1218 <Cmd_OptParam_Without_braces+0xe8>
movsbl -0x5(%rbp),%ecx
xor    %eax,%eax
cmp    $0x5b,%ecx
mov    %al,-0x7(%rbp)
je     1218 <Cmd_OptParam_Without_braces+0xe8>
movsbl -0x5(%rbp),%eax
cmp    $0x24,%eax
setne  %al
mov    %al,-0x7(%rbp)
mov    -0x7(%rbp),%al
test   $0x1,%al
jne    1143 <Cmd_OptParam_Without_braces+0x13>
movsbl -0x5(%rbp),%edi
call   1040 <ungetTexChar@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Cmd_OptParam_Without_braces>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    $0x20,%bpl
movabs $0x500000003,%r14
movabs $0x101500000400,%r15
jmp    1160 <Cmd_OptParam_Without_braces+0x30>
movsbl %bpl,%edi
call   1030 <isdigit@plt>
mov    %ebx,%ebp
test   %rax,%rax
je     1190 <Cmd_OptParam_Without_braces+0x60>
xor    %eax,%eax
call   1050 <getTexChar@plt>
mov    %eax,%ebx
cmp    $0x2e,%al
ja     117c <Cmd_OptParam_Without_braces+0x4c>
movzbl %bl,%eax
cmp    $0x2e,%rax
je     1150 <Cmd_OptParam_Without_braces+0x20>
bt     %rax,%r15
jb     1190 <Cmd_OptParam_Without_braces+0x60>
lea    -0x5b(%rbx),%eax
mov    %ebx,%ebp
cmp    $0x22,%al
ja     1160 <Cmd_OptParam_Without_braces+0x30>
movzbl %al,%eax
bt     %rax,%r14
mov    %ebx,%ebp
jae    1160 <Cmd_OptParam_Without_braces+0x30>
movsbl %bl,%edi
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
jmp    1040 <ungetTexChar@plt>

LLVM IR (-O0):
define void @Cmd_OptParam_Without_braces(i32 %0) {
%2 = alloca i32
%3 = alloca i8
%4 = alloca i8
store i32 %0, i32* %2
store i8 32, i8* %3
store i8 32, i8* %4
br label %5
5: ; preds = %53, %1
%6 = load i8, i8* %3
store i8 %6, i8* %4
%7 = call signext i8 (...) @getTexChar()
store i8 %7, i8* %3
br label %8
8: ; preds = %5
%9 = load i8, i8* %3
%10 = sext i8 %9 to i32
%11 = icmp ne i32 %10, 32
br i1 %11, label %12, label %53
12: ; preds = %8
%13 = load i8, i8* %3
%14 = sext i8 %13 to i32
%15 = icmp ne i32 %14, 92
br i1 %15, label %16, label %53
16: ; preds = %12
%17 = load i8, i8* %3
%18 = sext i8 %17 to i32
%19 = icmp ne i32 %18, 123
br i1 %19, label %20, label %53
20: ; preds = %16
%21 = load i8, i8* %3
%22 = sext i8 %21 to i32
%23 = icmp ne i32 %22, 10
br i1 %23, label %24, label %53
24: ; preds = %20
%25 = load i8, i8* %3
%26 = sext i8 %25 to i32
%27 = icmp ne i32 %26, 44
br i1 %27, label %28, label %53
28: ; preds = %24
%29 = load i8, i8* %3
%30 = sext i8 %29 to i32
%31 = icmp ne i32 %30, 46
br i1 %31, label %37, label %32
32: ; preds = %28
%33 = load i8, i8* %4
%34 = sext i8 %33 to i32
%35 = call i64 @isdigit(i32 %34)
%36 = icmp ne i64 %35, 0
br i1 %36, label %37, label %53
37: ; preds = %32, %28
%38 = load i8, i8* %3
%39 = sext i8 %38 to i32
%40 = icmp ne i32 %39, 125
br i1 %40, label %41, label %53
41: ; preds = %37
%42 = load i8, i8* %3
%43 = sext i8 %42 to i32
%44 = icmp ne i32 %43, 34
br i1 %44, label %45, label %53
45: ; preds = %41
%46 = load i8, i8* %3
%47 = sext i8 %46 to i32
%48 = icmp ne i32 %47, 91
br i1 %48, label %49, label %53
49: ; preds = %45
%50 = load i8, i8* %3
%51 = sext i8 %50 to i32
%52 = icmp ne i32 %51, 36
br label %53
53: ; preds = %49, %45, %41, %37, %32, %24, %20, %16, %12, %8
%54 = phi i1 [ false, %45 ], [ false, %41 ], [ false, %37 ], [ false, %32 ], [ false, %24 ], [ false, %20 ], [ false, %16 ], [ false, %12 ], [ false, %8 ], [ %52, %49 ]
br i1 %54, label %5, label %55
55: ; preds = %53
%56 = load i8, i8* %3
%57 = call i32 @ungetTexChar(i8 signext %56)
ret void
}

LLVM IR (-O2):
define void @Cmd_OptParam_Without_braces(i32 %0) {
br label %2
2: ; preds = %5, %1
%3 = phi i8 [ 32, %1 ], [ %4, %5 ]
%4 = tail call signext i8 (...) @getTexChar()
switch i8 %4, label %5 [
i8 123, label %10
i8 92, label %10
i8 44, label %10
i8 32, label %10
i8 10, label %10
i8 46, label %6
i8 125, label %10
i8 91, label %10
i8 36, label %10
i8 34, label %10
]
5: ; preds = %2, %6
br label %2
6: ; preds = %2
%7 = sext i8 %3 to i32
%8 = tail call i64 @isdigit(i32 %7)
%9 = icmp eq i64 %8, 0
br i1 %9, label %10, label %5
10: ; preds = %2, %2, %2, %2, %2, %2, %2, %2, %2, %6
%11 = tail call i32 @ungetTexChar(i8 signext %4)
ret void
}