#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 *, char *);
int /*<<< orphan*/ puts(char *);
void ab_help(char const *const arg) {
  printf("Usage: %s [ arguments ] ...", arg == NULL ? "astrobot" : arg);
  puts("");
  puts("");
  puts("Arguments:");
  puts("  --nick <nick>          "
       "Override the default nick on connection.");
  puts("  --user <username>      "
       "Override the default username.");
  puts("  --realname <realname>  "
       "Override the default real name.");
  puts("  --modeset <modes>      "
       "Override the default modes set on connection.");
  puts("  --autojoin <channels>  "
       "Override the default channels joined on connection.");
  puts("  --ipv4                 "
       "Force use of IPv4 (default).");
  puts("  --ipv6                 "
       "Force use of IPv6.");
  puts("  --address <ip>         "
       "Connect to another IRC server using its IP address.");
  puts("  --port <port>          "
       "Override the default port to connect to.");
  puts("  --conf <file>          "
       "Set configuration file.");
  puts("  --quit <quitmsg>       "
       "Set default quit message.");
  puts("  --help                 "
       "Display this help and exit.");
  puts("  --version              "
       "Display the program version and exit.");
  puts("");
  puts("AstroBot"
       " "
       "0.1.31"
       "-"
       "AB217AUG25");
  return;
}


