#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*/ nb1(int);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ rpt(char *, int);
int /*<<< orphan*/ rptc(char, int);
void NewBD() {
  printf("\033[H\033[2J\033[7m");
  rptc('#', 77);
  printf("\n##");
  rptc(' ', 73);
  printf("##\n##");
  printf("       ME        6       5       4       3");
  printf("       2       1               ##\n##     \033[27m      \033[7m  ");
  rpt("  \033[27m     \033[7m ", 6);
  printf("            ##\n");
  printf("##    \033[27m        \033[7m  \033[27m       \033[7m \033[27m       "
         "\033[7m \033[27m       \033[7m \033[27m       \033[7m \033[27m       "
         "\033[7m \033[27m       \033[7m   \033[27m      \033[7m   ##\n");
  nb1(2);
  printf("##    \033[27m        \033[7m   \033[27m     \033[7m   \033[27m     "
         "\033[7m   \033[27m     \033[7m   \033[27m     \033[7m   \033[27m     "
         "\033[7m   \033[27m     \033[7m   \033[27m        \033[7m  ##\n");
  printf("##    \033[27m        \033[7m                                        "
         "           \033[27m        \033[7m  ##\n");
  printf("##    \033[27m        \033[7m   \033[27m     \033[7m   \033[27m     "
         "\033[7m   \033[27m     \033[7m   \033[27m     \033[7m   \033[27m     "
         "\033[7m   \033[27m     \033[7m   \033[27m        \033[7m  ##\n");
  nb1(2);
  printf("##     \033[27m      \033[7m   \033[27m       \033[7m \033[27m       "
         "\033[7m \033[27m       \033[7m \033[27m       \033[7m \033[27m       "
         "\033[7m \033[27m       \033[7m  \033[27m        \033[7m  ##\n");
  printf("##               \033[27m     \033[7m   \033[27m     \033[7m   "
         "\033[27m     \033[7m   \033[27m     \033[7m   \033[27m     \033[7m   "
         "\033[27m     \033[7m    \033[27m      \033[7m   ##\n");
  printf("##                 1       2       3       4       5       6        "
         "YOU    ##\n");
  printf("##                                                                   "
         "      ##\n");
  rptc('#', 77);
  printf("\033[27m");
}


x86 assembly (clang, -O0):
<NewBD>:
push   %rbp
mov    %rsp,%rbp
lea    0xeb5(%rip),%rdi
call   1050 <printf@plt>
mov    $0x23,%edi
mov    $0x4d,%esi
call   1060 <rptc@plt>
lea    0xea8(%rip),%rdi
call   1050 <printf@plt>
mov    $0x20,%edi
mov    $0x49,%esi
call   1060 <rptc@plt>
lea    0xe8b(%rip),%rdi
call   1050 <printf@plt>
lea    0xe85(%rip),%rdi
call   1050 <printf@plt>
lea    0xea4(%rip),%rdi
call   1050 <printf@plt>
lea    0xed3(%rip),%rdi
mov    $0x6,%esi
call   1030 <rpt@plt>
lea    0x1216(%rip),%rdi
call   1050 <printf@plt>
lea    0xec8(%rip),%rdi
call   1050 <printf@plt>
mov    $0x2,%edi
call   1040 <nb1@plt>
lea    0xf49(%rip),%rdi
call   1050 <printf@plt>
lea    0xfd4(%rip),%rdi
call   1050 <printf@plt>
lea    0xf31(%rip),%rdi
call   1050 <printf@plt>
mov    $0x2,%edi
call   1040 <nb1@plt>
lea    0x1013(%rip),%rdi
call   1050 <printf@plt>
lea    0x109e(%rip),%rdi
call   1050 <printf@plt>
lea    0x1120(%rip),%rdi
call   1050 <printf@plt>
lea    0x1163(%rip),%rdi
call   1050 <printf@plt>
mov    $0x23,%edi
mov    $0x4d,%esi
call   1060 <rptc@plt>
lea    0x1197(%rip),%rdi
call   1050 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<NewBD>:
push   %rbx
lea    0xea8(%rip),%rdi
call   1060 <printf@plt>
mov    $0x23,%edi
mov    $0x4d,%esi
call   1070 <rptc@plt>
lea    0xe9b(%rip),%rdi
call   1060 <printf@plt>
mov    $0x20,%edi
mov    $0x49,%esi
call   1070 <rptc@plt>
lea    0xe7e(%rip),%rdi
call   1060 <printf@plt>
lea    0xe78(%rip),%rdi
call   1060 <printf@plt>
lea    0xe97(%rip),%rdi
call   1060 <printf@plt>
lea    0xec6(%rip),%rdi
mov    $0x6,%esi
call   1030 <rpt@plt>
lea    0x1209(%rip),%rdi
call   1050 <puts@plt>
lea    0xec1(%rip),%rdi
call   1050 <puts@plt>
mov    $0x2,%edi
call   1040 <nb1@plt>
lea    0xfa1(%rip),%rbx
mov    %rbx,%rdi
call   1050 <puts@plt>
lea    0xf32(%rip),%rdi
call   1050 <puts@plt>
mov    %rbx,%rdi
call   1050 <puts@plt>
mov    $0x2,%edi
call   1040 <nb1@plt>
lea    0x100a(%rip),%rdi
call   1050 <puts@plt>
lea    0x1094(%rip),%rdi
call   1050 <puts@plt>
lea    0x1115(%rip),%rdi
call   1050 <puts@plt>
lea    0x1157(%rip),%rdi
call   1050 <puts@plt>
mov    $0x23,%edi
mov    $0x4d,%esi
call   1070 <rptc@plt>
lea    0xe39(%rip),%rdi
pop    %rbx
jmp    1060 <printf@plt>

