#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 isNumber(char *);
int /*<<< orphan*/ printf(char *, char *);
int main(void) {
  char s1[] = "0";
  char s2[] = " 0.1";
  char s3[] = "abc";
  char s4[] = "1 a";
  char s5[] = "2e10";
  if (isNumber(s1) == true) {
    printf("%s => true\n", s1);
  } else {
    printf("%s => false\n", s1);
  }
  if (isNumber(s2) == true) {
    printf("%s => true\n", s2);
  } else {
    printf("%s => false\n", s2);
  }
  if (isNumber(s3) == true) {
    printf("%s => true\n", s3);
  } else {
    printf("%s => false\n", s3);
  }
  if (isNumber(s4) == true) {
    printf("%s => true\n", s4);
  } else {
    printf("%s => false\n", s4);
  }
  if (isNumber(s5) == true) {
    printf("%s => true\n", s5);
  } else {
    printf("%s => false\n", s5);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    0xeda(%rip),%ax
mov    %ax,-0x6(%rbp)
mov    0xec0(%rip),%eax
mov    %eax,-0xb(%rbp)
mov    0xebb(%rip),%al
mov    %al,-0x7(%rbp)
mov    0xeb3(%rip),%eax
mov    %eax,-0xf(%rbp)
mov    0xeae(%rip),%eax
mov    %eax,-0x13(%rbp)
mov    0xea9(%rip),%eax
mov    %eax,-0x18(%rbp)
mov    0xea4(%rip),%al
mov    %al,-0x14(%rbp)
lea    -0x6(%rbp),%rdi
call   1040 <isNumber@plt>
cmp    $0x1,%eax
jne    1197 <main+0x77>
lea    -0x6(%rbp),%rsi
lea    0xe85(%rip),%rdi
call   1030 <printf@plt>
jmp    11a7 <main+0x87>
lea    -0x6(%rbp),%rsi
lea    0xe7c(%rip),%rdi
call   1030 <printf@plt>
lea    -0xb(%rbp),%rdi
call   1040 <isNumber@plt>
cmp    $0x1,%eax
jne    11ce <main+0xae>
lea    -0xb(%rbp),%rsi
lea    0xe4e(%rip),%rdi
call   1030 <printf@plt>
jmp    11de <main+0xbe>
lea    -0xb(%rbp),%rsi
lea    0xe45(%rip),%rdi
call   1030 <printf@plt>
lea    -0xf(%rbp),%rdi
call   1040 <isNumber@plt>
cmp    $0x1,%eax
jne    1205 <main+0xe5>
lea    -0xf(%rbp),%rsi
lea    0xe17(%rip),%rdi
call   1030 <printf@plt>
jmp    1215 <main+0xf5>
lea    -0xf(%rbp),%rsi
lea    0xe0e(%rip),%rdi
call   1030 <printf@plt>
lea    -0x13(%rbp),%rdi
call   1040 <isNumber@plt>
cmp    $0x1,%eax
jne    123c <main+0x11c>
lea    -0x13(%rbp),%rsi
lea    0xde0(%rip),%rdi
call   1030 <printf@plt>
jmp    124c <main+0x12c>
lea    -0x13(%rbp),%rsi
lea    0xdd7(%rip),%rdi
call   1030 <printf@plt>
lea    -0x18(%rbp),%rdi
call   1040 <isNumber@plt>
cmp    $0x1,%eax
jne    1273 <main+0x153>
lea    -0x18(%rbp),%rsi
lea    0xda9(%rip),%rdi
call   1030 <printf@plt>
jmp    1283 <main+0x163>
lea    -0x18(%rbp),%rsi
lea    0xda0(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %rbx
sub    $0x20,%rsp
movw   $0x30,0x6(%rsp)
movb   $0x0,0x14(%rsp)
movl   $0x312e3020,0x10(%rsp)
31
movl   $0x636261,0x1c(%rsp)
movl   $0x612031,0x18(%rsp)
movb   $0x0,0xc(%rsp)
movl   $0x30316532,0x8(%rsp)
30
lea    0x6(%rsp),%r14
mov    %r14,%rdi
call   1040 <isNumber@plt>
cmp    $0x1,%eax
lea    0xe99(%rip),%r15
lea    0xe9e(%rip),%rbx
mov    %rbx,%rdi
cmove  %r15,%rdi
mov    %r14,%rsi
call   1030 <printf@plt>
lea    0x10(%rsp),%r14
mov    %r14,%rdi
call   1040 <isNumber@plt>
cmp    $0x1,%eax
mov    %rbx,%rdi
cmove  %r15,%rdi
mov    %r14,%rsi
call   1030 <printf@plt>
lea    0x1c(%rsp),%r14
mov    %r14,%rdi
call   1040 <isNumber@plt>
cmp    $0x1,%eax
mov    %rbx,%rdi
cmove  %r15,%rdi
mov    %r14,%rsi
call   1030 <printf@plt>
lea    0x18(%rsp),%r14
mov    %r14,%rdi
call   1040 <isNumber@plt>
cmp    $0x1,%eax
mov    %rbx,%rdi
cmove  %r15,%rdi
mov    %r14,%rsi
call   1030 <printf@plt>
lea    0x8(%rsp),%r14
mov    %r14,%rdi
call   1040 <isNumber@plt>
cmp    $0x1,%eax
cmove  %r15,%rbx
mov    %rbx,%rdi
mov    %r14,%rsi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@__const.main.s1 = [2 x i8] c"0\00"
@__const.main.s2 = [5 x i8] c" 0.1\00"
@__const.main.s3 = [4 x i8] c"abc\00"
@__const.main.s4 = [4 x i8] c"1 a\00"
@__const.main.s5 = [5 x i8] c"2e10\00"
@.str = [12 x i8] c"%s => true\0A\00"
@.str.1 = [13 x i8] c"%s => false\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [2 x i8]
%3 = alloca [5 x i8]
%4 = alloca [4 x i8]
%5 = alloca [4 x i8]
%6 = alloca [5 x i8]
store i32 0, i32* %1
%7 = bitcast [2 x i8]* %2 to i8*
%8 = bitcast [5 x i8]* %3 to i8*
%9 = bitcast [4 x i8]* %4 to i8*
%10 = bitcast [4 x i8]* %5 to i8*
%11 = bitcast [5 x i8]* %6 to i8*
%12 = getelementptr inbounds [2 x i8], [2 x i8]* %2, i64 0, i64 0
%13 = call i32 @isNumber(i8* %12)
%14 = icmp eq i32 %13, 1
br i1 %14, label %15, label %18
15: ; preds = %0
%16 = getelementptr inbounds [2 x i8], [2 x i8]* %2, i64 0, i64 0
%17 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8* %16)
br label %21
18: ; preds = %0
%19 = getelementptr inbounds [2 x i8], [2 x i8]* %2, i64 0, i64 0
%20 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), i8* %19)
br label %21
21: ; preds = %18, %15
%22 = getelementptr inbounds [5 x i8], [5 x i8]* %3, i64 0, i64 0
%23 = call i32 @isNumber(i8* %22)
%24 = icmp eq i32 %23, 1
br i1 %24, label %25, label %28
25: ; preds = %21
%26 = getelementptr inbounds [5 x i8], [5 x i8]* %3, i64 0, i64 0
%27 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8* %26)
br label %31
28: ; preds = %21
%29 = getelementptr inbounds [5 x i8], [5 x i8]* %3, i64 0, i64 0
%30 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), i8* %29)
br label %31
31: ; preds = %28, %25
%32 = getelementptr inbounds [4 x i8], [4 x i8]* %4, i64 0, i64 0
%33 = call i32 @isNumber(i8* %32)
%34 = icmp eq i32 %33, 1
br i1 %34, label %35, label %38
35: ; preds = %31
%36 = getelementptr inbounds [4 x i8], [4 x i8]* %4, i64 0, i64 0
%37 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8* %36)
br label %41
38: ; preds = %31
%39 = getelementptr inbounds [4 x i8], [4 x i8]* %4, i64 0, i64 0
%40 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), i8* %39)
br label %41
41: ; preds = %38, %35
%42 = getelementptr inbounds [4 x i8], [4 x i8]* %5, i64 0, i64 0
%43 = call i32 @isNumber(i8* %42)
%44 = icmp eq i32 %43, 1
br i1 %44, label %45, label %48
45: ; preds = %41
%46 = getelementptr inbounds [4 x i8], [4 x i8]* %5, i64 0, i64 0
%47 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8* %46)
br label %51
48: ; preds = %41
%49 = getelementptr inbounds [4 x i8], [4 x i8]* %5, i64 0, i64 0
%50 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), i8* %49)
br label %51
51: ; preds = %48, %45
%52 = getelementptr inbounds [5 x i8], [5 x i8]* %6, i64 0, i64 0
%53 = call i32 @isNumber(i8* %52)
%54 = icmp eq i32 %53, 1
br i1 %54, label %55, label %58
55: ; preds = %51
%56 = getelementptr inbounds [5 x i8], [5 x i8]* %6, i64 0, i64 0
%57 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8* %56)
br label %61
58: ; preds = %51
%59 = getelementptr inbounds [5 x i8], [5 x i8]* %6, i64 0, i64 0
%60 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), i8* %59)
br label %61
61: ; preds = %58, %55
ret i32 0
}

