#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*/ abort();
scalar_t__ isupper(char);
int main() {
  if (isupper('a')) {
    abort();
  }
  if (isupper('z')) {
    abort();
  }
  if (!isupper('A')) {
    abort();
  }
  if (!isupper('Z')) {
    abort();
  }
  if (isupper(' ')) {
    abort();
  }
  if (isupper('5')) {
    abort();
  }
  if (isupper('!')) {
    abort();
  }
  if (isupper('@')) {
    abort();
  }
  if (isupper('[')) {
    abort();
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
mov    $0x61,%edi
call   1040 <isupper@plt>
cmp    $0x0,%rax
je     113f <main+0x1f>
mov    $0x0,%al
call   1030 <abort@plt>
mov    $0x7a,%edi
call   1040 <isupper@plt>
cmp    $0x0,%rax
je     115a <main+0x3a>
mov    $0x0,%al
call   1030 <abort@plt>
mov    $0x41,%edi
call   1040 <isupper@plt>
cmp    $0x0,%rax
jne    1175 <main+0x55>
mov    $0x0,%al
call   1030 <abort@plt>
mov    $0x5a,%edi
call   1040 <isupper@plt>
cmp    $0x0,%rax
jne    1190 <main+0x70>
mov    $0x0,%al
call   1030 <abort@plt>
mov    $0x20,%edi
call   1040 <isupper@plt>
cmp    $0x0,%rax
je     11ab <main+0x8b>
mov    $0x0,%al
call   1030 <abort@plt>
mov    $0x35,%edi
call   1040 <isupper@plt>
cmp    $0x0,%rax
je     11c6 <main+0xa6>
mov    $0x0,%al
call   1030 <abort@plt>
mov    $0x21,%edi
call   1040 <isupper@plt>
cmp    $0x0,%rax
je     11e1 <main+0xc1>
mov    $0x0,%al
call   1030 <abort@plt>
mov    $0x40,%edi
call   1040 <isupper@plt>
cmp    $0x0,%rax
je     11fc <main+0xdc>
mov    $0x0,%al
call   1030 <abort@plt>
mov    $0x5b,%edi
call   1040 <isupper@plt>
cmp    $0x0,%rax
je     1217 <main+0xf7>
mov    $0x0,%al
call   1030 <abort@plt>
xor    %eax,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0x61,%edi
call   1040 <isupper@plt>
test   %rax,%rax
jne    11ac <main+0x8c>
mov    $0x7a,%edi
call   1040 <isupper@plt>
test   %rax,%rax
jne    11ac <main+0x8c>
mov    $0x41,%edi
call   1040 <isupper@plt>
test   %rax,%rax
je     11ac <main+0x8c>
mov    $0x5a,%edi
call   1040 <isupper@plt>
test   %rax,%rax
je     11ac <main+0x8c>
mov    $0x20,%edi
call   1040 <isupper@plt>
test   %rax,%rax
jne    11ac <main+0x8c>
mov    $0x35,%edi
call   1040 <isupper@plt>
test   %rax,%rax
jne    11ac <main+0x8c>
mov    $0x21,%edi
call   1040 <isupper@plt>
test   %rax,%rax
jne    11ac <main+0x8c>
mov    $0x40,%edi
call   1040 <isupper@plt>
test   %rax,%rax
jne    11ac <main+0x8c>
mov    $0x5b,%edi
call   1040 <isupper@plt>
test   %rax,%rax
jne    11ac <main+0x8c>
xor    %eax,%eax
pop    %rcx
ret
xor    %eax,%eax
call   1030 <abort@plt>

LLVM IR (-O0):
define i32 @main() {
%1 = call i64 @isupper(i8 signext 97)
%2 = icmp ne i64 %1, 0
br i1 %2, label %3, label %5
3: ; preds = %0
%4 = call i32 (...) @abort()
unreachable
5: ; preds = %0
%6 = call i64 @isupper(i8 signext 122)
%7 = icmp ne i64 %6, 0
br i1 %7, label %8, label %10
8: ; preds = %5
%9 = call i32 (...) @abort()
unreachable
10: ; preds = %5
%11 = call i64 @isupper(i8 signext 65)
%12 = icmp ne i64 %11, 0
br i1 %12, label %15, label %13
13: ; preds = %10
%14 = call i32 (...) @abort()
unreachable
15: ; preds = %10
%16 = call i64 @isupper(i8 signext 90)
%17 = icmp ne i64 %16, 0
br i1 %17, label %20, label %18
18: ; preds = %15
%19 = call i32 (...) @abort()
unreachable
20: ; preds = %15
%21 = call i64 @isupper(i8 signext 32)
%22 = icmp ne i64 %21, 0
br i1 %22, label %23, label %25
23: ; preds = %20
%24 = call i32 (...) @abort()
unreachable
25: ; preds = %20
%26 = call i64 @isupper(i8 signext 53)
%27 = icmp ne i64 %26, 0
br i1 %27, label %28, label %30
28: ; preds = %25
%29 = call i32 (...) @abort()
unreachable
30: ; preds = %25
%31 = call i64 @isupper(i8 signext 33)
%32 = icmp ne i64 %31, 0
br i1 %32, label %33, label %35
33: ; preds = %30
%34 = call i32 (...) @abort()
unreachable
35: ; preds = %30
%36 = call i64 @isupper(i8 signext 64)
%37 = icmp ne i64 %36, 0
br i1 %37, label %38, label %40
38: ; preds = %35
%39 = call i32 (...) @abort()
unreachable
40: ; preds = %35
%41 = call i64 @isupper(i8 signext 91)
%42 = icmp ne i64 %41, 0
br i1 %42, label %43, label %45
43: ; preds = %40
%44 = call i32 (...) @abort()
unreachable
45: ; preds = %40
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i64 @isupper(i8 signext 97)
%2 = icmp eq i64 %1, 0
br i1 %2, label %5, label %3
3: ; preds = %0
%4 = tail call i32 (...) @abort()
unreachable
5: ; preds = %0
%6 = tail call i64 @isupper(i8 signext 122)
%7 = icmp eq i64 %6, 0
br i1 %7, label %10, label %8
8: ; preds = %5
%9 = tail call i32 (...) @abort()
unreachable
10: ; preds = %5
%11 = tail call i64 @isupper(i8 signext 65)
%12 = icmp eq i64 %11, 0
br i1 %12, label %13, label %15
13: ; preds = %10
%14 = tail call i32 (...) @abort()
unreachable
15: ; preds = %10
%16 = tail call i64 @isupper(i8 signext 90)
%17 = icmp eq i64 %16, 0
br i1 %17, label %18, label %20
18: ; preds = %15
%19 = tail call i32 (...) @abort()
unreachable
20: ; preds = %15
%21 = tail call i64 @isupper(i8 signext 32)
%22 = icmp eq i64 %21, 0
br i1 %22, label %25, label %23
23: ; preds = %20
%24 = tail call i32 (...) @abort()
unreachable
25: ; preds = %20
%26 = tail call i64 @isupper(i8 signext 53)
%27 = icmp eq i64 %26, 0
br i1 %27, label %30, label %28
28: ; preds = %25
%29 = tail call i32 (...) @abort()
unreachable
30: ; preds = %25
%31 = tail call i64 @isupper(i8 signext 33)
%32 = icmp eq i64 %31, 0
br i1 %32, label %35, label %33
33: ; preds = %30
%34 = tail call i32 (...) @abort()
unreachable
35: ; preds = %30
%36 = tail call i64 @isupper(i8 signext 64)
%37 = icmp eq i64 %36, 0
br i1 %37, label %40, label %38
38: ; preds = %35
%39 = tail call i32 (...) @abort()
unreachable
40: ; preds = %35
%41 = tail call i64 @isupper(i8 signext 91)
%42 = icmp eq i64 %41, 0
br i1 %42, label %45, label %43
43: ; preds = %40
%44 = tail call i32 (...) @abort()
unreachable
45: ; preds = %40
ret i32 0
}