Skip to content

Commit 529fbc9

Browse files
Rename method to should_stop_unwind
More clearly describe what the return value represents.
1 parent c0bc638 commit 529fbc9

File tree

4 files changed

+5
-7
lines changed

4 files changed

+5
-7
lines changed

src/cbmc/symex_bmc.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ void symex_bmct::merge_goto(
105105
symex_coverage.covered(prev_pc, state.source.pc);
106106
}
107107

108-
bool symex_bmct::get_unwind(
108+
bool symex_bmct::should_stop_unwind(
109109
const symex_targett::sourcet &source,
110110
const goto_symex_statet::call_stackt &context,
111111
unsigned unwind)

src/cbmc/symex_bmc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ class symex_bmct: public goto_symext
104104
statet &state);
105105

106106
// for loop unwinding
107-
virtual bool get_unwind(
107+
virtual bool should_stop_unwind(
108108
const symex_targett::sourcet &source,
109109
const goto_symex_statet::call_stackt &context,
110110
unsigned unwind);

src/goto-symex/goto_symex.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ class goto_symext
284284

285285
// determine whether to unwind a loop -- true indicates abort,
286286
// with false we continue.
287-
virtual bool get_unwind(
287+
virtual bool should_stop_unwind(
288288
const symex_targett::sourcet &source,
289289
const goto_symex_statet::call_stackt &context,
290290
unsigned unwind);

src/goto-symex/symex_goto.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,8 @@ void goto_symext::symex_goto(statet &state)
8282
frame.loop_iterations[goto_programt::loop_id(*state.source.pc)].count;
8383
unwind++;
8484

85-
// continue unwinding?
86-
if(get_unwind(state.source, state.call_stack(), unwind))
85+
if(should_stop_unwind(state.source, state.call_stack(), unwind))
8786
{
88-
// no!
8987
loop_bound_exceeded(state, new_guard);
9088

9189
// next instruction
@@ -516,7 +514,7 @@ void goto_symext::loop_bound_exceeded(
516514
}
517515
}
518516

519-
bool goto_symext::get_unwind(
517+
bool goto_symext::should_stop_unwind(
520518
const symex_targett::sourcet &,
521519
const goto_symex_statet::call_stackt &,
522520
unsigned)

0 commit comments

Comments
 (0)