Update tests.

This commit is contained in:
chriseth
2021-08-16 22:24:06 +02:00
parent 94c4e1e172
commit 704820cc6e
17 changed files with 103 additions and 35 deletions
+39 -7
View File
@@ -182,36 +182,64 @@ object "C_81" {
cleaned := value
}
function cleanup_t_rational_0_by_1(value) -> cleaned {
cleaned := value
}
function cleanup_t_rational_10_by_1(value) -> cleaned {
cleaned := value
}
function cleanup_t_rational_115792089237316195423570985008687907853269984665640564039457584007913129639935_by_1(value) -> cleaned {
cleaned := value
}
function cleanup_t_rational_1_by_1(value) -> cleaned {
cleaned := value
}
function cleanup_t_rational_2_by_1(value) -> cleaned {
cleaned := value
}
function cleanup_t_rational_minus_1_by_1(value) -> cleaned {
cleaned := value
}
function cleanup_t_rational_minus_2_by_1(value) -> cleaned {
cleaned := value
}
function cleanup_t_uint256(value) -> cleaned {
cleaned := value
}
function convert_t_rational_0_by_1_to_t_uint256(value) -> converted {
converted := cleanup_t_uint256(value)
converted := cleanup_t_uint256(identity(cleanup_t_rational_0_by_1(value)))
}
function convert_t_rational_10_by_1_to_t_uint256(value) -> converted {
converted := cleanup_t_uint256(value)
converted := cleanup_t_uint256(identity(cleanup_t_rational_10_by_1(value)))
}
function convert_t_rational_115792089237316195423570985008687907853269984665640564039457584007913129639935_by_1_to_t_uint256(value) -> converted {
converted := cleanup_t_uint256(value)
converted := cleanup_t_uint256(identity(cleanup_t_rational_115792089237316195423570985008687907853269984665640564039457584007913129639935_by_1(value)))
}
function convert_t_rational_1_by_1_to_t_uint256(value) -> converted {
converted := cleanup_t_uint256(value)
converted := cleanup_t_uint256(identity(cleanup_t_rational_1_by_1(value)))
}
function convert_t_rational_2_by_1_to_t_uint256(value) -> converted {
converted := cleanup_t_uint256(value)
converted := cleanup_t_uint256(identity(cleanup_t_rational_2_by_1(value)))
}
function convert_t_rational_minus_1_by_1_to_t_int256(value) -> converted {
converted := cleanup_t_int256(value)
converted := cleanup_t_int256(identity(cleanup_t_rational_minus_1_by_1(value)))
}
function convert_t_rational_minus_2_by_1_to_t_int256(value) -> converted {
converted := cleanup_t_int256(value)
converted := cleanup_t_int256(identity(cleanup_t_rational_minus_2_by_1(value)))
}
/// @src 0:96:368
@@ -340,6 +368,10 @@ object "C_81" {
}
/// @src 0:82:370
function identity(value) -> ret {
ret := value
}
function panic_error_0x11() {
mstore(0, 35408467139433450592217433187231851964531694900788300625387963629091585785856)
mstore(4, 0x11)
+2 -2
View File
@@ -48,7 +48,7 @@ object "C_59" {
for { } lt(i, _4) { i := add(i, 1) }
{
if slt(sub(calldatasize(), src), _2) { revert(_1, _1) }
let value := allocate_memory_1228()
let value := allocate_memory_1236()
mstore(value, calldataload(src))
mstore(dst, value)
dst := add(dst, _2)
@@ -79,7 +79,7 @@ object "C_59" {
}
tail := add(add(headStart, and(add(length, 31), not(31))), 96)
}
function allocate_memory_1228() -> memPtr
function allocate_memory_1236() -> memPtr
{
memPtr := mload(64)
let newFreePtr := add(memPtr, 32)
@@ -53,6 +53,10 @@ object \"C_54\" {
cleaned := value
}
function cleanup_t_rational_42_by_1(value) -> cleaned {
cleaned := value
}
/// @src 0:175:223
function constructor_C_54(var__init_12) {
@@ -74,11 +78,11 @@ object \"C_54\" {
/// @src 0:79:428
function convert_t_int256_to_t_int256(value) -> converted {
converted := cleanup_t_int256(value)
converted := cleanup_t_int256(identity(cleanup_t_int256(value)))
}
function convert_t_rational_42_by_1_to_t_int256(value) -> converted {
converted := cleanup_t_int256(value)
converted := cleanup_t_int256(identity(cleanup_t_rational_42_by_1(value)))
}
function copy_arguments_for_constructor_20_object_C_54() -> ret_param_0 {
@@ -98,6 +102,10 @@ object \"C_54\" {
mstore(64, newFreePtr)
}
function identity(value) -> ret {
ret := value
}
function panic_error_0x41() {
mstore(0, 35408467139433450592217433187231851964531694900788300625387963629091585785856)
mstore(4, 0x41)
@@ -261,6 +269,10 @@ object \"C_54\" {
cleaned := value
}
function cleanup_t_rational_41_by_1(value) -> cleaned {
cleaned := value
}
function cleanup_t_uint160(value) -> cleaned {
cleaned := and(value, 0xffffffffffffffffffffffffffffffffffffffff)
}
@@ -279,11 +291,11 @@ object \"C_54\" {
}
function convert_t_int256_to_t_int256(value) -> converted {
converted := cleanup_t_int256(value)
converted := cleanup_t_int256(identity(cleanup_t_int256(value)))
}
function convert_t_rational_41_by_1_to_t_int256(value) -> converted {
converted := cleanup_t_int256(value)
converted := cleanup_t_int256(identity(cleanup_t_rational_41_by_1(value)))
}
function convert_t_uint160_to_t_address(value) -> converted {
@@ -291,7 +303,7 @@ object \"C_54\" {
}
function convert_t_uint160_to_t_uint160(value) -> converted {
converted := cleanup_t_uint160(value)
converted := cleanup_t_uint160(identity(cleanup_t_uint160(value)))
}
function extract_from_storage_value_dynamict_int256(slot_value, offset) -> value {
@@ -400,6 +412,10 @@ object \"C_54\" {
}
/// @src 0:79:428
function identity(value) -> ret {
ret := value
}
function increment_t_int256(value) -> ret {
value := cleanup_t_int256(value)
if eq(value, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff) { panic_error_0x11() }
@@ -610,6 +626,14 @@ object \"D_72\" {
cleaned := value
}
function cleanup_t_rational_3_by_1(value) -> cleaned {
cleaned := value
}
function cleanup_t_rational_42_by_1(value) -> cleaned {
cleaned := value
}
/// @src 0:175:223
function constructor_C_54(var__init_12) {
@@ -652,15 +676,15 @@ object \"D_72\" {
/// @src 1:91:166
function convert_t_int256_to_t_int256(value) -> converted {
converted := cleanup_t_int256(value)
converted := cleanup_t_int256(identity(cleanup_t_int256(value)))
}
function convert_t_rational_3_by_1_to_t_int256(value) -> converted {
converted := cleanup_t_int256(value)
converted := cleanup_t_int256(identity(cleanup_t_rational_3_by_1(value)))
}
function convert_t_rational_42_by_1_to_t_int256(value) -> converted {
converted := cleanup_t_int256(value)
converted := cleanup_t_int256(identity(cleanup_t_rational_42_by_1(value)))
}
function copy_arguments_for_constructor_71_object_D_72() -> ret_param_0 {
@@ -684,6 +708,10 @@ object \"D_72\" {
mstore(64, newFreePtr)
}
function identity(value) -> ret {
ret := value
}
function panic_error_0x11() {
mstore(0, 35408467139433450592217433187231851964531694900788300625387963629091585785856)
mstore(4, 0x11)
@@ -865,6 +893,10 @@ object \"D_72\" {
cleaned := value
}
function cleanup_t_rational_41_by_1(value) -> cleaned {
cleaned := value
}
function cleanup_t_uint160(value) -> cleaned {
cleaned := and(value, 0xffffffffffffffffffffffffffffffffffffffff)
}
@@ -883,11 +915,11 @@ object \"D_72\" {
}
function convert_t_int256_to_t_int256(value) -> converted {
converted := cleanup_t_int256(value)
converted := cleanup_t_int256(identity(cleanup_t_int256(value)))
}
function convert_t_rational_41_by_1_to_t_int256(value) -> converted {
converted := cleanup_t_int256(value)
converted := cleanup_t_int256(identity(cleanup_t_rational_41_by_1(value)))
}
function convert_t_uint160_to_t_address(value) -> converted {
@@ -895,7 +927,7 @@ object \"D_72\" {
}
function convert_t_uint160_to_t_uint160(value) -> converted {
converted := cleanup_t_uint160(value)
converted := cleanup_t_uint160(identity(cleanup_t_uint160(value)))
}
function extract_from_storage_value_dynamict_int256(slot_value, offset) -> value {
@@ -1004,6 +1036,10 @@ object \"D_72\" {
}
/// @src 1:91:166
function identity(value) -> ret {
ret := value
}
function increment_t_int256(value) -> ret {
value := cleanup_t_int256(value)
if eq(value, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff) { panic_error_0x11() }
@@ -93,7 +93,7 @@ object \"C_11\" {
}
function convert_t_rational_1633837924_by_1_to_t_bytes4(value) -> converted {
converted := shift_left_224(cleanup_t_rational_1633837924_by_1(value))
converted := cleanup_t_bytes4(shift_left_224(cleanup_t_rational_1633837924_by_1(value)))
}
/// @src 0:91:157
@@ -93,7 +93,7 @@ object \"C_11\" {
}
function convert_t_rational_2864434397_by_1_to_t_bytes4(value) -> converted {
converted := shift_left_224(cleanup_t_rational_2864434397_by_1(value))
converted := cleanup_t_bytes4(shift_left_224(cleanup_t_rational_2864434397_by_1(value)))
}
/// @src 0:91:157