#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 /*<<< orphan*/ putchar(char);
void iso() {
  unsigned char i, j;
  printf("     ");
  for (j = 0x2; j <= 0x7; j++)
    printf("%4x ", j);
  printf("     ");
  for (j = 0xa; j <= 0xf; j++)
    printf("%4x ", j);
  putchar('\n');
  putchar('\n');
  for (i = 0x0; i <= 0xf; i++) {
    printf("%4x ", i);
    for (j = 0x2; j <= 0x7; j++)
      printf("   %c ", ((unsigned char)j << 4 | i));
    if (i == 0xf)
      printf("      ");
    else
      printf("     ");
    for (j = 0xa; j <= 0xf; j++)
      printf("   %c ", ((unsigned char)j << 4 | i));
    putchar('\n');
  }
}


x86 assembly (clang, -O0):
<iso>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    0xede(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movb   $0x2,-0x2(%rbp)
movzbl -0x2(%rbp),%eax
cmp    $0x7,%eax
jg     1166 <iso+0x46>
movzbl -0x2(%rbp),%esi
lea    0xeae(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x2(%rbp),%al
add    $0x1,%al
mov    %al,-0x2(%rbp)
jmp    113a <iso+0x1a>
lea    0xea0(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movb   $0xa,-0x2(%rbp)
movzbl -0x2(%rbp),%eax
cmp    $0xf,%eax
jg     11a4 <iso+0x84>
movzbl -0x2(%rbp),%esi
lea    0xe70(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x2(%rbp),%al
add    $0x1,%al
mov    %al,-0x2(%rbp)
jmp    1178 <iso+0x58>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
movb   $0x0,-0x1(%rbp)
movzbl -0x1(%rbp),%eax
cmp    $0xf,%eax
jg     1292 <iso+0x172>
movzbl -0x1(%rbp),%esi
lea    0xe2c(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movb   $0x2,-0x2(%rbp)
movzbl -0x2(%rbp),%eax
cmp    $0x7,%eax
jg     1214 <iso+0xf4>
movzbl -0x2(%rbp),%esi
shl    $0x4,%esi
movzbl -0x1(%rbp),%eax
or     %eax,%esi
lea    0xe05(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x2(%rbp),%al
add    $0x1,%al
mov    %al,-0x2(%rbp)
jmp    11df <iso+0xbf>
movzbl -0x1(%rbp),%eax
cmp    $0xf,%eax
jne    1234 <iso+0x114>
lea    0xde4(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1242 <iso+0x122>
lea    0xdd2(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movb   $0xa,-0x2(%rbp)
movzbl -0x2(%rbp),%eax
cmp    $0xf,%eax
jg     127b <iso+0x15b>
movzbl -0x2(%rbp),%esi
shl    $0x4,%esi
movzbl -0x1(%rbp),%eax
or     %eax,%esi
lea    0xd9e(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x2(%rbp),%al
add    $0x1,%al
mov    %al,-0x2(%rbp)
jmp    1246 <iso+0x126>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    -0x1(%rbp),%al
add    $0x1,%al
mov    %al,-0x1(%rbp)
jmp    11bc <iso+0x9c>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<iso>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
lea    0xede(%rip),%r14
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xec0(%rip),%r15
mov    %r15,%rdi
mov    $0x2,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r15,%rdi
mov    $0x3,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r15,%rdi
mov    $0x4,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r15,%rdi
mov    $0x5,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r15,%rdi
mov    $0x6,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r15,%rdi
mov    $0x7,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r15,%rdi
mov    $0xa,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r15,%rdi
mov    $0xb,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r15,%rdi
mov    $0xc,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r15,%rdi
mov    $0xd,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r15,%rdi
mov    $0xe,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r15,%rdi
mov    $0xf,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xdec(%rip),%rbx
lea    0xdec(%rip),%r12
xor    %ebp,%ebp
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    %r15,%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %ebp,%esi
or     $0x20,%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %ebp,%esi
or     $0x30,%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %ebp,%esi
or     $0x40,%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %ebp,%esi
or     $0x50,%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %ebp,%esi
or     $0x60,%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %ebp,%esi
or     $0x70,%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
cmp    $0xf,%ebp
mov    %r14,%rdi
cmove  %r12,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %ebp,%esi
or     $0xa0,%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %ebp,%esi
or     $0xb0,%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %ebp,%esi
or     $0xc0,%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %ebp,%esi
or     $0xd0,%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %ebp,%esi
or     $0xe0,%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %ebp,%esi
or     $0xf0,%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x1,%ebp
cmp    $0x10,%ebp
jne    1230 <iso+0x110>
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [6 x i8] c" \00"
@.str.1 = [5 x i8] c"%4x \00"
@.str.2 = [7 x i8] c" %c \00"
@.str.3 = [7 x i8] c" \00"
define void @iso() {
%1 = alloca i8
%2 = alloca i8
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
store i8 2, i8* %2
br label %4
4: ; preds = %12, %0
%5 = load i8, i8* %2
%6 = zext i8 %5 to i32
%7 = icmp sle i32 %6, 7
br i1 %7, label %8, label %15
8: ; preds = %4
%9 = load i8, i8* %2
%10 = zext i8 %9 to i32
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32 %10)
br label %12
12: ; preds = %8
%13 = load i8, i8* %2
%14 = add i8 %13, 1
store i8 %14, i8* %2
br label %4
15: ; preds = %4
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
store i8 10, i8* %2
br label %17
17: ; preds = %25, %15
%18 = load i8, i8* %2
%19 = zext i8 %18 to i32
%20 = icmp sle i32 %19, 15
br i1 %20, label %21, label %28
21: ; preds = %17
%22 = load i8, i8* %2
%23 = zext i8 %22 to i32
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32 %23)
br label %25
25: ; preds = %21
%26 = load i8, i8* %2
%27 = add i8 %26, 1
store i8 %27, i8* %2
br label %17
28: ; preds = %17
%29 = call i32 @putchar(i8 signext 10)
%30 = call i32 @putchar(i8 signext 10)
store i8 0, i8* %1
br label %31
31: ; preds = %80, %28
%32 = load i8, i8* %1
%33 = zext i8 %32 to i32
%34 = icmp sle i32 %33, 15
br i1 %34, label %35, label %83
35: ; preds = %31
%36 = load i8, i8* %1
%37 = zext i8 %36 to i32
%38 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32 %37)
store i8 2, i8* %2
br label %39
39: ; preds = %51, %35
%40 = load i8, i8* %2
%41 = zext i8 %40 to i32
%42 = icmp sle i32 %41, 7
br i1 %42, label %43, label %54
43: ; preds = %39
%44 = load i8, i8* %2
%45 = zext i8 %44 to i32
%46 = shl i32 %45, 4
%47 = load i8, i8* %1
%48 = zext i8 %47 to i32
%49 = or i32 %46, %48
%50 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 %49)
br label %51
51: ; preds = %43
%52 = load i8, i8* %2
%53 = add i8 %52, 1
store i8 %53, i8* %2
br label %39
54: ; preds = %39
%55 = load i8, i8* %1
%56 = zext i8 %55 to i32
%57 = icmp eq i32 %56, 15
br i1 %57, label %58, label %60
58: ; preds = %54
%59 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0))
br label %62
60: ; preds = %54
%61 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
br label %62
62: ; preds = %60, %58
store i8 10, i8* %2
br label %63
63: ; preds = %75, %62
%64 = load i8, i8* %2
%65 = zext i8 %64 to i32
%66 = icmp sle i32 %65, 15
br i1 %66, label %67, label %78
67: ; preds = %63
%68 = load i8, i8* %2
%69 = zext i8 %68 to i32
%70 = shl i32 %69, 4
%71 = load i8, i8* %1
%72 = zext i8 %71 to i32
%73 = or i32 %70, %72
%74 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 %73)
br label %75
75: ; preds = %67
%76 = load i8, i8* %2
%77 = add i8 %76, 1
store i8 %77, i8* %2
br label %63
78: ; preds = %63
%79 = call i32 @putchar(i8 signext 10)
br label %80
80: ; preds = %78
%81 = load i8, i8* %1
%82 = add i8 %81, 1
store i8 %82, i8* %1
br label %31
83: ; preds = %31
ret void
}

LLVM IR (-O2):
@.str = [6 x i8] c" \00"
@.str.1 = [5 x i8] c"%4x \00"
@.str.2 = [7 x i8] c" %c \00"
@.str.3 = [7 x i8] c" \00"
define void @iso() {
%1 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32 2)
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32 3)
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32 4)
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32 5)
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32 6)
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32 7)
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32 10)
%10 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32 11)
%11 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32 12)
%12 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32 13)
%13 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32 14)
%14 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32 15)
%15 = tail call i32 @putchar(i8 signext 10)
%16 = tail call i32 @putchar(i8 signext 10)
br label %17
17: ; preds = %0, %17
%18 = phi i32 [ 0, %0 ], [ %48, %17 ]
%19 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32 %18)
%20 = or i32 %18, 32
%21 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 %20)
%22 = or i32 %18, 48
%23 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 %22)
%24 = or i32 %18, 64
%25 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 %24)
%26 = or i32 %18, 80
%27 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 %26)
%28 = or i32 %18, 96
%29 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 %28)
%30 = or i32 %18, 112
%31 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 %30)
%32 = icmp eq i32 %18, 15
%33 = select i1 %32, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0)
%34 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) %33)
%35 = or i32 %18, 160
%36 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 %35)
%37 = or i32 %18, 176
%38 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 %37)
%39 = or i32 %18, 192
%40 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 %39)
%41 = or i32 %18, 208
%42 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 %41)
%43 = or i32 %18, 224
%44 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 %43)
%45 = or i32 %18, 240
%46 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 %45)
%47 = tail call i32 @putchar(i8 signext 10)
%48 = add nuw nsw i32 %18, 1
%49 = icmp eq i32 %48, 16
br i1 %49, label %50, label %17
50: ; preds = %17
ret void
}