#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*/ mvprintw(int, int, char *);
int /*<<< orphan*/ refresh();
int draw_point(int x, int y) {
  mvprintw(y - 4, x, "  ,           ,  ");
  mvprintw(y - 3, x, " /             \\");
  mvprintw(y - 2, x, "((__-^^-,-^^-__))");
  mvprintw(y - 1, x, " `-_---' `---_-' ");
  mvprintw(y, x, "  `--|o` 'o|--'  ");
  mvprintw(y + 1, x, "     \\  `  /    ");
  mvprintw(y + 2, x, "      ): :(      ");
  mvprintw(y + 3, x, "      :o_o:      ");
  mvprintw(y + 4, x, "       '-'       ");
  refresh();
}


x86 assembly (clang, -O0):
<draw_point>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0xc(%rbp),%edi
sub    $0x4,%edi
mov    -0x8(%rbp),%esi
lea    0xec2(%rip),%rdx
call   1040 <mvprintw@plt>
mov    -0xc(%rbp),%edi
sub    $0x3,%edi
mov    -0x8(%rbp),%esi
lea    0xebf(%rip),%rdx
call   1040 <mvprintw@plt>
mov    -0xc(%rbp),%edi
sub    $0x2,%edi
mov    -0x8(%rbp),%esi
lea    0xebb(%rip),%rdx
call   1040 <mvprintw@plt>
mov    -0xc(%rbp),%edi
sub    $0x1,%edi
mov    -0x8(%rbp),%esi
lea    0xeb8(%rip),%rdx
call   1040 <mvprintw@plt>
mov    -0xc(%rbp),%edi
mov    -0x8(%rbp),%esi
lea    0xeb8(%rip),%rdx
call   1040 <mvprintw@plt>
mov    -0xc(%rbp),%edi
add    $0x1,%edi
mov    -0x8(%rbp),%esi
lea    0xeb5(%rip),%rdx
call   1040 <mvprintw@plt>
mov    -0xc(%rbp),%edi
add    $0x2,%edi
mov    -0x8(%rbp),%esi
lea    0xeb1(%rip),%rdx
call   1040 <mvprintw@plt>
mov    -0xc(%rbp),%edi
add    $0x3,%edi
mov    -0x8(%rbp),%esi
lea    0xeae(%rip),%rdx
call   1040 <mvprintw@plt>
mov    -0xc(%rbp),%edi
add    $0x4,%edi
mov    -0x8(%rbp),%esi
lea    0xeab(%rip),%rdx
call   1040 <mvprintw@plt>
mov    $0x0,%al
call   1030 <refresh@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<draw_point>:
push   %rbp
push   %rbx
push   %rax
mov    %esi,%ebx
mov    %edi,%ebp
lea    -0x4(%rbx),%edi
lea    0xecf(%rip),%rdx
mov    %ebp,%esi
call   1040 <mvprintw@plt>
lea    -0x3(%rbx),%edi
lea    0xed0(%rip),%rdx
mov    %ebp,%esi
call   1040 <mvprintw@plt>
lea    -0x2(%rbx),%edi
lea    0xed0(%rip),%rdx
mov    %ebp,%esi
call   1040 <mvprintw@plt>
lea    -0x1(%rbx),%edi
lea    0xed1(%rip),%rdx
mov    %ebp,%esi
call   1040 <mvprintw@plt>
lea    0xed5(%rip),%rdx
mov    %ebx,%edi
mov    %ebp,%esi
call   1040 <mvprintw@plt>
lea    0x1(%rbx),%edi
lea    0xed4(%rip),%rdx
mov    %ebp,%esi
call   1040 <mvprintw@plt>
lea    0x2(%rbx),%edi
lea    0xed4(%rip),%rdx
mov    %ebp,%esi
call   1040 <mvprintw@plt>
lea    0x3(%rbx),%edi
lea    0xed5(%rip),%rdx
mov    %ebp,%esi
call   1040 <mvprintw@plt>
add    $0x4,%ebx
lea    0xed6(%rip),%rdx
mov    %ebx,%edi
mov    %ebp,%esi
call   1040 <mvprintw@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1030 <refresh@plt>

