SRI-CSL / solidity

This is solc-verify, a modular verifier for Solidity.
https://github.com/SRI-CSL/solidity/blob/boogie/SOLC-VERIFY-README.md
GNU General Public License v3.0
50 stars 14 forks source link

Local storage pointer can only be unpacked if it is an identifier #54

Closed hajduakos closed 5 years ago

hajduakos commented 5 years ago
solc-verify.py libsolidity/syntaxTests/controlFlow/storageReturn/if_fine.sol --output .
Error while running verifier, details:
Parsing ./if_fine.sol.bpl
./if_fine.sol.bpl(108,20): Error: invalid type for argument 0 in application of f#2#S#3#constr: [int]int (expected: struct_storage_S#3)
./if_fine.sol.bpl(130,21): Error: invalid type for argument 0 in application of f#2#S#3#constr: [int]int (expected: struct_storage_S#3)
./if_fine.sol.bpl(130,47): Error: invalid type for argument 0 in application of f#2#S#3#constr: [int]int (expected: struct_storage_S#3)
3 type checking errors detected in ./if_fine.sol.bpl
hajduakos commented 5 years ago

Fixed in 5772ac0