#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 *, ...);
void printAscii() {
  int ii, jj;
  unsigned int counter = 0;
  unsigned char ch;
  printf(" --------------------------------------------------------------------"
         "-------------\n");
  for (ii = 0; ii < 32; ii++) {
    printf(" | ");
    for (jj = 0; jj < 8; jj++) {
      counter = ii + (32 * jj);
      ch = counter++;
      switch (ch) {
      case 1:
      case 2:
      case 3:
      case 4:
      case 5:
      case 6:
      case 7:
      case 8:
      case 11:
      case 12:
      case 14:
      case 15:
      case 16:
      case 17:
      case 18:
      case 19:
      case 20:
      case 21:
      case 22:
      case 23:
      case 24:
      case 25:
      case 26:
      case 27:
      case 28:
      case 29:
      case 30:
      case 31:
      case 127:
        printf("%3d     | ", ch);
        break;
      case 0:
        printf("%3d END | ", ch);
        break;
      case 9:
        printf("%3d TAB | ", ch);
        break;
      case 10:
        printf("%3d NL  | ", ch);
        break;
      case 13:
        printf("%3d RET | ", ch);
        break;
      default:
        printf("%3d  %c  | ", ch, ch);
      }
    }
    printf("\n");
  }
  printf(" --------------------------------------------------------------------"
         "-------------\n");
}


x86 assembly (clang, -O0):
<printAscii>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0xc(%rbp)
lea    0x10da(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
cmpl   $0x20,-0x4(%rbp)
jge    1255 <printAscii+0x145>
lea    0x1116(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x8(%rbp)
cmpl   $0x8,-0x8(%rbp)
jge    1239 <printAscii+0x129>
mov    -0x4(%rbp),%eax
mov    -0x8(%rbp),%ecx
shl    $0x5,%ecx
add    %ecx,%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0xc(%rbp)
mov    %al,-0xd(%rbp)
movzbl -0xd(%rbp),%eax
mov    %rax,-0x18(%rbp)
test   %al,%al
js     1210 <printAscii+0x100>
mov    -0x18(%rbp),%rax
lea    0xe6c(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
movzbl -0xd(%rbp),%esi
lea    0x10ac(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1226 <printAscii+0x116>
movzbl -0xd(%rbp),%esi
lea    0x10a0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1226 <printAscii+0x116>
movzbl -0xd(%rbp),%esi
lea    0x1094(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1226 <printAscii+0x116>
movzbl -0xd(%rbp),%esi
lea    0x1088(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1226 <printAscii+0x116>
movzbl -0xd(%rbp),%esi
lea    0x107c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1226 <printAscii+0x116>
movzbl -0xd(%rbp),%esi
movzbl -0xd(%rbp),%edx
lea    0x106c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    122b <printAscii+0x11b>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1153 <printAscii+0x43>
lea    0x1012(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    1134 <printAscii+0x24>
lea    0xfa4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<printAscii>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
lea    0x1101(%rip),%rdi
call   1040 <puts@plt>
lea    0xeb2(%rip),%r13
lea    0x10ab(%rip),%rbx
lea    0x10d0(%rip),%r14
xor    %r12d,%r12d
jmp    1188 <printAscii+0x58>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x1,%r12d
cmp    $0x20,%r12d
je     1212 <printAscii+0xe2>
lea    0x1078(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0x8,%ebp
mov    %r12d,%r15d
xchg   %ax,%ax
test   %r15b,%r15b
js     11fc <printAscii+0xcc>
movzbl %r15b,%eax
movslq 0x0(%r13,%rax,4),%rax
add    %r13,%rax
jmp    *%rax
mov    %rbx,%rdi
mov    %r15d,%esi
xor    %eax,%eax
call   1050 <printf@plt>
add    $0x20,%r15d
add    $0xffffffff,%ebp
jne    11a0 <printAscii+0x70>
jmp    1170 <printAscii+0x40>
lea    0x1039(%rip),%rdi
xor    %esi,%esi
jmp    11b9 <printAscii+0x89>
lea    0x1039(%rip),%rdi
mov    $0x9,%esi
jmp    11b9 <printAscii+0x89>
lea    0x1036(%rip),%rdi
mov    $0xa,%esi
jmp    11b9 <printAscii+0x89>
mov    %r14,%rdi
mov    $0xd,%esi
jmp    11b9 <printAscii+0x89>
lea    0x1034(%rip),%rdi
mov    %r15d,%esi
mov    %r15d,%edx
xor    %eax,%eax
call   1050 <printf@plt>
jmp    11c0 <printAscii+0x90>
lea    0x102a(%rip),%rdi
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1040 <puts@plt>

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

LLVM IR (-O2):
@.str.1 = [4 x i8] c" | \00"
@.str.2 = [11 x i8] c"%3d | \00"
@.str.3 = [11 x i8] c"%3d END | \00"
@.str.4 = [11 x i8] c"%3d TAB | \00"
@.str.5 = [11 x i8] c"%3d NL | \00"
@.str.6 = [11 x i8] c"%3d RET | \00"
@.str.7 = [12 x i8] c"%3d %c | \00"
@str.9 = [83 x i8] c" ---------------------------------------------------------------------------------\00"
define void @printAscii() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([83 x i8], [83 x i8]* @str.9, i64 0, i64 0))
br label %2
2: ; preds = %0, %25
%3 = phi i32 [ 0, %0 ], [ %27, %25 ]
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
br label %5
5: ; preds = %2, %22
%6 = phi i32 [ 0, %2 ], [ %23, %22 ]
%7 = shl nuw nsw i32 %6, 5
%8 = add nuw nsw i32 %7, %3
%9 = trunc i32 %8 to i8
switch i8 %9, label %20 [
i8 1, label %10
i8 2, label %10
i8 3, label %10
i8 4, label %10
i8 5, label %10
i8 6, label %10
i8 7, label %10
i8 8, label %10
i8 11, label %10
i8 12, label %10
i8 14, label %10
i8 15, label %10
i8 16, label %10
i8 17, label %10
i8 18, label %10
i8 19, label %10
i8 20, label %10
i8 21, label %10
i8 22, label %10
i8 23, label %10
i8 24, label %10
i8 25, label %10
i8 26, label %10
i8 27, label %10
i8 28, label %10
i8 29, label %10
i8 30, label %10
i8 31, label %10
i8 127, label %10
i8 0, label %12
i8 9, label %14
i8 10, label %16
i8 13, label %18
]
10: ; preds = %5, %5, %5, %5, %5, %5, %5, %5, %5, %5, %5, %5, %5, %5, %5, %5, %5, %5, %5, %5, %5, %5, %5, %5, %5, %5, %5, %5, %5
%11 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0), i32 %8)
br label %22
12: ; preds = %5
%13 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0), i32 0)
br label %22
14: ; preds = %5
%15 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0), i32 9)
br label %22
16: ; preds = %5
%17 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0), i32 10)
br label %22
18: ; preds = %5
%19 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0), i32 13)
br label %22
20: ; preds = %5
%21 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.7, i64 0, i64 0), i32 %8, i32 %8)
br label %22
22: ; preds = %10, %12, %14, %16, %18, %20
%23 = add nuw nsw i32 %6, 1
%24 = icmp eq i32 %23, 8
br i1 %24, label %25, label %5
25: ; preds = %22
%26 = tail call i32 @putchar(i32 10)
%27 = add nuw nsw i32 %3, 1
%28 = icmp eq i32 %27, 32
br i1 %28, label %29, label %2
29: ; preds = %25
%30 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([83 x i8], [83 x i8]* @str.9, i64 0, i64 0))
ret void
}