Skip to content

Commit 7eb73b6

Browse files
Hide get_l1_name from interface
This is only used in one function.
1 parent b4d9e1a commit 7eb73b6

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/goto-symex/goto_symex_state.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ Author: Daniel Kroening, [email protected]
2525

2626
#include <analyses/dirty.h>
2727

28+
static void get_l1_name(exprt &expr);
29+
2830
goto_symex_statet::goto_symex_statet()
2931
: depth(0),
3032
symex_target(nullptr),
@@ -750,7 +752,7 @@ void goto_symex_statet::get_original_name(typet &type) const
750752
}
751753
}
752754

753-
void goto_symex_statet::get_l1_name(exprt &expr) const
755+
static void get_l1_name(exprt &expr)
754756
{
755757
// do not reset the type !
756758

src/goto-symex/goto_symex_state.h

-3
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,6 @@ class goto_symex_statet final
9797
void set_l1_indices(ssa_exprt &expr, const namespacet &ns);
9898
void set_l2_indices(ssa_exprt &expr, const namespacet &ns);
9999

100-
// only required for value_set.assign
101-
void get_l1_name(exprt &expr) const;
102-
103100
// this maps L1 names to (L2) types
104101
typedef std::unordered_map<irep_idt, typet> l1_typest;
105102
l1_typest l1_types;

0 commit comments

Comments
 (0)