@@ -25,23 +25,23 @@ class namespace_utils_baset
25
25
virtual ~namespace_utils_baset ()
26
26
{
27
27
}
28
-
28
+
29
29
const symbolt &lookup (const irep_idt &name) const
30
30
{
31
31
const symbolt *symbol;
32
32
if (lookup (name, symbol))
33
33
throw " identifier " +id2string (name)+" not found" ;
34
34
return *symbol;
35
35
}
36
-
36
+
37
37
const symbolt &lookup (const symbol_exprt &symbol_expr) const
38
38
{
39
39
const symbolt *symbol;
40
40
if (lookup (symbol_expr.get_identifier (), symbol))
41
41
throw " identifier " +id2string (symbol_expr.get_identifier ())+" not found" ;
42
42
return *symbol;
43
43
}
44
-
44
+
45
45
bool lookup (const irep_idt &name, const symbolt *&symbol) const
46
46
{
47
47
return ns ().lookup (name, symbol);
@@ -67,7 +67,7 @@ class namespace_utils_baset
67
67
{
68
68
::base_type(type, ns());
69
69
}
70
-
70
+
71
71
void base_type(exprt &expr)
72
72
{
73
73
::base_type(expr, ns());
@@ -77,14 +77,14 @@ class namespace_utils_baset
77
77
78
78
private:
79
79
bool does_symbol_match (
80
- const exprt& lvalue,
80
+ const exprt & lvalue,
81
81
std::function<bool (symbolt)> predicate) const ;
82
82
83
83
public:
84
- bool is_parameter (const exprt& lvalue) const ;
85
- bool is_static (const exprt& lvalue) const ;
86
- bool is_auxiliary_variable (const exprt& lvalue) const ;
87
- bool is_return_value_auxiliary (const exprt& lvalue) const ;
84
+ bool is_parameter (const exprt & lvalue) const ;
85
+ bool is_static (const exprt & lvalue) const ;
86
+ bool is_auxiliary_variable (const exprt & lvalue) const ;
87
+ bool is_return_value_auxiliary (const exprt & lvalue) const ;
88
88
89
89
bool type_eq (const typet &type1, const typet &type2)
90
90
{
@@ -99,12 +99,12 @@ class namespace_utils_baset
99
99
protected:
100
100
virtual const namespacet &ns () const =0;
101
101
};
102
-
102
+
103
103
class namespace_utilst :public virtual namespace_utils_baset
104
104
{
105
105
public:
106
106
namespace_utilst (const namespacet &_ns):__ns(_ns){}
107
-
107
+
108
108
protected:
109
109
const namespacet &__ns;
110
110
@@ -113,5 +113,5 @@ class namespace_utilst:public virtual namespace_utils_baset
113
113
return __ns;
114
114
}
115
115
};
116
-
116
+
117
117
#endif
0 commit comments