#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() {
  unsigned char h, t;
  for (h = 0xA1; h <= 0xF9; h++) {
    printf("\n");
    for (t = 0x00; t < 0xFF; t++) {
      printf("%c%c %2x%2x", h, t, h, t);
      if (t % 8 == 0)
        printf("\n");
    }
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movb   $0xa1,-0x5(%rbp)
movzbl -0x5(%rbp),%eax
cmp    $0xf9,%eax
jg     11b9 <main+0xa9>
lea    0xec7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movb   $0x0,-0x6(%rbp)
movzbl -0x6(%rbp),%eax
cmp    $0xff,%eax
jge    11a7 <main+0x97>
movzbl -0x5(%rbp),%esi
movzbl -0x6(%rbp),%edx
movzbl -0x5(%rbp),%ecx
movzbl -0x6(%rbp),%r8d
lea    0xe97(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movzbl -0x6(%rbp),%eax
mov    $0x8,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    1195 <main+0x85>
lea    0xe72(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    119a <main+0x8a>
mov    -0x6(%rbp),%al
add    $0x1,%al
mov    %al,-0x6(%rbp)
jmp    1144 <main+0x34>
jmp    11ac <main+0x9c>
mov    -0x5(%rbp),%al
add    $0x1,%al
mov    %al,-0x5(%rbp)
jmp    1123 <main+0x13>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r14
push   %rbx
mov    $0xa1,%ebx
lea    0xed0(%rip),%r14
jmp    114b <main+0x2b>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
add    $0x1,%ebx
cmp    $0xfa,%ebx
je     1190 <main+0x70>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %ebp,%ebp
jmp    116b <main+0x4b>
nopl   0x0(%rax)
add    $0x1,%ebp
cmp    $0xff,%ebp
je     1140 <main+0x20>
mov    %r14,%rdi
mov    %ebx,%esi
mov    %ebp,%edx
mov    %ebx,%ecx
mov    %ebp,%r8d
xor    %eax,%eax
call   1040 <printf@plt>
test   $0x7,%bpl
jne    1160 <main+0x40>
mov    $0xa,%edi
call   1030 <putchar@plt>
jmp    1160 <main+0x40>
xor    %eax,%eax
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
@.str = [2 x i8] c"\0A\00"
@.str.1 = [12 x i8] c"%c%c %2x%2x\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i8
%3 = alloca i8
store i32 0, i32* %1
store i8 -95, i8* %2
br label %4
4: ; preds = %35, %0
%5 = load i8, i8* %2
%6 = zext i8 %5 to i32
%7 = icmp sle i32 %6, 249
br i1 %7, label %8, label %38
8: ; preds = %4
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i8 0, i8* %3
br label %10
10: ; preds = %31, %8
%11 = load i8, i8* %3
%12 = zext i8 %11 to i32
%13 = icmp slt i32 %12, 255
br i1 %13, label %14, label %34
14: ; preds = %10
%15 = load i8, i8* %2
%16 = zext i8 %15 to i32
%17 = load i8, i8* %3
%18 = zext i8 %17 to i32
%19 = load i8, i8* %2
%20 = zext i8 %19 to i32
%21 = load i8, i8* %3
%22 = zext i8 %21 to i32
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i32 %16, i32 %18, i32 %20, i32 %22)
%24 = load i8, i8* %3
%25 = zext i8 %24 to i32
%26 = srem i32 %25, 8
%27 = icmp eq i32 %26, 0
br i1 %27, label %28, label %30
28: ; preds = %14
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
br label %30
30: ; preds = %28, %14
br label %31
31: ; preds = %30
%32 = load i8, i8* %3
%33 = add i8 %32, 1
store i8 %33, i8* %3
br label %10
34: ; preds = %10
br label %35
35: ; preds = %34
%36 = load i8, i8* %2
%37 = add i8 %36, 1
store i8 %37, i8* %2
br label %4
38: ; preds = %4
%39 = load i32, i32* %1
ret i32 %39
}

LLVM IR (-O2):
@.str.1 = [12 x i8] c"%c%c %2x%2x\00"
define i32 @main() {
br label %1
1: ; preds = %0, %14
%2 = phi i32 [ 161, %0 ], [ %15, %14 ]
%3 = tail call i32 @putchar(i32 10)
br label %4
4: ; preds = %1, %11
%5 = phi i32 [ 0, %1 ], [ %12, %11 ]
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i32 %2, i32 %5, i32 %2, i32 %5)
%7 = and i32 %5, 7
%8 = icmp eq i32 %7, 0
br i1 %8, label %9, label %11
9: ; preds = %4
%10 = tail call i32 @putchar(i32 10)
br label %11
11: ; preds = %4, %9
%12 = add nuw nsw i32 %5, 1
%13 = icmp eq i32 %12, 255
br i1 %13, label %14, label %4
14: ; preds = %11
%15 = add nuw nsw i32 %2, 1
%16 = icmp eq i32 %15, 250
br i1 %16, label %17, label %1
17: ; preds = %14
ret i32 0
}