Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions test/libsolidity/semanticTests/abiEncoderV1/abi_encode.sol
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ contract C {

// ====
// compileViaYul: also
// compileToEwasm: also
// ----
// f0() -> 0x20, 0x0
// f1() -> 0x20, 0x40, 0x1, 0x2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ contract C {

// ====
// compileViaYul: also
// compileToEwasm: also
// ----
// f() -> 0x21, 0x40, 0x7, "abcdefg"
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ contract C {

// ====
// compileViaYul: also
// compileToEwasm: also
// ----
// f() -> 0x20, 0x40, 0x1, -2
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ contract C {
}
// ====
// compileViaYul: also
// compileToEwasm: also
// ----
// f(uint256,uint256[],uint256): 6, 0x60, 9, 0x8000000000000000000000000000000000000000000000000000000000000002, 1, 2 -> FAILURE
// f(uint256,uint256[],uint256): 6, 0x60, 9, 0x8000000000000000000000000000000000000000000000000000000000000002, 1, 2 -> FAILURE
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ contract C {

// ====
// compileViaYul: also
// compileToEwasm: also
// ----
// f(uint256,uint256): 42, 23 -> 42, 23, 42, 23
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@ contract C {

// ====
// compileViaYul: also
// compileToEwasm: also
// ----
// f() -> 0x40, 0xa0, 0x40, 0x20, 0x0, 0x0
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@ contract C {

// ====
// compileViaYul: also
// compileToEwasm: also
// ----
// f() -> 0x20, 0x40, 0x1, -2
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ contract C {
}
// ====
// compileViaYul: also
// compileToEwasm: also
// ----
// f(bool): true -> true
// f(bool): false -> false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ contract C {
}
// ====
// compileViaYul: also
// compileToEwasm: also
// ----
// f(uint256[][2][]): 0x20, 0x01, 0x20, 0x40, 0x60, 0x00, 0x00 -> 23 # this is the common encoding for x.length == 1 && x[0][0].length == 0 && x[0][1].length == 0 #
// f(uint256[][2][]): 0x20, 0x01, 0x20, 0x00, 0x00 -> 23 # exotic, but still valid encoding #
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ contract C {
}
// ====
// compileViaYul: also
// compileToEwasm: also
// ----
// f(uint16,int16,address,bytes3,bool): 1, 2, 3, "a", true -> 1, 2, 3, "a", true
// f(uint16,int16,address,bytes3,bool): 0xffffff, 0x1ffff, 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff, "abcd", 1 -> FAILURE
Expand Down
1 change: 1 addition & 0 deletions test/libsolidity/semanticTests/abiEncoderV2/enums.sol
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ contract C {
}
// ====
// compileViaYul: also
// compileToEwasm: also
// ----
// f(uint8): 0 -> 0
// f(uint8): 1 -> 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ contract C {
}
// ====
// compileViaYul: also
// compileToEwasm: also
// ----
// f((int256,uint256,bytes16)): 0xff010, 0xff0002, "abcd" -> 0xff010, 0xff0002, "abcd"
// f((int256,uint256,bytes16)): 0xff010, 0xff0002, 0x1111222233334444555566667777888800000000000000000000000000000000 -> 0xff010, 0xff0002, left(0x11112222333344445555666677778888)
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@ contract C {
}
// ====
// compileViaYul: also
// compileToEwasm: also
// ----
// f((uint256,uint8,uint8,bytes2)): 1, 2, 3, "ab" -> 1, 2, 3, 0x6162
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ contract Lotto {
}
// ====
// compileViaYul: also
// compileToEwasm: also
// ----
// ticketPrice() -> 555
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ contract Lotto {

// ====
// compileViaYul: also
// compileToEwasm: also
// ----
// ticketPrice() -> 500
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@ contract C {

// ====
// compileViaYul: also
// compileToEwasm: also
// ----
// test() -> 0
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ contract C {

// ====
// compileViaYul: also
// compileToEwasm: also
// ----
// f(uint256): 0 -> FAILURE
// g(uint256): 0 -> FAILURE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ contract C {
}
// ====
// compileViaYul: also
// compileToEwasm: also
// ----
// div(uint256,uint256): 7, 2 -> 3
// div(uint256,uint256): 7, 0 -> FAILURE # throws #
Expand Down
1 change: 1 addition & 0 deletions test/libsolidity/semanticTests/array/calldata_array.sol
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@ contract C {
}
// ====
// compileViaYul: also
// compileToEwasm: also
// ----
// f(uint256[2]): 42, 23 -> 42, 23
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ contract C {
}
// ====
// compileViaYul: also
// compileToEwasm: also
// ----
// f(uint256[][]): 0x20, 0x0 -> 42 # valid access stub #
// f(uint256[][]): 0x20, 0x1 -> FAILURE # invalid on argument decoding #
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,6 @@ contract C {

// ====
// compileViaYul: also
// compileToEwasm: also
// ----
// f((uint256,uint256)[]): 0x20, 0x2, 0x1, 0x2, 0x3, 0x4 -> 2, 1, 2, 3, 4
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ contract C {
}
// ====
// compileViaYul: also
// compileToEwasm: also
// ----
// f(uint256[],uint256,uint256): 0x80, 0, 0, 0, 1, 42 ->
// f(uint256[],uint256,uint256): 0x80, 0, 1, 0, 1, 42 ->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@ contract C {
}
// ====
// compileViaYul: also
// compileToEwasm: also
// ----
// f() -> 1, 2, 3
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ contract C {
}
// ====
// compileViaYul: also
// compileToEwasm: also
// ----
// f() -> "a"
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ contract C {
}
// ====
// compileViaYul: also
// compileToEwasm: also
// ----
// f() -> "a"
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ contract C {
}
// ====
// compileViaYul: also
// compileToEwasm: also
// ----
// f(bytes): 0x20, 0x08, "abcdefgh" -> "a"
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ contract C {

// ====
// compileViaYul: also
// compileToEwasm: also
// ----
// one() -> 3
// two() -> FAILURE
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@ contract C {
}
// ====
// compileViaYul: also
// compileToEwasm: also
// ----
// f() -> 2, 3, 4
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ contract C {
}
// ====
// compileViaYul: also
// compileToEwasm: also
// ----
// f() -> 7
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ contract C {
}}
// ====
// compileViaYul: also
// compileToEwasm: also
// ----
// f() -> FAILURE
// g() -> FAILURE
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,6 @@ contract C {
}
// ====
// compileViaYul: also
// compileToEwasm: also
// ----
// f() -> 7
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ contract A {
}
// ====
// compileViaYul: also
// compileToEwasm: also
// ----
// test() -> false
// testIt() -> FAILURE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ contract c {
}
// ====
// compileViaYul: also
// compileToEwasm: also
// ----
// test(uint256[8],uint256[],uint256[5],uint256,uint256,uint256): 1, 2, 3, 4, 5, 6, 7, 8, 0x220, 21, 22, 23, 24, 25, 0, 1, 2, 3, 11, 12, 13 -> 1, 12, 23
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ contract c {
}
// ====
// compileViaYul: also
// compileToEwasm: also
// ----
// storage: empty
// fill() ->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ contract c {
}
// ====
// compileViaYul: also
// compileToEwasm: also
// ----
// setIDStatic(uint256): 0xb ->
// getID(uint256): 0x2 -> 0xb
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ contract C {
}
// ====
// compileViaYul: also
// compileToEwasm: also
// ----
// f(bytes32): "789" -> 32, 16, 8
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ contract c {

// ====
// compileViaYul: also
// compileToEwasm: also
// ----
// length() -> 4
// set(uint256,uint256): 3, 4 -> true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ contract C {
}
// ====
// compileViaYul: also
// compileToEwasm: also
// ----
// test(uint256,uint256): 10, 0 -> 11
// test(uint256,uint256): 10, 1 -> 12
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ contract C {

// ====
// compileViaYul: also
// compileToEwasm: also
// ----
// f() -> 3
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@ contract Test {
}
// ====
// compileViaYul: also
// compileToEwasm: also
// ----
// f() -> 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x07
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@ contract C {

// ====
// compileViaYul: also
// compileToEwasm: also
// ----
// f() -> 1, 2, 3, 4, 5
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ contract C {
}
// ====
// compileViaYul: also
// compileToEwasm: also
// ----
// f() -> 4
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@ contract C {

// ====
// compileViaYul: also
// compileToEwasm: also
// ----
// f() -> 3, 6
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@ contract C {

// ====
// compileViaYul: also
// compileToEwasm: also
// ----
// f() -> 0x40, 0x80, 0x3, "ray", 0x2, "mi"
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ contract C {

// ====
// compileViaYul: also
// compileToEwasm: also
// ----
// f(uint256): 0 -> 0x20, 0x4, "This"
// f(uint256): 1 -> 0x20, 0x2, "is"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ contract c {
}
// ====
// compileViaYul: also
// compileToEwasm: also
// ----
// test() -> FAILURE
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@ contract c {
}
// ====
// compileViaYul: also
// compileToEwasm: also
// ----
// test() -> 3
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@ contract c {
}
// ====
// compileViaYul: also
// compileToEwasm: also
// ----
// test() -> 2, 1, 1
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@ contract c {
}
// ====
// compileViaYul: also
// compileToEwasm: also
// ----
// test() -> FAILURE
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@ contract c {
}
// ====
// compileViaYul: also
// compileToEwasm: also
// ----
// test() -> 3
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ contract c {
}
// ====
// compileViaYul: also
// compileToEwasm: also
// ----
// test() ->
// storage: empty
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@ contract c {
}
// ====
// compileViaYul: also
// compileToEwasm: also
// ----
// test() -> false
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ contract c {
}
// ====
// compileViaYul: also
// compileToEwasm: also
// ----
// storage: empty
// fill() ->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@ contract C {
}
// ====
// compileViaYul: also
// compileToEwasm: also
// ----
// f() -> 6
Loading