#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*/ make_sym_constant(char *);
int /*<<< orphan*/ remove_built_in_rhs_math_functions();
int /*<<< orphan*/ remove_rhs_function(int /*<<< orphan*/);
void remove_built_in_rhs_functions(void) {
  remove_rhs_function(make_sym_constant("write"));
  remove_rhs_function(make_sym_constant("crlf"));
  remove_rhs_function(make_sym_constant("halt"));
  remove_rhs_function(make_sym_constant("interrupt"));
  remove_rhs_function(make_sym_constant("make-constant-symbol"));
  remove_rhs_function(make_sym_constant("timestamp"));
  remove_rhs_function(make_sym_constant("accept"));
  remove_rhs_function(make_sym_constant("capitalize-symbol"));
  remove_rhs_function(make_sym_constant("ifeq"));
  remove_rhs_function(make_sym_constant("strlen"));
  remove_rhs_function(make_sym_constant("dont-learn"));
  remove_rhs_function(make_sym_constant("force-learn"));
  remove_built_in_rhs_math_functions();
}


x86 assembly (clang, -O0):
<remove_built_in_rhs_functions>:
push   %rbp
mov    %rsp,%rbp
lea    0xec5(%rip),%rdi
call   1050 <make_sym_constant@plt>
mov    %eax,%edi
call   1040 <remove_rhs_function@plt>
lea    0xeb8(%rip),%rdi
call   1050 <make_sym_constant@plt>
mov    %eax,%edi
call   1040 <remove_rhs_function@plt>
lea    0xeaa(%rip),%rdi
call   1050 <make_sym_constant@plt>
mov    %eax,%edi
call   1040 <remove_rhs_function@plt>
lea    0xe9c(%rip),%rdi
call   1050 <make_sym_constant@plt>
mov    %eax,%edi
call   1040 <remove_rhs_function@plt>
lea    0xe93(%rip),%rdi
call   1050 <make_sym_constant@plt>
mov    %eax,%edi
call   1040 <remove_rhs_function@plt>
lea    0xe95(%rip),%rdi
call   1050 <make_sym_constant@plt>
mov    %eax,%edi
call   1040 <remove_rhs_function@plt>
lea    0xe8c(%rip),%rdi
call   1050 <make_sym_constant@plt>
mov    %eax,%edi
call   1040 <remove_rhs_function@plt>
lea    0xe80(%rip),%rdi
call   1050 <make_sym_constant@plt>
mov    %eax,%edi
call   1040 <remove_rhs_function@plt>
lea    0xe7f(%rip),%rdi
call   1050 <make_sym_constant@plt>
mov    %eax,%edi
call   1040 <remove_rhs_function@plt>
lea    0xe71(%rip),%rdi
call   1050 <make_sym_constant@plt>
mov    %eax,%edi
call   1040 <remove_rhs_function@plt>
lea    0xe65(%rip),%rdi
call   1050 <make_sym_constant@plt>
mov    %eax,%edi
call   1040 <remove_rhs_function@plt>
lea    0xe5d(%rip),%rdi
call   1050 <make_sym_constant@plt>
mov    %eax,%edi
call   1040 <remove_rhs_function@plt>
mov    $0x0,%al
call   1030 <remove_built_in_rhs_math_functions@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<remove_built_in_rhs_functions>:
push   %rax
lea    0xec8(%rip),%rdi
call   1050 <make_sym_constant@plt>
mov    %eax,%edi
call   1040 <remove_rhs_function@plt>
lea    0xebb(%rip),%rdi
call   1050 <make_sym_constant@plt>
mov    %eax,%edi
call   1040 <remove_rhs_function@plt>
lea    0xead(%rip),%rdi
call   1050 <make_sym_constant@plt>
mov    %eax,%edi
call   1040 <remove_rhs_function@plt>
lea    0xe9f(%rip),%rdi
call   1050 <make_sym_constant@plt>
mov    %eax,%edi
call   1040 <remove_rhs_function@plt>
lea    0xe96(%rip),%rdi
call   1050 <make_sym_constant@plt>
mov    %eax,%edi
call   1040 <remove_rhs_function@plt>
lea    0xe98(%rip),%rdi
call   1050 <make_sym_constant@plt>
mov    %eax,%edi
call   1040 <remove_rhs_function@plt>
lea    0xe8f(%rip),%rdi
call   1050 <make_sym_constant@plt>
mov    %eax,%edi
call   1040 <remove_rhs_function@plt>
lea    0xe83(%rip),%rdi
call   1050 <make_sym_constant@plt>
mov    %eax,%edi
call   1040 <remove_rhs_function@plt>
lea    0xe82(%rip),%rdi
call   1050 <make_sym_constant@plt>
mov    %eax,%edi
call   1040 <remove_rhs_function@plt>
lea    0xe74(%rip),%rdi
call   1050 <make_sym_constant@plt>
mov    %eax,%edi
call   1040 <remove_rhs_function@plt>
lea    0xe68(%rip),%rdi
call   1050 <make_sym_constant@plt>
mov    %eax,%edi
call   1040 <remove_rhs_function@plt>
lea    0xe60(%rip),%rdi
call   1050 <make_sym_constant@plt>
mov    %eax,%edi
call   1040 <remove_rhs_function@plt>
xor    %eax,%eax
pop    %rcx
jmp    1030 <remove_built_in_rhs_math_functions@plt>

