#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*/ printf(char *, char *, int);
int /*<<< orphan*/ t_isdigit(char);
int test_isnum(void) {
  do {
    if (!(t_isdigit('0'))) {
      printf("expression '%s' untrue at %d\n", "t_isdigit('0')", 61);
      return 0;
    }
  } while (0);
  do {
    if (!(t_isdigit('9'))) {
      printf("expression '%s' untrue at %d\n", "t_isdigit('9')", 62);
      return 0;
    }
  } while (0);
  do {
    if (!(!t_isdigit(' '))) {
      printf("expression '%s' untrue at %d\n", "!t_isdigit(' ')", 63);
      return 0;
    }
  } while (0);
  do {
    if (!(!t_isdigit('a'))) {
      printf("expression '%s' untrue at %d\n", "!t_isdigit('a')", 64);
      return 0;
    }
  } while (0);
  do {
    if (!(!t_isdigit('A'))) {
      printf("expression '%s' untrue at %d\n", "!t_isdigit('A')", 65);
      return 0;
    }
  } while (0);
  return 1;
}


x86 assembly (clang, -O0):
<test_isnum>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x30,%edi
call   1040 <t_isdigit@plt>
cmp    $0x0,%eax
jne    115f <test_isnum+0x3f>
lea    0xebe(%rip),%rdi
lea    0xed5(%rip),%rsi
mov    $0x3d,%edx
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    126f <test_isnum+0x14f>
jmp    1164 <test_isnum+0x44>
jmp    1169 <test_isnum+0x49>
mov    $0x39,%edi
call   1040 <t_isdigit@plt>
cmp    $0x0,%eax
jne    11a0 <test_isnum+0x80>
lea    0xe7d(%rip),%rdi
lea    0xea3(%rip),%rsi
mov    $0x3e,%edx
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    126f <test_isnum+0x14f>
jmp    11a5 <test_isnum+0x85>
jmp    11aa <test_isnum+0x8a>
mov    $0x20,%edi
call   1040 <t_isdigit@plt>
cmp    $0x0,%eax
je     11e1 <test_isnum+0xc1>
lea    0xe3c(%rip),%rdi
lea    0xe71(%rip),%rsi
mov    $0x3f,%edx
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    126f <test_isnum+0x14f>
jmp    11e6 <test_isnum+0xc6>
jmp    11eb <test_isnum+0xcb>
mov    $0x61,%edi
call   1040 <t_isdigit@plt>
cmp    $0x0,%eax
je     1222 <test_isnum+0x102>
lea    0xdfb(%rip),%rdi
lea    0xe40(%rip),%rsi
mov    $0x40,%edx
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    126f <test_isnum+0x14f>
jmp    1227 <test_isnum+0x107>
jmp    122c <test_isnum+0x10c>
mov    $0x41,%edi
call   1040 <t_isdigit@plt>
cmp    $0x0,%eax
je     1263 <test_isnum+0x143>
lea    0xdba(%rip),%rdi
lea    0xe0f(%rip),%rsi
mov    $0x41,%edx
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    126f <test_isnum+0x14f>
jmp    1268 <test_isnum+0x148>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_isnum>:
push   %rax
mov    $0x30,%edi
call   1040 <t_isdigit@plt>
test   %eax,%eax
je     1160 <test_isnum+0x40>
mov    $0x39,%edi
call   1040 <t_isdigit@plt>
test   %eax,%eax
je     1175 <test_isnum+0x55>
mov    $0x20,%edi
call   1040 <t_isdigit@plt>
test   %eax,%eax
je     118a <test_isnum+0x6a>
lea    0xeae(%rip),%rdi
lea    0xee3(%rip),%rsi
mov    $0x3f,%edx
jmp    11ce <test_isnum+0xae>
lea    0xe99(%rip),%rdi
lea    0xeb0(%rip),%rsi
mov    $0x3d,%edx
jmp    11ce <test_isnum+0xae>
lea    0xe84(%rip),%rdi
lea    0xeaa(%rip),%rsi
mov    $0x3e,%edx
jmp    11ce <test_isnum+0xae>
mov    $0x61,%edi
call   1040 <t_isdigit@plt>
test   %eax,%eax
je     11ad <test_isnum+0x8d>
lea    0xe61(%rip),%rdi
lea    0xea6(%rip),%rsi
mov    $0x40,%edx
jmp    11ce <test_isnum+0xae>
mov    $0x41,%edi
call   1040 <t_isdigit@plt>
test   %eax,%eax
je     11d7 <test_isnum+0xb7>
lea    0xe3e(%rip),%rdi
lea    0xe93(%rip),%rsi
mov    $0x41,%edx
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret
mov    $0x1,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [30 x i8] c"expression '%s' untrue at %d\0A\00"
@.str.1 = [15 x i8] c"t_isdigit('0')\00"
@.str.2 = [15 x i8] c"t_isdigit('9')\00"
@.str.3 = [16 x i8] c"!t_isdigit(' ')\00"
@.str.4 = [16 x i8] c"!t_isdigit('a')\00"
@.str.5 = [16 x i8] c"!t_isdigit('A')\00"
define i32 @test_isnum() {
%1 = alloca i32
br label %2
2: ; preds = %0
%3 = call i32 @t_isdigit(i8 signext 48)
%4 = icmp ne i32 %3, 0
br i1 %4, label %7, label %5
5: ; preds = %2
%6 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), i32 61)
store i32 0, i32* %1
br label %37
7: ; preds = %2
br label %8
8: ; preds = %7
br label %9
9: ; preds = %8
%10 = call i32 @t_isdigit(i8 signext 57)
%11 = icmp ne i32 %10, 0
br i1 %11, label %14, label %12
12: ; preds = %9
%13 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0), i32 62)
store i32 0, i32* %1
br label %37
14: ; preds = %9
br label %15
15: ; preds = %14
br label %16
16: ; preds = %15
%17 = call i32 @t_isdigit(i8 signext 32)
%18 = icmp ne i32 %17, 0
br i1 %18, label %19, label %21
19: ; preds = %16
%20 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0), i32 63)
store i32 0, i32* %1
br label %37
21: ; preds = %16
br label %22
22: ; preds = %21
br label %23
23: ; preds = %22
%24 = call i32 @t_isdigit(i8 signext 97)
%25 = icmp ne i32 %24, 0
br i1 %25, label %26, label %28
26: ; preds = %23
%27 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0), i32 64)
store i32 0, i32* %1
br label %37
28: ; preds = %23
br label %29
29: ; preds = %28
br label %30
30: ; preds = %29
%31 = call i32 @t_isdigit(i8 signext 65)
%32 = icmp ne i32 %31, 0
br i1 %32, label %33, label %35
33: ; preds = %30
%34 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i64 0, i64 0), i32 65)
store i32 0, i32* %1
br label %37
35: ; preds = %30
br label %36
36: ; preds = %35
store i32 1, i32* %1
br label %37
37: ; preds = %36, %33, %26, %19, %12, %5
%38 = load i32, i32* %1
ret i32 %38
}

