Skip to content

Instantly share code, notes, and snippets.

@pirapira
Created May 25, 2018 21:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pirapira/758f1ebc8d6384d3b66cc8846318ff3f to your computer and use it in GitHub Desktop.
Save pirapira/758f1ebc8d6384d3b66cc8846318ff3f to your computer and use it in GitHub Desktop.
evm code that adds two numbers from the storage and writes the result to storage
~/src/solidity/build((v0.4.21)) $ lllc/lllc < ../../cpp-ethereum/build-tsan/add-storage.lll
60015460005401600255
~/src/solidity/build((v0.4.21)) $ cat ../../cpp-ethereum/build-tsan/add-storage.lll
(sstore 2 (+ (sload 0) (sload 1)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment