#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, int, int);
int /*<<< orphan*/ puts(char *);
main(int u, char **a) {
  for (char *c, y; y = u; u *= 8, puts(""))
    for (c = a[1]; y = "î$Ö¶<ºú&þ¾"[*c - 48], *c++;)
      printf("%c%c%c ", y & u / 2 ? 33 : 32, y & u ? 95 : 32,
             y & u / 4 ? 33 : 32);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%eax
mov    %al,-0x19(%rbp)
cmp    $0x0,%al
je     1211 <main+0xf1>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
movsbl (%rax),%eax
sub    $0x30,%eax
movslq %eax,%rcx
lea    0xe9c(%rip),%rax
mov    (%rax,%rcx,1),%al
mov    %al,-0x19(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x18(%rbp)
cmpb   $0x0,(%rax)
je     11f2 <main+0xd2>
movsbl -0x19(%rbp),%ecx
mov    -0x8(%rbp),%eax
mov    $0x2,%esi
cltd
idiv   %esi
and    %eax,%ecx
mov    $0x20,%esi
mov    $0x21,%eax
cmp    $0x0,%ecx
cmovne %eax,%esi
movsbl -0x19(%rbp),%edx
and    -0x8(%rbp),%edx
mov    $0x20,%eax
mov    $0x5f,%ecx
cmp    $0x0,%edx
cmovne %ecx,%eax
mov    %eax,-0x20(%rbp)
movsbl -0x19(%rbp),%edi
mov    -0x8(%rbp),%eax
mov    $0x4,%ecx
cltd
idiv   %ecx
mov    -0x20(%rbp),%edx
and    %eax,%edi
mov    $0x20,%ecx
mov    $0x21,%eax
cmp    $0x0,%edi
cmovne %eax,%ecx
lea    0xe2a(%rip),%rdi
call   1040 <printf@plt>
jmp    1150 <main+0x30>
jmp    11f7 <main+0xd7>
mov    -0x8(%rbp),%eax
shl    $0x3,%eax
mov    %eax,-0x8(%rbp)
lea    0xe12(%rip),%rdi
call   1030 <puts@plt>
jmp    1136 <main+0x16>
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %rsi,(%rsp)
mov    %edi,%ebx
jmp    114d <main+0x2d>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
shl    $0x3,%ebx
mov    $0xa,%edi
call   1030 <putchar@plt>
test   %bl,%bl
je     11f0 <main+0xd0>
mov    (%rsp),%rax
mov    0x8(%rax),%rbp
mov    0x0(%rbp),%al
test   %al,%al
lea    0xe97(%rip),%r13
mov    $0x20,%edi
lea    0xe9d(%rip),%r15
je     1140 <main+0x20>
mov    %ebx,%r14d
shr    $0x1f,%r14d
add    %ebx,%r14d
sar    %r14d
lea    0x3(%rbx),%r12d
test   %ebx,%ebx
cmovns %ebx,%r12d
sar    $0x2,%r12d
add    $0x1,%rbp
cs nopw 0x0(%rax,%rax,1)
movsbq %al,%rax
movsbl -0x30(%rax,%r13,1),%eax
mov    %r14d,%ecx
and    %eax,%ecx
cmp    $0x1,%ecx
mov    $0x21,%esi
sbb    $0x0,%esi
test   %eax,%ebx
mov    $0x5f,%edx
cmove  %edi,%edx
and    %r12d,%eax
cmp    $0x1,%eax
mov    $0x21,%ecx
sbb    $0x0,%ecx
mov    %r15,%rdi
call   1040 <printf@plt>
mov    $0x20,%edi
movzbl 0x0(%rbp),%eax
add    $0x1,%rbp
test   %al,%al
jne    11a0 <main+0x80>
jmp    1140 <main+0x20>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [18 x i8] c"\C3\AE$\C3\96\C2\B6<\C2\BA\C3\BA&\C3\BE\C2\BE\00"
@.str.1 = [8 x i8] c"%c%c%c \00"
@.str.2 = [1 x i8] zeroinitializer
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i8*
%7 = alloca i8
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
br label %8
8: ; preds = %54, %2
%9 = load i32, i32* %4
%10 = trunc i32 %9 to i8
store i8 %10, i8* %7
%11 = icmp ne i8 %10, 0
br i1 %11, label %12, label %58
12: ; preds = %8
%13 = load i8**, i8*** %5
%14 = getelementptr inbounds i8*, i8** %13, i64 1
%15 = load i8*, i8** %14
store i8* %15, i8** %6
br label %16
16: ; preds = %28, %12
%17 = load i8*, i8** %6
%18 = load i8, i8* %17
%19 = sext i8 %18 to i32
%20 = sub nsw i32 %19, 48
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds [18 x i8], [18 x i8]* @.str, i64 0, i64 %21
%23 = load i8, i8* %22
store i8 %23, i8* %7
%24 = load i8*, i8** %6
%25 = getelementptr inbounds i8, i8* %24, i32 1
store i8* %25, i8** %6
%26 = load i8, i8* %24
%27 = icmp ne i8 %26, 0
br i1 %27, label %28, label %53
28: ; preds = %16
%29 = load i8, i8* %7
%30 = sext i8 %29 to i32
%31 = load i32, i32* %4
%32 = sdiv i32 %31, 2
%33 = and i32 %30, %32
%34 = icmp ne i32 %33, 0
%35 = zext i1 %34 to i64
%36 = select i1 %34, i32 33, i32 32
%37 = load i8, i8* %7
%38 = sext i8 %37 to i32
%39 = load i32, i32* %4
%40 = and i32 %38, %39
%41 = icmp ne i32 %40, 0
%42 = zext i1 %41 to i64
%43 = select i1 %41, i32 95, i32 32
%44 = load i8, i8* %7
%45 = sext i8 %44 to i32
%46 = load i32, i32* %4
%47 = sdiv i32 %46, 4
%48 = and i32 %45, %47
%49 = icmp ne i32 %48, 0
%50 = zext i1 %49 to i64
%51 = select i1 %49, i32 33, i32 32
%52 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i32 %36, i32 %43, i32 %51)
br label %16
53: ; preds = %16
br label %54
54: ; preds = %53
%55 = load i32, i32* %4
%56 = mul nsw i32 %55, 8
store i32 %56, i32* %4
%57 = call i32 @puts(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0))
br label %8
58: ; preds = %8
%59 = load i32, i32* %3
ret i32 %59
}

