Do not create VCs for underoverflow by default for Sol >=0.8

This commit is contained in:
Leo Alt
2021-08-09 14:12:31 +02:00
parent 6ec711b2f0
commit ee6285d6d7
28 changed files with 341 additions and 329 deletions
+4
View File
@@ -45,6 +45,10 @@ SMTCheckerTest::SMTCheckerTest(string const& _filename): SyntaxTest(_filename, E
m_modelCheckerSettings.solvers &= ModelChecker::availableSolvers();
/// Underflow and Overflow are not enabled by default for Solidity >=0.8.7,
/// so we explicitly enable all targets for the tests.
m_modelCheckerSettings.targets = ModelCheckerTargets::All();
auto engine = ModelCheckerEngine::fromString(m_reader.stringSetting("SMTEngine", "all"));
if (engine)
m_modelCheckerSettings.engine = *engine;
+12 -9
View File
@@ -43,16 +43,19 @@ public:
void filterObtainedErrors() override;
protected:
/// This contains engine and timeout.
/// The engine can be set via option SMTEngine in the test.
/// The possible options are `all`, `chc`, `bmc`, `none`,
/// where the default is `all`.
ModelCheckerSettings m_modelCheckerSettings;
/*
Options that can be set in the test:
SMTEngine: `all`, `chc`, `bmc`, `none`, where the default is `all`.
Set in m_modelCheckerSettings.
SMTIgnoreCex: `yes`, `no`, where the default is `no`.
Set in m_ignoreCex.
SMTShowUnproved: `yes`, `no`, where the default is `yes`.
Set in m_modelCheckerSettings.
SMTSolvers: `all`, `cvc4`, `z3`, `none`, where the default is `all`.
Set in m_modelCheckerSettings.
*/
/// This is set via option SMTSolvers in the test.
/// The possible options are `all`, `z3`, `cvc4`, `none`,
/// where if none is given the default used option is `all`.
smtutil::SMTSolverChoice m_enabledSolvers;
ModelCheckerSettings m_modelCheckerSettings;
bool m_ignoreCex = false;
};