Data structure for representing an arbitrary statement in a program. More...
#include <std_code_base.h>
codet type that represents multiple statements, return the first of them. codet type that represents multiple statements, return the first of them. codet type that represents multiple statements, return the last of them. codet type that represents multiple statements, return the last of them. location, if it is non-nil. location, if it is non-nil. other, if it has any. other, if it has any. exprt's operands. exprt's operands. exprt's operands. exprt's operands. exprt's operands. true. false. Data structure for representing an arbitrary statement in a program.
Every specific type of statement (e.g. block of statements, assignment, if-then-else statement...) is represented by a subtype of codet. codets are represented to be subtypes of exprt since statements can occur in an expression context in C: for example, the assignment x = y; is an expression with return value y. For other types of statements in an expression context, see e.g. https://gcc.gnu.org/onlinedocs/gcc/Statement-Exprs.html. To distinguish a codet from other exprts, we set its id() to ID_code. To distinguish different types of codet, we use a named sub ID_statement.
Definition at line 28 of file std_code_base.h.
codet to be constructed, e.g. ID_block for a code_blockt or ID_assign for a code_frontend_assignt. Definition at line 34 of file std_code_base.h.
Definition at line 39 of file std_code_base.h.
codet to be constructed, e.g. ID_block for a code_blockt or ID_assign for a code_frontend_assignt. Definition at line 49 of file std_code_base.h.
Definition at line 54 of file std_code_base.h.
In the case of a codet type that represents multiple statements, return the first of them.
Otherwise return the codet itself.
Definition at line 18 of file std_code.cpp.
In the case of a codet type that represents multiple statements, return the first of them.
Otherwise return the codet itself.
Definition at line 35 of file std_code.cpp.
Definition at line 65 of file std_code_base.h.
In the case of a codet type that represents multiple statements, return the last of them.
Otherwise return the codet itself.
Definition at line 52 of file std_code.cpp.
In the case of a codet type that represents multiple statements, return the last of them.
Otherwise return the codet itself.
Definition at line 69 of file std_code.cpp.
Definition at line 60 of file std_code_base.h.