#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*/ ptextln(char *);
void report_help(int crx) {
  ptextln("The following commands may also be entered:");
  ptextln(" clear   clear screen.");
  ptextln(" columns print a test pattern to help count screen width.");
  ptextln(" lines   print a test pattern to help count screen length.");
  ptextln(" end     exit.");
  ptextln(" echo    redisplay last report.");
  if (crx) {
    ptextln(" hex     redisplay last report in hex.");
  } else {
    ptextln(" hex     toggle hex display mode.");
  }
  ptextln(" help    display this list.");
  ptextln(" high    toggle forced high bit (0x80).");
  ptextln(" scan    toggle scan mode.");
  ptextln(
      " one     echo one character after <cr> or <lf> as is. (report mode)");
  ptextln(" two     echo two characters after <cr> or <lf> as is.");
  ptextln(" all     echo all characters after <cr> or <lf> as is. (echo mode)");
}


x86 assembly (clang, -O0):
<report_help>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
lea    0xede(%rip),%rdi
call   1030 <ptextln@plt>
lea    0xefe(%rip),%rdi
call   1030 <ptextln@plt>
lea    0xf09(%rip),%rdi
call   1030 <ptextln@plt>
lea    0xf37(%rip),%rdi
call   1030 <ptextln@plt>
lea    0xf66(%rip),%rdi
call   1030 <ptextln@plt>
lea    0xf69(%rip),%rdi
call   1030 <ptextln@plt>
cmpl   $0x0,-0x4(%rbp)
je     117e <report_help+0x6e>
lea    0xf73(%rip),%rdi
call   1030 <ptextln@plt>
jmp    118a <report_help+0x7a>
lea    0xf89(%rip),%rdi
call   1030 <ptextln@plt>
lea    0xf9f(%rip),%rdi
call   1030 <ptextln@plt>
lea    0xfaf(%rip),%rdi
call   1030 <ptextln@plt>
lea    0xfcb(%rip),%rdi
call   1030 <ptextln@plt>
lea    0xfda(%rip),%rdi
call   1030 <ptextln@plt>
lea    0x1012(%rip),%rdi
call   1030 <ptextln@plt>
lea    0x103d(%rip),%rdi
call   1030 <ptextln@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<report_help>:
push   %rbx
mov    %edi,%ebx
lea    0xee6(%rip),%rdi
call   1030 <ptextln@plt>
lea    0xf06(%rip),%rdi
call   1030 <ptextln@plt>
lea    0xf11(%rip),%rdi
call   1030 <ptextln@plt>
lea    0xf3f(%rip),%rdi
call   1030 <ptextln@plt>
lea    0xf6e(%rip),%rdi
call   1030 <ptextln@plt>
lea    0xf71(%rip),%rdi
call   1030 <ptextln@plt>
test   %ebx,%ebx
lea    0xfaa(%rip),%rax
lea    0xf7c(%rip),%rdi
cmove  %rax,%rdi
call   1030 <ptextln@plt>
lea    0xfb5(%rip),%rdi
call   1030 <ptextln@plt>
lea    0xfc5(%rip),%rdi
call   1030 <ptextln@plt>
lea    0xfe1(%rip),%rdi
call   1030 <ptextln@plt>
lea    0xff0(%rip),%rdi
call   1030 <ptextln@plt>
lea    0x1028(%rip),%rdi
call   1030 <ptextln@plt>
lea    0x1053(%rip),%rdi
pop    %rbx
jmp    1030 <ptextln@plt>

