Reasoning based optimizer.

This commit is contained in:
chriseth
2020-09-15 15:57:58 +02:00
parent 5355e85639
commit f73fb726af
23 changed files with 825 additions and 6 deletions
@@ -0,0 +1,14 @@
contract C {
function f(int a, int b) public pure returns (int) {
return a % b;
}
}
// ====
// compileViaYul: also
// ----
// f(int256,int256): 7, 5 -> 2
// f(int256,int256): 7, -5 -> 2
// f(int256,int256): -7, 5 -> -2
// f(int256,int256): -7, 5 -> -2
// f(int256,int256): -5, -5 -> 0