solang-parser 0.2.1

Solang Solidity Parser
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
contract C {
    function f() public view returns (bool ret) {
        assembly {
            let x := calldataload(0)
            mstore(0, x)
            mstore(0x20, x)
            let a := keccak256(0, 4)
            let b := keccak256(0x20, 4)
            ret := eq(a, b)
        }
    }
}
// ====
// compileViaYul: also
// ----
// f() -> true