Skip to content

Commit 4ded7d7

Browse files
author
Owen
committed
Move apply_goto_condition into goto_symext
This is in preparation for calling try_filter_value_sets in apply_goto_condition
1 parent 34bcb1f commit 4ded7d7

File tree

2 files changed

+18
-10
lines changed

2 files changed

+18
-10
lines changed

src/goto-symex/goto_symex.h

+16
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,22 @@ class goto_symext
315315
virtual void symex_other(statet &state);
316316

317317
void symex_assert(const goto_programt::instructiont &, statet &);
318+
319+
/// Propagate constants and points-to information implied by a GOTO condition.
320+
/// See \ref goto_statet::apply_condition for aspects of this which are common
321+
/// to GOTO and ASSUME instructions.
322+
/// \param current_state: state prior to the GOTO instruction
323+
/// \param jump_taken_state: state following taking the GOTO
324+
/// \param jump_not_taken_state: fall-through state
325+
/// \param new_guard: GOTO condition, L2 renamed and simplified
326+
/// \param ns: global namespace
327+
void apply_goto_condition(
328+
goto_symex_statet &current_state,
329+
goto_statet &jump_taken_state,
330+
goto_statet &jump_not_taken_state,
331+
const exprt &new_guard,
332+
const namespacet &ns);
333+
318334
virtual void vcc(
319335
const exprt &,
320336
const std::string &msg,

src/goto-symex/symex_goto.cpp

+2-10
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,8 @@ Author: Daniel Kroening, [email protected]
2222
#include <analyses/dirty.h>
2323
#include <util/simplify_expr.h>
2424

25-
/// Propagate constants and points-to information implied by a GOTO condition.
26-
/// See \ref goto_statet::apply_condition for aspects of this which are common
27-
/// to GOTO and ASSUME instructions.
28-
/// \param current_state: state prior to the GOTO instruction
29-
/// \param jump_taken_state: state following taking the GOTO
30-
/// \param jump_not_taken_state: fall-through state
31-
/// \param new_guard: GOTO condition, L2 renamed and simplified
32-
/// \param ns: global namespace
33-
static void apply_goto_condition(
34-
const goto_symex_statet &current_state,
25+
void goto_symext::apply_goto_condition(
26+
goto_symex_statet &current_state,
3527
goto_statet &jump_taken_state,
3628
goto_statet &jump_not_taken_state,
3729
const exprt &new_guard,

0 commit comments

Comments
 (0)