MCPcopy Create free account
hub / github.com/argotorg/solidity / toString

Method toString

libsmtutil/SMTLib2Parser.cpp:30–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28using namespace solidity::smtutil;
29
30std::string SMTLib2Expression::toString() const {
31 return std::visit(solidity::util::GenericVisitor{
32 [](std::string const& _sv) { return _sv; },
33 [](std::vector<SMTLib2Expression> const& _subExpr) {
34 std::vector<std::string> formatted;
35 for (auto const& item: _subExpr)
36 formatted.emplace_back(item.toString());
37 return "(" + solidity::util::joinHumanReadable(formatted, " ") + ")";
38 }
39 }, data);
40}
41
42SMTLib2Expression SMTLib2Parser::parseExpression() {
43 skipWhitespace();

Callers 2

dumpQueryMethod · 0.45
toSMTUtilExpressionMethod · 0.45

Calls 1

joinHumanReadableFunction · 0.85

Tested by

no test coverage detected