#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*/ move(int, int);
int /*<<< orphan*/ printw(char *);
void draw_lorcha(int x, int y) {
  move(y, x);
  printw("-|-_|_  ");
  move((y + 1), x);
  printw("-|-_|_  ");
  move((y + 2), x);
  printw("_|__|__/");
  move((y + 3), x);
  printw("\\_____/ ");
}


x86 assembly (clang, -O0):
<draw_lorcha>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x8(%rbp),%edi
mov    -0x4(%rbp),%esi
call   1040 <move@plt>
lea    0xec0(%rip),%rdi
call   1030 <printw@plt>
mov    -0x8(%rbp),%edi
add    $0x1,%edi
mov    -0x4(%rbp),%esi
call   1040 <move@plt>
lea    0xea6(%rip),%rdi
call   1030 <printw@plt>
mov    -0x8(%rbp),%edi
add    $0x2,%edi
mov    -0x4(%rbp),%esi
call   1040 <move@plt>
lea    0xe95(%rip),%rdi
call   1030 <printw@plt>
mov    -0x8(%rbp),%edi
add    $0x3,%edi
mov    -0x4(%rbp),%esi
call   1040 <move@plt>
lea    0xe84(%rip),%rdi
call   1030 <printw@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<draw_lorcha>:
push   %rbp
push   %r14
push   %rbx
mov    %esi,%ebx
mov    %edi,%ebp
mov    %esi,%edi
mov    %ebp,%esi
call   1040 <move@plt>
lea    0xec8(%rip),%r14
mov    %r14,%rdi
call   1030 <printw@plt>
lea    0x1(%rbx),%edi
mov    %ebp,%esi
call   1040 <move@plt>
mov    %r14,%rdi
call   1030 <printw@plt>
lea    0x2(%rbx),%edi
mov    %ebp,%esi
call   1040 <move@plt>
lea    0xea6(%rip),%rdi
call   1030 <printw@plt>
add    $0x3,%ebx
mov    %ebx,%edi
mov    %ebp,%esi
call   1040 <move@plt>
lea    0xe97(%rip),%rdi
pop    %rbx
pop    %r14
pop    %rbp
jmp    1030 <printw@plt>

LLVM IR (-O0):
@.str = [9 x i8] c"-|-_|_ \00"
@.str.1 = [9 x i8] c"_|__|__/\00"
@.str.2 = [9 x i8] c"\\_____/ \00"
define void @draw_lorcha(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%5 = load i32, i32* %4
%6 = load i32, i32* %3
%7 = call i32 @move(i32 %5, i32 %6)
%8 = call i32 @printw(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
%9 = load i32, i32* %4
%10 = add nsw i32 %9, 1
%11 = load i32, i32* %3
%12 = call i32 @move(i32 %10, i32 %11)
%13 = call i32 @printw(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
%14 = load i32, i32* %4
%15 = add nsw i32 %14, 2
%16 = load i32, i32* %3
%17 = call i32 @move(i32 %15, i32 %16)
%18 = call i32 @printw(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
%19 = load i32, i32* %4
%20 = add nsw i32 %19, 3
%21 = load i32, i32* %3
%22 = call i32 @move(i32 %20, i32 %21)
%23 = call i32 @printw(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [9 x i8] c"-|-_|_ \00"
@.str.1 = [9 x i8] c"_|__|__/\00"
@.str.2 = [9 x i8] c"\\_____/ \00"
define void @draw_lorcha(i32 %0, i32 %1) {
%3 = tail call i32 @move(i32 %1, i32 %0)
%4 = tail call i32 @printw(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
%5 = add nsw i32 %1, 1
%6 = tail call i32 @move(i32 %5, i32 %0)
%7 = tail call i32 @printw(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
%8 = add nsw i32 %1, 2
%9 = tail call i32 @move(i32 %8, i32 %0)
%10 = tail call i32 @printw(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
%11 = add nsw i32 %1, 3
%12 = tail call i32 @move(i32 %11, i32 %0)
%13 = tail call i32 @printw(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0))
ret void
}