Update tests.

This commit is contained in:
chriseth
2021-01-20 18:25:27 +01:00
parent 3cc07694ed
commit bbd29b24ab
16 changed files with 161 additions and 83 deletions
@@ -40,7 +40,7 @@ object "Arraysum_34" {
mstore(_1, _1)
vloc_sum := checked_add_t_uint256(vloc_sum, sload(add(keccak256(_1, 0x20), vloc_i)))
}
let memPos := allocateMemory(_1)
let memPos := allocate_memory(_1)
return(memPos, sub(abi_encode_uint(memPos, vloc_sum), memPos))
}
}
@@ -51,7 +51,7 @@ object "Arraysum_34" {
tail := add(headStart, 32)
mstore(headStart, value0)
}
function allocateMemory(size) -> memPtr
function allocate_memory(size) -> memPtr
{
memPtr := mload(64)
let newFreePtr := add(memPtr, and(add(size, 31), not(31)))