Skip to content

Commit 0d6e750

Browse files
Rename renaming_levelt to symex_renaming_levelt
This can avoid confusing with renamings used in other modules.
1 parent 534914c commit 0d6e750

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/goto-symex/goto_symex_state.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ class goto_symex_statet final
185185
exprt return_value;
186186
bool hidden_function;
187187

188-
renaming_levelt::current_namest old_level1;
188+
symex_renaming_levelt::current_namest old_level1;
189189

190190
typedef std::set<irep_idt> local_objectst;
191191
local_objectst local_objects;

src/goto-symex/renaming_level.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ void symex_level1t::operator()(ssa_exprt &ssa_expr)
5656
ssa_expr.set_level_1(it->second.second);
5757
}
5858

59-
void symex_level1t::restore_from(const renaming_levelt::current_namest &other)
59+
void symex_level1t::restore_from(const symex_renaming_levelt::current_namest &other)
6060
{
6161
auto it = current_names.begin();
6262
for(const auto &pair : other)

src/goto-symex/renaming_level.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ Author: Romain Brenguier, [email protected]
2020

2121
/// Wrapper for a \c current_names map, which maps each identifier to an SSA
2222
/// expression and a counter.
23-
struct renaming_levelt
23+
struct symex_renaming_levelt
2424
{
25-
virtual ~renaming_levelt() = default;
25+
virtual ~symex_renaming_levelt() = default;
2626

2727
/// Map identifier to ssa_exprt and counter
2828
typedef std::map<irep_idt, std::pair<ssa_exprt, unsigned>> current_namest;
@@ -53,7 +53,7 @@ struct renaming_levelt
5353
/// Functor to set the level 0 renaming of SSA expressions.
5454
/// Level 0 corresponds to threads.
5555
/// The renaming is built for one particular interleaving.
56-
struct symex_level0t : public renaming_levelt
56+
struct symex_level0t : public symex_renaming_levelt
5757
{
5858
void
5959
operator()(ssa_exprt &ssa_expr, const namespacet &ns, unsigned thread_nr);
@@ -65,7 +65,7 @@ struct symex_level0t : public renaming_levelt
6565
/// Functor to set the level 1 renaming of SSA expressions.
6666
/// Level 1 corresponds to function frames.
6767
/// This is to preserve locality in case of recursion
68-
struct symex_level1t : public renaming_levelt
68+
struct symex_level1t : public symex_renaming_levelt
6969
{
7070
void operator()(ssa_exprt &ssa_expr);
7171

@@ -79,7 +79,7 @@ struct symex_level1t : public renaming_levelt
7979
/// Functor to set the level 2 renaming of SSA expressions.
8080
/// Level 2 corresponds to SSA.
8181
/// This is to ensure each variable is only assigned once.
82-
struct symex_level2t : public renaming_levelt
82+
struct symex_level2t : public symex_renaming_levelt
8383
{
8484
symex_level2t() = default;
8585
~symex_level2t() override = default;

0 commit comments

Comments
 (0)