Skip to content
EVM Bytecode Super Optimizer
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
doc/logo
lib
test
.gitignore
LICENSE
Makefile
README.md
dune
dune-project
ebso.ml
ebso.opam
ebso.sh

README.md

ebso

An EVM Byte code Super Optimizer

The tool ebso automatically finds optimizations for loop-free Ethereum byte code. Therefore ebso employs a method called unbounded superoptimization (Jangda & Yorsh, 2017), which relies on a constraint solver to guarantee correctness of the transformation. Through superoptimization ebso automatically finds programs that need less gas, but are observationally equivalent. The search for these cheaper programs is encoded as an SMT problem, which ebso solves relying on Z3.

Installation and Running

The easiest way to install ebso is using opam. Simply run opam install . after cloning the repository. Afterwards one can run ebso -help for information on how to call ebso.

Example

$ ./ebso -translation-validation 256 -direct "600003600301"
Optimized PUSH 0 SUB PUSH 3 ADD to
PUSH 3 SUB
Saved 6 gas, translation validation successful,
this instruction sequence is optimal.
You can’t perform that action at this time.