#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 */
size_t abs(int /*<<< orphan*/);
int /*<<< orphan*/ atoi(char *);
int /*<<< orphan*/ printf(char *, ...);
int main(int argc, char **argv) {
  unsigned int i;
  size_t size = 20;
  const char *padding_offsets[8] = {"  ", " ",   "",     " ",
                                    "  ", "   ", "    ", "   "};
  if (argc > 1) {
    size = abs(atoi(argv[1]));
  }
  printf("    ╚⊙ ⊙╝\n");
  for (i = 0; i < size; i++) {
    printf("%s╚═(███)═╝\n", padding_offsets[i % 8]);
  }
  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)
movq   $0x14,-0x20(%rbp)
lea    -0x60(%rbp),%rdi
lea    0x2c77(%rip),%rsi
mov    $0x40,%edx
call   1050 <memcpy@plt>
cmpl   $0x1,-0x8(%rbp)
jle    1195 <main+0x55>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   1060 <atoi@plt>
mov    %eax,%edi
call   1030 <abs@plt>
mov    %rax,-0x20(%rbp)
lea    0xe69(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x20(%rbp),%rax
jae    11e0 <main+0xa0>
mov    -0x14(%rbp),%eax
and    $0x7,%eax
mov    %eax,%eax
mov    -0x60(%rbp,%rax,8),%rsi
lea    0xe4d(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    11aa <main+0x6a>
xor    %eax,%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r12
push   %rbx
push   %rax
cmp    $0x1,%edi
jle    1173 <main+0x33>
mov    0x8(%rsi),%rdi
call   1060 <atoi@plt>
mov    %eax,%edi
call   1040 <abs@plt>
mov    %rax,%r15
lea    0xeb9(%rip),%rdi
call   1030 <puts@plt>
test   %r15,%r15
jne    1185 <main+0x45>
jmp    11c1 <main+0x81>
lea    0xea6(%rip),%rdi
call   1030 <puts@plt>
mov    $0x14,%r15d
mov    $0x1,%ebx
lea    0xea3(%rip),%r12
lea    0xe6d(%rip),%r14
nopl   0x0(%rax,%rax,1)
lea    -0x1(%rbx),%eax
and    $0x7,%eax
movslq (%r12,%rax,4),%rsi
add    %r12,%rsi
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %ebx,%eax
add    $0x1,%ebx
cmp    %rax,%r15
ja     11a0 <main+0x60>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
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"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i64
%8 = alloca [8 x i8*]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i64 20, i64* %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 %18
12: ; preds = %2
%13 = load i8**, i8*** %5
%14 = getelementptr inbounds i8*, i8** %13, i64 1
%15 = load i8*, i8** %14
%16 = call i32 @atoi(i8* %15)
%17 = call i64 @abs(i32 %16)
store i64 %17, i64* %7
br label %18
18: ; preds = %12, %2
%19 = 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 %20
20: ; preds = %32, %18
%21 = load i32, i32* %6
%22 = zext i32 %21 to i64
%23 = load i64, i64* %7
%24 = icmp ult i64 %22, %23
br i1 %24, label %25, label %35
25: ; preds = %20
%26 = load i32, i32* %6
%27 = urem i32 %26, 8
%28 = zext i32 %27 to i64
%29 = getelementptr inbounds [8 x i8*], [8 x i8*]* %8, i64 0, i64 %28
%30 = load i8*, i8** %29
%31 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.6, i64 0, i64 0), i8* %30)
br label %32
32: ; preds = %25
%33 = load i32, i32* %6
%34 = add i32 %33, 1
store i32 %34, i32* %6
br label %20
35: ; preds = %20
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"
@reltable.main = [8 x i32] [i32 trunc (i64 sub (i64 ptrtoint ([3 x i8]* @.str to i64), i64 ptrtoint ([8 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.1 to i64), i64 ptrtoint ([8 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([1 x i8]* @.str.2 to i64), i64 ptrtoint ([8 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.1 to i64), i64 ptrtoint ([8 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([3 x i8]* @.str to i64), i64 ptrtoint ([8 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([4 x i8]* @.str.3 to i64), i64 ptrtoint ([8 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([5 x i8]* @.str.4 to i64), i64 ptrtoint ([8 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([4 x i8]* @.str.3 to i64), i64 ptrtoint ([8 x i32]* @reltable.main to i64)) to i32)]
@.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 = [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, i64 0, i64 0))
br label %13
6: ; preds = %2
%7 = getelementptr inbounds i8*, i8** %1, i64 1
%8 = load i8*, i8** %7
%9 = tail call i32 @atoi(i8* %8)
%10 = tail call i64 @abs(i32 %9)
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str, i64 0, i64 0))
%12 = icmp eq i64 %10, 0
br i1 %12, label %25, label %13
13: ; preds = %4, %6
%14 = phi i64 [ 20, %4 ], [ %10, %6 ]
br label %15
15: ; preds = %13, %15
%16 = phi i32 [ %22, %15 ], [ 0, %13 ]
%17 = and i32 %16, 7
%18 = zext i32 %17 to i64
%19 = shl i64 %18, 2
%20 = call i8* @llvm.load.relative.i64(i8* bitcast ([8 x i32]* @reltable.main to i8*), i64 %19)
%21 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.6, i64 0, i64 0), i8* %20)
%22 = add i32 %16, 1
%23 = zext i32 %22 to i64
%24 = icmp ugt i64 %14, %23
br i1 %24, label %15, label %25
25: ; preds = %15, %6
ret i32 0
}