Skip to content

Commit 5caa59f

Browse files
authored
Merge pull request #3850 from diffblue/remove_CPROVER_MACRO
remove CPROVER_MACRO and goto_symext::symex_macro
2 parents 97cd228 + 957e981 commit 5caa59f

File tree

4 files changed

+0
-44
lines changed

4 files changed

+0
-44
lines changed

src/goto-symex/goto_symex.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,6 @@ class goto_symext
413413
virtual void symex_cpp_new(
414414
statet &, const exprt &lhs, const side_effect_exprt &);
415415
virtual void symex_fkt(statet &, const code_function_callt &);
416-
virtual void symex_macro(statet &, const code_function_callt &);
417416
virtual void symex_trace(statet &, const code_function_callt &);
418417
virtual void symex_printf(statet &, const exprt &rhs);
419418
virtual void symex_input(statet &, const codet &);

src/goto-symex/symex_builtin_functions.cpp

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -513,40 +513,3 @@ void goto_symext::symex_fkt(
513513
fc.swap(new_fc);
514514
#endif
515515
}
516-
517-
void goto_symext::symex_macro(
518-
statet &,
519-
const code_function_callt &code)
520-
{
521-
const irep_idt &identifier=code.op0().get(ID_identifier);
522-
523-
PRECONDITION(identifier == CPROVER_MACRO_PREFIX "waitfor");
524-
#if 0
525-
exprt new_fc("waitfor", fc.type());
526-
527-
if(fc.operands().size()!=4)
528-
throw "waitfor expected to have four operands";
529-
530-
exprt &cycle_var=fc.op1();
531-
exprt &bound=fc.op2();
532-
exprt &predicate=fc.op3();
533-
534-
if(cycle_var.id()!=ID_symbol)
535-
throw "waitfor expects symbol as first operand but got "+
536-
cycle_var.id();
537-
538-
exprt new_cycle_var(cycle_var);
539-
new_cycle_var.id("waitfor_symbol");
540-
new_cycle_var.copy_to_operands(bound);
541-
542-
replace_expr(cycle_var, new_cycle_var, predicate);
543-
544-
new_fc.operands().resize(4);
545-
new_fc.op0().swap(cycle_var);
546-
new_fc.op1().swap(new_cycle_var);
547-
new_fc.op2().swap(bound);
548-
new_fc.op3().swap(predicate);
549-
550-
fc.swap(new_fc);
551-
#endif
552-
}

src/goto-symex/symex_function_call.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -216,10 +216,6 @@ void goto_symext::symex_function_call_symbol(
216216
{
217217
symex_fkt(state, code);
218218
}
219-
else if(has_prefix(id2string(identifier), CPROVER_MACRO_PREFIX))
220-
{
221-
symex_macro(state, code);
222-
}
223219
else
224220
symex_function_call_code(get_goto_function, state, code);
225221
}

src/util/cprover_prefix.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,5 @@ Author: Daniel Kroening, [email protected]
1414
#define CPROVER_PREFIX "__CPROVER_"
1515
// NOLINTNEXTLINE(build/deprecated)
1616
#define CPROVER_FKT_PREFIX "__CPROVER_fkt_"
17-
// NOLINTNEXTLINE(build/deprecated)
18-
#define CPROVER_MACRO_PREFIX "__CPROVER_macro_"
1917

2018
#endif // CPROVER_UTIL_CPROVER_PREFIX_H

0 commit comments

Comments
 (0)