[SMTChecker] Support named arguments in function calls

This commit is contained in:
Leonardo Alt
2020-11-20 11:52:26 -01:00
parent 8d315ee130
commit e4339b0526
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;