Currently optimization tests only support optimize_* functions with no inputs and a int output, as visible here. It would be useful to have optimization tests that support inputs and uint outputs as well.
Example of optimization test that currently won't be run:
function optimize_rateDifference() public returns (uint256) {
if (newRate < startingRate) {
return startingRate - newRate;
}
return 0;
}
Currently optimization tests only support
optimize_*
functions with no inputs and aint
output, as visible here. It would be useful to have optimization tests that support inputs anduint
outputs as well.Example of optimization test that currently won't be run: