solidity/test/libsolidity/smtCheckerTests/array_members/length_same_after_assignment.sol
2023-03-09 14:59:32 +01:00

19 lines
380 B
Solidity

contract C {
uint[] arr;
constructor() {
arr.push();
arr.push();
arr.push();
arr.push();
}
function f() public view {
uint[] memory arr2 = arr;
arr2[2] = 3;
assert(arr.length == arr2.length);
}
}
// ====
// SMTEngine: all
// ----
// Info 1391: CHC: 2 verification condition(s) proved safe! Enable the model checker option "show proved safe" to see all of them.