#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 legs1(WINDOW *win) {
  mvwaddstr(win, 6, 7, "( \\_____( /");
  mvwaddstr(win, 7, 8, "( )    /");
  mvwaddstr(win, 8, 9, "\\\\   /");
  mvwaddstr(win, 9, 11, "\\>/>");
}


x86 assembly (clang, -O0):
<legs1>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
mov    $0x6,%esi
mov    $0x7,%edx
lea    0xecf(%rip),%rcx
call   1030 <mvwaddstr@plt>
mov    -0x8(%rbp),%rdi
mov    $0x7,%esi
mov    $0x8,%edx
lea    0xec1(%rip),%rcx
call   1030 <mvwaddstr@plt>
mov    -0x8(%rbp),%rdi
mov    $0x8,%esi
mov    $0x9,%edx
lea    0xeb0(%rip),%rcx
call   1030 <mvwaddstr@plt>
mov    -0x8(%rbp),%rdi
mov    $0x9,%esi
mov    $0xb,%edx
lea    0xe9d(%rip),%rcx
call   1030 <mvwaddstr@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<legs1>:
push   %rbx
mov    %rdi,%rbx
lea    0xee5(%rip),%rcx
mov    $0x6,%esi
mov    $0x7,%edx
call   1030 <mvwaddstr@plt>
lea    0xedb(%rip),%rcx
mov    %rbx,%rdi
mov    $0x7,%esi
mov    $0x8,%edx
call   1030 <mvwaddstr@plt>
lea    0xecb(%rip),%rcx
mov    %rbx,%rdi
mov    $0x8,%esi
mov    $0x9,%edx
call   1030 <mvwaddstr@plt>
lea    0xeb9(%rip),%rcx
mov    %rbx,%rdi
mov    $0x9,%esi
mov    $0xb,%edx
pop    %rbx
jmp    1030 <mvwaddstr@plt>

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

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