#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 EXIT_SUCCESS;
scalar_t__ isalnum(int);
scalar_t__ isalpha(int);
scalar_t__ iscntrl(int);
scalar_t__ isdigit(int);
scalar_t__ isgraph(int);
scalar_t__ ispunct(int);
scalar_t__ isupper(int);
int /*<<< orphan*/ printf(char *, ...);
int main(int argc, char *argv[]) {
  int i = 0;
  const int max = 255;
  for (i = 0; i < max; i++) {
    printf("%i %c is: ", i, i);
    if (isalnum(i)) {
      printf(" isalnum");
    }
    if (isalpha(i)) {
      printf(" isalpha");
    }
    if (iscntrl(i)) {
      printf(" iscntrl");
    }
    if (isdigit(i)) {
      printf(" isdigit");
    }
    if (isgraph(i)) {
      printf(" isgraph");
    }
    if (ispunct(i)) {
      printf(" ispunct");
    }
    if (isupper(i)) {
      printf(" isupper");
    }
    printf("\n");
  }
  printf("\n");
  return EXIT_SUCCESS;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
movl   $0xff,-0x18(%rbp)
movl   $0x0,-0x14(%rbp)
cmpl   $0xff,-0x14(%rbp)
jge    12c8 <main+0x148>
mov    -0x14(%rbp),%esi
mov    -0x14(%rbp),%edx
lea    0xe3b(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x14(%rbp),%edi
call   1060 <isalnum@plt>
cmp    $0x0,%rax
je     11ec <main+0x6c>
lea    0xe26(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x14(%rbp),%edi
call   1080 <isalpha@plt>
cmp    $0x0,%rax
je     120c <main+0x8c>
lea    0xe0f(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x14(%rbp),%edi
call   1040 <iscntrl@plt>
cmp    $0x0,%rax
je     122c <main+0xac>
lea    0xdf8(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x14(%rbp),%edi
call   1030 <isdigit@plt>
cmp    $0x0,%rax
je     124c <main+0xcc>
lea    0xde1(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x14(%rbp),%edi
call   10a0 <isgraph@plt>
cmp    $0x0,%rax
je     126c <main+0xec>
lea    0xdca(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x14(%rbp),%edi
call   1070 <ispunct@plt>
cmp    $0x0,%rax
je     128c <main+0x10c>
lea    0xdb3(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x14(%rbp),%edi
call   1090 <isupper@plt>
cmp    $0x0,%rax
je     12ac <main+0x12c>
lea    0xd9c(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xd97(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    11ab <main+0x2b>
lea    0xd7b(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    0x2d03(%rip),%rax
mov    (%rax),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
lea    0xe5e(%rip),%rbx
lea    0xe7d(%rip),%r13
lea    0xe6d(%rip),%rbp
lea    0xe5d(%rip),%r14
lea    0xe4d(%rip),%r15
xor    %r12d,%r12d
jmp    11eb <main+0x5b>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x1,%r12d
cmp    $0xff,%r12d
je     12b1 <main+0x121>
mov    %rbx,%rdi
mov    %r12d,%esi
mov    %r12d,%edx
xor    %eax,%eax
call   1060 <printf@plt>
mov    %r12d,%edi
call   1070 <isalnum@plt>
test   %rax,%rax
je     1212 <main+0x82>
mov    %r15,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %r12d,%edi
call   1090 <isalpha@plt>
test   %rax,%rax
je     1229 <main+0x99>
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %r12d,%edi
call   1050 <iscntrl@plt>
test   %rax,%rax
je     1240 <main+0xb0>
mov    %rbp,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %r12d,%edi
call   1040 <isdigit@plt>
test   %rax,%rax
je     1257 <main+0xc7>
mov    %r13,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %r12d,%edi
call   10b0 <isgraph@plt>
test   %rax,%rax
je     1272 <main+0xe2>
lea    0xdc4(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %r12d,%edi
call   1080 <ispunct@plt>
test   %rax,%rax
je     128d <main+0xfd>
lea    0xdb2(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %r12d,%edi
call   10a0 <isupper@plt>
test   %rax,%rax
je     11d0 <main+0x40>
lea    0xd9c(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
jmp    11d0 <main+0x40>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0x2d1e(%rip),%rax
mov    (%rax),%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [11 x i8] c"%i %c is: \00"
@.str.1 = [9 x i8] c" isalnum\00"
@.str.2 = [9 x i8] c" isalpha\00"
@.str.3 = [9 x i8] c" iscntrl\00"
@.str.4 = [9 x i8] c" isdigit\00"
@.str.5 = [9 x i8] c" isgraph\00"
@.str.6 = [9 x i8] c" ispunct\00"
@.str.7 = [9 x i8] c" isupper\00"
@.str.8 = [2 x i8] c"\0A\00"
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %6
store i32 255, i32* %7
store i32 0, i32* %6
br label %8
8: ; preds = %58, %2
%9 = load i32, i32* %6
%10 = icmp slt i32 %9, 255
br i1 %10, label %11, label %61
11: ; preds = %8
%12 = load i32, i32* %6
%13 = load i32, i32* %6
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 %12, i32 %13)
%15 = load i32, i32* %6
%16 = call i64 @isalnum(i32 %15)
%17 = icmp ne i64 %16, 0
br i1 %17, label %18, label %20
18: ; preds = %11
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
br label %20
20: ; preds = %18, %11
%21 = load i32, i32* %6
%22 = call i64 @isalpha(i32 %21)
%23 = icmp ne i64 %22, 0
br i1 %23, label %24, label %26
24: ; preds = %20
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0))
br label %26
26: ; preds = %24, %20
%27 = load i32, i32* %6
%28 = call i64 @iscntrl(i32 %27)
%29 = icmp ne i64 %28, 0
br i1 %29, label %30, label %32
30: ; preds = %26
%31 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0))
br label %32
32: ; preds = %30, %26
%33 = load i32, i32* %6
%34 = call i64 @isdigit(i32 %33)
%35 = icmp ne i64 %34, 0
br i1 %35, label %36, label %38
36: ; preds = %32
%37 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0))
br label %38
38: ; preds = %36, %32
%39 = load i32, i32* %6
%40 = call i64 @isgraph(i32 %39)
%41 = icmp ne i64 %40, 0
br i1 %41, label %42, label %44
42: ; preds = %38
%43 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0))
br label %44
44: ; preds = %42, %38
%45 = load i32, i32* %6
%46 = call i64 @ispunct(i32 %45)
%47 = icmp ne i64 %46, 0
br i1 %47, label %48, label %50
48: ; preds = %44
%49 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.6, i64 0, i64 0))
br label %50
50: ; preds = %48, %44
%51 = load i32, i32* %6
%52 = call i64 @isupper(i32 %51)
%53 = icmp ne i64 %52, 0
br i1 %53, label %54, label %56
54: ; preds = %50
%55 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0))
br label %56
56: ; preds = %54, %50
%57 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0))
br label %58
58: ; preds = %56
%59 = load i32, i32* %6
%60 = add nsw i32 %59, 1
store i32 %60, i32* %6
br label %8
61: ; preds = %8
%62 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0))
%63 = load i32, i32* @EXIT_SUCCESS
ret i32 %63
}

