Skip to content

Commit 5190d26

Browse files
committed
Use numberingt in place of hash_numberingt
Because the naming follows our coding standards and it reduces the number of numbering variations to maintain.
1 parent 15a6759 commit 5190d26

File tree

9 files changed

+8
-13
lines changed

9 files changed

+8
-13
lines changed

src/analyses/invariant_set.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class inv_object_storet
5555
protected:
5656
const namespacet &ns;
5757

58-
typedef hash_numbering<irep_idt, irep_id_hash> mapt;
58+
typedef numbering<irep_idt> mapt;
5959
mapt map;
6060

6161
struct entryt

src/pointer-analysis/object_numbering.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@ Author: Daniel Kroening, [email protected]
2525
#include <util/expr.h>
2626
#include <util/numbering.h>
2727

28-
typedef hash_numbering<exprt, irep_hash> object_numberingt;
28+
typedef numberingt<exprt, irep_hash> object_numberingt;
2929

3030
#endif // CPROVER_POINTER_ANALYSIS_OBJECT_NUMBERING_H

src/pointer-analysis/value_set_fi.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Author: Daniel Kroening, [email protected]
2929
const value_set_fit::object_map_dt value_set_fit::object_map_dt::blank{};
3030

3131
object_numberingt value_set_fit::object_numbering;
32-
hash_numbering<irep_idt, irep_id_hash> value_set_fit::function_numbering;
32+
numberingt<irep_idt> value_set_fit::function_numbering;
3333

3434
static const char *alloc_adapter_prefix="alloc_adaptor::";
3535

src/pointer-analysis/value_set_fi.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class value_set_fit
3939
unsigned to_function, from_function;
4040
unsigned to_target_index, from_target_index;
4141
static object_numberingt object_numbering;
42-
static hash_numbering<irep_idt, irep_id_hash> function_numbering;
42+
static numberingt<irep_idt> function_numbering;
4343

4444
void set_from(const irep_idt &function, unsigned inx)
4545
{

src/pointer-analysis/value_set_fivr.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class value_set_fivrt
3636
unsigned to_function, from_function;
3737
unsigned to_target_index, from_target_index;
3838
static object_numberingt object_numbering;
39-
static hash_numbering<irep_idt, irep_id_hash> function_numbering;
39+
static numberingt<irep_idt> function_numbering;
4040

4141
void set_from(const irep_idt &function, unsigned inx)
4242
{

src/pointer-analysis/value_set_fivrns.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class value_set_fivrnst
3737
unsigned to_function, from_function;
3838
unsigned to_target_index, from_target_index;
3939
static object_numberingt object_numbering;
40-
static hash_numbering<irep_idt, irep_id_hash> function_numbering;
40+
static numberingt<irep_idt> function_numbering;
4141

4242
void set_from(const irep_idt &function, unsigned inx)
4343
{

src/solvers/flattening/pointer_logic.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class pointer_logict
2323
{
2424
public:
2525
// this numbers the objects
26-
hash_numbering<exprt, irep_hash> objects;
26+
numberingt<exprt, irep_hash> objects;
2727

2828
struct pointert
2929
{

src/util/irep_hash_container.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,7 @@ class irep_hash_container_baset
6969
std::size_t operator()(const packedt &p) const;
7070
};
7171

72-
typedef hash_numbering<packedt, vector_hasht> numberingt;
73-
numberingt numbering;
72+
numberingt<packedt, vector_hasht> numbering;
7473

7574
void pack(const irept &irep, packedt &);
7675

src/util/numbering.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,6 @@ class template_numberingt final
112112
template <typename Key>
113113
using numbering = template_numberingt<std::map<Key, std::size_t>>; // NOLINT
114114

115-
template <typename Key, typename Hash>
116-
using hash_numbering = // NOLINT
117-
template_numberingt<std::unordered_map<Key, std::size_t, Hash>>;
118-
119115
/// \tparam keyt: The type of keys which will be numbered.
120116
/// \tparam hasht: The type of hashing functor used to hash keys.
121117
template <typename keyt, typename hasht = std::hash<keyt>>

0 commit comments

Comments
 (0)