#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*/ cbreak();
char getch();
int /*<<< orphan*/ move(int, int);
int /*<<< orphan*/ printw(char *, char *);
int /*<<< orphan*/ refresh();
int /*<<< orphan*/ setup_screen();
void general_help() {
  char tmp_char;
  setup_screen();
  move(4, 5);
  printw("%s", "Please refer to the man page and documentation provided");
  move(5, 5);
  printw("%s", "with this distribution. Check the bibcursed website at:");
  move(7, 8);
  printw("%s", "http://sourceforge.net/projects/bibcursed");
  move(9, 5);
  printw("%s", "before sending any queries to me at:");
  move(11, 8);
  printw("%s", "dominic@dominictristram.com");
  move(17, 5);
  printw("%s", "Press any key to continue");
  refresh();
  cbreak();
  tmp_char = getch();
}


x86 assembly (clang, -O0):
<general_help>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x0,%al
call   1040 <setup_screen@plt>
mov    $0x4,%edi
mov    $0x5,%esi
call   1080 <move@plt>
lea    0xe7b(%rip),%rdi
lea    0xe77(%rip),%rsi
call   1050 <printw@plt>
mov    $0x5,%esi
mov    %esi,%edi
call   1080 <move@plt>
lea    0xe5c(%rip),%rdi
lea    0xe90(%rip),%rsi
call   1050 <printw@plt>
mov    $0x7,%edi
mov    $0x8,%esi
call   1080 <move@plt>
lea    0xe3a(%rip),%rdi
lea    0xea6(%rip),%rsi
call   1050 <printw@plt>
mov    $0x9,%edi
mov    $0x5,%esi
call   1080 <move@plt>
lea    0xe18(%rip),%rdi
lea    0xeae(%rip),%rsi
call   1050 <printw@plt>
mov    $0xb,%edi
mov    $0x8,%esi
call   1080 <move@plt>
lea    0xdf6(%rip),%rdi
lea    0xeb1(%rip),%rsi
call   1050 <printw@plt>
mov    $0x11,%edi
mov    $0x5,%esi
call   1080 <move@plt>
lea    0xdd4(%rip),%rdi
lea    0xeab(%rip),%rsi
call   1050 <printw@plt>
mov    $0x0,%al
call   1060 <refresh@plt>
mov    $0x0,%al
call   1030 <cbreak@plt>
mov    $0x0,%al
call   1070 <getch@plt>
mov    %al,-0x1(%rbp)
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<general_help>:
push   %rbx
xor    %eax,%eax
call   1040 <setup_screen@plt>
mov    $0x4,%edi
mov    $0x5,%esi
call   1080 <move@plt>
lea    0xe82(%rip),%rbx
lea    0xe7e(%rip),%rsi
mov    %rbx,%rdi
call   1050 <printw@plt>
mov    $0x5,%edi
mov    $0x5,%esi
call   1080 <move@plt>
lea    0xe98(%rip),%rsi
mov    %rbx,%rdi
call   1050 <printw@plt>
mov    $0x7,%edi
mov    $0x8,%esi
call   1080 <move@plt>
lea    0xeb2(%rip),%rsi
mov    %rbx,%rdi
call   1050 <printw@plt>
mov    $0x9,%edi
mov    $0x5,%esi
call   1080 <move@plt>
lea    0xebe(%rip),%rsi
mov    %rbx,%rdi
call   1050 <printw@plt>
mov    $0xb,%edi
mov    $0x8,%esi
call   1080 <move@plt>
lea    0xec5(%rip),%rsi
mov    %rbx,%rdi
call   1050 <printw@plt>
mov    $0x11,%edi
mov    $0x5,%esi
call   1080 <move@plt>
lea    0xec3(%rip),%rsi
mov    %rbx,%rdi
call   1050 <printw@plt>
xor    %eax,%eax
call   1060 <refresh@plt>
xor    %eax,%eax
call   1030 <cbreak@plt>
xor    %eax,%eax
pop    %rbx
jmp    1070 <getch@plt>

LLVM IR (-O0):
@.str = [3 x i8] c"%s\00"
@.str.1 = [56 x i8] c"Please refer to the man page and documentation provided\00"
@.str.2 = [56 x i8] c"with this distribution. Check the bibcursed website at:\00"
@.str.3 = [42 x i8] c"http://sourceforge.net/projects/bibcursed\00"
@.str.4 = [37 x i8] c"before sending any queries to me at:\00"
@.str.5 = [28 x i8] c"dominic@dominictristram.com\00"
@.str.6 = [26 x i8] c"Press any key to continue\00"
define void @general_help() {
%1 = alloca i8
%2 = call i32 (...) @setup_screen()
%3 = call i32 @move(i32 4, i32 5)
%4 = call i32 @printw(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.1, i64 0, i64 0))
%5 = call i32 @move(i32 5, i32 5)
%6 = call i32 @printw(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.2, i64 0, i64 0))
%7 = call i32 @move(i32 7, i32 8)
%8 = call i32 @printw(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.3, i64 0, i64 0))
%9 = call i32 @move(i32 9, i32 5)
%10 = call i32 @printw(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.4, i64 0, i64 0))
%11 = call i32 @move(i32 11, i32 8)
%12 = call i32 @printw(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.5, i64 0, i64 0))
%13 = call i32 @move(i32 17, i32 5)
%14 = call i32 @printw(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.6, i64 0, i64 0))
%15 = call i32 (...) @refresh()
%16 = call i32 (...) @cbreak()
%17 = call signext i8 (...) @getch()
store i8 %17, i8* %1
ret void
}

LLVM IR (-O2):
@.str = [3 x i8] c"%s\00"
@.str.1 = [56 x i8] c"Please refer to the man page and documentation provided\00"
@.str.2 = [56 x i8] c"with this distribution. Check the bibcursed website at:\00"
@.str.3 = [42 x i8] c"http://sourceforge.net/projects/bibcursed\00"
@.str.4 = [37 x i8] c"before sending any queries to me at:\00"
@.str.5 = [28 x i8] c"dominic@dominictristram.com\00"
@.str.6 = [26 x i8] c"Press any key to continue\00"
define void @general_help() {
%1 = tail call i32 (...) @setup_screen()
%2 = tail call i32 @move(i32 4, i32 5)
%3 = tail call i32 @printw(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.1, i64 0, i64 0))
%4 = tail call i32 @move(i32 5, i32 5)
%5 = tail call i32 @printw(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.2, i64 0, i64 0))
%6 = tail call i32 @move(i32 7, i32 8)
%7 = tail call i32 @printw(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.3, i64 0, i64 0))
%8 = tail call i32 @move(i32 9, i32 5)
%9 = tail call i32 @printw(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.4, i64 0, i64 0))
%10 = tail call i32 @move(i32 11, i32 8)
%11 = tail call i32 @printw(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.5, i64 0, i64 0))
%12 = tail call i32 @move(i32 17, i32 5)
%13 = tail call i32 @printw(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.6, i64 0, i64 0))
%14 = tail call i32 (...) @refresh()
%15 = tail call i32 (...) @cbreak()
%16 = tail call signext i8 (...) @getch()
ret void
}