LLVM IR (-O2):
@.str = [30 x i8] c"expression '%s' untrue at %d\0A\00"
@.str.1 = [15 x i8] c"t_isdigit('0')\00"
@.str.2 = [15 x i8] c"t_isdigit('9')\00"
@.str.3 = [16 x i8] c"!t_isdigit(' ')\00"
@.str.4 = [16 x i8] c"!t_isdigit('a')\00"
@.str.5 = [16 x i8] c"!t_isdigit('A')\00"
define i32 @test_isnum() {
%1 = tail call i32 @t_isdigit(i8 signext 48)
%2 = icmp eq i32 %1, 0
br i1 %2, label %3, label %5
3: ; preds = %0
%4 = tail call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), i32 61)
br label %25
5: ; preds = %0
%6 = tail call i32 @t_isdigit(i8 signext 57)
%7 = icmp eq i32 %6, 0
br i1 %7, label %8, label %10
8: ; preds = %5
%9 = tail call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0), i32 62)
br label %25
10: ; preds = %5
%11 = tail call i32 @t_isdigit(i8 signext 32)
%12 = icmp eq i32 %11, 0
br i1 %12, label %15, label %13
13: ; preds = %10
%14 = tail call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0), i32 63)
br label %25
15: ; preds = %10
%16 = tail call i32 @t_isdigit(i8 signext 97)
%17 = icmp eq i32 %16, 0
br i1 %17, label %20, label %18
18: ; preds = %15
%19 = tail call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0), i32 64)
br label %25
20: ; preds = %15
%21 = tail call i32 @t_isdigit(i8 signext 65)
%22 = icmp eq i32 %21, 0
br i1 %22, label %25, label %23
23: ; preds = %20
%24 = tail call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i64 0, i64 0), i32 65)
br label %25
25: ; preds = %20, %23, %18, %13, %8, %3
%26 = phi i32 [ 0, %13 ], [ 0, %18 ], [ 0, %23 ], [ 0, %8 ], [ 0, %3 ], [ 1, %20 ]
ret i32 %26
}