#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 main(void) {
  for (int i = 0; i < 256; i++) {
    char c = i;
    if (c == '\n' || c == '\t' || c == '\b' || c == '\0' || c == '\v' ||
        c == '\f' || c == '\r') {
      c = '\xFF';
    }
    printf("%2x %c  ", i, c);
    if ((i + 1) % 8 == 0)
      printf("\n");
  }
  printf("\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
cmpl   $0x100,-0x8(%rbp)
jge    11e5 <main+0xd5>
mov    -0x8(%rbp),%eax
mov    %al,-0x9(%rbp)
movsbl -0x9(%rbp),%eax
cmp    $0xa,%eax
je     1194 <main+0x84>
movsbl -0x9(%rbp),%eax
cmp    $0x9,%eax
je     1194 <main+0x84>
movsbl -0x9(%rbp),%eax
cmp    $0x8,%eax
je     1194 <main+0x84>
movsbl -0x9(%rbp),%eax
cmp    $0x0,%eax
je     1194 <main+0x84>
movsbl -0x9(%rbp),%eax
cmp    $0xb,%eax
je     1194 <main+0x84>
movsbl -0x9(%rbp),%eax
cmp    $0xc,%eax
je     1194 <main+0x84>
movsbl -0x9(%rbp),%eax
cmp    $0xd,%eax
jne    1198 <main+0x88>
movb   $0xff,-0x9(%rbp)
mov    -0x8(%rbp),%esi
movsbl -0x9(%rbp),%edx
lea    0xe5a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    $0x8,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    11d2 <main+0xc2>
lea    0xe3e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    11d7 <main+0xc7>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1126 <main+0x16>
lea    0xe1d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    $0xffffffff,%r15d
lea    0xecc(%rip),%r14
xor    %ebx,%ebx
xor    %ebp,%ebp
jmp    114e <main+0x2e>
nopw   0x0(%rax,%rax,1)
add    $0x1000000,%ebx
cmp    $0x100,%ebp
je     11a6 <main+0x86>
mov    %ebp,%eax
and    $0xfd,%eax
mov    %ebp,%ecx
and    $0xfe,%ecx
mov    %ebx,%esi
sar    $0x18,%esi
cmp    $0x8,%eax
cmove  %r15d,%esi
cmp    $0x9,%ebp
cmove  %r15d,%esi
cmp    $0x1,%ebp
sbb    %edx,%edx
or     %esi,%edx
cmp    $0xb,%ebp
cmove  %r15d,%edx
cmp    $0xc,%ecx
cmove  %r15d,%edx
mov    %r14,%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1040 <printf@plt>
add    $0x1,%ebp
test   $0x7,%bpl
jne    1140 <main+0x20>
mov    $0xa,%edi
call   1030 <putchar@plt>
jmp    1140 <main+0x20>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
@.str = [9 x i8] c"%2x %c \00"
define i32 @main() {
br label %3
1: ; preds = %25
%2 = tail call i32 @putchar(i32 10)
ret i32 0
3: ; preds = %0, %25
%4 = phi i32 [ 0, %0 ], [ %20, %25 ]
%5 = shl nuw i32 %4, 24
%6 = icmp eq i32 %4, 9
%7 = and i32 %4, 253
%8 = icmp eq i32 %7, 8
%9 = or i1 %6, %8
%10 = icmp eq i32 %4, 0
%11 = or i1 %10, %9
%12 = icmp eq i32 %4, 11
%13 = or i1 %12, %11
%14 = and i32 %4, 254
%15 = icmp eq i32 %14, 12
%16 = or i1 %15, %13
%17 = ashr exact i32 %5, 24
%18 = select i1 %16, i32 -1, i32 %17
%19 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 %4, i32 %18)
%20 = add nuw nsw i32 %4, 1
%21 = and i32 %20, 7
%22 = icmp eq i32 %21, 0
br i1 %22, label %23, label %25
23: ; preds = %3
%24 = tail call i32 @putchar(i32 10)
br label %25
25: ; preds = %23, %3
%26 = icmp eq i32 %20, 256
br i1 %26, label %1, label %3
}