#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*/ println(char *);
void td_help(void) {
  println("Usage:");
  println("  todo [-h|-v|-a]");
  println("  todo (<id> [done|undo|remove])|<task>..");
  println("");
  println("Examples:");
  println("  add a task       -  todo Go shopping");
  println("  check a task     -  todo 1 done");
  println("  undo a task      -  todo 1 undo");
  println("  remove a task    -  todo 1 rm/remove");
  println("  list undo tasks  -  todo");
  println("  list all tasks   -  todo --all");
  println("  clear done tasks -  todo clean/cleanup");
  println("  clear all tasks  -  todo clear");
  println("");
  println("GitHub: https://github.com/hit9/todo.c <hit9@icloud.com>");
}


x86 assembly (clang, -O0):
<td_help>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <println@plt>
lea    0xee0(%rip),%rdi
call   1030 <println@plt>
lea    0xee6(%rip),%rdi
call   1030 <println@plt>
lea    0xf03(%rip),%rdi
call   1030 <println@plt>
lea    0xef8(%rip),%rdi
call   1030 <println@plt>
lea    0xef6(%rip),%rdi
call   1030 <println@plt>
lea    0xf11(%rip),%rdi
call   1030 <println@plt>
lea    0xf27(%rip),%rdi
call   1030 <println@plt>
lea    0xf3d(%rip),%rdi
call   1030 <println@plt>
lea    0xf58(%rip),%rdi
call   1030 <println@plt>
lea    0xf67(%rip),%rdi
call   1030 <println@plt>
lea    0xf7c(%rip),%rdi
call   1030 <println@plt>
lea    0xf99(%rip),%rdi
call   1030 <println@plt>
lea    0xe8b(%rip),%rdi
call   1030 <println@plt>
lea    0xfa2(%rip),%rdi
call   1030 <println@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<td_help>:
push   %rbx
lea    0xee8(%rip),%rdi
call   1030 <println@plt>
lea    0xee3(%rip),%rdi
call   1030 <println@plt>
lea    0xee9(%rip),%rdi
call   1030 <println@plt>
lea    0xf06(%rip),%rbx
mov    %rbx,%rdi
call   1030 <println@plt>
lea    0xef8(%rip),%rdi
call   1030 <println@plt>
lea    0xef6(%rip),%rdi
call   1030 <println@plt>
lea    0xf11(%rip),%rdi
call   1030 <println@plt>
lea    0xf27(%rip),%rdi
call   1030 <println@plt>
lea    0xf3d(%rip),%rdi
call   1030 <println@plt>
lea    0xf58(%rip),%rdi
call   1030 <println@plt>
lea    0xf67(%rip),%rdi
call   1030 <println@plt>
lea    0xf7c(%rip),%rdi
call   1030 <println@plt>
lea    0xf99(%rip),%rdi
call   1030 <println@plt>
mov    %rbx,%rdi
call   1030 <println@plt>
lea    0xfa6(%rip),%rdi
pop    %rbx
jmp    1030 <println@plt>

LLVM IR (-O0):
@.str = [7 x i8] c"Usage:\00"
@.str.1 = [18 x i8] c" todo [-h|-v|-a]\00"
@.str.2 = [42 x i8] c" todo (<id> [done|undo|remove])|<task>..\00"
@.str.3 = [1 x i8] zeroinitializer
@.str.4 = [10 x i8] c"Examples:\00"
@.str.5 = [39 x i8] c" add a task - todo Go shopping\00"
@.str.6 = [34 x i8] c" check a task - todo 1 done\00"
@.str.7 = [34 x i8] c" undo a task - todo 1 undo\00"
@.str.8 = [39 x i8] c" remove a task - todo 1 rm/remove\00"
@.str.9 = [27 x i8] c" list undo tasks - todo\00"
@.str.10 = [33 x i8] c" list all tasks - todo --all\00"
@.str.11 = [41 x i8] c" clear done tasks - todo clean/cleanup\00"
@.str.12 = [33 x i8] c" clear all tasks - todo clear\00"
@.str.13 = [57 x i8] c"GitHub: https://github.com/hit9/todo.c <hit9@icloud.com>\00"
define void @td_help() {
%1 = call i32 @println(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @println(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @println(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @println(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @println(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @println(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @println(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @println(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @println(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @println(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @println(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 @println(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.11, i64 0, i64 0))
%13 = call i32 @println(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.12, i64 0, i64 0))
%14 = call i32 @println(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.3, i64 0, i64 0))
%15 = call i32 @println(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.13, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [7 x i8] c"Usage:\00"
@.str.1 = [18 x i8] c" todo [-h|-v|-a]\00"
@.str.2 = [42 x i8] c" todo (<id> [done|undo|remove])|<task>..\00"
@.str.3 = [1 x i8] zeroinitializer
@.str.4 = [10 x i8] c"Examples:\00"
@.str.5 = [39 x i8] c" add a task - todo Go shopping\00"
@.str.6 = [34 x i8] c" check a task - todo 1 done\00"
@.str.7 = [34 x i8] c" undo a task - todo 1 undo\00"
@.str.8 = [39 x i8] c" remove a task - todo 1 rm/remove\00"
@.str.9 = [27 x i8] c" list undo tasks - todo\00"
@.str.10 = [33 x i8] c" list all tasks - todo --all\00"
@.str.11 = [41 x i8] c" clear done tasks - todo clean/cleanup\00"
@.str.12 = [33 x i8] c" clear all tasks - todo clear\00"
@.str.13 = [57 x i8] c"GitHub: https://github.com/hit9/todo.c <hit9@icloud.com>\00"
define void @td_help() {
%1 = tail call i32 @println(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @println(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 @println(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.2, i64 0, i64 0))
%4 = tail call i32 @println(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.3, i64 0, i64 0))
%5 = tail call i32 @println(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0))
%6 = tail call i32 @println(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.5, i64 0, i64 0))
%7 = tail call i32 @println(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.6, i64 0, i64 0))
%8 = tail call i32 @println(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.7, i64 0, i64 0))
%9 = tail call i32 @println(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.8, i64 0, i64 0))
%10 = tail call i32 @println(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.9, i64 0, i64 0))
%11 = tail call i32 @println(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.10, i64 0, i64 0))
%12 = tail call i32 @println(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.11, i64 0, i64 0))
%13 = tail call i32 @println(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.12, i64 0, i64 0))
%14 = tail call i32 @println(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.3, i64 0, i64 0))
%15 = tail call i32 @println(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.13, i64 0, i64 0))
ret void
}