#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 issue_help_message(void) {
  printf("Usage: hdmi-info [OPTIONS]\n");
  printf("Query the state of the connected HDMI device.\n");
  printf("\n");
  printf("Mandatory arguments to long options are mandatory for short options "
         "too.\n");
  printf(
      "  -c, --cea861-modelist    Show the available CEA-861 display modes.\n");
  printf("  -C, --no-cea861-modelist Don't show the available CEA-861 display "
         "modes.\n");
  printf("  -d, --display=NUM        Specify the display device to use "
         "(default = 0).\n");
  printf("  -h, --help               Display this help, then exit.\n");
  printf("  -l, --tmds-link-status   Show the TMDS link status.\n");
  printf("  -L, --no-tmds-link-status\n"
         "                           Don't show the TMDS link status.\n");
  printf("  -m, --modelist           Show the available display modes.\n");
  printf(
      "  -M, --no-modelist        Don't show the available display modes.\n");
  printf("  -n, --display-name       Show the display name.\n");
  printf("  -N, --no-display-name    Don't show the display name.\n");
  printf("  -q, --quiet              Don't show anything.\n");
  printf("  -s, --connection-status  Show the connection status.\n");
  printf("  -S, --no-connection-status\n"
         "                           Don't show the connection status.\n");
  printf("  -t, --display-type       Show the display type.\n");
  printf("  -T, --no-display-type    Don't show the display type.\n");
  printf("  -v, --verbose            Show all available information.\n");
  printf("  -w, --wait-for-connected=BOOL\n"
         "                           Block until HDMI device is connected or "
         "unplugged.\n"
         "                           Choose from: plugged, unplugged, true, "
         "false.\n");
  printf("\n");
}


