#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*/ exit(int);
int /*<<< orphan*/ fputs(char *, int /*<<< orphan*/);
int /*<<< orphan*/ stderr;
void print_help(void) {
  fputs("Usage: getopt optstring parameters\n", stderr);
  fputs("       getopt [options] [--] optstring parameters\n", stderr);
  fputs("       getopt [options] -o|--options optstring [options] [--]\n",
        stderr);
  fputs("              parameters\n", stderr);
  fputs("  -a, --alternative            Allow long options starting with "
        "single -\n",
        stderr);
  fputs("  -h, --help                   This small usage guide\n", stderr);
  fputs("  -l, --longoptions=longopts   Long options to be recognized\n",
        stderr);
  fputs("  -n, --name=progname          The name under which errors are "
        "reported\n",
        stderr);
  fputs("  -o, --options=optstring      Short options to be recognized\n",
        stderr);
  fputs("  -q, --quiet                  Disable error reporting by getopt(3)\n",
        stderr);
  fputs("  -Q, --quiet-output           No normal output\n", stderr);
  fputs("  -s, --shell=shell            Set shell quoting conventions\n",
        stderr);
  fputs("  -T, --test                   Test for getopt(1) version\n", stderr);
  fputs("  -u, --unqote                 Do not quote the output\n", stderr);
  fputs("  -V, --version                Output version information\n", stderr);
  exit(2);
}


x86 assembly (clang, -O0):
<print_help>:
push   %rbp
mov    %rsp,%rbp
mov    0x2eb5(%rip),%rax
mov    (%rax),%esi
lea    0xecc(%rip),%rdi
call   1030 <fputs@plt>
mov    0x2ea0(%rip),%rax
mov    (%rax),%esi
lea    0xedb(%rip),%rdi
call   1030 <fputs@plt>
mov    0x2e8b(%rip),%rax
mov    (%rax),%esi
lea    0xef9(%rip),%rdi
call   1030 <fputs@plt>
mov    0x2e76(%rip),%rax
mov    (%rax),%esi
lea    0xf23(%rip),%rdi
call   1030 <fputs@plt>
mov    0x2e61(%rip),%rax
mov    (%rax),%esi
lea    0xf28(%rip),%rdi
call   1030 <fputs@plt>
mov    0x2e4c(%rip),%rax
mov    (%rax),%esi
lea    0xf5d(%rip),%rdi
call   1030 <fputs@plt>
mov    0x2e37(%rip),%rax
mov    (%rax),%esi
lea    0xf7f(%rip),%rdi
call   1030 <fputs@plt>
mov    0x2e22(%rip),%rax
mov    (%rax),%esi
lea    0xfa8(%rip),%rdi
call   1030 <fputs@plt>
mov    0x2e0d(%rip),%rax
mov    (%rax),%esi
lea    0xfdc(%rip),%rdi
call   1030 <fputs@plt>
mov    0x2df8(%rip),%rax
mov    (%rax),%esi
lea    0x1006(%rip),%rdi
call   1030 <fputs@plt>
mov    0x2de3(%rip),%rax
mov    (%rax),%esi
lea    0x1036(%rip),%rdi
call   1030 <fputs@plt>
mov    0x2dce(%rip),%rax
mov    (%rax),%esi
lea    0x1052(%rip),%rdi
call   1030 <fputs@plt>
mov    0x2db9(%rip),%rax
mov    (%rax),%esi
lea    0x107b(%rip),%rdi
call   1030 <fputs@plt>
mov    0x2da4(%rip),%rax
mov    (%rax),%esi
lea    0x10a1(%rip),%rdi
call   1030 <fputs@plt>
mov    0x2d8f(%rip),%rax
mov    (%rax),%esi
lea    0x10c4(%rip),%rdi
call   1030 <fputs@plt>
mov    $0x2,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<print_help>:
push   %rbx
mov    0x2eb8(%rip),%rbx
mov    (%rbx),%esi
lea    0xecf(%rip),%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
lea    0xee5(%rip),%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
lea    0xf0a(%rip),%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
lea    0xf3b(%rip),%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
lea    0xf47(%rip),%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
lea    0xf83(%rip),%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
lea    0xfac(%rip),%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
lea    0xfdc(%rip),%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
lea    0x1017(%rip),%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
lea    0x1048(%rip),%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
lea    0x107f(%rip),%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
lea    0x10a2(%rip),%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
lea    0x10d2(%rip),%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
lea    0x10ff(%rip),%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
lea    0x1129(%rip),%rdi
call   1030 <fputs@plt>
mov    $0x2,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@.str = [36 x i8] c"Usage: getopt optstring parameters\0A\00"
@stderr = global i32 0
@.str.1 = [51 x i8] c" getopt [options] [--] optstring parameters\0A\00"
@.str.2 = [63 x i8] c" getopt [options] -o|--options optstring [options] [--]\0A\00"
@.str.3 = [26 x i8] c" parameters\0A\00"
@.str.4 = [74 x i8] c" -a, --alternative Allow long options starting with single -\0A\00"
@.str.5 = [55 x i8] c" -h, --help This small usage guide\0A\00"
@.str.6 = [62 x i8] c" -l, --longoptions=longopts Long options to be recognized\0A\00"
@.str.7 = [73 x i8] c" -n, --name=progname The name under which errors are reported\0A\00"
@.str.8 = [63 x i8] c" -o, --options=optstring Short options to be recognized\0A\00"
@.str.9 = [69 x i8] c" -q, --quiet Disable error reporting by getopt(3)\0A\00"
@.str.10 = [49 x i8] c" -Q, --quiet-output No normal output\0A\00"
@.str.11 = [62 x i8] c" -s, --shell=shell Set shell quoting conventions\0A\00"
@.str.12 = [59 x i8] c" -T, --test Test for getopt(1) version\0A\00"
@.str.13 = [56 x i8] c" -u, --unqote Do not quote the output\0A\00"
@.str.14 = [59 x i8] c" -V, --version Output version information\0A\00"
define void @print_help() {
%1 = load i32, i32* @stderr
%2 = call i32 @fputs(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str, i64 0, i64 0), i32 %1)
%3 = load i32, i32* @stderr
%4 = call i32 @fputs(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.1, i64 0, i64 0), i32 %3)
%5 = load i32, i32* @stderr
%6 = call i32 @fputs(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.2, i64 0, i64 0), i32 %5)
%7 = load i32, i32* @stderr
%8 = call i32 @fputs(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.3, i64 0, i64 0), i32 %7)
%9 = load i32, i32* @stderr
%10 = call i32 @fputs(i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str.4, i64 0, i64 0), i32 %9)
%11 = load i32, i32* @stderr
%12 = call i32 @fputs(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.5, i64 0, i64 0), i32 %11)
%13 = load i32, i32* @stderr
%14 = call i32 @fputs(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.6, i64 0, i64 0), i32 %13)
%15 = load i32, i32* @stderr
%16 = call i32 @fputs(i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.7, i64 0, i64 0), i32 %15)
%17 = load i32, i32* @stderr
%18 = call i32 @fputs(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.8, i64 0, i64 0), i32 %17)
%19 = load i32, i32* @stderr
%20 = call i32 @fputs(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.9, i64 0, i64 0), i32 %19)
%21 = load i32, i32* @stderr
%22 = call i32 @fputs(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.10, i64 0, i64 0), i32 %21)
%23 = load i32, i32* @stderr
%24 = call i32 @fputs(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.11, i64 0, i64 0), i32 %23)
%25 = load i32, i32* @stderr
%26 = call i32 @fputs(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.12, i64 0, i64 0), i32 %25)
%27 = load i32, i32* @stderr
%28 = call i32 @fputs(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.13, i64 0, i64 0), i32 %27)
%29 = load i32, i32* @stderr
%30 = call i32 @fputs(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.14, i64 0, i64 0), i32 %29)
%31 = call i32 @exit(i32 2)
unreachable
}