LLVM IR (-O2):
@.str = [18 x i8] c"\C3\AE$\C3\96\C2\B6<\C2\BA\C3\BA&\C3\BE\C2\BE\00"
@.str.1 = [8 x i8] c"%c%c%c \00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = trunc i32 %0 to i8
%4 = icmp eq i8 %3, 0
br i1 %4, label %7, label %5
5: ; preds = %2
%6 = getelementptr inbounds i8*, i8** %1, i64 1
br label %8
7: ; preds = %37, %2
ret i32 0
8: ; preds = %5, %37
%9 = phi i32 [ %0, %5 ], [ %38, %37 ]
%10 = load i8*, i8** %6
%11 = load i8, i8* %10
%12 = icmp eq i8 %11, 0
br i1 %12, label %37, label %13
13: ; preds = %8
%14 = sdiv i32 %9, 2
%15 = sdiv i32 %9, 4
br label %16
16: ; preds = %13, %16
%17 = phi i8 [ %11, %13 ], [ %35, %16 ]
%18 = phi i8* [ %10, %13 ], [ %19, %16 ]
%19 = getelementptr inbounds i8, i8* %18, i64 1
%20 = sext i8 %17 to i64
%21 = add nsw i64 %20, -48
%22 = getelementptr inbounds [18 x i8], [18 x i8]* @.str, i64 0, i64 %21
%23 = load i8, i8* %22
%24 = sext i8 %23 to i32
%25 = and i32 %14, %24
%26 = icmp eq i32 %25, 0
%27 = select i1 %26, i32 32, i32 33
%28 = and i32 %9, %24
%29 = icmp eq i32 %28, 0
%30 = select i1 %29, i32 32, i32 95
%31 = and i32 %15, %24
%32 = icmp eq i32 %31, 0
%33 = select i1 %32, i32 32, i32 33
%34 = tail call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i32 %27, i32 %30, i32 %33)
%35 = load i8, i8* %19
%36 = icmp eq i8 %35, 0
br i1 %36, label %37, label %16
37: ; preds = %16, %8
%38 = shl nsw i32 %9, 3
%39 = tail call i32 @putchar(i32 10)
%40 = trunc i32 %38 to i8
%41 = icmp eq i8 %40, 0
br i1 %41, label %7, label %8
}