#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*/ SLang_run_hooks(char *, int /*<<< orphan*/);
int /*<<< orphan*/ puts(char *);
void help(void) {
  puts("ALL statements MUST be terminated with a ';' character, e.g., "
       "quit();\n");
  puts("Available functions:");
  puts("  cos, sin, tan, atan, acos, asin, exp, log, sqrt, fabs, log10, pow, "
       "PI, E");
  puts("\nas well as other intrinsic S-Lang functions.");
  puts("See S-Lang language documentation for further details.\n");
  SLang_run_hooks("calc_help", 0);
}


x86 assembly (clang, -O0):
<help>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
call   1030 <puts@plt>
lea    0xf10(%rip),%rdi
call   1030 <puts@plt>
lea    0xf19(%rip),%rdi
call   1030 <puts@plt>
lea    0xf58(%rip),%rdi
call   1030 <puts@plt>
lea    0xf7a(%rip),%rdi
call   1030 <puts@plt>
lea    0xfa6(%rip),%rdi
xor    %esi,%esi
call   1040 <SLang_run_hooks@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<help>:
push   %rax
lea    0xed8(%rip),%rdi
call   1030 <puts@plt>
lea    0xf13(%rip),%rdi
call   1030 <puts@plt>
lea    0xf1c(%rip),%rdi
call   1030 <puts@plt>
lea    0xf5b(%rip),%rdi
call   1030 <puts@plt>
lea    0xf7d(%rip),%rdi
call   1030 <puts@plt>
lea    0xfa9(%rip),%rdi
xor    %esi,%esi
pop    %rax
jmp    1040 <SLang_run_hooks@plt>

LLVM IR (-O0):
@.str = [71 x i8] c"ALL statements MUST be terminated with a ';' character, e.g., quit();\0A\00"
@.str.1 = [21 x i8] c"Available functions:\00"
@.str.2 = [75 x i8] c" cos, sin, tan, atan, acos, asin, exp, log, sqrt, fabs, log10, pow, PI, E\00"
@.str.3 = [46 x i8] c"\0Aas well as other intrinsic S-Lang functions.\00"
@.str.4 = [56 x i8] c"See S-Lang language documentation for further details.\0A\00"
@.str.5 = [10 x i8] c"calc_help\00"
define void @help() {
%1 = call i32 @puts(i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @puts(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @puts(i8* getelementptr inbounds ([75 x i8], [75 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @puts(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @puts(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @SLang_run_hooks(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.5, i64 0, i64 0), i32 0)
ret void
}

LLVM IR (-O2):
@.str = [71 x i8] c"ALL statements MUST be terminated with a ';' character, e.g., quit();\0A\00"
@.str.1 = [21 x i8] c"Available functions:\00"
@.str.2 = [75 x i8] c" cos, sin, tan, atan, acos, asin, exp, log, sqrt, fabs, log10, pow, PI, E\00"
@.str.3 = [46 x i8] c"\0Aas well as other intrinsic S-Lang functions.\00"
@.str.4 = [56 x i8] c"See S-Lang language documentation for further details.\0A\00"
@.str.5 = [10 x i8] c"calc_help\00"
define void @help() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([71 x i8], [71 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([75 x i8], [75 x i8]* @.str.2, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @.str.3, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @.str.4, i64 0, i64 0))
%6 = tail call i32 @SLang_run_hooks(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.5, i64 0, i64 0), i32 0)
ret void
}