second-state / SOLL

SOLL is a new compiler for generate Ewasm from solidity and yul. See a demo here: https://asciinema.org/a/ezJqNLicn5fya02zwu4VXIo8a
https://www.secondstate.io/
378 stars 24 forks source link

Invalid operands to binary expression ('uint256' and 'bool') when compiling Uniswap YUL #111

Closed eee4017 closed 3 years ago

eee4017 commented 3 years ago

When we try to compile UniswapV3Pool.yul, soll failed to convert uint256 and bool in the following statement.

var_z_6542 := add(div(var_x_6537, var_y_6539), gt(mod(var_x_6537, var_y_6539), 0))
eee4017 commented 3 years ago

Solved in #114