Go to the documentation of this file.
40 for(jsil_parse_treet::itemst::const_iterator
41 it=parse_tree.
items.begin();
42 it!=parse_tree.
items.end();
46 it->to_symbol(new_symbol);
54 if(s.
value.
id()==
"no-body-just-yet")
82 if(a.
rhs().
id()==ID_with)
96 t_c.
add_catch(std::move(d), std::move(g));
101 else if(a.
rhs().
id()==ID_side_effect &&
139 catch(
const std::string &e)
Class that provides messages with a built-in verbosity 'level'.
dstringt has one field, an unsigned integer no which is an index into a static table of strings.
side_effect_expr_function_callt & to_side_effect_expr_function_call(exprt &expr)
#define Forall_operands(it, expr)
codet representation of a try/catch block.
A side_effect_exprt representation of a function call side effect.
static symbol_exprt typeless(const irep_idt &id)
Generate a symbol_exprt without a proper type.
A codet representing the declaration of a local variable.
Base class for all expressions.
side_effect_exprt & to_side_effect_expr(exprt &expr)
const codet & to_code(const exprt &expr)
goto_instruction_codet representation of a function call statement.
codet representation of a goto statement.
const irep_idt & get_identifier() const
bool operator()(const jsil_parse_treet &parse_tree, message_handlert &)
jsil_convertt(symbol_tablet &_symbol_table)
const symbol_exprt & to_symbol_expr(const exprt &expr)
Cast an exprt to a symbol_exprt.
const irep_idt & id() const
bool remove(const irep_idt &name)
Remove a symbol from the symbol table.
const with_exprt & to_with_expr(const exprt &expr)
Cast an exprt to a with_exprt.
const irep_idt & get_statement() const
bool add(const symbolt &symbol)
Add a new symbol to the symbol table.
exprt value
Initial value of symbol.
symbol_tablet & symbol_table
exprt::operandst & arguments()
bool convert_code(const symbolt &symbol, codet &code)
bool jsil_convert(const jsil_parse_treet &parse_tree, symbol_tablet &symbol_table, message_handlert &message_handler)
const symbolt * lookup(const irep_idt &name) const
Find a symbol in the symbol table for read-only access.
source_locationt & add_source_location()
void add_catch(code_frontend_declt &&to_catch, codet &&code_catch)
A goto_instruction_codet representing an assignment in the program.
const irep_idt & get_statement() const
const source_locationt & source_location() const
irep_idt name
The unique identifier.
const code_assignt & to_code_assign(const goto_instruction_codet &code)
Data structure for representing an arbitrary statement in a program.