#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*/ printopts(int, char *, char *);
int /*<<< orphan*/ puts(char *);
int /*<<< orphan*/ spellword(char *);
void printhelp_term() {
  char colors[8] = "colours";
  char alt[12] = "alternative";
  spellword(colors);
  spellword(alt);
  puts("Terminal options:");
  printopts(14, colors,
            "w, -width N   Set width to N columns (N >= 32)\n"
            "h, -height N  Set height to N lines (N >= 20)\n"
            "bg black	Adjust to dark background\n"
            "bg white	Adjust to light background\n"
            "color	Use %s\n"
            "mono	Don't use %s");
  printopts(14, alt,
            "ascii	Use ASCII characters for line drawing\n"
            "vt100	Use %s character set for line drawing\n"
            "block STR	Draw blocks using characters in STR\n"
            "tt	Draw blocks as in Mike Taylor's Tetris for Terminals\n"
            "tt-bg	tt block characters with background");
}


x86 assembly (clang, -O0):
<printhelp_term>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    0xec1(%rip),%rax
mov    %rax,-0x8(%rbp)
mov    0xebe(%rip),%rax
mov    %rax,-0x14(%rbp)
mov    0xebc(%rip),%eax
mov    %eax,-0xc(%rbp)
lea    -0x8(%rbp),%rdi
call   1050 <spellword@plt>
lea    -0x14(%rbp),%rdi
call   1050 <spellword@plt>
lea    0xea4(%rip),%rdi
call   1030 <puts@plt>
lea    -0x8(%rbp),%rsi
mov    $0xe,%edi
lea    0xea1(%rip),%rdx
call   1040 <printopts@plt>
lea    -0x14(%rbp),%rsi
mov    $0xe,%edi
lea    0xf4f(%rip),%rdx
call   1040 <printopts@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<printhelp_term>:
push   %r14
push   %rbx
sub    $0x18,%rsp
movabs $0x7372756f6c6f63,%rax
mov    %rax,0x10(%rsp)
movabs $0x74616e7265746c61,%rax
6e 61 74
mov    %rax,(%rsp)
movl   $0x657669,0x8(%rsp)
lea    0x10(%rsp),%rbx
mov    %rbx,%rdi
call   1050 <spellword@plt>
mov    %rsp,%r14
mov    %r14,%rdi
call   1050 <spellword@plt>
lea    0xe91(%rip),%rdi
call   1030 <puts@plt>
lea    0xe97(%rip),%rdx
mov    $0xe,%edi
mov    %rbx,%rsi
call   1040 <printopts@plt>
lea    0xf46(%rip),%rdx
mov    $0xe,%edi
mov    %r14,%rsi
call   1040 <printopts@plt>
add    $0x18,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@__const.printhelp_term.colors = [8 x i8] c"colours\00"
@__const.printhelp_term.alt = [12 x i8] c"alternative\00"
@.str = [18 x i8] c"Terminal options:\00"
@.str.1 = [195 x i8] c"w, -width N Set width to N columns (N >= 32)\0Ah, -height N Set height to N lines (N >= 20)\0Abg black\09Adjust to dark background\0Abg white\09Adjust to light background\0Acolor\09Use %s\0Amono\09Don't use %s\00"
@.str.2 = [232 x i8] c"ascii\09Use ASCII characters for line drawing\0Avt100\09Use %s character set for line drawing\0Ablock STR\09Draw blocks using characters in STR\0Att\09Draw blocks as in Mike Taylor's Tetris for Terminals\0Att-bg\09tt block characters with background\00"
define void @printhelp_term() {
%1 = alloca [8 x i8]
%2 = alloca [12 x i8]
%3 = bitcast [8 x i8]* %1 to i8*
%4 = bitcast [12 x i8]* %2 to i8*
%5 = getelementptr inbounds [8 x i8], [8 x i8]* %1, i64 0, i64 0
%6 = call i32 @spellword(i8* %5)
%7 = getelementptr inbounds [12 x i8], [12 x i8]* %2, i64 0, i64 0
%8 = call i32 @spellword(i8* %7)
%9 = call i32 @puts(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0))
%10 = getelementptr inbounds [8 x i8], [8 x i8]* %1, i64 0, i64 0
%11 = call i32 @printopts(i32 14, i8* %10, i8* getelementptr inbounds ([195 x i8], [195 x i8]* @.str.1, i64 0, i64 0))
%12 = getelementptr inbounds [12 x i8], [12 x i8]* %2, i64 0, i64 0
%13 = call i32 @printopts(i32 14, i8* %12, i8* getelementptr inbounds ([232 x i8], [232 x i8]* @.str.2, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@__const.printhelp_term.alt = [12 x i8] c"alternative\00"
@.str = [18 x i8] c"Terminal options:\00"
@.str.1 = [195 x i8] c"w, -width N Set width to N columns (N >= 32)\0Ah, -height N Set height to N lines (N >= 20)\0Abg black\09Adjust to dark background\0Abg white\09Adjust to light background\0Acolor\09Use %s\0Amono\09Don't use %s\00"
@.str.2 = [232 x i8] c"ascii\09Use ASCII characters for line drawing\0Avt100\09Use %s character set for line drawing\0Ablock STR\09Draw blocks using characters in STR\0Att\09Draw blocks as in Mike Taylor's Tetris for Terminals\0Att-bg\09tt block characters with background\00"
define void @printhelp_term() {
%1 = alloca i64
%2 = alloca [12 x i8]
%3 = bitcast i64* %1 to i8*
store i64 32495471027842915, i64* %1
%4 = getelementptr inbounds [12 x i8], [12 x i8]* %2, i64 0, i64 0
%5 = call i32 @spellword(i8* %3)
%6 = call i32 @spellword(i8* %4)
%7 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0))
%8 = call i32 @printopts(i32 14, i8* %3, i8* getelementptr inbounds ([195 x i8], [195 x i8]* @.str.1, i64 0, i64 0))
%9 = call i32 @printopts(i32 14, i8* %4, i8* getelementptr inbounds ([232 x i8], [232 x i8]* @.str.2, i64 0, i64 0))
ret void
}