Display better error message in SMTLib2

This commit is contained in:
Leonardo Alt
2018-11-23 09:43:49 +01:00
parent f44be616c9
commit f3c2309c73
3 changed files with 10 additions and 8 deletions
+4 -4
View File
@@ -39,8 +39,8 @@ using namespace dev;
using namespace dev::solidity;
using namespace dev::solidity::smt;
SMTLib2Interface::SMTLib2Interface(map<h256, string> const& _smtlib2Responses):
m_smtlib2Responses(_smtlib2Responses)
SMTLib2Interface::SMTLib2Interface(map<h256, string> const& _queryResponses):
m_queryResponses(_queryResponses)
{
reset();
}
@@ -215,8 +215,8 @@ vector<string> SMTLib2Interface::parseValues(string::const_iterator _start, stri
string SMTLib2Interface::querySolver(string const& _input)
{
h256 inputHash = dev::keccak256(_input);
if (m_smtlib2Responses.count(inputHash))
return m_smtlib2Responses.at(inputHash);
if (m_queryResponses.count(inputHash))
return m_queryResponses.at(inputHash);
else
{
m_unhandledQueries.push_back(_input);