LLVM IR (-O2):
@.str = [11 x i8] c"%i %c is: \00"
@.str.1 = [9 x i8] c" isalnum\00"
@.str.2 = [9 x i8] c" isalpha\00"
@.str.3 = [9 x i8] c" iscntrl\00"
@.str.4 = [9 x i8] c" isdigit\00"
@.str.5 = [9 x i8] c" isgraph\00"
@.str.6 = [9 x i8] c" ispunct\00"
@.str.7 = [9 x i8] c" isupper\00"
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** nocapture readnone %1) {
br label %3
3: ; preds = %2, %40
%4 = phi i32 [ 0, %2 ], [ %42, %40 ]
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 %4, i32 %4)
%6 = tail call i64 @isalnum(i32 %4)
%7 = icmp eq i64 %6, 0
br i1 %7, label %10, label %8
8: ; preds = %3
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
br label %10
10: ; preds = %8, %3
%11 = tail call i64 @isalpha(i32 %4)
%12 = icmp eq i64 %11, 0
br i1 %12, label %15, label %13
13: ; preds = %10
%14 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0))
br label %15
15: ; preds = %13, %10
%16 = tail call i64 @iscntrl(i32 %4)
%17 = icmp eq i64 %16, 0
br i1 %17, label %20, label %18
18: ; preds = %15
%19 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0))
br label %20
20: ; preds = %18, %15
%21 = tail call i64 @isdigit(i32 %4)
%22 = icmp eq i64 %21, 0
br i1 %22, label %25, label %23
23: ; preds = %20
%24 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0))
br label %25
25: ; preds = %23, %20
%26 = tail call i64 @isgraph(i32 %4)
%27 = icmp eq i64 %26, 0
br i1 %27, label %30, label %28
28: ; preds = %25
%29 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0))
br label %30
30: ; preds = %28, %25
%31 = tail call i64 @ispunct(i32 %4)
%32 = icmp eq i64 %31, 0
br i1 %32, label %35, label %33
33: ; preds = %30
%34 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.6, i64 0, i64 0))
br label %35
35: ; preds = %33, %30
%36 = tail call i64 @isupper(i32 %4)
%37 = icmp eq i64 %36, 0
br i1 %37, label %40, label %38
38: ; preds = %35
%39 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0))
br label %40
40: ; preds = %38, %35
%41 = tail call i32 @putchar(i32 10)
%42 = add nuw nsw i32 %4, 1
%43 = icmp eq i32 %42, 255
br i1 %43, label %44, label %3
44: ; preds = %40
%45 = tail call i32 @putchar(i32 10)
%46 = load i32, i32* @EXIT_SUCCESS
ret i32 %46
}