mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
SMTCheckerTests: Use SMT callback
This commit is contained in:
parent
1d60559551
commit
58d0579ba6
@ -133,6 +133,11 @@ void SMTCheckerTest::setupCompiler()
|
||||
compiler().setModelCheckerSettings(m_modelCheckerSettings);
|
||||
}
|
||||
|
||||
std::unique_ptr<CompilerStack> SMTCheckerTest::createStack() const
|
||||
{
|
||||
return std::make_unique<CompilerStack>(m_smtCommand.solver());
|
||||
}
|
||||
|
||||
void SMTCheckerTest::filterObtainedErrors()
|
||||
{
|
||||
SyntaxTest::filterObtainedErrors();
|
||||
|
@ -23,6 +23,7 @@
|
||||
#include <libsmtutil/SolverInterface.h>
|
||||
|
||||
#include <libsolidity/formal/ModelChecker.h>
|
||||
#include <libsolidity/interface/SMTSolverCommand.h>
|
||||
|
||||
#include <string>
|
||||
|
||||
@ -39,6 +40,9 @@ public:
|
||||
SMTCheckerTest(std::string const& _filename);
|
||||
|
||||
void setupCompiler() override;
|
||||
|
||||
std::unique_ptr<CompilerStack> createStack() const override;
|
||||
|
||||
void filterObtainedErrors() override;
|
||||
|
||||
void printUpdatedExpectations(std::ostream& _stream, std::string const& _linePrefix) const override;
|
||||
@ -65,6 +69,8 @@ protected:
|
||||
bool m_ignoreCex = false;
|
||||
|
||||
std::vector<SyntaxTestError> m_unfilteredErrorList;
|
||||
|
||||
mutable SMTSolverCommand m_smtCommand;
|
||||
};
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user