#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 */
typedef int /*<<< orphan*/ A;

/* Variables and functions */
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ putc(char const, int /*<<< orphan*/);
int /*<<< orphan*/ stdout;
int main() {
  const char A[] =
      "*              THE ASCII TABLE BY JOSEF ZIEGLER              *";
  int i = -1, j = 0;
  while (j < 3) {
    while (++i < sizeof(A) - 1) {
      if (j % 2 == 0)
        putc('*', stdout);
      else
        putc(*(A + i), stdout);
    }
    putc('\n', stdout);
    j++;
    i = -1;
  }
  for (i = 33; i < 127; i++) {
    printf("%.3d  ", i);
    putc(i, stdout);
    printf("  ");
    if (i % 8 == 0)
      putc(10, stdout);
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x50(%rbp),%rdi
lea    0xeb6(%rip),%rsi
mov    $0x3f,%edx
call   1050 <memcpy@plt>
movl   $0xffffffff,-0x54(%rbp)
movl   $0x0,-0x58(%rbp)
cmpl   $0x3,-0x58(%rbp)
jge    11f8 <main+0xc8>
jmp    1171 <main+0x41>
mov    -0x54(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x54(%rbp)
cltq
cmp    $0x3e,%rax
jae    11d0 <main+0xa0>
mov    -0x58(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    11b2 <main+0x82>
mov    0x2e3f(%rip),%rax
mov    (%rax),%esi
mov    $0x2a,%edi
call   1040 <putc@plt>
jmp    11cb <main+0x9b>
movslq -0x54(%rbp),%rax
mov    -0x50(%rbp,%rax,1),%al
mov    0x2e1f(%rip),%rcx
mov    (%rcx),%esi
movsbl %al,%edi
call   1040 <putc@plt>
jmp    1171 <main+0x41>
mov    0x2e09(%rip),%rax
mov    (%rax),%esi
mov    $0xa,%edi
call   1040 <putc@plt>
mov    -0x58(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x58(%rbp)
movl   $0xffffffff,-0x54(%rbp)
jmp    1162 <main+0x32>
movl   $0x21,-0x54(%rbp)
cmpl   $0x7f,-0x54(%rbp)
jge    1276 <main+0x146>
mov    -0x54(%rbp),%esi
lea    0xe2c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x54(%rbp),%eax
mov    0x2dbc(%rip),%rcx
mov    (%rcx),%esi
movsbl %al,%edi
call   1040 <putc@plt>
lea    0xe0e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x54(%rbp),%eax
mov    $0x8,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    1263 <main+0x133>
mov    0x2d89(%rip),%rax
mov    (%rax),%esi
mov    $0xa,%edi
call   1040 <putc@plt>
jmp    1268 <main+0x138>
mov    -0x54(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x54(%rbp)
jmp    11ff <main+0xcf>
mov    -0x4(%rbp),%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
mov    $0x3e,%ebx
mov    0x2eac(%rip),%r12
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    (%r12),%esi
mov    $0x2a,%edi
call   1040 <putc@plt>
add    $0xffffffffffffffff,%rbx
jne    1140 <main+0x20>
mov    (%r12),%esi
mov    $0xa,%edi
call   1040 <putc@plt>
xor    %ebx,%ebx
lea    0xe95(%rip),%rbp
nopl   0x0(%rax,%rax,1)
movsbl (%rbx,%rbp,1),%edi
mov    (%r12),%esi
call   1040 <putc@plt>
add    $0x1,%rbx
cmp    $0x3e,%rbx
jne    1170 <main+0x50>
mov    (%r12),%esi
mov    $0xa,%edi
call   1040 <putc@plt>
mov    $0x3e,%ebx
nopw   0x0(%rax,%rax,1)
mov    (%r12),%esi
mov    $0x2a,%edi
call   1040 <putc@plt>
add    $0xffffffffffffffff,%rbx
jne    11a0 <main+0x80>
mov    (%r12),%esi
mov    $0xa,%edi
call   1040 <putc@plt>
mov    $0x21,%ebx
lea    0xe71(%rip),%r14
lea    0xe6e(%rip),%r15
jmp    11e8 <main+0xc8>
nopw   0x0(%rax,%rax,1)
add    $0x1,%ebx
cmp    $0x7f,%ebx
je     1222 <main+0x102>
mov    %r14,%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1030 <printf@plt>
mov    (%r12),%esi
movsbl %bl,%ebp
mov    %ebp,%edi
call   1040 <putc@plt>
mov    %r15,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
test   $0x7,%bpl
jne    11e0 <main+0xc0>
mov    (%r12),%esi
mov    $0xa,%edi
call   1040 <putc@plt>
jmp    11e0 <main+0xc0>
xor    %eax,%eax
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@__const.main.A = [63 x i8] c"* THE ASCII TABLE BY JOSEF ZIEGLER *\00"
@stdout = global i32 0
@.str = [7 x i8] c"%.3d \00"
@.str.1 = [3 x i8] c" \00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [63 x i8]
%3 = alloca i32
%4 = alloca i32
store i32 0, i32* %1
%5 = bitcast [63 x i8]* %2 to i8*
store i32 -1, i32* %3
store i32 0, i32* %4
br label %6
6: ; preds = %31, %0
%7 = load i32, i32* %4
%8 = icmp slt i32 %7, 3
br i1 %8, label %9, label %36
9: ; preds = %6
br label %10
10: ; preds = %30, %9
%11 = load i32, i32* %3
%12 = add nsw i32 %11, 1
store i32 %12, i32* %3
%13 = sext i32 %12 to i64
%14 = icmp ult i64 %13, 62
br i1 %14, label %15, label %31
15: ; preds = %10
%16 = load i32, i32* %4
%17 = srem i32 %16, 2
%18 = icmp eq i32 %17, 0
br i1 %18, label %19, label %22
19: ; preds = %15
%20 = load i32, i32* @stdout
%21 = call i32 @putc(i8 signext 42, i32 %20)
br label %30
22: ; preds = %15
%23 = getelementptr inbounds [63 x i8], [63 x i8]* %2, i64 0, i64 0
%24 = load i32, i32* %3
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds i8, i8* %23, i64 %25
%27 = load i8, i8* %26
%28 = load i32, i32* @stdout
%29 = call i32 @putc(i8 signext %27, i32 %28)
br label %30
30: ; preds = %22, %19
br label %10
31: ; preds = %10
%32 = load i32, i32* @stdout
%33 = call i32 @putc(i8 signext 10, i32 %32)
%34 = load i32, i32* %4
%35 = add nsw i32 %34, 1
store i32 %35, i32* %4
store i32 -1, i32* %3
br label %6
36: ; preds = %6
store i32 33, i32* %3
br label %37
37: ; preds = %55, %36
%38 = load i32, i32* %3
%39 = icmp slt i32 %38, 127
br i1 %39, label %40, label %58
40: ; preds = %37
%41 = load i32, i32* %3
%42 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 %41)
%43 = load i32, i32* %3
%44 = trunc i32 %43 to i8
%45 = load i32, i32* @stdout
%46 = call i32 @putc(i8 signext %44, i32 %45)
%47 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%48 = load i32, i32* %3
%49 = srem i32 %48, 8
%50 = icmp eq i32 %49, 0
br i1 %50, label %51, label %54
51: ; preds = %40
%52 = load i32, i32* @stdout
%53 = call i32 @putc(i8 signext 10, i32 %52)
br label %54
54: ; preds = %51, %40
br label %55
55: ; preds = %54
%56 = load i32, i32* %3
%57 = add nsw i32 %56, 1
store i32 %57, i32* %3
br label %37
58: ; preds = %37
%59 = load i32, i32* %1
ret i32 %59
}

LLVM IR (-O2):
@__const.main.A = [63 x i8] c"* THE ASCII TABLE BY JOSEF ZIEGLER *\00"
@stdout = global i32 0
@.str = [7 x i8] c"%.3d \00"
@.str.1 = [3 x i8] c" \00"
define i32 @main() {
br label %1
1: ; preds = %0, %1
%2 = phi i64 [ 0, %0 ], [ %5, %1 ]
%3 = load i32, i32* @stdout
%4 = tail call i32 @putc(i8 signext 42, i32 %3)
%5 = add nuw nsw i64 %2, 1
%6 = icmp eq i64 %5, 62
br i1 %6, label %7, label %1
7: ; preds = %1
%8 = load i32, i32* @stdout
%9 = tail call i32 @putc(i8 signext 10, i32 %8)
br label %10
10: ; preds = %10, %7
%11 = phi i64 [ 0, %7 ], [ %16, %10 ]
%12 = getelementptr inbounds [63 x i8], [63 x i8]* @__const.main.A, i64 0, i64 %11
%13 = load i8, i8* %12
%14 = load i32, i32* @stdout
%15 = tail call i32 @putc(i8 signext %13, i32 %14)
%16 = add nuw nsw i64 %11, 1
%17 = icmp eq i64 %16, 62
br i1 %17, label %18, label %10
18: ; preds = %10
%19 = load i32, i32* @stdout
%20 = tail call i32 @putc(i8 signext 10, i32 %19)
br label %21
21: ; preds = %21, %18
%22 = phi i64 [ 0, %18 ], [ %25, %21 ]
%23 = load i32, i32* @stdout
%24 = tail call i32 @putc(i8 signext 42, i32 %23)
%25 = add nuw nsw i64 %22, 1
%26 = icmp eq i64 %25, 62
br i1 %26, label %27, label %21
27: ; preds = %21
%28 = load i32, i32* @stdout
%29 = tail call i32 @putc(i8 signext 10, i32 %28)
br label %30
30: ; preds = %27, %42
%31 = phi i32 [ %43, %42 ], [ 33, %27 ]
%32 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 %31)
%33 = trunc i32 %31 to i8
%34 = load i32, i32* @stdout
%35 = tail call i32 @putc(i8 signext %33, i32 %34)
%36 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%37 = and i32 %31, 7
%38 = icmp eq i32 %37, 0
br i1 %38, label %39, label %42
39: ; preds = %30
%40 = load i32, i32* @stdout
%41 = tail call i32 @putc(i8 signext 10, i32 %40)
br label %42
42: ; preds = %30, %39
%43 = add nuw nsw i32 %31, 1
%44 = icmp eq i32 %43, 127
br i1 %44, label %45, label %30
45: ; preds = %42
ret i32 0
}