solidity/test/libsolidity/smtCheckerTests/functions/functions_identifier_nested_tuple_2.sol

23 lines
468 B
Solidity
Raw Normal View History

library L {
struct S {
uint256[] data;
}
function f(S memory _s) internal pure returns (uint256) {
require(_s.data.length > 0);
return 42;
}
}
contract C {
using L for L.S;
function f() public pure returns (uint256 y) {
L.S memory x;
y = (x.f)();
assert(y == 42); // should hold
}
}
2021-03-31 15:11:54 +00:00
// ====
// SMTEngine: all
// ----
2023-02-09 16:07:13 +00:00
// Info 1391: CHC: 1 verification condition(s) proved safe! Enable the model checker option "show proved safe" to see all of them.