cprover
|
Program Transformation. More...
#include "goto_program.h"
#include <ostream>
#include <util/std_expr.h>
#include <langapi/language_util.h>
Go to the source code of this file.
Functions | |
void | parse_lhs_read (const exprt &src, std::list< exprt > &dest) |
std::list< exprt > | expressions_read (const goto_programt::instructiont &instruction) |
std::list< exprt > | expressions_written (const goto_programt::instructiont &instruction) |
void | objects_read (const exprt &src, std::list< exprt > &dest) |
std::list< exprt > | objects_read (const goto_programt::instructiont &instruction) |
void | objects_written (const exprt &src, std::list< exprt > &dest) |
std::list< exprt > | objects_written (const goto_programt::instructiont &instruction) |
std::string | as_string (const class namespacet &ns, const goto_programt::instructiont &i) |
Program Transformation.
Definition in file goto_program.cpp.
std::string as_string | ( | const class namespacet & | ns, |
const goto_programt::instructiont & | i | ||
) |
Definition at line 397 of file goto_program.cpp.
References ASSERT, ASSIGN, ASSUME, ATOMIC_BEGIN, ATOMIC_END, CATCH, comment(), DEAD, DECL, END_FUNCTION, END_THREAD, from_expr(), FUNCTION_CALL, GOTO, id2string(), LOCATION, NO_INSTRUCTION_TYPE, OTHER, RETURN, SKIP, START_THREAD, and THROW.
std::list<exprt> expressions_read | ( | const goto_programt::instructiont & | instruction | ) |
Definition at line 260 of file goto_program.cpp.
References code_function_callt::arguments(), ASSERT, ASSIGN, ASSUME, forall_expr, FUNCTION_CALL, GOTO, irept::is_not_nil(), code_assignt::lhs(), code_function_callt::lhs(), parse_lhs_read(), RETURN, code_returnt::return_value(), code_assignt::rhs(), to_code_assign(), to_code_function_call(), and to_code_return().
Referenced by objects_read(), and uninitialized_domaint::transform().
std::list<exprt> expressions_written | ( | const goto_programt::instructiont & | instruction | ) |
Definition at line 305 of file goto_program.cpp.
References ASSIGN, FUNCTION_CALL, irept::is_not_nil(), code_assignt::lhs(), code_function_callt::lhs(), to_code_assign(), and to_code_function_call().
Referenced by objects_written(), and uninitialized_domaint::transform().
Definition at line 333 of file goto_program.cpp.
References forall_operands, irept::id(), exprt::op0(), and exprt::operands().
Referenced by uninitializedt::add_assertions(), uninitializedt::get_tracking(), and objects_read().
std::list<exprt> objects_read | ( | const goto_programt::instructiont & | instruction | ) |
Definition at line 357 of file goto_program.cpp.
References expressions_read(), forall_expr_list, and objects_read().
Definition at line 370 of file goto_program.cpp.
References irept::id(), exprt::op1(), exprt::op2(), and exprt::operands().
Referenced by uninitializedt::add_assertions(), and objects_written().
std::list<exprt> objects_written | ( | const goto_programt::instructiont & | instruction | ) |
Definition at line 384 of file goto_program.cpp.
References expressions_written(), forall_expr_list, and objects_written().
Definition at line 233 of file goto_program.cpp.
References irept::id(), exprt::op0(), exprt::op1(), exprt::op2(), and exprt::operands().
Referenced by expressions_read().