x86 assembly (clang, -O0):
<ab_help>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
cmpq   $0x0,-0x8(%rbp)
jne    1147 <ab_help+0x27>
lea    0xede(%rip),%rax
mov    %rax,-0x10(%rbp)
jmp    114f <ab_help+0x2f>
mov    -0x8(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rsi
lea    0xea6(%rip),%rdi
call   1040 <printf@plt>
lea    0x1046(%rip),%rdi
call   1030 <puts@plt>
lea    0x103a(%rip),%rdi
call   1030 <puts@plt>
lea    0xea7(%rip),%rdi
call   1030 <puts@plt>
lea    0xea6(%rip),%rdi
call   1030 <puts@plt>
lea    0xedc(%rip),%rdi
call   1030 <puts@plt>
lea    0xf08(%rip),%rdi
call   1030 <puts@plt>
lea    0xf35(%rip),%rdi
call   1030 <puts@plt>
lea    0xf70(%rip),%rdi
call   1030 <puts@plt>
lea    0xfb1(%rip),%rdi
call   1030 <puts@plt>
lea    0xfdb(%rip),%rdi
call   1030 <puts@plt>
lea    0xffb(%rip),%rdi
call   1030 <puts@plt>
lea    0x103c(%rip),%rdi
call   1030 <puts@plt>
lea    0x1072(%rip),%rdi
call   1030 <puts@plt>
lea    0x1097(%rip),%rdi
call   1030 <puts@plt>
lea    0x10be(%rip),%rdi
call   1030 <puts@plt>
lea    0x10e7(%rip),%rdi
call   1030 <puts@plt>
lea    0xf86(%rip),%rdi
call   1030 <puts@plt>
lea    0x110e(%rip),%rdi
call   1030 <puts@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ab_help>:
push   %rax
test   %rdi,%rdi
lea    0xee1(%rip),%rsi
cmovne %rdi,%rsi
lea    0xeba(%rip),%rdi
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xebf(%rip),%rdi
call   1040 <puts@plt>
lea    0xebe(%rip),%rdi
call   1040 <puts@plt>
lea    0xef4(%rip),%rdi
call   1040 <puts@plt>
lea    0xf20(%rip),%rdi
call   1040 <puts@plt>
lea    0xf4d(%rip),%rdi
call   1040 <puts@plt>
lea    0xf88(%rip),%rdi
call   1040 <puts@plt>
lea    0xfc9(%rip),%rdi
call   1040 <puts@plt>
lea    0xff3(%rip),%rdi
call   1040 <puts@plt>
lea    0x1013(%rip),%rdi
call   1040 <puts@plt>
lea    0x1054(%rip),%rdi
call   1040 <puts@plt>
lea    0x108a(%rip),%rdi
call   1040 <puts@plt>
lea    0x10af(%rip),%rdi
call   1040 <puts@plt>
lea    0x10d6(%rip),%rdi
call   1040 <puts@plt>
lea    0x10ff(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x1128(%rip),%rdi
pop    %rax
jmp    1040 <puts@plt>

LLVM IR (-O0):
@.str = [28 x i8] c"Usage: %s [ arguments ] ...\00"
@.str.1 = [9 x i8] c"astrobot\00"
@.str.2 = [1 x i8] zeroinitializer
@.str.3 = [11 x i8] c"Arguments:\00"
@.str.4 = [66 x i8] c" --nick <nick> Override the default nick on connection.\00"
@.str.5 = [56 x i8] c" --user <username> Override the default username.\00"
@.str.6 = [57 x i8] c" --realname <realname> Override the default real name.\00"
@.str.7 = [71 x i8] c" --modeset <modes> Override the default modes set on connection.\00"
@.str.8 = [77 x i8] c" --autojoin <channels> Override the default channels joined on connection.\00"
@.str.9 = [54 x i8] c" --ipv4 Force use of IPv4 (default).\00"
@.str.10 = [44 x i8] c" --ipv6 Force use of IPv6.\00"
@.str.11 = [77 x i8] c" --address <ip> Connect to another IRC server using its IP address.\00"
@.str.12 = [66 x i8] c" --port <port> Override the default port to connect to.\00"
@.str.13 = [49 x i8] c" --conf <file> Set configuration file.\00"
@.str.14 = [51 x i8] c" --quit <quitmsg> Set default quit message.\00"
@.str.15 = [53 x i8] c" --help Display this help and exit.\00"
@.str.16 = [63 x i8] c" --version Display the program version and exit.\00"
@.str.17 = [27 x i8] c"AstroBot 0.1.31-AB217AUG25\00"
define void @ab_help(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = icmp eq i8* %3, null
br i1 %4, label %5, label %6
5: ; preds = %1
br label %8
6: ; preds = %1
%7 = load i8*, i8** %2
br label %8
8: ; preds = %6, %5
%9 = phi i8* [ getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), %5 ], [ %7, %6 ]
%10 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0), i8* %9)
%11 = call i32 @puts(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0))
%12 = call i32 @puts(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0))
%13 = call i32 @puts(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0))
%14 = call i32 @puts(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.4, i64 0, i64 0))
%15 = call i32 @puts(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.5, i64 0, i64 0))
%16 = call i32 @puts(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.6, i64 0, i64 0))
%17 = call i32 @puts(i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str.7, i64 0, i64 0))
%18 = call i32 @puts(i8* getelementptr inbounds ([77 x i8], [77 x i8]* @.str.8, i64 0, i64 0))
%19 = call i32 @puts(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.9, i64 0, i64 0))
%20 = call i32 @puts(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.10, i64 0, i64 0))
%21 = call i32 @puts(i8* getelementptr inbounds ([77 x i8], [77 x i8]* @.str.11, i64 0, i64 0))
%22 = call i32 @puts(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.12, i64 0, i64 0))
%23 = call i32 @puts(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.13, i64 0, i64 0))
%24 = call i32 @puts(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.14, i64 0, i64 0))
%25 = call i32 @puts(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.15, i64 0, i64 0))
%26 = call i32 @puts(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.16, i64 0, i64 0))
%27 = call i32 @puts(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0))
%28 = call i32 @puts(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.17, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [28 x i8] c"Usage: %s [ arguments ] ...\00"
@.str.1 = [9 x i8] c"astrobot\00"
@.str.3 = [11 x i8] c"Arguments:\00"
@.str.4 = [66 x i8] c" --nick <nick> Override the default nick on connection.\00"
@.str.5 = [56 x i8] c" --user <username> Override the default username.\00"
@.str.6 = [57 x i8] c" --realname <realname> Override the default real name.\00"
@.str.7 = [71 x i8] c" --modeset <modes> Override the default modes set on connection.\00"
@.str.8 = [77 x i8] c" --autojoin <channels> Override the default channels joined on connection.\00"
@.str.9 = [54 x i8] c" --ipv4 Force use of IPv4 (default).\00"
@.str.10 = [44 x i8] c" --ipv6 Force use of IPv6.\00"
@.str.11 = [77 x i8] c" --address <ip> Connect to another IRC server using its IP address.\00"
@.str.12 = [66 x i8] c" --port <port> Override the default port to connect to.\00"
@.str.13 = [49 x i8] c" --conf <file> Set configuration file.\00"
@.str.14 = [51 x i8] c" --quit <quitmsg> Set default quit message.\00"
@.str.15 = [53 x i8] c" --help Display this help and exit.\00"
@.str.16 = [63 x i8] c" --version Display the program version and exit.\00"
@.str.17 = [27 x i8] c"AstroBot 0.1.31-AB217AUG25\00"
define void @ab_help(i8* %0) {
%2 = icmp eq i8* %0, null
%3 = select i1 %2, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i8* %0
%4 = tail call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0), i8* %3)
%5 = tail call i32 @putchar(i32 10)
%6 = tail call i32 @putchar(i32 10)
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([66 x i8], [66 x i8]* @.str.4, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @.str.5, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @.str.6, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([71 x i8], [71 x i8]* @.str.7, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([77 x i8], [77 x i8]* @.str.8, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @.str.9, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @.str.10, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([77 x i8], [77 x i8]* @.str.11, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([66 x i8], [66 x i8]* @.str.12, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @.str.13, i64 0, i64 0))
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @.str.14, i64 0, i64 0))
%19 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @.str.15, i64 0, i64 0))
%20 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([63 x i8], [63 x i8]* @.str.16, i64 0, i64 0))
%21 = tail call i32 @putchar(i32 10)
%22 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.17, i64 0, i64 0))
ret void
}