mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Report safe properties in BMC and CHC
This commit is contained in:
@@ -445,7 +445,7 @@ std::optional<Json::Value> checkSettingsKeys(Json::Value const& _input)
|
||||
|
||||
std::optional<Json::Value> checkModelCheckerSettingsKeys(Json::Value const& _input)
|
||||
{
|
||||
static set<string> keys{"contracts", "divModNoSlacks", "engine", "extCalls", "invariants", "showUnproved", "solvers", "targets", "timeout"};
|
||||
static set<string> keys{"contracts", "divModNoSlacks", "engine", "extCalls", "invariants", "showProvedSafe", "showUnproved", "solvers", "targets", "timeout"};
|
||||
return checkKeys(_input, keys, "modelChecker");
|
||||
}
|
||||
|
||||
@@ -1047,6 +1047,14 @@ std::variant<StandardCompiler::InputsAndSettings, Json::Value> StandardCompiler:
|
||||
ret.modelCheckerSettings.invariants = invariants;
|
||||
}
|
||||
|
||||
if (modelCheckerSettings.isMember("showProvedSafe"))
|
||||
{
|
||||
auto const& showProvedSafe = modelCheckerSettings["showProvedSafe"];
|
||||
if (!showProvedSafe.isBool())
|
||||
return formatFatalError(Error::Type::JSONError, "settings.modelChecker.showProvedSafe must be a Boolean value.");
|
||||
ret.modelCheckerSettings.showProvedSafe = showProvedSafe.asBool();
|
||||
}
|
||||
|
||||
if (modelCheckerSettings.isMember("showUnproved"))
|
||||
{
|
||||
auto const& showUnproved = modelCheckerSettings["showUnproved"];
|
||||
|
||||
Reference in New Issue
Block a user