LLVM IR (-O0):
@.str = [12 x i8] c"\1B[H\1B[2J\1B[7m\00"
@.str.1 = [4 x i8] c"\0A##\00"
@.str.2 = [6 x i8] c"##\0A##\00"
@.str.3 = [43 x i8] c" ME 6 5 4 3\00"
@.str.4 = [59 x i8] c" 2 1 ##\0A## \1B[27m \1B[7m \00"
@.str.5 = [18 x i8] c" \1B[27m \1B[7m \00"
@.str.6 = [16 x i8] c" ##\0A\00"
@.str.7 = [151 x i8] c"## \1B[27m \1B[7m \1B[27m \1B[7m \1B[27m \1B[7m \1B[27m \1B[7m \1B[27m \1B[7m \1B[27m \1B[7m \1B[27m \1B[7m \1B[27m \1B[7m ##\0A\00"
@.str.8 = [151 x i8] c"## \1B[27m \1B[7m \1B[27m \1B[7m \1B[27m \1B[7m \1B[27m \1B[7m \1B[27m \1B[7m \1B[27m \1B[7m \1B[27m \1B[7m \1B[27m \1B[7m ##\0A\00"
@.str.9 = [97 x i8] c"## \1B[27m \1B[7m \1B[27m \1B[7m ##\0A\00"
@.str.10 = [151 x i8] c"## \1B[27m \1B[7m \1B[27m \1B[7m \1B[27m \1B[7m \1B[27m \1B[7m \1B[27m \1B[7m \1B[27m \1B[7m \1B[27m \1B[7m \1B[27m \1B[7m ##\0A\00"
@.str.11 = [142 x i8] c"## \1B[27m \1B[7m \1B[27m \1B[7m \1B[27m \1B[7m \1B[27m \1B[7m \1B[27m \1B[7m \1B[27m \1B[7m \1B[27m \1B[7m ##\0A\00"
@.str.12 = [79 x i8] c"## 1 2 3 4 5 6 YOU ##\0A\00"
@.str.13 = [79 x i8] c"## ##\0A\00"
@.str.14 = [6 x i8] c"\1B[27m\00"
define void @NewBD() {
%1 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @rptc(i8 signext 35, i32 77)
%3 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%4 = call i32 @rptc(i8 signext 32, i32 73)
%5 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.3, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.4, i64 0, i64 0))
%8 = call i32 @rpt(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.5, i64 0, i64 0), i32 6)
%9 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.6, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([151 x i8], [151 x i8]* @.str.7, i64 0, i64 0))
%11 = call i32 @nb1(i32 2)
%12 = call i32 @printf(i8* getelementptr inbounds ([151 x i8], [151 x i8]* @.str.8, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([97 x i8], [97 x i8]* @.str.9, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([151 x i8], [151 x i8]* @.str.8, i64 0, i64 0))
%15 = call i32 @nb1(i32 2)
%16 = call i32 @printf(i8* getelementptr inbounds ([151 x i8], [151 x i8]* @.str.10, i64 0, i64 0))
%17 = call i32 @printf(i8* getelementptr inbounds ([142 x i8], [142 x i8]* @.str.11, i64 0, i64 0))
%18 = call i32 @printf(i8* getelementptr inbounds ([79 x i8], [79 x i8]* @.str.12, i64 0, i64 0))
%19 = call i32 @printf(i8* getelementptr inbounds ([79 x i8], [79 x i8]* @.str.13, i64 0, i64 0))
%20 = call i32 @rptc(i8 signext 35, i32 77)
%21 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.14, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [12 x i8] c"\1B[H\1B[2J\1B[7m\00"
@.str.1 = [4 x i8] c"\0A##\00"
@.str.2 = [6 x i8] c"##\0A##\00"
@.str.3 = [43 x i8] c" ME 6 5 4 3\00"
@.str.4 = [59 x i8] c" 2 1 ##\0A## \1B[27m \1B[7m \00"
@.str.5 = [18 x i8] c" \1B[27m \1B[7m \00"
@.str.14 = [6 x i8] c"\1B[27m\00"
@str = [15 x i8] c" ##\00"
@str.15 = [150 x i8] c"## \1B[27m \1B[7m \1B[27m \1B[7m \1B[27m \1B[7m \1B[27m \1B[7m \1B[27m \1B[7m \1B[27m \1B[7m \1B[27m \1B[7m \1B[27m \1B[7m ##\00"
@str.17 = [96 x i8] c"## \1B[27m \1B[7m \1B[27m \1B[7m ##\00"
@str.18 = [150 x i8] c"## \1B[27m \1B[7m \1B[27m \1B[7m \1B[27m \1B[7m \1B[27m \1B[7m \1B[27m \1B[7m \1B[27m \1B[7m \1B[27m \1B[7m \1B[27m \1B[7m ##\00"
@str.19 = [150 x i8] c"## \1B[27m \1B[7m \1B[27m \1B[7m \1B[27m \1B[7m \1B[27m \1B[7m \1B[27m \1B[7m \1B[27m \1B[7m \1B[27m \1B[7m \1B[27m \1B[7m ##\00"
@str.20 = [141 x i8] c"## \1B[27m \1B[7m \1B[27m \1B[7m \1B[27m \1B[7m \1B[27m \1B[7m \1B[27m \1B[7m \1B[27m \1B[7m \1B[27m \1B[7m ##\00"
@str.21 = [78 x i8] c"## 1 2 3 4 5 6 YOU ##\00"
@str.22 = [78 x i8] c"## ##\00"
define void @NewBD() {
%1 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @rptc(i8 signext 35, i32 77)
%3 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%4 = tail call i32 @rptc(i8 signext 32, i32 73)
%5 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%6 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @.str.3, i64 0, i64 0))
%7 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @.str.4, i64 0, i64 0))
%8 = tail call i32 @rpt(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.5, i64 0, i64 0), i32 6)
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([150 x i8], [150 x i8]* @str.15, i64 0, i64 0))
%11 = tail call i32 @nb1(i32 2)
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([150 x i8], [150 x i8]* @str.18, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([96 x i8], [96 x i8]* @str.17, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([150 x i8], [150 x i8]* @str.18, i64 0, i64 0))
%15 = tail call i32 @nb1(i32 2)
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([150 x i8], [150 x i8]* @str.19, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([141 x i8], [141 x i8]* @str.20, i64 0, i64 0))
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([78 x i8], [78 x i8]* @str.21, i64 0, i64 0))
%19 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([78 x i8], [78 x i8]* @str.22, i64 0, i64 0))
%20 = tail call i32 @rptc(i8 signext 35, i32 77)
%21 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.14, i64 0, i64 0))
ret void
}