mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	Merge pull request #1047 from pirapira/address-in-prelude
formal verification: Add Address module in the WhyML prelude
This commit is contained in:
		
						commit
						2c4e9ece07
					
				| @ -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}); | ||||
| } | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user