#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*/ itoa(int, char *, int);
int aux_isNumber(char cCaracter) {
  int Retorno = 0;
  int i;
  char cI;
  for (i = 0; i <= 9; i++) {
    itoa(i, &cI, 10);
    if (cCaracter == cI) {
      Retorno = 1;
      return Retorno;
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<aux_isNumber>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %dil,%al
mov    %al,-0x5(%rbp)
movl   $0x0,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
cmpl   $0x9,-0x10(%rbp)
jg     117c <aux_isNumber+0x6c>
mov    -0x10(%rbp),%edi
lea    -0x11(%rbp),%rsi
mov    $0xa,%edx
call   1030 <itoa@plt>
movsbl -0x5(%rbp),%eax
movsbl -0x11(%rbp),%ecx
cmp    %ecx,%eax
jne    1169 <aux_isNumber+0x59>
movl   $0x1,-0xc(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    1183 <aux_isNumber+0x73>
jmp    116e <aux_isNumber+0x5e>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    112c <aux_isNumber+0x1c>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<aux_isNumber>:
push   %rbp
push   %rbx
push   %rax
mov    %edi,%ebp
lea    0x7(%rsp),%rsi
xor    %edi,%edi
mov    $0xa,%edx
call   1030 <itoa@plt>
mov    $0x1,%ebx
cmp    %bpl,0x7(%rsp)
je     1241 <aux_isNumber+0x131>
mov    $0x1,%ebx
lea    0x7(%rsp),%rsi
mov    $0x1,%edi
mov    $0xa,%edx
call   1030 <itoa@plt>
cmp    %bpl,0x7(%rsp)
je     1241 <aux_isNumber+0x131>
lea    0x7(%rsp),%rsi
mov    $0x2,%edi
mov    $0xa,%edx
call   1030 <itoa@plt>
cmp    %bpl,0x7(%rsp)
je     1241 <aux_isNumber+0x131>
lea    0x7(%rsp),%rsi
mov    $0x3,%edi
mov    $0xa,%edx
call   1030 <itoa@plt>
cmp    %bpl,0x7(%rsp)
je     1241 <aux_isNumber+0x131>
lea    0x7(%rsp),%rsi
mov    $0x4,%edi
mov    $0xa,%edx
call   1030 <itoa@plt>
cmp    %bpl,0x7(%rsp)
je     1241 <aux_isNumber+0x131>
lea    0x7(%rsp),%rsi
mov    $0x5,%edi
mov    $0xa,%edx
call   1030 <itoa@plt>
cmp    %bpl,0x7(%rsp)
je     1241 <aux_isNumber+0x131>
lea    0x7(%rsp),%rsi
mov    $0x6,%edi
mov    $0xa,%edx
call   1030 <itoa@plt>
cmp    %bpl,0x7(%rsp)
je     1241 <aux_isNumber+0x131>
lea    0x7(%rsp),%rsi
mov    $0x7,%edi
mov    $0xa,%edx
call   1030 <itoa@plt>
cmp    %bpl,0x7(%rsp)
je     1241 <aux_isNumber+0x131>
lea    0x7(%rsp),%rsi
mov    $0x8,%edi
mov    $0xa,%edx
call   1030 <itoa@plt>
cmp    %bpl,0x7(%rsp)
je     1241 <aux_isNumber+0x131>
lea    0x7(%rsp),%rsi
mov    $0x9,%edi
mov    $0xa,%edx
call   1030 <itoa@plt>
xor    %ebx,%ebx
cmp    %bpl,0x7(%rsp)
sete   %bl
mov    %ebx,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
define i32 @aux_isNumber(i8 signext %0) {
%2 = alloca i32
%3 = alloca i8
%4 = alloca i32
%5 = alloca i32
%6 = alloca i8
store i8 %0, i8* %3
store i32 0, i32* %4
store i32 0, i32* %5
br label %7
7: ; preds = %21, %1
%8 = load i32, i32* %5
%9 = icmp sle i32 %8, 9
br i1 %9, label %10, label %24
10: ; preds = %7
%11 = load i32, i32* %5
%12 = call i32 @itoa(i32 %11, i8* %6, i32 10)
%13 = load i8, i8* %3
%14 = sext i8 %13 to i32
%15 = load i8, i8* %6
%16 = sext i8 %15 to i32
%17 = icmp eq i32 %14, %16
br i1 %17, label %18, label %20
18: ; preds = %10
store i32 1, i32* %4
%19 = load i32, i32* %4
store i32 %19, i32* %2
br label %25
20: ; preds = %10
br label %21
21: ; preds = %20
%22 = load i32, i32* %5
%23 = add nsw i32 %22, 1
store i32 %23, i32* %5
br label %7
24: ; preds = %7
store i32 0, i32* %2
br label %25
25: ; preds = %24, %18
%26 = load i32, i32* %2
ret i32 %26
}

LLVM IR (-O2):
define i32 @aux_isNumber(i8 signext %0) {
%2 = alloca i8
%3 = call i32 @itoa(i32 0, i8* %2, i32 10)
%4 = load i8, i8* %2
%5 = icmp eq i8 %4, %0
br i1 %5, label %43, label %6
6: ; preds = %1
%7 = call i32 @itoa(i32 1, i8* %2, i32 10)
%8 = load i8, i8* %2
%9 = icmp eq i8 %8, %0
br i1 %9, label %43, label %10
10: ; preds = %6
%11 = call i32 @itoa(i32 2, i8* %2, i32 10)
%12 = load i8, i8* %2
%13 = icmp eq i8 %12, %0
br i1 %13, label %43, label %14
14: ; preds = %10
%15 = call i32 @itoa(i32 3, i8* %2, i32 10)
%16 = load i8, i8* %2
%17 = icmp eq i8 %16, %0
br i1 %17, label %43, label %18
18: ; preds = %14
%19 = call i32 @itoa(i32 4, i8* %2, i32 10)
%20 = load i8, i8* %2
%21 = icmp eq i8 %20, %0
br i1 %21, label %43, label %22
22: ; preds = %18
%23 = call i32 @itoa(i32 5, i8* %2, i32 10)
%24 = load i8, i8* %2
%25 = icmp eq i8 %24, %0
br i1 %25, label %43, label %26
26: ; preds = %22
%27 = call i32 @itoa(i32 6, i8* %2, i32 10)
%28 = load i8, i8* %2
%29 = icmp eq i8 %28, %0
br i1 %29, label %43, label %30
30: ; preds = %26
%31 = call i32 @itoa(i32 7, i8* %2, i32 10)
%32 = load i8, i8* %2
%33 = icmp eq i8 %32, %0
br i1 %33, label %43, label %34
34: ; preds = %30
%35 = call i32 @itoa(i32 8, i8* %2, i32 10)
%36 = load i8, i8* %2
%37 = icmp eq i8 %36, %0
br i1 %37, label %43, label %38
38: ; preds = %34
%39 = call i32 @itoa(i32 9, i8* %2, i32 10)
%40 = load i8, i8* %2
%41 = icmp eq i8 %40, %0
%42 = zext i1 %41 to i32
br label %43
43: ; preds = %38, %34, %30, %26, %22, %18, %14, %10, %6, %1
%44 = phi i32 [ 1, %1 ], [ 1, %6 ], [ 1, %10 ], [ 1, %14 ], [ 1, %18 ], [ 1, %22 ], [ 1, %26 ], [ 1, %30 ], [ 1, %34 ], [ %42, %38 ]
ret i32 %44
}