Merge pull request #1047 from pirapira/address-in-prelude

formal verification: Add Address module in the WhyML prelude
This commit is contained in:
chriseth 2016-09-09 17:34:52 +02:00 committed by GitHub
commit 2c4e9ece07

View File

@ -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});
}