#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 *, int);
int main(void) {
  char a = '1', b = '$';
  printf("%i\n", (((a) >= '0' && (a) <= '9') ? (1) : (0)));
  printf("%i\n", ((((((((b) >= 'A' && (b) <= 'Z') ? (1) : (0)) ||
                      (((b) >= 'a' && (b) <= 'z') ? (1) : (0)))
                         ? (1)
                         : (0))) ||
                   (((b) >= '0' && (b) <= '9') ? (1) : (0)))
                      ? (0)
                      : (1)));
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movb   $0x31,-0x5(%rbp)
movb   $0x24,-0x6(%rbp)
movsbl -0x5(%rbp),%ecx
xor    %eax,%eax
cmp    $0x30,%ecx
mov    %al,-0x7(%rbp)
jl     1146 <main+0x36>
movsbl -0x5(%rbp),%eax
cmp    $0x39,%eax
setle  %al
mov    %al,-0x7(%rbp)
mov    -0x7(%rbp),%cl
xor    %esi,%esi
mov    $0x1,%eax
test   $0x1,%cl
cmovne %eax,%esi
lea    0xea3(%rip),%rdi
call   1030 <printf@plt>
movsbl -0x6(%rbp),%eax
cmp    $0x41,%eax
jl     118b <main+0x7b>
movsbl -0x6(%rbp),%eax
cmp    $0x5a,%eax
jg     118b <main+0x7b>
mov    $0x1,%al
test   $0x1,%al
jne    11d2 <main+0xc2>
jmp    119a <main+0x8a>
xor    %eax,%eax
test   $0x1,%al
jne    11d2 <main+0xc2>
jmp    119a <main+0x8a>
movsbl -0x6(%rbp),%eax
cmp    $0x61,%eax
jl     11c3 <main+0xb3>
movsbl -0x6(%rbp),%eax
cmp    $0x7a,%eax
jg     11c3 <main+0xb3>
mov    $0x1,%al
test   $0x1,%al
jne    11d2 <main+0xc2>
jmp    11e4 <main+0xd4>
xor    %eax,%eax
test   $0x1,%al
jne    11d2 <main+0xc2>
jmp    11e4 <main+0xd4>
mov    $0x1,%al
test   $0x1,%al
mov    %al,-0x8(%rbp)
jne    1231 <main+0x121>
jmp    11f9 <main+0xe9>
mov    $0x1,%al
xor    %ecx,%ecx
test   $0x1,%cl
mov    %al,-0x8(%rbp)
jne    1231 <main+0x121>
jmp    11f9 <main+0xe9>
movsbl -0x6(%rbp),%ecx
xor    %eax,%eax
cmp    $0x30,%ecx
mov    %al,-0x9(%rbp)
jl     1218 <main+0x108>
movsbl -0x6(%rbp),%eax
cmp    $0x39,%eax
setle  %al
mov    %al,-0x9(%rbp)
mov    -0x9(%rbp),%dl
xor    %eax,%eax
mov    $0x1,%ecx
test   $0x1,%dl
cmovne %ecx,%eax
cmp    $0x0,%eax
setne  %al
mov    %al,-0x8(%rbp)
mov    -0x8(%rbp),%cl
mov    $0x1,%esi
xor    %eax,%eax
test   $0x1,%cl
cmovne %eax,%esi
lea    0xdb8(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
lea    0xee8(%rip),%rbx
mov    %rbx,%rdi
mov    $0x1,%esi
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x1,%esi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [4 x i8] c"%i\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i8
%3 = alloca i8
store i32 0, i32* %1
store i8 49, i8* %2
store i8 36, i8* %3
%4 = load i8, i8* %2
%5 = sext i8 %4 to i32
%6 = icmp sge i32 %5, 48
br i1 %6, label %7, label %11
7: ; preds = %0
%8 = load i8, i8* %2
%9 = sext i8 %8 to i32
%10 = icmp sle i32 %9, 57
br label %11
11: ; preds = %7, %0
%12 = phi i1 [ false, %0 ], [ %10, %7 ]
%13 = zext i1 %12 to i64
%14 = select i1 %12, i32 1, i32 0
%15 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %14)
%16 = load i8, i8* %3
%17 = sext i8 %16 to i32
%18 = icmp sge i32 %17, 65
br i1 %18, label %19, label %24
19: ; preds = %11
%20 = load i8, i8* %3
%21 = sext i8 %20 to i32
%22 = icmp sle i32 %21, 90
br i1 %22, label %23, label %24
23: ; preds = %19
br i1 true, label %35, label %25
24: ; preds = %19, %11
br i1 false, label %35, label %25
25: ; preds = %24, %23
%26 = load i8, i8* %3
%27 = sext i8 %26 to i32
%28 = icmp sge i32 %27, 97
br i1 %28, label %29, label %34
29: ; preds = %25
%30 = load i8, i8* %3
%31 = sext i8 %30 to i32
%32 = icmp sle i32 %31, 122
br i1 %32, label %33, label %34
33: ; preds = %29
br i1 true, label %35, label %36
34: ; preds = %29, %25
br i1 false, label %35, label %36
35: ; preds = %34, %33, %24, %23
br i1 true, label %50, label %37
36: ; preds = %34, %33
br i1 false, label %50, label %37
37: ; preds = %36, %35
%38 = load i8, i8* %3
%39 = sext i8 %38 to i32
%40 = icmp sge i32 %39, 48
br i1 %40, label %41, label %45
41: ; preds = %37
%42 = load i8, i8* %3
%43 = sext i8 %42 to i32
%44 = icmp sle i32 %43, 57
br label %45
45: ; preds = %41, %37
%46 = phi i1 [ false, %37 ], [ %44, %41 ]
%47 = zext i1 %46 to i64
%48 = select i1 %46, i32 1, i32 0
%49 = icmp ne i32 %48, 0
br label %50
50: ; preds = %45, %36, %35
%51 = phi i1 [ true, %36 ], [ true, %35 ], [ %49, %45 ]
%52 = zext i1 %51 to i64
%53 = select i1 %51, i32 0, i32 1
%54 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %53)
ret i32 0
}

LLVM IR (-O2):
@.str = [4 x i8] c"%i\0A\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 1)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 1)
ret i32 0
}