#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*/ WINDOW;

/* Variables and functions */
int /*<<< orphan*/ mvwaddstr(int /*<<< orphan*/ *, int, int, char *);
void legs3(WINDOW *win) {
  mvwaddstr(win, 6, 6, "( ()_____( /");
  mvwaddstr(win, 7, 6, "/ /       /");
  mvwaddstr(win, 8, 5, "|/          \\");
  mvwaddstr(win, 9, 5, "/>           \\>");
}


x86 assembly (clang, -O0):
<legs3>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
mov    $0x6,%edx
lea    0xed4(%rip),%rcx
mov    %edx,%esi
call   1030 <mvwaddstr@plt>
mov    -0x8(%rbp),%rdi
mov    $0x7,%esi
mov    $0x6,%edx
lea    0xec5(%rip),%rcx
call   1030 <mvwaddstr@plt>
mov    -0x8(%rbp),%rdi
mov    $0x8,%esi
mov    $0x5,%edx
lea    0xeb7(%rip),%rcx
call   1030 <mvwaddstr@plt>
mov    -0x8(%rbp),%rdi
mov    $0x9,%esi
mov    $0x5,%edx
lea    0xeab(%rip),%rcx
call   1030 <mvwaddstr@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<legs3>:
push   %rbx
mov    %rdi,%rbx
lea    0xee5(%rip),%rcx
mov    $0x6,%esi
mov    $0x6,%edx
call   1030 <mvwaddstr@plt>
lea    0xedc(%rip),%rcx
mov    %rbx,%rdi
mov    $0x7,%esi
mov    $0x6,%edx
call   1030 <mvwaddstr@plt>
lea    0xecf(%rip),%rcx
mov    %rbx,%rdi
mov    $0x8,%esi
mov    $0x5,%edx
call   1030 <mvwaddstr@plt>
lea    0xec4(%rip),%rcx
mov    %rbx,%rdi
mov    $0x9,%esi
mov    $0x5,%edx
pop    %rbx
jmp    1030 <mvwaddstr@plt>

LLVM IR (-O0):
@.str = [13 x i8] c"( ()_____( /\00"
@.str.1 = [12 x i8] c"/ / /\00"
@.str.2 = [14 x i8] c"|/ \\\00"
@.str.3 = [16 x i8] c"/> \\>\00"
define void @legs3(i32* %0) {
%2 = alloca i32*
store i32* %0, i32** %2
%3 = load i32*, i32** %2
%4 = call i32 @mvwaddstr(i32* %3, i32 6, i32 6, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
%5 = load i32*, i32** %2
%6 = call i32 @mvwaddstr(i32* %5, i32 7, i32 6, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0))
%7 = load i32*, i32** %2
%8 = call i32 @mvwaddstr(i32* %7, i32 8, i32 5, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0))
%9 = load i32*, i32** %2
%10 = call i32 @mvwaddstr(i32* %9, i32 9, i32 5, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [13 x i8] c"( ()_____( /\00"
@.str.1 = [12 x i8] c"/ / /\00"
@.str.2 = [14 x i8] c"|/ \\\00"
@.str.3 = [16 x i8] c"/> \\>\00"
define void @legs3(i32* %0) {
%2 = tail call i32 @mvwaddstr(i32* %0, i32 6, i32 6, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 @mvwaddstr(i32* %0, i32 7, i32 6, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0))
%4 = tail call i32 @mvwaddstr(i32* %0, i32 8, i32 5, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0))
%5 = tail call i32 @mvwaddstr(i32* %0, i32 9, i32 5, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0))
ret void
}