Add Address module in the WhyML prelude

In the `--formal` output, this commit adds a module called `Address`,
which defines the address type as unsigned integer type bounded at
2^160-1.
This commit is contained in:
Yoichi Hirai 2016-09-07 18:30:53 +02:00
parent ce11580988
commit a98edb22e5

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