LLVM IR (-O0):
@.str = [6 x i8] c"write\00"
@.str.1 = [5 x i8] c"crlf\00"
@.str.2 = [5 x i8] c"halt\00"
@.str.3 = [10 x i8] c"interrupt\00"
@.str.4 = [21 x i8] c"make-constant-symbol\00"
@.str.5 = [10 x i8] c"timestamp\00"
@.str.6 = [7 x i8] c"accept\00"
@.str.7 = [18 x i8] c"capitalize-symbol\00"
@.str.8 = [5 x i8] c"ifeq\00"
@.str.9 = [7 x i8] c"strlen\00"
@.str.10 = [11 x i8] c"dont-learn\00"
@.str.11 = [12 x i8] c"force-learn\00"
define void @remove_built_in_rhs_functions() {
%1 = call i32 @make_sym_constant(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @remove_rhs_function(i32 %1)
%3 = call i32 @make_sym_constant(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%4 = call i32 @remove_rhs_function(i32 %3)
%5 = call i32 @make_sym_constant(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%6 = call i32 @remove_rhs_function(i32 %5)
%7 = call i32 @make_sym_constant(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0))
%8 = call i32 @remove_rhs_function(i32 %7)
%9 = call i32 @make_sym_constant(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.4, i64 0, i64 0))
%10 = call i32 @remove_rhs_function(i32 %9)
%11 = call i32 @make_sym_constant(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.5, i64 0, i64 0))
%12 = call i32 @remove_rhs_function(i32 %11)
%13 = call i32 @make_sym_constant(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0))
%14 = call i32 @remove_rhs_function(i32 %13)
%15 = call i32 @make_sym_constant(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.7, i64 0, i64 0))
%16 = call i32 @remove_rhs_function(i32 %15)
%17 = call i32 @make_sym_constant(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0))
%18 = call i32 @remove_rhs_function(i32 %17)
%19 = call i32 @make_sym_constant(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.9, i64 0, i64 0))
%20 = call i32 @remove_rhs_function(i32 %19)
%21 = call i32 @make_sym_constant(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.10, i64 0, i64 0))
%22 = call i32 @remove_rhs_function(i32 %21)
%23 = call i32 @make_sym_constant(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.11, i64 0, i64 0))
%24 = call i32 @remove_rhs_function(i32 %23)
%25 = call i32 (...) @remove_built_in_rhs_math_functions()
ret void
}

LLVM IR (-O2):
@.str = [6 x i8] c"write\00"
@.str.1 = [5 x i8] c"crlf\00"
@.str.2 = [5 x i8] c"halt\00"
@.str.3 = [10 x i8] c"interrupt\00"
@.str.4 = [21 x i8] c"make-constant-symbol\00"
@.str.5 = [10 x i8] c"timestamp\00"
@.str.6 = [7 x i8] c"accept\00"
@.str.7 = [18 x i8] c"capitalize-symbol\00"
@.str.8 = [5 x i8] c"ifeq\00"
@.str.9 = [7 x i8] c"strlen\00"
@.str.10 = [11 x i8] c"dont-learn\00"
@.str.11 = [12 x i8] c"force-learn\00"
define void @remove_built_in_rhs_functions() {
%1 = tail call i32 @make_sym_constant(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @remove_rhs_function(i32 %1)
%3 = tail call i32 @make_sym_constant(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%4 = tail call i32 @remove_rhs_function(i32 %3)
%5 = tail call i32 @make_sym_constant(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%6 = tail call i32 @remove_rhs_function(i32 %5)
%7 = tail call i32 @make_sym_constant(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0))
%8 = tail call i32 @remove_rhs_function(i32 %7)
%9 = tail call i32 @make_sym_constant(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.4, i64 0, i64 0))
%10 = tail call i32 @remove_rhs_function(i32 %9)
%11 = tail call i32 @make_sym_constant(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.5, i64 0, i64 0))
%12 = tail call i32 @remove_rhs_function(i32 %11)
%13 = tail call i32 @make_sym_constant(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0))
%14 = tail call i32 @remove_rhs_function(i32 %13)
%15 = tail call i32 @make_sym_constant(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.7, i64 0, i64 0))
%16 = tail call i32 @remove_rhs_function(i32 %15)
%17 = tail call i32 @make_sym_constant(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0))
%18 = tail call i32 @remove_rhs_function(i32 %17)
%19 = tail call i32 @make_sym_constant(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.9, i64 0, i64 0))
%20 = tail call i32 @remove_rhs_function(i32 %19)
%21 = tail call i32 @make_sym_constant(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.10, i64 0, i64 0))
%22 = tail call i32 @remove_rhs_function(i32 %21)
%23 = tail call i32 @make_sym_constant(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.11, i64 0, i64 0))
%24 = tail call i32 @remove_rhs_function(i32 %23)
%25 = tail call i32 (...) @remove_built_in_rhs_math_functions()
ret void
}