Remove EWASM backend.

This commit is contained in:
Alexander Arlt
2023-05-11 10:56:55 -05:00
parent 0a0c389541
commit c5673278a7
1042 changed files with 97 additions and 10946 deletions
@@ -22,8 +22,6 @@ contract test {
return sum;
}
}
// ====
// compileToEwasm: also
// ----
// f(uint256[]): 32, 3, 1000, 1, 2 -> 3
// f(uint256[]): 32, 3, 100, 500, 300 -> 600
@@ -8,8 +8,6 @@ contract C {
}
function t() public pure returns (uint) { return 7; }
}
// ====
// compileToEwasm: false
// ----
// library: L
// f() -> 7
@@ -7,8 +7,6 @@ contract C {
return (x.mul)({x: a});
}
}
// ====
// compileToEwasm: false
// ----
// library: D
// f(uint256): 7 -> 0x2a
@@ -11,8 +11,6 @@ contract C {
return s.length();
}
}
// ====
// compileToEwasm: false
// ----
// library: D
// f() -> 3
@@ -21,8 +21,5 @@ contract test {
return x()()()();
}
}
// ====
// compileToEwasm: also
// ----
// f() -> 2
@@ -11,9 +11,6 @@ contract test {
return flag;
}
}
// ====
// compileToEwasm: also
// ----
// f() -> true
// flag() -> true
@@ -17,8 +17,6 @@ contract C {
return (get_ptr(foo))();
}
}
// ====
// compileToEwasm: also
// ----
// associated() -> 42
// unassociated() -> 42
@@ -21,9 +21,6 @@ contract C {
return 7;
}
}
// ====
// compileToEwasm: also
// ----
// f() -> FAILURE
// g() -> FAILURE
@@ -12,8 +12,6 @@ contract collatz {
return 3 * x + 1;
}
}
// ====
// compileToEwasm: also
// ----
// run(uint256): 0 -> 0
// run(uint256): 1 -> 1
@@ -11,8 +11,6 @@ contract C {
return 7;
}
}
// ====
// compileToEwasm: also
// ----
// intern() -> FAILURE, hex"4e487b71", 0x51 # This should throw exceptions #
// extern() -> FAILURE
@@ -15,8 +15,5 @@ contract C {
return 2;
}
}
// ====
// compileToEwasm: also
// ----
// t() -> FAILURE, hex"4e487b71", 0x51
@@ -15,7 +15,5 @@ contract C {
return 2;
}
}
// ====
// compileToEwasm: also
// ----
// t() -> FAILURE, hex"4e487b71", 0x51
@@ -6,7 +6,5 @@ contract C {
return (false ? g : h)(2, 1);
}
}
// ====
// compileToEwasm: also
// ----
// f() -> 1
@@ -2,7 +2,5 @@ contract test {
function a(uint a, uint b, uint c) public returns (uint r) { r = a * 100 + b * 10 + c * 1; }
function b() public returns (uint r) { r = a({c: 3, a: 1, b: 2}); }
}
// ====
// compileToEwasm: also
// ----
// b() -> 123
@@ -9,7 +9,6 @@ contract C {
return this.g(2 * n);
}
}
// ----
// g(uint256): 4 -> 5
// f(uint256): 2 -> 5
@@ -16,7 +16,6 @@ contract C {
return 1 + c;
}
}
// ====
// EVMVersion: >=byzantium
// ----
@@ -16,7 +16,6 @@ contract C {
return sum;
}
}
// ====
// EVMVersion: >=byzantium
// ----
@@ -20,7 +20,6 @@ contract C {
return 1 + c;
}
}
// ----
// constructor(), 1 ether ->
// gas irOptimized: 265110
@@ -20,7 +20,6 @@ contract C {
return 1 + c;
}
}
// ====
// EVMVersion: >=byzantium
// revertStrings: debug
@@ -9,7 +9,6 @@ contract C {
return this.g{value: 10}(n);
}
}
// ----
// g(uint256), 1 ether: 4 -> 1000000000000000000000, 4
// f(uint256), 11 ether: 2 -> 10000, 2
@@ -11,8 +11,5 @@ contract c {
r_b = b;
}
}
// ====
// compileToEwasm: also
// ----
// test(uint256,uint256): 2, 3 -> 9, 3
@@ -14,9 +14,6 @@ contract B is A {
return f();
}
}
// ====
// compileToEwasm: also
// ----
// f() -> 2
// g() -> 2
@@ -9,7 +9,5 @@ contract C {
}
}
// ====
// compileToEwasm: also
// ----
// f() -> 7, 3
@@ -36,7 +36,6 @@ contract test {
myBal = address(this).balance;
}
}
// ----
// constructor(), 20 wei ->
// gas irOptimized: 260052
@@ -35,7 +35,6 @@ contract test {
myBal = address(this).balance;
}
}
// ----
// constructor(), 20 wei ->
// gas irOptimized: 260052
@@ -34,8 +34,6 @@ contract Child is Base {
BaseBase.init(c, d);
}
}
// ====
// compileToEwasm: also
// ----
// x() -> 0
// y() -> 0
@@ -18,8 +18,6 @@ contract Child is Base {
Base.init(c, d);
}
}
// ====
// compileToEwasm: also
// ----
// x() -> 0
// y() -> 0
@@ -9,7 +9,5 @@ contract Child is Base {
return f(n);
}
}
// ====
// compileToEwasm: also
// ----
// g(uint256): 4 -> 8
@@ -22,8 +22,6 @@ contract Child is Base {
return s(n);
}
}
// ====
// compileToEwasm: also
// ----
// g(uint256): 4 -> 12
// h(uint256): 4 -> 16
@@ -25,8 +25,6 @@ contract Child is Base {
return BaseBase.s(n);
}
}
// ====
// compileToEwasm: also
// ----
// g(uint256): 4 -> 8
// k(uint256): 4 -> 16
@@ -9,7 +9,5 @@ contract Child is Base {
return Base.f(n);
}
}
// ====
// compileToEwasm: also
// ----
// g(uint256): 4 -> 8
@@ -14,7 +14,5 @@ contract C is V
{
function a() internal view override returns (uint256) { return 42; }
}
// ====
// compileToEwasm: also
// ----
// b() -> 42
@@ -15,7 +15,5 @@ contract B is A, I {
return super.f();
}
}
// ====
// compileToEwasm: also
// ----
// f() -> 42
@@ -15,7 +15,5 @@ contract B is A, I {
return super.f();
}
}
// ====
// compileToEwasm: also
// ----
// f() -> 42
@@ -14,7 +14,6 @@ contract test {
}
// ====
// allowNonExistingFunctions: true
// compileToEwasm: also
// ----
// data() -> 8
// name() -> "Celina"
@@ -6,7 +6,6 @@ contract test {
}
// ====
// allowNonExistingFunctions: true
// compileToEwasm: also
// ----
// a() -> 0
// b() -> 1
@@ -3,7 +3,5 @@ contract test {
y1 = x2; y2 = x1;
}
}
// ====
// compileToEwasm: also
// ----
// run(bool,uint256): true, 0xcd -> 0xcd, true, 0
@@ -3,8 +3,6 @@ contract test {
function b() public returns (uint r) { r = a({a: 1, b: 2, c: 3}); }
function c() public returns (uint r) { r = a({b: 2, c: 3, a: 1}); }
}
// ====
// compileToEwasm: also
// ----
// b() -> 123
// c() -> 123
@@ -26,8 +26,6 @@ contract C {
return 500;
}
}
// ====
// compileToEwasm: also
// ----
// call(uint256): 0 -> 0
// call(uint256): 1 -> 1
@@ -13,9 +13,6 @@ contract Main {
return payable(r).send(0);
}
}
// ====
// compileToEwasm: also
// ----
// constructor(), 20 wei ->
// gas irOptimized: 100264
@@ -3,8 +3,6 @@ contract test {
function g() public { revert(); }
function h() public { assert(false); }
}
// ====
// compileToEwasm: also
// ----
// f() ->
// g() -> FAILURE
@@ -3,8 +3,6 @@ contract C {
return msg.value;
}
}
// ====
// compileToEwasm: also
// ----
// f(), 1 ether -> 1000000000000000000
// f(), 1 wei -> 1