diff options
author | Leonardo Alt <leo@ethereum.org> | 2018-10-17 21:56:44 +0800 |
---|---|---|
committer | Leonardo Alt <leo@ethereum.org> | 2018-10-17 21:58:13 +0800 |
commit | afe83cc28b2b0f31a00911ed0b540e1beb038736 (patch) | |
tree | 77b65a99a105338802f58fc4f43789eced1b91cf /libsolidity/formal/SymbolicTypes.h | |
parent | aa23326e06b00ecbaab032d333a15b28f5aa71d7 (diff) | |
download | dexon-solidity-afe83cc28b2b0f31a00911ed0b540e1beb038736.tar dexon-solidity-afe83cc28b2b0f31a00911ed0b540e1beb038736.tar.gz dexon-solidity-afe83cc28b2b0f31a00911ed0b540e1beb038736.tar.bz2 dexon-solidity-afe83cc28b2b0f31a00911ed0b540e1beb038736.tar.lz dexon-solidity-afe83cc28b2b0f31a00911ed0b540e1beb038736.tar.xz dexon-solidity-afe83cc28b2b0f31a00911ed0b540e1beb038736.tar.zst dexon-solidity-afe83cc28b2b0f31a00911ed0b540e1beb038736.zip |
Refactor SymbolicAddressVariable and SymbolicVariable allocation
Diffstat (limited to 'libsolidity/formal/SymbolicTypes.h')
-rw-r--r-- | libsolidity/formal/SymbolicTypes.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libsolidity/formal/SymbolicTypes.h b/libsolidity/formal/SymbolicTypes.h index f9df6853..77822fed 100644 --- a/libsolidity/formal/SymbolicTypes.h +++ b/libsolidity/formal/SymbolicTypes.h @@ -36,10 +36,19 @@ bool isSupportedType(Type const& _type); bool isInteger(Type::Category _category); bool isInteger(Type const& _type); +bool isAddress(Type::Category _category); +bool isAddress(Type const& _type); + +bool isNumber(Type::Category _category); +bool isNumber(Type const& _type); + bool isBool(Type::Category _category); bool isBool(Type const& _type); std::shared_ptr<SymbolicVariable> newSymbolicVariable(Type const& _type, std::string const& _uniqueName, smt::SolverInterface& _solver); +smt::Expression minValue(IntegerType const& _type); +smt::Expression maxValue(IntegerType const& _type); + } } |