LLVM IR (-O0):
@.str = [44 x i8] c"The following commands may also be entered:\00"
@.str.1 = [23 x i8] c" clear clear screen.\00"
@.str.2 = [58 x i8] c" columns print a test pattern to help count screen width.\00"
@.str.3 = [59 x i8] c" lines print a test pattern to help count screen length.\00"
@.str.4 = [15 x i8] c" end exit.\00"
@.str.5 = [32 x i8] c" echo redisplay last report.\00"
@.str.6 = [39 x i8] c" hex redisplay last report in hex.\00"
@.str.7 = [34 x i8] c" hex toggle hex display mode.\00"
@.str.8 = [28 x i8] c" help display this list.\00"
@.str.9 = [40 x i8] c" high toggle forced high bit (0x80).\00"
@.str.10 = [27 x i8] c" scan toggle scan mode.\00"
@.str.11 = [68 x i8] c" one echo one character after <cr> or <lf> as is. (report mode)\00"
@.str.12 = [55 x i8] c" two echo two characters after <cr> or <lf> as is.\00"
@.str.13 = [67 x i8] c" all echo all characters after <cr> or <lf> as is. (echo mode)\00"
define void @report_help(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = call i32 @ptextln(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str, i64 0, i64 0))
%4 = call i32 @ptextln(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0))
%5 = call i32 @ptextln(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.2, i64 0, i64 0))
%6 = call i32 @ptextln(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.3, i64 0, i64 0))
%7 = call i32 @ptextln(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0))
%8 = call i32 @ptextln(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.5, i64 0, i64 0))
%9 = load i32, i32* %2
%10 = icmp ne i32 %9, 0
br i1 %10, label %11, label %13
11: ; preds = %1
%12 = call i32 @ptextln(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.6, i64 0, i64 0))
br label %15
13: ; preds = %1
%14 = call i32 @ptextln(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.7, i64 0, i64 0))
br label %15
15: ; preds = %13, %11
%16 = call i32 @ptextln(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.8, i64 0, i64 0))
%17 = call i32 @ptextln(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.9, i64 0, i64 0))
%18 = call i32 @ptextln(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.10, i64 0, i64 0))
%19 = call i32 @ptextln(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.11, i64 0, i64 0))
%20 = call i32 @ptextln(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.12, i64 0, i64 0))
%21 = call i32 @ptextln(i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.13, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [44 x i8] c"The following commands may also be entered:\00"
@.str.1 = [23 x i8] c" clear clear screen.\00"
@.str.2 = [58 x i8] c" columns print a test pattern to help count screen width.\00"
@.str.3 = [59 x i8] c" lines print a test pattern to help count screen length.\00"
@.str.4 = [15 x i8] c" end exit.\00"
@.str.5 = [32 x i8] c" echo redisplay last report.\00"
@.str.6 = [39 x i8] c" hex redisplay last report in hex.\00"
@.str.7 = [34 x i8] c" hex toggle hex display mode.\00"
@.str.8 = [28 x i8] c" help display this list.\00"
@.str.9 = [40 x i8] c" high toggle forced high bit (0x80).\00"
@.str.10 = [27 x i8] c" scan toggle scan mode.\00"
@.str.11 = [68 x i8] c" one echo one character after <cr> or <lf> as is. (report mode)\00"
@.str.12 = [55 x i8] c" two echo two characters after <cr> or <lf> as is.\00"
@.str.13 = [67 x i8] c" all echo all characters after <cr> or <lf> as is. (echo mode)\00"
define void @report_help(i32 %0) {
%2 = tail call i32 @ptextln(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 @ptextln(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0))
%4 = tail call i32 @ptextln(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.2, i64 0, i64 0))
%5 = tail call i32 @ptextln(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.3, i64 0, i64 0))
%6 = tail call i32 @ptextln(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0))
%7 = tail call i32 @ptextln(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.5, i64 0, i64 0))
%8 = icmp eq i32 %0, 0
%9 = select i1 %8, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.6, i64 0, i64 0)
%10 = tail call i32 @ptextln(i8* %9)
%11 = tail call i32 @ptextln(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.8, i64 0, i64 0))
%12 = tail call i32 @ptextln(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.9, i64 0, i64 0))
%13 = tail call i32 @ptextln(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.10, i64 0, i64 0))
%14 = tail call i32 @ptextln(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.11, i64 0, i64 0))
%15 = tail call i32 @ptextln(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.12, i64 0, i64 0))
%16 = tail call i32 @ptextln(i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.13, i64 0, i64 0))
ret void
}