mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Grouping of symbolic variables in the same file and support to FixedBytes
This commit is contained in:
@@ -7,8 +7,4 @@ contract C
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// Warning: (86-98): Assertion checker does not yet support this special variable.
|
||||
// Warning: (86-98): Assertion checker does not yet implement this type.
|
||||
// Warning: (86-102): Assertion checker does not yet implement the type bytes32 for comparisons
|
||||
// Warning: (86-102): Internal error: Expression undefined for SMT solver.
|
||||
// Warning: (79-103): Assertion violation happens here
|
||||
|
||||
@@ -7,8 +7,4 @@ contract C
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// Warning: (86-93): Assertion checker does not yet support this special variable.
|
||||
// Warning: (86-93): Assertion checker does not yet implement this type.
|
||||
// Warning: (86-107): Assertion checker does not yet implement the type bytes4 for comparisons
|
||||
// Warning: (86-107): Internal error: Expression undefined for SMT solver.
|
||||
// Warning: (79-108): Assertion violation happens here
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
pragma experimental SMTChecker;
|
||||
|
||||
contract C
|
||||
{
|
||||
bytes32 x;
|
||||
function f(bytes8 y) public view {
|
||||
assert(x != y);
|
||||
assert(x != g());
|
||||
}
|
||||
function g() public view returns (bytes32) {
|
||||
return x;
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// Warning: (96-110): Assertion violation happens here
|
||||
// Warning: (114-130): Assertion violation happens here
|
||||
Reference in New Issue
Block a user