LLVM IR (-O0):
@.str = [18 x i8] c" , , \00"
@.str.1 = [17 x i8] c" / \\\00"
@.str.2 = [18 x i8] c"((__-^^-,-^^-__))\00"
@.str.3 = [18 x i8] c" `-_---' `---_-' \00"
@.str.4 = [18 x i8] c" `--|o` 'o|--' \00"
@.str.5 = [17 x i8] c" \\ ` / \00"
@.str.6 = [18 x i8] c" ): :( \00"
@.str.7 = [18 x i8] c" :o_o: \00"
@.str.8 = [18 x i8] c" '-' \00"
define i32 @draw_point(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
store i32 %0, i32* %4
store i32 %1, i32* %5
%6 = load i32, i32* %5
%7 = sub nsw i32 %6, 4
%8 = load i32, i32* %4
%9 = call i32 @mvprintw(i32 %7, i32 %8, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0))
%10 = load i32, i32* %5
%11 = sub nsw i32 %10, 3
%12 = load i32, i32* %4
%13 = call i32 @mvprintw(i32 %11, i32 %12, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0))
%14 = load i32, i32* %5
%15 = sub nsw i32 %14, 2
%16 = load i32, i32* %4
%17 = call i32 @mvprintw(i32 %15, i32 %16, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0))
%18 = load i32, i32* %5
%19 = sub nsw i32 %18, 1
%20 = load i32, i32* %4
%21 = call i32 @mvprintw(i32 %19, i32 %20, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0))
%22 = load i32, i32* %5
%23 = load i32, i32* %4
%24 = call i32 @mvprintw(i32 %22, i32 %23, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.4, i64 0, i64 0))
%25 = load i32, i32* %5
%26 = add nsw i32 %25, 1
%27 = load i32, i32* %4
%28 = call i32 @mvprintw(i32 %26, i32 %27, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.5, i64 0, i64 0))
%29 = load i32, i32* %5
%30 = add nsw i32 %29, 2
%31 = load i32, i32* %4
%32 = call i32 @mvprintw(i32 %30, i32 %31, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.6, i64 0, i64 0))
%33 = load i32, i32* %5
%34 = add nsw i32 %33, 3
%35 = load i32, i32* %4
%36 = call i32 @mvprintw(i32 %34, i32 %35, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.7, i64 0, i64 0))
%37 = load i32, i32* %5
%38 = add nsw i32 %37, 4
%39 = load i32, i32* %4
%40 = call i32 @mvprintw(i32 %38, i32 %39, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.8, i64 0, i64 0))
%41 = call i32 (...) @refresh()
%42 = load i32, i32* %3
ret i32 %42
}

LLVM IR (-O2):
@.str = [18 x i8] c" , , \00"
@.str.1 = [17 x i8] c" / \\\00"
@.str.2 = [18 x i8] c"((__-^^-,-^^-__))\00"
@.str.3 = [18 x i8] c" `-_---' `---_-' \00"
@.str.4 = [18 x i8] c" `--|o` 'o|--' \00"
@.str.5 = [17 x i8] c" \\ ` / \00"
@.str.6 = [18 x i8] c" ): :( \00"
@.str.7 = [18 x i8] c" :o_o: \00"
@.str.8 = [18 x i8] c" '-' \00"
define i32 @draw_point(i32 %0, i32 %1) {
%3 = add nsw i32 %1, -4
%4 = tail call i32 @mvprintw(i32 %3, i32 %0, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0))
%5 = add nsw i32 %1, -3
%6 = tail call i32 @mvprintw(i32 %5, i32 %0, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0))
%7 = add nsw i32 %1, -2
%8 = tail call i32 @mvprintw(i32 %7, i32 %0, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0))
%9 = add nsw i32 %1, -1
%10 = tail call i32 @mvprintw(i32 %9, i32 %0, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0))
%11 = tail call i32 @mvprintw(i32 %1, i32 %0, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.4, i64 0, i64 0))
%12 = add nsw i32 %1, 1
%13 = tail call i32 @mvprintw(i32 %12, i32 %0, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.5, i64 0, i64 0))
%14 = add nsw i32 %1, 2
%15 = tail call i32 @mvprintw(i32 %14, i32 %0, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.6, i64 0, i64 0))
%16 = add nsw i32 %1, 3
%17 = tail call i32 @mvprintw(i32 %16, i32 %0, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.7, i64 0, i64 0))
%18 = add nsw i32 %1, 4
%19 = tail call i32 @mvprintw(i32 %18, i32 %0, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.8, i64 0, i64 0))
%20 = tail call i32 (...) @refresh()
ret i32 undef
}