#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_rhs_function(int /*<<< orphan*/);
void remove_bot_rhs_functions() {
  remove_rhs_function(make_sym_constant("round-off-heading"));
  remove_rhs_function(make_sym_constant("round-off"));
  remove_rhs_function(make_sym_constant("compute-heading"));
  remove_rhs_function(make_sym_constant("compute-range"));
}


x86 assembly (clang, -O0):
<remove_bot_rhs_functions>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
call   1040 <make_sym_constant@plt>
mov    %eax,%edi
call   1030 <remove_rhs_function@plt>
lea    0xed4(%rip),%rdi
call   1040 <make_sym_constant@plt>
mov    %eax,%edi
call   1030 <remove_rhs_function@plt>
lea    0xecb(%rip),%rdi
call   1040 <make_sym_constant@plt>
mov    %eax,%edi
call   1030 <remove_rhs_function@plt>
lea    0xec8(%rip),%rdi
call   1040 <make_sym_constant@plt>
mov    %eax,%edi
call   1030 <remove_rhs_function@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<remove_bot_rhs_functions>:
push   %rax
lea    0xed8(%rip),%rdi
call   1040 <make_sym_constant@plt>
mov    %eax,%edi
call   1030 <remove_rhs_function@plt>
lea    0xed7(%rip),%rdi
call   1040 <make_sym_constant@plt>
mov    %eax,%edi
call   1030 <remove_rhs_function@plt>
lea    0xece(%rip),%rdi
call   1040 <make_sym_constant@plt>
mov    %eax,%edi
call   1030 <remove_rhs_function@plt>
lea    0xecb(%rip),%rdi
call   1040 <make_sym_constant@plt>
mov    %eax,%edi
pop    %rax
jmp    1030 <remove_rhs_function@plt>

LLVM IR (-O0):
@.str = [18 x i8] c"round-off-heading\00"
@.str.1 = [10 x i8] c"round-off\00"
@.str.2 = [16 x i8] c"compute-heading\00"
@.str.3 = [14 x i8] c"compute-range\00"
define void @remove_bot_rhs_functions() {
%1 = call i32 @make_sym_constant(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @remove_rhs_function(i32 %1)
%3 = call i32 @make_sym_constant(i8* getelementptr inbounds ([10 x i8], [10 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 ([16 x i8], [16 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 ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0))
%8 = call i32 @remove_rhs_function(i32 %7)
ret void
}

LLVM IR (-O2):
@.str = [18 x i8] c"round-off-heading\00"
@.str.1 = [10 x i8] c"round-off\00"
@.str.2 = [16 x i8] c"compute-heading\00"
@.str.3 = [14 x i8] c"compute-range\00"
define void @remove_bot_rhs_functions() {
%1 = tail call i32 @make_sym_constant(i8* getelementptr inbounds ([18 x i8], [18 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 ([10 x i8], [10 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 ([16 x i8], [16 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 ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0))
%8 = tail call i32 @remove_rhs_function(i32 %7)
ret void
}