Skip to content

remove CPROVER_MACRO and goto_symext::symex_macro #3850

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 19, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/goto-symex/goto_symex.h
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,6 @@ class goto_symext
virtual void symex_cpp_new(
statet &, const exprt &lhs, const side_effect_exprt &);
virtual void symex_fkt(statet &, const code_function_callt &);
virtual void symex_macro(statet &, const code_function_callt &);
virtual void symex_trace(statet &, const code_function_callt &);
virtual void symex_printf(statet &, const exprt &rhs);
virtual void symex_input(statet &, const codet &);
Expand Down
37 changes: 0 additions & 37 deletions src/goto-symex/symex_builtin_functions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -513,40 +513,3 @@ void goto_symext::symex_fkt(
fc.swap(new_fc);
#endif
}

void goto_symext::symex_macro(
statet &,
const code_function_callt &code)
{
const irep_idt &identifier=code.op0().get(ID_identifier);

PRECONDITION(identifier == CPROVER_MACRO_PREFIX "waitfor");
#if 0
exprt new_fc("waitfor", fc.type());

if(fc.operands().size()!=4)
throw "waitfor expected to have four operands";

exprt &cycle_var=fc.op1();
exprt &bound=fc.op2();
exprt &predicate=fc.op3();

if(cycle_var.id()!=ID_symbol)
throw "waitfor expects symbol as first operand but got "+
cycle_var.id();

exprt new_cycle_var(cycle_var);
new_cycle_var.id("waitfor_symbol");
new_cycle_var.copy_to_operands(bound);

replace_expr(cycle_var, new_cycle_var, predicate);

new_fc.operands().resize(4);
new_fc.op0().swap(cycle_var);
new_fc.op1().swap(new_cycle_var);
new_fc.op2().swap(bound);
new_fc.op3().swap(predicate);

fc.swap(new_fc);
#endif
}
4 changes: 0 additions & 4 deletions src/goto-symex/symex_function_call.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -216,10 +216,6 @@ void goto_symext::symex_function_call_symbol(
{
symex_fkt(state, code);
}
else if(has_prefix(id2string(identifier), CPROVER_MACRO_PREFIX))
{
symex_macro(state, code);
}
else
symex_function_call_code(get_goto_function, state, code);
}
Expand Down
2 changes: 0 additions & 2 deletions src/util/cprover_prefix.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,5 @@ Author: Daniel Kroening, [email protected]
#define CPROVER_PREFIX "__CPROVER_"
// NOLINTNEXTLINE(build/deprecated)
#define CPROVER_FKT_PREFIX "__CPROVER_fkt_"
// NOLINTNEXTLINE(build/deprecated)
#define CPROVER_MACRO_PREFIX "__CPROVER_macro_"

#endif // CPROVER_UTIL_CPROVER_PREFIX_H