#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 *, ...);
int /*<<< orphan*/ puts(char *);
void GetHelp(void) {
  printf("Operators usable(rank by calculation priorities):\n\n               "
         "( )   mod     !!         !       ^     \n            brackets mod "
         "factorial2 factorial power   \n                %%        *         / "
         "     +     -\n            GetAnswer multiply  divide  plus  minus\n");
  puts("");
  printf("Math functions usable: \n            sin cos tan asin acos atan \n   "
         "         sinh cosh tanh asinh acosh atanh log\n");
  puts("");
  printf("Useful macros:\n            EL(e)  = %f  GM (Eular Gamma)  = %f\n    "
         "        PI(Pi) = %f  PHI(golden ratio) = %f\n",
         2.7182818284, 0.5772156649, 3.1415926535, 1.6180339887);
  printf("Input form:\n            Input example:cos(2 ^ (1.23 + 5 mod 2) * "
         "PI) - 2 !\n            The computer ignores spaces, and is "
         "case-insensitive.\n");
  puts("");
  printf("ps:\n           1: Use \"%%num\" to get output[num]\n           2: "
         "Use brackets to demarcate exponent\n           3: support "
         "assignments, but name of variates should only consist of alphabets\n "
         "          4: function names are reserved \n\n");
}


x86 assembly (clang, -O0):
<GetHelp>:
push   %rbp
mov    %rsp,%rbp
lea    0xef5(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0x1247(%rip),%rdi
call   1030 <puts@plt>
lea    0xfe4(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0x122d(%rip),%rdi
call   1030 <puts@plt>
lea    0x103c(%rip),%rdi
movsd  0xe99(%rip),%xmm0
movsd  0xe99(%rip),%xmm1
movsd  0xe99(%rip),%xmm2
movsd  0xe99(%rip),%xmm3
mov    $0x4,%al
call   1040 <printf@plt>
lea    0x107e(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0x11e5(%rip),%rdi
call   1030 <puts@plt>
lea    0x10f2(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<GetHelp>:
push   %rax
lea    0xee8(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x1131(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xfc3(%rip),%rdi
movsd  0xe92(%rip),%xmm0
movsd  0xe92(%rip),%xmm1
movsd  0xe92(%rip),%xmm2
movsd  0xe92(%rip),%xmm3
mov    $0x4,%al
call   1050 <printf@plt>
lea    0x115e(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xfef(%rip),%rdi
xor    %eax,%eax
pop    %rcx
jmp    1050 <printf@plt>

LLVM IR (-O0):
@.str = [265 x i8] c"Operators usable(rank by calculation priorities):\0A\0A ( ) mod !! ! ^ \0A brackets mod factorial2 factorial power \0A %% * / + -\0A GetAnswer multiply divide plus minus\0A\00"
@.str.1 = [1 x i8] zeroinitializer
@.str.2 = [114 x i8] c"Math functions usable: \0A sin cos tan asin acos atan \0A sinh cosh tanh asinh acosh atanh log\0A\00"
@.str.3 = [112 x i8] c"Useful macros:\0A EL(e) = %f GM (Eular Gamma) = %f\0A PI(Pi) = %f PHI(golden ratio) = %f\0A\00"
@.str.4 = [142 x i8] c"Input form:\0A Input example:cos(2 ^ (1.23 + 5 mod 2) * PI) - 2 !\0A The computer ignores spaces, and is case-insensitive.\0A\00"
@.str.5 = [232 x i8] c"ps:\0A 1: Use \22%%num\22 to get output[num]\0A 2: Use brackets to demarcate exponent\0A 3: support assignments, but name of variates should only consist of alphabets\0A 4: function names are reserved \0A\0A\00"
define void @GetHelp() {
%1 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([265 x i8], [265 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @puts(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([114 x i8], [114 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @puts(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([112 x i8], [112 x i8]* @.str.3, i64 0, i64 0), double 0x4005BF0A8B12500B, double 0x3FE2788CFC6F802A, double 0x400921FB54411744, double 0x3FF9E3779B9486E5)
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([142 x i8], [142 x i8]* @.str.4, i64 0, i64 0))
%7 = call i32 @puts(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([232 x i8], [232 x i8]* @.str.5, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [265 x i8] c"Operators usable(rank by calculation priorities):\0A\0A ( ) mod !! ! ^ \0A brackets mod factorial2 factorial power \0A %% * / + -\0A GetAnswer multiply divide plus minus\0A\00"
@.str.3 = [112 x i8] c"Useful macros:\0A EL(e) = %f GM (Eular Gamma) = %f\0A PI(Pi) = %f PHI(golden ratio) = %f\0A\00"
@.str.5 = [232 x i8] c"ps:\0A 1: Use \22%%num\22 to get output[num]\0A 2: Use brackets to demarcate exponent\0A 3: support assignments, but name of variates should only consist of alphabets\0A 4: function names are reserved \0A\0A\00"
@str = [113 x i8] c"Math functions usable: \0A sin cos tan asin acos atan \0A sinh cosh tanh asinh acosh atanh log\00"
@str.6 = [141 x i8] c"Input form:\0A Input example:cos(2 ^ (1.23 + 5 mod 2) * PI) - 2 !\0A The computer ignores spaces, and is case-insensitive.\00"
define void @GetHelp() {
%1 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([265 x i8], [265 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @putchar(i32 10)
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([113 x i8], [113 x i8]* @str, i64 0, i64 0))
%4 = tail call i32 @putchar(i32 10)
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([112 x i8], [112 x i8]* @.str.3, i64 0, i64 0), double 0x4005BF0A8B12500B, double 0x3FE2788CFC6F802A, double 0x400921FB54411744, double 0x3FF9E3779B9486E5)
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([141 x i8], [141 x i8]* @str.6, i64 0, i64 0))
%7 = tail call i32 @putchar(i32 10)
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([232 x i8], [232 x i8]* @.str.5, i64 0, i64 0))
ret void
}