LLVM IR (-O2):
@__const.main.s2 = [5 x i8] c" 0.1\00"
@__const.main.s5 = [5 x i8] c"2e10\00"
@.str = [12 x i8] c"%s => true\0A\00"
@.str.1 = [13 x i8] c"%s => false\0A\00"
define i32 @main() {
%1 = alloca i16
%2 = alloca [5 x i8]
%3 = alloca i32
%4 = alloca i32
%5 = alloca [5 x i8]
%6 = bitcast i16* %1 to i8*
store i16 48, i16* %1
%7 = getelementptr inbounds [5 x i8], [5 x i8]* %2, i64 0, i64 0
%8 = bitcast i32* %3 to i8*
store i32 6513249, i32* %3
%9 = bitcast i32* %4 to i8*
store i32 6365233, i32* %4
%10 = getelementptr inbounds [5 x i8], [5 x i8]* %5, i64 0, i64 0
%11 = call i32 @isNumber(i8* %6)
%12 = icmp eq i32 %11, 1
%13 = select i1 %12, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0)
%14 = call i32 @printf(i8* %13, i8* %6)
%15 = call i32 @isNumber(i8* %7)
%16 = icmp eq i32 %15, 1
%17 = select i1 %16, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0)
%18 = call i32 @printf(i8* %17, i8* %7)
%19 = call i32 @isNumber(i8* %8)
%20 = icmp eq i32 %19, 1
%21 = select i1 %20, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0)
%22 = call i32 @printf(i8* %21, i8* %8)
%23 = call i32 @isNumber(i8* %9)
%24 = icmp eq i32 %23, 1
%25 = select i1 %24, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0)
%26 = call i32 @printf(i8* %25, i8* %9)
%27 = call i32 @isNumber(i8* %10)
%28 = icmp eq i32 %27, 1
%29 = select i1 %28, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0)
%30 = call i32 @printf(i8* %29, i8* %10)
ret i32 0
}