Skip to content

Commit 0157d77

Browse files
Use override instead of virtual
This is clearer for expressing that the method override that of the base class. This also make comments about overloading unecessary
1 parent 9e049ba commit 0157d77

File tree

1 file changed

+11
-17
lines changed

1 file changed

+11
-17
lines changed

src/cbmc/symex_bmc.h

Lines changed: 11 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -92,29 +92,23 @@ class symex_bmct: public goto_symext
9292
/// recursive call
9393
std::vector<recursion_unwind_handlert> recursion_unwind_handlers;
9494

95-
//
96-
// overloaded from goto_symext
97-
//
98-
virtual void symex_step(
99-
const get_goto_functiont &get_goto_function,
100-
statet &state);
101-
102-
virtual void merge_goto(
103-
const statet::goto_statet &goto_state,
104-
statet &state);
105-
106-
// for loop unwinding
107-
virtual bool should_stop_unwind(
95+
void symex_step(const get_goto_functiont &get_goto_function, statet &state)
96+
override;
97+
98+
void
99+
merge_goto(const statet::goto_statet &goto_state, statet &state) override;
100+
101+
bool should_stop_unwind(
108102
const symex_targett::sourcet &source,
109103
const goto_symex_statet::call_stackt &context,
110-
unsigned unwind);
104+
unsigned unwind) override;
111105

112-
virtual bool get_unwind_recursion(
106+
bool get_unwind_recursion(
113107
const irep_idt &identifier,
114108
const unsigned thread_nr,
115-
unsigned unwind);
109+
unsigned unwind) override;
116110

117-
virtual void no_body(const irep_idt &identifier);
111+
void no_body(const irep_idt &identifier) override;
118112

119113
std::unordered_set<irep_idt> body_warnings;
120114

0 commit comments

Comments
 (0)