void printnonprint(ch) register int ch;
{
  printf("Char:     ");
  switch (ch) {
  case 11:
    printf("ff         /* ligature (non-printing) */");
    break;
  case 12:
    printf("fi         /* ligature (non-printing) */");
    break;
  case 13:
    printf("fl         /* ligature (non-printing) */");
    break;
  case 14:
    printf("ffi        /* ligature (non-printing) */");
    break;
  case 15:
    printf("ffl        /* ligature (non-printing) */");
    break;
  case 16:
    printf("i          /* (non-printing) */");
    break;
  case 17:
    printf("j          /* (non-printing) */");
    break;
  case 25:
    printf("ss         /* german (non-printing) */");
    break;
  case 26:
    printf("ae         /* scadinavian (non-printing) */");
    break;
  case 27:
    printf("oe         /* scadinavian (non-printing) */");
    break;
  case 28:
    printf("o          /* scadinavian (non-printing) */");
    break;
  case 29:
    printf("AE         /* scadinavian (non-printing) */");
    break;
  case 30:
    printf("OE         /* scadinavian (non-printing) */");
    break;
  case 31:
    printf("O          /* scadinavian (non-printing) */");
    break;
  default:
    printf("0x%2X", ch);
    break;
  }
  putchar('\n');
}


x86 assembly (clang, -O0):
<printnonprint>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
lea    0xf22(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0xfffffff5,%eax
mov    %eax,%ecx
mov    %rcx,-0x10(%rbp)
sub    $0x14,%eax
ja     126c <printnonprint+0x14c>
mov    -0x10(%rbp),%rax
lea    0xea7(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xef6(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    127d <printnonprint+0x15d>
lea    0xf0c(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    127d <printnonprint+0x15d>
lea    0xf22(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    127d <printnonprint+0x15d>
lea    0xf38(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    127d <printnonprint+0x15d>
lea    0xf4e(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    127d <printnonprint+0x15d>
lea    0xf64(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    127d <printnonprint+0x15d>
lea    0xf71(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    127d <printnonprint+0x15d>
lea    0xf7e(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    127d <printnonprint+0x15d>
lea    0xf92(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    127d <printnonprint+0x15d>
lea    0xfab(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    127d <printnonprint+0x15d>
lea    0xfc4(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    127d <printnonprint+0x15d>
lea    0xfdd(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    127d <printnonprint+0x15d>
lea    0xff6(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    127d <printnonprint+0x15d>
lea    0x100f(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    127d <printnonprint+0x15d>
mov    -0x4(%rbp),%esi
lea    0x1025(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0xa,%edi
mov    $0x0,%al
call   1030 <putchar@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<printnonprint>:
push   %rbx
mov    %edi,%ebx
lea    0xf2a(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    -0xb(%rbx),%eax
cmp    $0x14,%eax
ja     118b <printnonprint+0x6b>
lea    0xec0(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xf0f(%rip),%rdi
jmp    11da <printnonprint+0xba>
lea    0xf2c(%rip),%rdi
jmp    11da <printnonprint+0xba>
lea    0xf4c(%rip),%rdi
jmp    11da <printnonprint+0xba>
lea    0xf6c(%rip),%rdi
jmp    11da <printnonprint+0xba>
lea    0xf8c(%rip),%rdi
jmp    11da <printnonprint+0xba>
lea    0xfac(%rip),%rdi
jmp    11da <printnonprint+0xba>
lea    0xfc3(%rip),%rdi
jmp    11da <printnonprint+0xba>
lea    0x1109(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1040 <printf@plt>
jmp    11e1 <printnonprint+0xc1>
lea    0xfc8(%rip),%rdi
jmp    11da <printnonprint+0xba>
lea    0xfe6(%rip),%rdi
jmp    11da <printnonprint+0xba>
lea    0x1009(%rip),%rdi
jmp    11da <printnonprint+0xba>
lea    0x102c(%rip),%rdi
jmp    11da <printnonprint+0xba>
lea    0x104f(%rip),%rdi
jmp    11da <printnonprint+0xba>
lea    0x1072(%rip),%rdi
jmp    11da <printnonprint+0xba>
lea    0x1095(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xa,%edi
xor    %eax,%eax
pop    %rbx
jmp    1030 <putchar@plt>

LLVM IR (-O0):
@.str = [11 x i8] c"Char: \00"
@.str.1 = [41 x i8] c"ff /* ligature (non-printing) */\00"
@.str.2 = [41 x i8] c"fi /* ligature (non-printing) */\00"
@.str.3 = [41 x i8] c"fl /* ligature (non-printing) */\00"
@.str.4 = [41 x i8] c"ffi /* ligature (non-printing) */\00"
@.str.5 = [41 x i8] c"ffl /* ligature (non-printing) */\00"
@.str.6 = [32 x i8] c"i /* (non-printing) */\00"
@.str.7 = [32 x i8] c"j /* (non-printing) */\00"
@.str.8 = [39 x i8] c"ss /* german (non-printing) */\00"
@.str.9 = [44 x i8] c"ae /* scadinavian (non-printing) */\00"
@.str.10 = [44 x i8] c"oe /* scadinavian (non-printing) */\00"
@.str.11 = [44 x i8] c"o /* scadinavian (non-printing) */\00"
@.str.12 = [44 x i8] c"AE /* scadinavian (non-printing) */\00"
@.str.13 = [44 x i8] c"OE /* scadinavian (non-printing) */\00"
@.str.14 = [44 x i8] c"O /* scadinavian (non-printing) */\00"
@.str.15 = [6 x i8] c"0x%2X\00"
define void @printnonprint(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
%4 = load i32, i32* %2
switch i32 %4, label %33 [
i32 11, label %5
i32 12, label %7
i32 13, label %9
i32 14, label %11
i32 15, label %13
i32 16, label %15
i32 17, label %17
i32 25, label %19
i32 26, label %21
i32 27, label %23
i32 28, label %25
i32 29, label %27
i32 30, label %29
i32 31, label %31
]
5: ; preds = %1
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.1, i64 0, i64 0))
br label %36
7: ; preds = %1
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.2, i64 0, i64 0))
br label %36
9: ; preds = %1
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.3, i64 0, i64 0))
br label %36
11: ; preds = %1
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.4, i64 0, i64 0))
br label %36
13: ; preds = %1
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.5, i64 0, i64 0))
br label %36
15: ; preds = %1
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.6, i64 0, i64 0))
br label %36
17: ; preds = %1
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.7, i64 0, i64 0))
br label %36
19: ; preds = %1
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.8, i64 0, i64 0))
br label %36
21: ; preds = %1
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.9, i64 0, i64 0))
br label %36
23: ; preds = %1
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.10, i64 0, i64 0))
br label %36
25: ; preds = %1
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.11, i64 0, i64 0))
br label %36
27: ; preds = %1
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.12, i64 0, i64 0))
br label %36
29: ; preds = %1
%30 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.13, i64 0, i64 0))
br label %36
31: ; preds = %1
%32 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.14, i64 0, i64 0))
br label %36
33: ; preds = %1
%34 = load i32, i32* %2
%35 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.15, i64 0, i64 0), i32 %34)
br label %36
36: ; preds = %33, %31, %29, %27, %25, %23, %21, %19, %17, %15, %13, %11, %9, %7, %5
%37 = call i32 (i32, ...) bitcast (i32 (...)* @putchar to i32 (i32, ...)*)(i32 10)
ret void
}

