2020-07-22 14:52:28 +00:00
|
|
|
contract C {
|
|
|
|
function f(uint x, uint y) public returns (uint) {
|
|
|
|
return x**y;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// ====
|
2020-11-21 13:54:16 +00:00
|
|
|
// compileToEwasm: also
|
2021-03-12 23:02:36 +00:00
|
|
|
// compileViaYul: also
|
2020-07-22 14:52:28 +00:00
|
|
|
// ----
|
|
|
|
// f(uint256,uint256): 0, 0 -> 1
|
|
|
|
// f(uint256,uint256): 0, 1 -> 0x00
|
|
|
|
// f(uint256,uint256): 0, 2 -> 0x00
|
|
|
|
// f(uint256,uint256): 1, 0 -> 1
|
|
|
|
// f(uint256,uint256): 1, 1 -> 1
|
|
|
|
// f(uint256,uint256): 1, 2 -> 1
|
|
|
|
// f(uint256,uint256): 2, 0 -> 1
|
|
|
|
// f(uint256,uint256): 2, 1 -> 2
|
|
|
|
// f(uint256,uint256): 2, 2 -> 4
|
|
|
|
// f(uint256,uint256): 7, 63 -> 174251498233690814305510551794710260107945042018748343
|
2020-11-21 13:54:16 +00:00
|
|
|
// f(uint256,uint256): 128, 2 -> 0x4000
|