[Sol -> Yul] Implement Int/Bool Unary: ++, --, ~, !

This commit is contained in:
Mathias Baumann
2019-05-20 11:43:12 +02:00
parent 4f3b7b232b
commit 7dbcb80523
5 changed files with 244 additions and 4 deletions
+4 -1
View File
@@ -175,8 +175,11 @@ public:
/// If @a _startSuffix == @a _endSuffix, the empty string is returned.
static std::string suffixedVariableNameList(std::string const& _baseName, size_t _startSuffix, size_t _endSuffix);
private:
std::string incrementCheckedFunction(Type const& _type);
std::string decrementCheckedFunction(Type const& _type);
private:
/// Special case of conversionFunction - handles everything that does not
/// use exactly one variable to hold the value.
std::string conversionFunctionSpecial(Type const& _from, Type const& _to);