Instruction | Add | Args | Ret | SideEffects | Gas |
---|---|---|---|---|---|
STOP | 0 | 0 | 0 | true | Zero |
KECCAK256 | 0 | 2 | 1 | true | Special |
CALLDATACOPY | 0 | 3 | 0 | true | VeryLow |
CODECOPY | 0 | 3 | 0 | true | VeryLow |
EXTCODECOPY | 0 | 4 | 0 | true | ExtCode |
RETURNDATACOPY | 0 | 3 | 0 | true | VeryLow |
MLOAD | 0 | 1 | 1 | true | VeryLow |
MSTORE | 0 | 2 | 0 | true | VeryLow |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Create directories | |
for char in {A..Z}; do | |
mkdir -p $char | |
done | |
# Move file according to Alphabetical order | |
for char in {A..Z}; do | |
mv $char*.pdf $char | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
contract Arraysum { | |
uint256[] values; | |
function sumArray() public view returns(uint) { | |
uint sum = 0; | |
for(uint i = 0; i < values.length; i++) | |
sum += values[i]; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
======= /tmp/deposit.sol:DepositContract ======= | |
Developer Documentation | |
{ | |
"kind": "dev", | |
"methods": | |
{ | |
"deposit(bytes,bytes,bytes,bytes32)": | |
{ | |
"params": |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -u /tmp/abiOptold.yul /tmp/abiOpt.yul | |
--- /tmp/abiOptold.yul 2020-07-16 17:42:12.321040915 +0530 | |
+++ /tmp/abiOpt.yul 2020-07-16 17:41:26.225218259 +0530 | |
@@ -35,9 +35,9 @@ | |
case 0x19da7652 { | |
if callvalue() { revert(_2, _2) } | |
let param, param_1, param_2, param_3 := abi_decode_tuple_t_array$_t_uint256_$30_memory_ptrt_array$_t_string_memory_ptr_$dyn_memory_ptrt_uint16t_address(_1, calldatasize()) | |
- let ret_1, ret_2 := fun_f6_120(param, param_1, param_2, param_3) | |
+ let vloc__114_mpos, vloc__117_mpos := fun_f6_120() | |
let memPos_1 := allocateMemory(_2) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -u /tmp/abiOpt.yul /tmp/new.yul | |
--- /tmp/abiOpt.yul 2020-07-16 17:41:26.225218259 +0530 | |
+++ /tmp/new.yul 2020-07-22 15:29:25.538743429 +0530 | |
@@ -34,38 +34,38 @@ | |
} | |
case 0x19da7652 { | |
if callvalue() { revert(_2, _2) } | |
- let param, param_1, param_2, param_3 := abi_decode_tuple_t_array$_t_uint256_$30_memory_ptrt_array$_t_string_memory_ptr_$dyn_memory_ptrt_uint16t_address(_1, calldatasize()) | |
+ abi_decode_tuple_t_array$_t_uint256_$30_memory_ptrt_array$_t_string_memory_ptr_$dyn_memory_ptrt_uint16t_address(_1, calldatasize()) | |
let vloc__114_mpos, vloc__117_mpos := fun_f6_120() |
code | file |
---|---|
uint _newParentSkillNumber = _parentSkillNumber - 2**i; | colonyNetwork/contracts/colonyNetwork/ColonyNetwork.sol |
uint x = mul(10**sub(36, daysOpen), sub(864000, mul(9,r))) / 864000; | colonyNetwork/contracts/colonyNetwork/ColonyNetworkAuction.sol |
bytes32 shifted = bytes32(uint256(uint256(2) ** uint256(role))); | colonyNetwork/contracts/common/DomainRoles.sol |
by |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Optimized IR: | |
/******************************************************* | |
* WARNING * | |
* Solidity to Yul compilation is still EXPERIMENTAL * | |
* It can result in LOSS OF FUNDS or worse * | |
* !USE AT YOUR OWN RISK! * | |
*******************************************************/ | |
object "DexConstraintPoly_10" { | |
code { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Optimized IR: | |
/******************************************************* | |
,* WARNING * | |
,* Solidity to Yul compilation is still EXPERIMENTAL * | |
,* It can result in LOSS OF FUNDS or worse * | |
,* !USE AT YOUR OWN RISK! * | |
,*******************************************************/ | |
object "C_164" { | |
code { |
OlderNewer