Update commandline tests.

This commit is contained in:
chriseth 2021-09-15 17:40:11 +02:00
parent 8b3748e5b7
commit 3e429ab231
14 changed files with 24 additions and 2 deletions

View File

@ -288,6 +288,7 @@ object "C_81" {
power := exp(1, exponent)
}
/// @ast-id 80
/// @src 0:96:368 "function f(uint a, uint b, uint c, uint d) public pure returns (uint, int, uint, uint) {..."
function fun_f_80(var_a_4, var_b_6, var_c_8, var_d_10) -> var__13, var__15, var__17, var__19 {
/// @src 0:160:164 "uint"

View File

@ -105,7 +105,7 @@ object "C_59" {
mstore(4, 0x32)
revert(0, 0x24)
}
/// @src 0:381:623 "function sumArray(S[] memory _s) public returns (uint, string memory) {..."
/// @ast-id 58 @src 0:381:623 "function sumArray(S[] memory _s) public returns (uint, string memory) {..."
function fun_sumArray(var_s_mpos) -> var, var_mpos
{
/// @src 0:346:625 "contract C {..."

View File

@ -357,6 +357,7 @@ object "C_15" {
}
/// @ast-id 14
/// @src 0:93:145 "function f(uint[][] memory, E e) public pure {..."
function fun_f_14(var__7_mpos, var_e_10) {

View File

@ -68,7 +68,7 @@ object \"C_7\" {
{ tail := add(headStart, 0) }
function revert_error_42b3090547df1d2001c96683413b8cf91c1b902ef5e3cb8d9f6f304cf7446f74()
{ revert(0, 0) }
/// @src 0:92:119 \"function f() public pure {}\"
/// @ast-id 6 @src 0:92:119 \"function f() public pure {}\"
function fun_f_6()
{ }
}

View File

@ -98,6 +98,7 @@ object \"C_7\" {
revert(0, 0)
}
/// @ast-id 6
/// @src 0:92:119 \"function f() public pure {}\"
function fun_f_6() {

View File

@ -187,6 +187,7 @@ object \"D_16\" {
revert(pos, returndatasize())
}
/// @ast-id 15
/// @src 0:106:144 \"function f() public { C c = new C(); }\"
function fun_f_15() {

View File

@ -113,6 +113,7 @@ object "test_11" {
ret := 0
}
/// @ast-id 10
/// @src 0:99:167 "function f() public pure returns (bool) {..."
function fun_f_10() -> var__5 {
/// @src 0:133:137 "bool"

View File

@ -135,6 +135,7 @@ object \"C_54\" {
sstore(slot, update_byte_slice_32_shift_0(sload(slot), prepare_store_t_int256(convertedValue_0)))
}
/// @ast-id 20
/// @src 0:175:223 \"constructor(int _init)...\"
function constructor_C_54(var__init_12) {
@ -267,6 +268,7 @@ object \"C_54\" {
}
/// @ast-id 10
/// @src 0:152:171 \"int public stateVar\"
function getter_fun_stateVar_10() -> ret {
@ -325,6 +327,7 @@ object \"C_54\" {
sum := add(x, y)
}
/// @ast-id 30
/// @src 0:226:302 \"function f() external pure returns (int)...\"
function fun_f_30() -> var__23 {
/// @src 0:262:265 \"int\"
@ -395,6 +398,7 @@ object \"C_54\" {
sstore(slot, update_byte_slice_32_shift_0(sload(slot), prepare_store_t_int256(convertedValue_0)))
}
/// @ast-id 37
/// @src 0:304:341 \"modifier m()...\"
function modifier_m_40(var__42) -> _5 {
_5 := var__42
@ -539,6 +543,7 @@ object \"C_54\" {
}
/// @src 0:79:428 \"contract C...\"
/// @ast-id 53
/// @src 0:343:426 \"function f2() m public returns (int)...\"
function fun_f2_53() -> var__42 {
/// @src 0:375:378 \"int\"
@ -731,6 +736,7 @@ object \"D_72\" {
sstore(slot, update_byte_slice_32_shift_0(sload(slot), prepare_store_t_int256(convertedValue_0)))
}
/// @ast-id 71
/// @src 1:113:164 \"constructor(int _init2)...\"
function constructor_D_72(var__init2_63) {
/// @src 1:107:108 \"3\"
@ -760,6 +766,7 @@ object \"D_72\" {
converted := cleanup_t_int256(identity(cleanup_t_rational_42_by_1(value)))
}
/// @ast-id 20
/// @src 0:175:223 \"constructor(int _init)...\"
function constructor_C_54(var__init_12) {
@ -892,6 +899,7 @@ object \"D_72\" {
}
/// @ast-id 10
/// @src 0:152:171 \"int public stateVar\"
function getter_fun_stateVar_10() -> ret {
@ -950,6 +958,7 @@ object \"D_72\" {
sum := add(x, y)
}
/// @ast-id 30
/// @src 0:226:302 \"function f() external pure returns (int)...\"
function fun_f_30() -> var__23 {
/// @src 0:262:265 \"int\"
@ -1020,6 +1029,7 @@ object \"D_72\" {
sstore(slot, update_byte_slice_32_shift_0(sload(slot), prepare_store_t_int256(convertedValue_0)))
}
/// @ast-id 37
/// @src 0:304:341 \"modifier m()...\"
function modifier_m_40(var__42) -> _5 {
_5 := var__42
@ -1164,6 +1174,7 @@ object \"D_72\" {
}
/// @src 1:91:166 \"contract D is C(3)...\"
/// @ast-id 53
/// @src 0:343:426 \"function f2() m public returns (int)...\"
function fun_f2_53() -> var__42 {
/// @src 0:375:378 \"int\"

View File

@ -333,6 +333,7 @@ object "D_27" {
converted := copy_literal_to_memory_5bde9a896e3f09acac1496d16642fcdd887d2a000bf1ab18bdff3f17b91e320b()
}
/// @ast-id 26
/// @src 0:336:597 "function f() /* @use-src 0:\"input.sol\", 1:\"#utility.yul\" @ast-id 15 *\/ public returns (string memory) { C c = new /// @src 0:149:156 \"new C()\"..."
function fun_f_26() -> var__5_mpos {
/// @src 0:423:436 "string memory"

View File

@ -192,6 +192,7 @@ object \"C_11\" {
converted := copy_literal_to_memory_9f0adad0a59b05d2e04a1373342b10b9eb16c57c164c8a3bfcbf46dccee39a21()
}
/// @ast-id 10
/// @src 0:91:162 \"function f() external pure returns (string memory) { return \\\"abcabc\\\"; }\"
function fun_f_10() -> var__5_mpos {
/// @src 0:127:140 \"string memory\"

View File

@ -116,6 +116,7 @@ object \"C_11\" {
converted := 0x6162636162630000000000000000000000000000000000000000000000000000
}
/// @ast-id 10
/// @src 0:91:156 \"function f() external pure returns (bytes32) { return \\\"abcabc\\\"; }\"
function fun_f_10() -> var__5 {
/// @src 0:127:134 \"bytes32\"

View File

@ -127,6 +127,7 @@ object \"C_11\" {
converted := cleanup_t_bytes4(shift_left_224(cleanup_t_rational_1633837924_by_1(value)))
}
/// @ast-id 10
/// @src 0:91:157 \"function f() external pure returns (bytes4) { return 0x61626364; }\"
function fun_f_10() -> var__5 {
/// @src 0:127:133 \"bytes4\"

View File

@ -196,6 +196,7 @@ object \"C_11\" {
converted := copy_literal_to_memory_d6604f85ac07e2b33103a620b3d3d75b0473c7214912beded67b9b624d41c571()
}
/// @ast-id 10
/// @src 0:91:241 \"function f() external pure returns (string memory) { return \\\"abcdabcdcafecafeabcdabcdcafecafeffffzzzzoooo0123456789,.<,>.?:;'[{]}|`~!@#$%^&*()-_=+\\\"; }\"
function fun_f_10() -> var__5_mpos {
/// @src 0:127:140 \"string memory\"

View File

@ -127,6 +127,7 @@ object \"C_11\" {
converted := cleanup_t_bytes4(shift_left_224(cleanup_t_rational_2864434397_by_1(value)))
}
/// @ast-id 10
/// @src 0:91:157 \"function f() external pure returns (bytes4) { return 0xaabbccdd; }\"
function fun_f_10() -> var__5 {
/// @src 0:127:133 \"bytes4\"