20 std::stringstream in_stream(input);
21 std::stringstream out_stream;
23 return {
smt2irep(in_stream, message_handler), out_stream.str()};
27 std::ostream &output_stream,
30 const std::string printed_irep =
33 :
"empty optional irep";
34 output_stream <<
'{' << printed_irep <<
", \"" << test_result.
messages
40 std::string expected_error)
41 : expected_error{std::move(expected_error)}
55 "\" printed to output.";
60 return {std::move(parse_tree),
""};
There are a large number of kinds of tree structured or tree-like data in CPROVER.
std::string expected_error
smt2_parser_error_containingt(std::string expected_error)
bool match(const smt2_parser_test_resultt &exception) const override
std::string describe() const override
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...
std::optional< irept > parsed_output
bool operator==(const smt2_parser_test_resultt &left, const smt2_parser_test_resultt &right)
Author: Diffblue Ltd.
std::ostream & operator<<(std::ostream &output_stream, const smt2_parser_test_resultt &test_result)
smt2_parser_test_resultt smt2_parser_success(irept parse_tree)