diff options
author | Leonardo Alt <leo@ethereum.org> | 2018-11-21 23:57:02 +0800 |
---|---|---|
committer | Leonardo Alt <leo@ethereum.org> | 2018-11-22 17:04:04 +0800 |
commit | 13a142b0395ec6a590f45c724e382e797bffb125 (patch) | |
tree | e8dd0af844116a71629f7e43e7414d3596d93962 /libsolidity/formal/CVC4Interface.h | |
parent | dc748bc7712257b4e027a7f99d86737dd9f93ecd (diff) | |
download | dexon-solidity-13a142b0395ec6a590f45c724e382e797bffb125.tar.gz dexon-solidity-13a142b0395ec6a590f45c724e382e797bffb125.tar.zst dexon-solidity-13a142b0395ec6a590f45c724e382e797bffb125.zip |
[SMTChecker] Add FunctionSort and refactors the solver interface to create variables
Diffstat (limited to 'libsolidity/formal/CVC4Interface.h')
-rw-r--r-- | libsolidity/formal/CVC4Interface.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/libsolidity/formal/CVC4Interface.h b/libsolidity/formal/CVC4Interface.h index f354c790..bbe23855 100644 --- a/libsolidity/formal/CVC4Interface.h +++ b/libsolidity/formal/CVC4Interface.h @@ -51,9 +51,7 @@ public: void push() override; void pop() override; - void declareFunction(std::string _name, std::vector<SortPointer> const& _domain, Sort const& _codomain) override; - void declareInteger(std::string _name) override; - void declareBool(std::string _name) override; + void declareVariable(std::string const&, Sort const&) override; void addAssertion(Expression const& _expr) override; std::pair<CheckResult, std::vector<std::string>> check(std::vector<Expression> const& _expressionsToEvaluate) override; @@ -65,8 +63,7 @@ private: CVC4::ExprManager m_context; CVC4::SmtEngine m_solver; - std::map<std::string, CVC4::Expr> m_constants; - std::map<std::string, CVC4::Expr> m_functions; + std::map<std::string, CVC4::Expr> m_variables; }; } |