LLVM IR (-O2):
@.str = [36 x i8] c"Usage: getopt optstring parameters\0A\00"
@stderr = global i32 0
@.str.1 = [51 x i8] c" getopt [options] [--] optstring parameters\0A\00"
@.str.2 = [63 x i8] c" getopt [options] -o|--options optstring [options] [--]\0A\00"
@.str.3 = [26 x i8] c" parameters\0A\00"
@.str.4 = [74 x i8] c" -a, --alternative Allow long options starting with single -\0A\00"
@.str.5 = [55 x i8] c" -h, --help This small usage guide\0A\00"
@.str.6 = [62 x i8] c" -l, --longoptions=longopts Long options to be recognized\0A\00"
@.str.7 = [73 x i8] c" -n, --name=progname The name under which errors are reported\0A\00"
@.str.8 = [63 x i8] c" -o, --options=optstring Short options to be recognized\0A\00"
@.str.9 = [69 x i8] c" -q, --quiet Disable error reporting by getopt(3)\0A\00"
@.str.10 = [49 x i8] c" -Q, --quiet-output No normal output\0A\00"
@.str.11 = [62 x i8] c" -s, --shell=shell Set shell quoting conventions\0A\00"
@.str.12 = [59 x i8] c" -T, --test Test for getopt(1) version\0A\00"
@.str.13 = [56 x i8] c" -u, --unqote Do not quote the output\0A\00"
@.str.14 = [59 x i8] c" -V, --version Output version information\0A\00"
define void @print_help() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fputs(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str, i64 0, i64 0), i32 %1)
%3 = load i32, i32* @stderr
%4 = tail call i32 @fputs(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.1, i64 0, i64 0), i32 %3)
%5 = load i32, i32* @stderr
%6 = tail call i32 @fputs(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.2, i64 0, i64 0), i32 %5)
%7 = load i32, i32* @stderr
%8 = tail call i32 @fputs(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.3, i64 0, i64 0), i32 %7)
%9 = load i32, i32* @stderr
%10 = tail call i32 @fputs(i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str.4, i64 0, i64 0), i32 %9)
%11 = load i32, i32* @stderr
%12 = tail call i32 @fputs(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.5, i64 0, i64 0), i32 %11)
%13 = load i32, i32* @stderr
%14 = tail call i32 @fputs(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.6, i64 0, i64 0), i32 %13)
%15 = load i32, i32* @stderr
%16 = tail call i32 @fputs(i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.7, i64 0, i64 0), i32 %15)
%17 = load i32, i32* @stderr
%18 = tail call i32 @fputs(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.8, i64 0, i64 0), i32 %17)
%19 = load i32, i32* @stderr
%20 = tail call i32 @fputs(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.9, i64 0, i64 0), i32 %19)
%21 = load i32, i32* @stderr
%22 = tail call i32 @fputs(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.10, i64 0, i64 0), i32 %21)
%23 = load i32, i32* @stderr
%24 = tail call i32 @fputs(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.11, i64 0, i64 0), i32 %23)
%25 = load i32, i32* @stderr
%26 = tail call i32 @fputs(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.12, i64 0, i64 0), i32 %25)
%27 = load i32, i32* @stderr
%28 = tail call i32 @fputs(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.13, i64 0, i64 0), i32 %27)
%29 = load i32, i32* @stderr
%30 = tail call i32 @fputs(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.14, i64 0, i64 0), i32 %29)
%31 = tail call i32 @exit(i32 2)
unreachable
}