x86 assembly (clang, -O0):
<issue_help_message>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
lea    0xef5(%rip),%rdi
call   1030 <printf@plt>
lea    0x103f(%rip),%rdi
call   1030 <printf@plt>
lea    0xf0c(%rip),%rdi
call   1030 <printf@plt>
lea    0xf4a(%rip),%rdi
call   1030 <printf@plt>
lea    0xf84(%rip),%rdi
call   1030 <printf@plt>
lea    0xfc4(%rip),%rdi
call   1030 <printf@plt>
lea    0x1005(%rip),%rdi
call   1030 <printf@plt>
lea    0x1033(%rip),%rdi
call   1030 <printf@plt>
lea    0x105e(%rip),%rdi
call   1030 <printf@plt>
lea    0x10ab(%rip),%rdi
call   1030 <printf@plt>
lea    0x10dd(%rip),%rdi
call   1030 <printf@plt>
lea    0x1115(%rip),%rdi
call   1030 <printf@plt>
lea    0x113c(%rip),%rdi
call   1030 <printf@plt>
lea    0x1169(%rip),%rdi
call   1030 <printf@plt>
lea    0x118e(%rip),%rdi
call   1030 <printf@plt>
lea    0x11ba(%rip),%rdi
call   1030 <printf@plt>
lea    0x1209(%rip),%rdi
call   1030 <printf@plt>
lea    0x1230(%rip),%rdi
call   1030 <printf@plt>
lea    0x125d(%rip),%rdi
call   1030 <printf@plt>
lea    0x128d(%rip),%rdi
call   1030 <printf@plt>
lea    0xf5b(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<issue_help_message>:
push   %rax
lea    0xed8(%rip),%rdi
call   1040 <puts@plt>
lea    0xee7(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xeff(%rip),%rdi
call   1040 <puts@plt>
lea    0xf3c(%rip),%rdi
call   1040 <puts@plt>
lea    0xf75(%rip),%rdi
call   1040 <puts@plt>
lea    0xfb4(%rip),%rdi
call   1040 <puts@plt>
lea    0xff4(%rip),%rdi
call   1040 <puts@plt>
lea    0x1021(%rip),%rdi
call   1040 <puts@plt>
lea    0x104b(%rip),%rdi
call   1040 <puts@plt>
lea    0x1097(%rip),%rdi
call   1040 <puts@plt>
lea    0x10c8(%rip),%rdi
call   1040 <puts@plt>
lea    0x10ff(%rip),%rdi
call   1040 <puts@plt>
lea    0x1125(%rip),%rdi
call   1040 <puts@plt>
lea    0x1151(%rip),%rdi
call   1040 <puts@plt>
lea    0x1175(%rip),%rdi
call   1040 <puts@plt>
lea    0x11a0(%rip),%rdi
call   1040 <puts@plt>
lea    0x11ee(%rip),%rdi
call   1040 <puts@plt>
lea    0x1214(%rip),%rdi
call   1040 <puts@plt>
lea    0x1240(%rip),%rdi
call   1040 <puts@plt>
lea    0x126f(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
pop    %rax
jmp    1030 <putchar@plt>

LLVM IR (-O0):
@.str = [28 x i8] c"Usage: hdmi-info [OPTIONS]\0A\00"
@.str.1 = [47 x i8] c"Query the state of the connected HDMI device.\0A\00"
@.str.2 = [2 x i8] c"\0A\00"
@.str.3 = [74 x i8] c"Mandatory arguments to long options are mandatory for short options too.\0A\00"
@.str.4 = [70 x i8] c" -c, --cea861-modelist Show the available CEA-861 display modes.\0A\00"
@.str.5 = [76 x i8] c" -C, --no-cea861-modelist Don't show the available CEA-861 display modes.\0A\00"
@.str.6 = [77 x i8] c" -d, --display=NUM Specify the display device to use (default = 0).\0A\00"
@.str.7 = [58 x i8] c" -h, --help Display this help, then exit.\0A\00"
@.str.8 = [55 x i8] c" -l, --tmds-link-status Show the TMDS link status.\0A\00"
@.str.9 = [89 x i8] c" -L, --no-tmds-link-status\0A Don't show the TMDS link status.\0A\00"
@.str.10 = [62 x i8] c" -m, --modelist Show the available display modes.\0A\00"
@.str.11 = [68 x i8] c" -M, --no-modelist Don't show the available display modes.\0A\00"
@.str.12 = [51 x i8] c" -n, --display-name Show the display name.\0A\00"
@.str.13 = [57 x i8] c" -N, --no-display-name Don't show the display name.\0A\00"
@.str.14 = [49 x i8] c" -q, --quiet Don't show anything.\0A\00"
@.str.15 = [56 x i8] c" -s, --connection-status Show the connection status.\0A\00"
@.str.16 = [91 x i8] c" -S, --no-connection-status\0A Don't show the connection status.\0A\00"
@.str.17 = [51 x i8] c" -t, --display-type Show the display type.\0A\00"
@.str.18 = [57 x i8] c" -T, --no-display-type Don't show the display type.\0A\00"
@.str.19 = [60 x i8] c" -v, --verbose Show all available information.\0A\00"
@.str.20 = [184 x i8] c" -w, --wait-for-connected=BOOL\0A Block until HDMI device is connected or unplugged.\0A Choose from: plugged, unplugged, true, false.\0A\00"
define void @issue_help_message() {
%1 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([77 x i8], [77 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([89 x i8], [89 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.11, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.12, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.13, i64 0, i64 0))
%15 = call i32 @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.14, i64 0, i64 0))
%16 = call i32 @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.15, i64 0, i64 0))
%17 = call i32 @printf(i8* getelementptr inbounds ([91 x i8], [91 x i8]* @.str.16, i64 0, i64 0))
%18 = call i32 @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.17, i64 0, i64 0))
%19 = call i32 @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.18, i64 0, i64 0))
%20 = call i32 @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.19, i64 0, i64 0))
%21 = call i32 @printf(i8* getelementptr inbounds ([184 x i8], [184 x i8]* @.str.20, i64 0, i64 0))
%22 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [27 x i8] c"Usage: hdmi-info [OPTIONS]\00"
@str.21 = [46 x i8] c"Query the state of the connected HDMI device.\00"
@str.22 = [73 x i8] c"Mandatory arguments to long options are mandatory for short options too.\00"
@str.23 = [69 x i8] c" -c, --cea861-modelist Show the available CEA-861 display modes.\00"
@str.24 = [75 x i8] c" -C, --no-cea861-modelist Don't show the available CEA-861 display modes.\00"
@str.25 = [76 x i8] c" -d, --display=NUM Specify the display device to use (default = 0).\00"
@str.26 = [57 x i8] c" -h, --help Display this help, then exit.\00"
@str.27 = [54 x i8] c" -l, --tmds-link-status Show the TMDS link status.\00"
@str.28 = [88 x i8] c" -L, --no-tmds-link-status\0A Don't show the TMDS link status.\00"
@str.29 = [61 x i8] c" -m, --modelist Show the available display modes.\00"
@str.30 = [67 x i8] c" -M, --no-modelist Don't show the available display modes.\00"
@str.31 = [50 x i8] c" -n, --display-name Show the display name.\00"
@str.32 = [56 x i8] c" -N, --no-display-name Don't show the display name.\00"
@str.33 = [48 x i8] c" -q, --quiet Don't show anything.\00"
@str.34 = [55 x i8] c" -s, --connection-status Show the connection status.\00"
@str.35 = [90 x i8] c" -S, --no-connection-status\0A Don't show the connection status.\00"
@str.36 = [50 x i8] c" -t, --display-type Show the display type.\00"
@str.37 = [56 x i8] c" -T, --no-display-type Don't show the display type.\00"
@str.38 = [59 x i8] c" -v, --verbose Show all available information.\00"
@str.39 = [183 x i8] c" -w, --wait-for-connected=BOOL\0A Block until HDMI device is connected or unplugged.\0A Choose from: plugged, unplugged, true, false.\00"
define void @issue_help_message() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @str.21, i64 0, i64 0))
%3 = tail call i32 @putchar(i32 10)
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([73 x i8], [73 x i8]* @str.22, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([69 x i8], [69 x i8]* @str.23, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([75 x i8], [75 x i8]* @str.24, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([76 x i8], [76 x i8]* @str.25, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @str.26, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @str.27, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([88 x i8], [88 x i8]* @str.28, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([61 x i8], [61 x i8]* @str.29, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([67 x i8], [67 x i8]* @str.30, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @str.31, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @str.32, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @str.33, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([55 x i8], [55 x i8]* @str.34, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([90 x i8], [90 x i8]* @str.35, i64 0, i64 0))
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @str.36, i64 0, i64 0))
%19 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @str.37, i64 0, i64 0))
%20 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @str.38, i64 0, i64 0))
%21 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([183 x i8], [183 x i8]* @str.39, i64 0, i64 0))
%22 = tail call i32 @putchar(i32 10)
ret void
}