#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*/ printa(char **);
void help_note() {
  char *msg[] = {"Pit notes are attached to a task. The only attribute is the "
                 "note's message body.\n",
                 "Creating a note:\n",
                 "  $ pit note -c message\n",
                 "Editing a note:\n",
                 "  $ pit note -e [number] message\n",
                 "Deleting a note:\n",
                 "  $ pit note -d [number]\n",
                 "Listing notes:\n",
                 "  $ pit note\n",
                 NULL};
  printa(msg);
}


x86 assembly (clang, -O0):
<help_note>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
lea    -0x50(%rbp),%rdi
lea    0x2c9d(%rip),%rsi
mov    $0x50,%edx
call   1030 <memcpy@plt>
lea    -0x50(%rbp),%rdi
call   1040 <printa@plt>
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<help_note>:
sub    $0x58,%rsp
movaps 0x2cf5(%rip),%xmm0
movaps %xmm0,0x40(%rsp)
movaps 0x2cd9(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
movaps 0x2cbd(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
movaps 0x2ca1(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movaps 0x2c85(%rip),%xmm0
movaps %xmm0,(%rsp)
mov    %rsp,%rdi
call   1030 <printa@plt>
add    $0x58,%rsp
ret

LLVM IR (-O0):
@.str = [82 x i8] c"Pit notes are attached to a task. The only attribute is the note's message body.\0A\00"
@.str.1 = [18 x i8] c"Creating a note:\0A\00"
@.str.2 = [25 x i8] c" $ pit note -c message\0A\00"
@.str.3 = [17 x i8] c"Editing a note:\0A\00"
@.str.4 = [34 x i8] c" $ pit note -e [number] message\0A\00"
@.str.5 = [18 x i8] c"Deleting a note:\0A\00"
@.str.6 = [26 x i8] c" $ pit note -d [number]\0A\00"
@.str.7 = [16 x i8] c"Listing notes:\0A\00"
@.str.8 = [14 x i8] c" $ pit note\0A\00"
@__const.help_note.msg = [10 x i8*] [i8* getelementptr inbounds ([82 x i8], [82 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.5, i32 0, i32 0), i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.6, i32 0, i32 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.7, i32 0, i32 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.8, i32 0, i32 0), i8* null]
define void @help_note() {
%1 = alloca [10 x i8*]
%2 = bitcast [10 x i8*]* %1 to i8*
%3 = getelementptr inbounds [10 x i8*], [10 x i8*]* %1, i64 0, i64 0
%4 = call i32 @printa(i8** %3)
ret void
}

LLVM IR (-O2):
@.str = [82 x i8] c"Pit notes are attached to a task. The only attribute is the note's message body.\0A\00"
@.str.1 = [18 x i8] c"Creating a note:\0A\00"
@.str.2 = [25 x i8] c" $ pit note -c message\0A\00"
@.str.3 = [17 x i8] c"Editing a note:\0A\00"
@.str.4 = [34 x i8] c" $ pit note -e [number] message\0A\00"
@.str.5 = [18 x i8] c"Deleting a note:\0A\00"
@.str.6 = [26 x i8] c" $ pit note -d [number]\0A\00"
@.str.7 = [16 x i8] c"Listing notes:\0A\00"
@.str.8 = [14 x i8] c" $ pit note\0A\00"
@__const.help_note.msg = [10 x i8*] [i8* getelementptr inbounds ([82 x i8], [82 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.5, i32 0, i32 0), i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.6, i32 0, i32 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.7, i32 0, i32 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.8, i32 0, i32 0), i8* null]
define void @help_note() {
%1 = alloca [10 x i8*]
%2 = bitcast [10 x i8*]* %1 to i8*
%3 = getelementptr inbounds [10 x i8*], [10 x i8*]* %1, i64 0, i64 0
%4 = call i32 @printa(i8** %3)
ret void
}