Merge pull request #10234 from ethereum/smt_named_arguments

[SMTChecker] Support named arguments in function calls
This commit is contained in:
Leonardo
2020-11-20 12:24:51 -01:00
committed by GitHub
12 changed files with 120 additions and 41 deletions
+6
View File
@@ -1908,7 +1908,13 @@ public:
void accept(ASTConstVisitor& _visitor) const override;
Expression const& expression() const { return *m_expression; }
/// @returns the given arguments in the order they were written.
std::vector<ASTPointer<Expression const>> arguments() const { return {m_arguments.begin(), m_arguments.end()}; }
/// @returns the given arguments sorted by how the called function takes them.
std::vector<ASTPointer<Expression const>> sortedArguments() const;
/// @returns the list of given argument names if this is a named call,
/// in the order they were written.
/// If this is not a named call, this is empty.
std::vector<ASTPointer<ASTString>> const& names() const { return m_names; }
FunctionCallAnnotation& annotation() const override;