diff options
author | Leonardo Alt <leo@ethereum.org> | 2018-07-27 15:14:50 +0800 |
---|---|---|
committer | Leonardo Alt <leo@ethereum.org> | 2018-07-27 22:01:48 +0800 |
commit | b356f6a7f9e4fcdfa0f7df2e938ad735d231e599 (patch) | |
tree | 8d463a692f32811f1b5c4f98676b1f778c8c1afc /libsolidity/formal/Z3Interface.cpp | |
parent | c633ebe2e6abb9799458c5e1730bd8919232f916 (diff) | |
download | dexon-solidity-b356f6a7f9e4fcdfa0f7df2e938ad735d231e599.tar.gz dexon-solidity-b356f6a7f9e4fcdfa0f7df2e938ad735d231e599.tar.zst dexon-solidity-b356f6a7f9e4fcdfa0f7df2e938ad735d231e599.zip |
Setting timeout to Z3 and CVC4
Diffstat (limited to 'libsolidity/formal/Z3Interface.cpp')
-rw-r--r-- | libsolidity/formal/Z3Interface.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libsolidity/formal/Z3Interface.cpp b/libsolidity/formal/Z3Interface.cpp index 7e0788b3..b57bcb94 100644 --- a/libsolidity/formal/Z3Interface.cpp +++ b/libsolidity/formal/Z3Interface.cpp @@ -28,7 +28,10 @@ using namespace dev::solidity::smt; Z3Interface::Z3Interface(): m_solver(m_context) { + // This needs to be set globally. z3::set_param("rewriter.pull_cheap_ite", true); + // This needs to be set in the context. + m_context.set("timeout", queryTimeout); } void Z3Interface::reset() |