#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 abs(int);
int /*<<< orphan*/ printf(char *, ...);
int strtol(char *, int /*<<< orphan*/ *, int);
int main(int argc, char **argv) {
  int i = 0;
  int size = 20;
  const char *padding_offsets[8] = {"  ", " ",   "",     " ",
                                    "  ", "   ", "    ", "   "};
  if (argc > 1) {
    size = strtol(argv[1], NULL, 10);
  }
  if (size >= 0) {
    printf("    ╚⊙ ⊙╝\n");
    for (i = 0; i < size; i++) {
      printf("%s╚═(███)═╝\n", padding_offsets[i % 8]);
    }
  } else {
    for (i = size; i <= 0; i++) {
      printf("%s╔═(███)═╗\n", padding_offsets[abs(i) % 8]);
    }
    printf("    ╔⊙ ⊙╗\n");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
movl   $0x14,-0x18(%rbp)
lea    -0x60(%rbp),%rdi
lea    0x2c71(%rip),%rsi
mov    $0x40,%edx
call   1060 <memcpy@plt>
cmpl   $0x1,-0x8(%rbp)
jle    119c <main+0x5c>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
xor    %eax,%eax
mov    %eax,%esi
mov    $0xa,%edx
call   1050 <strtol@plt>
mov    %eax,-0x18(%rbp)
cmpl   $0x0,-0x18(%rbp)
jl     11fb <main+0xbb>
lea    0xe58(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    11f6 <main+0xb6>
mov    -0x14(%rbp),%eax
mov    $0x8,%ecx
cltd
idiv   %ecx
movslq %edx,%rax
mov    -0x60(%rbp,%rax,8),%rsi
lea    0xe37(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    11bb <main+0x7b>
jmp    124d <main+0x10d>
mov    -0x18(%rbp),%eax
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
jg     123f <main+0xff>
mov    -0x14(%rbp),%edi
call   1030 <abs@plt>
mov    $0x8,%ecx
cltd
idiv   %ecx
movslq %edx,%rax
mov    -0x60(%rbp,%rax,8),%rsi
lea    0xe09(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1201 <main+0xc1>
lea    0xe08(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
cmp    $0x1,%edi
jle    1167 <main+0x37>
mov    0x8(%rsi),%rdi
xor    %esi,%esi
mov    $0xa,%edx
call   1050 <strtol@plt>
mov    %eax,%ebx
test   %eax,%eax
js     11ac <main+0x7c>
lea    0xef4(%rip),%rdi
call   1030 <puts@plt>
test   %ebx,%ebx
jne    1178 <main+0x48>
jmp    11e4 <main+0xb4>
lea    0xedf(%rip),%rdi
call   1030 <puts@plt>
mov    $0x14,%ebx
lea    0x2c61(%rip),%r15
lea    0xe7f(%rip),%r14
xor    %ebp,%ebp
nopl   0x0(%rax,%rax,1)
mov    %ebp,%eax
and    $0x7,%eax
mov    (%r15,%rax,8),%rsi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
add    $0x1,%ebp
cmp    %ebp,%ebx
jne    1190 <main+0x60>
jmp    11e4 <main+0xb4>
neg    %ebx
lea    0x2c2b(%rip),%r15
lea    0xe64(%rip),%r14
nopl   0x0(%rax)
mov    %ebx,%eax
and    $0x7,%eax
mov    (%r15,%rax,8),%rsi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
add    $0xffffffff,%ebx
jb     11c0 <main+0x90>
lea    0xe5c(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [3 x i8] c" \00"
@.str.1 = [2 x i8] c" \00"
@.str.2 = [1 x i8] zeroinitializer
@.str.3 = [4 x i8] c" \00"
@.str.4 = [5 x i8] c" \00"
@__const.main.padding_offsets = [8 x i8*] [i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i32 0, i32 0)]
@.str.5 = [19 x i8] c" \E2\95\9A\E2\8A\99 \E2\8A\99\E2\95\9D\0A\00"
@.str.6 = [27 x i8] c"%s\E2\95\9A\E2\95\90(\E2\96\88\E2\96\88\E2\96\88)\E2\95\90\E2\95\9D\0A\00"
@.str.7 = [27 x i8] c"%s\E2\95\94\E2\95\90(\E2\96\88\E2\96\88\E2\96\88)\E2\95\90\E2\95\97\0A\00"
@.str.8 = [19 x i8] c" \E2\95\94\E2\8A\99 \E2\8A\99\E2\95\97\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca [8 x i8*]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %6
store i32 20, i32* %7
%9 = bitcast [8 x i8*]* %8 to i8*
%10 = load i32, i32* %4
%11 = icmp sgt i32 %10, 1
br i1 %11, label %12, label %17
12: ; preds = %2
%13 = load i8**, i8*** %5
%14 = getelementptr inbounds i8*, i8** %13, i64 1
%15 = load i8*, i8** %14
%16 = call i32 @strtol(i8* %15, i32* null, i32 10)
store i32 %16, i32* %7
br label %17
17: ; preds = %12, %2
%18 = load i32, i32* %7
%19 = icmp sge i32 %18, 0
br i1 %19, label %20, label %37
20: ; preds = %17
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.5, i64 0, i64 0))
store i32 0, i32* %6
br label %22
22: ; preds = %33, %20
%23 = load i32, i32* %6
%24 = load i32, i32* %7
%25 = icmp slt i32 %23, %24
br i1 %25, label %26, label %36
26: ; preds = %22
%27 = load i32, i32* %6
%28 = srem i32 %27, 8
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds [8 x i8*], [8 x i8*]* %8, i64 0, i64 %29
%31 = load i8*, i8** %30
%32 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.6, i64 0, i64 0), i8* %31)
br label %33
33: ; preds = %26
%34 = load i32, i32* %6
%35 = add nsw i32 %34, 1
store i32 %35, i32* %6
br label %22
36: ; preds = %22
br label %55
37: ; preds = %17
%38 = load i32, i32* %7
store i32 %38, i32* %6
br label %39
39: ; preds = %50, %37
%40 = load i32, i32* %6
%41 = icmp sle i32 %40, 0
br i1 %41, label %42, label %53
42: ; preds = %39
%43 = load i32, i32* %6
%44 = call i32 @abs(i32 %43)
%45 = srem i32 %44, 8
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds [8 x i8*], [8 x i8*]* %8, i64 0, i64 %46
%48 = load i8*, i8** %47
%49 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.7, i64 0, i64 0), i8* %48)
br label %50
50: ; preds = %42
%51 = load i32, i32* %6
%52 = add nsw i32 %51, 1
store i32 %52, i32* %6
br label %39
53: ; preds = %39
%54 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.8, i64 0, i64 0))
br label %55
55: ; preds = %53, %36
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c" \00"
@.str.1 = [2 x i8] c" \00"
@.str.2 = [1 x i8] zeroinitializer
@.str.3 = [4 x i8] c" \00"
@.str.4 = [5 x i8] c" \00"
@__const.main.padding_offsets = [8 x i8*] [i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i32 0, i32 0)]
@.str.6 = [27 x i8] c"%s\E2\95\9A\E2\95\90(\E2\96\88\E2\96\88\E2\96\88)\E2\95\90\E2\95\9D\0A\00"
@.str.7 = [27 x i8] c"%s\E2\95\94\E2\95\90(\E2\96\88\E2\96\88\E2\96\88)\E2\95\90\E2\95\97\0A\00"
@str = [18 x i8] c" \E2\95\94\E2\8A\99 \E2\8A\99\E2\95\97\00"
@str.9 = [18 x i8] c" \E2\95\9A\E2\8A\99 \E2\8A\99\E2\95\9D\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = icmp sgt i32 %0, 1
br i1 %3, label %6, label %4
4: ; preds = %2
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str.9, i64 0, i64 0))
br label %14
6: ; preds = %2
%7 = getelementptr inbounds i8*, i8** %1, i64 1
%8 = load i8*, i8** %7
%9 = tail call i32 @strtol(i8* nocapture %8, i32* null, i32 10)
%10 = icmp sgt i32 %9, -1
br i1 %10, label %11, label %25
11: ; preds = %6
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str.9, i64 0, i64 0))
%13 = icmp eq i32 %9, 0
br i1 %13, label %37, label %14
14: ; preds = %4, %11
%15 = phi i32 [ 20, %4 ], [ %9, %11 ]
br label %16
16: ; preds = %14, %16
%17 = phi i32 [ %23, %16 ], [ 0, %14 ]
%18 = and i32 %17, 7
%19 = zext i32 %18 to i64
%20 = getelementptr inbounds [8 x i8*], [8 x i8*]* @__const.main.padding_offsets, i64 0, i64 %19
%21 = load i8*, i8** %20
%22 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.6, i64 0, i64 0), i8* %21)
%23 = add nuw nsw i32 %17, 1
%24 = icmp eq i32 %23, %15
br i1 %24, label %37, label %16
25: ; preds = %6, %25
%26 = phi i32 [ %33, %25 ], [ %9, %6 ]
%27 = sub i32 0, %26
%28 = and i32 %27, 7
%29 = zext i32 %28 to i64
%30 = getelementptr inbounds [8 x i8*], [8 x i8*]* @__const.main.padding_offsets, i64 0, i64 %29
%31 = load i8*, i8** %30
%32 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.7, i64 0, i64 0), i8* %31)
%33 = add i32 %26, 1
%34 = icmp eq i32 %26, 0
br i1 %34, label %35, label %25
35: ; preds = %25
%36 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str, i64 0, i64 0))
br label %37
37: ; preds = %16, %11, %35
ret i32 0
}