mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Add option divModWithSlacks
This commit is contained in:
@@ -1916,6 +1916,9 @@ pair<smtutil::Expression, smtutil::Expression> SMTEncoder::divModWithSlacks(
|
||||
IntegerType const& _type
|
||||
)
|
||||
{
|
||||
if (m_settings.divModNoSlacks)
|
||||
return {_left / _right, _left % _right};
|
||||
|
||||
IntegerType const* intType = &_type;
|
||||
string suffix = "div_mod_" + to_string(m_context.newUniqueId());
|
||||
smt::SymbolicIntVariable dSymb(intType, intType, "d_" + suffix, m_context);
|
||||
|
||||
Reference in New Issue
Block a user