diff options
author | chriseth <chris@ethereum.org> | 2016-09-09 23:34:52 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-09 23:34:52 +0800 |
commit | 2c4e9ece07216e4077dc94b10104237df0e6114a (patch) | |
tree | 619092789fc6d349842948236c1f2d5728941b35 | |
parent | 8040656d08e053fc2784000016103483438d0d35 (diff) | |
parent | a98edb22e57ba497ba1ec675e47439089ce9e140 (diff) | |
download | dexon-solidity-2c4e9ece07216e4077dc94b10104237df0e6114a.tar dexon-solidity-2c4e9ece07216e4077dc94b10104237df0e6114a.tar.gz dexon-solidity-2c4e9ece07216e4077dc94b10104237df0e6114a.tar.bz2 dexon-solidity-2c4e9ece07216e4077dc94b10104237df0e6114a.tar.lz dexon-solidity-2c4e9ece07216e4077dc94b10104237df0e6114a.tar.xz dexon-solidity-2c4e9ece07216e4077dc94b10104237df0e6114a.tar.zst dexon-solidity-2c4e9ece07216e4077dc94b10104237df0e6114a.zip |
Merge pull request #1047 from pirapira/address-in-prelude
formal verification: Add Address module in the WhyML prelude
-rw-r--r-- | libsolidity/formal/Why3Translator.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libsolidity/formal/Why3Translator.cpp b/libsolidity/formal/Why3Translator.cpp index 834024fa..b441b150 100644 --- a/libsolidity/formal/Why3Translator.cpp +++ b/libsolidity/formal/Why3Translator.cpp @@ -798,5 +798,14 @@ module UInt256 type t = uint256, constant max = max_uint256 end + +module Address + use import mach.int.Unsigned + type address + constant max_address: int = 0xffffffffffffffffffffffffffffffffffffffff (* 160 bit = 40 f's *) + clone export mach.int.Unsigned with + type t = address, + constant max = max_address +end )", 0}); } |