#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*/ assert(int);
int isnumfmt(char *);
int main(int argc, char *argv[]) {
  assert(isnumfmt("0"));
  assert(isnumfmt("-1"));
  assert(isnumfmt("2."));
  assert(isnumfmt(".3"));
  assert(isnumfmt("4e5"));
  assert(isnumfmt("6E-7"));
  assert(!isnumfmt("+"));
  assert(!isnumfmt("1a"));
  assert(!isnumfmt("a1"));
  assert(!isnumfmt("12e"));
  assert(!isnumfmt("34E-"));
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xeca(%rip),%rdi
call   1030 <isnumfmt@plt>
mov    %eax,%edi
call   1040 <assert@plt>
lea    0xeb9(%rip),%rdi
call   1030 <isnumfmt@plt>
mov    %eax,%edi
call   1040 <assert@plt>
lea    0xea9(%rip),%rdi
call   1030 <isnumfmt@plt>
mov    %eax,%edi
call   1040 <assert@plt>
lea    0xe99(%rip),%rdi
call   1030 <isnumfmt@plt>
mov    %eax,%edi
call   1040 <assert@plt>
lea    0xe89(%rip),%rdi
call   1030 <isnumfmt@plt>
mov    %eax,%edi
call   1040 <assert@plt>
lea    0xe7a(%rip),%rdi
call   1030 <isnumfmt@plt>
mov    %eax,%edi
call   1040 <assert@plt>
lea    0xe6c(%rip),%rdi
call   1030 <isnumfmt@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%edi
call   1040 <assert@plt>
lea    0xe50(%rip),%rdi
call   1030 <isnumfmt@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%edi
call   1040 <assert@plt>
lea    0xe35(%rip),%rdi
call   1030 <isnumfmt@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%edi
call   1040 <assert@plt>
lea    0xe1a(%rip),%rdi
call   1030 <isnumfmt@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%edi
call   1040 <assert@plt>
lea    0xe00(%rip),%rdi
call   1030 <isnumfmt@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%edi
call   1040 <assert@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xed8(%rip),%rdi
call   1030 <isnumfmt@plt>
mov    %eax,%edi
call   1040 <assert@plt>
lea    0xec7(%rip),%rdi
call   1030 <isnumfmt@plt>
mov    %eax,%edi
call   1040 <assert@plt>
lea    0xeb7(%rip),%rdi
call   1030 <isnumfmt@plt>
mov    %eax,%edi
call   1040 <assert@plt>
lea    0xea7(%rip),%rdi
call   1030 <isnumfmt@plt>
mov    %eax,%edi
call   1040 <assert@plt>
lea    0xe97(%rip),%rdi
call   1030 <isnumfmt@plt>
mov    %eax,%edi
call   1040 <assert@plt>
lea    0xe88(%rip),%rdi
call   1030 <isnumfmt@plt>
mov    %eax,%edi
call   1040 <assert@plt>
lea    0xe7a(%rip),%rdi
call   1030 <isnumfmt@plt>
xor    %edi,%edi
test   %eax,%eax
sete   %dil
call   1040 <assert@plt>
lea    0xe63(%rip),%rdi
call   1030 <isnumfmt@plt>
xor    %edi,%edi
test   %eax,%eax
sete   %dil
call   1040 <assert@plt>
lea    0xe4d(%rip),%rdi
call   1030 <isnumfmt@plt>
xor    %edi,%edi
test   %eax,%eax
sete   %dil
call   1040 <assert@plt>
lea    0xe37(%rip),%rdi
call   1030 <isnumfmt@plt>
xor    %edi,%edi
test   %eax,%eax
sete   %dil
call   1040 <assert@plt>
lea    0xe22(%rip),%rdi
call   1030 <isnumfmt@plt>
xor    %edi,%edi
test   %eax,%eax
sete   %dil
call   1040 <assert@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [2 x i8] c"0\00"
@.str.1 = [3 x i8] c"-1\00"
@.str.2 = [3 x i8] c"2.\00"
@.str.3 = [3 x i8] c".3\00"
@.str.4 = [4 x i8] c"4e5\00"
@.str.5 = [5 x i8] c"6E-7\00"
@.str.6 = [2 x i8] c"+\00"
@.str.7 = [3 x i8] c"1a\00"
@.str.8 = [3 x i8] c"a1\00"
@.str.9 = [4 x i8] c"12e\00"
@.str.10 = [5 x i8] c"34E-\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i8**
store i32 %0, i32* %3
store i8** %1, i8*** %4
%5 = call i32 @isnumfmt(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%6 = call i32 @assert(i32 %5)
%7 = call i32 @isnumfmt(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%8 = call i32 @assert(i32 %7)
%9 = call i32 @isnumfmt(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%10 = call i32 @assert(i32 %9)
%11 = call i32 @isnumfmt(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%12 = call i32 @assert(i32 %11)
%13 = call i32 @isnumfmt(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%14 = call i32 @assert(i32 %13)
%15 = call i32 @isnumfmt(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%16 = call i32 @assert(i32 %15)
%17 = call i32 @isnumfmt(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%18 = icmp ne i32 %17, 0
%19 = xor i1 %18, true
%20 = zext i1 %19 to i32
%21 = call i32 @assert(i32 %20)
%22 = call i32 @isnumfmt(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0))
%23 = icmp ne i32 %22, 0
%24 = xor i1 %23, true
%25 = zext i1 %24 to i32
%26 = call i32 @assert(i32 %25)
%27 = call i32 @isnumfmt(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0))
%28 = icmp ne i32 %27, 0
%29 = xor i1 %28, true
%30 = zext i1 %29 to i32
%31 = call i32 @assert(i32 %30)
%32 = call i32 @isnumfmt(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0))
%33 = icmp ne i32 %32, 0
%34 = xor i1 %33, true
%35 = zext i1 %34 to i32
%36 = call i32 @assert(i32 %35)
%37 = call i32 @isnumfmt(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0))
%38 = icmp ne i32 %37, 0
%39 = xor i1 %38, true
%40 = zext i1 %39 to i32
%41 = call i32 @assert(i32 %40)
ret i32 0
}

LLVM IR (-O2):
@.str = [2 x i8] c"0\00"
@.str.1 = [3 x i8] c"-1\00"
@.str.2 = [3 x i8] c"2.\00"
@.str.3 = [3 x i8] c".3\00"
@.str.4 = [4 x i8] c"4e5\00"
@.str.5 = [5 x i8] c"6E-7\00"
@.str.6 = [2 x i8] c"+\00"
@.str.7 = [3 x i8] c"1a\00"
@.str.8 = [3 x i8] c"a1\00"
@.str.9 = [4 x i8] c"12e\00"
@.str.10 = [5 x i8] c"34E-\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @isnumfmt(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%4 = tail call i32 @assert(i32 %3)
%5 = tail call i32 @isnumfmt(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%6 = tail call i32 @assert(i32 %5)
%7 = tail call i32 @isnumfmt(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%8 = tail call i32 @assert(i32 %7)
%9 = tail call i32 @isnumfmt(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%10 = tail call i32 @assert(i32 %9)
%11 = tail call i32 @isnumfmt(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%12 = tail call i32 @assert(i32 %11)
%13 = tail call i32 @isnumfmt(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%14 = tail call i32 @assert(i32 %13)
%15 = tail call i32 @isnumfmt(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%16 = icmp eq i32 %15, 0
%17 = zext i1 %16 to i32
%18 = tail call i32 @assert(i32 %17)
%19 = tail call i32 @isnumfmt(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0))
%20 = icmp eq i32 %19, 0
%21 = zext i1 %20 to i32
%22 = tail call i32 @assert(i32 %21)
%23 = tail call i32 @isnumfmt(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0))
%24 = icmp eq i32 %23, 0
%25 = zext i1 %24 to i32
%26 = tail call i32 @assert(i32 %25)
%27 = tail call i32 @isnumfmt(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0))
%28 = icmp eq i32 %27, 0
%29 = zext i1 %28 to i32
%30 = tail call i32 @assert(i32 %29)
%31 = tail call i32 @isnumfmt(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0))
%32 = icmp eq i32 %31, 0
%33 = zext i1 %32 to i32
%34 = tail call i32 @assert(i32 %33)
ret i32 0
}