2019-09-26 14:12:27 +00:00
|
|
|
pragma experimental SMTChecker;
|
|
|
|
contract F {
|
|
|
|
uint a;
|
|
|
|
constructor(uint x) public {
|
|
|
|
a = x;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-12-03 20:44:06 +00:00
|
|
|
abstract contract E is F {}
|
|
|
|
abstract contract D is E {
|
2019-09-26 14:12:27 +00:00
|
|
|
constructor() public {
|
|
|
|
a = 3;
|
|
|
|
}
|
|
|
|
}
|
2019-12-03 20:44:06 +00:00
|
|
|
abstract contract C is D {}
|
2019-09-26 14:12:27 +00:00
|
|
|
contract B is C {
|
|
|
|
constructor(uint x) F(x + 1) public {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
contract A is B {
|
|
|
|
constructor(uint x) B(x) public {
|
|
|
|
assert(a == 3);
|
|
|
|
assert(a == 4);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// ----
|
2019-12-03 20:44:06 +00:00
|
|
|
// Warning: (261-266): Overflow (resulting value larger than 2**256 - 1) happens here
|
2020-02-12 02:21:42 +00:00
|
|
|
// Warning: (261-266): Overflow (resulting value larger than 2**256 - 1) happens here
|
2019-12-03 20:44:06 +00:00
|
|
|
// Warning: (356-370): Assertion violation happens here
|