mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fix SMTChecker tests in 060
This commit is contained in:
+5
-5
@@ -6,13 +6,13 @@ contract F {
|
||||
}
|
||||
}
|
||||
|
||||
contract E is F {}
|
||||
contract D is E {
|
||||
abstract contract E is F {}
|
||||
abstract contract D is E {
|
||||
constructor() public {
|
||||
a = 3;
|
||||
}
|
||||
}
|
||||
contract C is D {}
|
||||
abstract contract C is D {}
|
||||
contract B is C {
|
||||
constructor(uint x) F(x + 1) public {
|
||||
}
|
||||
@@ -25,5 +25,5 @@ contract A is B {
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// Warning: (234-239): Overflow (resulting value larger than 2**256 - 1) happens here
|
||||
// Warning: (329-343): Assertion violation happens here
|
||||
// Warning: (261-266): Overflow (resulting value larger than 2**256 - 1) happens here
|
||||
// Warning: (356-370): Assertion violation happens here
|
||||
|
||||
+4
-4
@@ -6,7 +6,7 @@ contract C {
|
||||
}
|
||||
}
|
||||
|
||||
contract B is C {
|
||||
abstract contract B is C {
|
||||
uint b;
|
||||
constructor(uint x) public {
|
||||
b = a + x;
|
||||
@@ -22,6 +22,6 @@ contract A is B {
|
||||
}
|
||||
|
||||
// ----
|
||||
// Warning: (162-167): Underflow (resulting value less than 0) happens here
|
||||
// Warning: (162-167): Overflow (resulting value larger than 2**256 - 1) happens here
|
||||
// Warning: (287-305): Assertion violation happens here
|
||||
// Warning: (171-176): Underflow (resulting value less than 0) happens here
|
||||
// Warning: (171-176): Overflow (resulting value larger than 2**256 - 1) happens here
|
||||
// Warning: (296-314): Assertion violation happens here
|
||||
|
||||
+3
-3
@@ -6,7 +6,7 @@ contract C {
|
||||
}
|
||||
}
|
||||
|
||||
contract B is C {
|
||||
abstract contract B is C {
|
||||
uint b;
|
||||
constructor(uint x) public {
|
||||
b = x + 10;
|
||||
@@ -22,5 +22,5 @@ contract A is B {
|
||||
}
|
||||
|
||||
// ----
|
||||
// Warning: (162-168): Overflow (resulting value larger than 2**256 - 1) happens here
|
||||
// Warning: (285-303): Assertion violation happens here
|
||||
// Warning: (171-177): Overflow (resulting value larger than 2**256 - 1) happens here
|
||||
// Warning: (294-312): Assertion violation happens here
|
||||
|
||||
@@ -17,7 +17,7 @@ contract B is A {
|
||||
uint y;
|
||||
|
||||
fallback () external override {
|
||||
assert(x == 0);
|
||||
assert(x == 1);
|
||||
}
|
||||
}
|
||||
// ----
|
||||
|
||||
@@ -17,7 +17,7 @@ contract B is A {
|
||||
uint y;
|
||||
|
||||
receive () external payable {
|
||||
assert(x == 0);
|
||||
assert(x == 1);
|
||||
}
|
||||
}
|
||||
// ----
|
||||
|
||||
@@ -17,7 +17,7 @@ contract B is A {
|
||||
uint y;
|
||||
|
||||
receive () external payable override {
|
||||
assert(x == 0);
|
||||
assert(x == 1);
|
||||
}
|
||||
}
|
||||
// ----
|
||||
|
||||
@@ -17,7 +17,7 @@ contract B is A {
|
||||
uint y;
|
||||
|
||||
fallback () external {
|
||||
assert(x == 0);
|
||||
assert(x == 1);
|
||||
}
|
||||
}
|
||||
// ----
|
||||
|
||||
Reference in New Issue
Block a user