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

/* Variables and functions */
int /*<<< orphan*/ mvwaddch(int /*<<< orphan*/ *, int, int, int /*<<< orphan*/);
int /*<<< orphan*/ mvwaddstr(int /*<<< orphan*/ *, int, int, char *);
void bigtop(WINDOW *win) {
  mvwaddstr(win, 0, 17, "\\/");
  mvwaddstr(win, 0, 20, "\\/");
  mvwaddch(win, 1, 18, (chtype)'\\');
  mvwaddch(win, 1, 20, (chtype)'/');
  mvwaddstr(win, 2, 19, "|_");
  mvwaddstr(win, 3, 18, "/^0\\");
  mvwaddstr(win, 4, 17, "//\\");
  mvwaddch(win, 4, 22, (chtype)'\\');
  mvwaddstr(win, 5, 7, "^~~~~~~~~//  ~~U");
}


x86 assembly (clang, -O0):
<bigtop>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
xor    %esi,%esi
mov    $0x11,%edx
lea    0xec2(%rip),%rcx
call   1040 <mvwaddstr@plt>
mov    -0x8(%rbp),%rdi
xor    %esi,%esi
mov    $0x14,%edx
lea    0xeab(%rip),%rcx
call   1040 <mvwaddstr@plt>
mov    -0x8(%rbp),%rdi
mov    $0x1,%esi
mov    $0x12,%edx
mov    $0x5c,%ecx
call   1030 <mvwaddch@plt>
mov    -0x8(%rbp),%rdi
mov    $0x1,%esi
mov    $0x14,%edx
mov    $0x2f,%ecx
call   1030 <mvwaddch@plt>
mov    -0x8(%rbp),%rdi
mov    $0x2,%esi
mov    $0x13,%edx
lea    0xe64(%rip),%rcx
call   1040 <mvwaddstr@plt>
mov    -0x8(%rbp),%rdi
mov    $0x3,%esi
mov    $0x12,%edx
lea    0xe4d(%rip),%rcx
call   1040 <mvwaddstr@plt>
mov    -0x8(%rbp),%rdi
mov    $0x4,%esi
mov    $0x11,%edx
lea    0xe38(%rip),%rcx
call   1040 <mvwaddstr@plt>
mov    -0x8(%rbp),%rdi
mov    $0x4,%esi
mov    $0x16,%edx
mov    $0x5c,%ecx
call   1030 <mvwaddch@plt>
mov    -0x8(%rbp),%rdi
mov    $0x5,%esi
mov    $0x7,%edx
lea    0xe0a(%rip),%rcx
call   1040 <mvwaddstr@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<bigtop>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%rbx
lea    0xed2(%rip),%r14
xor    %esi,%esi
mov    $0x11,%edx
mov    %r14,%rcx
call   1040 <mvwaddstr@plt>
mov    %rbx,%rdi
xor    %esi,%esi
mov    $0x14,%edx
mov    %r14,%rcx
call   1040 <mvwaddstr@plt>
mov    %rbx,%rdi
mov    $0x1,%esi
mov    $0x12,%edx
mov    $0x5c,%ecx
call   1030 <mvwaddch@plt>
mov    %rbx,%rdi
mov    $0x1,%esi
mov    $0x14,%edx
mov    $0x2f,%ecx
call   1030 <mvwaddch@plt>
lea    0xe7f(%rip),%rcx
mov    %rbx,%rdi
mov    $0x2,%esi
mov    $0x13,%edx
call   1040 <mvwaddstr@plt>
lea    0xe69(%rip),%rcx
mov    %rbx,%rdi
mov    $0x3,%esi
mov    $0x12,%edx
call   1040 <mvwaddstr@plt>
lea    0xe55(%rip),%rcx
mov    %rbx,%rdi
mov    $0x4,%esi
mov    $0x11,%edx
call   1040 <mvwaddstr@plt>
mov    %rbx,%rdi
mov    $0x4,%esi
mov    $0x16,%edx
mov    $0x5c,%ecx
call   1030 <mvwaddch@plt>
lea    0xe29(%rip),%rcx
mov    %rbx,%rdi
mov    $0x5,%esi
mov    $0x7,%edx
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1040 <mvwaddstr@plt>

LLVM IR (-O0):
@.str = [3 x i8] c"\\/\00"
@.str.1 = [3 x i8] c"|_\00"
@.str.2 = [5 x i8] c"/^0\\\00"
@.str.3 = [4 x i8] c"//\\\00"
@.str.4 = [17 x i8] c"^~~~~~~~~// ~~U\00"
define void @bigtop(i32* %0) {
%2 = alloca i32*
store i32* %0, i32** %2
%3 = load i32*, i32** %2
%4 = call i32 @mvwaddstr(i32* %3, i32 0, i32 17, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%5 = load i32*, i32** %2
%6 = call i32 @mvwaddstr(i32* %5, i32 0, i32 20, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%7 = load i32*, i32** %2
%8 = call i32 @mvwaddch(i32* %7, i32 1, i32 18, i32 92)
%9 = load i32*, i32** %2
%10 = call i32 @mvwaddch(i32* %9, i32 1, i32 20, i32 47)
%11 = load i32*, i32** %2
%12 = call i32 @mvwaddstr(i32* %11, i32 2, i32 19, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%13 = load i32*, i32** %2
%14 = call i32 @mvwaddstr(i32* %13, i32 3, i32 18, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%15 = load i32*, i32** %2
%16 = call i32 @mvwaddstr(i32* %15, i32 4, i32 17, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%17 = load i32*, i32** %2
%18 = call i32 @mvwaddch(i32* %17, i32 4, i32 22, i32 92)
%19 = load i32*, i32** %2
%20 = call i32 @mvwaddstr(i32* %19, i32 5, i32 7, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.4, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [3 x i8] c"\\/\00"
@.str.1 = [3 x i8] c"|_\00"
@.str.2 = [5 x i8] c"/^0\\\00"
@.str.3 = [4 x i8] c"//\\\00"
@.str.4 = [17 x i8] c"^~~~~~~~~// ~~U\00"
define void @bigtop(i32* %0) {
%2 = tail call i32 @mvwaddstr(i32* %0, i32 0, i32 17, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 @mvwaddstr(i32* %0, i32 0, i32 20, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%4 = tail call i32 @mvwaddch(i32* %0, i32 1, i32 18, i32 92)
%5 = tail call i32 @mvwaddch(i32* %0, i32 1, i32 20, i32 47)
%6 = tail call i32 @mvwaddstr(i32* %0, i32 2, i32 19, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%7 = tail call i32 @mvwaddstr(i32* %0, i32 3, i32 18, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%8 = tail call i32 @mvwaddstr(i32* %0, i32 4, i32 17, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%9 = tail call i32 @mvwaddch(i32* %0, i32 4, i32 22, i32 92)
%10 = tail call i32 @mvwaddstr(i32* %0, i32 5, i32 7, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.4, i64 0, i64 0))
ret void
}