aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/formal/SMTLib2Interface.h
diff options
context:
space:
mode:
authorLeonardo Alt <leo@ethereum.org>2018-10-25 22:00:09 +0800
committerLeonardo Alt <leo@ethereum.org>2018-11-15 16:12:42 +0800
commit70bb0eaf95ab6a549f875b845395b31a5d49f99e (patch)
tree99853ad465f155d92598d2a152510b066efa395a /libsolidity/formal/SMTLib2Interface.h
parent92ebf6606764748229acf07e83dbe3824bde540e (diff)
downloaddexon-solidity-70bb0eaf95ab6a549f875b845395b31a5d49f99e.tar.gz
dexon-solidity-70bb0eaf95ab6a549f875b845395b31a5d49f99e.tar.zst
dexon-solidity-70bb0eaf95ab6a549f875b845395b31a5d49f99e.zip
[SMTChecker] Implement uninterpreted functions and use it for blockhash()
Diffstat (limited to 'libsolidity/formal/SMTLib2Interface.h')
-rw-r--r--libsolidity/formal/SMTLib2Interface.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/libsolidity/formal/SMTLib2Interface.h b/libsolidity/formal/SMTLib2Interface.h
index eb876a7f..08ad74da 100644
--- a/libsolidity/formal/SMTLib2Interface.h
+++ b/libsolidity/formal/SMTLib2Interface.h
@@ -49,7 +49,7 @@ public:
void push() override;
void pop() override;
- void declareFunction(std::string _name, Sort _domain, Sort _codomain) override;
+ void declareFunction(std::string _name, std::vector<Sort> const& _domain, Sort _codomain) override;
void declareInteger(std::string _name) override;
void declareBool(std::string _name) override;
@@ -58,6 +58,7 @@ public:
private:
std::string toSExpr(Expression const& _expr);
+ std::string toSmtLibSort(Sort _sort);
void write(std::string _data);