35 std::stack<irept> stack;
45 throw error(
"unexpected end of file");
64 throw error(
"unexpected ')'");
67 irept tmp = stack.top();
73 stack.top().
get_sub().push_back(tmp);
79 throw error(
"unexpected token");
There are a large number of kinds of tree structured or tree-like data in CPROVER.
source_locationt source_location
Class that provides messages with a built-in verbosity 'level'.
unsigned get_line_no() const
smt2_errort error() const
generate an error exception
std::optional< irept > operator()()
smt2irept(std::istream &_in, message_handlert &message_handler)
void set_line(const irep_idt &line)
std::optional< irept > smt2irep(std::istream &in, message_handlert &message_handler)
returns an irep for an SMT-LIB2 expression read from a given stream returns {} when EOF is encountere...