LLVM IR (-O2):
@.str = [11 x i8] c"Char: \00"
@.str.1 = [41 x i8] c"ff /* ligature (non-printing) */\00"
@.str.2 = [41 x i8] c"fi /* ligature (non-printing) */\00"
@.str.3 = [41 x i8] c"fl /* ligature (non-printing) */\00"
@.str.4 = [41 x i8] c"ffi /* ligature (non-printing) */\00"
@.str.5 = [41 x i8] c"ffl /* ligature (non-printing) */\00"
@.str.6 = [32 x i8] c"i /* (non-printing) */\00"
@.str.7 = [32 x i8] c"j /* (non-printing) */\00"
@.str.8 = [39 x i8] c"ss /* german (non-printing) */\00"
@.str.9 = [44 x i8] c"ae /* scadinavian (non-printing) */\00"
@.str.10 = [44 x i8] c"oe /* scadinavian (non-printing) */\00"
@.str.11 = [44 x i8] c"o /* scadinavian (non-printing) */\00"
@.str.12 = [44 x i8] c"AE /* scadinavian (non-printing) */\00"
@.str.13 = [44 x i8] c"OE /* scadinavian (non-printing) */\00"
@.str.14 = [44 x i8] c"O /* scadinavian (non-printing) */\00"
@.str.15 = [6 x i8] c"0x%2X\00"
define void @printnonprint(i32 %0) {
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
switch i32 %0, label %31 [
i32 11, label %3
i32 12, label %5
i32 13, label %7
i32 14, label %9
i32 15, label %11
i32 16, label %13
i32 17, label %15
i32 25, label %17
i32 26, label %19
i32 27, label %21
i32 28, label %23
i32 29, label %25
i32 30, label %27
i32 31, label %29
]
3: ; preds = %1
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @.str.1, i64 0, i64 0))
br label %33
5: ; preds = %1
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @.str.2, i64 0, i64 0))
br label %33
7: ; preds = %1
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @.str.3, i64 0, i64 0))
br label %33
9: ; preds = %1
%10 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @.str.4, i64 0, i64 0))
br label %33
11: ; preds = %1
%12 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @.str.5, i64 0, i64 0))
br label %33
13: ; preds = %1
%14 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.6, i64 0, i64 0))
br label %33
15: ; preds = %1
%16 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.7, i64 0, i64 0))
br label %33
17: ; preds = %1
%18 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @.str.8, i64 0, i64 0))
br label %33
19: ; preds = %1
%20 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @.str.9, i64 0, i64 0))
br label %33
21: ; preds = %1
%22 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @.str.10, i64 0, i64 0))
br label %33
23: ; preds = %1
%24 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @.str.11, i64 0, i64 0))
br label %33
25: ; preds = %1
%26 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @.str.12, i64 0, i64 0))
br label %33
27: ; preds = %1
%28 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @.str.13, i64 0, i64 0))
br label %33
29: ; preds = %1
%30 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @.str.14, i64 0, i64 0))
br label %33
31: ; preds = %1
%32 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.15, i64 0, i64 0), i32 %0)
br label %33
33: ; preds = %31, %29, %27, %25, %23, %21, %19, %17, %15, %13, %11, %9, %7, %5, %3
%34 = tail call i32 (i32, ...) bitcast (i32 (...)* @putchar to i32 (i32, ...)*)(i32 10)
ret void
}