#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*/ scanf(char *, char *);
void dispall(void) {
  int i, j;
  unsigned int charnum;
  char c;
  for (i = 33; i < 33 + 23; i++) {
    if (i > 33)
      printf("\n");
    for (j = 0; j < 11; j++) {
      charnum = i + j * 23;
      if (charnum > 255)
        break;
      printf("%3d:%c", charnum, charnum);
      if (j < 9)
        printf("  ");
    }
  }
  scanf("%c", &c);
}


x86 assembly (clang, -O0):
<dispall>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x21,-0x4(%rbp)
cmpl   $0x38,-0x4(%rbp)
jge    11d2 <dispall+0xb2>
cmpl   $0x21,-0x4(%rbp)
jle    1151 <dispall+0x31>
lea    0xeb6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x8(%rbp)
cmpl   $0xb,-0x8(%rbp)
jge    11bf <dispall+0x9f>
mov    -0x4(%rbp),%eax
imul   $0x17,-0x8(%rbp),%ecx
add    %ecx,%eax
mov    %eax,-0xc(%rbp)
cmpl   $0xff,-0xc(%rbp)
jbe    1180 <dispall+0x60>
jmp    11bf <dispall+0x9f>
mov    -0xc(%rbp),%esi
mov    -0xc(%rbp),%edx
lea    0xe75(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cmpl   $0x9,-0x8(%rbp)
jge    11ac <dispall+0x8c>
lea    0xe64(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    11b1 <dispall+0x91>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1158 <dispall+0x38>
jmp    11c4 <dispall+0xa4>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    112f <dispall+0xf>
lea    0xe2d(%rip),%rdi
lea    -0xd(%rbp),%rsi
call   1040 <scanf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<dispall>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    $0x82,%r13d
mov    $0x107,%r12d
lea    0xeb2(%rip),%r14
lea    0xeb2(%rip),%r15
jmp    1172 <dispall+0x42>
nopw   0x0(%rax,%rax,1)
add    $0xffffffff,%r13d
add    $0x1,%r12d
cmp    $0x6b,%r13d
je     132a <dispall+0x1fa>
lea    0x73(%r13),%ebx
lea    -0xe6(%r12),%ebp
ff
cmp    $0x22,%ebp
jb     118d <dispall+0x5d>
mov    $0xa,%edi
call   1030 <putchar@plt>
cmp    $0x17,%ebx
jb     1160 <dispall+0x30>
mov    %r14,%rdi
mov    %ebp,%esi
mov    %ebp,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x5c(%r13),%eax
cmp    $0x17,%eax
jb     1160 <dispall+0x30>
lea    -0xcf(%r12),%edx
ff
mov    %r14,%rdi
mov    %edx,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x45(%r13),%eax
cmp    $0x17,%eax
jb     1160 <dispall+0x30>
lea    -0xb8(%r12),%edx
ff
mov    %r14,%rdi
mov    %edx,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x2e(%r13),%eax
cmp    $0x17,%eax
jb     1160 <dispall+0x30>
lea    -0xa1(%r12),%edx
ff
mov    %r14,%rdi
mov    %edx,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r13d,%eax
add    $0x17,%eax
jb     1160 <dispall+0x30>
lea    -0x8a(%r12),%edx
ff
mov    %r14,%rdi
mov    %edx,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
cmp    $0x17,%r13d
jb     1160 <dispall+0x30>
lea    -0x73(%r12),%edx
mov    %r14,%rdi
mov    %edx,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    -0x17(%r13),%eax
cmp    $0x17,%eax
jb     1160 <dispall+0x30>
lea    -0x5c(%r12),%edx
mov    %r14,%rdi
mov    %edx,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    -0x2e(%r13),%eax
cmp    $0x17,%eax
jb     1160 <dispall+0x30>
lea    -0x45(%r12),%edx
mov    %r14,%rdi
mov    %edx,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    -0x45(%r13),%eax
cmp    $0x17,%eax
jb     1160 <dispall+0x30>
lea    -0x2e(%r12),%edx
mov    %r14,%rdi
mov    %edx,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    -0x5c(%r13),%eax
cmp    $0x17,%eax
jb     1160 <dispall+0x30>
lea    -0x17(%r12),%edx
mov    %r14,%rdi
mov    %edx,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    -0x73(%r13),%eax
cmp    $0x17,%eax
jb     1160 <dispall+0x30>
mov    %r14,%rdi
mov    %r12d,%esi
mov    %r12d,%edx
xor    %eax,%eax
call   1040 <printf@plt>
jmp    1160 <dispall+0x30>
lea    0xcd3(%rip),%rdi
lea    0x7(%rsp),%rsi
call   1050 <scanf@plt>
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
@.str.1 = [7 x i8] c"%3d:%c\00"
@.str.2 = [3 x i8] c" \00"
@.str.3 = [3 x i8] c"%c\00"
define void @dispall() {
%1 = alloca i8
br label %2
2: ; preds = %0, %71
%3 = phi i32 [ 245, %0 ], [ %73, %71 ]
%4 = phi i32 [ 33, %0 ], [ %72, %71 ]
%5 = icmp ugt i32 %4, 33
br i1 %5, label %6, label %8
6: ; preds = %2
%7 = tail call i32 @putchar(i32 10)
br label %8
8: ; preds = %6, %2
%9 = icmp ult i32 %3, 23
br i1 %9, label %71, label %10
10: ; preds = %8
%11 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 %4, i32 %4)
%12 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%13 = add i32 %3, -23
%14 = icmp ult i32 %13, 23
br i1 %14, label %71, label %15
15: ; preds = %10
%16 = add nuw nsw i32 %4, 23
%17 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 %16, i32 %16)
%18 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%19 = add i32 %3, -46
%20 = icmp ult i32 %19, 23
br i1 %20, label %71, label %21
21: ; preds = %15
%22 = add nuw nsw i32 %4, 46
%23 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 %22, i32 %22)
%24 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%25 = add i32 %3, -69
%26 = icmp ult i32 %25, 23
br i1 %26, label %71, label %27
27: ; preds = %21
%28 = add nuw nsw i32 %4, 69
%29 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 %28, i32 %28)
%30 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%31 = add i32 %3, -92
%32 = icmp ult i32 %31, 23
br i1 %32, label %71, label %33
33: ; preds = %27
%34 = add nuw nsw i32 %4, 92
%35 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 %34, i32 %34)
%36 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%37 = add i32 %3, -115
%38 = icmp ult i32 %37, 23
br i1 %38, label %71, label %39
39: ; preds = %33
%40 = add nuw nsw i32 %4, 115
%41 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 %40, i32 %40)
%42 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%43 = add i32 %3, -138
%44 = icmp ult i32 %43, 23
br i1 %44, label %71, label %45
45: ; preds = %39
%46 = add nuw nsw i32 %4, 138
%47 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 %46, i32 %46)
%48 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%49 = add i32 %3, -161
%50 = icmp ult i32 %49, 23
br i1 %50, label %71, label %51
51: ; preds = %45
%52 = add nuw nsw i32 %4, 161
%53 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 %52, i32 %52)
%54 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%55 = add i32 %3, -184
%56 = icmp ult i32 %55, 23
br i1 %56, label %71, label %57
57: ; preds = %51
%58 = add nuw nsw i32 %4, 184
%59 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 %58, i32 %58)
%60 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%61 = add i32 %3, -207
%62 = icmp ult i32 %61, 23
br i1 %62, label %71, label %63
63: ; preds = %57
%64 = add nuw nsw i32 %4, 207
%65 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 %64, i32 %64)
%66 = add i32 %3, -230
%67 = icmp ult i32 %66, 23
br i1 %67, label %71, label %68
68: ; preds = %63
%69 = add nuw nsw i32 %4, 230
%70 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 %69, i32 %69)
br label %71
71: ; preds = %68, %63, %57, %51, %45, %39, %33, %27, %21, %15, %10, %8
%72 = add nuw nsw i32 %4, 1
%73 = add nsw i32 %3, -1
%74 = icmp eq i32 %72, 56
br i1 %74, label %75, label %2
75: ; preds = %71
%76 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i8* %1)
ret void
}