File tree Expand file tree Collapse file tree 4 files changed +17
-13
lines changed Expand file tree Collapse file tree 4 files changed +17
-13
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ class verilog_typecheckt:
63
63
assertion_counter (0 )
64
64
{}
65
65
66
- virtual void typecheck ();
66
+ void typecheck () override ;
67
67
68
68
protected:
69
69
const namespacet ns;
@@ -163,8 +163,10 @@ class verilog_typecheckt:
163
163
bool replace_symbols (const replace_mapt &what, exprt &dest);
164
164
void replace_symbols (const std::string &target, exprt &dest);
165
165
166
+ // to be overridden
166
167
virtual void convert_statements ();
167
168
169
+ // to be overridden
168
170
virtual bool implicit_wire (
169
171
const irep_idt &identifier,
170
172
const symbolt *&symbol);
@@ -181,6 +183,7 @@ class verilog_typecheckt:
181
183
typedef std::map<irep_idt, mp_integer> genvarst;
182
184
genvarst genvars;
183
185
186
+ // to be overridden
184
187
virtual void genvar_value (
185
188
const irep_idt &identifier,
186
189
mp_integer &value)
@@ -206,7 +209,7 @@ class verilog_typecheckt:
206
209
}
207
210
208
211
// const functions
209
- exprt elaborate_const_function_call (const class function_call_exprt &);
212
+ exprt elaborate_const_function_call (const class function_call_exprt &) override ;
210
213
void verilog_interpreter (const class verilog_statementt &);
211
214
212
215
// counter for assertions
Original file line number Diff line number Diff line change @@ -31,15 +31,15 @@ class verilog_typecheck_baset:public typecheckt
31
31
32
32
// overloaded to use verilog syntax
33
33
34
- virtual std::string to_string (const typet &type);
35
- virtual std::string to_string (const exprt &expr);
34
+ std::string to_string (const typet &type);
35
+ std::string to_string (const exprt &expr);
36
36
37
37
protected:
38
38
const namespacet &ns;
39
39
const irep_idt mode;
40
40
41
- virtual std::size_t get_width (const exprt &expr) { return get_width (expr.type ()); }
42
- virtual std::size_t get_width (const typet &type);
41
+ std::size_t get_width (const exprt &expr) { return get_width (expr.type ()); }
42
+ std::size_t get_width (const typet &type);
43
43
mp_integer array_size (const typet &type);
44
44
mp_integer array_offset (const typet &type);
45
45
typet index_type (const typet &array_type);
Original file line number Diff line number Diff line change @@ -50,33 +50,33 @@ class verilog_typecheck_exprt:public verilog_typecheck_baset
50
50
51
51
void propagate_type (exprt &expr, const typet &type);
52
52
53
- virtual void convert_type (const irept &src, typet &dest);
53
+ void convert_type (const irept &src, typet &dest);
54
54
55
- virtual void convert_range (
55
+ void convert_range (
56
56
const exprt &range,
57
57
mp_integer &msb,
58
58
mp_integer &lsb);
59
59
60
- virtual void genvar_value (
60
+ void genvar_value (
61
61
const irep_idt &identifier,
62
62
mp_integer &value)
63
63
{
64
64
assert (false );
65
65
}
66
66
67
- virtual exprt var_value (const irep_idt &identifier)
67
+ exprt var_value (const irep_idt &identifier)
68
68
{
69
69
assert (false );
70
70
}
71
71
72
- virtual bool implicit_wire (
72
+ bool implicit_wire (
73
73
const irep_idt &identifier,
74
74
const symbolt *&symbol)
75
75
{
76
76
return true ;
77
77
}
78
78
79
- virtual void typecheck ()
79
+ void typecheck () override
80
80
{
81
81
}
82
82
@@ -91,6 +91,7 @@ class verilog_typecheck_exprt:public verilog_typecheck_baset
91
91
bool is_const_expression (const exprt &, mp_integer &value);
92
92
exprt elaborate_const_expression (const exprt &);
93
93
94
+ // to be overridden
94
95
virtual exprt elaborate_const_function_call (const class function_call_exprt &)
95
96
{
96
97
assert (false );
You can’t perform that action at this time.
0 commit comments