#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*/ printf(char *, ...);
void do_help(void) {
  printf("Usage: thought [options] name ...\n");
  printf("Options:\n");
  printf(
      "  -d, --debug           Debug mode; thought output is directed to \n");
  printf(
      "                        the screen rather than the designated log.\n");
  printf("  -t, --timeout         Causes the thought to be aborted if it \n");
  printf("                        takes longer than the specified number of\n");
  printf("                        seconds.\n");
  printf("  -C, --cookie          Supply an identification token to the\n");
  printf("                        service to identify this session.\n");
  printf("  -v, --version         Print version of thought and exit.\n");
  printf("  -h, --help            Prints this help text and exits.\n");
  printf("\n");
  printf("Report bugs to: %s\n", "dev@joshhawcroft.org");
  printf("BRAIN home page: <%s>\n", "http://joshhawcroft.org/");
}


x86 assembly (clang, -O0):
<do_help>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xefa(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xef6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf2c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf62(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf95(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfca(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfde(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x100f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x103c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x106a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeba(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1088(%rip),%rdi
lea    0x1095(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x109c(%rip),%rdi
lea    0x10ac(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<do_help>:
push   %rax
lea    0xf21(%rip),%rdi
call   1040 <puts@plt>
lea    0xf37(%rip),%rdi
call   1040 <puts@plt>
lea    0xf34(%rip),%rdi
call   1040 <puts@plt>
lea    0xf6b(%rip),%rdi
call   1040 <puts@plt>
lea    0xfa2(%rip),%rdi
call   1040 <puts@plt>
lea    0xfd6(%rip),%rdi
call   1040 <puts@plt>
lea    0x100c(%rip),%rdi
call   1040 <puts@plt>
lea    0x1021(%rip),%rdi
call   1040 <puts@plt>
lea    0x1053(%rip),%rdi
call   1040 <puts@plt>
lea    0x1081(%rip),%rdi
call   1040 <puts@plt>
lea    0x10b0(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xe3a(%rip),%rdi
lea    0xe47(%rip),%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xe4e(%rip),%rdi
lea    0xe5e(%rip),%rsi
xor    %eax,%eax
pop    %rcx
jmp    1050 <printf@plt>

LLVM IR (-O0):
@.str = [35 x i8] c"Usage: thought [options] name ...\0A\00"
@.str.1 = [10 x i8] c"Options:\0A\00"
@.str.2 = [68 x i8] c" -d, --debug Debug mode; thought output is directed to \0A\00"
@.str.3 = [68 x i8] c" the screen rather than the designated log.\0A\00"
@.str.4 = [65 x i8] c" -t, --timeout Causes the thought to be aborted if it \0A\00"
@.str.5 = [67 x i8] c" takes longer than the specified number of\0A\00"
@.str.6 = [34 x i8] c" seconds.\0A\00"
@.str.7 = [63 x i8] c" -C, --cookie Supply an identification token to the\0A\00"
@.str.8 = [59 x i8] c" service to identify this session.\0A\00"
@.str.9 = [60 x i8] c" -v, --version Print version of thought and exit.\0A\00"
@.str.10 = [58 x i8] c" -h, --help Prints this help text and exits.\0A\00"
@.str.11 = [2 x i8] c"\0A\00"
@.str.12 = [20 x i8] c"Report bugs to: %s\0A\00"
@.str.13 = [21 x i8] c"dev@joshhawcroft.org\00"
@.str.14 = [23 x i8] c"BRAIN home page: <%s>\0A\00"
@.str.15 = [25 x i8] c"http://joshhawcroft.org/\00"
define void @do_help() {
%1 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str, i64 0, i64 0))
%2 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.11, i64 0, i64 0))
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.13, i64 0, i64 0))
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.15, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str.12 = [20 x i8] c"Report bugs to: %s\0A\00"
@.str.13 = [21 x i8] c"dev@joshhawcroft.org\00"
@.str.14 = [23 x i8] c"BRAIN home page: <%s>\0A\00"
@.str.15 = [25 x i8] c"http://joshhawcroft.org/\00"
@str = [34 x i8] c"Usage: thought [options] name ...\00"
@str.16 = [9 x i8] c"Options:\00"
@str.17 = [67 x i8] c" -d, --debug Debug mode; thought output is directed to \00"
@str.18 = [67 x i8] c" the screen rather than the designated log.\00"
@str.19 = [64 x i8] c" -t, --timeout Causes the thought to be aborted if it \00"
@str.20 = [66 x i8] c" takes longer than the specified number of\00"
@str.21 = [33 x i8] c" seconds.\00"
@str.22 = [62 x i8] c" -C, --cookie Supply an identification token to the\00"
@str.23 = [58 x i8] c" service to identify this session.\00"
@str.24 = [59 x i8] c" -v, --version Print version of thought and exit.\00"
@str.25 = [57 x i8] c" -h, --help Prints this help text and exits.\00"
define void @do_help() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str.16, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([67 x i8], [67 x i8]* @str.17, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([67 x i8], [67 x i8]* @str.18, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([64 x i8], [64 x i8]* @str.19, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([66 x i8], [66 x i8]* @str.20, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @str.21, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @str.22, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([58 x i8], [58 x i8]* @str.23, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @str.24, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @str.25, i64 0, i64 0))
%12 = tail call i32 @putchar(i32 10)
%13 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.13, i64 0, i64 0))
%14 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.15, i64 0, i64 0))
ret void
}