mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Explain IntIntFun and merge assertion.
This commit is contained in:
parent
762d591a47
commit
0e2a9658d2
@ -44,7 +44,9 @@ enum class CheckResult
|
||||
|
||||
enum class Sort
|
||||
{
|
||||
Int, Bool, IntIntFun
|
||||
Int,
|
||||
Bool,
|
||||
IntIntFun // Function of one Int returning a single Int
|
||||
};
|
||||
|
||||
/// C++ representation of an SMTLIB2 expression.
|
||||
@ -120,8 +122,10 @@ public:
|
||||
}
|
||||
Expression operator()(Expression _a) const
|
||||
{
|
||||
solAssert(sort == Sort::IntIntFun, "Attempted function application to non-function.");
|
||||
solAssert(arguments.empty(), "Attempted function application to non-function.");
|
||||
solAssert(
|
||||
sort == Sort::IntIntFun && arguments.empty(),
|
||||
"Attempted function application to non-function."
|
||||
);
|
||||
return Expression(name, _a, Sort::Int);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user