Skip to content

Commit f083b9c

Browse files
committed
clean out goto_symext::symex_fkt
The method is no longer in use.
1 parent 268a0d0 commit f083b9c

File tree

3 files changed

+2
-48
lines changed

3 files changed

+2
-48
lines changed

src/goto-symex/goto_symex.h

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -442,10 +442,6 @@ class goto_symext
442442
virtual void symex_end_of_function(statet &);
443443

444444
/// Symbolic execution of a call to a function call.
445-
/// For functions starting with \c __CPROVER_fkt
446-
/// \ref goto_symext::symex_fkt
447-
/// For non-special functions see
448-
/// \ref goto_symext::symex_function_call_code
449445
/// \param get_goto_function: The delegate to retrieve function bodies (see
450446
/// \ref get_goto_functiont)
451447
/// \param state: Symbolic execution state for current instruction
@@ -754,16 +750,7 @@ class goto_symext
754750
/// \param code: right-hand side containing side effect
755751
virtual void
756752
symex_cpp_new(statet &state, const exprt &lhs, const side_effect_exprt &code);
757-
/// Symbolically execute a FUNCTION_CALL instruction for a function whose
758-
/// name starts with CPROVER_FKT_PREFIX
759-
/// \remarks
760-
/// While the name seems to imply that this would be called when symbolic
761-
/// execution doesn't know what to do, it may actually be derived from a
762-
/// German abbreviation for function.
763-
/// This should not be called as these functions should already be removed
764-
/// \param state: Symbolic execution state for current instruction
765-
/// \param code: The function call instruction
766-
virtual void symex_fkt(statet &state, const code_function_callt &code);
753+
767754
/// Symbolically execute an OTHER instruction that does a CPP `printf`
768755
/// \param state: Symbolic execution state for current instruction
769756
/// \param rhs: The cleaned up CPP `printf` instruction

src/goto-symex/symex_builtin_functions.cpp

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -534,28 +534,3 @@ void goto_symext::symex_cpp_delete(
534534
bool do_array=code.get(ID_statement)==ID_cpp_delete_array;
535535
#endif
536536
}
537-
538-
void goto_symext::symex_fkt(
539-
statet &,
540-
const code_function_callt &)
541-
{
542-
// TODO: uncomment this line when TG-4667 is done
543-
// UNREACHABLE;
544-
#if 0
545-
exprt new_fc(ID_function, fc.type());
546-
547-
new_fc.reserve_operands(fc.operands().size()-1);
548-
549-
bool first=true;
550-
551-
Forall_operands(it, fc)
552-
if(first)
553-
first=false;
554-
else
555-
new_fc.add_to_operands(std::move(*it));
556-
557-
new_fc.set(ID_identifier, fc.op0().get(ID_identifier));
558-
559-
fc.swap(new_fc);
560-
#endif
561-
}

src/goto-symex/symex_function_call.cpp

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -203,15 +203,7 @@ void goto_symext::symex_function_call_symbol(
203203

204204
PRECONDITION(code.function().id() == ID_symbol);
205205

206-
const irep_idt &identifier=
207-
to_symbol_expr(code.function()).get_identifier();
208-
209-
if(has_prefix(id2string(identifier), CPROVER_FKT_PREFIX))
210-
{
211-
symex_fkt(state, code);
212-
}
213-
else
214-
symex_function_call_code(get_goto_function, state, code);
206+
symex_function_call_code(get_goto_function, state, code);
215207
}
216208

217209
void goto_symext::symex_function_call_code(

0 commit comments

Comments
 (0)