2020-03-09 21:14:07 +00:00
|
|
|
contract C {
|
|
|
|
function f(uint256 d) public pure returns (uint256) {
|
|
|
|
addmod(1, 2, d);
|
|
|
|
return 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
function g(uint256 d) public pure returns (uint256) {
|
|
|
|
mulmod(1, 2, d);
|
|
|
|
return 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
function h() public pure returns (uint256) {
|
|
|
|
mulmod(0, 1, 2);
|
|
|
|
mulmod(1, 0, 2);
|
|
|
|
addmod(0, 1, 2);
|
|
|
|
addmod(1, 0, 2);
|
|
|
|
return 2;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-04-26 00:18:10 +00:00
|
|
|
// ====
|
2020-11-21 13:54:16 +00:00
|
|
|
// compileToEwasm: also
|
2020-03-09 21:14:07 +00:00
|
|
|
// ----
|
2020-10-13 11:28:39 +00:00
|
|
|
// f(uint256): 0 -> FAILURE, hex"4e487b71", 0x12
|
|
|
|
// g(uint256): 0 -> FAILURE, hex"4e487b71", 0x12
|
2020-03-09 21:14:07 +00:00
|
|
|
// h() -> 2
|